/* ====================================================================
 * Footer 组件样式 - 命名空间隔离版本
 * ====================================================================
 * 文件路径：includes/components/footer/footer.css
 * 修改日期：2025-01-XX
 * 
 * 【重要说明  】
 * 1. 所有选择器都使用 .site-footer 命名空间前缀
 * 2. 确保 Footer 样式独立，不受 Main 内容区域影响
 * 3. 保持向后兼容（保留 .footer 类名）
 * ==================================================================== */

/* ====================================================================
 * Footer 独立性保障 - 防止受 Main 内容高度影响
 * ====================================================================
 * 目的：确保 Footer 的高度、padding、margin、行高等量值
 *       完全独立于 Main 内容区域，不受其高度变化影响
 * ==================================================================== */

/* 🔧 强制重置：确保 footer 内部所有元素不受外部影响 */
.site-footer * {
    /* 防止继承可能影响布局的属性 */
    box-sizing: border-box;
}

/* 🔧 强制重置：防止 footer 容器本身受任何外部 margin 影响 */
.site-footer {
    /* 确保没有任何外部 margin 可以影响 footer */
    margin: 0 !important;
}

/* ========== Footer 命名空间容器和基础样式 ========== */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 1.5rem;
    overflow: hidden;
    
    /* 🔧 关键修改1：重置行高继承，防止受 body 的 line-height: 1.6 影响 */
    line-height: normal;
    
    /* 🔧 关键修改2：确保 footer 在 flex 布局中独立，不受 main 的 flex: 1 影响 */
    flex-shrink: 0 !important;  /* 防止 footer 被压缩 */
    flex-grow: 0 !important;    /* 防止 footer 被拉伸 */
    flex-basis: auto !important; /* 使用内容自动计算高度 */
    
    /* 🔧 关键修改3：固定最小高度，确保内部元素有足够空间 */
    min-height: auto;
    
    /* 🔧 关键修改4：明确设置盒模型 */
    box-sizing: border-box;
    
    /* 🔧 关键修改5：使用 CSS containment 完全隔离 footer，防止外部影响 */
    contain: layout style paint;
    
    /* 🔧 关键修改6：防止字体渲染时的 subpixel 舍入误差 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* 🔧 关键修改7：固定 transform-origin，防止动画影响位置 */
    transform-origin: center top;
    
    /* 🔧 关键修改8：防止任何外部 margin 影响 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 第一层：主要内容区 */
.site-footer .footer-main {
    margin-bottom: 2rem !important;  /* 使用 !important 确保不被覆盖 */
}

.site-footer .footer-content-wrapper {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 左侧区域样式 */
.site-footer .footer-left {
    padding-right: 2rem;
    /* 确保不受外部影响 */
    box-sizing: border-box;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem !important;  /* 固定间距 */
    transition: all var(--transition-smooth);
    /* 防止被压缩 */
    flex-shrink: 0;
}

.site-footer .footer-logo {
    width: 48px !important;   /* 固定宽度 */
    height: 48px !important;  /* 固定高度 */
    object-fit: contain;
    flex-shrink: 0;
    transition: all var(--transition-smooth);
    /* 防止尺寸变化 */
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
}

.site-footer .footer-brand-name {
    font-size: 1.5rem !important;  /* 固定字体大小 */
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2 !important;  /* 🔧 明确设置行高，防止继承 */
    /* 防止文字换行影响布局 */
    white-space: nowrap;
}

/* 网站名可点击：与 Logo 一样可返回语言首页 */
.site-footer .footer-brand-name-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color var(--transition-smooth);
}

.site-footer .footer-brand-name-link .footer-brand-name {
    transition: transform var(--transition-smooth), color var(--transition-smooth);
}

/* 悬停动画：轻微上浮 + 高亮 */
.site-footer .footer-brand-name-link:hover .footer-brand-name {
    transform: translateY(-1px);
    color: var(--primary-color);
}

/* 键盘可访问性 */
.site-footer .footer-brand-name-link:focus-visible {
    outline: 2px solid rgba(255, 179, 102, 0.7);
    outline-offset: 2px;
}

.site-footer .footer-brand:hover .footer-logo {
    transform: scale(1.05);
}

/* 联系方式 */
.site-footer .footer-contact {
    margin-bottom: 2rem !important;  /* 固定间距 */
}

