/* ==========================================================================
   0731M 长沙手机平台网 · 前台全站样式
   顺序：令牌 → 复位 → 排版 → 布局 → 组件 → 页头页尾 → 首页 → 品牌报价 → 二手 / 对比 / 404 → 浮层 → 响应式
   ========================================================================== */

:root {
    /* ======================= 颜色令牌（全站唯一写死色值的地方） =======================
       命名规则：--color-<角色>[-<强度>]。组件与模板只引用令牌，不写色值。
       暗色皮肤只需在 html[data-theme="dark"] 里覆盖同名令牌，组件样式无需改动。 */

    /* ---------- 表面：页面与卡片 ---------- */
    --color-bg-page: #f8f8f8; /* 页面底 */
    --color-surface: #ffffff; /* 卡片 / 弹层 / 输入框表面 */
    --color-surface-soft: #f5f5f7; /* 次级表面：图片底衬、区域底 */
    --color-surface-muted: #fafafa; /* 表头 / 行头 */
    --color-surface-hover: #f5f5f5; /* 列表项悬停底 */
    --color-surface-warm: #faf9f6; /* 暖色表面：二手规格卡 */
    --color-surface-strip: #f2f2f2; /* 旧版板块工具条底 */
    --color-surface-inverse: #1d1d1f; /* 反色块底 */
    --color-surface-glass: rgba(255, 255, 255, 0.96); /* 玻璃浮层 */
    --color-toast-bg: rgba(29, 29, 31, 0.92); /* 轻提示底 */
    --color-overlay: rgba(17, 19, 14, 0.52); /* 遮罩 */
    --color-overlay-soft: rgba(17, 19, 14, 0.32); /* 轻遮罩 */

    /* ---------- 文字 ---------- */
    --color-text: #1d1d1f; /* 主文字 */
    --color-text-soft: #3d3d41; /* 次级文字：列表主名、行头 */
    --color-text-muted: #6e6e73; /* 次要文字：说明、表注 */
    --color-text-faint: #8e8e93; /* 弱化文字：角标、页脚 */
    --color-text-disabled: #b0b0b6; /* 空值占位 */
    --color-text-ghost: #d2d2d8; /* 分隔符 / 斜线 */
    --color-text-inverse: #ffffff; /* 深底上的文字 */
    --color-text-inverse-soft: rgba(255, 255, 255, 0.8); /* 深底上的次要文字 */

    /* ---------- 描边 ---------- */
    --color-border: #e7e7ea; /* 通用描边与分隔线 */
    --color-border-strong: #d3d3d8; /* 强描边：按钮、虚线框 */
    --color-border-soft: #ececec; /* 报价页卡片描边 */
    --color-border-faint: #efefef; /* 报价表单元格线 */
    --color-border-quiet: #dfe3e8; /* 报价表虚线 */
    --color-border-brand: #d3e5b3; /* 旧版板块绿色描边 */
    --color-border-brand-soft: #dcebc2; /* 报价页胶囊描边 */
    --color-thumb-empty: #e4e7df; /* 缺图占位的虚线框：极淡，只做提示不做分割 */

    /* ---------- 品牌 ---------- */
    --color-brand: #a0c85a; /* 主色：页头底、主按钮、强调块 */
    --color-brand-hover: #93bd4a; /* 主按钮悬停 */
    --color-brand-strong: #5f7d2a; /* 主色深：链接、角标文字 */
    --color-brand-link: #6f9a33; /* 报价页机型名悬停 */
    --color-brand-ink: #2b3a17; /* 浅绿底上的正文 */
    --color-on-brand: #1c2410; /* 主色块上的文字 */
    --color-brand-wash: #f3f8ea; /* 品牌浅底：标签、选中项 */
    --color-brand-wash-soft: #f6faec; /* 更淡一层：报价页表头 */
    --color-brand-wash-strong: #ecf5d8; /* 加深一层：悬停 */
    --color-price: #d9480f; /* 报价数字 */

    /* ---------- 页头（绿底 + 描边字） ---------- */
    --color-header-bg: var(--color-brand);
    --color-header-logo: #000000;
    --color-header-logo-stroke: #ffffff;
    --color-header-accent: #e4e450;
    --color-header-accent-stroke: #0b0b0b;

    /* ---------- 状态 ---------- */
    --color-danger: #b3261e;
    --color-danger-wash: #fdf1f0;
    --color-warn-text: #a06a12;
    --color-warn-wash: #fff8e6;
    --color-warn-border: #f2e2b8;

    /* ---------- 渐变（大图暗角） ---------- */
    --gradient-band-plain: linear-gradient(120deg, #23261c 0%, #3b4230 100%);
    --gradient-scrim-h: linear-gradient(
        100deg,
        rgba(12, 14, 10, 0.72) 0%,
        rgba(12, 14, 10, 0.34) 46%,
        rgba(12, 14, 10, 0.04) 100%
    );
    --gradient-scrim-v: linear-gradient(
        180deg,
        rgba(12, 14, 10, 0.04) 0%,
        rgba(12, 14, 10, 0.5) 52%,
        rgba(12, 14, 10, 0.84) 100%
    );
    --gradient-caption: linear-gradient(
        180deg,
        rgba(12, 14, 10, 0) 0%,
        rgba(12, 14, 10, 0.66) 100%
    );

    /* ---------- 阴影 ---------- */
    --shadow-card: 0 10px 34px rgba(20, 20, 20, 0.07);
    --shadow-pop: 0 10px 24px rgba(20, 20, 20, 0.08);
    --shadow-modal: 0 24px 70px rgba(20, 20, 20, 0.24);
    /* 透明底产品图的轮廓落影：只沿像素轮廓，不铺底色块。
       亮色下用暗影托住白色机型；小图收紧（不糊）、大图放开（不生硬）。 */
    --thumb-shadow: drop-shadow(0 1px 1px rgba(20, 20, 20, 0.34))
        drop-shadow(0 2px 3px rgba(20, 20, 20, 0.16));
    --preview-shadow: drop-shadow(0 6px 16px rgba(20, 20, 20, 0.28))
        drop-shadow(0 2px 4px rgba(20, 20, 20, 0.14));
    /* 颜色列头的缩略图与间距：用 rem 跟随 --fs-root，表头行高因此同类一致且不写死 px */
    --tbl-thumb: 2rem;
    --tbl-thumb-gap: 0.25rem;

    /* ---------- 卡片统一规格：报价表 / 规格卡 / 二手卡 / 首页卡片共用 ----------
       R 角只由 --card-radius 控制；悬停浮起统一用 --shadow-card。 */
    --card-radius: 14px;
    --card-border: 1px solid var(--color-border);
    --card-padding: clamp(1.1rem, 2vw, 1.6rem);

    /* ======================= 字号体系（全站唯一入口） =======================
       只改 --fs-root 一处，全站字号按比例整体缩放；其余字号一律用 rem 语义变量，
       模板与样式里不再出现 px 字号。断点只下调少数大标题的档位，仍保持 rem 比例。
       16px 基数八档：12 / 14 / 16 / 18 / 20 / 24 / 32 / 48 */
    --fs-root: 16px;

    --fs-caption: 0.75rem; /* 12px｜第 1 档：角标、标签、页脚注释 */
    --fs-table: 0.875rem; /* 14px｜第 2 档：报价矩阵与对比表单元格 */
    --fs-aux: 0.875rem; /* 14px｜第 2 档：面包屑、表注、辅助说明 */
    --fs-body: 1rem; /* 16px｜第 3 档：正文默认 */
    --fs-lead: 1.125rem; /* 18px｜第 4 档：导语、列表主名 */
    --fs-h4: 1.125rem; /* 18px｜第 4 档：四级标题 */
    --fs-h3: 1.25rem; /* 20px｜第 5 档：三级标题 */
    --fs-h2: 1.5rem; /* 24px｜第 6 档：板块标题 */
    --fs-h1: 2rem; /* 32px｜第 7 档：页面主标题（含 404 页） */
    --fs-logo: 3rem; /* 48px｜第 8 档：页头店名（描边字，单列） */
    --fs-logo-sub: 1rem; /* 16px｜第 3 档：页头域名副行 */
    --fs-control: 1rem; /* 16px｜第 3 档：表单控件（移动端另有 16px 硬下限） */

    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.5rem;
    --sp-8: 3rem;
    --sp-9: 4rem;
    --sp-10: 5rem;
    --sp-11: 6rem;
    --sp-12: 7.5rem;

    --r-s: 8px;
    --r-m: 14px;
    --r-l: 22px;
    --r-pill: 999px;

    /* 全站唯一版心：页头、面包屑、正文、页脚共用 --container + --gutter 两条值，
       断点只改 --gutter（32 → 22 → 16），各板块不再自己写宽度或负边距 */
    --container: 1280px;
    --gutter: 32px;
    --gap: clamp(1rem, 2.2vw, 2rem);
    /* 品牌报价页卡片间距：标题卡→两栏、两栏间隙、系列卡之间都用这一条 */
    --brand-gap: 18px;
    /* 首页纵向间距：品牌宫格→横图→正文、正文内两块面板之间都用这一条；≤760 另给一档 */
    --home-gap: 20px;
    --section-y: clamp(3.25rem, 7vw, 6rem);

    /* 吸顶面包屑行高度：40 + 1px 分隔线；≤720 为 36 + 1 */
    --header-h: 41px;

    /* ======================= 层级令牌（全站唯一写死 z-index 的地方） =======================
       固定阶梯：吸顶条 → 下拉 → 跟随浮层 → 贴边托盘 → 弹窗 → 轻提示 → 跳转链接。
       弹层永远盖在面包屑（吸顶条）之上；新增吸顶条 / 下拉 / 浮层 / 弹窗只引用令牌，不再写数字。
       组件内部的局部叠放（表格吸顶表头、图表标记点等）仍用 1–9，不参与这套阶梯。 */
    --z-sticky: 100; /* 吸顶条：面包屑行、品牌系列条 */
    --z-dropdown: 200; /* 吸顶条上弹出的下拉：面包屑品牌 / 系列 */
    --z-float: 300; /* 跟随指针的浮层：颜色大图预览 */
    --z-tray: 400; /* 贴边托盘：机型对比栏 */
    --z-modal: 500; /* 弹窗与遮罩：微信二维码、确认框 */
    --z-toast: 600; /* 轻提示：始终在最上 */
    --z-skip: 700; /* 跳到主要内容：只在键盘聚焦时出现 */

    --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
    /* 全站唯一字体栈：前台与后台 admin.css 用同一串值（改这里要同步改那边）。
       取舍：先走苹果系统字（-apple-system / SF Pro SC / PingFang SC）拿到苹方；
       再走华为鸿蒙 HarmonyOS Sans SC；Windows 交给「微软雅黑」；
       Android 与 Linux 常见的是思源黑体系列，用 Noto Sans SC 显式接住；
       最后 Helvetica Neue / Arial 兜西文，sans-serif 交给系统默认中文字体。 */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
        "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial,
        sans-serif;
}

/* ======================= 主题切换钩子 =======================
   模板在 <html data-theme="light|dark"> 上切换；默认亮色。
   暗色皮肤只需在此处覆盖上面同一批 --color-* 令牌，组件样式无需改动。 */
html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;

    /* ---------- 表面 ---------- */
    --color-bg-page: #0f1012;
    --color-surface: #17181b;
    --color-surface-soft: #202226;
    --color-surface-muted: #1c1e21;
    --color-surface-hover: #24262b;
    --color-surface-warm: #1f1c17;
    --color-surface-strip: #202226;
    --color-surface-inverse: #2a2c31;
    --color-surface-glass: rgba(23, 24, 27, 0.96);
    --color-toast-bg: rgba(58, 60, 66, 0.96);
    --color-overlay: rgba(0, 0, 0, 0.66);
    --color-overlay-soft: rgba(0, 0, 0, 0.44);

    /* ---------- 文字 ---------- */
    --color-text: #ececf0;
    --color-text-soft: #d3d4da;
    --color-text-muted: #a0a1a9;
    --color-text-faint: #7d7e87;
    --color-text-disabled: #5c5d65;
    --color-text-ghost: #3d3e46;
    --color-text-inverse-soft: rgba(255, 255, 255, 0.8);

    /* ---------- 描边 ---------- */
    --color-border: #2b2d32;
    --color-border-strong: #3f4248;
    --color-border-soft: #26282d;
    --color-border-faint: #24262a;
    --color-border-quiet: #363940;
    --color-border-brand: #3f4d2b;
    --color-border-brand-soft: #3a4826;
    /* 缺图占位的虚线框：深底上换成极淡的亮线 */
    --color-thumb-empty: rgba(255, 255, 255, 0.16);

    /* ---------- 品牌 ---------- */
    /* 亮绿主按钮在深底上刺眼，整体压成深橄榄绿，配浅色文字保持对比 */
    --color-brand: #55702a;
    --color-brand-hover: #648334;
    --color-on-brand: #f2f6e8;
    --color-brand-strong: #c3dd8f;
    --color-brand-link: #c9e39a;
    --color-brand-ink: #e9f4d8;
    --color-brand-wash: rgba(160, 200, 90, 0.14);
    --color-brand-wash-soft: rgba(160, 200, 90, 0.1);
    --color-brand-wash-strong: rgba(160, 200, 90, 0.22);
    --color-price: #ff9257;

    /* ---------- 页头：深橄榄绿，保留品牌识别又不刺眼 ---------- */
    --color-header-bg: #3a4a22;
    --color-header-logo: #f2f6e8;
    --color-header-logo-stroke: #0b0b0b;
    --color-header-accent: #d8e86a;

    /* ---------- 状态 ---------- */
    --color-danger: #ff8a80;
    --color-danger-wash: rgba(255, 99, 99, 0.12);
    --color-warn-text: #e0b05a;
    --color-warn-wash: rgba(224, 176, 90, 0.12);
    --color-warn-border: rgba(224, 176, 90, 0.3);

    /* ---------- 阴影 ---------- */
    --shadow-card: 0 10px 34px rgba(0, 0, 0, 0.5);
    --shadow-pop: 0 10px 24px rgba(0, 0, 0, 0.5);
    --shadow-modal: 0 24px 70px rgba(0, 0, 0, 0.7);
    /* 暗色下反着来：浅色机型本身够亮，靠一层极淡亮辉勾轮廓，暗色机型才需要补贴身的暗影 */
    --thumb-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.34));
    --preview-shadow: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}

