/* * MX Footer 样式
 * 工业深色质感，纯响应式 1600px 宽屏破局版
 */

/* 🔴 核心防御接管与破局：强行对抗白底黑字，并打破主题的页脚宽度限制 */
.mx-matrix-wrapper.mx-footer-wrapper {
    position: relative;
    /* 强制全屏满宽突破，摆脱主题默认的 1100px 页脚容器限制 */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    background-color: #111827 !important; 
    color: #9ca3af !important; 
    font-family: inherit;
    border-top: 4px solid #2563eb; 
}

/* 核心对齐：锁定 1600px，去掉 padding 对齐全站无边距 Logo */
.mx-footer-container {
    max-width: 1600px !important; 
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
}

/* 4列网格布局：拉大间距撑满 1600px 屏幕 */
.mx-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; 
    gap: 60px; /* 从 40px 调大至 60px，适应巨幕 */
    padding: 80px 0; /* 上下留白适度增加 */
}

/* 标题样式 */
.mx-footer-heading {
    color: #ffffff !important;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: 0;
    border-left: none !important; /* 防止继承前面的标题蓝条 */
    padding-left: 0 !important;
}

/* 品牌列 */
.mx-footer-logo {
    max-height: 40px;
    margin-bottom: 20px;
    display: block;
}

.mx-footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #9ca3af !important;
}

/* 链接列表通用 */
.mx-footer-menu, .mx-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 🟢 修复点 1：删除错误的 display: flex，恢复列表默认块级显示，彻底解决错位 */
.mx-footer-menu li, .mx-contact-list li {
    margin-bottom: 16px;
    display: block; 
}

.mx-footer-menu a, .mx-contact-list a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.mx-footer-menu a:hover, .mx-contact-list a:hover {
    color: #3b82f6; 
}

/* 🟢 修复点 2：联系方式细节 - 恢复为上下堆叠的整洁样式，防止挤压 */
.mx-contact-label {
    display: block; /* 标签在上，内容在下 */
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mx-contact-list a, .mx-contact-list span {
    display: inline-block;
    line-height: 1.5;
    word-break: break-word; /* 🟢 修复点 3：防止长邮箱或长地址撑破右侧列的布局 */
}

/* 行动号召按钮 */
.mx-footer-btn {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.mx-footer-btn:hover {
    background-color: #1d4ed8;
}

/* Sub-footer 底栏 */
.mx-sub-footer {
    border-top: 1px solid #374151;
    padding: 24px 0;
    font-size: 0.875rem;
}

.mx-sub-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mx-copyright {
    margin: 0 !important;
    color: #9ca3af !important;
}

/* 版权里的首页超链接样式 */
.mx-home-link {
    color: #9ca3af;
    text-decoration: none;
}
.mx-home-link:hover {
    color: #ffffff;
}

.mx-policy-links a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 20px;
}

.mx-policy-links a:hover {
    color: #ffffff;
}

/* 默认（电脑端）隐藏手机专属链接 */
.mx-mobile-only-links {
    display: none;
}

/* === 响应式设计 (手机与平板) === */
@media (max-width: 1024px) {
    .mx-footer-grid {
        grid-template-columns: 1fr 1fr; /* 平板变为两列 */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mx-footer-container {
        padding: 0 20px !important; /* 手机端补回 20px 安全内边距 */
    }
}

@media (max-width: 640px) {
    /* 手机端隐藏主要内容的网格 */
    .mx-footer-grid {
        display: none; 
    }
    
    .mx-sub-footer-flex {
        justify-content: center;
        text-align: center;
        flex-direction: column; /* 让版权和链接上下堆叠 */
    }
    
    /* 核心改动：手机端隐藏电脑链接，显示新链接 */
    .mx-desktop-only-links {
        display: none;
    }
    .mx-mobile-only-links {
        display: block;
        margin-top: 10px;
    }

    .mx-policy-links a {
        margin: 0 10px; /* 调整手机端的间距 */
    }
}