/* ============================================================
   博鱼体育看台 · /assets/site.css
   夜场看台设计系统：reset / 变量 / 中文排版 / 轨道头部 / 页脚 /
   通用按钮 / 面包屑 / 正文容器 / Bento 网格 / 基础组件
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }

/* ---------- 变量 ---------- */
:root {
  --night: #050F1A;
  --deck: #0A1D2E;
  --line: #1B3A52;
  --neon: #2FF3D0;
  --blue: #4E7BFF;
  --orange: #FF7A2F;
  --yellow: #FFD447;
  --ink: #EAF2F8;
  --mute: #8FA6B8;
  --done: #16735C;
  --rail-w: 264px;
  --topbar-h: 60px;
  --gap: clamp(14px, 2vw, 24px);
  --pad-x: clamp(16px, 4vw, 56px);
  --radius: 2px 16px 2px 16px;
  --radius-sm: 2px 12px 2px 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(58% 42% at 82% 4%, rgba(78, 123, 255, 0.16), transparent 70%),
    radial-gradient(46% 38% at 8% 96%, rgba(47, 243, 208, 0.10), transparent 72%),
    linear-gradient(180deg, #061320 0%, #050F1A 46%, #04101C 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
strong { font-weight: 700; color: #fff; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 2px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--neon);
  color: #04131F;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   头部 · 侧边轨道 / 移动顶栏
   ============================================================ */
.rail {
  position: relative;
  z-index: 80;
  color: var(--ink);
  background: linear-gradient(180deg, #08192B 0%, #050F1A 62%);
  border-color: var(--line);
}
.rail__top { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__mark {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__note {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--neon);
  opacity: 0.85;
}
.rail__meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mute);
}
.rail__navtitle {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mute);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.navlist { display: grid; gap: 2px; }
.navlist__item { min-width: 0; }
.navlist__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 10px 12px 10px 6px;
  border-left: 2px solid transparent;
  color: var(--mute);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.navlist__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
  transition: color 0.18s ease;
}
.navlist__link:hover {
  color: var(--ink);
  background: rgba(47, 243, 208, 0.06);
  border-left-color: rgba(47, 243, 208, 0.42);
}
.navlist__link[aria-current="page"] {
  color: var(--neon);
  background: linear-gradient(90deg, rgba(47, 243, 208, 0.16), rgba(47, 243, 208, 0));
  border-left-color: var(--neon);
}
.navlist__link[aria-current="page"] .navlist__num { color: var(--neon); }

.rail-search { display: grid; gap: 6px; }
.rail-search__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.rail-search__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #071726;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
}
.rail-search__input::placeholder { color: #6C8496; }
.rail-search__input:focus {
  border-color: rgba(47, 243, 208, 0.6);
  background: #081B2C;
}
.rail__hint {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.rail__cta { width: 100%; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 2px; color: var(--ink); background: currentColor; transition: background-color 0.2s ease; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.24s ease, top 0.24s ease; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.rail__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(3, 10, 18, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.rail__drawer { transition: transform 0.32s ease; }

.rail__progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-h);
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--blue) 58%, var(--orange));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 70;
}

/* --- 移动 / 平板：顶栏 + 抽屉 --- */
@media (max-width: 1024px) {
  body { padding-top: var(--topbar-h); }
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: linear-gradient(180deg, #08192B, #061523);
    border-bottom: 1px solid var(--line);
    padding: 0 14px;
  }
  .rail__top {
    position: relative;
    z-index: 3;
    height: 100%;
    justify-content: space-between;
  }
  .brand__note { font-size: 10px; }
  .nav-toggle { display: inline-flex; }
  .rail__drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(88vw, 340px);
    height: 100dvh;
    padding: calc(var(--topbar-h) + 20px) 18px 26px;
    background: linear-gradient(180deg, #0A1D2E, #071726);
    border-right: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-102%);
  }
  .rail[data-open] .rail__drawer { transform: translateX(0); }
  .rail[data-open] .rail__scrim { opacity: 1; pointer-events: auto; }
  .rail__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }
}
@media (max-width: 480px) {
  .brand__note { display: none; }
  .rail__meta { font-size: 10px; letter-spacing: 0.16em; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .rail__drawer { width: 340px; }
}

/* --- 桌面：固定侧边轨道 --- */
@media (min-width: 1025px) {
  body { padding-left: var(--rail-w); }
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 18px 20px;
    border-right: 1px solid var(--line);
    overflow: hidden;
  }
  .rail__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rail__scrim { display: none; }
  .rail__drawer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
  }
  .rail__nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .rail__foot { margin-top: auto; display: grid; gap: 10px; }
  .rail__progress { left: var(--rail-w); top: 0; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  margin-top: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 5vw, 64px) var(--pad-x) 26px;
  background: linear-gradient(180deg, rgba(5, 15, 26, 0.4) 0%, #071726 42%, #050F1A 100%);
  border-top: 1px solid var(--line);
}
.site-foot__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(240px, 1fr) 2fr;
}
.site-foot__brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-foot__tag {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mute);
}
.site-foot__line {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #A9BFCE;
  word-break: break-word;
}
.site-foot__grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footcol__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.footcol__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--neon);
  transform: skewX(-20deg);
}
.footlist { display: grid; gap: 2px; }
.footlist__item { min-width: 0; }
.footlist__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: var(--mute);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footlist__link:hover { color: var(--neon); }
.site-foot__base {
  max-width: 1500px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.site-foot__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot__legal a {
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-foot__legal a:hover { color: var(--neon); border-bottom-color: currentColor; }
.site-foot__filing { font-family: var(--mono); letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .site-foot__inner { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn--primary {
  background: linear-gradient(120deg, var(--neon), #17C9AE);
  color: #04131F;
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(47, 243, 208, 0.6); color: var(--neon); }

/* ============================================================
   正文容器 / Bento 网格 / 切角面板
   ============================================================ */
.canvas {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(20px, 3.2vw, 48px) var(--pad-x) clamp(40px, 6vw, 80px);
}
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid > * { min-width: 0; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.panel {
  --cut: 20px;
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--deck);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cut);
  height: var(--cut);
  pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 0.7px), var(--line) calc(50% - 0.7px), var(--line) calc(50% + 0.7px), transparent calc(50% + 0.7px));
  transition: background 0.2s ease;
}
.panel:hover { border-color: rgba(47, 243, 208, 0.5); }
.panel--accent {
  border-top-color: rgba(47, 243, 208, 0.55);
  border-left-color: rgba(47, 243, 208, 0.55);
  background: linear-gradient(150deg, #0C2437 0%, var(--deck) 62%);
}
.panel--accent::after {
  background: linear-gradient(to bottom right, transparent calc(50% - 0.7px), rgba(47, 243, 208, 0.7) calc(50% - 0.7px), rgba(47, 243, 208, 0.7) calc(50% + 0.7px), transparent calc(50% + 0.7px));
}

/* ============================================================
   文字组件
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--neon);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(18px, 3vw, 32px); }
.section-title { margin: 0; }
.lead {
  max-width: 60ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: #C7D8E6;
}
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: #D8E6F0;
}
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.6em 0 0.6em; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.1em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--yellow); }
.side-note {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--mute);
}

/* ============================================================
   数据组件
   ============================================================ */
.stat { display: grid; gap: 6px; }
.stat__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__num--hot { color: var(--orange); }
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.chip--live { color: var(--neon); border-color: rgba(47, 243, 208, 0.5); }
.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: chip-pulse 1.6s ease-in-out infinite;
}
.chip--done {
  color: #8FE3CC;
  border-color: var(--done);
  background: rgba(22, 115, 92, 0.24);
}
@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(16px, 3vw, 28px);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__link { color: var(--mute); text-decoration: none; transition: color 0.18s ease; }
.breadcrumbs__link:hover { color: var(--neon); }
.breadcrumbs__current { color: var(--ink); }
.breadcrumbs__sep { color: var(--line); }

/* ============================================================
   分段控件
   ============================================================ */
.tabs { display: grid; gap: var(--gap); }
.tablist {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  background: #071726;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  color: var(--mute);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--ink);
  background: linear-gradient(120deg, rgba(78, 123, 255, 0.34), rgba(47, 243, 208, 0.26));
  box-shadow: inset 0 0 0 1px rgba(47, 243, 208, 0.45);
}
.tabpanel { display: block; }

/* ============================================================
   图片容器（页面阶段放置图片）
   ============================================================ */
.figure { display: grid; gap: 10px; }
.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(47, 243, 208, 0.10) 0%, rgba(5, 15, 26, 0) 42%),
    linear-gradient(200deg, #0C2437 0%, #08202F 56%, #050F1A 100%);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 2px 20px 2px 20px;
}
.figure__media img,
.figure__media picture,
.figure__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--portrait .figure__media { aspect-ratio: 3 / 4; }
.figure__cap {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--mute);
}

/* ============================================================
   入场动效
   ============================================================ */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式折叠
   ============================================================ */
@media (max-width: 1024px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 12; }
  body { font-size: 16px; }
}
@media (max-width: 640px) {
  .grid > [class*="col-"] { grid-column: span 12; }
  .side-note { writing-mode: horizontal-tb; letter-spacing: 0.16em; }
  .tablist { width: 100%; }
  .tab { flex: 1 1 auto; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@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;
  }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rail__drawer { transition: none; }
}
