/* ==========================================================================
   BSPORT 赛场 — 共享样式 /assets/site.css
   夜场大屏：左侧竖向轨道、2px 阅读进度、深墨绿场域 + 荧光青绿 + 信号橙
   ========================================================================== */

:root {
  --ink: #06120F;
  --ink-2: #0C1F19;
  --panel: #143029;
  --grass: #1E5C46;
  --neon: #47F5B0;
  --deep: #0FA97B;
  --signal: #FF6A2B;
  --haze: #FFC7A8;
  --paper: #F2F6F3;
  --muted: #93A8A0;
  --text: #EAF3EF;

  --rail: 84px;
  --topbar: 64px;

  --line: rgba(71, 245, 176, 0.22);
  --line-soft: rgba(234, 243, 239, 0.12);

  --display: "BSPORT Narrow", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

a { color: inherit; text-decoration: none; }

main { display: block; }

#main-content { scroll-margin-top: 88px; }
#main-content:focus { outline: none; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  padding-left: 0;
  padding-top: var(--topbar);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open { overflow: hidden; }

@media (min-width: 900px) {
  body {
    padding-left: var(--rail);
    padding-top: 0;
  }
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--neon);
  color: #04140F;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 顶部进度线 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(234, 243, 239, 0.07);
  pointer-events: none;
}

.progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--deep), var(--neon) 72%, var(--signal));
  box-shadow: 0 0 14px rgba(71, 245, 176, 0.55);
}

/* ---------- header / 竖向轨道 ---------- */
.site-header {
  position: relative;
  z-index: 70;
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 18px;
  background: linear-gradient(180deg, #08170F 0%, #06120F 46%, #0A1D16 100%);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -1px;
  width: 1px;
  height: 56%;
  background: linear-gradient(180deg, transparent, var(--neon), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rail__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(71, 245, 176, 0.14);
}

.rail__cn {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.34em;
  color: var(--text);
}

.rail__en {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail__meta { display: flex; justify-content: center; }

.rail__round {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--signal);
  border: 1px solid rgba(255, 106, 43, 0.38);
  background: rgba(255, 106, 43, 0.07);
  border-radius: 999px;
  padding: 12px 5px;
}

.rail__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.rail__toggle:hover {
  border-color: var(--neon);
  background: rgba(71, 245, 176, 0.08);
}

.rail__toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.rail__toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
}

.rail__toggle-bars i:nth-child(2) { width: 70%; }

.rail__toggle-text {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.rail__cta {
  writing-mode: vertical-rl;
  padding: 18px 6px;
  border-radius: 999px;
  background: var(--neon);
  color: #04140F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.rail__cta:hover {
  background: var(--haze);
  transform: translateY(-2px);
}

@media (max-height: 640px) and (min-width: 900px) {
  .rail__meta { display: none; }
}

/* ---------- 全站目录抽屉 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 330px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px 30px;
  background: linear-gradient(160deg, #0C1F19 0%, #06120F 72%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
}

.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
}

@media (min-width: 900px) {
  .site-nav {
    left: var(--rail);
    width: 380px;
    padding: 32px 28px 34px;
  }
}

.site-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.site-nav__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav__close:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 10px;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav__link:hover {
  background: rgba(71, 245, 176, 0.09);
  color: var(--neon);
}

.site-nav__link[aria-current="page"] {
  background: rgba(71, 245, 176, 0.1);
  color: var(--neon);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--signal); }

.site-nav__index {
  flex: none;
  min-width: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-nav__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-nav__note {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.site-nav__mail {
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--neon);
  border-bottom: 1px solid rgba(71, 245, 176, 0.42);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 10, 8, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.nav-scrim[data-visible] {
  opacity: 1;
  visibility: visible;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 68px 0 26px;
  background: linear-gradient(180deg, #0C1F19 0%, #06120F 58%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(158deg, rgba(71, 245, 176, 0.1), transparent 62%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.footer__logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.footer__logo span {
  margin-left: 8px;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--neon);
}

.footer__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 24px;
  padding: 38px 0 42px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer__title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--neon);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.86;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--neon);
  opacity: 1;
  padding-left: 4px;
}

.footer__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer__text strong {
  color: var(--text);
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__note { color: var(--signal); }

/* ---------- 布局 ---------- */
.shell {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .shell { width: min(100% - 72px, 1240px); }
}

.section { padding-block: clamp(56px, 8vw, 110px); }

.section--paper {
  background: var(--paper);
  color: #0C1F19;
}

.section--paper .label,
.section--paper .stat__label,
.section--paper .card__meta { color: #3D5A50; }

.section--paper .stat__num { color: var(--deep); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--5-7 { grid-template-columns: 5fr 7fr; gap: 44px; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; gap: 44px; }
  .grid--3-6-3 { grid-template-columns: 3fr 6fr 3fr; gap: 36px; }
}

/* ---------- 排版 ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}

.prose p + p { margin-top: 1.1em; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.section-head__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.section-head__num {
  font-family: var(--mono);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 200;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(71, 245, 176, 0.42);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--neon {
  background: var(--neon);
  color: #04140F;
}

.btn--neon:hover { background: var(--haze); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn--signal {
  background: var(--signal);
  color: #1A0A02;
}

.btn--signal:hover { background: var(--haze); }

.btn--sm {
  padding: 9px 16px;
  font-size: 12px;
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs__item { display: inline-flex; }

.crumbs__item + .crumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--grass);
}

.crumbs a { transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--neon); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--panel);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--slab {
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}

.card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.card__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 数据块 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
}

.stat__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 分类 chips 与标签 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.chip[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: #04140F;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 106, 43, 0.14);
  color: var(--haze);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- 图片容器（页面阶段放 <img>） ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    radial-gradient(58% 66% at 76% 16%, rgba(71, 245, 176, 0.22), transparent 62%),
    linear-gradient(140deg, #143029 0%, #0C1F19 58%, #1E5C46 100%);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(71, 245, 176, 0.1) 0 1px,
    transparent 1px 42px
  );
  pointer-events: none;
}

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05) brightness(0.86);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--panorama { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--haze);
  background: linear-gradient(0deg, rgba(6, 18, 15, 0.92), transparent);
}

/* ---------- 数据表 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.table td {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 滚动显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 移动端轨道（顶栏化） ---------- */
@media (max-width: 899px) {
  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--topbar);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail::after { display: none; }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .rail__cn,
  .rail__en { writing-mode: horizontal-tb; }

  .rail__cn { font-size: 16px; letter-spacing: 0.2em; }

  .rail__en { font-size: 9px; letter-spacing: 0.22em; }

  .rail__meta { display: none; }

  .rail__toggle {
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
  }

  .rail__toggle-bars { width: 16px; }

  .rail__toggle-text {
    writing-mode: horizontal-tb;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .rail__cta {
    writing-mode: horizontal-tb;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .site-nav { width: min(90vw, 340px); }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .rail__cta:hover,
  .footer__link:hover { transform: none; }
}
