/* ============================================================
   湖北众德汽车官网 - 主样式表
   工业专业风：深蓝主色（信任）+ 橙色点缀（工程/警示）
   ============================================================ */

:root {
  color-scheme: light;
  --brand: #0C447C;
  --brand-dark: #0A3A6B;
  --brand-light: #185FA5;
  --brand-tint: #E6F1FB;
  --accent: #EF9F27;
  --accent-dark: #BA7517;
  --accent-tint: #FAEEDA;

  --text: #1F2328;
  --text-2: #4A5056;
  --text-3: #7A8288;
  --bg: #FFFFFF;
  --bg-2: #F5F7F9;
  --bg-3: #EDF0F3;
  --surface: #FFFFFF;
  --border: #E3E7EB;
  --border-strong: #CFD6DC;

  --danger: #C0392B;
  --success: #1D9E75;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06);
  --shadow: 0 2px 8px rgba(16, 32, 48, .08);
  --shadow-lg: 0 8px 24px rgba(16, 32, 48, .12);

  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; color: var(--text); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: 16px; flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--accent); }
.topbar .hot { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .3px; }

/* ---------- 主导航 ---------- */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--brand); color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; letter-spacing: -.5px; flex-shrink: 0;
}
.logo-text { line-height: 1.25; }
.logo-text strong { display: block; font-size: 17px; color: var(--brand); letter-spacing: .3px; }
.logo-text span { display: block; font-size: 11px; color: var(--text-3); letter-spacing: 1.5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; font-size: 15px; color: var(--text);
  border-radius: var(--radius); position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--brand); background: var(--bg-2); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { font-size: 18px; font-weight: 700; color: var(--accent-dark); letter-spacing: .5px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text);
  margin: 3px auto; border-radius: 2px;
}

/* ---------- 导航搜索（获取报价右侧放大镜，下拉抽屉） ---------- */
.search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .15s; flex-shrink: 0; padding: 0;
}
.search-btn:hover { border-color: var(--brand); color: var(--brand); }
.search-btn[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 面板挂在 position:sticky 的 .header 内，top:100% 即贴着 header 底边，随吸顶一起走 */
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(8, 40, 78, .18);
}
.search-inner { padding: 18px 0 20px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-ico { position: absolute; left: 15px; color: var(--text-3); pointer-events: none; }
.search-input {
  width: 100%; height: 50px; padding: 0 52px 0 42px;
  border: 2px solid var(--brand); border-radius: var(--radius);
  font-size: 16px; color: var(--text); background: var(--surface); outline: none;
}
.search-input::placeholder { color: var(--text-3); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-close {
  position: absolute; right: 7px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--text-3);
  cursor: pointer; border-radius: var(--radius);
}
.search-close:hover { color: var(--text); background: var(--bg-2); }

.search-hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sh-label { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.search-hot button {
  padding: 5px 13px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-2); color: var(--text-2); font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.search-hot button:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }

.search-results { margin-top: 4px; }
.search-status { font-size: 13px; color: var(--text-3); padding: 10px 4px 2px; }
.search-status b { color: var(--brand); }
.sr-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 10px;
  border-bottom: 1px solid var(--border); border-radius: var(--radius);
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--bg-2); }
.sr-item img {
  width: 76px; height: 56px; object-fit: cover; border-radius: 6px;
  background: var(--bg-2); flex-shrink: 0;
}
.sr-body { flex: 1; min-width: 0; }
.sr-title {
  display: block; font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-title mark, .sr-snip mark { background: transparent; color: var(--accent-dark); font-weight: 700; padding: 0; }
.sr-meta { display: flex; margin-top: 3px; font-size: 12px; color: var(--text-3); }
.sr-snip {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 3px; font-size: 12px; color: var(--text-3);
}
.sr-go { font-size: 13px; color: var(--brand); flex-shrink: 0; white-space: nowrap; }
.sr-empty { padding: 28px 10px; text-align: center; font-size: 14px; color: var(--text-2); }
.sr-empty span { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 26px; border-radius: var(--radius); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .15s; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--brand-dark); color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(10, 58, 107, .96) 0%, rgba(12, 68, 124, .88) 55%, rgba(12, 68, 124, .72) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.hero-content { max-width: 660px; }
.hero-eyebrow {
  display: inline-block; padding: 5px 14px; margin-bottom: 20px;
  background: rgba(239, 159, 39, .16); border: 1px solid rgba(239, 159, 39, .4);
  color: var(--accent); border-radius: 100px; font-size: 13px; letter-spacing: .5px;
}
.hero h1 { color: #fff; font-size: 42px; line-height: 1.25; margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 17px; color: rgba(255, 255, 255, .82); margin-bottom: 30px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-stat strong { display: block; font-size: 30px; color: var(--accent); line-height: 1.2; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* ---------- 通用区块 ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-eyebrow { font-size: 13px; color: var(--accent-dark); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 30px; margin-bottom: 14px; letter-spacing: -.3px; }
.section-head p { color: var(--text-2); font-size: 16px; margin: 0; }
.section-head .rule { width: 48px; height: 3px; background: var(--accent); margin: 0 auto 16px; border-radius: 2px; }

/* ---------- 车型分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: all .2s; display: block; color: var(--text);
  border-top: 3px solid var(--brand);
}
.cat-card:hover {
  border-top-color: var(--accent); box-shadow: var(--shadow-lg);
  transform: translateY(-3px); color: var(--text);
}
.cat-card .cat-icon {
  width: 46px; height: 46px; border-radius: var(--radius); background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--brand); font-size: 20px; font-weight: 700;
}
.cat-card h3 { font-size: 18px; margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }
.cat-card .cat-meta { font-size: 13px; color: var(--accent-dark); font-weight: 500; }

/* GEO 事实卡：自包含的车型速览段，供搜索引擎与 AI 平台直接摘录 */
.fact-card {
  background: var(--brand-tint); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin-bottom: 26px;
}
.fact-card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text); }
.fact-card .fact-meta { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.update-note { margin-top: 28px; font-size: 13px; color: var(--text-3); line-height: 1.7; }

/* 标题行：车型名 + 彩页下载按钮（移动端换行堆叠） */
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title-row h1 { flex: 1 1 auto; min-width: 0; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-top: 4px;
  padding: 9px 16px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(12, 68, 124, 0.25); transition: background .15s ease, transform .15s ease;
}
.pdf-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pdf-btn:hover { background: var(--brand-dark, #093a6b); transform: translateY(-1px); }
.pdf-btn:active { transform: translateY(0); }
@media (max-width: 640px) {
  .title-row { flex-direction: column; }
  .title-row h1 { width: 100%; }
  .pdf-btn { width: 100%; justify-content: center; margin-top: 0; }
}
/* iOS 提示行（由 JS 在 iOS/微信环境插入，PC 与安卓看不到） */
.title-row.has-tip { flex-wrap: wrap; }
.pdf-tip { flex: 1 1 100%; font-size: 12px; line-height: 1.5; color: var(--text-3); margin-top: 4px; }
/* 仅屏幕阅读器与爬虫可见（用于 SEO 小标题，不占视觉空间） */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* 暂无车型的分类：不可点，避免链向空页面 */
.cat-card-off { border-top-color: var(--border); opacity: .72; cursor: default; }
.cat-card-off:hover { border-top-color: var(--border); box-shadow: none; transform: none; }
.cat-card-off .cat-icon { background: var(--bg-alt, #f1f4f9); color: var(--text-3); }
.cat-card-off .cat-meta { color: var(--text-3); }

/* ---------- 车型卡片 ---------- */
/* grid-auto-rows: 1fr —— 所有行等高（取内容最高的一行），
   否则 grid 会按每行各自内容算行高，出现「上一行卡片比下一行矮一截」。
   配合下面 .vehicle-card 的 height:100%，全站卡片高度统一。 */
.vehicle-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; grid-auto-rows: 1fr;
}
/* 列表页筛选用的包裹层（main.js 按 data-category / data-subtype 显隐）。
   必须 display:flex + min-width:0，内部卡片才能撑满格子（否则卡片只按内容高度，
   同行内会出现高低不齐）。筛选时 style.display 置空即回到这里的 flex。 */
.vehicle-card-wrap { display: flex; min-width: 0; }
.vehicle-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s; display: flex; flex-direction: column;
  height: 100%; width: 100%; min-width: 0;
}
.vehicle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.vehicle-card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.vehicle-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vehicle-card:hover .thumb img { transform: scale(1.04); }
.vehicle-card .thumb .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), var(--border)); color: var(--text-3); font-size: 13px;
}
.vehicle-card .badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 500; background: var(--accent); color: #fff;
}
.vehicle-card .badge-hazard { background: var(--danger); }
/* 内容区各块高度固定 → 所有卡片内部元素横向对齐（标题、标签、底部栏在同一水平线） */
.vehicle-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
/* 标题最多 2 行，短标题也占 2 行高度，避免下方内容整体上移 */
.vehicle-body h3 {
  font-size: 17px; margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(17px * 1.4 * 2);
}
.vehicle-body h3 a { color: var(--text); }
.vehicle-body h3 a:hover { color: var(--brand); }
/* 公告型号：固定单行，超长省略号 */
.vehicle-model {
  font-size: 13px; color: var(--text-3); margin-bottom: 10px; font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 摘要最多 3 行，超出省略；flex:1 吃掉剩余空间，把底部栏顶到卡片最下沿 */
.vehicle-summary {
  font-size: 14px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 无标签的卡片也保留一行占位，标签行不错位 */
.vehicle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 24px; align-content: flex-start; }
.tag {
  padding: 3px 9px; border-radius: 4px; font-size: 12px;
  background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border);
}
.tag-hazard { background: #FCEBEB; color: #A32D2D; border-color: #F7C1C1; }
.tag-brand { background: var(--brand-tint); color: var(--brand); border-color: #B5D4F4; }
/* 成功案例卡片底部「查看车型」链接 */
.case-more { display: inline-block; margin-top: 2px; color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; align-self: flex-start; }
.case-more:hover { text-decoration: underline; }
.vehicle-card .thumb { display: block; }
/* margin-top:auto 兜底：即使摘要被截断变短，底部栏也始终贴着卡片底边 */
.vehicle-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--border); margin-top: auto; }
.vehicle-foot .price-hint { font-size: 13px; color: var(--text-3); }
.vehicle-foot .link { font-size: 14px; color: var(--brand); font-weight: 500; }

