/* ==========================================================================
   BB体育 · 共享样式表 /assets/site.css
   深空蓝基底 + 荧光青数据高亮 + 活力橙行动色 + 1px 精密网格
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { 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; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
#main-content:focus { outline: none; }

/* ---------- variables ---------- */
:root {
  --ink: #0B1B3A;
  --ink-deep: #061024;
  --panel: #12294F;
  --grid: #2A3F63;
  --cyan: #00E5FF;
  --orange: #FF6B35;
  --green: #29D68B;
  --yellow: #FFD166;
  --white: #F2F5FA;
  --mist: #9FB0C8;
  --muted: #6B7C96;

  --shell: 1440px;
  --gutter: 24px;
  --header-h: 112px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --t-fast: 120ms linear;
  --t-base: 160ms linear;
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(42, 63, 99, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 63, 99, 0.42) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
main { display: block; }
p { max-width: 38em; }
::selection { background: var(--cyan); color: var(--ink-deep); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono, .num { font-family: var(--font-mono); }
.num { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.is-hidden { display: none !important; }
.is-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 120;
  background: var(--cyan);
  color: var(--ink-deep);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- typography ---------- */
.display {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1, h2, h3, h4 { font-weight: 500; line-height: 1.3; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.lede { font-size: 18px; line-height: 1.75; color: var(--mist); }

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--grid); }
.section:first-of-type { border-top: 0; }
.section__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 780px; }
.section__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.01em; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--grid);
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-deep);
  font-weight: 500;
}
.btn--primary:hover { background: #ff8155; border-color: #ff8155; color: var(--ink-deep); }
.btn--ghost { background: transparent; }
.btn--quiet { border-color: transparent; padding-inline: 4px; color: var(--mist); }

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.crumbs__link { color: var(--mist); transition: color var(--t-fast); }
.crumbs__link:hover { color: var(--cyan); }
.crumbs__sep { color: var(--grid); }

/* ---------- grid ---------- */
.grid { display: grid; gap: 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)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* ---------- panels & stats ---------- */
.panel { border: 1px solid var(--grid); background: var(--panel); padding: 24px; }
.panel__title { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--grid); padding-top: 14px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--mist); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--grid);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, 0.5); }
.tag--orange { color: var(--orange); border-color: rgba(255, 107, 53, 0.5); }
.tag--green { color: var(--green); border-color: rgba(41, 214, 139, 0.5); }
.tag--yellow { color: var(--yellow); border-color: rgba(255, 209, 102, 0.5); }

