/* ========== 页脚样式 ========== */

/* 页脚 - 电脑端 */
.footer-desktop {
    background-color: var(--primary-color, #2c3e50);
    color: white;
    padding: 3rem 5% 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color, #3498db);
}

.footer-section p, .footer-section a {
    color: #ddd;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color, #3498db);
}

.footer-section .contact-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.footer-section .contact-info i {
    color: var(--secondary-color, #3498db);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color, #3498db);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 页脚链接样式 */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color, #3498db);
    padding-left: 5px;
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
    .footer-desktop {
        display: none; /* 移动端隐藏电脑端页脚，显示移动端导航 */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section .contact-info {
        justify-content: center;
    }
}

/* 电脑端显示页脚，移动端隐藏的规则 */
@media (min-width: 769px) {
    .footer-desktop {
        display: block;
    }
}

/* 页脚工具类 */
.footer-hidden {
    display: none !important;
}

.footer-visible {
    display: block !important;
}

/* 页脚主题变量 */
:root {
    --footer-bg-color: #2c3e50;
    --footer-text-color: #ffffff;
    --footer-link-color: #dddddd;
    --footer-link-hover-color: #3498db;
    --footer-border-color: rgba(255, 255, 255, 0.1);
}

/* 暗色主题页脚 */
.footer-dark {
    background-color: #1a252f;
}

.footer-dark .footer-section h3::after {
    background-color: #3498db;
}

.footer-dark .social-links a:hover {
    background-color: #2980b9;
}

/* 浅色主题页脚 */
.footer-light {
    background-color: #f8f9fa;
    color: #333;
}

.footer-light .footer-section p,
.footer-light .footer-section a,
.footer-light .footer-section .contact-info {
    color: #666;
}

.footer-light .footer-section h3 {
    color: #2c3e50;
}

.footer-light .footer-section h3::after {
    background-color: #e74c3c;
}

.footer-light .social-links a {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.footer-light .social-links a:hover {
    background-color: #e74c3c;
    color: white;
}

.footer-light .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: #777;
}