/* ---------- 优势/特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.feature { text-align: center; padding: 8px; }
.feature-num {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.65; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 14px; }
.breadcrumb .container { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-3); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text); }

/* ---------- 页面头部 ---------- */
.page-head { background: var(--brand-dark); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 58, 107, .97), rgba(12, 68, 124, .9)); }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.page-head p { color: rgba(255, 255, 255, .78); font-size: 15px; margin: 0; max-width: 760px; }

/* ---------- 车型详情页 ---------- */
.detail { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; padding: 40px 0 68px; }
/* 关键防御：grid 子项默认 min-width:auto，1fr 会被内部 min-content 撑大，
   让页面出现「以某宽内容为准」的不一致宽度。强制置 0 后 1fr = 容器宽度。 */
.detail > * { min-width: 0; }

.gallery { margin-bottom: 32px; }
.gallery-main {
  aspect-ratio: 4 / 3; background: var(--bg-3); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.gallery-thumbs button {
  aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0; background: var(--bg-3);
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-body h2 { font-size: 22px; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.spec-table caption {
  text-align: left; font-weight: 600; font-size: 15px; color: var(--brand);
  padding: 12px 14px; background: var(--brand-tint); border-radius: var(--radius) var(--radius) 0 0;
}
.spec-table th, .spec-table td { padding: 11px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
/* 参数名列：深蓝底白字，一眼分清「参数名 / 参数值」（PC 端表格与移动端卡片都生效）。
   加 !important 防止被任何修饰类覆盖。 */
.spec-table th {
  width: 34%; background: var(--brand) !important;
  font-weight: 600; color: #fff !important;
}
.spec-table td { color: var(--text); }

/* ---------- 移动端参数卡片（.m-spec-*，与 PC 端 table 完全解耦） ----------
   PC 端默认隐藏；≤768px 时在 768 断点内切到 display:block 并隐藏 table。
   这套 DOM 不是 table，没有 border-collapse / 列宽算法等隐式特性干扰，
   所以移动端样式 100% 可控，改移动端不会影响 PC 端。 */
.m-spec-list { display: none; }
/* 移动端卡片：大圆角 + 明显投影 + 宽松留白，走原生 App 卡片风，
   与 PC 端紧凑表格（label 左 34% / value 右）形成鲜明对比。 */
.m-spec-item {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--surface);
  box-shadow: 0 2px 6px rgba(12, 68, 124, .06);
}
.m-spec-k {
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600; padding: 10px 14px;
  letter-spacing: .3px; overflow-wrap: break-word;
}
.m-spec-v {
  padding: 12px 14px; font-size: 15px; line-height: 1.7;
  color: var(--text); overflow-wrap: break-word;
}

/* ---------- 参数表分组（手风琴：每组标题紧贴自己表格上方） ----------
   ★ 2026-09-03 李总要求：胶囊标题放到「它对应的表格」上方，样式与「详细参数」h2 一致。
     之前是一排 tabbar 在顶部切所有表格，标题和表格分离、还要点来点去才能看全。
     现在改成：每个 .spec-panel 内「h3 标题 + 自己的表格」成对纵向排列。
   ★ 标题样式 = 与 .detail-body h2（详细参数）同一套：橙色左边框 4px + padding-left 12px，
     字号降一档（18px vs h2 的 22px）体现层级。
   ★ 默认全部展开（模板给每个 panel 加 is-active），点击标题可收起。 */
.spec-tabs { margin-bottom: 24px; width: 100%; }
.spec-panel { margin-bottom: 26px; }
.spec-panel:last-child { margin-bottom: 0; }
/* h3 只作语义容器（h2 详细参数 → h3 各分组，利于 SEO/GEO 层级），视觉样式全交给 button */
.spec-group { margin: 0 0 14px; font-size: inherit; font-weight: inherit; line-height: inherit; }
.spec-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 26px;
  margin: 0; padding: 0 0 0 12px;
  border: 0; border-left: 4px solid var(--accent); border-radius: 0;
  background: none; color: var(--text);
  font-size: 18px; font-weight: 600; font-family: inherit; line-height: 1.35;
  text-align: left; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.spec-tab:hover { color: var(--brand); border-left-color: var(--brand); }
.spec-tab-txt { min-width: 0; }
/* 折叠指示箭头：展开时朝上（收起用），收起时朝下（展开用）
   ★ display:inline-block 必须显式写：span 默认是 inline，width/height 在 inline 上下文不生效。
   虽然父 .spec-tab 是 flex 容器（flex item 会被 blockify），但浏览器实测 transform 旋转时
   还是按 inline 元素的尺寸（0×0）算中心，箭头视觉上看不见 —— 必须显式声明。 */
.spec-tab-ico {
  display: inline-block;
  flex: 0 0 auto; width: 9px; height: 9px; margin-right: 3px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(-135deg); transform-origin: 50% 60%;
  transition: transform .18s ease;
  vertical-align: middle;
}
.spec-tab[aria-expanded="false"] .spec-tab-ico { transform: rotate(45deg); }
/* 没启用折叠时（JS 未执行 / 只有 1 个分组）隐藏箭头，避免「看着能点其实没反应」 */
.spec-tabs:not(.is-ready) .spec-tab-ico { display: none; }
/* ★ 只有 JS 就绪（容器拿到 is-ready）才启用折叠；默认全部展开，不点不隐藏任何东西。
   注意：只隐藏表格区（.spec-panel-body），标题始终可见 —— 否则收起后没法再展开。 */
.spec-tabs.is-ready .spec-panel:not(.is-active) .spec-panel-body { display: none; }

/* ---------- 工信部公告卡片（每条公告一张卡，桌面+移动共用） ---------- */
.announce-list { display: grid; gap: 12px; margin-bottom: 24px; }
.announce-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: box-shadow .15s ease;
}
.announce-card:hover { box-shadow: var(--shadow); }
.announce-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; background: var(--brand-tint);
  border-bottom: 1px solid var(--border);
}
.announce-model {
  font-weight: 600; font-size: 15px; color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .3px; word-break: break-all;
}
.announce-class {
  margin-left: auto; padding: 4px 12px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.announce-class.is-class-1 { background: var(--accent); }   /* 1 类爆破器材：橙色警示 */
.announce-class.is-class-7 { background: #6B21A8; }          /* 7 类放射性物品：紫色 */
.announce-body {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 12px 16px; font-size: 14px; line-height: 1.7; color: var(--text-2);
}
.announce-k { color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.announce-v { flex: 1 1 60%; }

.highlight-list { margin: 0 0 28px; display: grid; gap: 10px; }
.highlight-list li {
  position: relative; padding-left: 26px; font-size: 15px; color: var(--text-2); line-height: 1.65;
}
.highlight-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

.hazard-classes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hazard-chip {
  padding: 6px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  background: #FCEBEB; color: #A32D2D; border: 1px solid #F7C1C1;
}
/* 1类/7类：须单独持证、不得与其他类别合并，用虚线边框做视觉区分 */
.hazard-chip-sole {
  background: #FFF4E5; color: #8A4B00; border-style: dashed; border-color: #E8A33D;
}
.hazard-note {
  padding: 14px 16px; background: var(--accent-tint); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; color: #633806; margin-bottom: 28px;
}

/* FAQ */
.faq { margin-top: 36px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 16px 0; cursor: pointer; font-size: 16px; font-weight: 500;
  list-style: none; display: flex; align-items: flex-start; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.faq-item[open] summary::before { content: "\2212"; background: var(--brand); color: #fff; }
.faq-item .answer { padding: 0 0 18px 34px; color: var(--text-2); font-size: 15px; line-height: 1.75; }

/* ---------- 侧边栏 ---------- */
.sidebar { position: sticky; top: 92px; display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-head { padding: 16px 20px; background: var(--brand); color: #fff; }
.card-head h3 { color: #fff; font-size: 16px; margin: 0; }
.card-body { padding: 20px; }
.card-body p { font-size: 14px; color: var(--text-2); }

.contact-list { display: grid; gap: 12px; }
.contact-list div { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
.contact-list dt { color: var(--text-3); flex-shrink: 0; width: 56px; }
.contact-list dd { margin: 0; color: var(--text); font-weight: 500; }
.contact-phone { font-size: 24px !important; font-weight: 700 !important; color: var(--accent-dark) !important; letter-spacing: .5px; }

.quote-form { display: grid; gap: 12px; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 14px; font-family: var(--font); background: var(--surface); color: var(--text);
}
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 95, 165, .1);
}
.quote-form textarea { resize: vertical; min-height: 78px; }
.quote-form .btn { width: 100%; }

.rel-list { display: grid; gap: 14px; }
.rel-item { display: flex; gap: 12px; align-items: center; }
.rel-item .thumb { width: 76px; height: 58px; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); flex-shrink: 0; }
.rel-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-item .info { min-width: 0; }
.rel-item .info a { font-size: 14px; color: var(--text); font-weight: 500; display: block; line-height: 1.4; }
.rel-item .info a:hover { color: var(--brand); }
.rel-item .info span { font-size: 12px; color: var(--text-3); }

/* ---------- 分类筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0 28px; align-items: center; }
.filter-bar .label { font-size: 14px; color: var(--text-3); margin-right: 4px; }
.filter-chip {
  padding: 7px 16px; border-radius: 100px; border: 1px solid var(--border-strong);
  font-size: 14px; color: var(--text-2); background: var(--surface); cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 售后查询工具 ---------- */
.service-tool { background: var(--bg-2); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); }
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tool-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.tool-field select, .tool-field input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 14px; font-family: var(--font); background: var(--surface); color: var(--text);
}
.tool-result { margin-top: 20px; }
.station-list { display: grid; gap: 12px; }
.station-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: grid; gap: 6px;
}
.station-item h4 { font-size: 16px; margin-bottom: 2px; }
.station-item .meta { font-size: 14px; color: var(--text-2); }
.station-item .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-3); }

/* 空分类占位页（品类入口保留，车型待补） */
.empty-cat {
  max-width: 720px; margin: 8px auto 0; text-align: center;
  padding: 44px 28px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-cat h2 { font-size: 22px; margin-bottom: 14px; }
.empty-cat p { color: var(--text-2); line-height: 1.8; margin-bottom: 12px; }
.empty-cat-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 640px) {
  .empty-cat { padding: 32px 18px; }
  .empty-cat-actions .btn { width: 100%; }
}

/* ---------- 通用内容 ---------- */
.content { padding: 44px 0 68px; }
.content-narrow { max-width: 820px; margin: 0 auto; }
.content h2 { font-size: 24px; margin: 36px 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.content h3 { font-size: 18px; margin: 26px 0 12px; }
.content p, .content li { font-size: 15px; color: var(--text-2); line-height: 1.8; }
.content ul.bullets { display: grid; gap: 8px; margin-bottom: 20px; }
.content ul.bullets li { position: relative; padding-left: 22px; }
.content ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 32px 0; }
.info-card { background: var(--bg-2); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--border); }
.info-card h3 { font-size: 15px; color: var(--text-3); font-weight: 500; margin-bottom: 8px; }
.info-card p, .info-card a { font-size: 17px; color: var(--text); font-weight: 600; margin: 0; line-height: 1.5; }
.info-card.has-img { padding: 0; overflow: hidden; }
.info-card.has-img h3, .info-card.has-img p, .info-card.has-img > a { padding: 0 22px; }
.info-card.has-img h3 { padding-top: 16px; }
.info-card.has-img > a:last-child, .info-card.has-img > p { padding-bottom: 20px; display: block; }
.info-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.info-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.info-card.has-img:hover .info-card-img img { transform: scale(1.04); }

/* ---------- CTA ---------- */
.cta-band { background: var(--brand-dark); color: #fff; padding: 52px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 58, 107, .96), rgba(12, 68, 124, .88)); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .78); font-size: 16px; margin-bottom: 26px; }
.cta-phone { font-size: 34px; font-weight: 700; color: var(--accent); letter-spacing: 1px; display: block; margin-bottom: 20px; }

/* ---------- 页脚 ---------- */
.footer { background: #14202C; color: rgba(255, 255, 255, .68); padding: 52px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer p { line-height: 1.75; margin-bottom: 12px; }
.footer ul { display: grid; gap: 9px; }
.footer ul a { color: rgba(255, 255, 255, .68); }
.footer ul a:hover { color: var(--accent); }
.footer .brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .brand-line strong { color: #fff; font-size: 17px; }
.footer-contact div { margin-bottom: 8px; }
.footer-contact strong { color: var(--accent); font-size: 20px; letter-spacing: .5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a { color: rgba(255, 255, 255, .6); }
.footer-bottom a:hover { color: var(--accent); }

/* 公安备案号：按规范带盾牌图标并可跳转 beian.gov.cn */
.police-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.police-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

/* ---------- 售后查询：品牌网格 ---------- */
.tool-block { margin-bottom: 20px; }
.tool-block:last-of-type { margin-bottom: 0; }
.block-label {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  font-weight: 500; color: var(--text); margin-bottom: 12px;
}
.block-label b {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.brand-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); cursor: pointer; transition: all .15s; font-family: inherit;
}
.brand-item:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-item.active {
  border-color: var(--accent); background: var(--accent-tint);
  box-shadow: 0 0 0 2px rgba(239, 159, 39, .2);
}
.brand-item img { width: 48px; height: 48px; object-fit: contain; }
.brand-fallback {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand); font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 14px; font-weight: 500; color: var(--text); }
.brand-item em { font-style: normal; font-size: 12px; color: var(--text-3); }
.brand-item.active em { color: var(--accent-dark); }

/* ---------- 售后查询：车型图片滚动（统计卡上方） ----------
   实现要点：轨道内放两份完全相同的卡片，动画位移 -50% 时正好接回起点 → 无缝循环。
   间距用 margin-right 而不是 flex gap：gap 会让 2N 份的总宽比「2 ×(卡宽+间距)」少一个间距，
   位移 -50% 时每次循环都会差半个间距而出现跳动。 */
.vmarq { margin: 0 0 18px; min-width: 0; }
.vmarq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vmarq-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.vmarq-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--accent); }
.vmarq-tip { font-size: 12px; color: var(--text-3); }
/* 减弱动态效果时由 JS 加，强制显示滑动提示（≤480px 默认隐藏会让人以为这块坏了） */
.vmarq-tip.is-force { display: inline !important; }
/* ★ 容器用 overflow-x:auto（滚动条已隐藏）而不是 hidden：
   ① JS 用 scrollLeft 驱动最稳，不依赖 width:max-content 的兼容性——部分手机浏览器
      （微信/UC/夸克等老 X5 内核）对 max-content 支持不完整，track 会被压成容器宽，
      translateX(-50%) 只挪半屏，肉眼看就是「不滚动」；
   ② 手指可以直接横滑，滑完 2 秒后自动接着滚。
   overscroll-behavior-x: contain 防止横滑连带页面或触发 iOS 返回手势。 */
.vmarq-viewport {
  position: relative; min-width: 0; padding: 2px 0 4px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-behavior: auto;   /* 不要继承成 smooth，否则 JS 归零 scrollLeft 时会画蛇添足地动画 */
}
.vmarq-viewport::-webkit-scrollbar { display: none; }
.vmarq-track {
  display: flex; align-items: flex-start; width: max-content;
  will-change: transform; animation: vmarq-scroll 72s linear infinite;
}
/* JS 接管后（main.js 加上 .is-js）关掉 CSS 动画，改由 transform 驱动，两者不能并存。
   will-change:transform 必须保留 —— 它把轨道提为独立合成层，滚动才不触发重排。 */
.vmarq.is-js .vmarq-track { animation: none; }
.vmarq-item {
  flex: 0 0 auto; width: 190px; margin-right: 14px;
  display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  /* 每张卡片自成渲染单元：滚动时浏览器只重画变化的部分，避免整条轨道反复重绘 */
  contain: layout paint;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.vmarq-item img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-3);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.vmarq-cap {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 7px 8px 8px; min-height: 42px; font-size: 12px; line-height: 1.45; color: var(--text-2);
}
.vmarq-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.vmarq-item:hover .vmarq-cap { color: var(--brand-light); }
@keyframes vmarq-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* 仅用于「JS 没跑起来」的降级路径：鼠标悬停暂停 CSS 动画。
   正常情况 JS 会用 requestAnimationFrame + scrollLeft 接管，暂停/恢复由 JS 控制。 */
@media (hover: hover) { .vmarq-viewport:hover .vmarq-track { animation-play-state: paused; } }
/* 系统开启「减弱动态效果」：停掉自动滚动，改为可手动横滑，副本隐藏避免重复内容 */
@media (prefers-reduced-motion: reduce) {
  .vmarq-track { animation: none; }
  .vmarq-viewport { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .vmarq-item { scroll-snap-align: start; }
  .vmarq-item.is-dup { display: none; }
}

/* ---------- 售后查询：统计条 ---------- */
.tool-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.tstat {
  background: var(--brand); color: #fff; border-radius: var(--radius-lg);
  padding: 18px 20px; text-align: center;
}
.tstat strong { display: block; font-size: 26px; line-height: 1.2; color: var(--accent); }
.tstat span { font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ---------- 售后查询：结果卡片 ---------- */
.tool-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--border);
}
.tool-bar > span { font-size: 14px; color: var(--text-2); }

.station-list { display: grid; gap: 12px; }

.station-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 16px 18px;
}
.station-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.station-hd h4 { font-size: 16px; flex: 1; min-width: 0; }
.badge-official {
  padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: var(--brand-tint); color: var(--brand); flex-shrink: 0;
}
.station-idx {
  flex-shrink: 0; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 4px;
  background: var(--bg-3); color: var(--text-3); font-size: 12px; line-height: 24px; text-align: center;
}

