/* ==========================================================================
   车之驿名车汇 — 设计系统
   深色奢华：墨黑底 + 香槟金 + 玻璃拟态 + 衬线标题
   ========================================================================== */
:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --bg-3: #11141b;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f6f8fc;
  --text-2: #d8dde8;
  --muted: #a2abbb;
  --gold: #d8b56a;
  --gold-2: #f2e2b4;
  --gold-3: #a8813a;
  --gold-dim: rgba(216, 181, 106, .12);
  --ok: #46c08a;
  --warn: #e0a44f;
  --danger: #e0584f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(216, 181, 106, .10), transparent 60%),
    radial-gradient(900px 500px at 5% 8%, rgba(90, 120, 200, .07), transparent 60%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
p { margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0b0d11; }
::-webkit-scrollbar-thumb { background: #262b35; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }

.wrap { width: min(1320px, 100% - 44px); margin: 0 auto; position: relative; z-index: 1; }
.mt0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrapf { flex-wrap: wrap; }
.grow { flex: 1; }
.tar { text-align: right; }

/* ---------- 通用文字 ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.sec-title { font-size: 26px; margin: 6px 0 4px; }
.sec-sub { color: var(--muted); font-size: 13.5px; }
.hairline { height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); margin: 26px 0; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 8, 11, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--gold-2), var(--gold-3));
  color: #17130a; font-family: var(--serif); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(216, 181, 106, .26);
}
.logo-txt { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; }
.logo-sub { font-size: 10px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-size: 14px;
  transition: .2s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on { color: var(--gold); background: var(--gold-dim); }
.topbar .cta { flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: #191204;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: .18s;
  box-shadow: 0 8px 24px rgba(216, 181, 106, .2); white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: var(--panel); color: var(--text); border-color: var(--line-2); box-shadow: none;
}
.btn.ghost:hover { background: var(--panel-2); border-color: var(--gold); color: var(--gold-2); }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn.xs { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; border-color: rgba(224, 88, 79, .5); color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: rgba(224, 88, 79, .12); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.input, select.input, textarea.input {
  width: 100%; background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 13px; transition: .18s; outline: none;
}
.input:focus { border-color: var(--gold); background: rgba(216, 181, 106, .07); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select.input option { background: #14171e; }
textarea.input { min-height: 88px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- 芯片 / 徽章 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel); font-size: 13px; cursor: pointer; transition: .18s; color: var(--text-2);
  user-select: none;
}
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chip.on { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-2); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; letter-spacing: .04em; border: 1px solid var(--line-2); color: var(--text-2);
}
.badge.gold { border-color: var(--gold); color: var(--gold-2); background: var(--gold-dim); }
.badge.ok { border-color: rgba(70, 192, 138, .5); color: var(--ok); background: rgba(70, 192, 138, .1); }
.badge.warn { border-color: rgba(224, 164, 79, .5); color: var(--warn); background: rgba(224, 164, 79, .1); }
.badge.dim { color: var(--muted); }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11.5px;
  background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line);
}

/* ---------- 首页 hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
/* 首屏真实车照（失败自动移除，回落到渐变 + SVG 侧影） */
.hero .hero-photo-lg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero .hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 11, .96) 0%, rgba(7, 8, 11, .90) 40%, rgba(7, 8, 11, .52) 76%, rgba(7, 8, 11, .68) 100%);
}
.hero-inner { padding: 82px 0 62px; position: relative; }
/* hero / 详情页压在照片上的标签，改实底 + 金字保证可读 */
.hero .eyebrow, .hero-car .cap .eyebrow {
  background: rgba(7, 8, 11, .66); backdrop-filter: blur(8px);
  border-color: rgba(216, 181, 106, .42); color: var(--gold-2);
}
.hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.12; margin: 16px 0 14px; text-shadow: 0 2px 22px rgba(0, 0, 0, .8); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 16px; color: var(--text-2); max-width: 620px; text-shadow: 0 1px 14px rgba(0, 0, 0, .85); }
.hero-stats { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .v { font-family: var(--num); font-size: 30px; color: var(--gold-2); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero-stats .k { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

/* ---------- 首屏「你的收藏」轮播（静默运行，不显示提示条） ---------- */
.hero .hero-photo-lg { transition: opacity 1.1s ease; }
.hero .hero-photo-alt { opacity: 0; }

/* ---------- 筛选栏 ---------- */
.filterbar {
  /* 贴到视口顶端吸顶（原来是 top:66px，会在上方留一条缝，
     页面内容会从那道缝里滚过去，看起来像"穿到搜索栏后面"） */
  position: sticky; top: 0; z-index: 50; padding: 14px 0;
  /* 完全不透明：内容滚到下面不会透出来 */
  background: #0a0b10;
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55);
}
.filterbar .lines { display: flex; flex-direction: column; gap: 11px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 操作行：搜索 / 重置筛选（放在所有筛选条件之后） */
.filter-row.filter-actions { gap: 9px; margin-top: 1px; }
.filter-row.filter-actions .search-btn { height: 38px; }
.filter-row .lbl { font-size: 12px; color: var(--muted); letter-spacing: .08em; min-width: 54px; }
/* 搜索框别铺满整行，固定一个舒服的宽度（原 flex:1 1 260px 会拉得很长） */
.searchbox { position: relative; flex: 0 1 380px; min-width: 200px; max-width: 380px; }
.searchbox .input { padding-left: 36px; padding-right: 36px; }
.searchbox .input:focus {
  border-color: rgba(216, 181, 106, .65);
  box-shadow: 0 0 0 3px rgba(216, 181, 106, .13);
}
/* 隐藏浏览器自带 search 清除按钮（用自定义的 × ） */
.searchbox .input::-webkit-search-cancel-button,
.searchbox .input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-btn { flex: none; height: 40px; padding: 0 17px; font-weight: 600; letter-spacing: .04em; }
.searchbox .search-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: var(--text-2);
  font-size: 14px; line-height: 1; display: grid; place-items: center; padding: 0;
}
.searchbox .search-clear:hover { background: rgba(216, 181, 106, .38); color: #17130a; }
/* 放大镜：做成真按钮（原来是纯装饰，点了没反应） */
.searchbox .search-ico {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; padding: 0; border: none; background: none; border-radius: 6px;
  color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 1;
}
.searchbox .search-ico:hover { color: var(--gold); background: rgba(216, 181, 106, .14); }
/* 非首次加载：保持网格高度不变，只轻微变暗 —— 用骨架屏会让网格变矮，触发滚动锚定导致整页跳动 */
.grid.loading { opacity: .5; transition: opacity .15s; pointer-events: none; }
/* 搜索完成：标题闪一下，给出明确反馈 */
#count-title.flash { animation: cntflash 1.1s ease; }
@keyframes cntflash {
  0% { color: var(--gold-2); text-shadow: 0 0 26px rgba(216, 181, 106, .6); }
  100% { color: var(--text); text-shadow: none; }
}
/* ---------- 状态胶囊：已销售 / 预订 / 已下架 ---------- */
.st-pill {
  display: inline-block; font-size: 10.5px; font-weight: 400; letter-spacing: .04em;
  padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, .04);
}
.st-pill.st-sold { border-color: rgba(216, 181, 106, .6); color: var(--gold-2); background: rgba(216, 181, 106, .12); }
.st-pill.st-book { border-color: rgba(70, 192, 138, .55); color: #8fe0b8; background: rgba(70, 192, 138, .10); }
.st-pill.st-off { border-color: rgba(255, 255, 255, .18); color: var(--muted); background: rgba(255, 255, 255, .03); }
/* 无库存分类：入口保留但置灰，右侧显示「无库存」 */
.nav-list li.is-out { opacity: .55; }
.nav-list li.is-out em,
.nav-list li.is-out .nav-txt { color: var(--muted); }
.nav-list li.is-out em { font-size: 10.5px; letter-spacing: .02em; }
.nav-list li.is-out:hover { opacity: .85; }
.chk.is-out { opacity: .55; }
.chk.is-out em { font-size: 10.5px; color: var(--muted); }
.empty b { color: var(--gold-2); font-size: 16px; }

/* 车型页：大图左侧多角度缩略图（京东样式——独立一列、竖排、点选替换大图）
   尺寸按「5 张正好填满大图高度(380px)」配：78px 宽 × 5 + 间距 = 约 373px，
   所以 5 张时不出现滚动条；以后视图变多才会自动可滚动。 */
.hero-wrap { display: flex; gap: 12px; align-items: flex-start; }
.hero-wrap .hero-car { flex: 1 1 auto; min-width: 0; }
.hero-thumbs {
  flex: 0 0 auto; width: 78px; max-height: 380px;   /* 与大图等高 */
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; padding-right: 2px;
}
.hero-thumbs::-webkit-scrollbar { width: 5px; }
.hero-thumbs::-webkit-scrollbar-thumb { background: rgba(216, 181, 106, .35); border-radius: 99px; }
.hero-thumbs::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); border-radius: 99px; }
.hero-thumbs[hidden] { display: none; }
.hero-thumb {
  width: 100%; flex: 0 0 auto; padding: 0; cursor: pointer; overflow: hidden; display: block;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; background: #0a0b10;
  transition: border-color .18s, transform .18s;
}
.hero-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-thumb span {
  display: block; font-size: 10px; text-align: center; padding: 2px 0 2px;
  color: var(--muted); letter-spacing: .02em;
}
.hero-thumb:hover { border-color: rgba(216, 181, 106, .55); transform: translateY(-2px); }
.hero-thumb.on { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(216, 181, 106, .45); }
.hero-thumb.on span { color: var(--gold-2); }
.hero-car .hero-photo { transition: opacity .16s ease; }
@media (max-width: 900px) {
  /* 手机上竖列会太窄：缩略图移到大图下方，改一行可横滑（宽度必须钉死，否则会撑破页面） */
  .hero-wrap { flex-direction: column-reverse; gap: 8px; }
  .hero-wrap .hero-car { width: 100%; }
  .hero-thumbs {
    flex-direction: row; width: 100%; max-width: 100%; max-height: none;
    overflow-x: auto; overflow-y: hidden; padding: 0 0 6px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .hero-thumb { width: 72px; flex: 0 0 auto; }
}

/* 车型页大图下的实拍说明（诚实标注，避免颜色/选装误导） */
.hero-car .photo-note {
  position: absolute; right: 14px; bottom: 12px; z-index: 3;
  font-size: 11.5px; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px;
  background: rgba(7, 8, 11, .78); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--muted); backdrop-filter: blur(6px);
}
.hero-car .photo-note b { color: var(--gold-2); font-weight: 600; }

/* 外观颜色小标签（来自配置单） */
.color-chip {
  display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); color: var(--text-2); background: rgba(255, 255, 255, .05);
}
/* 已售/下架的车：照片略降饱和，一眼可辨，但仍可点进详情 */
.card.is-sold .card-photo { filter: grayscale(.5) brightness(.9); }
.card.is-sold .card-title { color: var(--text-2); }
/* 车型详情 hero 上的状态牌（已销售 / 已下架） */
.hero-car .sold-flag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 13px; letter-spacing: .1em; padding: 5px 15px; border-radius: 999px;
  background: rgba(7, 8, 11, .82); border: 1px solid rgba(216, 181, 106, .7); color: var(--gold-2);
  backdrop-filter: blur(6px); text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.btn.off {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  color: var(--muted); cursor: not-allowed; box-shadow: none; pointer-events: none;
}

