/* ==========================================================================
   footer.css - 网站页脚样式
   包含：页脚容器、网格布局、导航链接、联系信息、社交媒体图标等
   ========================================================================== */

/* ==========================================================================
   1. 页脚基础结构
   ========================================================================== */
/* 页脚容器 */
.footer {
    background: #458CFF;
    color: #fff;
    padding-top: 60px;
    padding-bottom: 30px;
}

/* 页脚网格布局 */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* ==========================================================================
   2. 页脚内容样式
   ========================================================================== */
/* 页脚列样式 */
.footer-col {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 600;
    position: relative;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

/* 页脚链接 */
.footer-links {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 页脚联系信息 */
.contact-info-footer {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.contact-info-footer li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.contact-info-footer i {
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    min-width: 18px;
}

.contact-info-footer span {
    flex: 1;
}

/* ==========================================================================
   3. 社交媒体图标
   ========================================================================== */
/* 社交链接 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    border: none;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 确保图标正确显示 */
.social-links a i {
    line-height: 1;
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .footer {
        padding-top: 50px;
        padding-bottom: 25px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-col {
        margin-bottom: 25px;
    }
    .footer-col h4 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    .footer-col p,
    .footer-links a,
    .contact-info-footer li {
        font-size: 13px;
    }
    .footer-links li {
        margin-bottom: 10px;
    }
    .contact-info-footer i {
        font-size: 15px;
    }
    .social-links a {
        width: 34px;
        height: 34px;
    }
    .social-links a i {
        font-size: 16px;
    }
    .footer-bottom {
        font-size: 12px;
    }
    .footer-about {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .footer {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .footer-col {
        margin-bottom: 20px;
        text-align: center;
    }
    .footer-col h4 {
        font-size: 16px;
    }
    .footer-col p {
        text-align: left;
    }
    .footer-about {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links {
    }
    .footer-links li {
        margin-bottom: 8px;
    }
    .contact-info-footer {
    }
    .contact-info-footer li {
        justify-content: center;
        display: flex;
    }
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    .social-links a {
        width: 32px;
        height: 32px;
    }
    .social-links a i {
        font-size: 15px;
    }
    .footer-bottom {
        padding-top: 15px;
    }
}

.footer-about {
    text-align: left;
    max-width: 340px;
    margin: 0;
    margin-bottom: 18px;
}

.footer-about h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-about p,
.footer-about p strong,
.footer-about p b {
    margin: 0;
    line-height: 1.7;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.01em;
    word-break: break-word;
    font-family: inherit;
    font-weight: normal !important;
}

/* 统一footer正文内容样式 */
.footer-about p,
.footer-links a,
.contact-info-footer li,
.contact-info-footer span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-family: inherit !important;
    line-height: 1.7 !important;
    letter-spacing: 0.01em !important;
}