/* ============================================================
   framework.css —— 模板框架样式（每个项目共用）
   ------------------------------------------------------------
   包含：
     1. 设计令牌（tokens）：项目只需在 :root 覆盖变量即可换肤
     2. CSS Reset
     3. rem 适配脚手架：html[data-mode="pc" | "h5"] 双端模式
     4. 顶部导航公共组件（设计稿对齐 + 悬浮动效 + 二级菜单 +
        语言选择器 + H5 全屏移动菜单 / 手风琴二级菜单）
        —— JS 依赖的结构钩子（类名/id）保持不变即可
     5. 全局细节（滚动条）
     6. Get a Quote 弹窗
   配套脚本：js/rem-boot.js + js/framework.js + js/common.js
   加载顺序：fonts.css → framework.css → common.css → 页面级 css
   ============================================================ */

/* ============================================================
   1. 设计令牌 —— 按项目品牌覆盖这里即可
   ============================================================ */
:root {
    color-scheme: light;

    /* 适配基准（与 js 中 MODES 保持一致，一般不用改） */
    --design-pc: 1920;
    --design-h5: 750;

    /* 内容最大宽度：H5 7.5rem（750px），PC 19.2rem（1920px） */
    --max-w-h5: 7.5rem;
    --max-w-pc: 19.2rem;

    /* 主题色 */
    --c-primary: #02347D;
    --c-primary-2: #014ADC;
    --c-accent: #00B8E2;
    --c-accent-2: #0063C3;
    --c-error: #E02020;
    --c-success: #1E9E4A;

    /* 品牌强调色（CTA / 下划线） */
    --c-red: #FC0200;
    --c-cta-hover-1: #D40000;
    --c-cta-hover-2: #FF3B30;

    /* 文本与背景 */
    --c-bg: #ffffff;
    --c-text: #333333;
    --c-muted: #666666;
    --c-border: rgba(0, 0, 0, 0.08);

    /* 导航（对齐设计稿：1920×80，背景 #131841/90%） */
    --header-h: 1rem;
    --header-h-pc: 0.8rem;
    /* 80px */
    --header-pad: 0.4rem;
    --header-pad-pc: 1.6rem;
    /* logo 左缘 x=160 */
    --header-bg: rgba(19, 24, 65, 0.9);
    --header-bg-scrolled: rgba(19, 24, 65, 0.92);
    --header-blur: 0.2rem;
    --nav-color: #ffffff;
    --nav-color-hover: #ffffff;
    --nav-underline: #FF0001;
    --submenu-bg: rgba(19, 24, 65, 0.95);
    --submenu-color: rgba(255, 255, 255, 0.85);

    /* 字体 */
    --font-base: "Montserrat", "Poppins", "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* 动效缓动 */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. CSS Reset
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* 该值会被 rem-boot.js / framework.js 动态覆盖，此处作为回退基准 */
    font-size: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    /* H5：内容最大宽度 750px（7.5rem） */
    max-width: var(--max-w-h5);
    margin: 0 auto;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* 无障碍焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 0.02rem solid var(--c-accent);
    outline-offset: 0.04rem;
}

/* ============================================================
   3. rem 适配脚手架（双端模式由 js 在 <html> 上设置 data-mode）
   ============================================================ */
/* 浏览器端（PC，1920 设计稿基准）尺寸覆盖 */
html[data-mode="pc"] body {
    max-width: var(--max-w-pc);
}

/* ============================================================
   4. 顶部导航公共组件
   ------------------------------------------------------------
   ★ 项目接入规则 ★
     JS 依赖的结构钩子（类名/id 请保持）：
       .header                 导航容器（滚动加 .is-scrolled）
       #nav                    桌面导航容器
       .header__nav-item       导航链接（选中态 .is-active）
       .header__nav-item-text  导航文字（外层裁剪，内层翻转动效）
       .header__nav-item-wrap.has-sub   含二级菜单的外层容器
       .header__submenu        二级下拉面板
       .header__search         搜索按钮
       .header__lang           语言选择器（trp 结构）
       .header__cta            Get a Quote（data-quote-modal 触发弹窗）
       #menuBtn / #navMask     汉堡按钮 / 移动菜单遮罩
     交互脚本：framework.js（滚动/汉堡/下拉）+ common.js
       （选中态 + H5 手风琴二级菜单）
   ============================================================ */

/* ---------- Header 容器 ---------- */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-w-h5);
    z-index: 100;
    height: var(--header-h);
    padding: 0 var(--header-pad);
    display: flex;
    align-items: center;
    background: var(--header-bg);
    transition: background 0.4s ease, backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

/* 滚动后：加深 + 磨砂 */
.header.is-scrolled {
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));
    box-shadow: 0 0.02rem 0.16rem rgba(0, 0, 0, 0.35);
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0.3rem;
}

/* 左：品牌 / 右：搜索+语言+CTA；中列为导航 */
.header__group {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.header__group--left {
    justify-content: flex-start;
}

.header__group--right {
    justify-content: flex-end;
    gap: 0.25rem;
}

/* ---------- 品牌 ---------- */
.header__brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--nav-color);
    flex-shrink: 0;
}

.header__brand-img {
    width: 2.22rem;
    /* 222px */
    height: 0.4rem;
    /* 40px */
    display: block;
    object-fit: contain;
}

/* ---------- 导航 ---------- */
.header__nav {
    display: flex;
    align-items: center;
    height: 100%;
}

html[data-mode="pc"] .header__nav {
    justify-content: center;
    gap: 0.45rem;
}