/* 价格滑块：50 万 ~ 5000 万，每 50 万一档，右滑到底 = 不限 */
.price-slider { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-slider input[type=range] {
  width: 180px; height: 22px; accent-color: var(--gold); cursor: pointer;
  background: transparent; flex: 0 0 auto;
}
.price-slider .ps-val {
  font-family: var(--num); font-size: 14px; color: var(--gold-2);
  min-width: 76px; text-align: center; padding: 4px 10px; border-radius: 8px;
  border: 1px solid rgba(216, 181, 106, .35); background: rgba(216, 181, 106, .10);
}
.price-slider .ps-quick { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.price-slider .ps-quick i {
  font-style: normal; font-size: 11.5px; color: var(--muted); cursor: pointer;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); transition: .16s;
}
/* ---------- 价格档位：一排胶囊按钮 ---------- */
.price-quick { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-quick i {
  font-style: normal; cursor: pointer; user-select: none;
  font-size: 12.5px; line-height: 1.5; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--panel);
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.price-quick i:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-dim); }
.price-quick i.on {
  background: linear-gradient(140deg, var(--gold-2), var(--gold-3));
  color: #1a1408; border-color: transparent; font-weight: 600;
  box-shadow: 0 3px 10px rgba(216, 181, 106, .28);
}
.price-slider .ps-quick i:hover { border-color: rgba(216, 181, 106, .5); color: var(--gold-2); }
.price-slider .ps-quick i.on { border-color: var(--gold); background: rgba(216, 181, 106, .16); color: var(--gold-2); }

