/* ============================================================
   九号全系百科 —— 全局样式
   主题：暗色科技风 + 九号红
   ============================================================ */
:root {
  --bg: #0b0e14;
  --bg-2: #10141d;
  --card: #151b27;
  --card-2: #1a2230;
  --line: #232c3d;
  --text: #e8ecf3;
  --muted: #8b94a7;
  --accent: #ff2d3f;        /* 九号红 */
  --accent-2: #ff5f6d;
  --accent-dim: rgba(255, 45, 63, .14);
  --ok: #2fd46b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "PingFang SC", "HarmonicOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3448; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a4660; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px;
  letter-spacing: .5px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted);
  font-size: 14.5px; font-weight: 500; transition: .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.active { color: #fff; background: var(--accent-dim); }
.nav-burger { display: none; background: none; border: 0; color: var(--text); font-size: 22px; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input[type=text], .field input[type=password], .field select, .field textarea {
  width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; color: var(--text); font-size: 14.5px; outline: none; font-family: inherit; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.form-msg { font-size: 13.5px; min-height: 20px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent-2); }

/* 上传图片预览 */
.img-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.img-item { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; }

/* ---------- 管理后台 ---------- */
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.review-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 18px; }
.review-card + .review-card { margin-top: 14px; }
.r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.r-type { font-size: 12.5px; font-weight: 700; color: #9db8ff; background: rgba(70,110,255,.15); padding: 3px 10px; border-radius: 999px; }
.r-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.st-pending { color: #ffd977; background: rgba(255,217,119,.14); }
.st-approved { color: var(--ok); background: rgba(47,212,107,.12); }
.st-rejected { color: var(--accent-2); background: var(--accent-dim); }
.st-off { color: #9aa7bd; background: rgba(139,148,167,.15); }
.review-card h3 { font-size: 16.5px; margin: 4px 0; }
.r-vehicle { font-size: 13px; color: var(--muted); }
.r-content { font-size: 13.5px; color: var(--text); opacity: .9; margin: 8px 0; white-space: pre-wrap; }
.r-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.r-imgs a { display: block; width: 120px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.r-imgs img { width: 100%; height: 100%; object-fit: cover; transition: .2s; }
.r-imgs a:hover img { transform: scale(1.05); }
.r-meta { font-size: 12px; color: var(--muted); }
.r-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.r-note { flex: 1; min-width: 180px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 13px; outline: none; }
.r-vehicle-select { min-width: 170px; max-width: 240px; cursor: pointer; }
.r-vehicle-select option { background: var(--card-2); color: var(--text); }
.r-vehicles { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.r-veh { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: .15s; user-select: none; }
.r-veh:hover { border-color: var(--accent); }
.r-veh input { accent-color: var(--accent); cursor: pointer; }
.r-veh:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-2); }
.r-pin { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; padding: 8px 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; }
.r-pin input { accent-color: var(--accent); cursor: pointer; }
.r-pin:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.pin-section { margin-bottom: 28px; }
.shop-group { margin-bottom: 28px; }

/* ---------- 实时访问记录 ---------- */
.visits-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.visits-total { font-size: 13px; color: var(--muted); }
.visits-wrap { overflow-x: auto; }
.visits-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.visits-table th, .visits-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.visits-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.visits-table td.v-path { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.visits-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* 车辆图集管理 */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-top: 12px; }
.gm-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card-2); }
.gm-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gm-src { font-size: 11.5px; color: var(--muted); padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-hint { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* 配件商品网格：电脑 3 个一排，平板 2 个，手机竖着 1 列 */
.g-acc3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g-acc3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-acc3 { grid-template-columns: 1fr; } }

/* 商品横向排列（可左右滑动） */
.hrow { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.hrow .a-card { flex: 0 0 250px; scroll-snap-align: start; }
.hrow::-webkit-scrollbar { height: 8px; }
.hrow::-webkit-scrollbar-thumb { background: #2a3448; border-radius: 6px; }

/* 商家卡片（一个商家一张卡，店内多件商品） */
.shop-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; margin-bottom: 20px; }
.shop-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 17px; font-weight: 800; background: var(--card-2); border-bottom: 1px solid var(--line); }
.shop-head .count { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.shop-goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; padding: 14px 18px 18px; }
.good { display: flex; gap: 12px; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card-2); min-width: 0; }
.good-img { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.good-img img { width: 100%; height: 100%; object-fit: cover; }
.good-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.good-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.good-info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.good-btn { align-self: flex-start; margin-top: auto; }

/* ---------- 投稿展示 ---------- */
.sub-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; aspect-ratio: 16/10; }
.sub-imgs a { display: block; overflow: hidden; }
.sub-imgs a:only-child { grid-column: 1 / -1; }
.sub-imgs img { width: 100%; height: 100%; object-fit: cover; transition: .25s; }
.sub-imgs a:hover img { transform: scale(1.04); }

/* ---------- 诈骗小曲全屏（rickroll） ---------- */
.rickroll { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; align-items: center; justify-content: center; }
.rr-inner { width: min(92vw, 900px); text-align: center; }
.rr-title { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.rr-inner iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.rr-close { margin-top: 16px; }

/* ---------- 主页购买提醒 ---------- */
.home-notice {
  background: linear-gradient(90deg, #3a2a05, #4a340a);
  color: #ffd977; border: 1px solid rgba(255, 217, 119, .3);
  border-radius: 12px; padding: 12px 18px; font-size: 13.5px; line-height: 1.6;
}
.home-notice b { color: #ffe9a8; }
.home-notice .notice-sub { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255, 217, 119, .25); font-size: 12.5px; color: rgba(255, 217, 119, .8); }

/* ---------- 警示条 ---------- */
.warn-bar {
  background: linear-gradient(90deg, #3a2a05, #4a340a);
  color: #ffd977; border-bottom: 1px solid rgba(255, 217, 119, .25);
  padding: 10px 20px; font-size: 13.5px; text-align: center; line-height: 1.6;
}
.warn-bar b { color: #ffe9a8; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 70px; border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 34px 20px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13.5px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent-2); }

/* ---------- 布局容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0 8px; }
.section-title {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px;
}
.section-title h2 { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.section-title .en { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.section-title .more { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.section-title .more:hover { color: var(--accent-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 70px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 45, 63, .18), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(45, 120, 255, .10), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 400px at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--accent-dim); color: var(--accent-2); border: 1px solid rgba(255,45,63,.3);
  margin-bottom: 20px; font-weight: 600;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 900; line-height: 1.15; letter-spacing: 1px; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 640px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 38px; }
.hero-stats .stat b { display: block; font-size: 28px; font-weight: 800; color: var(--text); }
.hero-stats .stat span { font-size: 13px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 0;
  font-size: 15px; font-weight: 700; transition: .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255,45,63,.35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.g-cat { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.g-card { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g-vehicle { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.g-acc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- 分类卡片 ---------- */
.cat-card {
  position: relative; padding: 18px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: .25s; overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(255,45,63,.5); box-shadow: var(--shadow); }
.cat-card .icon { font-size: 26px; }
.cat-card h3 { margin: 10px 0 5px; font-size: 16px; }
.cat-card p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cat-card .count {
  margin-top: 10px; display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--accent-2); background: var(--accent-dim);
  padding: 3px 10px; border-radius: 999px;
}
/* 旗舰车型入口卡片 */
.flag-card { border-color: rgba(255,180,32,.55); background: linear-gradient(135deg, rgba(255,180,32,.10), rgba(255,45,63,.06) 60%); }
.flag-card h3 { color: var(--gold, #f5b942); }
.flag-card .count { color: #f5b942; background: rgba(255,180,32,.14); }

/* ---------- 系列分组（系列页：系列标题 + 车型卡片） ---------- */
.sub-block { margin-bottom: 34px; }
.sub-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sub-title h3 { font-size: 19px; font-weight: 800; }
.sub-title .tag {
  font-size: 11.5px; font-weight: 700; color: var(--accent-2);
  background: var(--accent-dim); padding: 3px 10px; border-radius: 999px;
}
.sub-title .count { font-size: 12.5px; color: var(--muted); }
.sub-desc { color: var(--muted); font-size: 13.5px; margin: -6px 0 14px; }

/* ---------- 系列卡片 ---------- */
.series-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: .25s;
}
.series-card:hover { transform: translateY(-4px); border-color: rgba(255,45,63,.5); box-shadow: var(--shadow); }
.series-card .row { display: flex; align-items: center; gap: 10px; }
.series-card h3 { font-size: 18px; }
.series-card .tag {
  font-size: 11.5px; font-weight: 700; color: var(--accent-2);
  background: var(--accent-dim); padding: 3px 10px; border-radius: 999px;
}
.series-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.series-card .models { color: var(--text); font-size: 12.5px; opacity: .85; }
.series-card .go { color: var(--accent); font-size: 13px; font-weight: 700; }

/* ---------- 车辆卡片 ---------- */
.v-card {
  border-radius: var(--radius); overflow: hidden; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  transition: .25s; display: flex; flex-direction: column;
}
.v-card:hover { transform: translateY(-4px); border-color: rgba(255,45,63,.5); box-shadow: var(--shadow); }
.v-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.v-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.v-card:hover .thumb img { transform: scale(1.04); }
.v-card .thumb .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 4px 12px; border-radius: 999px;
}
.v-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.v-card h3 { font-size: 17px; }
.v-card .tagline { color: var(--muted); font-size: 13px; }
.v-card .specs-line { display: flex; flex-wrap: wrap; gap: 6px; }
.v-card .specs-line span {
  font-size: 12px; color: var(--muted);
  background: var(--card-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.v-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.v-card .price { color: var(--accent-2); font-weight: 800; font-size: 17px; }
.v-card .price .notsale { color: #ffb020; font-size: 14.5px; font-weight: 800; }
.v-card .price small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- 配件卡片 ---------- */
.a-card {
  border-radius: var(--radius); overflow: hidden; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  transition: .25s; display: flex; flex-direction: column;
}
.a-card:hover { transform: translateY(-4px); border-color: rgba(255,45,63,.5); box-shadow: var(--shadow); }
.a-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.a-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.a-card .cat-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #9db8ff;
  background: rgba(70, 110, 255, .15); padding: 3px 10px; border-radius: 999px;
}
.a-card h3 { font-size: 16px; }
.a-card p { color: var(--muted); font-size: 13px; flex: 1; }
.a-card .foot { display: flex; justify-content: space-between; align-items: center; }
.a-card .price { color: var(--accent-2); font-weight: 800; }

/* ---------- 徽章 / 标签 ---------- */
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--line);
  transition: .2s; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.chip.flag-chip { color: #f5b942; border-color: rgba(255,180,32,.5); }
.chip.flag-chip.on { color: #fff; background: #f5b942; border-color: #f5b942; }

/* ---------- 面包屑 ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding: 22px 0 4px; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs .sep { opacity: .5; }
.crumbs .now { color: var(--text); font-weight: 600; }

/* ---------- 详情页 ---------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: 1px; }
.page-head .tagline { color: var(--muted); font-size: 16px; margin-top: 8px; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 26px; margin-top: 22px; }
@media (max-width: 920px) { .detail-grid { grid-template-columns: 1fr; } }

/* 图集 */
.gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery .main { aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.g-source { padding: 8px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); min-height: 20px; }
.gallery-empty { aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px; }
.gallery-empty .big { font-size: 40px; }
.gallery .thumbs { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.gallery .thumbs img { width: 130px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .65; transition: .2s; }
.gallery .thumbs img.on { border-color: var(--accent); opacity: 1; }

/* 大图全屏查看 */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 94vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 16px; right: 24px; font-size: 28px; color: #fff; cursor: pointer; line-height: 1; }

/* ---------- 九号黑卡标牌（黑底金字） ---------- */
.blackcard {
  display: inline-block; vertical-align: middle;
  background: #000; color: #ffd977;
  border: 1px solid #b8963e;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 4px; margin-left: 8px;
  box-shadow: 0 0 8px rgba(255, 217, 119, .25);
}
/* 专属卡标牌（金色渐变） */
.special-card {
  display: inline-block; vertical-align: middle;
  background: linear-gradient(135deg, #5a3d00, #b8860b 50%, #5a3d00);
  color: #ffe9a8;
  border: 1px solid #ffd977;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 4px; margin-left: 8px;
  box-shadow: 0 0 8px rgba(255, 217, 119, .3);
}

/* ---------- 车辆对比 ---------- */
.cmp-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 20px; }
@media (max-width: 900px) { .cmp-picker { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cmp-picker { grid-template-columns: 1fr; } }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; vertical-align: middle; }
.cmp-table th { background: var(--card-2); }
.cmp-table .cmp-label { text-align: left; color: var(--muted); width: 110px; background: var(--card-2); font-weight: 600; white-space: nowrap; }
.cmp-table td.diff { color: #ffd977; background: rgba(255,176,32,.1); font-weight: 700; }
.cmp-v img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.cmp-add { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(0,0,0,.55); border: 1px solid var(--line); color: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; transition: .2s; }
.cmp-add:hover { background: var(--accent); }
.cmp-add.on { background: var(--accent); border-color: var(--accent); }
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: rgba(16,20,29,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 20px; display: none; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 -8px 24px rgba(0,0,0,.4); }
.cb-label { font-size: 13.5px; color: var(--muted); }
.cb-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); background: var(--accent-dim); border: 1px solid rgba(255,45,63,.35); border-radius: 999px; padding: 4px 10px; }
.cb-del { background: none; border: 0; color: var(--accent-2); cursor: pointer; font-size: 12px; }

/* ---------- 暂不开售地区提示 ---------- */
.restriction-box { border-radius: 12px; border: 1px solid rgba(255,176,32,.45); background: rgba(255,176,32,.08); padding: 14px 16px; margin-bottom: 18px; }
.restriction-box b { color: #ffb020; font-size: 14px; }
.restriction-box p { color: var(--text); font-size: 13px; margin-top: 8px; white-space: pre-line; opacity: .92; }

/* ---------- 安全警示 ---------- */
.warn-box { border-radius: 12px; border: 1px solid rgba(255,176,32,.5); background: rgba(255,176,32,.08); padding: 12px 16px; margin-top: 18px; }
.warn-inner b { color: #ffb020; font-size: 14px; }
.warn-inner p { color: var(--text); font-size: 13px; margin-top: 6px; line-height: 1.7; opacity: .92; }

/* ---------- 门店清单 ---------- */
.store-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.store-note { background: rgba(255,176,32,.06); border: 1px solid rgba(255,176,32,.25); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.store-note p { font-size: 12.5px; color: var(--text); opacity: .9; margin: 4px 0; line-height: 1.6; }
.store-count { font-size: 13px; font-weight: 700; color: var(--accent-2); margin: 10px 0 6px; }
.store-details { border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.store-details summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.store-list { padding: 4px 14px 14px; max-height: 420px; overflow-y: auto; }
.store-prov { margin-bottom: 12px; }
.store-prov > b { font-size: 14px; color: var(--text); display: block; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.store-city { margin: 6px 0; }
.store-city .city { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent-2); background: var(--accent-dim); padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.store-city ul { margin: 2px 0 0; padding-left: 4px; list-style: none; }
.store-city li { font-size: 12.5px; color: var(--text); opacity: .9; padding: 3px 0; }

/* 信息面板 */
.panel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }

.price-box { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price-box .price { font-size: 30px; font-weight: 900; color: var(--accent-2); }
.price-box small { color: var(--muted); font-size: 12.5px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 10px 4px; }
.spec-table td:first-child { color: var(--muted); width: 40%; font-size: 13px; }
.spec-table td:last-child { font-weight: 600; }

/* 说明书 */
.manual-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card-2); border: 1px dashed var(--line);
  border-radius: 12px; padding: 16px;
}
.manual-box .icon { font-size: 28px; }
.manual-box p { font-size: 13.5px; color: var(--muted); }
.manual-box a.btn { margin-top: 10px; }

/* 适配配件 */
.acc-mini {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card-2); transition: .2s;
}
.acc-mini:hover { border-color: rgba(255,45,63,.5); transform: translateY(-2px); }
.acc-mini img { width: 74px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.acc-mini .info { min-width: 0; }
.acc-mini .info b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-mini .info span { font-size: 12.5px; color: var(--muted); }
.acc-mini .arrow { margin-left: auto; color: var(--accent); font-weight: 800; }

/* ---------- 改装前后对比滑块 ---------- */
.ba-wrap { margin-top: 8px; }
.ba {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); user-select: none;
  touch-action: pan-y; cursor: ew-resize;
}
.ba .layer { position: absolute; inset: 0; }
.ba .layer img { width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--p, 50%)); }
.ba .label {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: rgba(0,0,0,.55); color: #fff;
}
.ba .label.before { left: 12px; }
.ba .label.after { right: 12px; }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--p, 50%);
  width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,.6); pointer-events: none;
}
.ba .handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.ba-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

.effect-box { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .effect-box { grid-template-columns: 1fr; } }
.effect-item { border-radius: 12px; padding: 16px; border: 1px solid var(--line); background: var(--card-2); }
.effect-item.before { border-left: 3px solid #6b7689; }
.effect-item.after { border-left: 3px solid var(--accent); }
.effect-item h4 { font-size: 14px; margin-bottom: 6px; }
.effect-item.before h4 { color: var(--muted); }
.effect-item.after h4 { color: var(--accent-2); }
.effect-item p { font-size: 13.5px; color: var(--text); opacity: .9; }

/* 兼容列表 */
.compat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.compat-chips a {
  font-size: 12.5px; color: var(--muted); padding: 5px 12px;
  border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); transition: .2s;
}
.compat-chips a:hover { color: var(--accent-2); border-color: var(--accent); }

/* ---------- 投稿成功查询码卡片 ---------- */
.success-card { margin-top: 12px; border: 1px solid rgba(47,212,107,.5); background: rgba(47,212,107,.08); border-radius: 12px; padding: 14px 16px; }
.sc-title { font-weight: 800; font-size: 15px; color: var(--ok); }
.sc-code { font-size: 17px; font-weight: 800; color: #fff; background: rgba(0,0,0,.45); padding: 12px 14px; border-radius: 8px; margin: 10px 0 6px; word-break: break-all; letter-spacing: 1px; font-family: Consolas, monospace; }
.sc-hint { font-size: 12.5px; color: var(--muted); }
.success-card.flash { animation: successFlash 1s ease 3; }
@keyframes successFlash {
  0%, 100% { box-shadow: 0 0 0 rgba(47,212,107,0); }
  50% { box-shadow: 0 0 22px rgba(47,212,107,.6); }
}

/* ---------- 首页搜索框 ---------- */
.hero-search { margin-top: 30px; }
.hero-search input {
  flex: 1; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; color: var(--text); font-size: 15px;
  outline: none; transition: .2s;
}
.hero-search input:focus { border-color: var(--accent); }
.hero-search input::placeholder { color: var(--muted); }

/* ---------- 搜索框 ---------- */
.search-box {
  display: flex; gap: 10px; margin: 26px 0 8px;
  max-width: 520px;
}
.search-box input {
  flex: 1; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; color: var(--text); font-size: 15px;
  outline: none; transition: .2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--muted); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 10px; }

/* ---------- 提示条 ---------- */
.note {
  background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--muted);
}
.note b { color: var(--text); }
.note.warn-red {
  border: 1px solid rgba(255,45,63,.5); border-left: 4px solid var(--accent);
  background: rgba(255,45,63,.09); color: #ffb3ba;
}
.note.warn-red b { color: #ff6b7a; }

/* ---------- 骨架屏/淡入 ---------- */
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(11, 14, 20, .97); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-burger { display: block; margin-left: auto; }
  .hero { padding: 60px 0 44px; }
  .section { padding: 40px 0 4px; }
}
