/*
 * Django 版专用样式补充。
 *
 * 与原 Nuxt 版的差异及原因：
 *   1. 弹窗显隐：原版用 Vue 的 v-if 把节点移出 DOM，所以 main.css 里的
 *      .modal-mask 直接写死 display:flex。Django 版节点常驻，改由 .open 类控制。
 *   2. 卡片/表格切换等原本由前端状态驱动的元素，改为链接 + 服务端渲染。
 *
 * ⚠️ main.css 与 components.css 都是自动生成的移植产物，不要往里加规则；
 *    所有 Django 侧的新增/覆盖写在本文件，便于日后对照与回滚。
 */

/* 弹窗 */
.modal-mask { display: none; }
.modal-mask.open { display: flex; }
[data-modal-body][hidden],
[data-modal-success][hidden] { display: none; }

/* 打开弹窗时锁住页面滚动 */
body.modal-open { overflow: hidden; }

/* 语言下拉：原版无提交按钮（change 即生效），表单外观需与裸 select 一致 */
.lang-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lang-form noscript button { margin-inline-start: 4px; }

/* 无 JS 时的兜底：把 AJAX 表单也当作普通表单提交（Django 侧会正常处理并重定向） */
.no-js .modal-mask { display: none; }

/* ── 车辆详情页：图库舞台 / Tab 面板 / 灯箱 ──
   原版靠 Vue 的 v-if 与 :class 绑定控制显隐，Django 版全部渲染后用 class 切换。
   选择器加上属性限定以提高特异性，确保覆盖 main.css 里的同名规则。 */
[data-gallery-main] > [data-slide] { display: none; }
[data-gallery-main] > [data-slide].active { display: block; height: 100%; }

[data-tabs] > [data-panel] { display: none; }
[data-tabs] > [data-panel].active { display: block; }

.lightbox[data-lightbox] { display: none; }
.lightbox[data-lightbox].open { display: flex; }
[data-lightbox] .lb-stage > [data-slide] { display: none; }
[data-lightbox] .lb-stage > [data-slide].active { display: block; }

/* 缩略图选中态（原版用 :class="{ active: i === active }"）。
   2026-10-06 清理：border-color 对 border:none 的按钮无效，删掉；光圈保留 */
.gal-thumb.active { box-shadow: 0 0 0 2px var(--primary-soft); }

/* 无 JS 时至少展示第一张，避免舞台空白 */
.no-js [data-gallery-main] > [data-slide]:first-child { display: block; }
.no-js [data-tabs] > [data-panel]:first-of-type { display: block; }

/* ═══════════════════ 页头导航（2026-10-27 导航整合）═══════════════════
   结构：.sh-nav > a.sh-link（直达入口） / .sh-group > button.sh-group-btn + .sh-menu（分组下拉）
   分工（刻意不重写颜色，避免与移植产物打架）：
     · 颜色 / 选中态：<a> 仍由 main.css 的「.sh-nav a」与 hero.css 的两种页头态负责；
       <button> 不匹配这些选择器，由本段与 hero.css 各补一份等价规则。
     · 本段负责：几何、悬停与选中反馈、下拉面板、窄屏汉堡面板。
   选择器一律写 .sh-nav .xx 提高特异性，压过 main.css 的同名规则。

   断点：
     ≥1201px     单行三列（logo | 导航 | 工具），维持原样
     901–1200px  导航换行到第二行（原 main.css ≤1200px 行为），下拉照常
     ≤900px      整条导航收进汉堡面板（此前 ≤640px 直接 display:none，支撑页在手机上无入口） */

/* ---- 入口几何（链接与分组开关一致） ---- */
.sh-nav .sh-link {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: none;
  padding: 8px 10px; border-radius: 9px;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.35;
  white-space: nowrap; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
/* button 的配色（a 走 main.css / hero.css）：白底页头上的常态与悬停 */
.sh-nav .sh-group-btn { color: var(--text); }
.sh-nav .sh-group-btn:hover { background: var(--bg); color: var(--primary); }

/* ---- 分组：开关 + 面板 ---- */
.sh-nav .sh-group { position: relative; display: flex; align-items: center; }
.sh-caret { flex: none; opacity: .65; transition: transform .22s ease; }
.sh-group.is-active .sh-group-btn { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* 面板 = 白卡片 + 轻投影（浮层用影与站内弹窗/联系组件同规格）；外层承担贴边与入场动效。
   收起态用 display:none 而不是 visibility/opacity —— 后者会让文本留在无障碍树之外却仍占布局，
   也等于「一个还要等动画才出来的隐藏态」；display:none 直接不参与渲染，语义最干净。 */
.sh-nav .sh-menu {
  position: absolute; top: 100%; inset-inline-start: 50%; z-index: 60;
  min-width: 186px; padding-top: 6px;   /* 6px 贴边留白同时充当按钮→面板的悬停过渡带 */
  display: none; transform: translateX(-50%);
}
.sh-nav .sh-menu-card {
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(11, 31, 58, .16), 0 2px 6px rgba(11, 31, 58, .07);   /* 下拉是真浮层（菜单），与站内弹窗同规格；taste-skill-ignore */
}
.sh-nav .sh-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.sh-nav .sh-menu a:hover { background: var(--bg); color: var(--primary); }
.sh-nav .sh-menu a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* 展开：悬停/键盘聚焦（纯 CSS 即可用，无 JS 也有下拉）+ 点按开关 .open（触屏、键盘回车）。
   入场动效只做「显示」这一程（淡入 + 微微上浮），收起即时，避免鼠标扫过时一屏幕都在晃。 */
@media (min-width: 901px) {
  .sh-group:hover .sh-menu,
  .sh-group:focus-within .sh-menu,
  .sh-group.open .sh-menu { display: block; animation: sh-menu-in .2s cubic-bezier(.2, .7, .3, 1); }
  .sh-group:hover .sh-caret,
  .sh-group:focus-within .sh-caret,
  .sh-group.open .sh-caret { transform: rotate(180deg); }
  @keyframes sh-menu-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}

/* ---- 汉堡按钮（仅 ≤900px 显示） ---- */
.sh-burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; color: var(--text); padding: 0;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.sh-burger:hover { border-color: var(--primary); color: var(--primary); }
.sh-burger-ico--x { display: none; }
.sh-burger[aria-expanded='true'] .sh-burger-ico { display: none; }
.sh-burger[aria-expanded='true'] .sh-burger-ico--x { display: block; }

/* 桌面端询价入口是右侧主按钮，面板里那一行藏起来避免重复。
   选择器必须带 .sh-nav 前缀：上面「.sh-nav .sh-link」的 display 优先级更高，单类名压不住 */
.sh-nav .sh-nav-cta { display: none; }

@media (max-width: 900px) {
  .sh-burger { display: inline-flex; }

  /* 收起态 = 面板本身；展开由 .open 控制（JS 只切这一个类 + aria-expanded） */
  .sh-nav { display: none; }
  .sh-nav.open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; inset-inline: 0;
    max-height: calc(100vh - 96px); overflow-y: auto;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 18px 40px rgba(11, 31, 58, .16);   /* 面板靠投影分层，不压 1px 边框；taste-skill-ignore */
    animation: sh-nav-in .22s cubic-bezier(.2, .7, .3, 1);
  }
  @keyframes sh-nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .sh-nav .sh-link { justify-content: space-between; padding: 11px 12px; font-size: 14px; }
  .sh-group { flex-direction: column; align-items: stretch; }
  .sh-group .sh-group-btn { width: 100%; }

  /* 面板内下拉改为就地展开（不再浮层），子项缩进显出层级；
     收起的子菜单必须 display:none —— 否则面板会空出两块的占位 */
  .sh-nav .sh-menu {
    position: static; inset-inline-start: auto; min-width: 0;
    display: none; padding: 0; transform: none;
  }
  .sh-nav .sh-menu-card { background: none; padding: 2px 0 4px 12px; box-shadow: none; }   /* 清零而非加影；taste-skill-ignore */
  .sh-nav .sh-menu a { padding: 9px 12px; font-size: 13.5px; }
  .sh-group.open .sh-menu { display: block; }
  .sh-group.open .sh-caret { transform: rotate(180deg); }

  /* 面板恒为白底深字：压过首页透明态里「.sh-nav a 白字」那一组规则。
     :not(.sh-nav-cta) —— 询价那行是蓝底白字的按钮，不能被这条深字规则吃掉 */
  .sh-nav.open .sh-link:not(.sh-nav-cta),
  .sh-nav.open .sh-menu a { color: var(--text); }
  .sh-nav.open .sh-link:not(.sh-nav-cta):hover,
  .sh-nav.open .sh-menu a:hover { background: var(--bg); color: var(--primary); }
  .sh-nav.open .sh-link:not(.sh-nav-cta).active,
  .sh-nav.open .sh-group.is-active > .sh-group-btn,
  .sh-nav.open .sh-menu a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

  .sh-nav .sh-nav-cta {
    display: flex; justify-content: center; margin-top: 8px;
    background: var(--primary); color: #fff; font-weight: 700;
  }
  .sh-nav .sh-nav-cta:hover { background: var(--primary-dark); color: #fff; }
}

/* 面板打开时锁住页面滚动（与 .modal-open 同一套约定） */
body.nav-open { overflow: hidden; }

/* ═══════════════════ 浮动胶囊导航（2026-10-27）═══════════════════
   参照 macOS dock 的浮动胶囊：导航从页头带里「浮」出来 —— 胶囊底 + 浅描边 + 柔和投影；
   入口在胶囊内依次入场（对应参考代码里的 --d 延迟），选中项是一颗实心药丸，
   悬停时从中心透出一圈柔光（burst）。
   两套配色：
     · 页头实底（内页 / 首页滚过首屏）：白胶囊 + 深字 + 品牌蓝实心选中项；
     · 首页首屏透明态：深玻璃胶囊 + 白字（与首页 Hero 的玻璃语言一致）。
   注意：选择器统一带 .site-header .sh-nav[data-dock] 前缀：hero.css 在 django.css **之后**加载，
      它的「.site-header.is-solid .sh-nav a」特异性更高，这里必须压过它才生效。 */

/* ---- 胶囊本体 ---- */
.site-header .sh-nav[data-dock] {
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(11, 31, 58, .10), 0 1px 2px rgba(11, 31, 58, .05);   /* 浮在页头带上的胶囊；taste-skill-ignore */
}

/* ---- 入口：药丸形；选中项是胶囊里的一颗实心药丸 ---- */
.site-header .sh-nav[data-dock] a.sh-link,
.site-header .sh-nav[data-dock] button.sh-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.site-header .sh-nav[data-dock] a.sh-link:hover,
.site-header .sh-nav[data-dock] button.sh-link:hover { background: var(--bg); color: var(--primary); }

.site-header .sh-nav[data-dock] a.sh-link.active,
.site-header .sh-nav[data-dock] .sh-group.is-active > button.sh-group-btn {
  background: var(--primary); color: #fff; font-weight: 700;
}

/* ---- burst：悬停时从中心透出的一圈柔光 ---- */
.site-header .sh-nav[data-dock] a.sh-link::before,
.site-header .sh-nav[data-dock] button.sh-link::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(40, 95, 158, .16), transparent 68%);
  opacity: 0; transform: scale(.55);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.site-header .sh-nav[data-dock] a.sh-link:hover::before,
.site-header .sh-nav[data-dock] button.sh-link:hover::before { opacity: 1; transform: scale(1); }

/* ---- 依次入场（对应参考代码里的 --d 延迟）----
   延迟走自定义属性：animation 简写会把 animation-delay 重置回 0，
   直接写 nth-child 的 animation-delay 会被简写那条（同特异性、带元素选择器）压掉。 */
@keyframes sh-dock-in {
  from { opacity: 0; transform: translateY(-7px) scale(.92); }
  to { opacity: 1; transform: none; }
}
.site-header .sh-nav[data-dock] > a.sh-link,
.site-header .sh-nav[data-dock] > .sh-group {
  animation: sh-dock-in .44s cubic-bezier(.2, .7, .3, 1) backwards;
  animation-delay: var(--dock-d, 0ms);
}
.site-header .sh-nav[data-dock] > :nth-child(1) { --dock-d: 40ms; }
.site-header .sh-nav[data-dock] > :nth-child(2) { --dock-d: 90ms; }
.site-header .sh-nav[data-dock] > :nth-child(3) { --dock-d: 140ms; }
.site-header .sh-nav[data-dock] > :nth-child(4) { --dock-d: 190ms; }
.site-header .sh-nav[data-dock] > :nth-child(5) { --dock-d: 240ms; }
.site-header .sh-nav[data-dock] > :nth-child(6) { --dock-d: 290ms; }

/* ---- 首页首屏（页头透明）的玻璃胶囊态写在 hero.css ----
   hero.css 只在首页加载，正好承载「浮在照片上」这一态；写在这里会连内页一起生效（内页页头
   没有 .is-solid，:not(.is-solid) 会命中），白字会落在白胶囊上读不了。 */

/* ---- 901–1200px：导航原本要换行到第二行，胶囊保持整颗、不随行拉通 ---- */
@media (max-width: 1200px) {
  .site-header .sh-nav[data-dock] {
    justify-self: center;
    width: max-content;
    max-width: 100%;
    flex-wrap: nowrap;
  }
}

/* ---- ≤900px：胶囊只属于桌面，窄屏展开的是整幅白色面板 ---- */
@media (max-width: 900px) {
  .site-header .sh-nav[data-dock],
  .site-header .sh-nav[data-dock].open {
    /* width 要显式放开：≤1200 那段给胶囊设了 width:max-content（好让它在第二行居中），
       窄屏面板要的是整幅宽度，否则面板会缩成一条窄柱 */
    width: auto;
    justify-self: stretch;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 18px 40px rgba(11, 31, 58, .16);   /* 面板靠投影分层；taste-skill-ignore */
    backdrop-filter: none;   /* taste-skill-ignore */
    -webkit-backdrop-filter: none;   /* taste-skill-ignore */
  }
  /* 面板内的入口回到方角，不再是药丸 */
  .site-header .sh-nav[data-dock].open .sh-link { border-radius: 9px; }
  /* 面板里的选中态回到浅蓝底（整行实心蓝块太重，与页内其它强调色打架） */
  .site-header .sh-nav[data-dock].open .sh-link.active,
  .site-header .sh-nav[data-dock].open .sh-group.is-active > .sh-group-btn {
    background: var(--primary-soft); color: var(--primary); font-weight: 700;
  }
}

/* ═════════════ 首页导流横幅（2026-10-27，对齐参考站 kazavto）═════════════
   结构：.promo-band > .pb-media（自有实拍）+ .pb-body（眉题/标题/说明/三条要点/按钮）。
   两个变体刻意用不同「场」而不是同一套配色换色：--navy 深底压照片（车源导流），
   --light 浅底照片在左（招商）。两张横幅在首页相隔一个板块，构图与色彩都不重复。 */

.promo-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch; overflow: hidden;
  border-radius: 22px;            /* 与 .cta-banner 同一规格 */
}
/* 照片列：按 16:9 裁，不让 4:3 原图把整条横幅撑到 440px 高。
   图改成绝对定位铺满（position:absolute + inset:0），高度完全由 aspect-ratio 决定，
   文案再长也只是把行撑高、照片跟着拉伸，不会留出半截空白。 */