.site-footer .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.875rem !important;  /* 固定间距 */
    transition: all var(--transition-smooth);
    font-size: 0.9375rem !important;  /* 固定字体大小 */
    line-height: 1.5 !important;  /* 🔧 明确设置行高 */
    /* 防止被压缩 */
    flex-shrink: 0;
}

.site-footer .footer-contact-item i {
    font-size: 1.125rem !important;  /* 固定图标大小 */
    width: 20px !important;  /* 固定宽度 */
    text-align: center;
    flex-shrink: 0;
    color: var(--primary-color);
    /* 防止尺寸变化 */
    min-width: 20px;
    max-width: 20px;
}

.site-footer .footer-contact-item:hover {
    color: var(--text-white);
    transform: translateX(4px);
}

.site-footer .footer-contact-item:hover i {
    color: var(--primary-light);
}

/* 手机号与即时通讯小图标并排显示 */
.site-footer .footer-contact-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 手机号后的微信/WhatsApp 图标按钮（弹层触发器） */
.site-footer .footer-contact-im-trigger {
    position: relative;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
    flex-shrink: 0;
}

.site-footer .footer-contact-im-trigger:hover {
    transform: translateY(-1px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 179, 102, 0.45);
}

.site-footer .footer-contact-im-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

/* 联系方式处二维码弹层位置微调（复用 footer-qr-pop 样式） */
.site-footer .footer-contact-qr-pop {
    left: 50%;
    bottom: calc(100% + 10px);
}

.site-footer .footer-contact-im-trigger:hover .footer-contact-qr-pop,
.site-footer .footer-contact-im-trigger:focus-visible .footer-contact-qr-pop,
.site-footer .footer-contact-im-trigger.is-open .footer-contact-qr-pop {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 社交媒体 */
.site-footer .footer-social {
    margin-top: 1.5rem !important;  /* 固定间距 */
}

.site-footer .footer-social-title {
    font-size: 1rem !important;  /* 固定字体大小 */
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem !important;  /* 固定间距 */
    line-height: 1.4 !important;  /* 🔧 明确设置行高 */
}

.site-footer .social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    /* 防止被压缩 */
    flex-shrink: 0;
}

.site-footer .social-icon {
    width: 44px !important;   /* 固定宽度 */
    height: 44px !important;   /* 固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-smooth);
    font-size: 1.25rem !important;  /* 固定图标大小 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 防止尺寸变化 */
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex-shrink: 0;
}

/* 方案C：后台上传的社交图标文件（SVG/PNG） */
.site-footer .footer-social-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

/* 仅对“使用自定义图标文件”的按钮弱化框感，减少深色背景占比 */
.site-footer .social-icon.has-custom-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

/* 自定义图标按钮 hover 时保持交互反馈，但视觉更克制 */
.site-footer .social-icon.has-custom-icon:hover {
    background: rgba(255, 179, 102, 0.18);
    border-color: rgba(255, 179, 102, 0.35);
}

/* button 版社交入口的样式重置（兼容 <button>） */
.site-footer .footer-social-trigger {
    appearance: none;
    cursor: pointer;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 二维码弹层：桌面端 hover 展示，移动端由 JS 切换 .is-open */
.site-footer .footer-social-grid {
    position: relative;
}

.site-footer .footer-social-trigger {
    position: relative;
    overflow: visible;
}

.site-footer .footer-qr-pop {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(8px) scale(0.92);
    width: 152px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 12;
}

.site-footer .footer-qr-pop::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(10, 10, 10, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer .footer-qr-label {
    display: block;
    margin-bottom: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-qr-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.site-footer .footer-social-trigger:hover .footer-qr-pop,
.site-footer .footer-social-trigger:focus-visible .footer-qr-pop,
.site-footer .footer-social-trigger.is-open .footer-qr-pop {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.site-footer .social-icon:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 179, 102, 0.4);
    border-color: var(--primary-color);
}

/* 右侧区域样式 */
.site-footer .footer-right {
    padding-left: 1rem;
    box-sizing: border-box;
}

.site-footer .footer-col {
    margin-bottom: 1.5rem !important;  /* 固定间距 */
}

.site-footer .footer-col-title {
    font-size: 1.125rem !important;  /* 固定字体大小 */
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem !important;  /* 固定间距 */
    position: relative;
    line-height: 1.4 !important;  /* 🔧 明确设置行高 */
}

.site-footer .footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-col-list li {
    margin-bottom: 0.625rem !important;  /* 固定间距 */
}

.site-footer .footer-col-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem !important;  /* 固定字体大小 */
    display: inline-block;
    transition: all var(--transition-smooth);
    position: relative;
    padding-left: 0;
    line-height: 1.5 !important;  /* 🔧 明确设置行高 */
}

.site-footer .footer-col-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-smooth);
    border-radius: 1px;
}

