/* 极速狂飙3 · 官网样式
   设计基调：深色电影感 + 竞速黄点缀 + 细金线分隔 */

:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --panel: rgba(255, 255, 255, .028);
  --panel-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .14);
  --txt: #eceef3;
  --txt-2: #9aa0ad;
  --txt-3: #676d7a;
  /* 品牌色取自客户端盾徽 Logo：碳纤维黑 + 金属银 + 电光青 */
  /* 变量名沿用 gold* 以兼容既有选择器，实际取值为品牌青 */
  --gold: #4de1ff;
  --gold-2: #b3f2ff;
  --gold-deep: #1e93c4;
  --silver: #d6dbe3;
  --carbon: #12151a;
  --red: #ff4d4d;
  --ok: #35d07f;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 24px 64px -20px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(77, 225, 255, .09), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(70, 130, 255, .06), transparent 60%);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- 滚动进度 ---------- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(77, 225, 255, .7);
  transition: width .08s linear;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(7, 8, 11, .92), rgba(7, 8, 11, 0));
  backdrop-filter: blur(14px);
  transition: background .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgba(7, 8, 11, .88);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 12px rgba(77, 225, 255, .5)) brightness(1.08) contrast(1.04);
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 6px 20px rgba(77, 225, 255, .8));
  transform: translateY(-1px);
}
.brand b { font-size: 16px; letter-spacing: -.01em; }
.brand span { font-size: 11px; color: var(--txt-3); font-weight: 500; letter-spacing: .12em; }

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.topnav a {
  padding: 7px 13px;
  font-size: 13.5px;
  color: var(--txt-2);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--txt); background: var(--panel-2); }

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: #041419;
  background: linear-gradient(145deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 10px 26px -10px rgba(77, 225, 255, .85);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.top-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(77, 225, 255, 1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -5% -2% -2% 20%;
  z-index: -2;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 58%;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
  /* 左缘溶进底色，标题区保持干净黑场 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 9%, rgba(0, 0, 0, .92) 30%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 9%, rgba(0, 0, 0, .92) 30%, #000 46%);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, .82) 0%, rgba(7, 8, 11, .12) 30%, rgba(7, 8, 11, .58) 74%, var(--bg) 100%);
}
@media (max-width: 860px) {
  .hero-media { inset: -4% -2% -2% -2%; }
  .hero-media img {
    -webkit-mask-image: none;
    mask-image: none;
    object-position: 62% 58%;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 8, 11, .84) 0%, rgba(7, 8, 11, .34) 30%, rgba(7, 8, 11, .82) 66%, var(--bg) 100%),
      linear-gradient(90deg, rgba(7, 8, 11, .9) 0%, rgba(7, 8, 11, .3) 72%);
  }
}

.hero-inner {
  position: relative;
  width: min(1220px, 100% - 2 * clamp(16px, 4vw, 48px));
  margin: 0 auto;
  padding: 0 0 clamp(40px, 6vh, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(77, 225, 255, .32);
  background: rgba(77, 225, 255, .09);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(77, 225, 255, .18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(77, 225, 255, .16); }
  50% { box-shadow: 0 0 0 7px rgba(77, 225, 255, .04); }
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 9.2vw, 110px);
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero-title .accent {
  background: linear-gradient(104deg, #f2feff 2%, #9bf0ff 26%, var(--gold) 54%, #23a8d6 78%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01";
  background: linear-gradient(170deg, #ffffff 8%, var(--silver) 52%, #8d95a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 20px 0 0;
  max-width: 536px;
  font-size: clamp(15px, 1.35vw, 17.5px);
  color: #c8ccd6;
  line-height: 1.78;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #c3c8d3;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.btn-primary {
  color: #041419;
  background: linear-gradient(145deg, var(--gold-2) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  box-shadow: 0 18px 42px -16px rgba(77, 225, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 52px -16px rgba(77, 225, 255, 1); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--txt);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(77, 225, 255, .5); color: var(--gold-2); transform: translateY(-2px); }

.btn-lg { padding: 17px 38px; font-size: 16px; }

/* 构建中：不允许点击，但文字必须保持高对比，不能靠降透明度糊过去 */
.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--gold-2);
  background: rgba(77, 225, 255, .08);
  border-color: rgba(77, 225, 255, .42);
  box-shadow: inset 0 0 24px -12px rgba(77, 225, 255, .6);
}
.btn.is-disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: inset 0 0 24px -12px rgba(77, 225, 255, .6);
}
.btn.is-disabled::after,
.btn[aria-disabled="true"]::after { display: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 46px);
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 92px; }
.hero-meta dt {
  font-size: 11px;
  letter-spacing: .13em;
  color: var(--txt-3);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.hero-meta dd {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-meta dd small { font-size: 12px; font-weight: 500; color: var(--txt-2); margin-left: 3px; }

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  z-index: 1;
  width: min(1220px, 100% - 2 * clamp(16px, 4vw, 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vh, 116px) 0;
}
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent);
}