.pb-media { position: relative; aspect-ratio: 16 / 9; min-height: 220px; }
.pb-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 文案列：垂直居中 —— 照片列比文案高时，空白上下均分，而不是全堆在文案下面 */
.pb-body {
  padding: 32px 40px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 12px;
}
.pb-body h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pb-sub { margin: 0; font-size: 15px; line-height: 1.7; }
.pb-points { list-style: none; margin: 2px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pb-points li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.pb-points .uicon { flex: none; }

/* 变体一：深海军蓝纯色底（与既有 .cta-banner 同族；刻意不用渐变 —— 平色更接近参考站的
   深色面板，也不给页面再加一层渐变） */
.promo-band--navy { background: var(--navy); color: #fff; }
.promo-band--navy .pb-sub { color: #c7d3e6; }
.promo-band--navy .pb-points li { color: #e6ecf7; }
.promo-band--navy .pb-points .uicon { color: var(--accent); }

/* 变体二：浅底卡片（白卡 + 细线，与站内卡片同语言），照片在其右 */
.promo-band--light { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.promo-band--light .pb-sub { color: var(--muted); }
.promo-band--light .pb-points li { color: var(--text); }
.promo-band--light .pb-points .uicon { color: var(--green); }
/* 招商横幅：照片换到右侧 —— 与上方横幅的「图左文右」相反，避免两条横幅长得一样 */
.promo-band--light .pb-media { order: 2; }

@media (max-width: 900px) {
  .promo-band { grid-template-columns: 1fr; }
  .promo-band--light .pb-media { order: 0; }     /* 单列时统一「图在上、文在下」 */
  /* 单列时照片横条：固定高度，不再按 16:9 拉高 */
  .pb-media { aspect-ratio: auto; min-height: 0; height: 190px; }
  .pb-body { padding: 26px 22px; gap: 10px; }
  .pb-body h2 { font-size: 22px; }
  .pb-sub { font-size: 14px; }
}

/* ═══════════ 筛选 chips：radio 版与新增控件（2026-10-27）═══════════
   背景：chips 原先是 <button type="submit" name value>，点一下只提交它自己那一对
   name=value，同表单其它维度全丢 —— 4 个维度时表现为「选了能源就没了车身」，
   加到 6 个维度后多维组合根本达不到。改成 radio + label 后整表提交，维度都在。

   实现要点：radio 本体 .chip-input 用 clip 抠到 1px 而不 display:none ——
   后者会让键盘无法聚焦、读屏也读不到；保持可聚焦才能 Tab + 空格选中。
   选中态用 :checked + label 触发，视觉与旧 .chip.active 完全一致。 */
.chip-input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;   /* 1px 是视觉隐藏的裁剪尺寸，不是分割线；taste-skill-ignore */
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.chip-input + label { display: inline-flex; align-items: center; gap: 6px; }
.chip-input:checked + label {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700;
}
.chip-input:focus-visible + label { outline: 2.5px solid var(--primary); outline-offset: 2px; }
/* 键盘聚焦时给未选中 chip 也留可见反馈（与站内 focus-visible 语言一致） */
.chip-input:not(:checked):focus-visible + label { outline: 2.5px solid var(--primary); outline-offset: 2px; }
/* chips 行需要相对定位承载视觉隐藏的 radio（绝对定位元素不以它们为参照） */
.chips-radio .chips { position: relative; }
/* 计数角标（口岸行）：选中时用白字压蓝底 */
.chip-n { font-size: 11.5px; font-weight: 700; opacity: .7; }

/* 新增筛选维度那一行（车系 + 价格区间）：两个 .field 并排，窄屏自然堆叠 */
.filter-row--extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.filter-row--extra .field select { width: 100%; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { min-width: 0; }
.price-dash { color: var(--muted); flex: none; }
@media (max-width: 640px) {
  .filter-row--extra { grid-template-columns: 1fr; }
}

/* ═══════════ 首页快捷搜索卡（2026-10-27，对齐参考站 kazavto 的「找车源」位）═══════════
   位置：Hero 首屏内、标题与说明之下（替换原先的单输入框搜索）。
   形态：**透明玻璃面板**浮在照片上 —— 面板几乎透明，照片透过来，只靠模糊、浅描边与
   顶边高光勾出形状（与 .hero-stat 的玻璃语言同源，但这里底色压深一档，
   因为面板上要放白字表单控件，需要比 KPI 卡更强的压暗）。
   2026-10-27 调整：原为纯白卡，浮在深色 Hero 上非常跳（白块抢走首屏视线），
   改成玻璃后卡片退回背景，视线落在标题、照片与按钮上。
   两个页签：找车源 / 找配件；「高级搜索」指向各自的完整筛选页。 */

.quick-search {
  margin: 22px 0 4px; max-width: 940px;
  /* 2026-10-27 修：品牌选择面板被下方的 KPI 卡压住（面板上能看穿到 1000+ 卡片）。
     原因：.hero-stat 带 backdrop-filter，Chrome 会把它提升成**独立合成层**，合成层
     永远盖在普通内容之上，z-index 再高也不管用。给搜索卡自己一个定位 + z-index，
     它（连同里面的面板）就会作为一整层排在 KPI 卡之上。 */
  position: relative; z-index: 6;
  /* 透明玻璃（2026-10-27 三改）：与首屏下方的 KPI 卡用**同一套**玻璃参数 ——
     白 .07 薄底 + 1px 白描边（.14）+ 4px 模糊，不再单独压深底色、不再给大投影。
     用户口径：「和下面这个（1000+ 卡片）一样」。两处浮在照片上的元素现在是同一块材料。 */
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 12px 22px 18px;
  /* 玻璃本体就是「半透明 + 背景模糊」，这是它唯一的实现方式；taste-skill-ignore */
  backdrop-filter: blur(4px);   /* taste-skill-ignore */
  -webkit-backdrop-filter: blur(4px);   /* taste-skill-ignore */
}
/* 面板与 KPI 卡同料后没有任何压暗，白字会直接压在大灯/车窗这类高光上（实测「能源类型」
   「车辆类型」两个标签的底色已接近浅灰）。给面板内的白字统一加「近距描边 + 外圈柔光」两层投影：
   近距那层保证字形边缘始终有一条暗线，外圈那层把周围的高光压出一圈过渡，字就浮得起来。
   投影只作用于面板内的文字，不扩散到其它区块。 */
.quick-search .qs-tab,
.quick-search .field label,
.quick-search .field select,
.quick-search .field input,
.quick-search .qs-picker-label,
.quick-search .qs-adv {
  text-shadow: 0 1px 2px rgba(2, 10, 24, .55), 0 2px 10px rgba(2, 10, 24, .45);
}

/* ---- 页签：下划线式（真实的分页指示，不是装饰分割线） ---- */
.qs-tabs { display: flex; gap: 22px; margin-bottom: 14px; }
.qs-tab {
  border: none; background: none; padding: 12px 2px 10px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, .70);
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.qs-tab:hover { color: #fff; }
.qs-tab.active { color: #fff; border-bottom-color: #fff; }

/* ---- 面板内的表单控件：半透明白底 + 白字，与 KPI 卡同一套明度关系 ---- */
.quick-search .field label { color: #fff; }
.quick-search .field input,
.quick-search .field select {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.quick-search .field input::placeholder { color: rgba(255, 255, 255, .62); }
.quick-search .field input:focus,
.quick-search .field select:focus {
  border-color: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}
/* 展开的下拉列表由系统绘制，仍是白底 —— 必须显式给深色字，否则白底白字 */
.quick-search .field select option { background: #fff; color: var(--text); }

/* ---- 字段行：车源 4 列 / 配件 3 列（.grow 的关键词占宽） ---- */
.qs-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qs-panel[data-qs-panel='parts'] .qs-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); }
.qs-panel[hidden] { display: none; }
.qs-fields .field input, .qs-fields .field select { height: 40px; }
.qs-fields .field.grow { grid-column: auto; }

/* ---- 品牌选择面板（2026-10-27，对齐参考站的「字母索引 + 车标网格 + 热门品牌」）----
   原生 select 是控件本体；带 JS 时被隐藏（display:none 仍会随表单提交），
   由 .qs-picker 顶上来。品牌清单只有 select 那一份，面板内容全由 JS 从 option 派生。 */
.qs-brand-field .qs-picker { position: relative; }
.qs-option-picker { position: relative; }
.qs-option-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.qs-option-panel[hidden] { display: none; }
.qs-option-tile { min-height: 58px; justify-content: center; }
.qs-fields > .field:nth-last-child(-n+2) .qs-option-panel { inset-inline-start: auto; inset-inline-end: 0; }
@media (max-width: 900px) {
  .qs-option-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.qs-picker-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 40px; padding: 0 12px;
  /* 与面板内其它控件同一种半透明浅底（原生 select 被 JS 换掉后，视觉不能跳） */
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 9px;
  background: rgba(255, 255, 255, .10);
  font-family: inherit; font-size: 14px; color: #fff; text-align: start; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.qs-picker-btn:hover { border-color: rgba(255, 255, 255, .58); }
.qs-picker-btn:focus-visible, .qs-picker-btn[aria-expanded='true'] { border-color: rgba(255, 255, 255, .8); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }   /* 焦点环（无障碍必需，全站统一）；taste-skill-ignore */
.qs-picker-btn .qs-caret { flex: none; color: rgba(255, 255, 255, .75); transition: transform .2s ease; }
.qs-picker-btn[aria-expanded='true'] .qs-caret { transform: rotate(180deg); }
.qs-picker-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 面板：宽度跟着字段但至少 660px（车标网格要放得下），窄屏则整宽 */
.qs-picker-panel {
  position: absolute; z-index: 70; top: calc(100% + 6px); inset-inline-start: 0;
  width: max(660px, 100%); max-height: 420px; overflow: auto;
  background: #fff; border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 18px 44px rgba(4, 12, 28, .28), 0 2px 8px rgba(11, 31, 58, .08);   /* 真浮层（选择面板）；taste-skill-ignore */
}
.qs-alpha { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 10px; margin-bottom: 4px; }
.qs-alpha button {
  min-width: 22px; height: 22px; padding: 0 4px; border: none; background: none; border-radius: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.qs-alpha button:hover { background: var(--bg); color: var(--primary); }
.qs-alpha button.active { background: var(--primary); color: #fff; }
.qs-picker-body { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 14px; }
.qs-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-content: start; }
.qs-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border: 1px solid transparent; border-radius: 10px;
  background: none; cursor: pointer; font-family: inherit; text-align: center;
}
.qs-tile:hover { background: var(--bg-hover); border-color: var(--line); }
.qs-tile[aria-selected='true'] { background: var(--primary-soft); border-color: var(--primary); }
.qs-tile-logo { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.qs-tile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qs-tile-ph {
  width: 34px; height: 34px; border-radius: 999px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--navy-3);
}
.qs-tile-name { font-size: 12px; line-height: 1.3; color: var(--text); word-break: break-word; }
.qs-tile-n { font-size: 11px; color: var(--muted); }
/* 热门品牌：用一块浅色区块与车标网格分开（不画分割线 —— 站内分隔一律靠色调/间距） */
.qs-hot { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.qs-hot h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.qs-hot-list { display: flex; flex-direction: column; gap: 2px; }
.qs-hot-list button {
  border: none; background: none; padding: 5px 6px; border-radius: 7px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--text); text-align: start;
}
.qs-hot-list button:hover { background: var(--bg); color: var(--primary); }
.qs-empty { grid-column: 1 / -1; padding: 16px 4px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .qs-picker-panel { width: 100%; max-height: 360px; }
  .qs-picker-body { grid-template-columns: 1fr; }
  .qs-hot { margin-top: 10px; }
  .qs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- 动作行 ---- */
.qs-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.qs-actions .btn { padding: 11px 26px; }
.qs-adv {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .88);
}
.qs-adv:hover { color: #fff; text-decoration: underline; }

/* Hero 里的次级 CTA：原为纯白底实心块，在深色照片上与主 CTA 抢视线（也是一处大白块）。
   改成描边按钮：主 CTA 仍是橙色实心，次级退到白描边 + 白字，层级一眼分明。 */
.hero-ctas .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55);
}
.hero-ctas .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

@media (max-width: 900px) {
  .quick-search { max-width: none; padding: 4px 14px 16px; }
  .qs-fields, .qs-panel[data-qs-panel='parts'] .qs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .qs-fields, .qs-panel[data-qs-panel='parts'] .qs-fields { grid-template-columns: 1fr; }
  .qs-actions .btn { width: 100%; }
  .qs-adv { justify-content: center; width: 100%; }
}

/* ═══════ 全站容器宽度统一（2026-10-27 视觉评审 P1-4）═══════
   评审前实测：页头 .sh-inner 1340、内容页 .container 1240、关于页 .ab-container 1280、
   列表页 .container-wide 1840 —— 四套宽度，翻页时左边缘在 20 / 70 / 80 / 100px 之间跳。

   定下的规则（两条页宽 + 页头全站统一）：
     · 内容页（首页/关于/FAQ/服务/帮助/条款/询价/服务网络/品牌授权）= 1240 居中；
     · 列表页（/cars、/accessories）= 宽版 1840：这是 2026-10-15 为「大屏多放卡片」做的
       有意决定（≥1480 四列、≥1880 五列），不推翻；
     · 页头**不跟随页宽**，全站固定 1840（2026-10-27 用户反馈「导航栏首页和其他页面位置不一样」）：
       此前页头按页挂 .sh-inner--wide（1240/1840 两档），页头栅格是 `1fr auto 1fr`，
       左右两列的 auto 最小宽度又把导航从正中挤偏 —— 结果同一条胶囊在首页比列表页靠左 70~250px，
       翻页时整条导航横向跳。现在页头只有一个宽度：胶囊在任何页面都居中于视口，
       与宽版列表的内容左右边缘也对得上。
   main.css 是移植产物不在此改动，故本段是覆盖层（原值见 main.css 78 / 359 行）。 */
/* 注意 :not(.container-wide)：列表页那一层是 `.container.container-wide`，
   若写成裸 .container，本段（后加载、同特异性）会把宽版 1840 一起压回 1240 —— 实测踩到过。 */
.container:not(.container-wide) { max-width: 1240px; }
.sh-inner { max-width: 1840px; }
/* 关于页自带一套 1280 容器（about.css 在 head_extra 里、晚于本文件加载），
   body 前缀提一级特异性，保证 1240 与 20px 内边距生效且不依赖加载顺序
   （about.css 在窄屏用 24/32px 内边距，这里统一回 20px，与其它页正文左边缘对齐）。 */
body .ab-page .ab-container {
  max-width: 1240px;
  padding-left: 20px; padding-right: 20px;
}

/* ═══════ 内页标题层级（2026-10-27 视觉评审 P1-5）═══════
   评审实测：9 个内页的 h1 全是 24–31px（2–2.2vw），工具逐页判「首屏没有主导元素」——
   三个层级（页标题/区块标题/正文）挤在 31 / 19 / 15px 之间，眼睛看不出主次。

   定下的字号阶梯（内页）：
     · 详情页车型名 34px（该页的 h1 就是商品名，是首屏唯一主角）
     · 列表/内容页页标题 40px（.page-hero h1）
     · 区块标题 19–22px（各页自带，未动）
     · 正文 15–16px
   上限 40px 而不是 hero 的 42px：内页首屏没有全屏照片托底，字号再大就会与下面的
   内容抢空间；移动端收到 30px（见 media query）。
   main.css 是移植产物，故此处是覆盖层（原值：main.css 316 行 31px / 651 行 25px）。 */
.page-hero h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.022em; }
.dcard h1 { font-size: 34px; }
@media (max-width: 900px) {
  .page-hero h1 { font-size: 34px; }
  /* 平板段也要 ≥32px：工具对 768 下的 h1 有下限判定，28px 会被判「标题偏小」 */
  .dcard h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: 30px; }
  /* main.css 在 ≤768 把 .dcard h1 压到 21px，这里回到 28px：手机端车型名仍是首屏主角 */
  .dcard h1 { font-size: 28px; }
}

/* ═══════ 内页入场动效（2026-10-27 视觉评审 P1-8）═══════
   评审实测：9 页里 7 页「0 个元素有入场动效」（只有首页有视差/反光），内页切换显得生硬。

   与首页两套做法刻意保持一致的降级纪律：
     · **零 JS 也能看到内容**：初始态不是 opacity:0 写死在 CSS 里，而是由 JS 加上
       .reveal-init 才隐藏 —— 脚本没跑、被 CSP 拦、或用户关 JS，页面就是完整的；
     · 只动 transform 与 opacity；
     · prefers-reduced-motion 下整段禁用（与 main.css 的全局降级同向）。

   .reveal-init = 已就位待入场的初始态；.reveal-in = 已入场。元素自己带 60–90ms 的
   错峰延迟（data-reveal-delay），由 zotour.js 施加。 */
.reveal-init { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22, .68, .28, 1), transform .5s cubic-bezier(.22, .68, .28, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; }
  .reveal-in { transition: none; }
}

/* ═══════ 左侧品牌栏折叠（2026-10-27 评审 P2-12）═══════
   评审观察：/cars 与 /accessories 的左栏把所有品牌按字母全量铺开，品牌一多就变成
   一条很长的列表，看车型的视线每次都要穿过它。
   做法：品牌数超过阈值时默认只留前 N 个 + 当前选中项，其余收进「展开全部品牌」。
   注意：hidden 属性对 `display:flex` 的元素**不生效**（UA 的 [hidden]{display:none}
   特异性低于类选择器），所以这里必须显式补两条 —— 否则脚本隐藏了元素却照样显示。 */
.side-brand[hidden],
.side-letter[hidden] { display: none; }

.side-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 6px; padding: 8px 10px;
  border: none; border-radius: 9px; background: var(--bg);
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--primary);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.side-more:hover { background: var(--primary-soft); }
.side-more[hidden] { display: none; }

/* ═══════ 窄屏品牌栏「芯片」高低不齐（2026-10-28 修复）═══════
   实测（605px 视口，/accessories）：6 个品牌胶囊高度**都是 30px**，
   但同一排里的 top 相差 5.5px —— 所以问题不是高度，而是**基线对齐**：
   main.css 的 ≤1024px 规则把 .side-brand 改成 inline-flex 胶囊，容器 .cars-side
   仍是 block，行内盒默认走 vertical-align: baseline；
   有车标（<img>）的胶囊与无车标（.side-logo-ph 首字母，本身含文字）的基线不一致，
   同排就被错位成阶梯状。
   修法：容器改成 flex-wrap —— flex 行内所有项由 align-items 统一，不再参与基线对齐。
   注意：必须锁在 ≤1024px —— 桌面宽度下 .cars-side 是**竖排列表**（.side-brand 为
      display:flex; width:100%），容器一旦改 flex 会把整份列表压成一行。 */
@media (max-width: 1024px) {
  .cars-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  /* 标题行与折叠开关独占一整行，否则会被当成胶囊挤进品牌流里 */
  .cars-side .side-head { flex: 0 0 100%; margin-bottom: 2px; }
  .cars-side .side-more { flex: 0 0 100%; margin-top: 2px; }
}

/* ═══════ 价格形态统一（2026-10-27 评审 P2-9）═══════
   同一处价格位有两种状态：真实数字价 / 「价格请询价」文案。
   问题：询价文案原先直接套用数字价的字号字重（卡片 24px/800 品牌蓝、详情 29px/800、
   配件详情 30px/800），一句话被放大成价格数字的样子；西/俄/葡语更长，还会撑成两行。
   规则：数字价维持原字号字重不动；询价状态统一降为中等字号 + 700，字距归零，
   颜色取所在容器的语义色（卡片用正文色，详情深底沿用白）。.is-ask 是唯一开关，
   模板侧只加这一个类，不再各自写内联样式。 */
.cc-price .prc.is-ask {
  /* 与数字价同一行盒：24px × 1.6 = 38.4 —— 同一行卡片的价格线不会被拉高或压低 */
  font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 38.4px;
  color: var(--text);
}
.d-price .prc-num.is-ask {
  font-size: 21px; font-weight: 700; letter-spacing: 0;
}
.acc-price.is-ask {
  font-size: 17px; font-weight: 700;
}
.sticky-buy .sp-price b.is-ask { font-size: 14px; font-weight: 700; }

/* ═══════ 列表卡徽章收敛（2026-10-27 评审 P2-10）═══════
   照片上固定三个角标：能源（左上）+ 车辆类型（右上）+ 实拍/示意图（右下）。
   「精选」从照片右上角挪到标题行，作为内容标记 —— 带精选的卡不再出现四个角标，
   照片也不再被切得太碎。标签行同步压到最多两个（见 partials/car_card.html 注释）。 */
.cc-title h3 { min-width: 0; }
.cc-pick {
  flex: none; font-size: 12px; font-weight: 700; line-height: 1.5;
  color: var(--primary-dark); background: var(--primary-soft);
  border-radius: 999px; padding: 1px 9px 2px;
}

/* ---- 车辆类型角标（2026-10-27）：新车 / 二手车，右上角 ----
   底色沿用 .badge 的半透明深色（与右下「实拍图」同一档），只有二手车换成琥珀实心：
   列表里绝大多数是新车，给每张卡都上一块实心色会盖住照片；二手车是另一条业务线，
   需要跳出来。琥珀与左上能源徽章的橙（--accent）区分得开，且不抢「燃油」的语义色。 */
.badge-cond { top: 10px; inset-inline-end: 10px; }
.badge-cond.is-used {
  background: var(--amber);
  box-shadow: 0 2px 8px rgba(217, 119, 6, .36);   /* 实心角的压影，与能源徽章的实心角同语言；taste-skill-ignore */
}

/* ═══════ 首页精选四列分栏（2026-10-27 用户要求）═══════
   「四列显示，左两列新车、右两列二手车」。
   做法：两块 2 列栅格并排（home.html 的 .featured-split），不是一块 4 列栅格——
   区块间距与卡片间距同为 20，视觉上就是连续的四列，但两块各自成组：
   某一类不足 6 条时只少自己那组的行，不会混排。
   窄屏：≤1024 两块上下堆叠（每块仍两列），≤640 每块单列。
   （main.css 的 .card-grid 响应式规则是单类名，这里带 .featured-split 前缀，
   特异性更高，故 640 以下要显式改回单列。） */
.featured-split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.featured-split .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* ---- 卡片底部动作区（2026-10-28 用户反馈：「立即询价」被断成两行）----
   根因不是首页四列，而是 /cars 桌面端带品牌侧栏时卡片只有约 290px 宽：
   底部「状态 + 对比 + 详情 + 立即询价」按原来的 18px 内边距 / 14px 间距放不下，
   按钮文字被迫折成「立即询 / 价」（实测按钮 48px 高），底部整条也随之忽高忽低。
   现在统一收紧内边距与间距，并给按钮加 nowrap —— 任何栅格宽度下都保持单行；
   首页四列版式与 /cars 五列版式共用这一套，不再各自覆写。 */
.cc-foot { padding: 12px 14px; flex-wrap: wrap; row-gap: 8px; }
.cc-actions { gap: 10px; flex-wrap: wrap; row-gap: 6px; min-width: 0; }
.cc-actions .btn { margin-inline-start: auto; }   /* 换行后按钮贴右缘，不悬在半空 */
.cc-foot .btn { padding: 7px 12px; white-space: nowrap; }   /* 动作按钮统一单行；taste-skill-ignore */
.cmp-pick { padding: 4px 8px; }
@media (max-width: 1024px) {
  .featured-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .featured-split .card-grid { grid-template-columns: 1fr; }
}

/* ═══════ 页头关键词搜索 + 车辆对比（2026-10-27）═══════
   ① 页头搜索：导航胶囊与「在线询价」之间的紧凑关键词框，提交到 /cars?q=（原生表单，零 JS 可用）。
   ② 车辆对比：卡片上的「对比」按钮 + 底部悬浮对比栏 + /compare 对比页。
   两态（首页透明页头 / 实底页头）分别写在 hero.css 与这里。 */

/* ---- 只给读屏用的文字（页头搜索框的 label）---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- 页头搜索框 ---- */
.sh-search {
  display: flex; align-items: center;
  width: clamp(160px, 18vw, 228px); height: 38px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, width .2s ease;
}
.sh-search:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }   /* 焦点环（无障碍必需）；taste-skill-ignore */
.sh-search input {
  flex: 1; min-width: 0; height: 100%;
  border: none; background: none; outline: none;
  padding: 0 4px 0 13px; font-size: 13px; color: var(--text);
}
.sh-search input::placeholder { color: var(--muted); }
.sh-search-btn {
  flex: none; width: 36px; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-inline-start: 1px solid var(--line); background: none;
  color: var(--muted); cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.sh-search-btn:hover { color: var(--primary); background: var(--bg); }

/* ---- 卡片上的「对比」按钮 ---- */
.cmp-pick {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--muted);
  font-family: inherit; font-size: 12px; font-weight: 700; white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.cmp-pick:hover { border-color: var(--primary); color: var(--primary); }
.cmp-pick.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 无 JS 时整条隐藏：对比是纯前端交互，没 JS 就不该出现点不动的按钮 */
.no-js .cmp-pick { display: none; }

/* ---- 底部悬浮对比栏 ---- */
.cmp-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 58;
  background: rgba(9, 22, 42, .96);
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  animation: cmp-bar-in .22s cubic-bezier(.2, .7, .3, 1);
}
.cmp-bar[hidden] { display: none; }
@keyframes cmp-bar-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.cmp-bar-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cmp-bar-head { display: flex; align-items: center; gap: 10px; }
.cmp-bar-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.cmp-bar-count { font-size: 12px; color: rgba(255, 255, 255, .7); }
.cmp-slots { display: flex; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.cmp-slot {
  display: flex; align-items: center; gap: 8px; max-width: 230px;
  padding: 4px 8px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
}
.cmp-slot-thumb {
  flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.cmp-slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cmp-slot-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-slot-x {
  flex: none; width: 20px; height: 20px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; line-height: 1;
  cursor: pointer; transition: background .16s ease;
}
.cmp-slot-x:hover { background: rgba(255, 255, 255, .34); }
.cmp-bar-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.cmp-bar-hint { flex-basis: 100%; font-size: 12px; color: #ffd7a8; }

/* 对比栏出现时把右下角的联系组件与移动端购买条顶上去，别叠在一起 */
body.has-compare { padding-bottom: 72px; }
body.has-compare .cfab { bottom: 96px; }
body.has-compare .sticky-buy { bottom: 68px; }
body.has-compare .cmp-page { padding-bottom: 96px; }

/* ---- 对比页 ---- */
.cmp-page { padding-top: 26px; }
.cmp-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  text-align: start; vertical-align: middle; font-size: 14px;
}
.cmp-table thead th { background: var(--bg-soft); border-bottom: 1px solid var(--line-2); vertical-align: top; }
.cmp-table tbody th { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cmp-spec-col { width: 148px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cmp-price { font-weight: 800; color: var(--primary); }
.cmp-head { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 176px; }
.cmp-head-link { display: flex; flex-direction: column; gap: 4px; color: inherit; }
.cmp-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 10px; background: var(--img-bg); margin-bottom: 4px;
}
.cmp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cmp-name { font-size: 15px; font-weight: 700; }
.cmp-brand { font-size: 12.5px; color: var(--muted); }
.cmp-remove {
  position: absolute; top: -8px; inset-inline-end: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .16s ease, border-color .16s ease;
}
.cmp-remove:hover { color: var(--red); border-color: var(--red); }
.cmp-back { margin-top: 22px; }
.cmp-empty { text-align: center; padding: 48px 20px; }
.cmp-empty-hint { color: var(--muted); margin: 6px 0 18px; }

/* 窄屏：页头搜索收成一颗图标按钮，聚焦时再展开（纯 CSS :focus-within） */
@media (max-width: 900px) {
  .sh-search { width: 38px; }
  .sh-search input { padding: 0; width: 0; }
  .sh-search:focus-within { width: min(62vw, 220px); }
  .sh-search:focus-within input { width: auto; padding: 0 4px 0 13px; }
  .cmp-bar-inner { gap: 10px; padding: 8px 14px; }
  .cmp-slots { order: 3; flex-basis: 100%; }
  .cmp-bar-actions { margin-inline-start: auto; }
}

/* ═══════ 开放寻车需求（2026-10-27，对齐参考站 kyrgavto 的「开放寻车需求」）═══════
   公开求购板：需求卡 + 详情 + 出价表单 + 发布表单。
   沿用站内既有语言（白卡 + 细线 + 品牌蓝 + 圆角），不另起一套视觉。 */
.rq-page { padding-top: 24px; padding-bottom: 56px; }
/* 板块头右侧的动作组（发布求购 + 全部需求） */
.sec-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---- 工具条：筛选 + 发布入口 ---- */
.rq-toolbar { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rq-filters {
  flex: 1; min-width: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}
.rq-filters .side-actions { display: flex; gap: 8px; }
.rq-brands { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rq-brands-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.rq-brand-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font-size: 12.5px; font-weight: 600; color: var(--text);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.rq-brand-chip b { color: var(--muted); font-size: 11.5px; }
.rq-brand-chip:hover { border-color: var(--primary); color: var(--primary); }
.rq-brand-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rq-brand-chip.is-on b { color: rgba(255, 255, 255, .82); }

/* ---- 需求卡 ---- */
.rq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rq-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s ease, transform .18s ease;
}
.rq-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rq-head { display: flex; align-items: center; gap: 10px; }
.rq-status {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.rq-status--done { background: var(--green-bg); color: var(--green); }
.rq-status--closed { background: #f1f4f9; color: var(--muted); }
.rq-id { font-size: 12px; color: var(--muted); }
.rq-title { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.rq-title a:hover { color: var(--primary); }
.rq-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rq-tag {
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--bg); color: var(--text);
}
.rq-budget { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.rq-budget-label { font-size: 12px; color: var(--muted); }
.rq-budget b { font-size: 17px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.rq-foot {
  margin: 0; display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--muted);
}
.rq-foot time { margin-inline-start: auto; }

/* ---- 详情页 ---- */
.rq-crumb { margin: 0 0 10px; }
.rq-crumb a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rq-crumb a:hover { color: var(--primary); }
.rq-detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.rq-detail-main { display: grid; gap: 16px; }
.rq-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.rq-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rq-time { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.rq-panel-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.rq-count { color: var(--muted); font-weight: 600; }
.rq-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.rq-specs dt { font-size: 12.5px; color: var(--muted); }
.rq-specs dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; }
.rq-note { margin-top: 16px; }
.rq-note h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.rq-note p { margin: 0; color: var(--text); line-height: 1.7; }
.rq-contact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rq-contact h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.rq-contact p { margin: 2px 0; font-size: 14px; }
.rq-contact-hint { font-size: 12.5px !important; color: var(--muted); }

/* ---- 报价列表 ---- */
.rq-quotes { display: grid; gap: 12px; }
.rq-quote { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.rq-quote-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rq-quote-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.rq-quote-company { font-size: 13.5px; font-weight: 600; }
.rq-quote-head time { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.rq-quote-note { margin: 6px 0 0; font-size: 14px; color: var(--text); line-height: 1.6; }
.rq-quote-contact { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.rq-quotes-empty { margin: 0; color: var(--muted); }
.rq-quote-hint { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.rq-error { margin: 0 0 12px; font-size: 13px; color: var(--red); font-weight: 600; }

/* ---- 提示条 ---- */
.rq-flash {
  margin-bottom: 16px; padding: 11px 15px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
}
.rq-flash--ok { background: var(--green-bg); color: var(--green); }
.rq-flash--err { background: var(--red-bg); color: var(--red); }

/* ---- 发布表单 ---- */
.rq-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; max-width: 900px;
}
.rq-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.rq-span-2 { grid-column: 1 / -1; }
.rq-form-hint { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.rq-form-actions { display: flex; gap: 12px; margin-top: 18px; }
.rq-empty { text-align: center; padding: 46px 20px; }
.rq-empty-hint { color: var(--muted); margin: 6px 0 18px; }

@media (max-width: 900px) {
  .rq-grid { grid-template-columns: 1fr; }
  .rq-detail { grid-template-columns: 1fr; }
  .rq-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-specs { grid-template-columns: 1fr; }
  .rq-form-grid { grid-template-columns: 1fr; }
}

/* ═══════════ 信任与帮助页组样式（2026-10-27）═══════════
   /services 贸易服务 · /help 帮助中心 · /terms 法务三节。
   一律沿用站内既有语言：白卡 + 细线 + 品牌蓝 + 22px 圆角，不引入新视觉体系。 */

/* 服务页首屏的动作按钮：page-hero 原本只有标题与说明，这里给它留一段间距 */
.page-hero-cta { margin: 18px 0 0; }

/* ═══════════ 服务商目录（2026-10-28，对齐 kyrgavto /services 的服务商板块）═══════════
   版式分工：
     · 首屏右侧两枚真实计数（品类数 / 服务商数），不做成一排大数字卡片；
     · 目录区是页面主角：品类胶囊（服务端链接筛选）+ 关键词搜索 + 服务商卡；
     · 卡片沿用站内「白卡 + 细线 + 品牌蓝」语言，信息层级：名称 → 城市/认证 → 简介 → 品类 → 咨询。 */
.svc-hero-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.svc-hero-main { min-width: 0; }
.svc-hero-sub { max-width: 760px; font-size: 15.5px !important; line-height: 1.75; }
.svc-hero-stats { display: flex; gap: 10px; flex: none; }
.svc-hero-stat {
  min-width: 104px; padding: 12px 16px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.svc-hero-stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--navy); }
.svc-hero-stat span { font-size: 12.5px; color: var(--muted); }

.svc-dir-head { margin-bottom: 20px; }

.svc-dir-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.svc-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-cat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.svc-cat span {
  padding: 1px 7px; border-radius: 999px; background: var(--bg);
  font-size: 11.5px; font-weight: 700; color: var(--muted);
}
.svc-cat:hover { border-color: var(--primary); color: var(--primary); }
.svc-cat.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-cat.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }

.svc-search { display: flex; align-items: center; gap: 8px; }
.svc-search input[type="search"] {
  width: 262px; padding: 9px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius-s); background: #fff; color: var(--text);
  font-family: inherit; font-size: 13.5px;
}
.svc-search input[type="search"]:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }

.svc-providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-provider {
  display: flex; flex-direction: column; gap: 13px;
  padding: 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.svc-provider:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.svc-provider-head { display: flex; align-items: flex-start; gap: 12px; }
.svc-provider-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.svc-provider-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.svc-provider-ph { font-size: 20px; font-weight: 800; color: var(--navy); }
.svc-provider-id { flex: 1; min-width: 0; }
.svc-provider-id h3 { margin: 0 0 3px; font-size: 16px; font-weight: 800; color: var(--text); }
.svc-provider-id h3 a { color: inherit; }
.svc-provider-id h3 a:hover { color: var(--primary); }
.svc-provider-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  margin: 0; font-size: 12.5px; color: var(--muted);
}
.svc-dot { opacity: .6; }
.svc-provider-verified { flex: none; font-size: 11px; white-space: nowrap; }
.svc-provider-intro {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0; font-size: 14px; line-height: 1.75; color: var(--text);
}
.svc-provider-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-provider-tags .tag { padding: 2px 9px; border-radius: 999px; background: var(--bg); font-size: 11.5px; color: var(--text); }
.svc-provider-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.svc-provider-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.svc-provider-link:hover { color: var(--primary); }

.svc-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

@media (max-width: 1100px) {
  .svc-hero-grid { align-items: flex-start; }
  .svc-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .svc-hero-grid { flex-direction: column; }
  .svc-hero-stats { width: 100%; }
  .svc-hero-stat { flex: 1; }
  .svc-dir-toolbar { align-items: stretch; }
  .svc-search { width: 100%; }
  .svc-search input[type="search"] { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 640px) {
  .svc-providers { grid-template-columns: 1fr; }
  .svc-search { flex-wrap: wrap; }
  .svc-search input[type="search"] { flex-basis: 100%; }
}

/* ═══════════ 服务商主页（2026-10-28，对齐 kyrgavto 服务商主页）═══════════
   深色横幅 + 白色内容区；服务目录三栏，关于/联系分成两段。
   咨询用右侧抽屉，不跳页 —— 访客在阅读服务的同时就能发消息。 */
.pv-hero {
  position: relative; overflow: hidden; color: #fff;
  background-size: cover; background-position: center;
  display: flex; align-items: stretch;
}
.pv-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 58, .92) 0%, rgba(11, 31, 58, .72) 52%, rgba(11, 31, 58, .38) 100%);
}
.pv-hero-inner {
  position: relative; z-index: 1; width: 100%;
  min-height: 340px; padding-top: 44px; padding-bottom: 42px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
}
.pv-hero-main { min-width: 0; max-width: 760px; }
.pv-crumb { margin: 0 0 14px; }
.pv-crumb a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255, 255, 255, .74);
  transition: color .15s ease;
}
.pv-crumb a:hover { color: #fff; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pv-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .14);
  font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap;
}
.pv-badge--ghost { background: transparent; color: rgba(255, 255, 255, .82); }
.pv-hero h1 {
  margin: 0 0 12px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.14;
  font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.pv-tagline {
  max-width: 660px; margin: 0 0 14px;
  font-size: 15.5px; line-height: 1.75; color: rgba(255, 255, 255, .86);
}
.pv-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .74);
}
.pv-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pv-hero-actions { display: flex; flex-direction: column; gap: 9px; flex: none; min-width: 166px; }
.pv-hero-actions .btn { justify-content: center; }
.pv-on-dark {
  border-color: rgba(255, 255, 255, .92) !important;
  background: rgba(255, 255, 255, .94) !important;
  color: var(--navy) !important;
}
.pv-on-dark:hover { background: #fff !important; border-color: #fff !important; color: var(--navy) !important; }

.pv-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.pv-tabs-inner { display: flex; gap: 28px; }
.pv-tab {
  padding: 15px 2px 13px; border-bottom: 2px solid transparent;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color .15s ease, border-color .15s ease;
}
.pv-tab:hover { color: var(--primary); }
.pv-tab.is-on { color: var(--primary); border-bottom-color: var(--primary); }

.pv-section { scroll-margin-top: 88px; }
.pv-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pv-service {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pv-service:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.pv-service-media { margin: 0; background: var(--img-bg); }
.pv-service-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pv-service-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.pv-service-body .tag { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.pv-service-body h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--text); }
.pv-service-body p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.pv-service-cta { margin-top: auto; }
.pv-empty { padding: 44px 24px; }
.pv-empty .btn { margin-top: 6px; }

.pv-about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr); gap: 34px; align-items: start; }
.pv-about-text p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--text); }
.pv-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pv-facts > div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.pv-facts dt { font-size: 12.5px; color: var(--muted); }
.pv-facts dd { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text); }

.pv-contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
.pv-contact-card {
  padding: 24px 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pv-contact-list { margin: 0; display: grid; gap: 14px; }
.pv-contact-list > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
.pv-contact-list dt { font-size: 13px; color: var(--muted); }
.pv-contact-list dd { margin: 0; font-size: 14px; color: var(--text); }
.pv-contact-list a { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); }
.pv-chat-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
}
.pv-chat-cta h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; }
.pv-chat-cta p { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.pv-chat-cta .btn { margin-top: auto; }
.pv-muted { color: var(--muted) !important; font-size: 14px !important; }

/* 咨询抽屉 */
body.pv-chat-open { overflow: hidden; }
.pv-chat { position: fixed; inset: 0; z-index: 220; display: flex; justify-content: flex-end; }
.pv-chat[hidden] { display: none; }
.pv-chat-mask { position: absolute; inset: 0; background: rgba(11, 31, 58, .46); }
.pv-chat-panel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: 404px; max-width: 100%; height: 100%; background: #fff;
  box-shadow: -18px 0 48px rgba(11, 31, 58, .2);
  animation: pv-chat-in .22s cubic-bezier(.2, .7, .3, 1);
}
@keyframes pv-chat-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.pv-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: var(--navy); color: #fff;
}
.pv-chat-avatar {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 18px; font-weight: 800;
}
.pv-chat-avatar img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-chat-head-text { flex: 1; min-width: 0; }
.pv-chat-head-text h2 { margin: 0; font-size: 15.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-chat-head-text p { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.pv-chat-dot { width: 7px; height: 7px; border-radius: 999px; background: #4ade80; display: inline-block; }
.pv-chat-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; border: none;
  background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer;
}
.pv-chat-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pv-chat-log {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px; background: #f6f8fd;
}
.pv-chat-greeting {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
.pv-msg { display: flex; flex-direction: column; gap: 4px; max-width: 84%; }
.pv-msg--provider { align-self: flex-start; align-items: flex-start; }
.pv-msg--visitor { align-self: flex-end; align-items: flex-end; }
.pv-msg-who { font-size: 10.5px; color: var(--muted); }
.pv-msg-bubble { padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.pv-msg--provider .pv-msg-bubble { background: #fff; border: 1px solid var(--line); color: var(--text); border-top-left-radius: 4px; }
.pv-msg--visitor .pv-msg-bubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.pv-msg-time { font-size: 10px; color: #9aa3b2; }
.pv-chat-form { border-top: 1px solid var(--line); padding: 12px 14px 14px; background: #fff; }
.pv-chat-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pv-chat-identity[hidden] { display: none; }
.pv-chat-identity input,
.pv-chat-compose textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px;
  font-family: inherit; font-size: 13px; color: var(--text); background: #fff;
}
.pv-chat-identity input:focus,
.pv-chat-compose textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.pv-chat-compose { display: flex; align-items: flex-end; gap: 8px; }
.pv-chat-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
.pv-chat-compose .btn { flex: none; }
.pv-chat-hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.pv-chat-hint.is-error { color: var(--red); }

@media (max-width: 1024px) {
  .pv-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-about-grid, .pv-contact-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .pv-hero-inner { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 36px; }
  .pv-hero-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .pv-hero-actions .btn { flex: 1; min-width: 130px; }
  .pv-services { grid-template-columns: 1fr; }
  .pv-chat-panel { width: 100%; }
  .pv-facts > div, .pv-contact-list > div { grid-template-columns: 1fr; gap: 3px; }
}

/* 帮助中心：四个快速入口 + 分类目录 */
.help-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.help-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.help-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-1); }   /* 悬停时的可点反馈（静止态无影）；taste-skill-ignore */
.help-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--text); }
/* 入口说明是「这一栏里有什么」的正文，用全色 14px：既过对比度，也不做成一排浅灰小字 */
.help-card p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.7; }
.help-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.help-cat {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.help-cat:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* FAQ 分类分组（锚点目标）：标题与组间距，页面不做卡片化，保持问答列表的轻量感 */
.faq-group + .faq-group { margin-top: 34px; }
.faq-group-title { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.faq-group { scroll-margin-top: 90px; }   /* 从帮助中心跳锚点时给吸顶页头留出高度 */
/* 2026-10-27 评审：components.css 里的 .faq-list 自带 max-width:860px; margin:0 auto
   —— 那是「单列居中的问答块」时代的设定。分组之后，类别标题是**左对齐**的，
   列表却居中，同屏出现两条不同的左边缘（实测截图里标题 x≈80、卡片 x≈210）。
   分组结构下改为占满所在容器并跟随标题左边缘。 */
.faq-group .faq-list { max-width: none; margin: 0; }

/* 法务页：把三节正文限制在易读行宽（长段落全宽会超 75 字符），并保留锚点偏移 */
.legal-doc { max-width: 780px; }
.legal-doc section { scroll-margin-top: 90px; }
.legal-doc section + section { margin-top: 36px; }
.legal-doc h2 { margin: 0 0 12px; font-size: 21px; font-weight: 800; }
.legal-doc p { margin: 0 0 12px; font-size: 15px; line-height: 1.85; color: var(--text); }
.legal-contact {
  display: flex; flex-direction: column; gap: 6px; margin-top: 16px;
  padding: 18px 20px; border-radius: var(--radius-s); background: var(--bg);
  font-size: 14px; color: var(--muted);
}
.legal-contact b { font-size: 15px; color: var(--text); }
.legal-contact a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--primary); }
.legal-updated { margin-top: 26px !important; font-size: 13px !important; color: var(--muted); }

@media (max-width: 1024px) {
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .help-grid { grid-template-columns: 1fr; }
}

/* 无 JS 兜底（只有 ≤900px 需要）：桌面那套悬停下拉是纯 CSS，无 JS 照样能展开，
   所以只在「汉堡面板不可用」的窄屏铺成可换行的列表。
   分组用 display:contents 摊平 —— 否则「服务网络 / 品牌授权 / 关于我们 / 常见问题」
   在窄屏无 JS 时既没有面板、又没有悬停，会彻底够不到（功能遗漏）。 */
@media (max-width: 900px) {
  html.no-js .sh-nav { display: flex; flex-wrap: wrap; gap: 2px; position: static; }
  html.no-js .sh-nav .sh-group { display: contents; }
  html.no-js .sh-nav .sh-menu {
    display: block; position: static; min-width: 0; padding: 0; transform: none;
  }
  html.no-js .sh-nav .sh-menu-card { background: none; padding: 0; box-shadow: none; }   /* 清零而非加影；taste-skill-ignore */
  html.no-js .sh-nav .sh-caret { display: none; }
  html.no-js .sh-nav .sh-nav-cta { display: inline-flex; }
  html.no-js .sh-burger { display: none; }
}

/* ═══════════ 品牌目录 + 品牌详情（2026-10-27）═══════════
   /brands 品牌卡网格 + 字母索引；/brands/<slug> 品牌概览 + 车系/能源分布 + 车源卡。
   沿用站内既有语言（白卡 + 细线 + 品牌蓝 + 圆角），不另起一套视觉。 */
.br-page { padding-top: 24px; padding-bottom: 56px; }

/* ---- 工具条：关键词 + 排序 + 仅有在售 ---- */
.br-toolbar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-1); margin-bottom: 14px;
}
.br-toolbar .br-search { flex: 1; min-width: 220px; }
.br-toolbar .side-actions { display: flex; gap: 8px; }
.br-check {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px;
  font-weight: 600; color: var(--text); cursor: pointer; padding-bottom: 8px;
}
.br-check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---- 字母索引 ---- */
.br-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.br-letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.br-letter:hover { border-color: var(--primary); color: var(--primary); }
.br-letter.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- 品牌卡 ---- */
.br-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 12px; margin-bottom: 34px;
}
.br-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 10px 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.br-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.br-logo { width: 100%; }
.br-card .brand-logo { aspect-ratio: 1.5; }
.br-card .brand-name { font-size: 13px; color: var(--text); font-weight: 600; }
.br-card-meta { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.br-card-meta b { color: var(--primary); font-weight: 800; }
.br-card-none { color: var(--muted); }
/* 无在售的品牌：不做悬停上浮（点进去是空页，不必诱导） */
.br-card.is-empty:hover { transform: none; box-shadow: var(--shadow-1); }
.br-card.is-empty .brand-logo { opacity: .62; }

/* ---- 按字母分组的品牌目录（按名称排序时） ---- */
.br-letter-group { margin-bottom: 30px; }
.br-letter-title {
  margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--navy);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

/* ---- 品牌详情 ---- */
.br-crumb { margin: 0 0 14px; }
.br-crumb a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.br-crumb a:hover { color: var(--primary); }
.br-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* 详情页车标用**方框**：车标文件尺寸不一（BYD 是横条字标、AITO 是竖排标），
   宽框会把竖排标压得很小（实测问界只占到 46px），方框两种都能拿到足够高度。 */
.br-logo-lg {
  width: 128px; flex: 0 0 auto; aspect-ratio: 1; border-radius: var(--radius-s);
}
.br-hero-text h1 { margin: 0 0 4px; font-size: 30px; font-weight: 800; }
.br-hero-sub { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

/* 品牌页顶部三个跳转（在售 / 行情 / 求购） */
.br-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.br-quicklinks a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .16s ease, color .16s ease;
}
.br-quicklinks a:hover { border-color: var(--primary); color: var(--primary); }

.br-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px;
}
.br-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-1);
}
.br-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.br-stat span { font-size: 12.5px; color: var(--muted); }