.station-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; flex-wrap: wrap;
}
.station-row + .station-row { border-top: 1px dashed var(--border); }
.s-lbl { flex-shrink: 0; width: 60px; font-size: 13px; color: var(--text-3); line-height: 1.9; }
.s-val { flex: 1; min-width: 0; font-size: 14px; color: var(--text); line-height: 1.7; }
.addr-val { color: var(--text-2); }

.phones-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-pill {
  display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 13px;
  background: var(--brand-tint); color: var(--brand); border: 1px solid #B5D4F4;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.phone-pill:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.phone-none { font-size: 13px; color: var(--text-3); }

.s-act {
  flex-shrink: 0; padding: 4px 12px; border-radius: var(--radius); font-size: 13px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.s-act:hover { border-color: var(--brand); color: var(--brand); }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
}
.pg-btn {
  padding: 8px 20px; border-radius: var(--radius); font-size: 14px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.pg-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-info { font-size: 14px; color: var(--text-3); }

/* ---------- 底部推广卡：厂家直营 · 热销车型 ---------- */
.promo-section {
  margin-top: 32px; padding-top: 26px; border-top: 2px solid var(--border);
}
.promo-hd {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.promo-hd h3 {
  font-size: 20px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.2;
}
.promo-hd span { font-size: 13px; color: var(--text-3); }

.promo-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 16px; }

.promo-car {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.promo-media { display: block; background: var(--bg-3); overflow: hidden; aspect-ratio: 4 / 3; }
.promo-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.promo-car:hover .promo-media img { transform: scale(1.04); }

.promo-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.promo-cat {
  align-self: flex-start; padding: 3px 10px; border-radius: 100px; font-size: 12px;
  background: var(--accent-tint); color: var(--accent-dark); font-weight: 500;
}
.promo-body h4 { font-size: 19px; line-height: 1.3; }
.promo-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.promo-highlights { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.promo-highlights li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--radius); font-size: 13px;
  background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border);
}
.ph-ico { font-size: 14px; line-height: 1; }

.promo-price {
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent-tint), #FDF6EC);
  border: 1px dashed var(--accent);
}
.promo-price span { font-size: 13px; color: var(--accent-dark); }
.promo-price strong { font-size: 24px; color: var(--accent-dark); line-height: 1; }
.promo-price em { font-style: normal; color: var(--accent-dark); font-size: 16px; }