html[data-mode="pc"] .header__nav-item-wrap {
    height: 100%;
}

.header__nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--nav-color);
    font-family: var(--font-base);
    font-size: 0.16rem;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: color 0.3s ease, filter 0.3s ease;
}

/* ----- 悬浮动效①：文字向上翻转（红色复制体从下方滚入） ----- */
.header__nav-item-text {
    display: block;
    overflow: hidden;
    /* 裁剪滚动区域 */
}

.header__nav-item-text>span {
    display: block;
    position: relative;
    line-height: 1.4;
    transition: transform 0.45s var(--ease-out);
    will-change: transform;
}

.header__nav-item-text>span::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    color: var(--c-red);
    text-shadow: 0 0 0.12rem rgba(252, 2, 0, 0.55);
    white-space: nowrap;
}

.header__nav-item:hover .header__nav-item-text>span,
.header__nav-item:focus-visible .header__nav-item-text>span {
    transform: translateY(-100%);
}

/* ----- 悬浮动效②：红色下划线自左向右划入 ----- */
.header__nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.04rem;
    border-radius: 0.02rem;
    background: var(--nav-underline);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
}

.header__nav-item:hover::after,
.header__nav-item.is-active::after {
    transform: scaleX(1);
}

/* ----- 悬浮动效③：文字微光 ----- */
.header__nav-item:hover {
    filter: drop-shadow(0 0 0.06rem rgba(255, 255, 255, 0.35));
}

/* ---------- 二级下拉菜单 ---------- */
/* 有子菜单的导航项外层容器：承担定位锚与 hover 区域 */
.header__nav-item-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

/* 悬停桥接区：填补导航与下拉面板之间的空隙 */
.header__nav-item-wrap.has-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.12rem;
}

/* 顶部小三角：衔接导航与下拉面板 */
.header__submenu::before {
    content: "";
    position: absolute;
    top: -0.05rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 0.1rem;
    height: 0.1rem;
    background: var(--header-bg-scrolled);
    border-radius: 0.01rem;
}

/* 顶部强调线（品牌红） */
.header__submenu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0.14rem;
    right: 0.14rem;
    height: 0.02rem;
    background: linear-gradient(90deg,
            rgba(252, 2, 0, 0) 0%,
            var(--c-red) 50%,
            rgba(252, 2, 0, 0) 100%);
    opacity: 0.9;
}

.header__submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 1.9rem;
    margin-top: 0.12rem;
    padding: 0.1rem 0.08rem;
    box-sizing: border-box;
    background: var(--submenu-bg);
    backdrop-filter: blur(0.16rem);
    -webkit-backdrop-filter: blur(0.16rem);
    border: 0.01rem solid rgba(255, 255, 255, 0.08);
    border-radius: 0.08rem;
    box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.08),
        0 0.06rem 0.2rem rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-0.06rem);
    transition: opacity 0.22s ease,
        transform 0.25s var(--ease-out), visibility 0.22s;
    z-index: 9990;
}

.header__nav-item-wrap.has-sub:hover .header__submenu,
.header__nav-item-wrap.has-sub:focus-within .header__submenu,
.header__nav-item-wrap.has-sub.is-open .header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header__submenu a {
    position: relative;
    display: block;
    padding: 0.09rem 0.14rem;
    border-radius: 0.05rem;
    color: var(--submenu-color);
    font-family: var(--font-base);
    font-size: 0.14rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

/* 左侧滑入的小短杠（品牌红） */
.header__submenu a::before {
    content: "";
    position: absolute;
    left: 0.04rem;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 0.03rem;
    height: 60%;
    border-radius: 0.02rem;
    background: var(--c-red);
    transition: transform 0.18s ease;
}

.header__submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
    padding-left: 0.18rem;
}

.header__submenu a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.header__submenu a+a {
    margin-top: 0.02rem;
}

/* ---------- 搜索按钮 ---------- */
.header__search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header__search img {
    width: 0.14rem;
    height: 0.14rem;
    transition: transform 0.4s var(--ease-out);
}

.header__search:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0.12rem rgba(255, 255, 255, 0.18);
}

.header__search:hover img {
    transform: scale(1.18) rotate(-8deg);
}

.header__search:active img {
    transform: scale(0.95);
}

/* ---------- Get a Quote 按钮（135×40 圆角 30，#FC0200） ----------
   悬浮动效：渐变擦入 + 高光扫过 + 红色脉冲光圈 + 上浮 */
.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 0.4rem;
    padding: 0 0.2rem;
    border-radius: 0.3rem;
    background: var(--c-red);
    /* 简写会重置 no-repeat，必须显式补回，避免回退时渐变平铺 */
    background-repeat: no-repeat;
    color: #FFF;
    font-family: var(--font-base);
    font-size: 0.16rem;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    /* 底色渐变自左向右擦入 */
    background-image: linear-gradient(100deg, var(--c-cta-hover-1) 0%, var(--c-cta-hover-2) 100%);
    background-size: 0% 100%;
    background-position: 0 0;
    transition: background-size 0.45s var(--ease-out),
        transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.header__cta span {
    position: relative;
    z-index: 1;
}

/* 红色脉冲光圈层 */
.header__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}

.header__cta:hover {
    background-image: linear-gradient(100deg, var(--c-cta-hover-1) 0%, var(--c-cta-hover-2) 100%);
    background-size: 100% 100%;
    transform: translateY(-0.01rem);
    box-shadow: 0 0.04rem 0.14rem rgba(252, 2, 0, 0.4);
}