/* 细致筛选：复选框 */
.filter-extra .lbl-2 { min-width: 0; margin-left: 10px; }
.checks { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; padding: 1px 0; }
.chk {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  padding: 5px 11px 5px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 12.5px; color: var(--text-2);
  transition: border-color .16s, background .16s, color .16s;
}
.chk:hover { border-color: rgba(216, 181, 106, .5); color: var(--text); }
.chk em { font-style: normal; font-size: 11px; color: var(--muted); font-family: var(--num); }
.chk input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; position: relative;
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
}
.chk input:checked { background: var(--gold); border-color: var(--gold); }
.chk input:checked::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #17130a; line-height: 1;
}
.chk:has(input:checked) { border-color: var(--gold); background: rgba(216, 181, 106, .16); color: var(--gold-2); font-weight: 600; }
.chk:has(input:checked) em { color: var(--gold); }

.range-wrap { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.range-wrap input[type=range] { width: 108px; accent-color: var(--gold); }
.cmp-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--gold); color: #17130a; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

/* ---------- 详情页：年款切换 ---------- */
.year-switch {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.year-switch .ys-lbl { font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.ys-item {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: .18s;
}
.ys-item b { font-family: var(--num); font-size: 15px; color: var(--text); }
.ys-item em { font-style: normal; font-size: 12.5px; color: var(--gold); }
.ys-item i { font-style: normal; font-size: 11px; color: var(--muted); }
.ys-item:hover { border-color: rgba(216, 181, 106, .5); background: rgba(216, 181, 106, .10); }
.ys-item.on { border-color: var(--gold); background: rgba(216, 181, 106, .18); }
.ys-item.on b { color: var(--gold-2); }

/* 详情页「9 个配置选项卡」已下线（选配置改到列表页车系卡上做），
   相关 .trim-switch / .ts-* 样式随之移除；需要时从 git 历史恢复。 */

/* ---------- 车型页右栏：配置清单（随配置切换） ---------- */
.trim-detail .td-group { margin-bottom: 13px; }
.trim-detail .td-group:last-child { margin-bottom: 0; }
.trim-detail .td-g {
  font-size: 11.5px; letter-spacing: .12em; color: var(--gold-2);
  margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
.trim-detail .td-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.trim-detail .td-list li {
  font-size: 12.5px; color: var(--text-2); line-height: 1.55;
  padding-left: 13px; position: relative;
}
.trim-detail .td-list li::before {
  content: ''; position: absolute; left: 3px; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .8;
}
/* 装备项：项目文字靠左 + 点线引导 + 价格靠右（比原来「名字 · 价格」挤一行清楚得多） */
.trim-detail .td-list li.td-row {
  display: flex; align-items: baseline; gap: 9px;
  padding: 3px 0; padding-left: 0;
}
.trim-detail .td-list li.td-row::before { display: none; }
.trim-detail .td-name { flex: 0 1 auto; }
.trim-detail .td-lead {
  flex: 1 1 auto; min-width: 18px; align-self: center;
  border-bottom: 1px dotted rgba(255, 255, 255, .14);
}
.trim-detail .td-price {
  flex: 0 0 auto; white-space: nowrap; font-family: var(--num);
  font-variant-numeric: tabular-nums; color: var(--gold-2); font-size: 12.5px;
}
.trim-detail .td-price.is-std { color: var(--muted); font-family: var(--sans); font-size: 12px; }
/* 价格明细：名—值两列，末行（整车总价）加重 */
.trim-detail .td-sum td:last-child { color: var(--gold-2); text-align: right; }
.trim-detail .td-sum tr.is-total td { color: var(--gold-2); font-weight: 600; padding-top: 8px; border-top: 1px solid var(--line); }
.trim-detail .td-sum tr.is-total td:first-child { color: var(--text); }
.trim-detail .td-kv { width: 100%; border-collapse: collapse; }
.trim-detail .td-kv td { font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.trim-detail .td-kv tr:last-child td { border-bottom: 0; }
.trim-detail .td-kv td:first-child { color: var(--muted); width: 40%; }
.trim-detail .td-kv td:last-child { color: var(--text); font-family: var(--num); }
.trim-detail .td-badge {
  display: inline-block; font-size: 10.5px; font-weight: 400; letter-spacing: .04em;
  color: #17130a; background: var(--gold); padding: 1px 7px; border-radius: 999px;
  vertical-align: 2px; margin-left: 4px;
}

/* ---------- 展厅：左侧导航栏 ---------- */
#results-sec, #all { scroll-margin-top: 237px; }   /* 搜索/锚点落点：避开贴顶的筛选栏（227 + 10） */
.shop-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 26px; align-items: start; }
.shop-layout > * { min-width: 0; }   /* 防止子项 min-content 撑破 grid（手机端横向溢出的根因） */
.shop-main { min-width: 0; }
.sidenav { position: sticky; top: 240px; z-index: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nav-sec {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 11px 11px;
}
.nav-sec h4 {
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .16em; color: var(--gold);
  text-transform: uppercase; margin: 0 0 9px 7px; font-weight: 600;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list li {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
  cursor: pointer; font-size: 13.5px; color: var(--text-2);
  border: 1px solid transparent; transition: background .16s, color .16s, border-color .16s;
}
.nav-list li:hover { background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--line); }
.nav-list li.on {
  background: rgba(216, 181, 106, .17); border-color: rgba(216, 181, 106, .48);
  color: var(--gold-2); font-weight: 600;
}
.nav-list .nav-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-list li em {
  font-style: normal; font-size: 11.5px; color: var(--muted);
  background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 1px 7px; flex: none;
}
.nav-list li.on em { color: #17130a; background: var(--gold); }
.nav-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 7px; }
@media (max-width: 1080px) {
  .shop-layout { grid-template-columns: 204px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; gap: 14px; }
  .sidenav { position: static; gap: 10px; }
  .nav-sec { padding: 10px 9px; }
  .nav-list { flex-direction: row; overflow-x: auto; gap: 7px; padding-bottom: 2px; }
  .nav-list li { flex: none; border-color: var(--line); background: rgba(255, 255, 255, .04); }
  .nav-note { display: none; }
}

/* ---------- 车型卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(318px, 1fr)); gap: 20px; }
/* 推荐位：一个车系只占一格，凑不满 3 台时让剩下的卡片自动铺满整行，不留空档 */
#featured { grid-template-columns: repeat(auto-fit, minmax(318px, 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s; position: relative;
}
.card:hover { transform: translateY(-4px); border-color: rgba(216, 181, 106, .45); box-shadow: var(--shadow); }
.card-art { position: relative; height: 186px; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-art .sil { position: absolute; left: 0; right: 0; bottom: 6px; opacity: .2; }
.card-art .brandname {
  position: absolute; top: 13px; left: 15px; font-family: var(--serif); font-size: 13px;
  letter-spacing: .22em; color: rgba(255, 255, 255, .95); text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 2px 12px rgba(0, 0, 0, .8);
}
.card-art .status { position: absolute; top: 11px; right: 12px; }
/* 卡片右上角收藏按钮（原来这里是「在售」状态徽标） */
.card-art .card-fav {
  position: absolute; top: 10px; right: 12px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(7, 8, 11, .72); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff; font-size: 16px; line-height: 1; user-select: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.card-art .card-fav:hover { background: rgba(216, 181, 106, .24); border-color: var(--gold); color: var(--gold-2); transform: scale(1.1); }
.card-art .card-fav.on { background: var(--gold); border-color: var(--gold); color: #17130a; text-shadow: none; }
/* 年款徽标：压在照片左下角 */
.card-art .yearbadge {
  position: absolute; bottom: 12px; left: 14px; z-index: 3;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--num); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  background: rgba(7, 8, 11, .78); border: 1px solid rgba(216, 181, 106, .62); color: var(--gold-2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9); backdrop-filter: blur(6px);
}
/* 压在照片上的徽章需要实底才看得清 */
.card-art .badge { background: rgba(7, 8, 11, .80); border-color: rgba(255, 255, 255, .30); color: #fff; }
.card-art .price {
  position: absolute; bottom: 12px; right: 14px; font-family: var(--num); font-size: 24px;
  color: #ffeec4; text-shadow: 0 2px 4px rgba(0, 0, 0, .95), 0 2px 16px rgba(0, 0, 0, .85);
}
.card-art .price small { font-size: 12px; color: rgba(255, 255, 255, .92); margin-left: 3px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
/* ---------- 车辆编号条（放在图片下方，原「配置 01-09 选项卡」的位置） ---------- */
/* 同款不同配置的现车，靠唯一车辆编号区分（pc26001…），不再用配置序号做选项卡 */
.card-no {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  background: rgba(216, 181, 106, .05);
}
.card-no .cn-lbl { font-size: 11.5px; color: var(--muted); letter-spacing: .05em; }
.card-no b {
  font-family: var(--num); font-size: 14px; color: var(--gold-2);
  letter-spacing: .08em; text-transform: lowercase;
}
.gold-2 { color: var(--gold-2); }

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 18.5px; line-height: 1.3; }
.card-title span { color: var(--muted); font-size: 13.5px; font-family: var(--sans); }
.card-head { font-size: 12.5px; color: var(--gold); letter-spacing: .05em; }
.specrow { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specrow > div { flex: 1; padding: 9px 4px; text-align: center; }
.specrow > div + div { border-left: 1px solid var(--line); }
.specrow .v { font-family: var(--num); font-size: 16px; color: var(--text); }
.specrow .k { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.card-foot { display: flex; gap: 8px; margin-top: auto; }
.card-foot .btn { flex: 1; }

/* ---------- 车型视觉（渐变底） ---------- */
.art-bg { position: absolute; inset: 0; }
/* 真实车照（加载失败自动移除，露出品牌渐变 + SVG 侧影） */
.card-art .card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art .photo-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 11, .74) 0%, rgba(7, 8, 11, .20) 34%, rgba(7, 8, 11, .52) 64%, rgba(7, 8, 11, .90) 100%);
}
.art-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 26px),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .55), transparent 60%);
}

/* ---------- 对比托盘（默认收起成小胶囊，避免遮挡内容） ---------- */
.tray {
  position: fixed; left: 20px; bottom: 20px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: rgba(14, 16, 21, .94); backdrop-filter: blur(16px);
  border: 1px solid rgba(216, 181, 106, .35); border-radius: 999px;
  box-shadow: var(--shadow); max-width: calc(100% - 40px);
}
/* 收起态 */
.tray:not(.open) { padding: 0; }
.tray-pill {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--text); font-size: 13px; font-family: var(--sans);
}
.tray-pill:hover { background: rgba(216, 181, 106, .13); }
.tray-badge {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: #17130a;
  font-family: var(--num); font-size: 12px; font-weight: 700;
}
/* 展开态 */
.tray.open { padding: 10px 13px; border-radius: 14px; }
.tray-hd { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tray-hd b { color: var(--gold-2); font-family: var(--num); font-size: 14px; }
.tray .items { display: flex; gap: 8px; overflow-x: auto; max-width: min(46vw, 620px); }
.tray .titem {
  display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 10px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap;
}
.tray .titem b { font-weight: 600; }
.tray .titem button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.tray .titem button:hover { color: var(--danger); }
.tray-min {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: 12.5px; padding: 6px 8px; border-radius: 8px; white-space: nowrap;
}
.tray-min:hover { color: var(--gold-2); background: rgba(216, 181, 106, .12); }
/* 托盘出现时给页面留出底部空间，避免盖住页脚 */
body.has-tray { padding-bottom: 76px; }

/* ---------- 回到首页按钮 ---------- */
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px 9px 14px; border-radius: 999px;
  background: rgba(216, 181, 106, .13); border: 1px solid rgba(216, 181, 106, .55);
  color: var(--gold-2); font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  transition: background .18s, border-color .18s, transform .18s;
}
.btn-back:hover { background: rgba(216, 181, 106, .24); border-color: var(--gold); transform: translateX(-2px); }
.btn-back svg { width: 15px; height: 15px; flex: none; }