.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 56px); }
.sec-kicker {
  display: block;
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--gold);
  font-weight: 650;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.sec-title {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 750;
}
.sec-desc {
  margin: 0;
  color: var(--txt-2);
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  line-height: 1.8;
}

/* ---------- 车辆：双栏规格 ---------- */
.vehicle-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
}
@media (max-width: 940px) { .vehicle-cols { grid-template-columns: 1fr; } }

.panel-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-3);
}

.paint-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: paint;
}
.paint-flow li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px dashed rgba(255, 255, 255, .075);
}
.paint-flow li:last-child { border-bottom: 0; }
.paint-flow li::before {
  counter-increment: paint;
  content: counter(paint);
  position: absolute;
  left: 0; top: 13px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(77, 225, 255, .45);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.paint-flow b {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 2px;
}
.paint-flow span { font-size: 13px; color: var(--txt-2); line-height: 1.66; }

.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.shot:hover img { transform: scale(1.045); }
.shot-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 22px 18px;
  background: linear-gradient(0deg, rgba(4, 5, 8, .94), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.shot-cap b { font-size: 15px; font-weight: 700; }
.shot-cap span { font-size: 12px; color: var(--txt-2); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: clamp(20px, 2.4vw, 30px);
  backdrop-filter: blur(10px);
}

.spec-list { display: grid; gap: 0; margin: 0; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .075);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--txt-2); }
.spec-row dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.swatches { display: flex; gap: 9px; margin-top: 20px; }
.sw {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .45), inset 0 3px 8px rgba(255, 255, 255, .3);
}

/* ---------- 分层体系 ---------- */
.layers { display: grid; gap: 12px; }
.layer {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  transition: border-color .28s, transform .28s var(--ease), background .28s;
}
.layer:hover { border-color: rgba(77, 225, 255, .38); transform: translateX(4px); }
.layer-ico {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: linear-gradient(150deg, rgba(77, 225, 255, .18), rgba(77, 225, 255, .04));
  border: 1px solid rgba(77, 225, 255, .22);
}
.layer b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.layer p { margin: 0; font-size: 13.5px; color: var(--txt-2); line-height: 1.65; }
.layer em {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--gold-2);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(77, 225, 255, .1);
  border: 1px solid rgba(77, 225, 255, .2);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .layer { grid-template-columns: 44px 1fr; }
  .layer em { display: none; }
  .layer-ico { width: 44px; height: 44px; font-size: 18px; }
}

/* ---------- 卡片宫格 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.card {
  position: relative;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(77, 225, 255, .34); }
.card::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 225, 255, .16), transparent 68%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card h4 {
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card h4 i {
  font-style: normal;
  font-size: 16px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(77, 225, 255, .12);
  border: 1px solid rgba(77, 225, 255, .2);
}
.card p { margin: 0; font-size: 13.8px; color: var(--txt-2); line-height: 1.78; }

/* ---------- 账号打通 ---------- */
.account-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
}
@media (max-width: 940px) { .account-wrap { grid-template-columns: 1fr; } }

.flow { display: grid; gap: 0; position: relative; }
.flow-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 15px;
  padding-bottom: 24px;
  position: relative;
}
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before {
  content: "";
  position: absolute;
  left: 14px; top: 30px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(77, 225, 255, .45), rgba(77, 225, 255, .06));
}
.flow-item:last-child::before { display: none; }
.flow-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #041419;
  background: linear-gradient(145deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 0 4px rgba(77, 225, 255, .1);
  z-index: 1;
}
.flow-item b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.flow-item p { margin: 0; font-size: 13.3px; color: var(--txt-2); line-height: 1.7; }

/* ---------- 配置要求 ---------- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.specs-table th, .specs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.specs-table thead th {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-3);
  background: rgba(255, 255, 255, .035);
  font-weight: 600;
}
.specs-table tbody tr:last-child td { border-bottom: 0; }
.specs-table td:first-child { color: var(--txt-2); width: 130px; }
.specs-table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.specs-table .rec { color: var(--gold-2); }

/* ---------- 下载区 ---------- */
.download {
  position: relative;
  border-radius: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(77, 225, 255, .26);
  background:
    radial-gradient(720px 320px at 82% 0%, rgba(77, 225, 255, .16), transparent 62%),
    linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("track-sanshixu.jpg") center 55% / cover;
  opacity: .10;
  pointer-events: none;
}
.download-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
@media (max-width: 860px) { .download-inner { grid-template-columns: 1fr; } }