/* ---------- chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--grid);
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  border-radius: 0;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink-deep); font-weight: 500; }

/* ---------- meter ---------- */
.meter { position: relative; height: 6px; background: rgba(42, 63, 99, 0.7); overflow: hidden; }
.meter__fill { display: block; height: 100%; background: var(--cyan); transition: width 200ms linear; }
.meter--orange .meter__fill { background: var(--orange); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--grid); background: var(--panel); }
.data-table { width: 100%; min-width: 560px; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--grid); text-align: left; white-space: nowrap; }
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--ink-deep);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.data-table tbody tr:hover { background: rgba(0, 229, 255, 0.06); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- disclosure ---------- */
.disclosure { border: 1px solid var(--grid); background: var(--panel); }
.disclosure + .disclosure { border-top: 0; }
.disclosure__btn {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 16px;
  color: var(--white);
  transition: color var(--t-fast);
}
.disclosure__btn:hover { color: var(--cyan); }
.disclosure__btn[aria-expanded="true"] { color: var(--cyan); }
.disclosure__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.disclosure__panel { padding: 0 18px 18px; color: var(--mist); font-size: 15px; }
.disclosure__panel[hidden] { display: none; }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 0;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > svg { width: 100%; height: 100%; object-fit: cover; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 16, 36, 0.95);
  border-bottom: 1px solid var(--grid);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header__strip {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  border-bottom: 1px solid var(--grid);
}
.site-header__bar { position: relative; }

/* brand */
.brand-block { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.brand__name { font-size: 17px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.brand__sub {
  padding-left: 40px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

/* quick entry */
.quick-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--grid);
  border-left: 2px solid var(--orange);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.quick-entry:hover { border-color: var(--orange); background: rgba(255, 107, 53, 0.08); }
.quick-entry__key { font-size: 13px; color: var(--white); white-space: nowrap; }
.quick-entry__val { font-family: var(--font-mono); font-size: 12px; color: var(--orange); white-space: nowrap; }

/* utility */
.utility {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--grid);
  font-size: 12px;
}
.utility__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.utility__value { font-family: var(--font-mono); font-size: 12px; color: var(--mist); white-space: nowrap; }
.utility__panel {
  position: absolute;
  top: calc(100% + 1px);
  right: -1px;
  z-index: 60;
  display: none;
  min-width: 320px;
  padding: 14px 16px;
  background: var(--ink-deep);
  border: 1px solid var(--grid);
}
.utility:hover .utility__panel,
.utility:focus-within .utility__panel { display: block; }
.utility__row { display: flex; gap: 12px; font-size: 12px; line-height: 1.6; color: var(--mist); max-width: none; }
.utility__row + .utility__row { margin-top: 6px; }
.utility__k { flex: none; min-width: 32px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }

/* copy button */
.copy-btn {
  padding: 2px 6px;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-btn[data-state="done"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink-deep); }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.nav-toggle[aria-expanded="true"] { color: var(--cyan); border-color: var(--cyan); background: rgba(0, 229, 255, 0.08); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars i { display: block; height: 1px; background: currentColor; }

/* command nav */
.cmd-nav {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.cmd-nav::-webkit-scrollbar { display: none; }
.cmd-nav[data-dragging] { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.cmd-nav[data-dragging] .cmd-nav__link { pointer-events: none; }
.cmd-nav[data-edge="end"] {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
}
.cmd-nav[data-edge="start"] {
  -webkit-mask-image: linear-gradient(270deg, #000 0, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(270deg, #000 0, #000 calc(100% - 48px), transparent 100%);
}
.cmd-nav[data-edge="both"] {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.cmd-nav__list { display: flex; align-items: stretch; gap: 2px; min-height: 52px; }
.cmd-nav__item { display: flex; }
.cmd-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.cmd-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: transparent;
  transition: background-color var(--t-fast);
}
.cmd-nav__link:hover { color: var(--white); background: rgba(18, 41, 79, 0.7); }
.cmd-nav__link:hover::before { background: var(--grid); }
.cmd-nav__link[aria-current="page"] { color: var(--white); background: var(--panel); }
.cmd-nav__link[aria-current="page"]::before { background: var(--cyan); }
.cmd-nav__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); transition: color var(--t-fast); }
.cmd-nav__link[aria-current="page"] .cmd-nav__num { color: var(--cyan); }

/* scroll rail */
.scroll-rail { position: relative; height: 2px; background: rgba(42, 63, 99, 0.65); }
.scroll-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 96px;
  background: var(--ink-deep);
  border-top: 1px solid var(--grid);
  color: var(--mist);
}
.footer-main { padding: 56px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand__sub {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.footer-note { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.footer-brand__cta { margin-top: 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--white);
}
.footer-list li + li { margin-top: 8px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color var(--t-fast), border-color var(--t-fast);
  border-bottom: 1px solid transparent;
}
.footer-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: none;
  font-size: 13px;
  line-height: 1.6;
}
.footer-contact__k { flex: none; min-width: 64px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.footer-contact__v { font-family: var(--font-mono); font-size: 13px; color: var(--mist); }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}
.footer-legal { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1439px) {
  :root { --gutter: 22px; }
}
@media (max-width: 1279px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --gutter: 20px; }
  .utility { display: none; }
  .nav-toggle { display: inline-flex; }
  .cmd-nav {
    display: none;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    border-top: 1px solid var(--grid);
    -webkit-mask-image: none;
    mask-image: none;
    cursor: auto;
  }
  .cmd-nav[data-open] { display: block; }
  .cmd-nav__list { flex-direction: column; gap: 0; min-height: 0; padding-bottom: 8px; }
  .cmd-nav__item { display: block; }
  .cmd-nav__link {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--grid);
    font-size: 15px;
  }
  .cmd-nav__link::before { top: 0; bottom: 0; width: 3px; }
  .cmd-nav__link:hover { background: rgba(18, 41, 79, 0.5); }
  .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .brand__sub { display: none; }
  .quick-entry__val { display: none; }
  .section { padding: 52px 0; }
  .panel { padding: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-main { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bar { flex-direction: column; }
  .lede { font-size: 16px; }
}

/* ==========================================================================
   MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-rail__fill { background: var(--cyan); }
}
