/* ============================================================
   BSPORTS看台 · 共享样式 /assets/site.css
   reset → 变量 → 中文排版 → 头部 → 页脚 → 通用组件 → 响应式
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

:root {
  --carbon: #050A08;
  --ink: #061713;
  --pitch: #12352B;
  --line: #2A3D35;
  --white: #F2F7F4;
  --mist: #AFC3BA;
  --lime: #B8FF3D;
  --orange: #FF6B2C;
  --cyan: #55E6C1;

  --rail-w: 84px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --ff-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --ff-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 88% -6%, rgba(85, 230, 193, .09), transparent 66%),
    radial-gradient(760px 460px at 2% 2%, rgba(184, 255, 61, .07), transparent 68%),
    linear-gradient(to right, rgba(42, 61, 53, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 61, 53, .30) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  background-attachment: fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.28; }
h4 { font-size: 1.02rem; line-height: 1.4; }

p { max-width: 38em; }
strong { font-weight: 700; color: var(--white); }

::selection { background: var(--lime); color: var(--carbon); }

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

#main-content { scroll-margin-top: 96px; }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: 16px;
}

/* --- 左侧品牌轨道（桌面） --- */
.rail { display: none; }

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lime);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.rail__brand:hover .rail__mark {
  border-color: var(--lime);
  background: rgba(184, 255, 61, .12);
}
.rail__name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .30em;
  color: var(--white);
}
.rail__note {
  margin-top: auto;
  margin-bottom: auto;
  max-width: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  line-height: 2.1;
  letter-spacing: .34em;
  color: var(--mist);
}
.rail__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--mist);
}
.rail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 61, .16);
  animation: rail-pulse 2.6s ease-in-out infinite;
}
@keyframes rail-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 255, 61, .16); }
  50% { box-shadow: 0 0 0 7px rgba(184, 255, 61, .05); }
}

/* --- 悬浮胶囊导航 --- */
.dock {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 23, 19, .86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, .95);
  transition: padding .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease);
}
.dock.is-compact {
  padding: 5px 6px 5px 16px;
  background: rgba(5, 10, 8, .95);
  border-color: #35503f;
}

.dock__brand { display: none; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.dock__brand-cn {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}
.dock__brand-en {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--mist);
}

.dock__nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--mist);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-list a:hover { color: var(--white); background: rgba(242, 247, 244, .07); }
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform-origin: left center;
  animation: nav-underline .24s var(--ease) both;
}
@keyframes nav-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.dock__cta { margin-left: auto; flex: 0 0 auto; padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { color: var(--lime); border-color: var(--lime); }
.nav-toggle__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
.nav-toggle__bar {
  position: relative;
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }
.dock[data-open] .nav-toggle__bar { background: transparent; }
.dock[data-open] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
.dock[data-open] .nav-toggle__bar::after { transform: translateY(-5px) rotate(-45deg); }

/* --- 滚动进度 --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
  pointer-events: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(44px, 6vw, 76px) clamp(20px, 4vw, 48px) 26px;
  background: linear-gradient(180deg, #071410 0%, #050A08 60%, #040806 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent 42%, rgba(255, 107, 44, .7));
  opacity: .7;
}

.footer-top {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) repeat(2, minmax(120px, .75fr)) minmax(270px, 1.5fr);
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.footer-brand__mark {
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}
.footer-brand__line {
  margin-top: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--lime);
}
.footer-brand__intro {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}
.footer-brand .btn { margin-top: 20px; }

.footer-col__title {
  margin-bottom: 15px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__list a {
  font-size: 14.5px;
  color: var(--white);
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}
.footer-col__list a:hover { color: var(--lime); padding-left: 6px; }

.footer-contact { display: grid; gap: 13px; }
.footer-contact li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
}
.footer-contact__label {
  grid-column: 1 / -1;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--mist);
}
.footer-contact__value {
  font-family: var(--ff-mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  color: var(--white);
  word-break: break-word;
}
.footer-contact__value--text {
  font-family: var(--ff-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
}
.copy-btn {
  flex: 0 0 auto;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.copy-btn:hover { color: var(--lime); border-color: var(--lime); }

.footer-note {
  margin-top: 16px;
  max-width: 32em;
  font-size: 12px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-base {
  max-width: var(--maxw);
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  font-size: 12.5px;
  color: var(--mist);
}
.footer-base__copy {
  max-width: none;
  font-family: var(--ff-mono);
  letter-spacing: .06em;
}
.footer-base__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-base__legal a {
  color: var(--mist);
  transition: color .16s var(--ease);
}
.footer-base__legal a:hover { color: var(--lime); }
.footer-base__icp {
  max-width: none;
  margin-left: auto;
  font-family: var(--ff-mono);
  letter-spacing: .06em;
}

/* ============================================================
   通用组件
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .68em 1.25em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--lime { background: var(--lime); color: var(--carbon); }
.btn--lime:hover { background: #D2FF7E; color: var(--carbon); }
.btn--ghost {
  border-color: var(--line);
  color: var(--white);
  background: rgba(242, 247, 244, .03);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

/* 面包屑 */
.crumbs { font-size: 12.5px; letter-spacing: .04em; color: var(--mist); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: none; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li::after { content: "/"; color: var(--line); }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--mist); transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current="page"] { color: var(--white); }