.br-section { margin-bottom: 34px; }
.br-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.br-section-title { margin: 0 0 14px; font-size: 19px; font-weight: 800; color: var(--navy); }
.br-section-head .br-section-title { margin: 0; }

.br-series { display: flex; flex-wrap: wrap; gap: 9px; }
.br-series-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text);
  transition: border-color .16s ease, color .16s ease;
}
.br-series-chip b { color: var(--primary); font-weight: 800; }
.br-series-chip:hover { border-color: var(--primary); color: var(--primary); }

.br-empty { text-align: center; padding: 46px 20px; }
.br-empty-hint { color: var(--muted); margin: 6px 0 18px; }

@media (max-width: 1200px) {
  .br-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .br-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .br-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .br-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .br-logo-lg { width: 96px; }
  .br-hero-text h1 { font-size: 24px; }
}

/* ═══════════ 批发行情 / 市场洞察（2026-10-27）═══════════
   /intelligence：库存总览 + 品牌榜 + 分布条 + 价格带 + 需求榜。
   分布用纯 CSS 横条表达（不引图表库）：数值真实，视觉上比饼图更易读出排序。 */
.int-page { padding-top: 24px; padding-bottom: 56px; }
.int-section { margin-bottom: 34px; }
.int-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.int-section-title {
  margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--navy);
}
.int-section-head .int-section-title { margin: 0; }
.int-section-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.int-empty { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---- 库存总览四格 ---- */
.int-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px;
}
.int-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-1);
}
.int-stat b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.int-stat span { font-size: 12.5px; color: var(--muted); }