.dl-title { margin: 0 0 10px; font-size: clamp(23px, 3vw, 33px); font-weight: 750; letter-spacing: -.02em; }
.dl-desc { margin: 0; color: var(--txt-2); font-size: 14.5px; max-width: 520px; line-height: 1.78; }

.dl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--txt-2);
}
.dl-facts b { color: var(--txt); font-variant-numeric: tabular-nums; font-weight: 650; }

.dl-hash {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .32);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: var(--txt-3);
  word-break: break-all;
  line-height: 1.6;
}
.dl-hash b { color: var(--gold-2); font-weight: 600; }

.dl-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.dl-state.building { color: var(--gold-2); background: rgba(77, 225, 255, .12); border: 1px solid rgba(77, 225, 255, .3); }
.dl-state.ready { color: #7df0b4; background: rgba(53, 208, 127, .1); border: 1px solid rgba(53, 208, 127, .3); }
.dl-state i {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(16px, 4vw, 48px) 44px;
  color: var(--txt-3);
  font-size: 13px;
}
.footer-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.footer a { color: var(--txt-2); transition: color .2s; }
.footer a:hover { color: var(--gold-2); }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .topnav { display: none; }
  /* 竖屏里 16:9 横图用 cover 会把车放大 2.4 倍压在文字上，
     改成「上图下文」的堆叠：图片做上部横幅，文字落在纯底色上。 */
  .hero { display: block; min-height: 0; }
  .hero-media {
    position: relative;
    inset: auto;
    height: min(56vh, 400px);
  }
  .hero-media img {
    object-position: 64% 56%;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 8, 11, .58) 0%, rgba(7, 8, 11, .04) 26%, rgba(7, 8, 11, .34) 62%, var(--bg) 100%);
  }
  .hero-inner { padding: 26px 0 48px; }
  .hero-title { font-size: clamp(44px, 15vw, 66px); }
  .hero-meta { gap: 16px; }
  .hero-meta div { min-width: 78px; }
  .hero-meta dd { font-size: 16px; }
}

/* ── 内部文档入口（仅授权态由 site.js 注入，未授权时 DOM 里不存在） ── */
.topnav a.doc-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 550;
}
.topnav a.doc-entry::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(77, 225, 255, .16);
  flex: none;
}
.topnav a.doc-entry:hover { color: var(--gold-2); background: rgba(77, 225, 255, .09); }

/* 窄屏（.topnav 整体隐藏）时改用右下角浮动入口 */
.doc-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 9px;
  background: rgba(11, 13, 18, .93);
  border: 1px solid rgba(77, 225, 255, .34);
  border-radius: 12px;
  color: var(--txt);
  font-size: 13px;
  font-weight: 550;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .8);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.doc-fab img { width: 22px; height: 22px; border-radius: 5px; display: block; }
.doc-fab:hover { border-color: rgba(77, 225, 255, .62); transform: translateY(-1px); }

@media (max-width: 720px) {
  .doc-fab { display: inline-flex; }
}

/* ===== 赛道章节：指标条 + 三条街道 ===== */
.track-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}
.track-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px clamp(12px, 1.6vw, 22px) 16px;
  background: var(--bg-2);
}
.track-stats b {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 750;
  letter-spacing: -.02em;
  color: #f3f7fa;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.track-stats b small {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-left: 3px;
  letter-spacing: 0;
}
.track-stats span { font-size: 12px; color: var(--txt-3); letter-spacing: .04em; }
@media (max-width: 820px) {
  .track-stats { grid-template-columns: repeat(2, 1fr); }
  .track-stats > div:last-child { grid-column: 1 / -1; }
}

.streets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
@media (max-width: 1000px) { .streets { grid-template-columns: 1fr; } }

.street {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), border-color .5s;
}
.street:hover { transform: translateY(-4px); border-color: rgba(77, 225, 255, .34); }
.street img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.street:hover img { transform: scale(1.035); }
.street figcaption { padding: 15px 17px 18px; }
.street-km {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.street figcaption b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-bottom: 6px;
}
.street figcaption p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--txt-2);
}

.track-notes { margin-top: clamp(16px, 2vw, 24px); }

@media (max-width: 720px) {
  .street { border-radius: 10px; }
  .street figcaption { padding: 12px 13px 15px; }
}


/* 分卷下载说明：323MB 单文件受服务器上传限制，拆 7 卷 */
.dl-split {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(77, 225, 255, .28);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(77, 225, 255, .05);
}
.dl-split b { display: block; font-size: 13.5px; color: var(--gold-2); margin-bottom: 6px; }
.dl-split p { margin: 6px 0; font-size: 13px; line-height: 1.7; color: var(--txt-2); }
.dl-split a { color: var(--gold); text-decoration: underline; }
.dl-split code {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  font-size: 11.5px;
  line-height: 1.65;
  color: #cfe9f4;
  word-break: break-all;
  white-space: pre-wrap;
}