/* 黑夜模式：选中态的对比勾选是浅绿底，文字改用品牌深色保证对比度 */
html[data-theme="dark"] .cmp-pick:has(input:checked) {
    color: var(--color-on-brand);
}

/* ======================= 复位 ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* 全站字号基数：rem 的 1rem 等于这里；只改 --fs-root 即可整体缩放 */
    font-size: var(--fs-root);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--sp-4));
    /* 常驻滚动条槽：长页与短页的可用宽度一致，
       居中的 1280 版心不会因为垂直滚动条出现 / 消失而整体横移半个滚动条宽 */
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

/* 表单控件默认不继承字体，这里显式接回全站字体栈，避免控件内出现另一套字形 */
input,
select,
textarea {
    font-family: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

:focus-visible {
    outline: 2px solid var(--color-brand-strong);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ======================= 排版 ======================= */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: var(--fs-h1);
    letter-spacing: -0.03em;
    line-height: 1.06;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h4);
}

.num,
.price {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.price {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 员工点价格复制报价：只有带价单元格加这类，悬停给一层很淡的品牌底提示可点 */
td.is-copyable {
    cursor: pointer;
    transition: background-color 0.15s var(--ease);
}

td.is-copyable:hover {
    background: var(--color-brand-wash);
}

.eyebrow {
    display: inline-block;
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--color-brand-strong);
}

.eyebrow--on-dark {
    color: var(--color-text-inverse-soft);
}

.lede {
    color: var(--color-text-muted);
    font-size: var(--fs-lead);
    line-height: 1.7;
}

.muted {
    color: var(--color-text-muted);
}

.small {
    font-size: var(--fs-aux);
}

/* ======================= 布局工具 ======================= */
/* 全站唯一版心：页头 .hdr__wrap、正文 .container、旧站 .wrap1280 共用这一条宽度定义，
   其它板块只写纵向间距，不再自己写 max-width / padding-inline / 负边距 */
.container,
.wrap1280,
.hdr__wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--soft {
    background: var(--color-surface-soft);
}

.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -100px;
    z-index: var(--z-skip);
    padding: var(--sp-2) var(--sp-4);
    background: var(--color-surface-inverse);
    color: var(--color-text-inverse);
    border-radius: var(--r-pill);
    font-size: var(--fs-aux);
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: var(--sp-3);
}

/* ======================= 按钮 / 标签 ======================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    height: 40px;
    padding-inline: var(--sp-5);
    border-radius: var(--r-pill);
    font-size: var(--fs-body);
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
        color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--brand {
    background: var(--color-brand);
    color: var(--color-on-brand);
}

.btn--brand:hover {
    background: var(--color-brand-hover);
}

.btn--ghost {
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
}

.btn--ghost:hover {
    border-color: var(--color-text);
}

.btn--light {
    background: var(--color-surface);
    color: var(--color-text);
}

.btn svg {
    flex: none;
}

.linklike {
    padding: 0;
    color: inherit;
    text-align: left;
}

.linklike:hover,
.link-arrow:hover {
    color: var(--color-text);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--color-brand-strong);
}

.link-arrow::after {
    content: "→";
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding-inline: var(--sp-3);
    border-radius: var(--r-pill);
    background: var(--color-surface-soft);
    color: var(--color-text-muted);
    font-size: var(--fs-caption);
    letter-spacing: 0.04em;
}

.tag--brand {
    background: var(--color-brand-wash);
    color: var(--color-brand-strong);
}

/* ======================= 页头（旧站绿底版式，全站统一） ======================= */
/* 版心与正文同源：.hdr__wrap / .wrap1280 的宽度统一在 .container 那条规则里 */
.hdr {
    background: var(--color-header-bg);
}

