/* ============================================================
   FT / CDRA 赛事官网 — 设计系统
   F1 风格：暗底 + 单一强调色 + 斜切几何 + 窄体字 + 发丝线数据表
   主色取自 FT 徽标（琥珀 #F39800），CDRA 徽标色为组织辅色
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg-0: #05070a;
  --bg-1: #0b0e13;
  --bg-2: #11161d;
  --bg-3: #171d26;
  --bg-card: #0e1319;

  --brand: #f39800;        /* FT 徽标琥珀 */
  --brand-hot: #ffb020;
  --brand-dim: #b06e00;
  --brand-2: #227fc4;      /* FT 徽标蓝 */
  --brand-3: #878b98;      /* FT 徽标银 */
  --cdra: #d7bbb9;         /* CDRA 徽标主色（从 CDRA标志.jpg 采样） */
  --gold: #d4af37;

  --fg-0: #f5f6f8;
  --fg-1: #b3bcc9;
  --fg-2: #7b8593;
  --fg-3: #4d5663;

  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);

  --font-display: "Bahnschrift", "DIN Alternate", "Oswald", "Archivo Narrow",
    "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-cn: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, monospace;

  --skew: -8deg;
  --gut: clamp(16px, 4vw, 64px);
  --maxw: 1560px;
  --nav-h: 64px;
  --subnav-h: 48px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-body), var(--font-cn);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
::selection { background: var(--brand); color: #11151b; }
:focus-visible { outline: 2px solid var(--brand-hot); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- 3. Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-1);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--brand); transform: skewX(var(--skew)); }
.eyebrow--plain::before { display: none; }
.disp { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #11151b;
  background: var(--btn-bg); transform: skewX(var(--skew));
  transition: background 0.18s ease;
}
.btn > span { transform: skewX(calc(-1 * var(--skew))); }
.btn:hover { background: var(--brand-hot); }
.btn--ghost { --btn-bg: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg-0); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); }

/* ---------- 5. Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(5, 7, 10, 0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* <picture> 只是 webp/jpg 选择器，不应该参与 flex 布局 */
.brand__pic { display: contents; }
.brand__logo { height: 30px; width: auto; }
.brand__ft { height: 32px; width: auto; opacity: 0.95; }
.brand__sep { width: 1px; height: 28px; background: var(--line-strong); }
.brand__sub {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2);
}
.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; padding: 10px 15px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-1);
  transition: color 0.16s;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--brand); transform: scaleX(0);
  transition: transform 0.18s ease; transform-origin: left;
}
.nav a:hover { color: var(--fg-0); }
.nav a[aria-current="page"] { color: var(--fg-0); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.iconbtn { color: var(--fg-1); display: grid; place-items: center; width: 34px; height: 34px; transition: color 0.16s; }
.iconbtn:hover { color: var(--fg-0); }
.topbar__cta { padding: 10px 20px; font-size: 12px; }
.burger { display: none; }

/* ---------- 6. Sub nav（二级菜单） ---------- */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(11, 14, 19, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; align-items: center; gap: 4px; height: var(--subnav-h); overflow-x: auto; }
.subnav__label {
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-3); margin-right: 10px; white-space: nowrap;
}
.subnav button {
  padding: 8px 16px; white-space: nowrap;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
  border-bottom: 2px solid transparent; transition: color 0.16s, border-color 0.16s;
}
.subnav button:hover { color: var(--fg-0); }
.subnav button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

/* 三级菜单：榜单类型（仅非 2025 赛季） */
.subnav--third { top: calc(var(--nav-h) + var(--subnav-h)); background: rgba(5, 7, 10, 0.92); }
.subnav--third .subnav__inner { padding-left: 22px; }
.subnav--third .subnav__inner::before {
  content: ""; width: 3px; height: 15px; margin-right: 14px;
  background: var(--brand); transform: skewX(var(--skew)); opacity: .7;
}
.subnav--third .subnav__label { margin-right: 6px; }
.subnav--third button { font-size: 11.5px; padding: 7px 14px; }
.subnav--third button[aria-selected="true"] { color: var(--fg-0); background: rgba(243, 152, 0, .12); border-bottom-color: var(--brand); }

/* ---------- 7. Page head ---------- */
.pagehead { padding-block: clamp(34px, 5vw, 64px) clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.pagehead h1 {
  font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700; text-transform: uppercase; line-height: 1; margin-top: 14px;
}
.pagehead__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px;
  color: var(--fg-2); font-size: 13.5px; align-items: flex-start;
}
.pagehead__meta span { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.6; }
.pagehead__meta span::before { content: ""; width: 5px; height: 5px; background: var(--brand); transform: rotate(45deg); margin-top: 8px; flex: none; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; min-height: min(74vh, 720px);
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--bg-3); }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg-0) 2%, rgba(5, 7, 10, 0.78) 34%, rgba(5, 7, 10, 0.25) 66%, rgba(5, 7, 10, 0.62) 100%),
    linear-gradient(to right, rgba(5, 7, 10, 0.9) 0%, rgba(5, 7, 10, 0.15) 55%, transparent 80%);
}
.hero__race {
  position: absolute; top: 24px; right: var(--gut); z-index: 1;
  font-family: var(--font-display); font-size: clamp(90px, 15vw, 200px);
  font-weight: 700; line-height: 0.8; color: rgba(255, 255, 255, 0.05);
  pointer-events: none; user-select: none;
}
/* 背景里的 FT 标志 */
.hero__mark {
  position: absolute;
  right: 6%;
  top: 44%;
  transform: translateY(-50%);
  width: min(40vw, 520px);
  z-index: 0;
  opacity: 0.17;
  pointer-events: none;
  user-select: none;
  filter: saturate(1.2);
}
.hero__mark img { width: 100%; height: auto; }
.hero__body { position: relative; padding-block: 40px 30px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: end; }
.hero__grid > * { min-width: 0; }
.hero__meta { max-width: 760px; }
.hero__round {
  display: inline-block; padding: 7px 16px; background: var(--brand);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; transform: skewX(var(--skew));
  margin-bottom: 20px; color: #11151b;
}
.hero__round span { display: block; transform: skewX(calc(-1 * var(--skew))); }
.hero__title {
  font-family: var(--font-display); font-size: clamp(44px, 7.6vw, 108px);
  font-weight: 700; line-height: 0.86; text-transform: uppercase;
  letter-spacing: -0.015em; margin-bottom: 18px;
}
.hero__title em { font-style: normal; color: var(--brand); display: block; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--fg-1); font-size: 13.5px; margin-bottom: 26px; align-items: flex-start; }
.hero__facts span { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.6; }
.hero__facts span::before { content: ""; width: 5px; height: 5px; background: var(--brand); transform: rotate(45deg); margin-top: 8px; flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* next-race panel */
.next { background: linear-gradient(160deg, var(--bg-3), var(--bg-1)); border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 22px 22px 24px; }
.next__label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 12px; }
.next__circuit { font-family: var(--font-display); font-size: 25px; font-weight: 700; text-transform: uppercase; line-height: 1.05; margin-bottom: 4px; }
.next__where { color: var(--fg-2); font-size: 13px; margin-bottom: 18px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.countdown div { background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); padding: 9px 4px 7px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-size: clamp(18px, 5.6vw, 24px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 0.16em; color: var(--fg-3); margin-top: 4px; }
.next__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-0); }
.next__link::after { content: "→"; color: var(--brand); transition: transform .16s; }
.next__link:hover::after { transform: translateX(4px); }

