/**
 * Footer菜单样式 - 优化布局设计
 * 创建美观的footer栏目布局，改进水平分布
 */

/* Footer整体布局优化 */
.footer .col-section.num2 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 3rem !important;
    width: 100% !important;
}

/* Footer行布局 - 水平排列 */
.footer .col-section.num2 .footer-row {
    flex: 1 !important;
    margin-bottom: 0 !important;
    min-width: 200px !important;
}

/* Footer菜单容器样式 */
.footer-menu-section {
    margin-bottom: 0 !important;
    height: 100% !important;
}

/* Footer菜单标题样式 */
.footer-menu-title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
}

/* Footer菜单链接容器 */
.footer-menu-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

/* Footer菜单链接样式 */
.footer-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease !important;
    display: block !important;
    font-family: inherit !important;
}

/* Footer菜单链接悬停效果 */
.footer-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* 左侧列（logo区域）优化 */
.footer .col-section.num1 {
    flex: 0 0 300px !important;
    margin-right: 2rem !important;
}

/* 右侧列（菜单区域）优化 */
.footer .col-section.num2 {
    flex: 1 !important;
    max-width: calc(100% - 350px) !important;
}

/* Footer主容器布局优化 */
.footer .flex_row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 3rem 1rem !important;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 991px) {
    .footer .col-section.num2 {
        gap: 2rem !important;
    }
    
    .footer .col-section.num1 {
        flex: 0 0 250px !important;
        margin-right: 1.5rem !important;
    }
    
    .footer-menu-title {
        font-size: 13px !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-link {
        font-size: 13px !important;
    }
    
    .footer-menu-links {
        gap: 0.5rem !important;
    }
    
    .footer .flex_row {
        padding: 2.5rem 1rem !important;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 767px) {
    .footer .flex_row {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }
    
    .footer .col-section.num1 {
        flex: none !important;
        margin-right: 0 !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
    }
    
    .footer .col-section.num2 {
        flex-direction: column !important;
        gap: 2rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .footer .col-section.num2 .footer-row {
        min-width: auto !important;
    }
    
    .footer-menu-section {
        text-align: center !important;
    }
    
    .footer-menu-title {
        font-size: 12px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-link {
        font-size: 12px !important;
        text-align: center !important;
    }
    
    .footer-menu-links {
        gap: 0.4rem !important;
    }
}

/* 长文本链接的特殊处理 */
.footer-link[href*="White paper"] {
    line-height: 1.3 !important;
    padding-right: 0.5rem !important;
}

/* 确保在深色背景下的可读性 */
.footer.footer_section__2 .footer-menu-title,
.footer.footer_section__2 .footer-link {
    text-shadow: none !important;
}

/* 覆盖可能的冲突样式 */
.footer-simple-menu .footer-menu-section h4,
.footer-simple-menu .footer-menu-section a {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* 左侧内容垂直间距优化 */
.footer .col-section.num1 .footer-row {
    margin-bottom: 1.5rem !important;
}

.footer .col-section.num1 .footer-row:last-child {
    margin-bottom: 0 !important;
}

/* 社交图标区域优化 */
.footer-social {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
}

@media (max-width: 767px) {
    .footer-social {
        justify-content: center !important;
    }
}