/* 站名区块：随页面滚走，不吸顶；上下内边距承接导航条减掉的高度 */
.hdr__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 38px 0 16px;
}

.hdr__id {
    display: inline-block;
    max-width: 100%;
}

/* 黑夜模式开关：贴页头右侧，圆心与店名文字行中心对齐（店名行高 1.05 × 字号） */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: max(0px, calc((var(--fs-logo) * 1.05 - 2.25rem) / 2));
    padding: 0;
    border: 1.5px solid var(--color-header-logo);
    border-radius: 50%;
    background: transparent;
    color: var(--color-header-logo);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--color-header-logo);
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: scale(0.94);
}

.theme-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* 亮色下显示月亮（切到黑夜），暗色下显示太阳（切回正常） */
.theme-toggle__sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
    display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
    display: none;
}

/* 站名两层排版：超粗中文店名（白描边）+「域名字标 / 标语」副行 */
.hdr__name {
    display: block;
    font-size: var(--fs-logo);
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1.05;
    color: var(--color-header-logo);
    -webkit-text-stroke: 2.2px var(--color-header-logo-stroke);
    paint-order: stroke fill;
}

/* 副行左缘补偿：描边居中，可见外缘相对盒左缘外扩半个描边宽度 */
.hdr__sub {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 15px;
    padding-left: 1.1px;
    white-space: nowrap;
}

/* 域名字标：字体跟随全站统一字体栈，只靠字重与描边区分层级 */
.hdr__domain {
    font-size: var(--fs-logo-sub);
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.2;
    color: var(--color-header-accent);
    -webkit-text-stroke: 1px var(--color-header-accent-stroke);
    paint-order: stroke fill;
}

.hdr__slogan {
    font-size: var(--fs-aux);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-header-logo);
}

/* 面包屑行：全站唯一吸顶的横条；结构上是 header 之后的兄弟节点，吸顶作用域覆盖整页 */
.crumbbar {
    position: sticky;
    top: 0;
    /* 阶梯最低的一级：所有下拉 / 浮层 / 弹窗 / 轻提示都在它之上 */
    z-index: var(--z-sticky);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

/* 高度写死：首页单项、二级、四级、面板展开与否都不改变这一行的高度 */
.crumbbar .hdr__wrap {
    display: flex;
    align-items: center;
    height: 40px;
}

.crumb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    font-size: var(--fs-aux);
    line-height: 20px;
    color: var(--color-text-muted);
}

.crumb a,
.crumb span,
.crumb button {
    flex: none;
    white-space: nowrap;
}

/* 省略中间层时用 hidden 属性 */
.crumb [hidden] {
    display: none;
}

.crumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.crumb a:hover {
    color: var(--color-text);
}

.crumb__sep {
    color: var(--color-text-ghost);
}

/* 整行统一常规字重：层级只靠颜色区分（祖先 --color-text-muted，当前 --color-text），
   避免同一个词在首页/内页之间粗细不同导致文字宽度跳动 */
.crumb__current {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--color-text);
    text-overflow: ellipsis;
}

/* 页头断点：版心内边距 32→22，导航条高度 37→33，站名 48→32→24→20（只在八档里取下一档） */
@media (max-width: 900px) {
    :root {
        --gutter: 22px;
        /* 大标题只降档，仍用 rem，改 --fs-root 依然整体等比缩放 */
        --fs-logo: 2rem;
    }

    .hdr__top {
        padding: 28px 0 12px;
    }

    .hdr__name {
        -webkit-text-stroke-width: 1.7px;
    }
}
@media (max-width: 720px) {
    :root {
        --gutter: 16px;
        --header-h: 37px;
        /* 窄屏卡片内边距统一收窄一档 */
        --card-padding: 0.875rem;
        --fs-logo: 1.5rem;
        --fs-h1: 1.5rem;
        --fs-h2: 1.25rem;
    }

    .hdr__top {
        padding: 21px 0 10px;
    }

    .hdr__name {
        -webkit-text-stroke-width: 1.2px;
    }

    .hdr__sub {
        margin-top: 9px;
    }

    .hdr__domain {
        letter-spacing: 0.03em;
    }

    /* 手机：面包屑行 36 + 1 = 37px，与桌面同一条规则只改高度 */
    .crumbbar .hdr__wrap {
        height: 36px;
    }

    .crumb {
        gap: 6px;
        line-height: 18px;
    }
}

/* 极窄屏：隐藏标语，店名再收一档，保证单行不溢出 */
@media (max-width: 360px) {
    :root {
        --fs-logo: 1.25rem;
    }

    .hdr__slogan {
        display: none;
    }
}

/* ======================= 页尾（全站唯一：紧凑窄条） ======================= */
/* 外层 .wrap1280 与页头 / 正文共用同一版心变量，左右边线对齐；
   内部只有一行：版权 + 备案（备案整体靠右） */
.footer2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 18px 0 30px;
    border-top: 1px solid var(--color-border);
    font-size: var(--fs-aux);
    color: var(--color-text-faint);
}

.footer2 a {
    color: var(--color-text-faint);
}

.footer2 a:hover {
    color: var(--color-brand-strong);
}

/* 备案靠右；窄屏（≤720）回到行内顺序，不再单独占一行右侧 */
.footer2 .beian {
    margin-left: auto;
}

/* ======================= 首页 · 整幅大图 ======================= */
.band {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(380px, 52vh, 520px);
    margin-top: var(--section-y);
    isolation: isolate;
    color: var(--color-text-inverse);
    background: var(--color-surface-inverse);
}

.band--plain {
    background: var(--gradient-band-plain);
}

.band__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradient-scrim-h);
}

.band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
    padding-block: clamp(1.75rem, 4vw, 3rem);
}

.band__copy h2 {
    margin-block: var(--sp-2) var(--sp-3);
    font-size: var(--fs-h2);
}

.band__copy p {
    max-width: 46ch;
    color: var(--color-text-inverse-soft);
}

/* ======================= 首页 · 两列 / 三列 ======================= */
.duo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--color-surface);
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.panel:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.panel__media {
    display: block;
    overflow: hidden;
    background: var(--color-surface-soft);
}

.panel__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.panel:hover .panel__media img {
    transform: scale(1.02);
}

.panel__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--card-padding);
}

.panel__top {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
}

.panel__body h3 {
    font-size: var(--fs-h3);
}

.panel__body h3 a:hover {
    color: var(--color-brand-strong);
}

.panel__body > p {
    color: var(--color-text-muted);
    font-size: var(--fs-aux);
}

/* ======================= 首页 · 微信咨询 ======================= */
.contact-band {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.contact-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding-block: clamp(2.75rem, 6vw, 5rem);
}

.contact-band__copy h2 {
    margin-block: var(--sp-2) var(--sp-3);
}

.contact-band__copy .lede {
    font-size: var(--fs-body);
}

.contact-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

/* ======================= 页头 ======================= */
.page-head {
    padding-block: clamp(2rem, 4vw, 3.5rem);
}

.page-head .eyebrow {
    margin-bottom: var(--sp-3);
}

.page-head h1 {
    font-size: var(--fs-h1);
}

.page-head__lede {
    max-width: 52ch;
    margin-top: var(--sp-3);
    color: var(--color-text-muted);
    font-size: var(--fs-lead);
}

.page-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5) clamp(1.75rem, 4vw, 3rem);
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-border);
    max-width: 40rem;
}

.page-head__meta dt {
    font-size: var(--fs-caption);
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
}

.page-head__meta dd {
    margin-top: var(--sp-1);
    font-size: var(--fs-h4);
    font-weight: 500;
}

/* ======================= 须知页 ======================= */
.notice-block + .notice-block {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--color-border);
}

.notice-block h2 {
    margin-bottom: var(--sp-4);
    font-size: var(--fs-h3);
}

.prose {
    max-width: 68ch;
    color: var(--color-text-muted);
}

.prose p + p {
    margin-top: var(--sp-3);
}

/* ======================= 品牌 / 系列报价页（旧站 brand.html 版式） ======================= */
/* 版心、卡片圆角、单元格分隔线、价格色逐项对齐旧站 brand.css */
body.scheme-legacy {
    background: var(--color-bg-page);
}

.brand-page {
    padding-top: 18px;
    padding-bottom: 40px;
}

/* 标题卡：左标题 + 右统计，底部对齐 */
.brand-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: var(--brand-gap);
    padding: var(--card-padding);
    background: var(--color-surface);
    border: var(--card-border);
    border-radius: var(--card-radius);
}

.brand-head h1 {
    font-size: var(--fs-h3);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.35;
    color: var(--color-text);
}