/* ---- 主区：品牌榜（宽）+ 分布（窄） ---- */
.int-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.int-side { display: grid; gap: 26px; }

/* ---- 分布条（品牌榜 / 能源 / 车身 / 年款共用） ---- */
.int-bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.int-bar-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 52px;
  align-items: center; gap: 12px;
}
.int-bar-name {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.int-bar-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-bar-name img { width: 26px; height: 20px; object-fit: contain; flex: 0 0 auto; }
a.int-bar-name:hover { color: var(--primary); }
.int-bar-track { height: 9px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.int-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.int-bar-num { text-align: right; font-size: 13px; font-weight: 700; color: var(--navy); }

/* ---- 价格带 ---- */
.int-band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.int-band {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px;
  align-items: center; gap: 12px;
}
.int-band-label { font-size: 13px; font-weight: 600; color: var(--text); }
.int-band-track { height: 14px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.int-band-fill { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.int-band-num { text-align: right; font-size: 13px; font-weight: 700; color: var(--navy); }

/* ---- 求购需求榜 ---- */
.int-demand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.int-demand {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.int-demand-brand { font-size: 14px; font-weight: 700; color: var(--text); }
.int-demand-brand:hover { color: var(--primary); }
.int-demand-meta { font-size: 12.5px; color: var(--muted); }
.int-demand-qty { margin-inline-start: auto; font-size: 14px; font-weight: 800; color: var(--primary); }

/* ---- 2026-10-28 行情页完善：热门品牌 / 筛选 / 代表车型 / 榜单 / 车商 / 动态 ---- */
/* 2026-10-29 热门品牌对齐参考站：正方形卡片、只展示销量最高的 8 个、一排 8 个；
   竖排 logo / 品牌名 / 台数，选中态用细描边。 */
.int-brand-chips {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.int-brand-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; min-width: 0; aspect-ratio: 1 / 1;
  padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.int-brand-chip img,
.int-brand-logo-ph {
  width: 40px; height: 28px; flex: 0 0 auto; border-radius: 4px;
  object-fit: contain;
}
.int-brand-chip img { padding: 1px; }
.int-brand-logo-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); font-size: 13px; font-weight: 800; color: var(--navy);
}
.int-brand-name {
  width: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.int-brand-chip b {
  font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.2;
}
.int-brand-unit { font-weight: 500; }
.int-brand-chip:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.int-brand-chip:hover b { color: var(--primary); }
.int-brand-chip.is-on {
  border-color: var(--navy); color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.int-brand-chip.is-on b { color: var(--muted); }
.int-brand-chip.is-on img { background: transparent; }

.int-filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-1); margin-bottom: 30px;
}
.int-filter-field { min-width: 170px; flex: 0 1 220px; }
.int-filter-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.int-filter select:disabled {
  background: var(--bg); color: #a3aab8; cursor: not-allowed;
  border-color: var(--line);
}

/* 品牌可搜索下拉（2026-10-29）：原生 select 被脚本隐藏，换成输入框 + 选项列表 */
.int-brand-field { position: relative; }
.int-select { position: relative; }
.int-select-ui { position: relative; }
.field .int-select-input { padding-right: 34px; }
.int-select-caret {
  position: absolute; top: 50%; right: 9px; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; background: none; color: var(--muted);
  transform: translateY(-50%); pointer-events: none; transition: transform .15s;
}
.int-select-caret svg { display: block; }
.int-select.is-open .int-select-caret { transform: translateY(-50%) rotate(180deg); }
.int-select-list {
  display: none; position: absolute; z-index: 40; left: 0; top: calc(100% + 6px);
  min-width: 100%; width: max-content; max-width: min(360px, 90vw);
  max-height: 300px; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: var(--shadow-2);
}
.int-select.is-open .int-select-list { display: block; }
.int-select-option {
  padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--text);
  cursor: pointer; white-space: nowrap;
}
.int-select-option:hover,
.int-select-option.is-active { background: var(--primary-soft); color: var(--primary); }
.int-select-option.is-selected { font-weight: 700; color: var(--navy); }
.int-select-empty { padding: 9px 10px; font-size: 12.5px; color: var(--muted); }

/* 2026-10-29 代表车型改成参考站的白卡结构：左侧车型信息 + 右侧价格面板，
   不再用深色整块。价格面板只保留 EXW 一个价格，不补造厂商指导价/美元估价。 */
.int-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  gap: 26px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 26px; color: var(--text);
  box-shadow: var(--shadow-1); margin-bottom: 34px;
}
.int-focus-main { min-width: 0; }
.int-focus-eyebrow { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.int-focus h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: var(--navy); }
.int-focus h2 a { color: var(--navy); text-decoration: none; }
.int-focus h2 a:hover { color: var(--primary); }
.int-focus-sub { margin: 0; font-size: 13px; color: var(--muted); }

/* ---- EXW 价格曲线（2026-10-29）---- */
.int-chart-head {
  display: flex; align-items: baseline; flex-wrap: wrap;
  justify-content: space-between; gap: 4px 12px; margin: 18px 0 0;
}
.int-chart-title { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--navy); }
.int-chart-sub { font-size: 11.5px; color: var(--muted); }
.int-chart { position: relative; margin-top: 2px; }
.int-chart svg { display: block; width: 100%; height: auto; }
.int-chart-grid line { stroke: var(--line); stroke-dasharray: 3 4; }
.int-chart-grid text { fill: var(--muted); font-size: 10.5px; }
.int-chart-area { fill: url(#intCurveFill); }
.int-chart-line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.int-chart-dot { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.int-chart-dot.is-focus { fill: var(--primary); stroke: #fff; stroke-width: 3; }
/* 鼠标在图上移动：竖向参考线 + 吸附圆点 + 价格气泡 */
.int-chart-guide {
  stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 4 4;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.int-chart-cursor {
  fill: var(--primary); stroke: #fff; stroke-width: 2.4;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.int-chart.is-hover .int-chart-guide,
.int-chart.is-hover .int-chart-cursor { opacity: 1; }
.int-chart-tip {
  position: absolute; z-index: 3; left: 0; top: 0;
  min-width: 118px; padding: 8px 10px; border-radius: 8px;
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 22px rgba(11, 31, 58, .25);
  font-size: 12px; line-height: 1.4; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .1s;
  transform: translate(-50%, -100%);
}
.int-chart-tip.is-on { opacity: 1; }
.int-chart-tip.is-below { transform: translate(-50%, 0); }
.int-chart-tip-title {
  display: block; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; font-weight: 700;
}
.int-chart-tip-price { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; color: #8be5b2; }
.int-chart-tip-meta { display: block; margin-top: 1px; font-size: 11px; color: rgba(255, 255, 255, .65); }
/* 圆点可点击：跳转到该车型的车源列表；hover/focus 时放大，给明确的可点反馈 */
.int-chart-point { cursor: pointer; outline: none; }
.int-chart-point .int-chart-dot {
  transform-box: fill-box; transform-origin: center;
  transition: transform .14s ease;
}
.int-chart-point:hover .int-chart-dot,
.int-chart-point:focus-visible .int-chart-dot { transform: scale(1.7); }
.int-chart-point:focus-visible .int-chart-dot { stroke: var(--navy); }
.int-chart-point:hover .int-chart-focus-label,
.int-chart-point:focus-visible .int-chart-focus-label { fill: var(--primary); }
.int-chart-focus-label { fill: var(--navy); font-size: 11.5px; font-weight: 800; transition: opacity .1s; }
/* 悬停时气泡里已经有价格，隐藏代表车型的静态价格标签，避免两层价格叠在一起 */
.int-chart.is-hover .int-chart-focus-label { opacity: 0; }
.int-chart-x text { fill: var(--muted); font-size: 10.5px; }
.int-chart-empty { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.int-focus-side {
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
}
.int-focus-price-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.int-focus-price { margin: 4px 0 4px; }
.int-focus-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.int-focus-note { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.int-focus-facts {
  display: grid; gap: 8px; margin: 12px 0 2px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.int-focus-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.int-focus-facts dt { font-size: 12px; color: var(--muted); }
.int-focus-facts dd { margin: 0; font-size: 13px; font-weight: 800; color: var(--navy); }
.int-focus-cta { margin-top: 10px; justify-content: center; }

.int-rank-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; align-items: start; }
/* 网格子项默认 min-width:auto 会被表格的 min-width 撑破容器（手机端整页横向滚动）；
   显式归零后表格由 .tbl-wrap 内部横向滚动。 */
.int-rank-grid > * { min-width: 0; }
.int-rank-panel .int-section-title { margin: 0; }
.int-rank-head { align-items: flex-start; flex-wrap: wrap; }
.int-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.int-tab {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 700;
  text-decoration: none;
}
.int-tab:hover { border-color: var(--primary); color: var(--primary); }
.int-tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.int-tbl-wrap { margin-top: 14px; }
/* 必须用 table.xxx 覆盖全局 table.tbl 的 min-width:980（同权重、后出现者生效），
   否则榜单表在右栏里会被撑到 980px 并横向裁切最后两列。 */
table.int-tbl { min-width: 560px; }
.int-tbl th, .int-tbl td { padding: 10px 12px; }
.int-tbl-name { min-width: 200px; }
.int-tbl-name a { font-weight: 700; color: var(--text); text-decoration: none; }
.int-tbl-name a:hover { color: var(--primary); }
.int-tbl-name .muted-line { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
table.int-rank-tbl { min-width: 520px; }
.int-rank-no { width: 42px; text-align: center; color: var(--muted); font-weight: 700; }

.int-empty-block { margin-bottom: 34px; }
.int-supplier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.int-updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.int-updates-col h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--navy); }
.int-update-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.int-update-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.int-update-list a { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-decoration: none; }
.int-update-list b { font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-update-list a:hover b { color: var(--primary); }
.int-update-list a span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-update-meta { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }

/* ══════════ 吉尔吉斯斯坦市场数据 + 行业资讯（2026-10-28）══════════ */
/* 市场数据卡：外部公开数据，视觉上与库存深色卡区隔开（浅底 + 左侧色条） */
.kg-market .int-section-head { align-items: flex-end; }
.kg-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kg-metric {
  position: relative; padding: 18px 18px 14px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--card); overflow: hidden;
}
.kg-metric::before {
  content: ''; position: absolute; top: 16px; bottom: 16px; left: 0;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); opacity: .75;
}
.kg-metric-label { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kg-metric-value { display: flex; align-items: baseline; gap: 6px; margin: 9px 0 6px; }
.kg-metric-value b { font-size: 28px; line-height: 1; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.kg-metric-value span { font-size: 12px; color: var(--muted); }
.kg-metric-delta {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: #e8f7ee; color: #2ba471; font-size: 11.5px; font-weight: 700; font-style: normal;
}
.kg-metric-note { margin: 9px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.kg-metric-foot {
  margin: 11px 0 0; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--muted);
}

/* 资讯卡片（市场洞察页） */
.news-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.news-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.news-cat {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: #eef3fb; color: #2f5d9e; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.news-card h3 { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text); }
.news-card:hover h3 { color: var(--primary); }
.news-card p {
  margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-foot {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted);
}
.news-card-foot em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700; color: var(--primary); }

/* 资讯列表页 /news */
.news-page { padding-top: 24px; padding-bottom: 56px; }
.news-hero .count-line a { color: var(--primary); font-weight: 700; text-decoration: none; }
.news-hero .count-line a:hover { text-decoration: underline; }
.news-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.news-cat-chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 700;
  text-decoration: none; transition: border-color .15s, color .15s;
}
.news-cat-chip b { margin-left: 4px; font-size: 11px; color: var(--muted); }
.news-cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.news-cat-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-cat-chip.is-on b { color: rgba(255, 255, 255, .75); }
.news-list { display: grid; gap: 14px; }
.news-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.news-item .news-card-meta { justify-content: flex-start; }
.news-item-source { margin-left: auto; }
.news-item h2 { margin: 9px 0; font-size: 20px; line-height: 1.4; }
.news-item h2 a { color: var(--text); text-decoration: none; }
.news-item h2 a:hover { color: var(--primary); }
.news-item p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.news-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--primary); text-decoration: none; }
.news-more:hover { text-decoration: underline; }
.news-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.news-pager-no { font-size: 12.5px; color: var(--muted); }
.news-empty { margin-top: 24px; }

/* 资讯详情页 /news/<slug> */
.news-detail { max-width: 900px; padding-top: 28px; padding-bottom: 60px; }
.news-breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; font-size: 12.5px; color: var(--muted); }
.news-breadcrumb a { color: var(--muted); text-decoration: none; }
.news-breadcrumb a:hover { color: var(--primary); }
.news-article { padding: 28px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.news-article h1 { margin: 12px 0; font-size: 32px; line-height: 1.35; letter-spacing: -.02em; color: var(--navy); }
.news-lede {
  margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0; background: var(--bg);
  font-size: 14px; line-height: 1.7; color: var(--text);
}
.news-body { font-size: 15px; line-height: 1.85; color: var(--text); }
.news-body p { margin: 0 0 14px; }
.news-source { margin: 24px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.news-source a { color: var(--primary); }
.news-detail-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.news-related { margin-top: 34px; }
.news-related h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--navy); }
.news-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.news-related li a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--text); font-size: 13.5px; text-decoration: none;
}
.news-related li a:hover { border-color: var(--line-2); color: var(--primary); }
.news-related li b { font-weight: 600; }
.news-related time { flex: 0 0 auto; margin-left: auto; font-size: 11.5px; color: var(--muted); }


/* ---- 行情明细表 ---- */
.tbl-int td .muted-line { display: block; font-size: 11.5px; color: var(--muted); }

@media (max-width: 980px) {
  .int-grid { grid-template-columns: 1fr; gap: 26px; }
  .int-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-focus { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px; }
  .int-rank-grid { grid-template-columns: 1fr; gap: 26px; }
  .int-updates-grid { grid-template-columns: 1fr; }
  .kg-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-cards { grid-template-columns: 1fr; }
}
/* 热门品牌始终一排：窄屏改为横向滑动，不折成两排 */
@media (max-width: 900px) {
  .int-brand-chips {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 6px; scroll-snap-type: x mandatory;
  }
  .int-brand-chip { flex: 0 0 108px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .int-bar-row, .int-band { grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 9px; }
  .int-filter-field { flex: 1 1 100%; }
  .int-filter-actions { margin-inline-start: 0; }
  .int-focus-price b { font-size: 30px; }
  .int-supplier-grid { grid-template-columns: 1fr; }
  .int-update-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kg-metric-grid { grid-template-columns: 1fr; }
  .news-item { padding: 16px 16px; }
  .news-item-source { margin-left: 0; }
  .news-article { padding: 20px 18px; }
  .news-article h1 { font-size: 24px; }
  .news-related li a { flex-wrap: wrap; gap: 6px; }
  .news-related time { margin-left: 0; }
}

/* ═══════════ 认证车商目录 + 车商详情（2026-10-27）═══════════
   /dealers 车商卡网格 + 城市筛选；/dealers/<slug> 档案 + 联系方式 + 在售车源。 */
.dl-page { padding-top: 24px; padding-bottom: 56px; }

/* ---- 工具条 ---- */
.dl-toolbar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-1); margin-bottom: 22px;
}
.dl-toolbar .dl-search { flex: 1; min-width: 220px; }
.dl-toolbar .side-actions { display: flex; gap: 8px; }

/* ---- 车商卡 ---- */
.dl-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-bottom: 34px;
}
.dl-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.dl-card-logo {
  width: 62px; height: 62px; flex: 0 0 auto; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dl-card-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dl-card-ph { font-size: 24px; font-weight: 800; color: var(--navy); }
.dl-card-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.dl-card-name { font-size: 16px; font-weight: 700; color: var(--text); }
.dl-card:hover .dl-card-name { color: var(--primary); }
.dl-card-meta { font-size: 12.5px; color: var(--muted); }
.dl-card-stock { font-size: 13px; color: var(--muted); }
.dl-card-stock b { font-size: 18px; font-weight: 800; color: var(--primary); }
.dl-card-none { color: var(--muted); }
.dl-card-brands { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.dl-card-brands .tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--text); }
.dl-card-badge { position: absolute; top: 14px; right: 16px; font-size: 11.5px; }
.dl-card.is-empty .dl-card-logo { opacity: .62; }

/* ---- 详情页 ---- */
.dl-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dl-hero-logo {
  width: 96px; height: 96px; flex: 0 0 auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dl-hero-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dl-hero-text h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; }
.dl-hero-sub { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.dl-hero-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }

.dl-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px;
}
.dl-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-1);
}
.dl-stat b { display: block; font-size: 24px; font-weight: 800; color: var(--navy); }
.dl-stat span { font-size: 12.5px; color: var(--muted); }

