/* 页脚修复样式文件 - 确保所有页面页脚样式统一且正确定位 */

/* 全局样式重置，确保不被其他CSS影响 */
* {
    box-sizing: border-box;
}

/* 确保body作为弹性容器，页脚能正确固定在底部 */
body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
    margin: 0;
}

/* 确保main内容区域能够占据剩余空间 */
main {
    flex: 1;
}

/* 页脚样式重置和优化 - 使用最高优先级 */
footer {
    background-color: #1a365d !important;
    color: white !important;
    padding: 2rem 0 !important;
    margin-top: auto !important;
    position: relative !important;
    clear: both !important;
    width: 100% !important;
    z-index: 10;
}

/* 页脚容器样式重置 */
footer > div:first-child {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* 页脚内容容器样式 - 统一使用grid布局 */
.footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 页脚Logo样式 */
.footer-logo {
    grid-column: 1 !important;
}

.footer-logo img {
    width: 120px !important;
    height: 40px !important;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 1rem !important;
    line-height: 1.5 !important;
}

/* 页脚链接区域样式 */
.footer-links {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-links h4 {
    color: white !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.5rem !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-links a:hover {
    color: white !important;
}

/* 页脚底部样式 */
.footer-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 2rem 0 0 0 !important;
    padding: 1rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
}

.footer-copyright {
    margin: 0 !important;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

.footer-terms {
    display: flex !important;
    gap: 1.5rem !important;
}

.footer-terms a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
}

.footer-terms a:hover {
    color: white !important;
}

/* 响应式设计 - 适配不同屏幕尺寸 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .footer-logo {
        grid-column: 1 !important;
    }
}