/* 通用页脚样式 */

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.health-warning {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.health-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.company-info p,
.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
    background-color: transparent;
}

.company-info p:hover,
.contact-info p:hover {
    color: #3498db;
}

.legal-notice {
    background-color: #34495e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.legal-notice:hover {
    background-color: #3a5163;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .health-warning {
        padding: 12px;
        margin-bottom: 20px;
        font-size: 13px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .company-info p,
    .contact-info p {
        font-size: 13px;
    }
    
    .legal-notice {
        padding: 15px;
        font-size: 12px;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 10px;
        margin-top: 30px;
    }
    
    .health-warning {
        padding: 10px;
        margin-bottom: 15px;
        font-size: 12px;
    }
    
    .footer-info {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .company-info p,
    .contact-info p {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .legal-notice {
        padding: 12px;
        font-size: 11px;
        line-height: 1.5;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* 页脚样式 - 移除动画避免移动端闪烁 */
.footer {
    opacity: 1;
    transform: translateY(0);
}

.health-warning {
    opacity: 1;
}

.footer-info {
    opacity: 1;
}

.legal-notice {
    opacity: 1;
}

.footer-links {
    opacity: 1;
}

/* 特殊效果 */
.health-warning::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 16px;
}

.footer-links a::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.footer-links a:hover::after {
    transform: translateX(3px);
}

/* 打印样式 */
@media print {
    .footer {
        background-color: white !important;
        color: black !important;
        box-shadow: none !important;
        margin-top: 20px !important;
        padding: 20px 0 !important;
    }
    
    .health-warning {
        background-color: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .legal-notice {
        background-color: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .footer-links a {
        color: #333 !important;
        text-decoration: underline !important;
    }
}