.dl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.dl-main { display: grid; gap: 30px; }
.dl-side { position: sticky; top: 16px; }
.dl-section { margin-bottom: 30px; }
.dl-section-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--navy); }
.dl-intro { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--text); }
.dl-contact {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-1);
}
.dl-contact p { margin: 0 0 8px; font-size: 14px; }
.dl-contact a:not(.btn) { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); }
.dl-contact-btn { width: 100%; justify-content: center; margin-top: 12px; }

@media (max-width: 980px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-cols { grid-template-columns: 1fr; }
  .dl-side { position: static; }
  .dl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dl-stats { grid-template-columns: 1fr; }
  .dl-hero-text h1 { font-size: 22px; }
}

/* ═══════════ 按钮尺寸统一（2026-10-27 评审：同一行按钮大小不一）═══════════
   现象（截图实测）：
     · /requests 工具条：筛选 36.8px / 重置筛选 38.8px / ＋发布求购 44.4px 三档并存；
     · 首页板块头：发布求购 36.8px 与「全部需求」44.4px 并排，高低差近 8px。
   根因三条，都必须从盒模型上修，靠逐处调 padding 只能临时对齐：
     ① .btn-ghost 自带 1px 描边，.btn-primary / .btn-accent / .btn-dark 没有 ——
        描边按钮恒比实心按钮高 2px，任何「主按钮 + 次按钮」组合都对不齐；
     ② .sec-link 与 .btn 是两套盒模型（10px 20px / 15px  vs  11px 22px / 14px），
        并排时高度与字号同时错位；
     ③ 页面里部分动作按钮带 .btn-sm、部分不带，第三档尺寸又冒出来。
   修法与 .filter-row2 .seg 处理「分段项比按钮高 2px」时用的是同一招：
   把描边挪到 outline（不占布局），再让 .sec-link 与 .btn 取同一组尺寸。 */