.brand-head .sub {
    margin-top: 6px;
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.brand-head .note {
    flex: 0 1 auto;
    min-width: 0;
    font-size: var(--fs-aux);
    line-height: 1.8;
    color: var(--color-text-faint);
    text-align: right;
}

.brand-head .note a:hover {
    color: var(--color-brand-strong);
}

.brand-head .note b {
    font-weight: 600;
    color: var(--color-brand-strong);
}

.brand-body {
    display: flex;
    align-items: flex-start;
    gap: var(--brand-gap);
}

.brand-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* 左侧系列导航：桌面吸顶常驻，窄屏变成顶部横排标签 */
.series-nav {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    flex: 0 0 176px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    padding: 10px 8px;
    background: var(--color-surface);
    border: var(--card-border);
    border-radius: var(--card-radius);
}

.series-nav-title {
    flex: none;
    padding: 6px 10px;
    font-size: var(--fs-caption);
    letter-spacing: 0.06em;
    color: var(--color-text-faint);
}

.series-nav-item {
    flex: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--color-text-soft);
    font-size: var(--fs-aux);
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.series-nav-item:hover {
    background: var(--color-brand-wash-soft);
    color: var(--color-brand-ink);
}

.series-nav-item.is-on {
    background: var(--color-brand-wash-soft);
    color: var(--color-brand-strong);
    font-weight: 600;
}

/* 二手机入口：上方虚线取右侧报价表里系列名称下方那条的同款（同色、同粗细、同间距） */
.series-nav-item--used {
    /* 导航 gap 2px + 12px = 虚线上方 14px，与 .sc-title 的 margin-bottom 一致 */
    margin-top: 12px;
    /* 虚线下到文字 10px，与 .sc-title 的 padding-bottom 一致 */
    padding-top: 10px;
    border-top: 1px dashed var(--color-border-quiet);
}

/* 窄屏横排时插在二手机入口前的小竖线：宽屏不显示，只在上面的竖排里留那条虚线 */
.series-nav-sep {
    display: none;
}

/* 系列大卡：顶部 3px 绿条由背景渐变实现，不占盒高；卡片规格同其它卡片 */
.series-card {
    padding: var(--card-padding);
    background-color: var(--color-surface);
    background-image: linear-gradient(90deg, var(--color-brand) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-size: 100% 3px;
    background-position: top left;
    border: var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* 卡与卡之间的间距与标题卡→两栏一致 */
.series-card + .series-card {
    margin-top: var(--brand-gap);
}

.sc-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--color-border-quiet);
    font-size: var(--fs-lead);
    font-weight: 700;
    color: var(--color-brand-ink);
}

.sc-title::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--color-brand);
}

.sc-title-text {
    min-width: 0;
}

/* 系列名本身就是进入系列的链接：保持标题字重，只在悬停时变色提示可点 */
.sc-title-link {
    color: inherit;
    transition: color 0.15s var(--ease);
}

.sc-title-link:hover {
    color: var(--color-brand-link);
}

/* ======================= 品牌分组落地页 ======================= */
/* 一个成员品牌一个区块：品牌名链接到独立品牌页，区块内复用品牌页同款报价矩阵片段 */
.bg-brand {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.bg-brand + .bg-brand {
    margin-top: calc(var(--brand-gap) * 2);
}

.bg-brand__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: var(--brand-gap);
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--color-border-quiet);
}

.bg-brand__link {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--color-brand-ink);
    transition: color 0.15s var(--ease);
}

.bg-brand__link:hover {
    color: var(--color-brand-link);
}

.bg-brand__meta {
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

a.name:hover {
    color: var(--color-brand-link);
}

/* 机型行内角标：全新机 / 二手 / 自定义角标 */
.model__tags .tag {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid var(--color-border-brand-soft);
    border-radius: 3px;
    background: var(--color-brand-wash-soft);
    color: var(--color-brand-strong);
    font-size: var(--fs-caption);
    line-height: inherit;
}

.model__tags .tag--soon {
    border-color: var(--color-warn-border);
    background: var(--color-warn-wash);
    color: var(--color-warn-text);
}

/* 机型区块：名称行在表格外，卡内多机型之间用虚线分隔 */
.model-block + .model-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border-quiet);
}

/* 名称行独占一行，报价表与二手提示并排：表格按内容宽度排布，右侧放提示；
   宽度不够时提示整体折到表格下方，绝不压缩表格可见宽度 */
.model-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /* 行间距 8px：名称行→报价表、表格→折行后的提示都用这一条 */
    gap: 8px var(--sp-4);
}

.model-head {
    flex: 1 1 100%;
    display: flex;
    /* 不换行：机型名过长时只在自己内部折行，不会被挤到下一行、把对比框单独留在上一行 */
    align-items: center;
    gap: 6px 8px;
    line-height: 1.4;
}

.model-head .name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--fs-lead);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.model-head a.name:hover {
    color: var(--color-brand-link);
}

/* 机型备注栏：报价图按钮（第一行）与二手提示（第二行）共用一栏；
   宽屏贴报价表右侧、留 16px 间距，窄屏落到表格下方、留 8px 间距（见 .model-block 的 gap 与窄屏覆盖）；
   两者都没有时整栏不渲染，按钮无权限时提示自然上移到第一行 */
.model-notes {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* 机型区块的二手提示：字号与文字颜色直接取表格内的令牌（--fs-table / --color-text-muted），不另起一套 */
.model-note {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: var(--fs-table);
    line-height: 1.4;
    white-space: nowrap;
}

.model-note::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-brand);
}

a.model-note:hover {
    text-decoration: underline;
}

/* 表格按自身内容宽度占位，超宽时仍由 .tbl-wrap 自己横向滚动 */
.model-block .tbl-wrap {
    flex: 0 1 auto;
    min-width: 0;
}

/* 商品备注：包在 .model-main 里贴在报价表格下方，宽度随表格走，不占右侧备注栏的空间 */
.model-block .model-main {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.model-remark {
    font-size: var(--fs-table);
    color: var(--color-text-muted);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.model-remark .mr-text { margin: 0; white-space: pre-line; }
.model-remark .mr-text + .mr-text { margin-top: 2px; }

/* 员工专属内容的「员工」小标签（商品备注与 SKU 备注子行共用） */
.mr-tag,
.sr-tag {
    display: inline-block;
    margin-right: 5px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--color-accent-strong);
    background: rgba(255, 106, 61, .12);
    vertical-align: 1px;
}

/* SKU 备注子行：规格行下方整行（colspan），去网格线、随表格横向滚动 */
.tbl-wrap tr.sku-remark-row > td {
    border: none;
    padding: 0 8px 7px;
    font-size: var(--fs-table);
    color: var(--color-text-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tbl-wrap tr.sku-remark-row .sr-text { display: block; }
.tbl-wrap tr.sku-remark-row .sr-text + .sr-text { margin-top: 1px; }

/* 报价表：行=容量、列=颜色；1px 全网格线，行高由 6px 内边距 + 12px 字号决定 */
.tbl-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tbl-wrap table {
    width: auto;
    border-collapse: collapse;
}

.tbl-wrap th,
.tbl-wrap td {
    padding: 6px 12px;
    border: 1px solid var(--color-border-faint);
    font-size: var(--fs-table);
    line-height: 1.6;
    text-align: left;
    white-space: nowrap;
}

.tbl-wrap thead th {
    /* 上下内边距对称，表头文字在单元格里几何居中（左右由 text-align: center 居中） */
    padding-block: 8px;
    background: var(--color-brand-wash-soft);
    color: var(--color-brand-strong);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

.tbl-wrap tbody th.spec {
    min-width: 110px;
    background: var(--color-surface-muted);
    color: var(--color-text-soft);
    font-weight: 400;
}

/* 规格行头：机型名在表格外的区块头里，规格前不再有层级，左右与其他单元格同一边距 */
.tbl-wrap tbody th.spec--sub {
    color: var(--color-text-muted);
}

.model__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* 角标不参与压缩，名称过长时只让机型名自己折行 */
    flex: 0 0 auto;
    /* 与对比胶囊同样锁定首行：名称换行时标签不跟着跑到中间 */
    align-self: flex-start;
    min-height: calc(var(--fs-lead) * 1.4);
    gap: 6px;
}

.tbl-wrap td {
    color: var(--color-price);
    text-align: center;
}

/* 无报价横线 / 未配置规格斜线：浅灰居中 */
.tbl-wrap td.is-empty {
    color: var(--color-text-disabled);
}

.tbl-wrap td.is-none {
    color: var(--color-text-ghost);
}

.tbl-wrap td .ask {
    color: var(--color-text-faint);
}

/* 报价表列表模式：一个颜色一行（规格串含颜色），无网格线；
   窄屏与矩阵一致在 .price-list-wrap 内横向滚动，规格名不换行 */
.price-list-wrap {
    max-width: 520px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-list {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
}

.price-list th.pl-name {
    padding: 8px 10px 8px 0;
    font-size: var(--fs-table);
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border-faint);
    white-space: nowrap;
}

.price-list td.pl-price {
    padding: 8px 0;
    font-size: var(--fs-table);
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
    color: var(--color-price);
    border-bottom: 1px solid var(--color-border-faint);
}

.price-list td.pl-price.is-empty {
    color: var(--color-text-disabled);
}

.price-list td .ask {
    color: var(--color-text-faint);
}

/* 行内颜色小图：与矩阵表头同样式，这里改为与文字同行 */
.price-list .c-thumb {
    display: inline-flex;
    margin: 0 8px 0 0;
    vertical-align: -6px;
}

/* SKU 备注子行：贴在所属报价行下方；有备注时分隔线挪到备注行底，报价行本身不画线 */
.price-list tr.sku-remark-row > td {
    padding: 0 0 7px;
    font-size: var(--fs-table);
    color: var(--color-text-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--color-border-faint);
}

.price-list tr.sku-remark-row .sr-text { display: block; }
.price-list tr.sku-remark-row .sr-text + .sr-text { margin-top: 1px; }

.price-list tr:has(+ tr.sku-remark-row) > th,
.price-list tr:has(+ tr.sku-remark-row) > td {
    border-bottom: none;
}

/* 报价图按钮：员工登录时才出现在机型备注栏第一行，游客与会员不渲染 */
.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid var(--color-border-brand-soft);
    border-radius: var(--r-pill);
    background: var(--color-surface);
    color: var(--color-brand-strong);
    /* 与同栏的二手提示同档字号（表格令牌），不单独压小 */
    font-size: var(--fs-table);
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.12s var(--ease);
}

.quote-btn:hover {
    background: var(--color-brand-wash);
}

.quote-btn[disabled] {
    cursor: progress;
    opacity: 0.6;
}

.quote-btn svg {
    width: 12px;
    height: 12px;
}

/* 颜色列头小图：32×32 中性底衬，缺图保留同尺寸占位；有图为按钮，悬停/点击看大图 */
.c-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tbl-thumb);
    height: var(--tbl-thumb);
    margin: 0 auto var(--tbl-thumb-gap);
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    overflow: hidden;
    transition: transform 0.12s var(--ease);
}