.promo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.promo-actions .btn { flex: 1; min-width: 160px; text-align: center; }
.promo-call { background: var(--accent); border-color: var(--accent); color: #fff; }
.promo-call:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ============================================================
   响应式：刻意「移动端优先」优化
   断点：1024 平板 / 768 手机横屏 / 480 手机竖屏 / 360 极小屏
   重点：触控目标≥44px、iOS 输入框 16px 防缩放、
        规格表横滑、安全区适配、sticky 锚点补偿、移动常驻 CTA 栏
   ============================================================ */

/* sticky header 下锚点（#quote 等）补偿，避免被固定头部遮住 */
html { scroll-padding-top: 88px; }

/* ---------- 平板及以下 ---------- */
@media (max-width: 1024px) {
  .detail { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}

/* ---------- 手机横屏 / 竖屏 ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* 顶部工具条：隐藏欢迎语，保留热线，居中 */
  .topbar .container { justify-content: center; text-align: center; font-size: 12px; gap: 10px; }
  .topbar-left span:first-child { display: none; }

  /* 主导航：汉堡菜单 + 安全区 + 大号触控目标 */
  .header { padding-top: env(safe-area-inset-top); }
  .header .container { min-height: 64px; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .nav {
    position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
    padding: 8px 12px 8px; gap: 2px; box-shadow: var(--shadow); display: none;
    max-height: calc(100vh - 64px - env(safe-area-inset-top)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 13px 16px; border-radius: var(--radius); min-height: 44px;
    display: flex; align-items: center; font-size: 16px;
  }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--brand-tint); }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }                 /* 隐藏文字按钮 */
  .header-cta .header-phone { display: inline-block; font-size: 16px; } /* 保留电话 */
  /* 搜索：移动端保留放大镜，面板限高可滚；打开时锁 body 滚动防背景跟着滚 */
  .search-btn { width: 38px; height: 38px; }
  .search-btn svg { width: 18px; height: 18px; }
  .search-panel { max-height: calc(100dvh - 64px - env(safe-area-inset-top)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  @supports not (height: 100dvh) { .search-panel { max-height: calc(100vh - 64px); } }
  .search-inner { padding: 14px 0 16px; }
  .search-field { height: 46px; }
  .search-input { height: 46px; padding-right: 46px; }
  .search-hot { margin-top: 10px; }
  .search-hot button { padding: 7px 14px; min-height: 34px; }
  .sr-item img { width: 64px; height: 48px; }
  .sr-go { display: none; }
  body.search-open, body.nav-open { overflow: hidden; }

  /* Hero：按钮全宽、易点 */
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 20px; justify-content: space-between; }
  .hero-stat strong { font-size: 22px; }
  .hero-stat span { font-size: 12px; }

  /* 区块 */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 23px; }
  .section-eyebrow { letter-spacing: 1.5px; }
  .page-head { padding: 32px 0; }
  .page-head h1 { font-size: 22px; }

  /* 分类卡 / 车型卡 */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card { padding: 20px 18px; }
  .vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .vehicle-body { padding: 14px; }
  /* 移动端卡片窄，标题/摘要各收 1 行，避免小卡片被文字撑成细长条 */
  .vehicle-body h3 {
    font-size: 15px;
    -webkit-line-clamp: 2;
    min-height: calc(15px * 1.4 * 2);
  }
  .vehicle-summary { font-size: 13px; -webkit-line-clamp: 2; }
  .vehicle-tags { min-height: 22px; }
  .vehicle-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vehicle-foot .link { align-self: flex-start; }

  /* 详情页 */
  .detail { padding: 20px 0 44px; }
  .detail-body > h1 { font-size: 23px !important; }
  /* 参数表：移动端切到独立的 .m-spec-list 卡片 DOM，隐藏 PC 端 table。
     两套 DOM 解耦 —— 移动端样式与 table 零耦合，100% 可控。 */
  .spec-tabs .spec-table { display: none; }
  .m-spec-list {
    display: grid;
    grid-template-columns: 1fr;   /* 单列，每张卡片宽度 = 页面宽度 */
    gap: 8px;
  }
  /* ★ 移动端单列布局：所有 grid/flex 子项强制 min-width:0，
     杜绝「以某块内容撑破 detail-body → gallery-main 跟着变宽」类连锁溢出。
     修过 jiefang-j6l 详情页（2026-09-03）：当时的 spec-tabbar 负 margin + flex 不压缩
     把 .detail-body 撑到 438px，gallery-main 也跟着变宽，导致各区块宽度不一致。
     ★ 2026-09-03 二次改造：tabbar 已废弃（改手风琴），min-width 防御对象换成 .spec-tab。 */
  .detail-body > *, .spec-tabs, .spec-panel, .spec-panel-body, .spec-group, .spec-tab,
  .m-spec-list, .m-spec-item { min-width: 0; }
  /* 移动端标题字号降一档（PC 18px → 移动 17px），保持与「详细参数」h2 的视觉层级关系 */
  .spec-tab { font-size: 17px; }
  .spec-panel { margin-bottom: 22px; }
  /* 公告卡：紧凑一些 */
  .announce-card { border-radius: 10px; }
  .announce-head { padding: 10px 14px; }
  .announce-body { padding: 11px 14px; font-size: 13px; }
  .announce-model { font-size: 14px; }

  .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .rel-item .thumb { width: 64px; height: 48px; }

  /* 表单：iOS 聚焦自动放大，input 设 16px 规避 */
  .quote-form input, .quote-form textarea, .quote-form select,
  .tool-field select, .tool-field input,
  .filter-chip, .pg-btn, .s-act, .btn { font-size: 16px; }
  .quote-form input, .quote-form textarea, .quote-form select { padding: 13px 12px; }

  /* 页脚 / CTA */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 0; }
  .cta-band h2 { font-size: 24px; }
  .cta-phone { font-size: 28px; }
  .cta-band .btn { width: 100%; max-width: 320px; }

  /* 售后工具 */
  .vmarq { margin-bottom: 14px; }
  .vmarq-head { margin-bottom: 8px; }
  .vmarq-title { font-size: 15px; }
  .vmarq-tip { font-size: 11px; }
  /* 手机端卡片收窄：375px 屏（容器 padding 14px）一屏能看到 2 张多一点，
     速度同步放慢，避免卡片一闪而过看不清 */
  .vmarq-item { width: 150px; margin-right: 10px; }
  .vmarq-cap { min-height: 38px; padding: 6px 7px 7px; font-size: 11px; }
  .vmarq-track { animation-duration: 60s; }
  .tool-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tstat { padding: 12px 8px; }
  .tstat strong { font-size: 18px; }
  .tstat span { font-size: 11px; }
  .service-tool { padding: 18px 16px; }
  .tool-row { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .brand-item { padding: 10px 4px; gap: 4px; min-height: 84px; justify-content: center; }
  .brand-item img, .brand-fallback { width: 38px; height: 38px; font-size: 16px; }
  .brand-name { font-size: 13px; }
  .brand-item em { font-size: 11px; }
  .station-card { padding: 14px; }
  .station-hd h4 { font-size: 15px; }
  .station-row { gap: 8px; }
  .s-lbl { width: auto; line-height: 1.6; }
  .s-val { flex-basis: 100%; }
  .s-act { padding: 4px 10px; font-size: 12px; min-height: 32px; }
  .pagination { gap: 8px; }
  .pg-btn { padding: 9px 16px; }

  /* 推广卡 */
  .promo-cars { grid-template-columns: 1fr; }
  .promo-car { grid-template-columns: 1fr; }
  .promo-media { aspect-ratio: 16 / 9; }
  .promo-media img { height: 100%; }
  .promo-body { padding: 16px; }
  .promo-body h4 { font-size: 17px; }
  .promo-actions .btn { min-width: 0; width: 100%; }
  .promo-price strong { font-size: 22px; }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  /* 单列时没有「左右对比对齐」的需求，改回 auto：
     否则每行只有一张卡会被拉到最高那张的高度，内容少的卡片底部留大片空白 */
  .vehicle-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cat-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
  .cta-band h2 { font-size: 21px; }
  .cta-phone { font-size: 25px; }
  .breadcrumb { font-size: 13px; }
  .vmarq-item { width: 132px; margin-right: 8px; }
  .vmarq-cap { font-size: 10.5px; min-height: 36px; }
  .vmarq-tip { display: none; }
}