.header__cta:hover::before {
    opacity: 1;
    animation: navCtaPulse 1.5s ease-out infinite;
}

@keyframes navCtaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 2, 0, 0.45);
    }

    100% {
        box-shadow: 0 0 0 0.16rem rgba(252, 2, 0, 0);
    }
}

/* 高光扫过层：关键帧动画，每次悬浮从左侧完整扫到右侧一次 */
.header__cta::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 45%;
    height: 180%;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-160%) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    transition: none;
    will-change: transform;
}

.header__cta:hover::after {
    animation: navCtaShine 0.9s var(--ease-out) forwards;
}

@keyframes navCtaShine {
    0% {
        transform: translateX(-160%) skewX(-20deg);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(340%) skewX(-20deg);
        opacity: 0;
    }
}

.header__cta:active {
    transform: translateY(0);
    transition-duration: 0.12s;
}

/* ---------- 语言选择器（trp 结构；深色主题对齐导航） ---------- */
.header__lang {
    display: flex;
    align-items: center;
}

.trp-shortcode-switcher__wrapper {
    position: relative;
    display: inline-flex;
    font-family: var(--font-base);
    font-size: 0.16rem;
}

/* ANCHOR：仅占位（不可见），尺寸由 OVERLAY 覆盖 */
.trp-language-switcher.trp-shortcode-anchor {
    visibility: hidden;
}

/* OVERLAY：实际交互层，完全覆盖锚点 */
.trp-language-switcher.trp-shortcode-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    cursor: pointer;
}

.trp-current-language-item__wrapper {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    height: 100%;
    padding: 0.06rem 0.1rem;
    border-radius: var(--border-radius);
    transition: background var(--transition-duration) ease;
}

.trp-language-item {
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 0.16rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.trp-shortcode-arrow {
    width: 0.16rem;
    height: 0.16rem;
    transition: transform 0.3s var(--ease-out);
}

/* 悬浮：底色反馈 + 箭头翻转 */
.trp-shortcode-overlay:hover .trp-current-language-item__wrapper {
    background: var(--bg-hover);
}

.trp-shortcode-overlay:hover .trp-shortcode-arrow {
    transform: rotate(180deg);
}

/* 下拉列表 */
.trp-shortcode-overlay .trp-switcher-dropdown-list {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 1.7rem;
    margin: 0;
    padding: 0.08rem;
    list-style: none;
    background: var(--submenu-bg);
    backdrop-filter: blur(0.16rem);
    -webkit-backdrop-filter: blur(0.16rem);
    border: 0.01rem solid rgba(255, 255, 255, 0.08);
    border-radius: 0.08rem;
    box-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.06rem);
    transition: opacity 0.22s ease,
        transform 0.25s var(--ease-out), visibility 0.22s;
    z-index: 40;
}

/* 悬停桥接区：填补触发器与下拉面板之间的空隙 */
.trp-shortcode-overlay .trp-switcher-dropdown-list::before {
    content: "";
    position: absolute;
    top: -0.14rem;
    left: 0;
    right: 0;
    height: 0.14rem;
}

.trp-shortcode-overlay:hover .trp-switcher-dropdown-list,
.trp-shortcode-overlay:focus-within .trp-switcher-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.trp-switcher-dropdown-list .trp-language-item {
    display: flex;
    align-items: center;
    padding: 0.08rem 0.12rem;
    border-radius: 0.05rem;
    color: var(--submenu-color);
    font-size: 0.14rem;
    transition: background 0.18s ease, color 0.18s ease,
        padding-left 0.18s ease;
}

.trp-switcher-dropdown-list .trp-language-item:hover {
    background: rgba(252, 2, 0, 0.16);
    color: #fff;
    padding-left: 0.18rem;
}

/* ---------- 汉堡菜单按钮（默认隐藏，仅 H5 显示） ---------- */
.menu-btn {
    display: none;
}

html[data-mode="h5"] .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.09rem;
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

html[data-mode="h5"] .menu-btn span {
    display: block;
    width: 0.22rem;
    height: 0.03rem;
    border-radius: 0.03rem;
    background: var(--nav-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* H5 头部恒为深色：汉堡按钮保持白色，不随 is-scrolled 变深 */
html[data-mode="h5"] .header.is-scrolled .menu-btn {
    background: rgba(255, 255, 255, 0.24);
}

html[data-mode="h5"] .header.is-scrolled .menu-btn span {
    background: #fff;
}

/* 展开态：三道杠变叉 */
html[data-mode="h5"] .menu-btn.is-open span:nth-child(1) {
    transform: translateY(0.12rem) rotate(45deg);
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-0.12rem) rotate(-45deg);
}

/* ---------- H5 Header 布局 ---------- */
html[data-mode="h5"] .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    width: 100%;
    height: 100%;
}

html[data-mode="h5"] .header__search {
    width: 0.6rem;
    height: 0.6rem;
}

html[data-mode="h5"] .header__search img {
    width: 0.4rem;
    height: 0.4rem;
}

/* H5：桌面导航 / 搜索 / 语言选择器隐藏（移动菜单接管） */
html[data-mode="h5"] .header__nav,
html[data-mode="h5"] .header__lang {
    display: none;
}

html[data-mode="h5"] .header__group--right {
    gap: 0.12rem;
}

html[data-mode="h5"] .header__brand-img {
    height: 1rem;
}

html[data-mode="h5"] .header__cta {
    height: 0.56rem;
    min-width: 1.7rem;
    font-size: 0.24rem;
    border-radius: 0.28rem;
}