button.c-thumb {
    cursor: zoom-in;
}

button.c-thumb:hover {
    transform: translateY(-2px);
}

/* 缩略图 32px 很小：落影只能贴轮廓给一点点，多了就糊成一团 */
.c-thumb img {
    filter: var(--thumb-shadow);
}

button.c-thumb:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* 有图但缺某个颜色：极淡虚线小框占位，尺寸与正常缩略图一致，不写文字、不可点；
   空占位 span 可被选中，点击会落文本光标，这里显式禁选中 */
.c-thumb.is-empty {
    border: 1px dashed var(--color-thumb-empty);
    border-radius: 6px;
    cursor: default;
    user-select: none;
}

/* 触屏没有悬停：把可点区域放大到 44×44，图形仍按 32 显示 */
@media (hover: none) {
    .c-thumb {
        width: 2.75rem;
        height: 2.75rem;
    }

    .c-thumb img {
        max-width: var(--tbl-thumb);
        max-height: var(--tbl-thumb);
    }
}

.c-thumb img {
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 颜色大图预览：跟随色块浮在表格上方，悬停轻提示、点击固定 */
.color-preview {
    position: fixed;
    z-index: var(--z-float);
    left: 0;
    top: 0;
    width: var(--cp-w, 300px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.16s var(--ease);
    will-change: left, top;
}

.color-preview[hidden] {
    display: none;
}

.color-preview.is-open {
    opacity: 1;
}

.color-preview.is-pinned {
    pointer-events: auto;
}

.color-preview__panel {
    display: block;
    margin: 0;
    padding: var(--sp-2);
    border: 0;
    border-radius: var(--r-m);
    background: none;
}

.color-preview__panel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--cp-h, 60vh);
    border-radius: var(--r-s);
    object-fit: contain;
    filter: var(--preview-shadow);
}

@media (prefers-reduced-motion: reduce) {
    button.c-thumb,
    .color-preview {
        transition: none;
    }
}

.c-name {
    display: block;
    line-height: 1.35;
    white-space: nowrap;
}

/* 商品行内对比勾选：浅绿胶囊 + 原生复选框
   与机型名统一按垂直居中对齐：胶囊以机型名首行行高为盒高、内部居中，
   名称换行时仍停在首行，不会被拉到整段中间。 */
.cmp-pick {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: calc(var(--fs-lead) * 1.4);
    padding: 2px 9px;
    border: 1px solid var(--color-border-brand-soft);
    border-radius: 999px;
    background: var(--color-brand-wash-soft);
    color: var(--color-brand-strong);
    font-size: var(--fs-caption);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.cmp-pick:hover {
    background: var(--color-brand-wash-strong);
}

.cmp-pick input {
    width: 0.875rem;
    height: 0.875rem;
    margin: 0 var(--sp-1) 0 0;
    vertical-align: middle;
    accent-color: var(--color-brand);
    cursor: pointer;
}

.cmp-pick:has(input:checked) {
    background: var(--color-brand-strong);
    border-color: var(--color-brand-strong);
    color: var(--color-text-inverse);
}

.matrix-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 14px;
    font-size: var(--fs-caption);
    color: var(--color-text-faint);
}

.matrix-legend .legend-hint {
    display: none;
}

/* 空态：旧站 .empty 卡片 */
.empty {
    padding: 46px 20px;
    background: var(--color-surface);
    border: var(--card-border);
    border-radius: var(--card-radius);
    color: var(--color-text-faint);
    font-size: var(--fs-aux);
    text-align: center;
}

/* 备案：ICP 与公安备案并排，中间短竖线；两条视为一个整体不折行，
   所以竖线不会孤立出现在行首/行尾（极窄屏时整块由父级 flex-wrap 整体换行） */
.beian {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    vertical-align: middle;
}

.beian__item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: inherit;
}

/* 竖线：沿用旧站做法，一个 | 字符 + 左右各 6px，颜色继承页脚文字色 */
.beian__pipe {
    margin: 0 6px;
    color: inherit;
}

/* 警徽：14×14（旧站实测尺寸），比 12px 文字的 16px 行盒矮，不会撑高行高 */
.beian__badge {
    display: block;
    flex: none;
    width: 14px;
    height: 14px;
}

/* 品牌页断点：只改纵向留白，左右内边距继续由 .container 的 --gutter 管 */
@media (max-width: 900px) {
    .brand-page {
        padding-block: 16px 32px;
    }

    /* 窄屏标题卡片：「更新于…」与「共 N 款机型…」折成上下两行，
       两段之间加一条虚线分隔（取系列名称下那条的同款：1px dashed --color-border-quiet，
       线上下各留呼吸位，与 .sc-title 的 10px / 14px 同口径） */
    .brand-head {
        row-gap: 10px;
    }

    .brand-head .note {
        flex: 1 1 100%;
        padding-top: 14px;
        border-top: 1px dashed var(--color-border-quiet);
        text-align: left;
    }

    .brand-body {
        display: block;
    }

    /* 窄屏：机型区块回到单列，备注栏落到报价表下方 */
    .model-block {
        display: block;
    }

    .model-head {
        margin-bottom: 8px;
    }

    .model-notes {
        margin-top: 8px;
    }

    .series-nav {
        position: sticky;
        top: var(--header-h);
        z-index: var(--z-sticky);
        flex-direction: row;
        align-items: center;
        gap: 6px;
        max-height: none;
        margin: 0 -22px var(--brand-gap);
        padding: 8px 22px;
        border: 0;
        border-bottom: 1px solid var(--color-border-soft);
        border-radius: 0;
        background: var(--color-bg-page);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .series-nav::-webkit-scrollbar {
        display: none;
    }

    .series-nav-title {
        display: none;
    }

    .series-nav-item {
        flex: 0 0 auto;
        width: auto;
        padding: 7px 12px;
        border-radius: 999px;
        background: var(--color-surface);
        border: 1px solid var(--color-border-soft);
    }

    .series-nav-item--used {
        margin-top: 0;
    }

    /* 横排时用短竖线把「本品牌二手机」和新机系列分开：线高随该行文字、不占额外行高 */
    .series-nav-sep {
        display: block;
        flex: none;
        align-self: center;
        width: 1px;
        height: 1em;
        font-size: var(--fs-aux);
        background: var(--color-border-strong);
    }

    /* 小屏才提示表格可横向滑动 */
    .matrix-legend .legend-hint {
        display: block;
        margin-left: 0;
        color: var(--color-text-disabled);
    }
}

@media (max-width: 720px) {
    .brand-page {
        padding-block: 14px 28px;
    }

    .brand-head h1 {
        font-size: var(--fs-h4);
    }

    .sc-title {
        font-size: var(--fs-body);
    }

    .model-block + .model-block {
        margin-top: 12px;
        padding-top: 12px;
    }

    .tbl-wrap th,
    .tbl-wrap td {
        padding: 5px 8px;
    }

    /* 窄屏表格铺满卡宽：颜色列多时整表超出卡宽，在 .tbl-wrap 内横向滚动 */
    .tbl-wrap table {
        width: 100%;
    }

    .tbl-wrap tbody th.spec {
        min-width: 96px;
    }

    .series-nav {
        margin: 0 -16px var(--brand-gap);
        padding: 8px 16px;
    }

    /* 窄屏：备案不再靠右，按行内顺序接在版权之后 */
    .footer2 .beian {
        margin-left: 0;
    }
}

/* ======================= 对比托盘 ======================= */
.compare-tray {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: var(--sp-4);
    z-index: var(--z-tray);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3) var(--sp-5);
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--color-border);
    border-radius: var(--r-m);
    background: var(--color-surface-glass);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.compare-tray[hidden] {
    display: none;
}