/* 章节头 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  max-width: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.title-rule {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.title-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: var(--lime);
}

/* 面板 */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--pitch);
}
.panel--flat { background: rgba(18, 53, 43, .48); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
  max-width: none;
}
.tag--lime { color: var(--lime); border-color: rgba(184, 255, 61, .42); background: rgba(184, 255, 61, .08); }
.tag--orange { color: var(--orange); border-color: rgba(255, 107, 44, .45); background: rgba(255, 107, 44, .08); }
.tag--cyan { color: var(--cyan); border-color: rgba(85, 230, 193, .42); background: rgba(85, 230, 193, .08); }

/* 数字 */
.num {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(5, 10, 8, .35);
}
.table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table thead th {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(5, 10, 8, .72);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tbody tr { transition: background-color .16s var(--ease); }
.table tbody tr:hover { background: rgba(184, 255, 61, .05); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num,
.table th.num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* 图片容器基座（页面阶段放图用） */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(150deg, #0E2A22 0%, #050A08 72%);
}
.media-frame > img,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(105%) contrast(106%);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
  background: linear-gradient(transparent, rgba(5, 10, 8, .92));
}

/* 入场（仅 JS 就绪时生效） */
html[data-reveal="on"] .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html[data-reveal="on"] .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 1000px) {
  body { padding-left: var(--rail-w); }
  .rail {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail-w);
    z-index: 70;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    padding: 24px 0 22px;
    background: linear-gradient(180deg, #08150F 0%, #050A08 58%, #061713 100%);
    border-right: 1px solid var(--line);
  }
  .rail__note { margin-top: auto; margin-bottom: 0; }
  .rail__status { margin-top: auto; }
}

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(120px, .8fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

@media (max-width: 999px) {
  .site-header { padding-top: 10px; }
  .dock {
    width: calc(100% - 24px);
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    border-radius: 20px;
  }
  .dock__brand { display: flex; flex: 1 1 auto; }
  .dock__nav {
    display: none;
    order: 4;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 10, 8, .97);
    box-shadow: 0 24px 48px -30px #000;
  }
  .dock[data-open] .dock__nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nav-list a[aria-current="page"] { background: rgba(184, 255, 61, .10); }
  .nav-list a[aria-current="page"]::after { left: 14px; right: auto; width: 20px; bottom: 8px; }
  .dock__cta { padding: 8px 14px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .footer-base__icp { margin-left: 0; }
  .footer-base { gap: 10px 18px; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .section-head { align-items: flex-start; }
  .table { min-width: 480px; font-size: 13px; }
  .table th, .table td { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .scroll-progress { transition: none; }
  html[data-reveal="on"] .reveal { opacity: 1; transform: none; }
  .rail__dot { animation: none; }
}