/* ---------- H5：JS 动态构建的全屏移动菜单（.header__nav-mobile） ---------- */
.header__nav-mobile {
    display: none;
}

html[data-mode="h5"] .header__nav-mobile {
    position: fixed;
    top: var(--header-h);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-w-h5);
    height: calc(100vh - var(--header-h));
    z-index: 99;
    background: var(--c-bg);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.3rem 0.6rem 0.6rem;
    box-sizing: border-box;
    box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.08);
}

html[data-mode="h5"] .header__nav-mobile.is-open {
    display: flex;
    animation: h5NavFadeIn 0.25s ease both;
}

@keyframes h5NavFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -0.2rem);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 一级项：关闭翻转动效，恢复常规文本 */
html[data-mode="h5"] .header__nav-mobile .header__nav-item-text {
    overflow: visible;
}

html[data-mode="h5"] .header__nav-mobile .header__nav-item-text>span {
    transition: none;
}

/* 触屏点击后 :hover/:focus-visible 会残留，禁用翻转上移，避免文字错位 */
html[data-mode="h5"] .header__nav-mobile .header__nav-item:hover .header__nav-item-text>span,
html[data-mode="h5"] .header__nav-mobile .header__nav-item:focus-visible .header__nav-item-text>span {
    transform: none;
}

html[data-mode="h5"] .header__nav-mobile .header__nav-item-text>span::after {
    display: none;
}

html[data-mode="h5"] .header__nav-mobile .header__nav-item {
    width: 100%;
    padding: 0.22rem 0;
    border-bottom: none;
    color: var(--c-text);
    font-size: 0.3rem;
}

html[data-mode="h5"] .header__nav-mobile>.header__nav-item {
    border-bottom: 0.01rem solid #f0f2f5;
}

html[data-mode="h5"] .header__nav-mobile .header__nav-item:active {
    color: var(--c-accent);
}

/* 选中态：桌面导航克隆时携带的 .is-active 在移动菜单中保持可见
   （桌面的红色下划线 ::after 已禁用，此处以文字颜色体现） */
html[data-mode="h5"] .header__nav-mobile .header__nav-item.is-active,
html[data-mode="h5"] .header__nav-mobile .header__submenu a.is-active {
    color: var(--c-red);
}

/* 桌面态的悬停伪元素（下划线 / 悬停桥接）在移动菜单中禁用 */
html[data-mode="h5"] .header__nav-mobile .header__nav-item::after {
    display: none;
}

html[data-mode="h5"] .header__nav-mobile .header__nav-item-wrap.has-sub::after {
    display: none;
}

/* ----- H5 手风琴二级菜单（framework.js 构建） ----- */
/* 移动菜单是固定高度容器，必须重置基础规则里的 height:100%，
   否则各项高度计算错乱，展开面板会溢出叠到相邻项上 */
html[data-mode="h5"] .header__nav-mobile .header__nav-item {
    height: auto;
}

html[data-mode="h5"] .header__nav-mobile>.header__nav-item-wrap {
    display: block;
    /* 覆盖基础 flex 布局，让二级面板换行到下方 */
    height: auto;
    border-bottom: 0.01rem solid #f0f2f5;
}

/* 含二级菜单的一级项：两端对齐 + 展开箭头 */
html[data-mode="h5"] .header__nav-mobile>.header__nav-item-wrap>.header__nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html[data-mode="h5"] .header__nav-mobile>.header__nav-item-wrap.has-sub>.header__nav-item::after {
    content: "";
    display: block;
    position: static;
    width: 0.14rem;
    height: 0.14rem;
    margin-right: 0.06rem;
    background: transparent;
    /* 覆盖基础下划线的红色背景，仅保留边框构成箭头 */
    border-right: 0.03rem solid currentColor;
    border-bottom: 0.03rem solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
    transition: transform 0.3s var(--ease-out);
}

html[data-mode="h5"] .header__nav-mobile>.header__nav-item-wrap.has-sub.is-open>.header__nav-item::after {
    transform: rotate(225deg);
}

/* 二级面板：手风琴（覆盖桌面定位样式；特异度高于桌面 hover 规则）
   用 max-height + opacity 过渡代替 display 切换，展开/收起有动画 */
html[data-mode="h5"] .header__nav-mobile .header__nav-item-wrap .header__submenu {
    position: static;
    display: block;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 0.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: 0;
    transition: max-height 0.35s var(--ease-out),
        padding-bottom 0.35s var(--ease-out);
}

html[data-mode="h5"] .header__nav-mobile .header__submenu::before,
html[data-mode="h5"] .header__nav-mobile .header__submenu::after {
    display: none;
}

html[data-mode="h5"] .header__nav-mobile .header__nav-item-wrap.is-open>.header__submenu {
    max-height: 4rem;
    padding-bottom: 0.08rem;
}

html[data-mode="h5"] .header__nav-mobile .header__submenu a {
    color: var(--c-muted);
    font-size: 0.26rem;
    padding: 0.14rem 0 0.14rem 0.24rem;
    border-bottom: 0.01rem dashed #f0f2f5;
}

html[data-mode="h5"] .header__nav-mobile .header__submenu a::before {
    display: none;
}

html[data-mode="h5"] .header__nav-mobile .header__submenu a:hover {
    background: transparent;
    color: var(--c-primary);
    padding-left: 0.24rem;
}