/* ---------- 极小屏 ---------- */
@media (max-width: 360px) {
  .hero h1 { font-size: 23px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stat strong { font-size: 19px; }
  .cta-phone { font-size: 23px; }
}

/* ---------- 详情页表格：窄屏横向滑动（参数表已在 768px 断点内改卡片式，见下） ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 移动端常驻操作栏（桌面隐藏，≤768 显示） ---------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(16, 32, 48, .08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 46px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    text-align: center; min-width: 0;
  }
  /* 电话 2/5，车型展示与查服务站平分剩余 3/5（各 3/10）；basis 强制 0 防内容撑破 */
  .mb-call    { flex: 4 1 0; background: var(--accent); color: #fff; }
  .mb-call:active { background: var(--accent-dark); }
  .mb-models  { flex: 3 1 0; background: var(--brand); color: #fff; }
  .mb-models:active { background: var(--brand-dark); }
  .mb-service { flex: 3 1 0; background: var(--brand-light); color: #fff; }
  .mb-service:active { background: var(--brand); }
}
/* 窄屏（≤380）三按钮防挤压：字号降一档 */
@media (max-width: 380px) {
  .mobile-bar { gap: 8px; }
  .mobile-bar a { font-size: 13px; gap: 3px; padding: 0 4px; }
}

@media print {
  .header, .footer, .sidebar, .cta-band, .nav { display: none; }
  body { font-size: 12px; }
}

/* ---------- 售后查询：品牌-地区索引（SEO/GEO 可见内容） ---------- */
.seo-index-section { background: var(--bg-2); padding: 48px 0; border-top: 1px solid var(--border); }
.seo-index-section h2 { font-size: 24px; color: var(--brand); margin-bottom: 10px; }
.seo-intro { color: var(--text-2); font-size: 15px; margin-bottom: 22px; max-width: 880px; }
.seo-brand { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.seo-brand > summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
}
.seo-brand > summary::-webkit-details-marker { display: none; }
.seo-brand > summary::after { content: "▾"; color: var(--text-3); transition: transform .2s; flex: none; }
.seo-brand[open] > summary::after { transform: rotate(180deg); }
.seo-brand > summary:hover { background: var(--bg-2); }
.seo-prov { color: var(--text-2); font-size: 14px; margin: 0 20px 4px; }
.seo-note { color: var(--text-3); font-size: 13px; margin: 14px 20px 0; }
.seo-index-section ul.seo-reps { padding: 0 20px 18px; }
.seo-index-section ul.bullets { display: grid; gap: 8px; margin: 10px 0 0; }
.seo-index-section ul.bullets li { position: relative; padding-left: 22px; line-height: 1.6; font-size: 14px; color: var(--text-2); }
.seo-index-section ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.seo-index-section ul.bullets li b { color: var(--text); }
.seo-index-section ul.bullets li a { color: var(--brand-light); font-weight: 600; }

@media (max-width: 768px) {
  .seo-index-section { padding: 32px 0; }
  .seo-index-section h2 { font-size: 20px; }
  .seo-brand > summary { padding: 14px 16px; font-size: 15px; }
  .seo-prov, .seo-note { margin-left: 16px; margin-right: 16px; }
  .seo-index-section ul.seo-reps { padding: 0 16px 16px; }
}

/* ============================================================
   移动端导航遮罩（点任意空白处收起菜单）
   ============================================================ */
.nav-mask {
  display: none; position: fixed; inset: 0;
  background: rgba(10, 16, 24, .45);
  z-index: 99;
}
.nav-mask.show { display: block; }

/* ============================================================
   中老年友好：移动端正文字号上调（客户群体 30-60 岁为主）
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero-lead { font-size: 16px; }
}

/* ============================================================
   暗色模式：自动跟随系统设置（prefers-color-scheme）
   对比度拉满：正文 #E9ECEF on #121519 ≈ 13:1（AA 大幅超标），
   照顾 40-50 岁客户夜间浏览；深蓝底区块（hero/footer）保持不变。
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* 品牌蓝整体提亮一档：暗底上文字/图标可读，按钮白字仍够对比 */
    --brand: #4A84C4;
    --brand-dark: #315F94;
    --brand-light: #7FB2E8;
    --brand-tint: #16283C;
    --accent: #F0A73A;
    --accent-dark: #E8B45F;
    --accent-tint: #3A2F17;

    --text: #E9ECEF;
    --text-2: #C3C9CF;
    --text-3: #99A1A9;
    --bg: #121519;
    --bg-2: #181C21;
    --bg-3: #20252B;
    --surface: #1B2026;
    --border: #2B3138;
    --border-strong: #3C444D;

    --danger: #E06550;
    --success: #35C08F;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow: 0 2px 8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .6);
  }

  /* 深色底上的次级文字再提一档，避免灰底灰字 */
  .topbar, .footer { color: rgba(255, 255, 255, .78); }

  /* 实拍图统一收边，避免白底图片在深色卡片上突兀 */
  .vehicle-card img, .gallery-main img, .gallery-thumbs img,
  .sr-item img, .vmarq-item img {
    background: #fff;
  }

  /* 表格/分隔线在暗色下的柔化 */
  .spec-table th { background: var(--bg-3); }

  /* ============================================================
     资质说明与危险类别芯片（李总反馈：暗色下底色字色相近看不清）
     配色策略：深底 + 亮金/亮红高对比，金调 = 高端感
     对比度：资质说明 ~9:1 / 芯片 ~8:1（浅色模式不受影响）
     ============================================================ */
  .hazard-note {
    background: #2A2110;
    color: #F2C879;
    border-left-color: var(--accent);
  }
  .hazard-note strong { color: #FFD98A; }
  .hazard-chip {
    background: #38181A;
    color: #F5A9A0;
    border-color: #6B2E2E;
  }
  .hazard-chip-sole {
    background: #33260F;
    color: #F2C879;
    border-color: #8A6420;
  }
  .tag-hazard {
    background: #38181A;
    color: #F5A9A0;
    border-color: #6B2E2E;
  }
}

/* ============ 按客户类型选车导购（车型总览/危化列表页） ============ */
.cust-guide { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cust-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 14px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cust-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cust-card strong { font-size: 15px; line-height: 1.4; color: var(--text); }
.cust-card span { font-size: 13px; color: var(--text-2); line-height: 1.55; flex: 1; }
.cust-card em { font-style: normal; font-size: 13px; color: var(--brand); font-weight: 600; }
.cust-guide-tip { margin-top: 14px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.cust-guide-tip strong { color: var(--accent); }
.cust-guide-tip a { color: var(--brand); }
@media (max-width: 1024px) { .cust-guide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cust-guide { grid-template-columns: 1fr; } }

/* ============ 文章内容表格（.a-table，与车型参数表 .spec-table 解耦） ============
   spec-table 的 th{width:34%!important} 是两列参数表专用，多列文章表格套用会分列失衡。 */
.a-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.a-table th, .a-table td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.7; }
.a-table th { background: var(--brand-tint); color: var(--text); font-weight: 600; white-space: nowrap; }
.a-table td { color: var(--text-2); }
.a-table tbody tr:nth-child(even) { background: var(--bg-2); }
.a-table tbody tr:hover { background: var(--brand-tint); }
.a-table td:first-child { color: var(--text); font-weight: 600; }

/* ============ 行业经验文章内嵌产品图网格 ============ */
.fig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.fig-grid figure { margin: 0; }
.fig-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); }
.fig-grid figcaption { margin-top: 6px; font-size: 12.5px; color: var(--text-2); text-align: center; line-height: 1.45; }
@media (max-width: 640px) { .fig-grid { grid-template-columns: 1fr; } .fig-grid img { height: auto; } }

/* ============ 成功案例（与车型展示页刻意差异化） ============
   车型卡 = 卖车（参数）；案例卡 = 证明（谁、什么工况、结果）。
   视觉上用「交付证明」角标 + 顶部橙条 + 结果数据强调，一眼区分于车型卡。 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; grid-auto-rows: 1fr; }
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .2s; display: flex; flex-direction: column;
  height: 100%; width: 100%; min-width: 0;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.case-figure { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.case-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .case-figure img { transform: scale(1.04); }
.case-ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 11px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-sm);
}
.case-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.case-industry {
  align-self: flex-start; font-size: 12px; color: var(--brand); background: var(--brand-tint);
  border: 1px solid #B5D4F4; padding: 2px 10px; border-radius: 100px; margin-bottom: 8px;
}
.case-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(17px * 1.4 * 2); }
.case-body h3 a { color: var(--text); }
.case-body h3 a:hover { color: var(--brand); }
.case-result { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.case-result strong { font-size: 19px; color: var(--accent); font-weight: 700; line-height: 1.2; }
.case-result span { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.case-summary { font-size: 14px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 详情页 */
.case-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-bottom: 8px; }
.case-hero .case-figure { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.case-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.case-meta-row { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.case-meta-row:last-child { border-bottom: 0; }
.cm-label { flex: 0 0 72px; color: var(--text-3); }
.cm-val { flex: 1; color: var(--text); }
.cm-val.case-metric { color: var(--accent); font-weight: 700; font-size: 18px; }
.case-block { margin: 30px 0; }
.case-block h2 {
  font-size: 20px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.3;
}
.case-block p { font-size: 15.5px; color: var(--text-2); line-height: 1.85; margin: 0; }

/* 本次交付车型（二级块，链接回车型详情页） */
.case-vehicle .cv-card {
  display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.case-vehicle .cv-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.cv-thumb { flex: 0 0 120px; }
.cv-thumb img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-3); }
.cv-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cv-info strong { font-size: 16px; color: var(--text); }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-link { font-size: 13.5px; color: var(--brand); font-weight: 600; }
.case-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 8px; }

/* 真实成交凭证：整车合格证 / 转账记录 / 交车验收证明 */
.case-evidence .ce-note { color: var(--text-2); font-size: .9rem; margin: 0 0 14px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.evidence-item {
  position: relative; margin: 0; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.evidence-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 4px; letter-spacing: .5px;
}
.evidence-img { display: block; cursor: zoom-in; }
.evidence-img img { width: 100%; height: auto; display: block; background: var(--bg-3); }
.evidence-item figcaption { padding: 10px 12px; font-size: .85rem; color: var(--text-2); border-top: 1px solid var(--border); line-height: 1.5; }
.evidence-item.is-pay { border-color: var(--accent); }
.evidence-mask {
  display: block; padding: 8px 12px; font-size: .76rem; line-height: 1.5;
  color: #8a5a00; background: #fff7e6; border-top: 1px solid #ffe0a3;
}
@media (prefers-color-scheme: dark) {
  .evidence-mask { color: #ffcf80; background: rgba(255,180,0,.12); border-top-color: rgba(255,180,0,.3); }
}
@media (max-width: 640px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .case-hero { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cm-label { flex-basis: 64px; }
  .cv-thumb { flex-basis: 92px; }
  .cv-thumb img { width: 92px; height: 70px; }
}