/* ---------- 9. Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-1); overflow: hidden; display: flex; align-items: center; height: 44px; position: relative; }
.ticker__tag { flex: none; height: 100%; display: flex; align-items: center; padding: 0 18px; background: var(--brand); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #11151b; position: relative; z-index: 2; }
.ticker__track { display: flex; gap: 46px; padding-left: 26px; white-space: nowrap; animation: slide 46s linear infinite; }
.ticker__track span { font-size: 13px; color: var(--fg-1); display: inline-flex; align-items: center; gap: 10px; }
.ticker__track span::before { content: ""; width: 4px; height: 4px; background: var(--brand); transform: rotate(45deg); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--alt { background: var(--bg-1); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; text-transform: uppercase; line-height: 1; margin-top: 12px; }
.sec-head__side { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.sec-head__side a { color: var(--fg-0); }
.sec-head__side a:hover { color: var(--brand); }

/* ---------- 11. Data tables ---------- */
table.data { font-size: 14px; }
.tablewrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table.data { min-width: 560px; }
table.data thead th {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
  text-align: left; padding: 0 12px 10px; border-bottom: 1px solid var(--line);
}
table.data tbody td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr { transition: background .14s; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.data tbody tr.is-leader td:first-child { color: var(--brand); }
td.pos { font-family: var(--font-display); font-size: 19px; font-weight: 700; width: 52px; font-variant-numeric: tabular-nums; }
td.pts { text-align: right; font-family: var(--font-display); font-weight: 700; width: 88px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg-1); }
td.pen { color: var(--fg-3); font-size: 12px; max-width: 320px; }
td.pen.has { color: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
}
.chip__dot { width: 10px; height: 10px; flex: none; transform: skewX(var(--skew)); }
.chip__abbr {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--fg-3);
}
.driver { display: flex; align-items: center; gap: 13px; }
.driver__code {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #10141a;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.driver__name { font-weight: 600; white-space: nowrap; }
.driver__name small { display: block; color: var(--fg-3); font-weight: 400; font-size: 11.5px; }
.tag {
  display: inline-block; padding: 3px 8px; font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--fg-2);
}
.tag--miss { border-color: rgba(225, 106, 0, .5); color: #e0a04a; }

/* ---------- 12. Stat cards ---------- */
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.stat { background: var(--bg-0); padding: 26px 24px 28px; }
.stat__label { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.stat__value { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1; text-transform: uppercase; }
.stat__value small { display: block; font-size: 14px; color: var(--fg-2); font-weight: 400; letter-spacing: 0.06em; margin-top: 8px; text-transform: none; }
.stat__accent { width: 34px; height: 3px; background: var(--brand); transform: skewX(var(--skew)); margin-bottom: 16px; }

/* ---------- 13. Calendar ---------- */
.calyear + .calyear { margin-top: clamp(40px, 6vw, 72px); }
.calyear__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.calyear__year { font-family: var(--font-display); font-size: clamp(38px, 5vw, 66px); font-weight: 700; line-height: 0.9; color: var(--brand); }
.calyear__label { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-1); }
.calyear__state { margin-left: auto; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.round { position: relative; background: var(--bg-2); border: 1px solid var(--line); padding: 18px 16px 20px; transition: border-color .18s, transform .18s; }
.round:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.round--next { border-color: var(--brand); background: linear-gradient(165deg, rgba(243, 152, 0, .14), var(--bg-2) 62%); }
.round--done { opacity: 0.5; }
.round__no { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.round--next .round__no { color: var(--brand); }
.round__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; line-height: 1.08; margin-bottom: 6px; }
.round__where { color: var(--fg-2); font-size: 12.5px; margin-bottom: 14px; }
.round__date { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-1); padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.round__status { font-size: 10.5px; letter-spacing: 0.14em; color: var(--brand); white-space: nowrap; }
.round--done .round__status { color: var(--fg-3); }
.round__sprint { display: inline-block; margin-left: 8px; padding: 2px 7px; background: rgba(34, 127, 196, .18); border: 1px solid rgba(34, 127, 196, .5); color: #7ab6ea; font-size: 10px; letter-spacing: .12em; vertical-align: middle; }
.breaknote {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px dashed var(--line-strong); color: var(--fg-3);
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- 14. Teams ---------- */
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.team { background: var(--bg-0); padding: 20px 18px 22px; position: relative; overflow: hidden; }
.team__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.team__name { font-family: var(--font-display); font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.1; margin-bottom: 4px; }
.team__base { color: var(--fg-3); font-size: 12.5px; margin-bottom: 14px; }
.team__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; border-top: 1px solid var(--line); }
.team__row span { color: var(--fg-2); flex: none; }
.team__row b { font-family: var(--font-display); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.team__drivers { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.team__driver { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; color: var(--fg-1); }
.team__driver b { font-family: var(--font-display); color: var(--fg-0); }
.team__driver small { color: var(--fg-3); margin-left: auto; font-size: 11px; }

.teamcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.teamcard { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .18s, transform .18s; display: block; }
.teamcard:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.teamcard__img { aspect-ratio: 4 / 5; background: var(--bg-3); position: relative; overflow: hidden; }
.teamcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.teamcard__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  color: rgba(255,255,255,.16); letter-spacing: .06em;
}
.team--link { display: block; transition: background .16s; }
.team--link:hover { background: var(--bg-2); }
.teamcard--wide { display: block; max-width: 520px; }
.teamcard--wide:hover { border-color: var(--line-strong); }
a.driver__name:hover { color: var(--brand); }
a.chip:hover .chip__abbr { color: var(--brand); }
.teamcard__color { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.teamcard__body { padding: 16px 16px 18px; }
.teamcard__name { font-family: var(--font-display); font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.teamcard__model { color: var(--fg-3); font-size: 12.5px; margin-top: 4px; }
.teamcard__stats { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.teamcard__stats div span { display: block; font-family: var(--font-display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.teamcard__stats div b { font-family: var(--font-display); font-size: 18px; }

/* ---------- 15. Drivers ---------- */
.drivers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.dcard { background: var(--bg-0); padding: 18px 16px; display: flex; align-items: center; gap: 13px; transition: background .16s; }
.dcard:hover { background: var(--bg-2); }
.dcard__no { flex: none; width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #10141a; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.dcard__name { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.dcard__name small { display: block; font-weight: 600; color: var(--brand); letter-spacing: .1em; font-size: 10.5px; }
.dcard__team { margin-left: auto; color: var(--fg-3); font-size: 11.5px; text-align: right; }

/* ---------- 14.5 车队详情页 ---------- */
.teamhero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: center;
  background: linear-gradient(140deg, var(--bg-2), var(--bg-0));
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 38px);
}
.teamhero--noimg { grid-template-columns: minmax(0, 1fr); }
.teamhero__color { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.teamhero h1 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; text-transform: uppercase; line-height: 1; margin: 12px 0 0;
}
.teamhero__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; color: var(--fg-2); font-size: 13.5px; align-items: flex-start; }
.teamhero__meta span { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.6; }
.teamhero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--brand); transform: rotate(45deg); margin-top: 8px; flex: none; }
.teamhero__img { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg-1); overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* 队徽多数是白底黑图，给个白底衬底才看得清 */
.teamhero__img--logo { background: #f2f3f5; }
.teamhero__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* 2025 实车照用裁切填满，队徽（PNG/JPG 徽标）用完整显示 */
.teamhero__img--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 20px; padding: 14px 18px;
  border: 1px solid rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .07);
  color: var(--gold); font-size: 13.5px;
}
.notice b { font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; white-space: nowrap; }

/* ---------- 16. About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.about h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; text-transform: uppercase; line-height: 1; margin-top: 12px; }
.about__body p { color: var(--fg-1); font-size: 15.5px; line-height: 1.85; margin: 0 0 18px; max-width: 68ch; }
.about__body p:last-child { margin-bottom: 0; }
.about__body .about__lead { color: var(--fg-0); font-size: 18px; line-height: 1.75; font-weight: 500; }
.about__body strong { color: var(--brand); font-weight: 600; }
.about__facts { border: 1px solid var(--line); background: var(--bg-0); margin-bottom: 20px; }
.about__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.about__facts div:last-child { border-bottom: 0; }
.about__facts span { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.about__facts b { font-size: 13.5px; font-weight: 600; text-align: right; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 16.5 Promo ---------- */
.promo { position: relative; border: 1px solid var(--line); background: radial-gradient(110% 150% at 80% 15%, rgba(243, 152, 0, .16), transparent 55%), linear-gradient(140deg, var(--bg-2), var(--bg-0)); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; overflow: hidden; }
.promo h3 { font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 44px); text-transform: uppercase; line-height: 1; margin: 14px 0 12px; }
.promo p { color: var(--fg-1); max-width: 58ch; margin: 0 0 24px; }
.promo__art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 84px; font-weight: 700; color: rgba(255,255,255,.05); pointer-events: none; }
.promo__art::before, .promo__art::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; }
.promo__art::after { inset: 58px; }

/* ---------- 17. Footer ---------- */
.foot { background: var(--bg-0); border-top: 1px solid var(--line); padding-block: 42px 26px; }
.foot__cols { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 34px; }
.foot h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.foot li { margin-bottom: 9px; }
.foot li a { color: var(--fg-1); font-size: 13.5px; }
.foot li a:hover { color: var(--brand); }
.foot__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-3); font-size: 12.5px; }
/* ---------- 备案信息（公安备案图标 + 号） ---------- */
.foot__bottom .beian { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--fg-3); text-decoration: none; font-size: 12.5px; }
.foot__bottom .beian:hover { color: var(--brand); }
.foot__bottom .beian img { width: 16px; height: 18px; opacity: .72; display: block; }