/* ① 描边按钮 → outline：视觉不变（1px 描边、无布局占位），但不再多出 2px 高度。
      改成 outline 而不是「给实心按钮补透明描边」，是因为 .filter-row2 的 .seg 与
      .updated-at 已按 .btn-sm = 36.8px 精确调过行盒，给 .btn 整体加 2px 会把这套对齐顶歪。 */
.btn-ghost {
  border: none;
  outline: 1px solid var(--line-2);
  outline-offset: -1px;
}
/* 悬停换描边色（原来改的是 border-color，描边挪走后要跟着改 outline-color） */
.btn-ghost:hover { outline-color: var(--primary); }

/* ② .sec-link 与 .btn 完全同尺寸 —— 两者只该差颜色，不该差高度。
      padding / 字号 / 行高逐项对齐 .btn（.btn 无描边，sec-link 也不加，高度才相等）。 */
.sec-link { padding: 11px 22px; font-size: 14px; }

/* ③ 求购工具条与 /cars、/accessories 的 .filter-row2 是同一类「字段 + 动作按钮」行。
      注意：不能按「14px × 1.6 行高 + 内距」去推算控件高度 —— 表单控件不继承 body 的
         line-height: 1.6，浏览器对 input / select 用的是自己的 normal（实测 input 38px、
         select 40px）。所以这里**不推算、直接写死同一个数** —— 把整行控件钉在 40px，
         高度上就再没有「谁比谁高 2px」的空间。
      这也是唯一能让「按钮 / 输入框 / 下拉 / 分段切换」四类东西真正同高的写法：
      它们的固有高度天生不同（38 / 40 / 36.8 / 36.8），只靠改 padding 永远差一截。 */
.rq-toolbar .field input,
.rq-toolbar .field select,
.filter-row2 .field input,
.filter-row2 .field select,
.rq-toolbar .side-actions .btn,
.rq-toolbar > .btn,
.filter-row2 .side-actions .btn,
.filter-row2 .seg a {
  height: 40px;
  line-height: normal;
}
/* 按钮去掉上下内距：高度写死后留着 padding 会把文字顶偏（inline-flex 用 align-items 居中） */
.rq-toolbar .side-actions .btn,
.rq-toolbar > .btn,
.filter-row2 .side-actions .btn {
  padding-top: 0;
  padding-bottom: 0;
}
.rq-toolbar .side-actions .btn,
.rq-toolbar > .btn { padding-inline: 16px; font-size: 13.5px; }
/* 「数据更新于」是纯文本：行盒比控件矮 1.4px 时文字中心才落在同一水平线
   （沿用 main.css 36.8 → 35.4 的实测换算） */
.filter-row2 .updated-at { line-height: 38.6px; }





/* ═══════════════════ 页头网点切换 + 首页网点入口（2026-10-28）═══════════════════
   用户需求：页头 logo 右侧切换服务网络地区（网点 = 站点），首页每个网点一张入口卡。
   网点数据由后台「服务网络」维护，切换写 zx_site Cookie，车源按网点隔离。

   · 页头胶囊：与右侧语言下拉同一档（白底 + 细描边 + 药丸形），首页透明页头态
     的配色在 hero.css 里另补一份（与 .lang-select 的做法一致）；
   · 手机宽度（≤900）放不下 logo + 胶囊 + 工具三组，切换入口挪进汉堡面板
     （base.html 的 .sh-nav-site，每个站点一行，当前站点高亮）。 */
.sh-brand { display: flex; align-items: center; gap: 14px; min-width: 0; justify-self: start; }
.sh-site {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px 0 11px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sh-site .uicon { color: var(--muted); flex: none; }
.sh-site:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }   /* 焦点环（无障碍必需）；taste-skill-ignore */
.site-select {
  appearance: none; border: 0; background-color: transparent; background-repeat: no-repeat;
  background-position: right 2px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  padding: 0 16px 0 3px; height: 100%;
  font-family: inherit; font-size: 13px; font-weight: 700; color: inherit;
  cursor: pointer; outline: none;
}
.site-select option { color: var(--text); background: #fff; }
[dir='rtl'] .site-select { padding: 0 3px 0 16px; background-position: left 2px center; }

.sh-nav .sh-nav-site { display: none; }
@media (max-width: 900px) {
  .sh-site { display: none; }
  .sh-nav.open .sh-nav-site { display: inline-flex; justify-content: space-between; }
}

/* ---- 首页两张入口卡（精选车源之后） ---- */
.market-section { padding-top: 0; }   /* 紧接精选区，避免两段 58px 留白叠在一起 */
.market-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* 单卡（2026-10-28）：中国站只保留「中国车源」卡时铺满整行，避免右侧留半格空位 */
.market-cards--single { grid-template-columns: 1fr; }
.market-card {
  position: relative; display: block; min-height: 210px; overflow: hidden;
  border-radius: 22px;                 /* 与 promo-band / cta-banner 同一规格 */
  color: #fff; text-decoration: none; background: var(--navy);
  box-shadow: var(--shadow-1); isolation: isolate;
}
.market-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; transition: transform .35s ease;
}
/* 左侧压深保证白字对比度，右侧留出照片：渐变方向固定从左到右，
   不随 RTL 翻转 —— 文字始终在左（RTL 时正文仍靠 inline-start 对齐，见下） */