.compare-tray__items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-pill);
    background: var(--color-surface-soft);
    font-size: var(--fs-aux);
    color: var(--color-text-soft);
}

.compare-chip button {
    color: var(--color-text-faint);
    line-height: 1;
}

.compare-tray__actions {
    display: flex;
    gap: var(--sp-2);
    margin-left: auto;
}

.compare-tray[data-ready="false"] [data-compare-link] {
    pointer-events: none;
    opacity: 0.45;
}

/* ======================= 回到顶部（品牌报价页，仅 PC） ======================= */
.back-to-top {
    display: none;
}

@media (hover: hover) and (min-width: 900px) {
    .back-to-top {
        position: fixed;
        right: var(--gutter);
        bottom: var(--sp-5);
        z-index: var(--z-tray);
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        padding: 0;
        border: 1px solid var(--color-border);
        border-radius: var(--r-pill);
        background: var(--color-brand);
        color: var(--color-on-brand);
        box-shadow: var(--shadow-pop);
        cursor: pointer;
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    }

    .back-to-top.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .back-to-top:hover {
        background: var(--color-brand-hover);
    }

    .back-to-top:focus-visible {
        outline: 2px solid var(--color-text);
        outline-offset: 2px;
    }

    .back-to-top svg {
        display: block;
        width: 22px;
        height: 22px;
    }

    /* 机型对比托盘贴底出现时淡隐回到顶部，避免右下角重叠 */
    body:has(.compare-tray:not([hidden])) .back-to-top {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* ======================= 二手筛选 ======================= */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
}

.filter-chips a {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
        background-color 0.2s var(--ease);
}

.filter-chips a:hover,
.filter-chips a.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand-wash);
    color: var(--color-brand-strong);
}

.used-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap) clamp(0.75rem, 1.6vw, 1.25rem);
}

.used-card {
    overflow: hidden;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--color-surface);
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.used-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.used-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--color-surface-soft);
}

.used-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.used-card__placeholder {
    font-size: var(--fs-aux);
    color: var(--color-text-faint);
}

.used-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--card-padding);
}

.used-card__brand {
    font-size: var(--fs-caption);
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
}

.used-card__body h2 {
    font-size: var(--fs-lead);
}

.used-card__body h2 a:hover {
    color: var(--color-brand-strong);
}

.used-card__meta {
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.used-card__price {
    margin-top: var(--sp-2);
    font-size: var(--fs-lead);
}

/* ======================= 对比页 ======================= */
/* 结构与旧站（127.0.0.1）compare.css 一致：卡片头（标题 + 款数 + 操作）、
   横向滚动区、表头 96px 商品图（无背景框；缺图浅虚线占位，全缺则不渲染图位）+ 名称、
   首列固定、分组条浅灰、空值短横线、卡片脚说明。
   页头已去掉：卡片距吸顶面包屑行一个整站卡片间距（--brand-gap），底部留白与品牌报价页一致。
   字号统一走本站令牌，不用旧站的 13px。 */
.compare-section {
    padding-top: var(--brand-gap);
    padding-bottom: 40px;
}

.compare-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.compare-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--color-border);
}

.compare-card__head h2 {
    margin: 0;
    font-size: var(--fs-lead);
    font-weight: 600;
}

.compare-badge {
    padding: 2px 10px;
    border: 1px solid var(--color-border-brand-soft);
    border-radius: 999px;
    background: var(--color-brand-wash);
    color: var(--color-brand-strong);
    font-size: var(--fs-caption);
    line-height: 1.5;
}

.compare-card__actions {
    display: flex;
    gap: var(--sp-2);
    margin-left: auto;
}

.compare-card__actions .btn,
.compare-card__foot .btn {
    padding: 6px 14px;
    font-size: var(--fs-aux);
}

.compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

/* 只画横向行线，不画竖网格 */
.compare-table th,
.compare-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-faint);
    font-size: var(--fs-aux);
    text-align: left;
    vertical-align: middle;
}

.compare-table thead th {
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-border);
    text-align: center;
    vertical-align: middle;
}

/* 表头机型名比单元格大一档，与旧站的层次一致 */
.compare-table thead .pname {
    display: block;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--color-text);
}

.compare-table thead a.pname:hover {
    color: var(--color-brand-strong);
}

.compare-table .cmp-first {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 150px;
    background: var(--color-surface);
    color: var(--color-text-faint);
    font-weight: 500;
    white-space: nowrap;
}

.compare-table thead .cmp-first {
    z-index: 3;
    text-align: left;
}

/* 分组标题行：整行浅灰底 + 600 加粗。旧站靠同特异性后置覆盖首列规则；
   本站 .compare-table .cmp-first 特异性更高，这里同样带上 .compare-table 才能盖过组名格 */
.compare-table .compare-group-row td {
    background: var(--color-surface-muted);
    color: var(--color-text-soft);
    font-size: var(--fs-caption);
    font-weight: 600;
}

/* 空值：短横线「—」占位（斜线格按店主要求改掉），弱化灰与有值格区分，左对齐不变 */
.compare-table td.compare-empty {
    color: var(--color-text-muted);
}

.compare-empty-tip {
    padding: 24px 12px;
    color: var(--color-text-faint);
    text-align: center;
}

.compare-img-box {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* 有图机型：不画背景框，图片裸放（带报价页缩略图同款轮廓落影，透明底机型不悬空） */
.cmp-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
}

.cmp-thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: var(--thumb-shadow);
}

/* 缺图机型：报价页同款浅虚线框占位（--color-thumb-empty），只做提示不做分割；
   同报价页禁选中，点击不落文本光标 */
.cmp-thumb.is-empty {
    border: 1px dashed var(--color-thumb-empty);
    border-radius: 10px;
    cursor: default;
    user-select: none;
}

.compare-card__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding: 12px var(--sp-5);
    border-top: 1px solid var(--color-border-faint);
}

.compare-legend {
    margin-right: auto;
    font-size: var(--fs-caption);
    color: var(--color-text-faint);
}

/* ======================= 404 ======================= */
.not-found {
    padding-block: clamp(4rem, 10vw, 8rem);
}

/* 404 的窄栏只在版心内居中，不再把 .container 本身改窄 */
.not-found__inner {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

.not-found h1 {
    margin-top: var(--sp-3);
}

.not-found__lede {
    margin-top: var(--sp-4);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2) var(--sp-3);
    margin-top: var(--sp-6);
}

/* ======================= 空态 / 提示 ======================= */
.empty-state {
    padding: clamp(2.5rem, 6vw, 4rem);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--card-radius);
    color: var(--color-text-muted);
    text-align: center;
}

.empty-state p + p {
    margin-top: var(--sp-2);
}

.empty-state .btn {
    margin-top: var(--sp-4);
}

.notice {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-s);
    font-size: var(--fs-aux);
    margin-bottom: var(--sp-4);
}

.notice--error {
    background: var(--color-danger-wash);
    color: var(--color-danger);
}

/* ======================= 微信浮层 / 提示条 ======================= */
.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
}

.wechat-modal[hidden] {
    display: none;
}

.wechat-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.wechat-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
    max-width: 360px;
    padding: var(--sp-6) var(--sp-6) var(--sp-7);
    border-radius: var(--r-l);
    background: var(--color-surface);
    box-shadow: var(--shadow-modal);
    text-align: center;
}

.wechat-modal__panel h2 {
    font-size: var(--fs-h3);
}

.wechat-modal__close {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    width: 32px;
    height: 32px;
    border-radius: var(--r-pill);
    color: var(--color-text-faint);
    font-size: var(--fs-h4);
    line-height: 1;
}

.wechat-modal__close:hover {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.wechat-modal__qr {
    width: 200px;
    height: 200px;
    margin-block: var(--sp-2);
    border-radius: var(--r-s);
    object-fit: contain;
    background: var(--color-surface-soft);
}

.wechat-modal__qr--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    border: 1px dashed var(--color-border-strong);
    color: var(--color-text-faint);
    font-size: var(--fs-aux);
}

.wechat-modal__id {
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.wechat-modal__id strong {
    color: var(--color-text);
    font-size: var(--fs-lead);
    letter-spacing: 0.02em;
}

.wechat-modal__hint {
    font-size: var(--fs-caption);
    color: var(--color-text-faint);
    line-height: 1.7;
}

/* 报价图弹层：沿用微信浮层外壳，只放宽面板并让长图可滚动 */
.price-image__panel {
    max-width: 680px;
    max-height: 100%;
    overflow-y: auto;
}

.price-image__img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--r-s);
    background: var(--color-surface-soft);
}

.price-image__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
}