/* ---------- 悬浮「回到顶部」 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 880;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(14, 16, 21, .92); backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 181, 106, .45); color: var(--gold-2);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .22s, background .18s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(216, 181, 106, .22); border-color: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 分段 / 分栏 ---------- */
.section { padding: 46px 0; }
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.panel.tight { padding: 16px; }

/* ---------- 可折叠面板（默认收起，点击展开） ---------- */
.panel-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.panel-toggle .pt-hint {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.panel-toggle .pt-hint svg { width: 15px; height: 15px; transition: transform .22s; }
.panel-toggle[aria-expanded="true"] .pt-hint svg { transform: rotate(180deg); }
.panel-toggle:hover .sec-title { color: var(--gold-2); }
.panel-toggle:hover .pt-hint { color: var(--gold); }
.panel-body { margin-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- 详情页 ---------- */
.hero-car { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-car .sil { position: absolute; inset: auto 4% 4% 4%; opacity: .3; }
/* 详情页真实大图 */
.hero-car .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-car .photo-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 11, .62) 0%, rgba(7, 8, 11, .12) 40%, rgba(7, 8, 11, .62) 72%, rgba(7, 8, 11, .92) 100%);
}
.hero-car .cap { position: absolute; left: 22px; bottom: 20px; text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 4px 24px rgba(0, 0, 0, .75); }
.hero-car .cap h1 { font-size: 38px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 11px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table tr:last-child td { border-bottom: 0; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out .box { background: rgba(216, 181, 106, .07); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 13px; }
.calc-out .box .k { font-size: 11.5px; color: var(--muted); }
.calc-out .box .v { font-family: var(--num); font-size: 23px; color: var(--gold-2); }
.color-dots { display: flex; gap: 9px; margin: 10px 0 4px; }
.color-dot { width: 26px; height: 26px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; }
.color-dot.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
/* 右栏：跟随页面正常滚动（用户明确要求 Order Now 那列要和左侧一起滚，
   不要钉在那里；右栏内容比屏幕高时 sticky 还会导致下半截滚不到） */
.sticky-box { position: static; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.slot { padding: 8px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; transition: .15s; }
.slot:hover { border-color: var(--gold); color: var(--gold-2); }
.slot.on { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-2); font-weight: 600; }

/* ---------- 对比表 ---------- */
.cmp-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
table.cmp th, table.cmp td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
table.cmp thead th { position: sticky; top: 0; background: #0d1015; z-index: 2; border-bottom: 1px solid var(--line-2); }
table.cmp thead th:first-child, table.cmp td:first-child { color: var(--muted); font-size: 13px; width: 130px; }
table.cmp td.best { color: var(--gold-2); font-weight: 600; background: rgba(216, 181, 106, .05); }
table.cmp tbody tr:hover td { background: rgba(255, 255, 255, .022); }
th.carcol { min-width: 190px; }

/* ---------- 配置对比表（同款车不同配置） ---------- */
.cmp-eq th.carcol { text-align: center; }
.cmp-eq td.std { color: var(--muted); text-align: center; font-size: 12px; }
.cmp-eq td.amt { color: var(--gold-2); text-align: center; font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-eq td.off { color: rgba(255, 255, 255, .22); text-align: center; }
.cmp-eq tr.grp td {
  font-size: 11.5px; letter-spacing: .12em; color: var(--gold-2);
  background: rgba(216, 181, 106, .06); padding-top: 9px; padding-bottom: 7px;
}
.cmp-eq tr.diff > td { background: rgba(216, 181, 106, .045); }
.cmp-eq tr.diff > td:first-child { color: var(--text); }
.cmp-eq tr.diff > td:first-child::before {
  content: '◆'; color: var(--gold); font-size: 9px; margin-right: 6px; vertical-align: 1px;
}
.cmp-eq .std-legend { color: var(--muted); }
.cmp-eq .amt-legend { color: var(--gold-2); font-family: var(--num); }
.cmp-eq .off-legend { color: rgba(255, 255, 255, .3); }

/* ---------- 我的订单 ---------- */
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; background: var(--panel); margin-bottom: 13px; }
.order-card .no { font-family: var(--num); color: var(--gold); letter-spacing: .06em; }
.timeline { display: flex; gap: 6px; margin: 13px 0 4px; }
.timeline .step { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); }
.timeline .step.done { background: linear-gradient(90deg, var(--gold-3), var(--gold)); }
.timeline-lbl { display: flex; gap: 6px; font-size: 11px; color: var(--muted); }
.timeline-lbl span { flex: 1; text-align: center; }

/* ---------- 后台 ---------- */
.admin-shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.side { border-right: 1px solid var(--line); padding: 20px 14px; background: rgba(10, 12, 16, .6); }
.side .grp { font-size: 10.5px; letter-spacing: .22em; color: var(--muted); margin: 18px 0 7px 9px; text-transform: uppercase; }
.side a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.side a:hover { background: var(--panel-2); color: var(--text); }
.side a.on { background: var(--gold-dim); color: var(--gold-2); font-weight: 600; }
.admin-main { padding: 24px 28px 60px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent); }
.kpi .k { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.kpi .v { font-family: var(--num); font-size: 27px; color: var(--text); margin-top: 4px; }
.kpi.gold .v { color: var(--gold-2); }
.kpi .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; padding: 12px 14px; background: rgba(255, 255, 255, .03); color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .022); }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 62px; align-items: center; gap: 11px; font-size: 13px; }
.bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-size: 14px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }
.login-card { width: min(410px, 100% - 40px); margin: 9vh auto; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: var(--shadow); }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(4, 5, 7, .72); backdrop-filter: blur(5px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { width: min(760px, 100%); max-height: 88vh; overflow: auto; background: #0e1116; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0e1116; z-index: 2; }
.modal-body { padding: 20px; }
.modal-foot { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #0e1116; }
.x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.x:hover { color: var(--text); }
/* 提示条：放左下角；页面出现「对比栏」时自动移到对比栏上方，避免叠在一起 */
#toasts {
  position: fixed; left: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
}
body.has-tray #toasts { bottom: 92px; }
.toast {
  padding: 12px 16px; border-radius: 10px; background: rgba(16, 19, 24, .96);
  border: 1px solid var(--line-2); border-left: 3px solid var(--gold); box-shadow: var(--shadow);
  font-size: 13.5px; min-width: 220px; max-width: 380px; animation: slidein .25s ease;
}
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
/* 首屏轮播的「发现时刻」提示：更亮一点、停留更久、支持 \n 换行 */
.toast.hero {
  white-space: pre-line;
  border-color: rgba(216, 181, 106, .55);
  background: linear-gradient(135deg, rgba(216, 181, 106, .18), rgba(16, 19, 24, .97) 62%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(216, 181, 106, .20);
  animation: slidein .25s ease, heroglow 1.8s ease-in-out 2;
}
@keyframes heroglow {
  50% { box-shadow: 0 12px 46px rgba(216, 181, 106, .30), 0 0 0 1px rgba(216, 181, 106, .34); }
}
@keyframes slidein { from { opacity: 0; transform: translateX(-18px); } }

.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty .big { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.sk { border-radius: 8px; background: linear-gradient(90deg, #14171d, #1c2028, #14171d); background-size: 200% 100%; animation: sh 1.3s infinite; height: 14px; }
@keyframes sh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.pager { display: flex; gap: 7px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager button { min-width: 37px; height: 37px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13.5px; }
.pager button:hover { border-color: var(--gold); color: var(--gold-2); }
.pager button.on { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 700; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ==========================================================================
   用户系统：账号入口 / 个人中心 / 登录注册
   ========================================================================== */
.user-chip {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 8px 14px 8px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14, 16, 21, .74);
  backdrop-filter: blur(12px); transition: border-color .18s, background .18s;
}
.user-chip:hover { border-color: rgba(216, 181, 106, .6); background: rgba(216, 181, 106, .13); }
.uc-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(255, 255, 255, .09); color: var(--text-2);
}
.user-chip.on .uc-av {
  background: linear-gradient(140deg, var(--gold-2), var(--gold) 50%, var(--gold-3));
  color: #17130a; font-weight: 700; font-family: var(--serif); font-size: 15px;
}
.uc-txt { display: flex; flex-direction: column; line-height: 1.3; }
.uc-txt b { font-size: 13px; color: var(--text); font-weight: 600; }
.uc-txt i { font-style: normal; font-size: 11px; color: var(--muted); }

/* 个人中心 */
.acct-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acct-av {
  width: 68px; height: 68px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: 27px; font-weight: 700; color: #17130a;
  background: linear-gradient(140deg, var(--gold-2), var(--gold) 50%, var(--gold-3));
  box-shadow: 0 8px 24px rgba(216, 181, 106, .22);
}
.acct-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.acct-stats .v { font-family: var(--num); font-size: 22px; color: var(--gold-2); }
.acct-stats .k { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.acct-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 24px 0 18px; border-bottom: 1px solid var(--line); }
.acct-tab {
  padding: 10px 17px; font-size: 14px; color: var(--muted); cursor: pointer;
  border: 1px solid transparent; border-bottom: none; border-radius: 10px 10px 0 0;
  background: none; font-family: inherit; transition: color .16s, background .16s;
}
.acct-tab:hover { color: var(--text); }
.acct-tab.on { color: var(--gold-2); background: var(--panel); border-color: var(--line); font-weight: 600; }
.acct-pane { display: none; }
.acct-pane.on { display: block; }
.auth-box { max-width: 430px; margin: 0 auto; }
.ord-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); margin-bottom: 12px;
}
.ord-card .oc-main { flex: 1 1 220px; min-width: 0; }
.ord-card .oc-no { font-family: var(--num); font-size: 12.5px; color: var(--muted); }
.ord-card .oc-car { font-family: var(--serif); font-size: 16px; margin-top: 3px; }
.ord-card .oc-amt { font-family: var(--num); font-size: 18px; color: var(--gold-2); }
.ord-card .oc-date { font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .uc-txt i { display: none; }
  .user-chip { padding: 7px 12px 7px 8px; }
  .uc-av { width: 26px; height: 26px; font-size: 13px; }
  .acct-av { width: 56px; height: 56px; font-size: 22px; }
  .acct-stats { gap: 18px; }
}

footer.site { border-top: 1px solid var(--line); margin-top: 46px; padding: 30px 0 44px; color: var(--muted); font-size: 13px; }

@media (max-width: 1080px) {
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
  .sticky-box { position: static; }
}
@media (max-width: 860px) {
  .topbar .wrap { height: auto; padding: 11px 0; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
  .filterbar { top: 0; }
  /* 手机端：搜索框 + 搜索按钮占满整行，排序/对比换到下一行 */
  .searchbox { flex: 1 1 calc(100% - 92px); min-width: 0; }
  .search-btn { padding: 0 13px; }
  #results-sec, #all { scroll-margin-top: 215px; }
  .filter-extra { display: none; }   /* 手机端用左侧导航栏筛选，隐藏复选框行以省空间 */
  /* 手机端筛选栏压扁：第二行改为单行横向滚动，给内容腾出空间 */
  .filter-row:nth-child(2) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .filter-row:nth-child(2) > * { flex: none; }
  .range-wrap input[type=range] { width: 86px; }
  /* 对比托盘：手机端抬到客服球上方，展开时整行换行 */
  .tray { left: 12px; bottom: 74px; max-width: calc(100% - 24px); }
  .tray.open { flex-wrap: wrap; gap: 8px; }
  .tray .items { max-width: none; flex: 1 1 100%; }
  body.has-tray { padding-bottom: 132px; }
  .to-top { right: 14px; bottom: 76px; width: 40px; height: 40px; }
  .to-top svg { width: 16px; height: 16px; }
  .hero-inner { padding: 52px 0 40px; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .side .grp { display: none; }
  .admin-main { padding: 18px 15px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero-car { height: 260px; }
}

/* ---------- 开关（后台「系统设置」用） ---------- */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid var(--line-2);
  transition: background .22s, border-color .22s;
}
.switch .slider::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #8b93a3; transition: transform .22s, background .22s;
}
.switch input:checked + .slider { background: var(--gold-dim); border-color: var(--gold); }
.switch input:checked + .slider::before { transform: translateX(22px); background: var(--gold); }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 重置密码弹窗：与登录框保持一致的间距 */
.modal .sec-sub { color: var(--muted); font-size: 13px; }