.market-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 18, 36, .86) 0%, rgba(7, 18, 36, .55) 55%, rgba(7, 18, 36, .22) 100%);
}
.market-card:hover .market-card__img { transform: scale(1.04); }
.market-card__body {
  position: relative; padding: 26px 28px; max-width: 78%;
  display: flex; flex-direction: column; gap: 8px;
}
.market-card__body h2 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.market-card__body p { margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .86); }
.market-card__cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #fff;
}
.market-card__cta .uicon { transition: transform .2s ease; }
.market-card:hover .market-card__cta .uicon { transform: translateX(3px); }
.market-card__now {
  position: absolute; top: 14px; inset-inline-end: 14px;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--navy);
}
@media (max-width: 900px) {
  .market-cards { grid-template-columns: 1fr; }
  .market-card { min-height: 180px; }
  .market-card__body { max-width: none; padding: 22px; }
  .market-card__body h2 { font-size: 22px; }
}

/* 入口卡副标题在照片高光上（如右侧运车卡车的白色车厢）会掉对比度：
   给正文一层很薄的外发光阴影，字仍压在照片上但不糊。标题是大号粗体，不需要。 */
.market-card__body p { text-shadow: 0 1px 6px rgba(4, 12, 28, .55); }

/* 手机面板里的「当前站点」：用品牌色文字标记，不沿用 .active 的整行蓝底
   —— 那会和「当前页面」的高亮撞在一起（两行都像被选中）。 */
.sh-nav.open .sh-nav-site.is-current { color: var(--primary); font-weight: 700; }

/* ═══════════════════ 页脚视觉优化（2026-10-28）═══════════════════
   实测 1920：三列 451 / 322 / 355px，9 条「快速链接」把中间列撑到 284px，
   左右两列只有 2–4 行 → 页脚总高 419px，右下大片空场，三列轻重失衡。
   本段是覆盖层（原规则在 main.css 937–945 行），只动版式与配色，不改链接清单：
     · 品牌列（.sf-brand）：字标 + 副标 + 地址，成为左列锚点；
     · 链接列（.sf-link-grid）：column 流 5+4 双列，列高 9 行 → 5 行；
     · 联系列（.sf-contact）：电话/邮箱成组，承诺文案做成带橙色侧边的提示条；
     · 三列标题配发丝线向右延伸（标题仍是文字，不额外加节点），不画竖分隔线；
     · 底色在深蓝上叠极轻的蓝/橙光晕：与上方 promo-band / cta-banner 同族，
       但不重复它们的渐变方向，翻到页脚时能看出「到底了」。 */
.site-footer {
  color: #a9b7cb;
  background:
    radial-gradient(720px 300px at 8% 0%, rgba(40, 95, 158, .16), transparent 66%),
    radial-gradient(560px 240px at 92% 3%, rgba(249, 115, 22, .06), transparent 70%),
    linear-gradient(180deg, #0a1c34, #08172c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.sf-inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.45fr) minmax(0, 1.15fr);
  gap: 56px;
  padding-top: 56px;
  align-items: start;
}
/* 列标题：字号 15 → 14 并把字重让给字标；发丝线向右收淡，给三列建立秩序 */
.site-footer h4 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
}
.site-footer h4::after {
  content: ''; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
}
[dir='rtl'] .site-footer h4::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
}
/* 品牌列：字标是列锚点，不参与发丝线；「昭途」作副字，弱一档 */
.site-footer .sf-brand-title {
  display: block; margin: 0 0 8px;
  font-size: 21px; font-weight: 800; letter-spacing: -.02em;
}
.site-footer .sf-brand-title::after { display: none; }
.sf-brand-title span {
  margin-inline-start: 7px;
  font-size: .74em; font-weight: 600; letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
}
.site-footer .sf-brand-tag {
  margin: 0 0 18px; opacity: 1;
  font-size: 13px; letter-spacing: .02em; color: rgba(199, 211, 230, .68);
}
.site-footer .sf-addr {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0; max-width: 330px; opacity: 1;
  font-size: 13px; line-height: 1.7; color: rgba(199, 211, 230, .75);
}
/* 地址两行时按长度均分，避免把「A 座 1208 室」的「A」单独甩在行尾 */
.sf-addr span { text-wrap: balance; }
.sf-addr .uicon { flex: none; margin-top: 3px; color: rgba(255, 255, 255, .35); }
/* 快速链接：5 行 × 2 列。grid-auto-flow:column 保证「左列前 5、右列后 4」，
   不会像 CSS columns 那样按高度自动分栏、把阅读顺序打乱。 */