/* ---------- 遮罩 ---------- */
.nav-mask {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(5, 8, 18, 0.72);
    backdrop-filter: blur(0.06rem);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-mask.is-visible {
    opacity: 1;
}

/* ---------- PC 尺寸覆盖 ---------- */
html[data-mode="pc"] .header {
    max-width: var(--max-w-pc);
    padding: 0 var(--header-pad-pc);
    height: var(--header-h-pc);
}

html[data-mode="pc"] .header__inner {
    gap: 0.4rem;
}

/* ============================================================
   5. 全局细节
   ============================================================ */
/* 全局滚动条：与主题色统一 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--c-primary) 0%, #02347D 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1E62C9 0%, var(--c-primary) 100%);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox：scrollbar-color 生效后会禁用 ::-webkit-scrollbar 自定义，
   因此用 @supports 限定只在 Firefox 生效 */
@supports (-moz-appearance: none) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--c-primary) transparent;
    }
}

/* ============================================================
   6. Get a Quote 弹窗（全局，由 common.js 触发）
   设计稿：777 × 576px，圆角 10px
   ============================================================ */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quote-modal.is-open {
    opacity: 1;
    visibility: visible;
}

body.quote-modal-open {
    overflow: hidden;
}

.quote-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(0.04rem);
}

.quote-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 7.77rem;
    /* 777px */
    /* 576px */
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    border-radius: 0.1rem;
    /* 10px */
    overflow: hidden;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.3);
    transform: translateY(0.2rem) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-modal.is-open .quote-modal__dialog {
    transform: translateY(0) scale(1);
}