/* 特别鸣谢 / 赞助 */
.sponsor {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 34px; flex-wrap: wrap;
}
.sponsor__item { display: flex; align-items: center; gap: 20px; }
/* B站跳转 */
.sponsor__bili, .sponsorbar__bili {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .08em;
  color: var(--fg-2); border: 1px solid var(--line);
  padding: 5px 10px; background: var(--bg-1);
  transition: color .16s, border-color .16s;
}
.sponsor__bili:hover, .sponsorbar__bili:hover { color: #FB7299; border-color: #FB7299; }
.sponsor__bili svg, .sponsorbar__bili svg { flex: none; }
/* 顶部横幅版（首页最上端） */
.sponsorbar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-1); border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.sponsorbar .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sponsorbar__item { display: inline-flex; align-items: center; gap: 10px; }
.sponsorbar__sep { width: 1px; height: 26px; background: var(--line); }
.sponsorbar__logo {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #f2f3f5; padding: 3px; border: 1px solid var(--line);
}
.sponsorbar__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsorbar__label {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brand);
}
.sponsorbar__text { font-size: 13px; color: var(--fg-1); }
.sponsorbar__text a { color: var(--fg-0); font-family: var(--font-display); }
.sponsorbar__text a:hover { color: var(--brand); }

/* 详情页返回键 */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: .1em;
  color: var(--fg-2); text-transform: uppercase;
  margin-bottom: 22px; padding: 7px 14px;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: color .16s, border-color .16s;
}
.backlink:hover { color: var(--brand); border-color: var(--brand); }
.backlink span { font-size: 15px; line-height: 1; }
.sponsor__logo {
  flex: none; width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  background: #f2f3f5; padding: 7px;
  border: 1px solid var(--line);
}
.sponsor__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor__text { min-width: 0; }
.sponsor__label {
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 7px;
}
.sponsor__title { font-family: var(--font-display); font-size: clamp(15px, 1.6vw, 19px); color: var(--fg-0); }
.sponsor__title a { color: inherit; }
.sponsor__title a:hover { color: var(--brand); }
.sponsor__sub { color: var(--fg-3); font-size: 12.5px; margin-top: 6px; }

/* ---------- 17.5 分站成绩弹窗 ---------- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: clamp(10px, 3vw, 40px);
}
.modal[hidden] { display: none; }
.modal__bd { position: absolute; inset: 0; background: rgba(3, 5, 8, .84); backdrop-filter: blur(7px); }
.modal__panel {
  position: relative; width: min(1080px, 100%); max-height: min(90vh, 920px);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1) 70%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.99); } }
.modal__bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  flex: none;
}
.modal__kicker {
  font-family: var(--font-display); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brand);
}
.modal__x {
  margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg-1);
  font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s;
}
.modal__x:hover { border-color: var(--brand); color: var(--brand); }
.modal__title {
  font-family: var(--font-display); font-size: clamp(23px, 3.4vw, 36px); font-weight: 700;
  text-transform: uppercase; line-height: 1.05; padding: 18px 22px 0; flex: none;
}
.modal__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  padding: 12px 22px 0; color: var(--fg-2); font-size: 12.5px; flex: none;
}
.modal__tabs {
  display: flex; gap: 4px; padding: 18px 22px 0; overflow-x: auto;
  border-bottom: 1px solid var(--line); flex: none;
}
.modal__tab {
  flex: none; padding: 9px 16px; background: transparent; border: 0;
  border-bottom: 2px solid transparent; color: var(--fg-2); cursor: pointer;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.modal__tab:hover { color: var(--fg-0); }
.modal__tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.modal__body { padding: 20px 22px 26px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }

.rsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 20px; }
.rsum__cell { background: var(--bg-0); padding: 14px 16px 16px; }
.rsum__label { font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.rsum__val {
  font-family: var(--font-display); font-size: 17px; font-weight: 700; text-transform: uppercase;
  margin-top: 8px; line-height: 1.1; word-break: break-word;
}
.rsum__val small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--fg-2); text-transform: none; letter-spacing: .04em; margin-top: 5px; }

.rfast {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; margin-bottom: 14px;
  background: linear-gradient(100deg, rgba(212, 175, 55, .14), transparent 70%);
  border-left: 3px solid var(--gold);
}
.rfast--none { border-left-color: var(--line-strong); background: rgba(255, 255, 255, .02); }
.rfast__label { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.rfast b { font-family: var(--font-mono); font-size: 21px; color: var(--gold); font-variant-numeric: tabular-nums; }
.rfast--none b { color: var(--fg-3); }
.rfast__who { color: var(--fg-1); font-size: 13px; }

.rtable { min-width: 620px; }
.rtable tbody td { padding: 9px 12px; }
.rtable td.pos { width: auto; min-width: 62px; white-space: nowrap; }
.rtable tr.is-fastest td { background: rgba(212, 175, 55, .07); }
.rtable tr.is-fastest td.pos { color: var(--gold); }
.tag--fast { border-color: rgba(212, 175, 55, .55); color: var(--gold); margin-left: 6px; }
.tag--gold { border-color: rgba(212, 175, 55, .55); color: var(--gold); margin-left: 6px; }
.tag--sprint { border-color: rgba(34, 127, 196, .5); color: #7ab6ea; }
.gain { font-family: var(--font-display); font-weight: 700; }
.gain--up { color: #4fa88b; }
.gain--down { color: #c2452d; }
.rempty { color: var(--fg-3); padding: 20px 0; }

.round--result { cursor: pointer; opacity: 1; border-color: rgba(243, 152, 0, .28); }
.round--result:hover { border-color: var(--brand); transform: translateY(-3px); }
.round--result:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.round__cta {
  margin-top: 12px; font-family: var(--font-display); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.round__cta--wait { color: var(--fg-3); }
.round--done.round--result { opacity: 1; }


@media (max-width: 1280px) {
  .teams { grid-template-columns: repeat(3, 1fr); }
  .drivers { grid-template-columns: repeat(4, 1fr); }
  .calendar { grid-template-columns: repeat(3, 1fr); }
  .teamcards { grid-template-columns: repeat(3, 1fr); }
  .statgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__mark { width: min(62vw, 320px); right: -6%; opacity: 0.10; }
  .rsum { grid-template-columns: 1fr; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gut) 34px;
    background: #05070a;
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 58;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 18px 0;
    font-size: 19px;
    letter-spacing: .18em;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--brand); }
  .burger { display: grid; position: relative; z-index: 60; }
  .brand { gap: 9px; }
  .brand__sub { display: none; }
  .brand__logo { height: 26px; }
  .brand__ft { height: 30px; }
  .brand__sep { height: 24px; }
  .topbar__cta { display: none; }
  body.nav-open { overflow: hidden; }
  .hero__grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo__art { display: none; }
  .statgrid { grid-template-columns: 1fr; }
  /* 详情页：手机端改单列 —— 之前两列布局把文字挤成「一列一个字」，图也只占一小条 */
  .teamhero, .teamhero--noimg { grid-template-columns: 1fr; gap: 18px; }
  .teamhero__main { min-width: 0; }
  .teamhero__meta { gap: 8px 18px; }
  .teamhero__meta span { min-width: 0; word-break: break-word; }
  .teamhero__img { width: 100%; }
}
@media (max-width: 640px) {
  .teams, .drivers, .calendar, .teamcards { grid-template-columns: 1fr; }
  .hero__race { font-size: 70px; }
  .foot__cols { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100vh; height: 100%; border: 0; }
  .modal__body { padding: 16px 14px 24px; }
  .modal__title, .modal__meta, .modal__tabs { padding-left: 16px; padding-right: 16px; }
}