/* 操作区与 .btn 自带 display，会盖掉浏览器默认的 [hidden]，要显式声明 */
.price-image__actions[hidden],
.price-image__actions [hidden] {
    display: none;
}

.price-image__save {
    margin-top: var(--sp-1);
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--sp-10) + 1rem);
    z-index: var(--z-toast);
    padding: var(--sp-2) var(--sp-5);
    border-radius: var(--r-pill);
    background: var(--color-toast-bg);
    color: var(--color-text-inverse);
    font-size: var(--fs-aux);
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.clipboard-proxy {
    position: fixed;
    top: 0;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

body.is-locked {
    overflow: hidden;
}

/* ======================= 入场动效 ======================= */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.panel,
.used-card {
    animation: rise 0.6s var(--ease) both;
}

.panel:nth-child(2),
.used-card:nth-child(2n) {
    animation-delay: 0.06s;
}

.used-card:nth-child(3n) {
    animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .panel,
    .used-card {
        animation: none;
    }

    .site-toast {
        transition: none;
    }
}

/* ======================= 响应式 ======================= */
@media (max-width: 1080px) {
    .used-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .duo-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .band__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    /* 窄屏图片被裁切后横向渐变覆盖不到正文，改为自下而上的暗角保证可读性 */
    .band::after {
        background: var(--gradient-scrim-v);
    }

    .used-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .compare-tray {
        left: var(--sp-3);
        right: var(--sp-3);
        bottom: var(--sp-3);
    }
}

@media (max-width: 640px) {
    .contact-band__actions {
        width: 100%;
    }

    .price-table__model {
        min-width: 140px;
    }

    .page-head__meta {
        gap: var(--sp-4) var(--sp-5);
    }
}

@media (max-width: 480px) {
    .used-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wechat-modal__qr {
        width: 168px;
        height: 168px;
    }
}

/* ======================= 第二阶段 · 商品详情 ======================= */
.page-head__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-4) var(--sp-6);
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

/* 商品详情 · 标题栏：视觉构成与报价页 .series-card / .sc-title 同一套
   —— 顶部 3px 品牌色渐变条（不占盒高）、同款描边 / R 角 / 内边距、标题前的 4×16 品牌竖条与品牌墨色文字 */
.section--product-head {
    padding-block: clamp(1rem, 2vw, 1.5rem) 0;
}

.product-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2) var(--sp-4);
    padding: var(--card-padding);
    background-color: var(--color-surface);
    background-image: linear-gradient(90deg, var(--color-brand) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-size: 100% 3px;
    background-position: top left;
    border: var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.product-head__main {
    min-width: 0;
}

.product-head h1 {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--color-brand-ink);
}

.product-head h1::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--color-brand);
}

.product-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
}

.section--specs {
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.spec-masonry {
    columns: 2;
    column-gap: clamp(1rem, 2vw, 1.5rem);
}

.spec-card {
    display: inline-block;
    width: 100%;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding: var(--card-padding);
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--color-surface);
    break-inside: avoid;
    vertical-align: top;
}

/* 卡片头沿用旧站：左侧短竖条 + 虚线分隔 */
.spec-card__title {
    position: relative;
    margin-bottom: var(--sp-3);
    padding: 0 0 var(--sp-3) var(--sp-3);
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--fs-body);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.spec-card__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 0.95em;
    border-radius: var(--r-pill);
    background: var(--color-brand);
}

.spec-card__lede {
    margin-bottom: var(--sp-4);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.spec-card--used {
    background: var(--color-surface-warm);
}

/* ---------- 历史价格走势（详情页） ---------- */
.spec-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-3);
    border-bottom: 1px dashed var(--color-border);
}

.spec-card__head .spec-card__title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.trend-pick__select {
    max-width: 15rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--r-s);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--fs-caption);
}

.trend-chart {
    position: relative;
}

.trend-chart__svg {
    display: block;
    width: 100%;
    height: auto;
}

.trend-grid {
    stroke: var(--color-border-faint);
    stroke-width: 1;
}

.trend-axis {
    fill: var(--color-text-faint);
    font-size: 11px;
}

.trend-area {
    fill: var(--color-price);
    opacity: 0.08;
}

.trend-line {
    fill: none;
    stroke: var(--color-price);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.trend-guide {
    stroke: var(--color-text-faint);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.trend-dot {
    fill: var(--color-surface);
    stroke: var(--color-price);
    stroke-width: 2;
}

.trend-chart__tip {
    position: absolute;
    z-index: 1;
    transform: translate(-50%, calc(-100% - 10px));
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--r-s);
    background: var(--color-surface);
    box-shadow: var(--shadow-pop);
    color: var(--color-text-muted);
    font-size: var(--fs-caption);
    white-space: nowrap;
    pointer-events: none;
}

.trend-chart__tip b {
    margin-left: 0.4em;
    color: var(--color-price);
    font-weight: 600;
}

.trend-chart__note {
    margin-top: var(--sp-2);
    color: var(--color-text-faint);
    font-size: var(--fs-caption);
}

.gallery__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--r-s);
    background: var(--color-surface-soft);
}

.gallery__stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery__colors {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.2rem 0.7rem 0.2rem 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
        color 0.2s var(--ease);
}

.color-swatch img {
    width: 26px;
    height: 26px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface-soft);
    object-fit: cover;
}

.color-swatch:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.color-swatch.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand-wash);
    color: var(--color-brand-strong);
}

.price-specs__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
    padding-block: var(--sp-3);
    border-bottom: 1px solid var(--color-border);
}

.price-specs__row:last-child {
    border-bottom: 0;
}

.price-specs dt {
    min-width: 4.25rem;
    font-size: var(--fs-body);
    font-weight: 600;
}

.price-specs dd {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.spec-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--r-s);
    background: var(--color-surface-soft);
    font-size: var(--fs-aux);
    color: var(--color-text-soft);
}

.spec-pill b {
    font-weight: 600;
    color: var(--color-text);
}

.spec-list__row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr);
    gap: var(--sp-3);
    padding-block: 0.55rem;
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--fs-aux);
}

.spec-list__row:last-child {
    border-bottom: 0;
}

.spec-list dt {
    color: var(--color-text-muted);
}

.spec-list dd {
    color: var(--color-text);
}

@media (max-width: 760px) {
    .spec-masonry {
        columns: 1;
    }
}

/* ======================= 第二阶段 · 二手型号页 ======================= */
.used-card--detail {
    display: flex;
    flex-direction: column;
}

.used-specs {
    margin-top: var(--sp-3);
    border-top: 1px solid var(--color-border);
}

.used-specs li {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-block: 0.5rem;
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.used-specs b {
    font-weight: 600;
    color: var(--color-text);
}

.used-card__action {
    width: 100%;
    margin-top: auto;
}

.used-card__body .used-card__action {
    margin-top: var(--sp-4);
}

.used-note {
    margin-top: var(--sp-6);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

/* ======================= 第二阶段 · 对比页 ======================= */

.compare-tray__count {
    align-self: center;
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

/* ======================= 第二阶段 · 查询页 ======================= */
.section--query {
    padding-top: 0;
}

.query-layout {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.query-card {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: var(--card-padding);
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--color-surface-soft);
}

.query-card h2 {
    font-size: var(--fs-h4);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.field input {
    height: 44px;
    padding-inline: var(--sp-4);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--r-s);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--fs-body);
}

.field input:focus {
    border-color: var(--color-brand);
    outline: 2px solid var(--color-brand);
    outline-offset: 1px;
}

.query-card__note {
    font-size: var(--fs-caption);
    color: var(--color-text-faint);
}

.query-result {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    min-width: 0;
}

.result-card {
    padding: var(--card-padding);
    border: var(--card-border);
    border-radius: var(--card-radius);
}

.result-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
}

.result-card__head h2 {
    margin-top: var(--sp-1);
    font-size: var(--fs-h4);
    word-break: break-all;
}

.result-card__head .muted {
    font-size: var(--fs-aux);
}

.result-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4) var(--sp-7);
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-border);
}

.result-card__meta dt {
    font-size: var(--fs-caption);
    color: var(--color-text-faint);
}

.result-card__meta dd {
    margin-top: var(--sp-1);
    font-size: var(--fs-body);
}

.result-items {
    margin-top: var(--sp-4);
    border-top: 1px solid var(--color-border);
}

.result-items li {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-block: var(--sp-3);
    border-bottom: 1px dashed var(--color-border);
    font-size: var(--fs-aux);
}

.result-items em {
    margin-left: var(--sp-2);
    font-style: normal;
    color: var(--color-text-muted);
}

.result-items b {
    font-weight: 600;
}

.result-card__remark {
    margin-top: var(--sp-3);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.result-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-3);
    margin-top: var(--sp-5);
}

.voucher-view h2 {
    margin-bottom: var(--sp-3);
    font-size: var(--fs-lead);
}

.voucher-view iframe {
    width: 100%;
    height: 720px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-m);
    background: var(--color-surface);
}

.timeline {
    margin-top: var(--sp-5);
}