/* ---------- 头部：深色渐变 + 右上角产品图 ---------- */
.quote-modal__head {
    position: relative;
    flex: 0 0 1.44rem;
    /* 144px */
    border-radius: 0.1rem 0.1rem 0 0;
    background: linear-gradient(270deg, #000 9.9%, #1d2235 90.78%);
    /* 允许 hero 图溢出 head，配合 z-index 浮在表单之上 */
    overflow: visible;
}

.quote-modal__title {
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    color: #fff;
    font-family: "Figtree", sans-serif;
    font-size: 0.4rem;
    /* 40px */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* hero 图保持原尺寸（317x238），head 高度不变（144px），
   图片溢出的下半部分通过 z-index 浮在表单之上，完整显示不被遮盖 */
.quote-modal__hero {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 3.17rem;
    /* 317px */
    height: 2.38rem;
    /* 238px */
    object-fit: cover;
    pointer-events: none;
}

/* ---------- 表单（结构与 footer 第一屏一致；form 内部不使用 class，
   基础样式由 common.css 的“外层结构选择器”提供） ----------
   注意：common.css 晚于 framework.css 加载，这里保留 .quote-modal 前缀
   提高优先级，确保弹窗覆盖共享基础规则中的尺寸类属性 */
.quote-modal .quote-modal__dialog form {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 0.49rem 0.4rem 0.28rem;
    background: transparent;
    border-radius: 0;
    overflow-y: auto;
}

.quote-modal .quote-modal__dialog form>ul {
    justify-content: center;
    row-gap: 0.14rem;
    margin-bottom: 0.18rem;
}

/* 字段宽度沿用 footer 规则（前 4 个 300px 两列，后 2 个 644px 整行），仅压缩行高以适配弹窗 */
.quote-modal .quote-modal__dialog form>ul>li {
    min-height: auto !important;
}

/* 弹窗表单无 .is-in 入场动画，提交按钮间距比 footer 略紧凑 */
.quote-modal .quote-modal__dialog form>button[type="submit"] {
    margin: 0.12rem 0 0;
    padding: 0.16rem 0.3rem;
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .quote-modal {
    padding: 0.16rem;
}

html[data-mode="h5"] .quote-modal__dialog {
    width: 100%;
    height: auto;
    max-height: 92vh;
}

html[data-mode="h5"] .quote-modal__head {
    flex-basis: 1.44rem;
}

html[data-mode="h5"] .quote-modal__title {
    left: 0.4rem;
    font-size: 0.4rem;
}

html[data-mode="h5"] .quote-modal__hero {
    display: none;
}

html[data-mode="h5"] .quote-modal .quote-modal__dialog form {
    padding: 0.3rem;
}

html[data-mode="h5"] .quote-modal .quote-modal__dialog form>ul {
    flex-direction: column;
    gap: 0.24rem;
}

html[data-mode="h5"] .quote-modal .quote-modal__dialog form>ul>li {
    width: 100%;
}

html[data-mode="h5"] .quote-modal .quote-modal__dialog form>button[type="submit"] {
    font-size: 0.32rem;
}

/* ---------- 右侧表单卡片 ----------
   说明：quote 表单内部不使用 class/id，样式一律通过外层父级结构定位。
   footer 第一屏以 section.quote 为锚点；JS 弹窗以 .quote-modal 为锚点，
   两处表单结构完全一致，故选择器成对书写。 */
.quote form,
.quote-modal form {
    flex: 0 0 auto;
    width: 7.24rem;
    /* 644 + 40*2 = 724px */
    padding: 0.4rem;
    /* 40px */
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 0.04rem;
    /* 4px */
}

.quote form>ul,
.quote-modal form>ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.44rem;
    /* 44px = 644 - 300 - 300 */
    row-gap: 0.24rem;
    padding: 0;
    list-style: none;
}

.quote form>ul>li,
.quote-modal form>ul>li {
    flex: 0 0 auto;
}

/* 前 4 个字段：两列，宽 300 */
.quote form>ul>li:nth-child(1),
.quote form>ul>li:nth-child(2),
.quote form>ul>li:nth-child(3),
.quote form>ul>li:nth-child(4),
.quote-modal form>ul>li:nth-child(1),
.quote-modal form>ul>li:nth-child(2),
.quote-modal form>ul>li:nth-child(3),
.quote-modal form>ul>li:nth-child(4) {
    width: 3rem;
    /* 300px */
    min-height: 0.92rem;
    /* 92px */
}

/* 附件行：整行，上传按钮位于输入框右侧（绝对定位） */
.quote form>ul>li:nth-child(5),
.quote-modal form>ul>li:nth-child(5) {
    width: 6.44rem;
    /* 644px */
    min-height: 0.92rem;
    /* 92px */
}

/* 留言行：整行 */
.quote form>ul>li:nth-child(6),
.quote-modal form>ul>li:nth-child(6) {
    width: 6.44rem;
    /* 644px */
    min-height: 1.21rem;
    /* 121px */
}

.quote form li>p,
.quote-modal form li>p {
    margin: 0;
}

/* 字段包装层（原 span.wpcf7-form-control-wrap） */
.quote form li>p>span,
.quote-modal form li>p>span {
    display: block;
}

/* 附件行：输入框容器（供 Upload 按钮绝对定位） */
.quote form li:nth-child(5)>p>span>span,
.quote-modal form li:nth-child(5)>p>span>span {
    position: relative;
}

/* 附件输入框：为右侧 Upload 按钮预留空间 */
.quote form li:nth-child(5) input,
.quote-modal form li:nth-child(5) input {
    padding-right: 1.04rem;
    /* 为右侧按钮留出空间（92 + 12） */
}

.quote form label,
.quote-modal form label {
    display: block;
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 0.16rem;
    /* 16px */
    font-style: normal;
    font-weight: 600;
    line-height: 175%;
}

.quote form input,
.quote-modal form input,
.quote form textarea,
.quote-modal form textarea {
    display: block;
    width: 100%;
    padding: 0.04rem 0 0.08rem;
    border: none;
    border-bottom: 1px solid #E5E5E5;
    background: transparent;
    outline: none;
    color: #999;
    font-family: "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 175%;
}

.quote form input::placeholder,
.quote-modal form input::placeholder,
.quote form textarea::placeholder,
.quote-modal form textarea::placeholder {
    color: #999;
}

/* textarea 单独调整：去掉浏览器默认边框外观、限制拖拽缩放 */
.quote form textarea,
.quote-modal form textarea {
    height: 1.2rem;
    min-height: 0;
    resize: vertical;
}

html[data-mode="h5"] .quote form textarea,
html[data-mode="h5"] .quote-modal form textarea {
    height: 1.6rem;
}

/* Upload 按钮（附件行，绝对定位于输入框右侧） */
.quote form li:nth-child(5) button[type="button"],
.quote-modal form li:nth-child(5) button[type="button"] {
    position: absolute;
    right: 0;
    bottom: 0.16rem;
    width: 0.92rem;
    /* 92px */
    height: 0.35rem;
    /* 35px */
    border: none;
    border-radius: 0.04rem;
    background: #02347D;
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 0.35rem;
    text-align: center;
    cursor: pointer;
}

/* 提交按钮 */
.quote form>button[type="submit"],
.quote-modal form>button[type="submit"],
.quote form>p>button[type="submit"],
.quote-modal form>p>button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.2rem 0.3rem;
    /* 20 / 30 */
    border: none;
    border-radius: 0.04rem;
    background: var(--Style, #02347D);
    color: #FFF;
    font-family: "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 0.24rem 0;
    cursor: pointer;
}

/* 提交按钮被 p 包裹时，去掉 p 的默认间距，保持与其他页一致的排版 */
.quote form>p:has(> button[type="submit"]),
.quote-modal form>p:has(> button[type="submit"]) {
    margin: 0;
}

/* ---------- 按钮悬浮微交互（统一升级） ----------
   底色渐变自左向右擦入 + 高光斜向扫过 + 轻微上浮 + 紧致柔和投影
   ------------------------------------------------ */
.quote form>button[type="submit"],
.quote-modal form>button[type="submit"],
.quote form>p>button[type="submit"],
.quote-modal form>p>button[type="submit"],
.quote form li:nth-child(5) button[type="button"],
.quote-modal form li:nth-child(5) button[type="button"] {
    overflow: hidden;
    background-image: linear-gradient(100deg, #0A4BA8 0%, #014ADC 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: 0 0;
    transition: background-size 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}

/* 建立包含块（Upload 按钮自身已绝对定位，不覆盖 position） */
.quote form>button[type="submit"],
.quote-modal form>button[type="submit"],
.quote form>p>button[type="submit"],
.quote-modal form>p>button[type="submit"] {
    position: relative;
}

/* 高光扫过层 */
.quote form>button[type="submit"]::after,
.quote-modal form>button[type="submit"]::after,
.quote form>p>button[type="submit"]::after,
.quote-modal form>p>button[type="submit"]::after,
.quote form li:nth-child(5) button[type="button"]::after,
.quote-modal form li:nth-child(5) button[type="button"]::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 0;
    width: 34%;
    height: 160%;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.38) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-220%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
}

.quote form>button[type="submit"]:hover,
.quote-modal form>button[type="submit"]:hover,
.quote form>p>button[type="submit"]:hover,
.quote-modal form>p>button[type="submit"]:hover,
.quote form li:nth-child(5) button[type="button"]:hover,
.quote-modal form li:nth-child(5) button[type="button"]:hover {
    background-image: linear-gradient(100deg, #0A4BA8 0%, #014ADC 100%);
    background-size: 100% 100%;
    transform: translateY(-0.02rem);
    box-shadow: 0 0.04rem 0.12rem rgba(2, 52, 125, 0.22);
    filter: none;
}

.quote form>button[type="submit"]:hover::after,
.quote-modal form>button[type="submit"]:hover::after,
.quote form>p>button[type="submit"]:hover::after,
.quote-modal form>p>button[type="submit"]:hover::after,
.quote form li:nth-child(5) button[type="button"]:hover::after,
.quote-modal form li:nth-child(5) button[type="button"]:hover::after {
    transform: translateX(320%) skewX(-18deg);
    opacity: 1;
}

.quote form>button[type="submit"]:active,
.quote-modal form>button[type="submit"]:active,
.quote form>p>button[type="submit"]:active,
.quote-modal form>p>button[type="submit"]:active,
.quote form li:nth-child(5) button[type="button"]:active,
.quote-modal form li:nth-child(5) button[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 0.01rem 0.04rem rgba(2, 52, 125, 0.16);
    transition-duration: 0.12s;
}

/* 表单下方说明文字（仅 footer 表单存在） */
.quote form>p {
    color: #999;
    font-family: "Montserrat", sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin: 0;
}

/* ---------- H5 适配（≤750px 设计稿） ---------- */
html[data-mode="h5"] .quote {
    height: auto;
    padding: 0.6rem 0.3rem;
    align-items: stretch;
}

html[data-mode="h5"] .quote__inner {
    flex-direction: column;
    align-items: stretch;
    max-width: 7.5rem;
}

html[data-mode="h5"] .quote__intro {
    margin-right: 0;
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .quote__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .quote__desc {
    font-size: 0.32rem;
    max-width: none;
}

html[data-mode="h5"] .quote form,
html[data-mode="h5"] .quote-modal form {
    width: 100%;
    padding: 0.3rem;
}

html[data-mode="h5"] .quote form>ul,
html[data-mode="h5"] .quote-modal form>ul {
    flex-direction: column;
    gap: 0.24rem;
    width: 100%;
    margin-bottom: 0.24rem;
}

html[data-mode="h5"] .quote form>ul>li,
html[data-mode="h5"] .quote form>ul>li:nth-child(1),
html[data-mode="h5"] .quote form>ul>li:nth-child(2),
html[data-mode="h5"] .quote form>ul>li:nth-child(3),
html[data-mode="h5"] .quote form>ul>li:nth-child(4),
html[data-mode="h5"] .quote form>ul>li:nth-child(5),
html[data-mode="h5"] .quote form>ul>li:nth-child(6),
html[data-mode="h5"] .quote-modal form>ul>li,
html[data-mode="h5"] .quote-modal form>ul>li:nth-child(1),
html[data-mode="h5"] .quote-modal form>ul>li:nth-child(2),
html[data-mode="h5"] .quote-modal form>ul>li:nth-child(3),
html[data-mode="h5"] .quote-modal form>ul>li:nth-child(4),
html[data-mode="h5"] .quote-modal form>ul>li:nth-child(5),
html[data-mode="h5"] .quote-modal form>ul>li:nth-child(6) {
    width: 100%;
}

html[data-mode="h5"] .quote form li:nth-child(5) input,
html[data-mode="h5"] .quote-modal form li:nth-child(5) input {
    padding-right: 1.5rem;
}

html[data-mode="h5"] .quote form li:nth-child(5) button[type="button"],
html[data-mode="h5"] .quote-modal form li:nth-child(5) button[type="button"] {
    width: 1.2rem;
    height: 0.5rem;
    line-height: 0.5rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .quote form label,
html[data-mode="h5"] .quote form input,
html[data-mode="h5"] .quote form textarea,
html[data-mode="h5"] .quote-modal form label,
html[data-mode="h5"] .quote-modal form input,
html[data-mode="h5"] .quote-modal form textarea {
    font-size: 0.32rem;
}

html[data-mode="h5"] .quote form>button[type="submit"],
html[data-mode="h5"] .quote-modal form>button[type="submit"],
html[data-mode="h5"] .quote form>p>button[type="submit"],
html[data-mode="h5"] .quote-modal form>p>button[type="submit"] {
    font-size: 0.32rem;
}

html[data-mode="h5"] .quote form>p {
    font-size: 0.32rem;
}

/* ============================================================
   footer.css —— 页脚组件（对齐 Figma 设计稿 1920×640 + 60 底栏）
   ------------------------------------------------------------
   结构：
     .footer
       .footer__main        背景图区域（footer.webp）
         .footer__inner
           .footer__top     左品牌块 + 右导航列（.footer__col）
           .footer__contact 联系方式（grid 3 列 × 2 行）
       .footer__bar         深色版权条
   说明：
     - 图标使用 footer 内联 <symbol> + <use>，填充色跟随 CSS
     - 导航链接带个性化悬浮动效（位移 + 下划线展开）
     - H5：导航列由 common.js footerAccordion 驱动手风琴（.is-open）
   ============================================================ */

.footer {
    background: #131841;
}

/* ---------- 图标符号库（隐藏） ---------- */
.footer__svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- 主区域：背景图 ---------- */
.footer__main {
    background: #131841 url("../assets/images/footer/footer.webp") center / cover no-repeat;
}

.footer__inner {
    max-width: 14rem;
    /* 1400px 内容区 */
    margin: 0 auto;
    padding: 0.95rem 0 0.7rem;
}

/* ---------- 顶部：品牌 + 导航 ---------- */
.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
}

.footer__brand {
    flex: 0 0 auto;
}

.footer__logo img {
    width: 2.22rem;
    /* 222px */
    height: auto;
}

.footer__tagline {
    margin-top: 0.15rem;
    max-width: 3.04rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
}

.footer__social {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.footer__social-link {
    display: block;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.footer__social-link svg {
    display: block;
    width: 0.26rem;
    height: 0.26rem;
    fill: currentColor;
}

.footer__social-link:hover {
    color: var(--nav-underline, #FF0001);
    transform: translateY(-0.04rem);
}

/* ---------- 导航列 ---------- */
.footer__nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 0.3rem;
    max-width: 9.02rem;
    /* 902px */
}

.footer__col-title {
    color: #fff;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1.3;
}

.footer__links {
    list-style: none;
    margin-top: 0.32rem;
}

.footer__links li {
    display: flex;
}

/* 个性化悬浮动效：右移 + 强调色下划线展开 */
.footer__links a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.04rem;
    color: #e5e5e5;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 0.32rem;
    transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.footer__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.02rem;
    background: var(--nav-underline, #FF0001);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
}

.footer__links a:hover {
    color: #fff;
    transform: translateX(0.08rem);
}

.footer__links a:hover::after {
    transform: scaleX(1);
}

/* ---------- 联系方式 ---------- */
.footer__contact {
    display: grid;
    grid-template-columns: 4.98rem 5.01rem 4.01rem;
    gap: 0.27rem 0;
    margin-top: 0.81rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #fff;
    transition: transform 0.3s var(--ease-out);
}

.footer__contact-item:hover {
    transform: translateX(0.06rem);
}

.footer__contact-icon {
    flex: 0 0 0.4rem;
    width: 0.4rem;
    height: 0.4rem;
}

.footer__contact-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.footer__contact-ring {
    fill: transparent;
    stroke: #fff;
    stroke-width: 1;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.footer__contact-glyph {
    fill: #fff;
    transition: fill 0.3s ease;
}

.footer__contact-item:hover .footer__contact-ring {
    fill: #fff;
}

.footer__contact-item:hover .footer__contact-glyph {
    fill: #131841;
}

.footer__contact-text {
    font-size: 0.2rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- 底部版权条 ---------- */
.footer__bar {
    background: #131841;
}

.footer__bar-inner {
    max-width: 14rem;
    margin: 0 auto;
    min-height: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    padding: 0.06rem 0;
}

.footer__copy {
    color: #d9d9d9;
    font-size: 0.16rem;
    font-weight: 500;
}

.footer__privacy {
    color: #d9d9d9;
    font-size: 0.16rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer__privacy:hover {
    color: #fff;
}

/* ============================================================
   H5 适配（750 设计稿基准）
   ============================================================ */
html[data-mode="h5"] .footer__inner {
    padding: 0.6rem 0.4rem 0.5rem;
}

html[data-mode="h5"] .footer__top {
    flex-direction: column;
    gap: 0;
}

html[data-mode="h5"] .footer__logo img {
    width: 3.4rem;
}

html[data-mode="h5"] .footer__tagline {
    margin-top: 0.24rem;
    max-width: 100%;
    font-size: 0.32rem;
}

html[data-mode="h5"] .footer__social {
    margin-top: 0.36rem;
}

html[data-mode="h5"] .footer__social-link svg {
    width: 0.4rem;
    height: 0.4rem;
}

html[data-mode="h5"] .footer__nav {
    flex-direction: column;
    gap: 0;
    max-width: none;
    width: 100%;
    margin-top: 0.5rem;
}

/* ---------- 手风琴（配合 common.js footerAccordion：.is-open） ---------- */
html[data-mode="h5"] .footer__col {
    border-bottom: 0.01rem solid rgba(255, 255, 255, 0.12);
}

html[data-mode="h5"] .footer__col:last-child {
    border-bottom: 0;
}

html[data-mode="h5"] .footer__col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.26rem 0;
    cursor: pointer;
    font-size: 0.38rem;
}

html[data-mode="h5"] .footer__col-title::after {
    content: "";
    width: 0.16rem;
    height: 0.16rem;
    margin-right: 0.08rem;
    border-right: 0.025rem solid rgba(255, 255, 255, 0.8);
    border-bottom: 0.025rem solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg) translateY(-0.02rem);
    transition: transform 0.3s var(--ease-out);
}

html[data-mode="h5"] .footer__col.is-open .footer__col-title::after {
    transform: rotate(225deg) translateY(-0.02rem);
}

html[data-mode="h5"] .footer__links {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

html[data-mode="h5"] .footer__col.is-open .footer__links {
    max-height: 3.2rem;
    padding-bottom: 0.3rem;
}

html[data-mode="h5"] .footer__links a {
    font-size: 0.32rem;
    line-height: 0.48rem;
}

html[data-mode="h5"] .footer__contact {
    grid-template-columns: 1fr;
    gap: 0.24rem;
    margin-top: 0.5rem;
}

html[data-mode="h5"] .footer__contact-text {
    font-size: 0.32rem;
}

html[data-mode="h5"] .footer__bar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.06rem;
    padding: 0.16rem 0.3rem;
    text-align: center;
}

html[data-mode="h5"] .footer__copy,
html[data-mode="h5"] .footer__privacy {
    font-size: 0.32rem;
    text-align: center;
}