/* ==================== 队徽 / 简介 / 队歌 / 跨赛季阵容 ==================== */
.team__logo {
  width: 46px; height: 46px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #f2f3f5; border: 1px solid var(--line);
}
.team__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.team__seasons { display: flex; gap: 6px; margin: 6px 0 8px; }
.team__seasons span {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .12em;
  padding: 2px 7px; border: 1px solid var(--brand); color: var(--brand);
}

.intro {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  padding: 22px 24px; color: var(--fg-1); font-size: 14.5px; line-height: 1.85;
  white-space: pre-wrap;
}
.intro__loading { color: var(--fg-3); }

.anthem {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-2); border: 1px solid var(--line); padding: 20px 24px;
}
.anthem__play {
  flex: none; width: 56px; height: 56px; cursor: pointer;
  background: var(--brand); color: #14161a; border: 0;
  display: flex; align-items: center; justify-content: center;
  transform: skewX(var(--skew));
  transition: filter .16s, transform .16s;
}
.anthem__play:hover { filter: brightness(1.12); }
.anthem__play.is-playing { background: var(--fg-0); }
.anthem__icon { font-size: 17px; transform: skewX(calc(-1 * var(--skew))); line-height: 1; }
.anthem__meta { flex: 1; min-width: 0; }
.anthem__meta b { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; }
.anthem__bar {
  height: 4px; background: var(--line); position: relative;
  cursor: pointer; border-radius: 2px;
}
.anthem__bar i { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 2px; transition: width .2s linear; }
.anthem__bar b {
  position: absolute; top: 50%; left: 0; width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px; background: var(--brand); border-radius: 50%;
  transform: scale(0); transition: transform .14s;
  pointer-events: none;
}
.anthem__bar:hover b, .anthem__bar:focus b { transform: scale(1); }
.anthem__bar:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.anthem__bar:active i, .anthem__bar:hover i { transition: none; }
.anthem__time {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-size: 11px; color: var(--fg-3);
  font-variant-numeric: tabular-nums; margin-top: 7px;
}

.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.seasonblock { background: var(--bg-2); border: 1px solid var(--line); }
.seasonblock__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.seasonblock__year {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--brand);
  background: rgba(243, 152, 0, .12); padding: 3px 9px;
}
.seasonblock__yr {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .08em;
  color: var(--brand); border: 1px solid rgba(243, 152, 0, .5);
  padding: 1px 5px; flex: none; font-variant-numeric: tabular-nums;
}
.seasonblock__team {
  font-family: var(--font-display); font-size: 14px; color: var(--fg-0);
  text-transform: uppercase; letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.seasonblock__team:hover { color: var(--brand); }
.seasonblock__list { padding: 6px 0; }
.seasonblock__row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13.5px; color: var(--fg-1);
}
a.seasonblock__row:hover { background: var(--bg-3); }
.seasonblock__row.is-reserve .seasonblock__name { color: var(--fg-2); }
.seasonblock__name { font-family: var(--font-display); color: var(--fg-0); }
.seasonblock__tag {
  font-size: 10px; letter-spacing: .1em; color: var(--fg-3);
  border: 1px solid var(--line); padding: 1px 6px;
}
.seasonblock__no {
  margin-left: auto; font-family: var(--font-display);
  font-variant-numeric: tabular-nums; color: var(--fg-3);
}