.timeline__item {
    position: relative;
    padding-left: var(--sp-6);
    padding-bottom: var(--sp-5);
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-brand);
}

.timeline__item::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 18px;
    bottom: 0;
    width: 1px;
    background: var(--color-border);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item:last-child::after {
    display: none;
}

.timeline__dot {
    display: none;
}

.timeline__status {
    font-size: var(--fs-body);
    font-weight: 600;
}

.timeline__remark {
    margin-top: var(--sp-1);
    font-size: var(--fs-aux);
    color: var(--color-text-muted);
}

.timeline__time {
    display: block;
    margin-top: var(--sp-1);
    font-size: var(--fs-caption);
    color: var(--color-text-faint);
}

@media (max-width: 1080px) {
    .spec-masonry {
        columns: 2;
    }
}

@media (max-width: 900px) {
    .query-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .query-card {
        position: static;
    }
}

@media (max-width: 820px) {
    /* 手机端与旧站一致：只有首列横向固定，整页纵向滚动，不锁表头高度 */
    .compare-section {
        padding-block: 16px 32px;
    }

    /* 小屏卡片头不折行：标题、徽标、两个按钮挤同一行，靠紧凑内边距放下 */
    .compare-card__head {
        flex-wrap: nowrap;
        gap: var(--sp-2);
        padding: var(--sp-3);
    }

    .compare-card__head h2 {
        font-size: var(--fs-body);
        white-space: nowrap;
    }

    .compare-badge {
        padding: 2px 8px;
    }

    .compare-card__actions {
        margin-left: auto;
        gap: var(--sp-2);
    }

    .compare-card__actions .btn {
        padding: 5px 10px;
        font-size: var(--fs-caption);
        white-space: nowrap;
    }

    .compare-table {
        min-width: 640px;
    }

    .compare-table th,
    .compare-table td {
        padding: 9px 10px;
        font-size: var(--fs-caption);
    }

    .compare-table thead .pname {
        font-size: var(--fs-aux);
    }

    .compare-table .cmp-first {
        min-width: 96px;
        font-size: var(--fs-caption);
    }

    .compare-img-box {
        margin-bottom: 6px;
    }

    .compare-card__foot {
        padding: 12px var(--sp-3);
    }
}

/* ≤720 与品牌报价页同档收一档（.brand-page 的 14/28），保证两页首卡间距完全一致 */
@media (max-width: 720px) {
    .compare-section {
        padding-block: 14px 28px;
    }
}

/* ≤360 一行实在放不下时收起徽标，保住「参数对比 + 两个按钮」同行不掉落 */
@media (max-width: 360px) {
    .compare-badge {
        display: none;
    }
}

@media (max-width: 760px) {
    .spec-masonry {
        columns: 1;
    }

    .voucher-view iframe {
        height: 680px;
    }
}

@media (max-width: 640px) {
    .product-head__actions {
        width: 100%;
    }

    .product-head__actions .btn {
        flex: 1 1 auto;
    }

    .result-card__head {
        flex-direction: column;
        gap: var(--sp-2);
    }
}

/* ======================= 手机版首页（旧站 0731m.cn 版式复刻） ======================= */
.lg {
    background: var(--color-bg-page);
    /* 宫格前留白放在容器内边距上：用子元素 margin 会穿透折叠到 main 外，main 就凭空多出一段空白 */
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-8);
}

.lg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 品牌报价入口宫格 ---------- */
.lg-quick {
    /* 宫格与下一板块（横图或正文）之间的间距，与首页其它板块共用 --home-gap */
    margin-bottom: var(--home-gap);
}

.lg-quick__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-2);
}

.lg-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    height: 100%;
    min-height: 162px;
    padding: var(--card-padding);
    background: var(--color-surface);
    border: var(--card-border);
    border-radius: var(--card-radius);
    text-align: center;
    transition: background-color 0.15s linear, box-shadow 0.15s linear, transform 0.15s linear;
}

.lg-tile:hover {
    background: var(--color-brand);
    box-shadow: var(--shadow-card);
    transform: scale(1.01, 1.01);
}

.lg-tile__img {
    width: auto;
    height: 100px;
    object-fit: contain;
}

.lg-tile__mono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: var(--r-m);
    background: var(--color-brand-wash);
    color: var(--color-brand-strong);
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.lg-tile__name {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--color-text);
}

/* ---------- 横图：宽度跟板块尺寸（整幅 / 两列各半 / 三列各三分之一） ---------- */
.lg-banners {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-2);
    margin-bottom: var(--home-gap);
}

.lg-banner {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--color-surface);
    border: var(--card-border);
    border-radius: var(--card-radius);
    transition: box-shadow 0.2s var(--ease);
}

.lg-banner:hover {
    box-shadow: var(--shadow-card);
}

.lg-banner--wide {
    grid-column: 1 / -1;
    aspect-ratio: 1200 / 416;
}

.lg-banner--half {
    grid-column: span 3;
    aspect-ratio: 595 / 416;
}

.lg-banner--third {
    grid-column: span 2;
    aspect-ratio: 450 / 416;
}

.lg-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.lg-banner:hover img {
    transform: scale(1.02);
}

.lg-banner__caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sp-2);
    padding: var(--sp-5) var(--sp-4) var(--sp-3);
    background: var(--gradient-caption);
    color: var(--color-text-inverse);
}

.lg-banner__caption strong {
    font-size: var(--fs-lead);
    font-weight: 600;
}

.lg-banner__caption em {
    font-size: var(--fs-caption);
    font-style: normal;
    color: var(--color-text-inverse-soft);
}

/* ---------- 正文：门店联系 + 公告与服务 ---------- */
.lg-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--home-gap);
    /* 与上一板块的间距已由 .lg-quick / .lg-banners 的 margin-bottom 给出，这里不再叠加 */
    margin-block: 0;
}

.lg-panel {
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border-brand);
    border-radius: var(--card-radius);
}

.lg-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    min-height: 34px;
    padding-inline: var(--sp-3);
    background: var(--color-surface-strip);
    border-bottom: 1px solid var(--color-border-brand);
}

.lg-panel__head h2 {
    font-size: var(--fs-aux);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0;
}

.lg-side {
    display: flex;
    flex-direction: row;
    gap: var(--home-gap);
}

.lg-side > .lg-panel {
    flex: 1 1 0;
}

.lg-side__body {
    padding: var(--card-padding);
}

.lg-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    font-size: var(--fs-aux);
}

.lg-contact div {
    display: flex;
    gap: var(--sp-2);
}

.lg-contact dt {
    flex: none;
    width: 2.6em;
    color: var(--color-text-faint);
}

.lg-contact dd {
    color: var(--color-text-soft);
}

.lg-side__cta {
    width: 100%;
    margin-top: var(--sp-3);
}

.lg-links {
    display: flex;
    flex-direction: column;
    padding: var(--sp-1) var(--sp-3) var(--sp-3);
}

.lg-links a {
    display: block;
    padding-block: var(--sp-2);
    border-bottom: 1px dashed var(--color-border-brand);
    font-size: var(--fs-aux);
    color: var(--color-text-soft);
}

.lg-links li:last-child a {
    border-bottom: 0;
}

.lg-links a:hover {
    color: var(--color-brand-strong);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
    .lg-quick__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        /* 窄屏首页纵向间距收紧一档，板块与面板间距仍共用同一条令牌 */
        --home-gap: 14px;
    }

    .lg {
        padding-top: var(--sp-2);
    }

    .lg-quick {
        margin-top: 0;
    }

    .lg-quick__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--sp-1);
    }

    .lg-tile {
        min-height: 0;
        gap: var(--sp-1);
        padding: var(--card-padding);
    }

    .lg-tile__img {
        height: 64px;
    }

    .lg-tile__mono {
        width: 64px;
        height: 64px;
        font-size: var(--fs-lead);
    }

    .lg-tile__name {
        font-size: var(--fs-aux);
    }

    .lg-banners {
        gap: var(--sp-1);
    }

    .lg-banner--half,
    .lg-banner--third {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .lg-banner__caption {
        padding: var(--sp-4) var(--sp-3) var(--sp-2);
    }

    .lg-banner__caption strong {
        font-size: var(--fs-body);
    }

    .lg-side {
        flex-direction: column;
    }

    /* 竖排时取消纵向拉伸：列方向上的 flex: 1 1 0 会把基准高度算成 0，
       面板本身 overflow: hidden，内容就被整块裁掉（PC 两栏并排时无此问题） */
    .lg-side > .lg-panel {
        flex: none;
    }
}

@media (max-width: 640px) {
    .lg-quick__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ======================= 移动端表单控件 =======================
   iOS Safari 在输入框 / 下拉 / 文本域字号小于 16px 时，聚焦会自动放大视口。
   这里把控件字号统一抬到 16px 下限；不使用 user-scalable=no / maximum-scale 禁用缩放。
   用 !important 压过各板块自己的控件字号（.field input 等），是全站唯一的硬下限。 */
@media (max-width: 900px) {
    input,
    select,
    textarea {
        font-size: max(var(--fs-control), 16px) !important;
    }
}