.sf-link-grid {
  display: grid; grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  column-gap: 32px;
}
.site-footer .sf-link-grid a {
  display: block; width: fit-content; padding: 4px 0;
  opacity: 1; font-size: 13.5px; color: rgba(199, 211, 230, .8);
  transition: color .15s ease, transform .15s ease;
}
.site-footer .sf-link-grid a:hover { color: #fff; transform: translateX(2px); }
[dir='rtl'] .site-footer .sf-link-grid a:hover { transform: translateX(-2px); }
/* 联系列：行距从 4px 放到 9px；电话/邮箱用当前色图标，不抢文字 */
.site-footer .sf-rows { gap: 9px; }
.site-footer .sf-rows a {
  gap: 9px; padding: 0; opacity: 1;
  font-size: 13.5px; color: rgba(224, 233, 246, .88);
  font-variant-numeric: tabular-nums;
}
.sf-rows .uicon { flex: none; color: rgba(255, 255, 255, .35); }
.site-footer .sf-rows a:hover { color: #fff; }
/* 版权行：与内容拉开到 40px；13px 保证小字不下 13px，颜色压到 4.5:1 以上 */
.sf-bottom {
  margin-top: 40px; padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  opacity: 1; font-size: 13px; letter-spacing: .01em;
  color: rgba(199, 211, 230, .7);
}
@media (max-width: 1024px) {
  /* 平板宽度不再挤三列：品牌列独占一行，链接与联系并排（链接仍是 5×2） */
  .sf-inner { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .sf-brand { grid-column: 1 / -1; }
  .site-footer .sf-brand-tag { margin-bottom: 14px; }
  .site-footer .sf-addr { max-width: none; }
  /* 右下角悬浮联系按钮是 position:fixed，滚到底时会压在承诺提示/版权上；
     在页脚底部留 56px 安全带，按钮落在空底上、不遮字（仅窄屏需要，桌面按钮在列外）。 */
  .site-footer { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  /* main.css 在 640 已把 .sf-inner 压成单列；这里把 1024 段的双列覆盖回来，
     否则品牌列会被塞进第一格、与「快速链接」并排（390 实测踩到过）。 */
  .site-footer { margin-top: 40px; }
  .sf-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .sf-brand { grid-column: auto; }
  .sf-link-grid { column-gap: 18px; }
  .sf-bottom {
    margin-top: 32px;
    /* 版权改为靠左：居中的长句在 320px 会伸到右下角悬浮按钮底下，靠左并让出
       80px 右内距后，「China」始终落在按钮左侧（按钮宽 46 + 右距 14）。 */
    padding: 16px 80px 16px 20px;
    text-align: start;
    text-wrap: balance;   /* 两行时按长度均分，不出现「·」挂行尾、单独一行 China */
  }
}
/* 超窄屏（≤380，含 320/360/375）：链接回到单列。
   实测俄语「конфиденциальность」宽约 158px，375 的两列格只有 158.5px，
   360 已放不下（整页横向溢出）——单列后长词一行到底，不再拆词。 */
@media (max-width: 380px) {
  .sf-link-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* 首页与车源页：统一信息层级，保留既有交互和品牌色。 */
.page-home .hero h1 { max-width: 850px; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
.page-home .hero-sub { max-width: 760px; line-height: 1.7; }
.page-home .quick-search { padding: 16px 22px 20px; border-radius: 18px; }
.page-home .qs-tabs { gap: 28px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.18); }
.page-home .qs-tab { padding: 9px 2px 12px; }
.page-home .qs-tab.active { border-bottom-color: #ff8124; }
.page-home .qs-fields .field input, .page-home .qs-fields .field select, .page-home .qs-picker-btn { height: 46px; }
.page-home .sec-head h2 { letter-spacing: -.025em; }
.page-cars .page-hero { padding: 48px 0 38px; background: linear-gradient(120deg, #f3f7fc, #fff 75%); }
.page-cars .page-hero p { max-width: 720px; line-height: 1.65; }
.page-cars .cars-layout { gap: 24px; padding-top: 24px; }
.page-cars .cars-side, .page-cars .filter-card { border-radius: 16px; box-shadow: 0 4px 20px rgba(20, 42, 72, .04); }
.page-cars .filter-card { margin-top: 0; padding: 18px 22px; }
.page-cars .side-head > span { font-size: 15px; }
.page-cars .side-brand { min-height: 38px; }
.page-home .car-card, .page-cars .car-card { border-radius: 16px; box-shadow: 0 4px 18px rgba(20, 42, 72, .05); }
.page-home .car-card:hover, .page-cars .car-card:hover { box-shadow: 0 12px 30px rgba(20, 42, 72, .12); }
.page-home .cc-photo, .page-cars .cc-photo { transition: transform .3s ease; }
.page-home .car-card:hover .cc-photo, .page-cars .car-card:hover .cc-photo { transform: scale(1.035); }
.page-home .cc-title h3, .page-cars .cc-title h3 { line-height: 1.4; }
.page-home :is(a, button, input, select):focus-visible, .page-cars :is(a, button, input, select):focus-visible { outline: 3px solid #ff9b4a; outline-offset: 3px; }
@media (max-width: 900px) {
  .page-cars .cars-layout { padding-top: 16px; gap: 16px; }
  .page-cars .page-hero { padding: 32px 0 26px; }
}
@media (max-width: 560px) {
  .page-home .quick-search { padding: 12px 16px 18px; }
  .page-cars .filter-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .cc-photo, .page-cars .cc-photo { transition: none; }
  .page-home .car-card:hover .cc-photo, .page-cars .car-card:hover .cc-photo { transform: none; }
}

/* 其他公开页面沿用车源页的标题、面板和焦点样式。 */
body:not(.page-home):not(.page-cars) .page-hero:not(.int-hero):not(.news-hero) {
  padding: 48px 0 38px;
  background: linear-gradient(120deg, #f3f7fc, #fff 75%);
}
body:not(.page-home):not(.page-cars) .page-hero h1 { letter-spacing: -.025em; }
body:not(.page-home):not(.page-cars) .page-hero p:not(.eyebrow):not(.page-hero-cta) { line-height: 1.65; }
body:not(.page-home):not(.page-cars) .cars-layout { gap: 24px; padding-top: 24px; }
body:not(.page-home):not(.page-cars) .cars-side,
body:not(.page-home):not(.page-cars) .filter-card,
body:not(.page-home):not(.page-cars) :is(.dcard, .inq-card, .rq-panel, .rq-form, .svc-provider, .help-card, .br-card, .dl-card, .news-card) {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(20, 42, 72, .05);
}
body:not(.page-home):not(.page-cars) .filter-card { margin-top: 0; padding: 18px 22px; }
body:not(.page-home):not(.page-cars) .cars-side .side-brand { min-height: 38px; }
body:not(.page-home):not(.page-cars) :is(.svc-provider, .help-card, .br-card, .dl-card, .news-card):hover {
  box-shadow: 0 12px 30px rgba(20, 42, 72, .12);
}
body:not(.page-home):not(.page-cars) .breadcrumb { line-height: 1.6; }
body:not(.page-home):not(.page-cars) .gal-main { border-radius: 16px; }
body:not(.page-home):not(.page-cars) :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #ff9b4a;
  outline-offset: 3px;
}
body:not(.page-home):not(.page-cars) .ab-page :is(h1, h2) { letter-spacing: -.025em; text-wrap: balance; }
@media (max-width: 900px) {
  body:not(.page-home):not(.page-cars) .page-hero:not(.int-hero):not(.news-hero) { padding: 32px 0 26px; }
  body:not(.page-home):not(.page-cars) .cars-layout { padding-top: 16px; gap: 16px; }
}
@media (max-width: 560px) {
  body:not(.page-home):not(.page-cars) .filter-card { padding: 14px; }
}

/* 首页和车辆展示页：图片不叠加车型文字，名称保留在卡片正文。 */
.page-home .car-card .badge-title,
.page-cars .car-card .badge-title { display: none; }

/* 车辆及配件品牌筛选：统一品牌图标、名称和数量的视觉对齐。 */
.cars-layout .cars-side {
  top: 86px;
  max-height: calc(100vh - 102px);
  padding: 16px 12px 12px;
  border-color: #dfe7ef;
  background: #fff;
}
.cars-side .side-head {
  padding: 0 4px 13px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.cars-side .side-head > span { font-size: 15px; color: var(--text); }
.cars-side .side-all { padding: 5px 10px; color: var(--muted); }
.cars-side .side-all.active { color: var(--primary); background: var(--primary-soft); }
.cars-side .side-letter {
  padding: 10px 8px 4px;
  color: #8190a0;
  font-size: 10px;
  letter-spacing: .1em;
}
.cars-side .side-brand {
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
}
.cars-side .side-brand:hover { background: #f4f7fa; }
.cars-side .side-brand.active { background: var(--primary-soft); border-color: #cbddee; }
.cars-side .side-logo {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e8edf2;
}
.cars-side .side-logo-ph { padding: 0; background: #f2f5f8; }
.cars-side .side-name { flex: 1 1 auto; min-width: 0; text-align: start; }
.cars-side .side-count {
  min-width: 24px;
  padding: 2px 6px;
  text-align: center;
  background: #f1f4f7;
  color: #667a8e;
}
.cars-side .side-more {
  margin-top: 10px;
  padding: 10px;
  background: #f3f6f9;
  font-size: 12px;
}
.cars-side .side-more:hover { background: var(--primary-soft); }
@media (max-width: 1024px) {
  .cars-layout .cars-side { position: static; max-height: none; padding: 14px; gap: 8px; }
  .cars-side .side-head { padding-bottom: 10px; margin-bottom: 4px; }
  .cars-side .side-brand { width: auto; min-height: 40px; padding: 4px 9px 4px 5px; border-color: var(--line); border-radius: 9px; }
  .cars-side .side-logo { width: 28px; height: 28px; }
  .cars-side .side-name { flex: 0 1 auto; }
  .cars-side .side-more { margin-top: 2px; }
}

/* 车辆与配件目录：以筛选和浏览为中心的页面布局。 */
:is(.page-cars, .page-accessories) { background: #f3f6f9; }
:is(.page-cars, .page-accessories) .page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 38px;
  background: linear-gradient(115deg, #172d47 0%, #24476a 72%, #315b7b 100%);
  border-bottom: 0;
  color: #fff;
}
:is(.page-cars, .page-accessories) .page-hero::after {
  content: '';
  position: absolute;
  right: 6%; top: -125px;
  width: 360px; height: 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02);
  pointer-events: none;
}
:is(.page-cars, .page-accessories) .page-hero .container { position: relative; z-index: 1; }
:is(.page-cars, .page-accessories) .page-hero h1 { margin-bottom: 10px; color: #fff; font-size: 34px; }
:is(.page-cars, .page-accessories) .page-hero p { color: #d6e3ef; }
:is(.page-cars, .page-accessories) .cars-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
}
:is(.page-cars, .page-accessories) .cars-side {
  padding: 18px 14px 14px;
  border: 1px solid #e0e7ee;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(24, 49, 75, .04);
}
:is(.page-cars, .page-accessories) .side-head { padding: 0 4px 15px; margin-bottom: 6px; }
:is(.page-cars, .page-accessories) .side-head > span { font-size: 15px; }
:is(.page-cars, .page-accessories) .side-brand { min-height: 42px; }
:is(.page-cars, .page-accessories) .filter-card {
  margin: 0 0 24px;
  padding: 19px 24px 22px;
  border: 1px solid #e0e7ee;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(24, 49, 75, .04);
  background: #fff;
}
:is(.page-cars, .page-accessories) .chip-row { padding: 11px 0; border-color: #edf1f5; border-bottom-style: solid; }
:is(.page-cars, .page-accessories) .chip-label { flex-basis: 72px; color: #5b6e82; }
:is(.page-cars, .page-accessories) .chips { gap: 7px; }
:is(.page-cars, .page-accessories) .filter-row2 { gap: 10px; margin-top: 18px; }
:is(.page-cars, .page-accessories) .count-line {
  display: flex; align-items: baseline; gap: 5px;
  margin: 0 0 16px;
  color: #687b8e; font-size: 13px;
}
:is(.page-cars, .page-accessories) .count-line b { color: #203c5a; font-size: 20px; line-height: 1; }
:is(.page-cars, .page-accessories) .card-grid { gap: 18px; }
:is(.page-cars, .page-accessories) .car-card {
  overflow: hidden;
  border: 1px solid #e0e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(24, 49, 75, .04);
  transition: box-shadow .2s ease, transform .2s ease;
}
:is(.page-cars, .page-accessories) .car-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(24, 49, 75, .11); }
:is(.page-cars, .page-accessories) .cc-body { padding: 16px 16px 14px; }
:is(.page-cars, .page-accessories) .cc-foot { border-color: #edf1f5; }
@media (max-width: 1024px) {
  :is(.page-cars, .page-accessories) .cars-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 18px; }
  :is(.page-cars, .page-accessories) .cars-side { padding: 14px; }
}
@media (max-width: 640px) {
  :is(.page-cars, .page-accessories) .page-hero { padding: 30px 0 28px; }
  :is(.page-cars, .page-accessories) .page-hero h1 { font-size: 27px; }
  :is(.page-cars, .page-accessories) .page-hero::after { right: -190px; }
  :is(.page-cars, .page-accessories) .filter-card { padding: 12px 15px 16px; }
  :is(.page-cars, .page-accessories) .chip-row { display: block; padding: 10px 0; }
  :is(.page-cars, .page-accessories) .chip-label { display: block; padding: 0 0 7px; }
  :is(.page-cars, .page-accessories) .card-grid { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.page-cars, .page-accessories) .car-card { transition: none; }
  :is(.page-cars, .page-accessories) .car-card:hover { transform: none; }
}

/* 配件页覆盖既有公开页面渐变，保证标题和说明在深色底上可读。 */
body.page-accessories:not(.page-home) .page-hero:not(.int-hero):not(.news-hero) {
  background: linear-gradient(115deg, #172d47 0%, #24476a 72%, #315b7b 100%);
}

/* 品牌筛选面板：复用两类目录的数据及原表单提交。 */
.brand-filter .brand-picker-open { display:flex; align-items:center; justify-content:space-between; width:100%; gap:12px; padding:12px; border:1px solid var(--line-2); border-radius:9px; background:#fff; color:var(--text); text-align:start; }
.brand-filter .brand-picker-open:hover { border-color:var(--primary); }
.brand-dialog { width:min(900px, calc(100% - 32px)); max-width:none; max-height:min(75vh, 700px); padding:0; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--text); box-shadow:0 24px 70px rgba(15,35,57,.3); }
.brand-dialog::backdrop { background:rgba(13,29,48,.56); }
.brand-dialog-head { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line); font-size:16px; }
.brand-dialog-head button { border:0; border-radius:7px; width:32px; height:32px; background:var(--bg); color:var(--text); font-size:22px; }
.brand-alpha { display:flex; flex-wrap:wrap; gap:4px; padding:12px 20px; border-bottom:1px solid var(--line); background:#f7f9fb; }
.brand-alpha a { display:grid; place-items:center; min-width:30px; min-height:30px; color:var(--primary); font-size:12px; font-weight:700; border-radius:6px; }
.brand-alpha a:hover { background:var(--primary-soft); }
.brand-dialog-body { max-height:calc(min(75vh, 700px) - 135px); overflow:auto; padding:12px 20px 20px; }
.brand-group { scroll-margin-top:8px; }
.brand-group-letter { color:var(--muted); font-size:12px; font-weight:700; margin:8px 0; }
.brand-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.brand-choice { min-width:0; padding:10px 6px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--text); display:flex; flex-direction:column; align-items:center; gap:6px; }
.brand-choice:hover,.brand-choice.active { border-color:var(--primary); background:var(--primary-soft); }
.brand-choice img,.brand-choice-placeholder { width:100%; height:40px; object-fit:contain; background:#f5f7fa; border-radius:6px; }
.brand-choice-placeholder { display:grid; place-items:center; font-weight:700; color:var(--muted); }
.brand-choice-name { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.brand-choice small { color:var(--muted); font-size:11px; }
@media(max-width:1024px){ .brand-filter .brand-picker-open { flex: 1 1 100%; } }
@media(max-width:600px){ .brand-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .brand-dialog-body { padding:10px 14px 16px; } .brand-dialog-head,.brand-alpha { padding-left:14px; padding-right:14px; } }

/* 将品牌及筛选条件组合为侧栏，结果在旁边直接浏览。 */
:is(.page-cars, .page-accessories) .catalog-filter { position:sticky; top:86px; max-height:calc(100vh - 102px); overflow:auto; border-radius:14px; }
:is(.page-cars, .page-accessories) .catalog-filter .filter-card { margin:0; padding:18px; }
.catalog-filter .brand-filter { padding:0 0 14px; margin-bottom:4px; border-bottom:1px solid var(--line); }
.catalog-filter .side-head { display:flex; margin:0 0 8px; padding:0; border:0; }
.catalog-filter .side-head > span { font-size:13px; color:var(--muted); }
.catalog-filter .side-all { padding:3px 8px; }
.catalog-filter .brand-picker-open { min-height:40px; }
:is(.page-cars, .page-accessories) .catalog-filter .chip-row { display:block; padding:12px 0; }
.catalog-filter .chip-label { display:block; padding:0 0 8px; }
.catalog-filter .chips { gap:6px; }
.catalog-filter .filter-row--extra { display:block; }
.catalog-filter .price-range { display:flex; width:100%; }
.catalog-filter .price-range input { width:0; min-width:0; flex:1; }
:is(.page-cars, .page-accessories) .catalog-filter .filter-row2 { display:flex; flex-direction:column; align-items:stretch; margin-top:14px; }
.catalog-filter .filter-row2 .field.grow { flex:auto; min-width:0; }
.catalog-filter .filter-row2 .field input, .catalog-filter .filter-row2 .field select { width:100%; }
.catalog-filter .filter-row2 .side-actions { align-self:stretch; }
.catalog-filter .side-actions .btn { flex:1; }
.catalog-filter .filter-row2 .seg { align-self:stretch; }
.catalog-filter .filter-row2 .seg a { flex:1; text-align:center; }
.catalog-filter .filter-row2 .updated-at { line-height:1.5; }
@media(max-width:1024px){ :is(.page-cars, .page-accessories) .catalog-filter { position:static; max-height:none; overflow:visible; } }

/* 2026-11-08 用户拍板：/cars、/accessories 侧栏筛选控件与首页 quick-search 统一。
   ① 几何规格对齐首页 .qs-picker-btn：46px 高 / 9px 圆角 / 1px 边框 / 14px 字号 / 0 12px 内距。
      颜色按背景适配：首页在深色 Hero 上是玻璃白字，侧栏在白卡片上保留白底深字。
   ② **主要诉求**：聚焦态按首页 .qs-picker-btn 的「白边 + 3px 白色焦点环」统一，
      移除旧的橙色 outline。白卡片上纯白不可见，故在白环外补 1px 品牌蓝轮廓
      兜底键盘可见性（白环本身不变）。
   ③ 排序 select 被 zotour.js 换成可见的 .site-select-button，必须一并纳入，
      否则可见控件仍是 40px / 15px，和输入框对不齐。 */
:is(.page-cars, .page-accessories) .catalog-filter :is(.field input, .field select, .price-range input, .brand-picker-open, .site-select-button),
:is(.page-cars, .page-accessories) .catalog-filter .filter-row2 .side-actions .btn,
:is(.page-cars, .page-accessories) .catalog-filter .filter-row2 .seg a {
  height: 46px;
  line-height: normal;
  box-sizing: border-box;
}
:is(.page-cars, .page-accessories) .catalog-filter :is(.field input, .field select, .price-range input, .brand-picker-open, .site-select-button) {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
}
:is(.page-cars, .page-accessories) .catalog-filter :is(.field input, .field select, .price-range input, .brand-picker-open, .site-select-button):focus,
:is(.page-cars, .page-accessories) .catalog-filter :is(.brand-picker-open, .site-select-button)[aria-expanded='true'] {
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 0 0 4px rgba(36, 88, 230, .55);
}
:is(.page-cars, .page-accessories) .catalog-filter :is(.field input, .field select, .price-range input, .brand-picker-open, .site-select-button):focus-visible {
  outline: none;
}

/* 品牌按组横向排布，少量品牌也能自然填满弹窗。 */
.brand-dialog-body { display:flex; flex-wrap:wrap; align-content:flex-start; align-items:flex-start; gap:16px 12px; }
.brand-group { flex:0 1 auto; min-width:0; max-width:100%; }
.brand-group-letter { margin:0 0 8px; }
.brand-grid { display:flex; flex-wrap:wrap; gap:8px; }
.brand-choice { flex:0 0 124px; width:124px; }
@media(max-width:600px) {
  .brand-dialog-body { gap:14px 8px; }
  .brand-choice { flex-basis:94px; width:94px; }
}


/* 前台下拉菜单：与首页筛选面板统一，浮层避开侧栏滚动裁切。 */
.site-select-wrap { display: inline-block; position: relative; width: 100%; }
.site-select-wrap:has(.lang-select) { width: auto; }
.site-select-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.site-select-button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--text); font: inherit; text-align: start; cursor: pointer;
}
.site-select-button:focus-visible, .site-select-button[aria-expanded='true'] { outline: 2px solid var(--primary); outline-offset: 2px; }
.site-select-button.lang-select { background-image: none; }
.site-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-select-caret { flex: none; transition: transform .2s; }
.site-select-button[aria-expanded='true'] .site-select-caret { transform: rotate(180deg); }
.site-select-panel { position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.site-select-panel[hidden] { display: none; }
.site-select-option { min-height: 58px; justify-content: center; }
@media (max-width: 600px) { .site-select-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 移动端先展开搜索框，输入关键词后才提交。 */
@media (max-width: 900px) {
  html:not(.no-js) .sh-inner { position: relative; }
  html:not(.no-js) .sh-search:focus-within:not(.is-open) { width: 38px; }
  html:not(.no-js) .sh-search:focus-within:not(.is-open) input { width: 0; padding: 0; }
  html:not(.no-js) .sh-search.is-open {
    position: absolute; z-index: 5; inset-inline: 16px; top: 50%;
    transform: translateY(-50%); width: auto; background: #fff;
    border-color: var(--line-2);
  }
  html:not(.no-js) .sh-search.is-open input { width: auto; padding: 0 4px 0 13px; color: var(--text); }
  html:not(.no-js) .sh-search.is-open input::placeholder { color: var(--muted); }
  html:not(.no-js) .sh-search.is-open .sh-search-btn { color: var(--primary); }
}
@media (max-width: 900px) {
  html:not(.no-js) .sh-search.is-open input:focus-visible { outline: none; }
}

/* 配件图片随卡片宽度等比缩放，高度由原图比例决定，完整展示。 */
.accessory-card .cc-img { background: #fff; }
.accessory-card .cc-img:has(.cc-photo:not([style*="visibility: hidden"])) { aspect-ratio: auto; }
.accessory-card .cc-thumb-placeholder { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; min-height: 0; border-radius: 0; }
.accessory-card .cc-photo { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: contain; padding: 0; background: #fff; }
.car-card.accessory-card:hover .cc-photo { transform: none; }
.accessory-card .cc-body {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(42%);
  align-items: center; gap: 12px; padding: 16px 18px;
}
.accessory-card .ac-summary { min-width: 0; }
.accessory-card .cc-title { align-items: flex-start; gap: 6px; margin: 0; }
.accessory-card .cc-title h3 { overflow-wrap: anywhere; line-height: 1.4; }
.accessory-card .cc-pick { flex-shrink: 0; }
.accessory-card .cc-sub { margin: 5px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.accessory-card .cc-tags { margin: 8px 0 0; }
.accessory-card .cc-price { padding: 0; justify-content: flex-end; min-width: 0; }
.accessory-card .cc-price .prc {
  display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap;
  gap: 2px 5px; text-align: end; line-height: 1.3; overflow-wrap: anywhere;
}
.accessory-card .cc-price .prc small { display: inline; white-space: nowrap; }
.accessory-card .cc-foot { padding: 10px 16px; }