@media (max-width: 640px) {
  .anthem { flex-direction: column; align-items: stretch; text-align: center; }
  .anthem__play { align-self: center; }
  .seasons { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==================== 分站细则（每站得分矩阵） ==================== */
.segbar { display: inline-flex; gap: 2px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--bg-1); padding: 3px; }
.segbar__btn {
  appearance: none; border: 0; background: transparent; color: var(--fg-2);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .08em;
  padding: 9px 18px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.segbar__btn:hover { color: var(--fg-1); }
.segbar__btn.is-active { background: var(--brand); color: #0b0d10; }

.dc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--fg-2); }
.dc-legend__i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.dc-legend__i--gold { background: linear-gradient(180deg, #F2C75C, #C79A2E); color: #2b2008; }
.dc-legend__i--silver { background: linear-gradient(180deg, #D7DBE2, #9BA3AF); color: #1c1f24; }
.dc-legend__i--bronze { background: linear-gradient(180deg, #D79A6A, #A2653A); color: #24140a; }
.dc-legend__note { flex: 1 1 320px; color: var(--fg-3); font-size: 11.5px; }

.tablewrap--detail { overflow-x: auto; -webkit-overflow-scrolling: touch; }.data--detail { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.data--detail th, .data--detail td { white-space: nowrap; }
.dc-sticky {
  position: sticky; left: 0; z-index: 2; background: var(--bg-1);
  border-right: 1px solid var(--line); min-width: 190px;
}
.data--detail thead .dc-sticky { z-index: 3; background: var(--bg-2); }
.dc-name { display: flex; align-items: center; gap: 10px; }
.dc-pos { color: var(--fg-3); font-variant-numeric: tabular-nums; min-width: 20px; }
.dc-r { text-align: center; min-width: 74px; padding: 6px 4px; }
.dc-r__no { display: block; font-size: 10px; color: var(--brand); letter-spacing: .1em; }
.dc-r__nm { display: block; font-size: 11.5px; color: var(--fg-2); font-weight: 400; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.dc { text-align: center; font-variant-numeric: tabular-nums; min-width: 62px; }
.dc--none { color: var(--fg-3); }
.dc--sum { color: var(--fg-3); border-top: 1px solid var(--line); }
.dc-total { font-weight: 700; color: var(--fg-1); border-left: 1px solid var(--line); }
.dc--gold { background: linear-gradient(180deg, rgba(242,199,92,.42), rgba(199,154,46,.26)); color: #FFE9A8; font-weight: 700; }
.dc--silver { background: linear-gradient(180deg, rgba(215,219,226,.30), rgba(155,163,175,.18)); color: #EEF1F6; font-weight: 700; }
.dc--bronze { background: linear-gradient(180deg, rgba(215,154,106,.34), rgba(162,101,58,.20)); color: #F0BC8E; font-weight: 700; }
.data--detail tbody tr:hover td { background-color: rgba(255,255,255,.035); }
.data--detail tbody tr:hover td.dc--gold { background: linear-gradient(180deg, rgba(242,199,92,.38), rgba(199,154,46,.24)); }
.data--detail tbody tr:hover td.dc--silver { background: linear-gradient(180deg, rgba(215,219,226,.28), rgba(155,163,175,.18)); }
.data--detail tbody tr:hover td.dc--bronze { background: linear-gradient(180deg, rgba(215,154,106,.32), rgba(162,101,58,.20)); }
.data--detail tfoot td { border-top: 1px solid var(--line); }

/* ==================== B 站视频链接 ==================== */
.round__video {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 12.5px; color: var(--brand); text-decoration: none;
  border: 1px solid rgba(243,152,0,.35); padding: 5px 11px;
  background: transparent; font-family: inherit; cursor: pointer;
}
.round__video:hover { background: rgba(243,152,0,.12); border-color: var(--brand); }
.round__video__n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 1px;
  background: rgba(243,152,0,.16); border: 1px solid rgba(243,152,0,.4);
  font-size: 10.5px; line-height: 1; font-family: var(--font-display);
}
.rvid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; }
.rvid__label { font-size: 11px; letter-spacing: .14em; color: var(--fg-3); text-transform: uppercase; }
.rvid__item {
  display: inline-flex; align-items: center; padding: 6px 12px; font-size: 12.5px;
  border: 1px solid var(--line); color: var(--fg-1); text-decoration: none; background: var(--bg-2);
  font-family: inherit; cursor: pointer;
}
.rvid__item:hover { border-color: var(--brand); color: var(--brand); }

/* ==================== 视频选择弹窗 ==================== */
.modal__panel--video { width: min(1080px, 100%); }
.vbody { display: flex; flex-direction: column; gap: 16px; }
.vplayer { display: flex; flex-direction: column; gap: 10px; }
.vplayer__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.vplayer__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vplayer__now {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .1em;
  color: var(--brand); border: 1px solid rgba(243,152,0,.35); padding: 3px 9px; white-space: nowrap;
}
.vplayer__title { flex: 1 1 220px; font-size: 12.5px; color: var(--fg-2); line-height: 1.45; }
.vplayer__go { font-size: 12.5px; color: var(--fg-3); text-decoration: none; white-space: nowrap; }
.vplayer__go:hover { color: var(--brand); }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.vlist__item {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left;
  padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--fg-1); font-family: inherit; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.vlist__item:hover { border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.vlist__item[aria-current="true"] { border-color: var(--brand); background: rgba(243,152,0,.10); }
.vlist__label {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase;
}
.vlist__item[aria-current="false"] .vlist__label { color: var(--fg-3); }
.vlist__title { font-size: 12px; color: var(--fg-2); line-height: 1.4; }
.vlist__date { font-size: 10.5px; color: var(--fg-3); letter-spacing: .08em; }

/* 两栏：播放器 + 视频清单（桌面端） */
@media (min-width: 861px) {
  .vbody--split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
  .vbody--split .vplayer { min-width: 0; }
  .vbody--split .vlist {
    grid-template-columns: 1fr; max-height: min(62vh, 560px); overflow-y: auto;
    padding-right: 4px; align-content: start;
  }
  .vbody--split .vlist__item { padding: 9px 11px; gap: 4px; }
  .vbody--split .vlist__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
/* ================================================================
   15. 更多（More）下拉菜单
   ================================================================ */
.nav__more { position: relative; }
.nav__morebtn {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 15px; color: var(--fg-1);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.16s;
}
.nav__morebtn:hover,
.nav__more.is-open .nav__morebtn,
.nav__morebtn[aria-current="page"] { color: var(--fg-0); }
.nav__morebtn svg { transition: transform 0.18s ease; }
.nav__more.is-open .nav__morebtn svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 292px;
  padding: 8px; z-index: 70;
  background: #0d1117; border: 1px solid var(--line-strong);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
}
.nav__menu[hidden] { display: none; }
.nav__menu a {
  display: block; padding: 12px 14px;
  border-bottom: 1px solid var(--line); transition: background 0.16s;
}
.nav__menu a:last-child { border-bottom: 0; }
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: rgba(243, 152, 0, .08); }
.nav__menu-t {
  display: block; color: var(--fg-0);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
}
.nav__menu-s { display: block; margin-top: 5px; color: var(--fg-3); font-size: 12px; }

/* ================================================================
   16. 面对面对比（Head to Head）
   ================================================================ */
.cmp { margin-top: 22px; }
.cmp__pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.cmp__pick { display: block; }
.cmp__pick > span {
  display: block; margin-bottom: 7px; color: var(--fg-3);
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
}
.cmp__sel {
  width: 100%; padding: 12px 14px; color: var(--fg-0);
  font-family: var(--font-body), var(--font-cn); font-size: 14.5px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 2px;
}
.cmp__sel:focus { border-color: var(--brand); }
.cmp__board { background: var(--bg-1); border: 1px solid var(--line); }
.cmp__head { display: grid; grid-template-columns: 1fr 92px 1fr; border-bottom: 1px solid var(--line); }
.cmp__side { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; min-width: 0; }
.cmp__side--r { align-items: flex-end; text-align: right; }
.cmp__vs {
  display: grid; place-items: center; color: var(--brand);
  font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.12em;
  background: rgba(243, 152, 0, .06); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.cmp__logo {
  width: 86px; height: 86px; display: grid; place-items: center;
  background: #fff; overflow: hidden;
}
.cmp__logo img { width: 100%; height: 100%; object-fit: contain; }
.cmp__logo--none { background: var(--bg-2); color: var(--fg-3); font-size: 11px; letter-spacing: 0.1em; }
.cmp__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; word-break: break-word; }
.cmp__sub { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cmp__abbr {
  padding: 3px 9px; color: #11151b;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
}
.cmp__season { color: var(--fg-3); font-size: 12px; }
.cmp__row { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.cmp__row:last-child { border-bottom: 0; }
.cmp__label {
  padding: 12px 8px; text-align: center; color: var(--fg-3);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.cmp__val { padding: 12px 20px; font-size: 15px; word-break: break-word; }
.cmp__val--r { text-align: right; }
.cmp__val.is-win { color: var(--brand); font-weight: 700; }
.cmp__val small { display: block; color: var(--fg-3); font-size: 12px; font-weight: 400; }
.cmp__dot { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; }
.cmp__link { color: var(--fg-2); border-bottom: 1px solid var(--line-strong); }
.cmp__link:hover { color: var(--brand); }

@media (max-width: 900px) {
  .nav__more { border-bottom: 1px solid var(--line); }
  .nav__morebtn {
    width: 100%; padding: 18px 0; font-size: 19px; letter-spacing: 0.18em;
    justify-content: space-between;
  }
  .nav__menu {
    position: static; min-width: 0; padding: 0 0 8px;
    background: rgba(255, 255, 255, .02); border: 0; box-shadow: none;
  }
  .nav__menu a { padding: 12px 0 12px 14px; }
  .nav__menu-t { font-size: 15px; letter-spacing: 0.1em; }
  .cmp__pickers { grid-template-columns: 1fr; }
  .cmp__head { grid-template-columns: 1fr 56px 1fr; }
  .cmp__side { padding: 16px 12px; }
  .cmp__name { font-size: 15px; }
  .cmp__logo { width: 56px; height: 56px; }
  .cmp__row { grid-template-columns: 1fr 86px 1fr; }
  .cmp__label { font-size: 10px; letter-spacing: 0.08em; }
  .cmp__val { padding: 10px 12px; font-size: 13.5px; }
}
/* 顶部鸣谢条：手机端压成一行（横向可滑），别吃掉首屏 */
@media (max-width: 700px) {
  .sponsorbar { padding: 6px 0; gap: 8px; }
  .sponsorbar .wrap {
    flex-wrap: nowrap; gap: 14px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sponsorbar .wrap::-webkit-scrollbar { display: none; }
  .sponsorbar__item { gap: 7px; flex: none; }
  .sponsorbar__sep { display: none; }
  .sponsorbar__logo { width: 26px; height: 26px; padding: 2px; }
  .sponsorbar__label { display: none; }
  .sponsorbar__text { font-size: 12px; white-space: nowrap; }
  .sponsorbar__bili { display: none; }
}
/* ================================================================
   17. 积分折线图（Points Trend）
   ================================================================ */
.chart { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.chart__side { display: flex; flex-direction: column; max-height: 640px; border: 1px solid var(--line); background: var(--bg-1); }
.chart__tools { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.chart__search {
  width: 100%; padding: 9px 11px; color: var(--fg-0); font-size: 13.5px;
  font-family: var(--font-body), var(--font-cn);
  background: var(--bg-0); border: 1px solid var(--line); border-radius: 2px;
}
.chart__acts { display: flex; gap: 6px; }
.chart__acts button {
  flex: 1; padding: 7px 6px; color: var(--fg-2); border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; transition: color 0.16s, border-color 0.16s;
}
.chart__acts button:hover { color: var(--brand); border-color: var(--brand); }
.chart__list { overflow-y: auto; padding: 6px 0; }
.chart__item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.chart__item:hover { background: rgba(255, 255, 255, .04); }
.chart__item input { accent-color: var(--brand); flex: none; }
.chart__sw { width: 10px; height: 10px; flex: none; border-radius: 2px; }
.chart__nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart__tm { color: var(--fg-3); font-size: 11px; letter-spacing: 0.06em; }
.chart__pt { min-width: 44px; text-align: right; color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart__main { min-width: 0; padding: 14px 16px 12px; border: 1px solid var(--line); background: var(--bg-1); }
.chart__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chart__chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  color: var(--fg-1); border: 1px solid var(--line); font-size: 12px; transition: color 0.16s, border-color 0.16s;
}
.chart__chip:hover { color: var(--fg-0); border-color: var(--brand); }
.chart__chipdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chart__chipp { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart__mode { display: flex; flex: none; border: 1px solid var(--line); }
.chart__mode button {
  padding: 7px 12px; color: var(--fg-2);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em;
}
.chart__mode button.is-on { color: var(--brand); background: rgba(243, 152, 0, .10); }
.chart__canvas { position: relative; }
.chart__svg { display: block; width: 100%; height: auto; }
.chart__grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart__zero { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 4 4; }
.chart__ylabel, .chart__xlabel { fill: var(--fg-3); font-size: 11px; font-family: var(--font-display); }
.chart__ylabel { text-anchor: end; }
.chart__xlabel { text-anchor: middle; }
.chart__dot { cursor: pointer; }
.chart__dot:hover { r: 5.5; }
.chart__empty { padding: 18px 4px; color: var(--fg-3); font-size: 13px; }
.chart__note { margin: 10px 0 0; color: var(--fg-3); font-size: 12px; }
.chart__tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 132px; padding: 8px 10px;
  background: rgba(8, 11, 15, .96); border: 1px solid var(--line-strong); font-size: 12px;
}
.chart__tip b { display: block; margin-bottom: 4px; color: var(--fg-0); font-family: var(--font-display); font-size: 13px; }
.chart__tip span { display: block; color: var(--fg-2); font-size: 11.5px; }
.chart__tabs { display: flex; gap: 4px; }
.chart__tabs button {
  padding: 7px 16px; color: var(--fg-2); border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.12em;
}
.chart__tabs button.is-on { color: var(--brand); border-color: var(--brand); background: rgba(243, 152, 0, .08); }

@media (max-width: 900px) {
  .chart { grid-template-columns: 1fr; }
  .chart__side { max-height: 300px; }
  .chart__bar { flex-direction: column; gap: 10px; }
}
/* 折线图：冲刺赛制站底色 + 柱状图 + 数值标签 */
.chart__sprint { fill: rgba(255, 255, 255, .035); }
.chart__bar { cursor: pointer; }
.chart__bar:hover { opacity: 1; }
.chart__val { fill: var(--fg-2); font-size: 9.5px; font-family: var(--font-body); text-anchor: middle; }
/* 折线图的数值标签：每个折点都显示，压深色描边保证叠在线上也看得清 */
.chart__modes { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.chart__val--line {
  fill: var(--fg-1); font-size: 10px; font-family: var(--font-body);
  paint-order: stroke; stroke: rgba(8, 11, 15, .9); stroke-width: 3px; stroke-linejoin: round;
}

/* ================================================================
   18. 账号：顶栏用户区 / 登录注册 / 个人资料
   ================================================================ */
.userbar { display: flex; align-items: center; gap: 10px; }
.userbar__login {
  padding: 9px 16px; color: var(--fg-1); border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  transition: color 0.16s, border-color 0.16s;
}
.userbar__login:hover { color: var(--brand); border-color: var(--brand); }
.userbar__me { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-1); font-size: 13px; }
.userbar__me:hover { color: var(--fg-0); }
.userbar__me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #f2f3f5; }
.userbar__ph {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #11151b; font-family: var(--font-display); font-weight: 700;
}
.userbar__out {
  color: var(--fg-3); font-size: 12px; letter-spacing: 0.08em; transition: color 0.16s;
}
.userbar__out:hover { color: var(--brand); }

.auth { max-width: 460px; margin: 0 auto; }
.auth__tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth__tab {
  flex: 1; padding: 12px 0; color: var(--fg-2); border-bottom: 2px solid transparent;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
}
.auth__tab.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.auth__form { display: block; }
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block; margin-bottom: 7px; color: var(--fg-3);
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
}
.field input {
  width: 100%; padding: 12px 14px; color: var(--fg-0); font-size: 15px;
  font-family: var(--font-body), var(--font-cn);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 2px;
}
.field input:focus { border-color: var(--brand); outline: none; }
.auth__submit { width: 100%; margin-top: 6px; justify-content: center; }
.auth__msg { min-height: 20px; margin: 4px 0 10px; font-size: 13px; color: var(--fg-3); }
.auth__msg.is-err { color: #ff6b6b; }
.auth__msg.is-ok { color: #4fa88b; }
.auth__tip { margin-top: 16px; color: var(--fg-3); font-size: 12px; line-height: 1.6; }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; }
.profile__card { display: flex; gap: 22px; align-items: center; padding: 24px; border: 1px solid var(--line); background: var(--bg-1); }
.profile__avatar { position: relative; width: 104px; height: 104px; flex: none; }
.profile__avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: var(--bg-2); border: 1px solid var(--line);
}
.profile__avatar.is-empty img { background: var(--bg-2); }
.profile__edit {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  padding: 3px 12px; color: #11151b; background: var(--brand); border-radius: 2px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; white-space: nowrap;
}
.profile__meta { min-width: 0; }
.profile__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; word-break: break-word; }
.profile__line { margin-top: 6px; color: var(--fg-3); font-size: 13px; }
.profile__panel { padding: 24px; border: 1px solid var(--line); background: var(--bg-1); }
.profile__panel h2 { margin-bottom: 18px; font-size: 18px; }
.btn--ghost { width: 100%; margin-top: 18px; justify-content: center; color: var(--fg-2); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--brand); border-color: var(--brand); }

@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .profile__card { flex-direction: column; text-align: center; }
}

/* ================================================================
   19. 管理后台
   ================================================================ */
.admin__gate { max-width: 460px; }
.admin__bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin__bar .chart__search { max-width: 320px; }
.admin__table { border: 1px solid var(--line); background: var(--bg-1); overflow-x: auto; }
.admin__tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin__tbl th {
  padding: 11px 14px; text-align: left; color: var(--fg-3); white-space: nowrap;
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.admin__tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin__tbl tr:last-child td { border-bottom: 0; }
.admin__tbl tr:hover td { background: rgba(255, 255, 255, .025); }
.admin__tbl img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f2f3f5; }
.admin__noav { color: var(--fg-3); font-size: 12px; }
.admin__uname { font-weight: 600; color: var(--fg-0); }
.admin__ok { color: #4fa88b; font-size: 12px; }
.admin__ops { display: flex; gap: 6px; }
.admin__ops button {
  padding: 4px 10px; color: var(--fg-2); border: 1px solid var(--line); font-size: 12px;
  transition: color 0.16s, border-color 0.16s;
}
.admin__ops button:hover { color: var(--brand); border-color: var(--brand); }
.admin__ops button[data-act="del"]:hover { color: #ff6b6b; border-color: #ff6b6b; }
.userbar__admin {
  padding: 4px 10px; color: var(--brand); border: 1px solid rgba(243, 152, 0, .45);
  font-family: var(--font-display); font-size: 11px; letter-spacing: .12em;
}
.userbar__admin:hover { background: rgba(243, 152, 0, .12); }
/* 密码框：显示/隐藏切换 */
.field--eye { position: relative; }
.field--eye input { padding-right: 44px; }
.field__eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; color: var(--fg-3);
  transition: color 0.16s;
}
.field__eye:hover { color: var(--brand); }

/* 长用户名不撑坏顶栏：导航不换行 + 用户名超长省略 */
.nav a { white-space: nowrap; }
.userbar__me > span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile__avatar.is-empty img { display: none; }
.profile__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--brand); color: #11151b; border-radius: 50%;
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
}
/* ================================================================
   20. 手机端登录入口（抽屉里的用户区）
   ================================================================ */
.nav__user { display: none; }
.nav__usermeta { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.nav__usermeta img, .nav__usermeta .userbar__ph { width: 30px; height: 30px; border-radius: 50%; }
.nav__username { font-family: var(--font-display); font-size: 16px; letter-spacing: .08em; color: var(--fg-0); }
.nav__userlink {
  display: block; padding: 13px 0; color: var(--fg-1);
  font-family: var(--font-display); font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
  border-top: 1px solid var(--line);
}
.nav__userlink:hover { color: var(--brand); }
.nav__userlink--out { color: var(--fg-3); }

@media (max-width: 900px) {
  /* 顶栏只留头像圆点，名字/退出/管理在抽屉里 */
  .userbar__me > span { display: none; }
  .userbar__out { display: none; }
  .userbar__admin { padding: 4px 8px; }
  .nav__user { display: block; margin-top: 6px; border-top: 1px solid var(--line); }
}

/* ================================================================
   21. 关注（一个车手 + 一个车队）
   ================================================================ */
.followbtn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 9px 18px; color: var(--fg-1); border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  transition: color .16s, border-color .16s, background .16s;
}
.followbtn:hover { color: var(--brand); border-color: var(--brand); }
.followbtn.is-on { color: #11151b; background: var(--brand); border-color: var(--brand); }

.followgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.followcard { padding: 18px 20px; border: 1px solid var(--line); background: var(--bg-1); }
.followcard__head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.followcard__kind {
  padding: 3px 8px; color: var(--brand); border: 1px solid rgba(243, 152, 0, .4);
  font-family: var(--font-display); font-size: 10px; letter-spacing: .16em;
}
.followcard__name {
  font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.followcard__abbr {
  padding: 2px 7px; color: #11151b; font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
}
.followcard__x {
  margin-left: auto; color: var(--fg-3); font-size: 20px; line-height: 1; padding: 0 4px;
}
.followcard__x:hover { color: #ff6b6b; }
.followcard__line { display: flex; gap: 12px; padding: 5px 0; font-size: 13px; }
.followcard__line > span { flex: none; width: 74px; color: var(--fg-3); font-size: 12px; }
.followcard__line > b { font-weight: 600; }

/* ================================================================
   22. 关注 v2：无限关注 + 特别关注 + 粉丝数
   ================================================================ */
.followgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.followbtn--star { border-color: rgba(243, 152, 0, .45); }
.followbtn--star:hover { color: var(--brand); border-color: var(--brand); }
.followbtn--star.is-on { color: var(--brand); background: transparent; border-color: var(--brand); }

.followers { color: var(--fg-3); font-size: 12px; }
.followers b { color: var(--brand); }

.followcard--star { border-color: rgba(243, 152, 0, .45); box-shadow: inset 3px 0 0 var(--brand); }
.followcard__head { flex-wrap: nowrap; row-gap: 6px; }
.followcard__kind { flex: none; white-space: nowrap; }
.followcard__name {
  flex: 1 1 auto; min-width: 30px; white-space: normal; overflow-wrap: anywhere;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2;
}
.followcard__abbr { flex: none; }
.followcard__starflag {
  flex: none; padding: 3px 8px; color: #11151b; background: var(--brand);
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em;
}
.followcard__x { flex: none; margin-left: auto; }
.followcard__tools { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.followcard__starbtn {
  width: 100%; padding: 8px 10px; color: var(--fg-2); background: none;
  border: 1px solid var(--line); font-family: var(--font-display); font-size: 11px; letter-spacing: .06em;
  transition: color .16s, border-color .16s;
}
.followcard__starbtn:hover { color: var(--brand); border-color: var(--brand); }

.followlist { margin-top: 18px; }
.followlist__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.followlist__label {
  color: var(--fg-3); font-family: var(--font-display); font-size: 11px; letter-spacing: .14em;
}
.followchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line); background: var(--bg-1);
}
.followchip a { color: var(--fg-1); font-size: 13px; font-weight: 600; }
.followchip a:hover { color: var(--brand); }
.followchip__star, .followchip__x {
  border: 0; background: none; color: var(--fg-3); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px;
}
.followchip__star:hover { color: var(--brand); }
.followchip__x:hover { color: #ff6b6b; }
/* ==== /关注 v2 结束 ==== */

/* ==== NEWS_V2 CSS BEGIN ==== */
/* ============================================================
   NEWS_V2 · 资讯（列表 / 详情 / 评论 / 媒体编辑台）
   ============================================================ */

/* ---- 卡片 ---- */
.newsfeed, .newsgrid { display: grid; gap: 16px; }
.newsfeed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.newsgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 900px) { .newsfeed { grid-template-columns: 1fr; } }

.newscard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card);
  transition: border-color .18s ease, transform .18s ease;
}
.newscard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.newscard__link { display: block; }
.newscard__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.newscard__img img { width: 100%; height: 100%; object-fit: cover; }
.newscard__img--none {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-1));
}
.newscard__img--none span {
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  letter-spacing: .18em; color: rgba(243, 152, 0, .35); transform: skewX(-8deg);
}
.newscard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.newscard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.newscard__title {
  margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700;
  line-height: 1.28; letter-spacing: .01em;
}
.newscard__title a:hover { color: var(--brand); }
.newscard__excerpt {
  margin: 0; color: var(--fg-1); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.newscard__meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 4px;
  color: var(--fg-3); font-size: 12px;
}
.newscard__why { color: var(--brand); }

/* ---- 标签 ---- */
.newstag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; font-size: 11px; line-height: 1.6;
  border: 1px solid var(--line); color: var(--fg-1); background: rgba(255, 255, 255, .03);
}
.newstag--driver { border-color: rgba(34, 127, 196, .55); color: #7cc0f5; }
.newstag--team { border-color: rgba(243, 152, 0, .5); color: var(--brand); }
.newstag--custom { border-color: rgba(215, 187, 185, .45); color: var(--cdra); }
.newstag button { color: inherit; opacity: .6; font-size: 13px; line-height: 1; padding: 0 0 0 2px; }
.newstag button:hover { opacity: 1; }

/* ---- 筛选条 ---- */
.newsfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.newsfilter {
  padding: 7px 14px; font-size: 13px; color: var(--fg-1);
  border: 1px solid var(--line); background: var(--bg-card);
}
.newsfilter:hover { border-color: var(--line-strong); color: var(--fg-0); }
.newsfilter.is-on { border-color: var(--brand); color: var(--brand); }
.newsfilter i { font-style: normal; color: var(--fg-3); font-size: 11px; }

/* ---- 详情页 ---- */
.article { max-width: 880px; margin: 0 auto; }
.artback {
  display: inline-block; margin-bottom: 20px; color: var(--fg-2); font-size: 13px;
}
.artback:hover { color: var(--brand); }
.arthead { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.arttitle {
  margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(26px, 4vw, 44px);
  font-weight: 700; line-height: 1.14;
}
.artmeta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--fg-3); font-size: 13px; }
.artimg { margin: 22px 0; }
.artimg img { width: 100%; height: auto; border: 1px solid var(--line); }
.artbody { margin: 24px 0; font-size: 16px; line-height: 1.8; color: var(--fg-1); }
.artbody:empty { display: none; }
.artedit { margin-bottom: 10px; }

/* ---- 评论 ---- */
.cmtsec { max-width: 880px; margin: 46px auto 0; }
.cmt { border: 1px solid var(--line); background: var(--bg-card); padding: 14px 16px; margin-bottom: 12px; }
.cmt--reply { margin-left: 34px; background: var(--bg-1); }
.cmt__hd { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg-2); }
.cmt__hd b { color: var(--fg-0); font-size: 14px; }
.cmt__hd img, .cmt__ph {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--bg-3); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--fg-2);
}
.cmt__bd { margin: 9px 0 10px; font-size: 14px; line-height: 1.65; color: var(--fg-1); white-space: pre-wrap; }
.cmt__ops { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--fg-3); }
.cmt__like:hover, .cmt__rp:hover, .cmt__del:hover { color: var(--fg-0); }
.cmt__like.is-on { color: var(--brand); }
.cmt__del:hover { color: #e2685f; }
.cmt__replybox { margin-top: 10px; }

.cmtform { border: 1px solid var(--line); background: var(--bg-card); padding: 14px 16px; margin-bottom: 16px; }
.cmtform textarea, .cmtform input {
  width: 100%; background: var(--bg-1); border: 1px solid var(--line); color: var(--fg-0);
  padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical;
}
.cmtform textarea:focus, .cmtform input:focus { outline: none; border-color: var(--brand); }
.cmtform__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cmtform--sm { display: flex; gap: 8px; align-items: center; padding: 10px; margin: 0; }
.cmtform--sm input { flex: 1; }
.cmtform button {
  padding: 8px 18px; background: var(--brand); color: #14100a; font-weight: 700;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .04em;
}
.cmtform button:hover { background: var(--brand-hot); }
.cmtform__msg { font-size: 12px; color: var(--fg-2); }
.cmtform__msg.is-err { color: #e2685f; }

/* ---- 媒体编辑台 ---- */
.nweditor { border: 1px solid var(--line); background: var(--bg-card); padding: 22px; max-width: 900px; }
.nwfld { display: block; margin-bottom: 18px; }
.nwfld > span {
  display: block; margin-bottom: 8px; font-family: var(--font-display);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
}
.nwfld input[type="text"], .nwfld textarea {
  width: 100%; background: var(--bg-1); border: 1px solid var(--line); color: var(--fg-0);
  padding: 11px 13px; font: inherit; font-size: 15px; resize: vertical;
}
.nwfld input[type="text"]:focus, .nwfld textarea:focus { outline: none; border-color: var(--brand); }
.nwimg { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.nwimg input[type="file"] { font-size: 13px; color: var(--fg-2); }
.nwimg__prev img { max-width: 320px; border: 1px solid var(--line); }
.nwtagpick { display: flex; flex-wrap: wrap; gap: 10px; }
.nwtagpick select, .nwtagpick input {
  background: var(--bg-1); border: 1px solid var(--line); color: var(--fg-0);
  padding: 9px 11px; font: inherit; font-size: 14px; max-width: 280px;
}
.nwtagpick select:focus, .nwtagpick input:focus { outline: none; border-color: var(--brand); }
.nwtaglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nwops { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nwmsg { font-size: 13px; color: var(--fg-2); }
.nwmsg.is-err { color: #e2685f; }
.nwbtn {
  padding: 8px 16px; font-size: 13px; border: 1px solid var(--line); color: var(--fg-1);
  background: var(--bg-1);
}
.nwbtn:hover { border-color: var(--brand); color: var(--brand); }
.nwbtn--ghost { background: transparent; }
.nwbtn--danger:hover { border-color: #e2685f; color: #e2685f; }

.newsmine { border: 1px solid var(--line); background: var(--bg-card); }
.newsmine__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.newsmine__row:last-child { border-bottom: 0; }
.newsmine__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.newsmine__main b { font-size: 15px; font-weight: 600; }
.newsmine__main span { font-size: 12px; color: var(--fg-3); }
.newsmine__ops { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- 顶栏加了「资讯」之后，窄一点的屏幕上别挤到 ---- */
@media (max-width: 1440px) {
  .nav a { padding-inline: 10px; font-size: 12px; letter-spacing: .12em; }
  .nav a::after { left: 10px; right: 10px; }
  .topbar__right { gap: 12px; }
  .topbar__cta { padding: 9px 14px; }
}
.userbar__me span, .userbar__admin {
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* ==== NEWS_V2 CSS END ==== */