.site-footer .footer-col-link:hover {
    color: var(--primary-color);
    font-weight: 500;
    transform: translateY(-2px);
    padding-left: 0;
}

.site-footer .footer-col-link:hover::after {
    width: 100%;
}

.site-footer .footer-col-link-text {
    cursor: default;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-col-link-text::after {
    display: none;
}

.site-footer .footer-col-link-text:hover {
    color: rgba(255, 255, 255, 0.7);
    font-weight: inherit;
    transform: none;
}

/* 分隔线 */
.site-footer .footer-divider {
    width: 100%;
    height: 1px !important;  /* 固定高度 */
    background: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem !important;  /* 固定间距 */
    /* 防止被压缩 */
    flex-shrink: 0;
}

/* 底部信息区 */
.site-footer .footer-bottom {
    padding-top: 0.75rem !important;  /* 固定间距 */
    padding-bottom: 0 !important;  /* 🔧 新增：固定底部 padding */
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：固定高度计算 */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.site-footer .footer-bottom-left,
.site-footer .footer-bottom-center,
.site-footer .footer-bottom-right {
    display: flex;
    align-items: center;
    /* 🔧 关键：明确设置高度为 auto，防止被拉伸 */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：固定 transform-origin */
    transform-origin: center center;
}

.site-footer .footer-bottom-center {
    justify-content: center;
    text-align: center;
}

.site-footer .footer-bottom-right {
    justify-content: flex-end;
    text-align: right;
    position: static;
    min-height: auto;
    gap: 0;
    flex-wrap: wrap;
}

/* 恢复法律链接自然布局，不为回顶按钮预留空间 */
.site-footer .footer-bottom-right .legal-links {
    margin-right: 0;
}

/* Footer 右侧回到顶部按钮（文案中英自适应） */
/* Footer 外层独立回顶按钮：不参与底栏布局，避免挤压法律链接 */
.site-footer .footer-back-to-top-floating {
    position: absolute;
    right: 28px;
    bottom: 22px;
    z-index: 20;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    opacity: 0.92;
}

.site-footer .footer-back-to-top-floating:hover {
    transform: translateY(-2px) scale(1.1);
    opacity: 1;
}

.site-footer .footer-back-to-top-floating:focus-visible {
    outline: 2px solid rgba(255, 179, 102, 0.75);
    outline-offset: 3px;
    border-radius: 4px;
}

.site-footer .footer-back-to-top-floating-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.site-footer .copyright {
    font-size: 0.875rem !important;  /* 固定字体大小 */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6 !important;  /* 🔧 明确设置行高，与设计保持一致 */
    font-weight: 400;
    /* 防止文字换行影响布局 */
    white-space: normal;
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：防止 margin 影响位置 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* 🔧 新增：固定 display 类型 */
    display: block !important;
}

.site-footer .legal-links {
    display: flex !important;  /* 🔧 新增：强制 flex 布局 */
    align-items: center !important;  /* 🔧 新增：强制垂直居中 */
    gap: 0.5rem !important;  /* 🔧 新增：固定间距 */
    flex-wrap: wrap;
    justify-content: flex-end;
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：固定高度 */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    /* 🔧 新增：防止 margin 影响 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.site-footer .legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem !important;  /* 固定字体大小 */
    line-height: 1.6 !important;  /* 🔧 明确设置行高，与设计保持一致 */
    transition: color var(--transition-smooth), transform var(--transition-smooth);  /* 🔧 修改：只过渡颜色和transform，不包括其他属性 */
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：防止 margin 影响位置 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.site-footer .legal-link:hover {
    color: var(--primary-color);
}

.site-footer .legal-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem !important;  /* 固定字体大小 */
    margin: 0 0.375rem !important;  /* 固定间距 */
    line-height: 1.6 !important;  /* 🔧 明确设置行高 */
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：固定垂直对齐 */
    vertical-align: baseline !important;
    /* 🔧 新增：固定 display 类型 */
    display: inline-block !important;
}

.site-footer .icp {
    font-size: 0.8125rem !important;  /* 固定字体大小 */
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6 !important;  /* 🔧 明确设置行高 */
    font-weight: 400;
    /* 防止被压缩 */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* 🔧 新增：防止 margin 影响位置 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* 🔧 新增：固定 display 类型 */
    display: block !important;
}

/* ========== Footer 响应式布局 ========== */

/* 超大屏：≥1400px */
@media (min-width: 1400px) {
    .site-footer .footer-left {
        padding-right: 3rem;
    }
    
    .site-footer .footer-right {
        padding-left: 2rem;
    }
}

/* 大屏：1200px - 1399.98px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-footer .footer-left {
        padding-right: 2rem;
    }
    
    .site-footer .footer-right {
        padding-left: 1rem;
    }
}

/* 平板端（宽）：1000px - 1199.98px */
@media (min-width: 1000px) and (max-width: 1199.98px) {
    .site-footer .footer-left {
        padding-right: 0;
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-footer .footer-right {
        padding-left: 0;
    }
    
    .site-footer .footer-col {
        margin-bottom: 2rem;
    }
}

/* 平板端（窄）：768px - 999.98px */
@media (min-width: 768px) and (max-width: 999.98px) {
    .site-footer {
        padding: 3rem 0 1.5rem !important;  /* 固定 padding */
    }
    
    .site-footer .footer-content-wrapper {
        max-width: 90%;
        padding-left: 3rem;
        padding-right: 1rem;
    }
    
    .site-footer .footer-left {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer .footer-right {
        padding-left: 0;
        display: flex;
        justify-content: center;
    }
    
    .site-footer .footer-right nav.row {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .site-footer .footer-col {
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer .footer-col-title {
        font-size: 1rem !important;  /* 固定字体大小 */
        line-height: 1.4 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-col-link {
        font-size: 0.875rem !important;  /* 固定字体大小 */
        line-height: 1.5 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-bottom-left,
    .site-footer .footer-bottom-center,
    .site-footer .footer-bottom-right {
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .site-footer .footer-bottom-center {
        order: 2;
    }
    
    .site-footer .footer-bottom-right {
        order: 3;
        justify-content: center;
        position: static;
        min-height: auto;
        gap: 8px;
    }

    .site-footer .footer-bottom-right .legal-links {
        margin-right: 0;
    }

    .site-footer .footer-back-to-top-floating {
        right: 20px;
        bottom: 16px;
        width: 28px;
        height: 28px;
    }

    .site-footer .footer-back-to-top-floating-icon {
        width: 24px;
        height: 24px;
    }

    .site-footer .footer-contact-im-trigger {
        width: 22px;
        height: 22px;
    }

    .site-footer .footer-contact-im-icon {
        width: 13px;
        height: 13px;
    }
    
    .site-footer .legal-links {
        justify-content: center;
    }
}

/* 移动端：< 768px */
@media (max-width: 767.98px) {
    .site-footer {
        padding: 2.5rem 0 1.5rem !important;  /* 固定 padding */
    }
    
    .site-footer .footer-main {
        margin-bottom: 1.5rem !important;  /* 固定间距 */
    }
    
    .site-footer .footer-content-wrapper {
        max-width: 100%;
        padding-left: 3rem;
        padding-right: 1rem;
    }
    
    .site-footer .footer-left {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer .footer-brand {
        justify-content: flex-start;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .site-footer .footer-brand-name {
        font-size: 1.25rem !important;  /* 固定字体大小 */
        line-height: 1.2 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem !important;  /* 固定间距 */
        width: 100%;
    }
    
    .site-footer .footer-contact-item {
        justify-content: flex-start;
        font-size: 0.875rem !important;  /* 固定字体大小 */
        line-height: 1.5 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-social {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .site-footer .footer-social-title {
        font-size: 0.9375rem !important;  /* 固定字体大小 */
        margin-bottom: 0.875rem !important;  /* 固定间距 */
        text-align: left;
        line-height: 1.4 !important;  /* 固定行高 */
    }
    
    .site-footer .social-icons {
        justify-content: flex-start;
        gap: 0.625rem;
    }
    
    .site-footer .social-icon {
        width: 40px !important;   /* 固定宽度 */
        height: 40px !important;   /* 固定高度 */
        font-size: 1.125rem !important;  /* 固定图标大小 */
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
    }

    .site-footer .footer-qr-pop {
        width: 132px;
        padding: 8px;
        bottom: calc(100% + 10px);
    }

    /* 平衡移动端按钮尺寸，避免 30x30 在 40x40 按钮中过满 */
    .site-footer .footer-social-icon-img {
        width: 26px;
        height: 26px;
    }
    
    .site-footer .footer-right {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        justify-content: center;
    }
    
    .site-footer .footer-right nav.row {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .site-footer .footer-col {
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer .footer-col-title {
        font-size: 1rem !important;  /* 固定字体大小 */
        margin-bottom: 0.875rem !important;  /* 固定间距 */
        line-height: 1.4 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-col-list {
        display: block;
        text-align: left;
        width: 100%;
    }
    
    .site-footer .footer-col-link {
        font-size: 0.875rem !important;  /* 固定字体大小 */
        line-height: 1.5 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-col-link:hover {
        color: var(--primary-color);
        font-weight: 500;
        transform: translateY(-2px);
        padding-left: 0;
    }
    
    .site-footer .footer-col-link:hover::after {
        width: 100%;
    }
    
    .site-footer .footer-divider {
        margin: 1.5rem 0 1rem;
    }
    
    .site-footer .footer-bottom {
        padding-top: 0.75rem !important;  /* 固定间距 */
    }
    
    .site-footer .footer-bottom-left,
    .site-footer .footer-bottom-center,
    .site-footer .footer-bottom-right {
        width: 100%;
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem !important;  /* 固定间距 */
        height: auto !important;  /* 固定高度 */
        min-height: auto !important;
        max-height: none !important;
    }
    
    .site-footer .footer-bottom-center {
        order: 2;
    }
    
    .site-footer .footer-bottom-right {
        order: 3;
    }
    
    .site-footer .copyright {
        font-size: 0.8125rem !important;  /* 固定字体大小 */
        line-height: 1.6 !important;  /* 固定行高 */
    }
    
    .site-footer .legal-links {
        justify-content: center;
        gap: 0.375rem;
    }
    
    .site-footer .legal-link {
        font-size: 0.8125rem !important;  /* 固定字体大小 */
        line-height: 1.6 !important;  /* 固定行高 */
    }
    
    .site-footer .legal-separator {
        font-size: 0.8125rem !important;  /* 固定字体大小 */
        line-height: 1.6 !important;  /* 固定行高 */
    }
    
    .site-footer .icp {
        font-size: 0.75rem !important;  /* 固定字体大小 */
        line-height: 1.6 !important;  /* 固定行高 */
    }
}

/* 小屏移动端：< 576px */
@media (max-width: 575.98px) {
    .site-footer {
        padding: 2rem 0 1rem !important;  /* 固定 padding */
    }
    
    .site-footer .footer-brand-name {
        font-size: 1.125rem !important;  /* 固定字体大小 */
        line-height: 1.2 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-contact-item {
        font-size: 0.8125rem !important;  /* 固定字体大小 */
        line-height: 1.5 !important;  /* 固定行高 */
    }
    
    .site-footer .social-icon {
        width: 36px !important;   /* 固定宽度 */
        height: 36px !important;   /* 固定高度 */
        font-size: 1rem !important;  /* 固定图标大小 */
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
    }

    .site-footer .footer-qr-pop {
        width: 120px;
    }

    .site-footer .footer-back-to-top-floating {
        right: 16px;
        bottom: 14px;
        width: 26px;
        height: 26px;
    }

    .site-footer .footer-back-to-top-floating-icon {
        width: 22px;
        height: 22px;
    }

    .site-footer .footer-contact-im-trigger {
        width: 21px;
        height: 21px;
    }

    .site-footer .footer-contact-im-icon {
        width: 12px;
        height: 12px;
    }

    /* 超小屏进一步收敛图标尺寸，保证触控体验与视觉平衡 */
    .site-footer .footer-social-icon-img {
        width: 24px;
        height: 24px;
    }
    
    .site-footer .footer-col-title {
        font-size: 0.9375rem !important;  /* 固定字体大小 */
        line-height: 1.4 !important;  /* 固定行高 */
    }
    
    .site-footer .footer-col-link {
        font-size: 0.8125rem !important;  /* 固定字体大小 */
        line-height: 1.5 !important;  /* 固定行高 */
    }
}

