/* ============================================================
   b体育网页版 · 共享外壳样式 / assets/site.css
   分区：reset → tokens → 基础排版 → 通用组件 → 头部 → 页脚
        → 主内容壳 → 动效 → 响应式 → 无障碍
   ============================================================ */

/* ---------- 1. 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, dl, dt, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-900: #0E1114;
  --ink-700: #2A3036;
  --paper-50: #F7F3EA;
  --paper-200: #E8E2D6;
  --grid-300: #C7C0B1;
  --field-green: #1B7A43;
  --green-deep: #145C33;
  --green-tint: #DCEBE0;
  --sprint-orange: #FF6B1A;
  --orange-deep: #C24E07;
  --ice-blue: #3E9FC4;
  --ice-deep: #1C6B8C;
  --alert-red: #A32A1F;

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

  --rail-w: 232px;
  --strip-h: 64px;
  --strip-h-sm: 38px;
  --bar-h-sm: 56px;

  --line-grid: 1px solid var(--grid-300);
  --line-ink: 2px solid var(--ink-900);
  --shadow-hard: 4px 4px 0 var(--ink-900);
  --shadow-hard-lg: 8px 8px 0 var(--ink-900);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-900);
  background-color: var(--paper-50);
  background-image:
    repeating-linear-gradient(to right, rgba(199, 192, 177, .55) 0 1px, rgba(199, 192, 177, 0) 1px 120px),
    repeating-linear-gradient(to bottom, rgba(199, 192, 177, .55) 0 1px, rgba(199, 192, 177, 0) 1px 120px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 44px);
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul,
.prose ol { padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a {
  color: var(--ice-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange-deep); }
.prose strong { font-weight: 800; }
.prose blockquote {
  border-left: 4px solid var(--field-green);
  background: var(--green-tint);
  padding: 14px 18px;
}
.prose code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--paper-200);
  border: 1px solid var(--grid-300);
  padding: .08em .35em;
}

/* ---------- 4. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 12px 18px;
  border: 2px solid var(--ink-900);
  background: var(--paper-50);
  color: var(--ink-900);
  box-shadow: var(--shadow-hard);
  text-align: center;
  transition: transform .1s var(--ease), box-shadow .1s var(--ease),
              background .12s var(--ease), color .12s var(--ease);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard-lg);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink-900);
}

.btn--cta {
  width: 100%;
  background: var(--sprint-orange);
  border-color: var(--ink-900);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 var(--green-deep);
}

.btn--cta:hover { background: #FF7F39; box-shadow: 8px 8px 0 var(--green-deep); }
.btn--cta:active { box-shadow: 2px 2px 0 var(--green-deep); }

.btn--dark {
  background: var(--ink-900);
  color: var(--paper-50);
  box-shadow: 4px 4px 0 var(--field-green);
}

.btn--dark:hover {
  background: var(--green-deep);
  box-shadow: 8px 8px 0 var(--field-green);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover { background: var(--paper-200); transform: none; box-shadow: none; }

.btn--sm { font-size: 13.5px; padding: 8px 13px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 3px 9px;
  border: 1px solid var(--ink-700);
  background: var(--paper-200);
  color: var(--ink-900);
  white-space: nowrap;
}

.chip--dark {
  background: transparent;
  border-color: var(--grid-300);
  color: var(--paper-50);
}

.copy-fb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-deep);
  white-space: nowrap;
}

.copy-fb:empty { display: none; }

.rail .copy-fb,
.site-footer .copy-fb { color: var(--sprint-orange); }

.panel {
  background: var(--paper-200);
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 1.8vw, 24px);
}

.panel--paper { background: var(--paper-50); }

.panel--lift {
  transition: transform .1s var(--ease), box-shadow .1s var(--ease);
}

.panel--lift:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-lg);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink-900);
  padding-bottom: 10px;
  margin-bottom: clamp(18px, 2vw, 28px);
}

.sec-head__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--ink-900);
  color: var(--sprint-orange);
  padding: 2px 8px;
}

.sec-head__title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

.sec-head__meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-700);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-700);
}

.crumbs a {
  color: var(--ice-deep);
  border-bottom: 1px solid transparent;
}

.crumbs a:hover { border-bottom-color: var(--ice-deep); }
.crumbs__sep { color: var(--grid-300); }
.crumbs [aria-current="page"] { color: var(--ink-900); font-weight: 700; }

.bp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.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-12 { grid-column: span 12; }

/* 图片容器（页面阶段放置占位图） */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-200);
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard);
  aspect-ratio: 16 / 10;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(14, 17, 20, .35) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: .2;
  mix-blend-mode: multiply;
}

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--ink-900);
  color: var(--paper-50);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 10px;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 70;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 90;
  background: var(--ink-900);
  color: var(--paper-50);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border: 2px solid var(--sprint-orange);
  transform: translateY(-200%);
  transition: transform .16s var(--ease);
}

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

.topstrip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--strip-h);
  display: flex;
  align-items: center;
  gap: 22px;
  padding-inline: 20px;
  color: var(--ink-700);
  font-size: 13.5px;
  background-color: var(--paper-50);
  background-image: linear-gradient(90deg, var(--field-green) 0 58%, var(--sprint-orange) 58% 100%);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: left top;
  border-bottom: 1px solid var(--grid-300);
  z-index: 72;
}

.topstrip__facts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.fact__num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.fact__txt { font-size: 13.5px; color: var(--ink-700); }

.topstrip__utils {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.op-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border: 1px solid var(--ink-900);
  background: var(--paper-50);
  color: var(--ink-900);
  transition: background .12s var(--ease), color .12s var(--ease),
              box-shadow .12s var(--ease), border-color .12s var(--ease);
}

.op-btn:hover {
  background: var(--ink-900);
  color: var(--paper-50);
  box-shadow: var(--shadow-hard);
}

.op-btn--dark {
  border-color: var(--grid-300);
  background: transparent;
  color: var(--paper-50);
}

.op-btn--dark:hover {
  background: var(--field-green);
  border-color: var(--field-green);
  color: #FFFFFF;
  box-shadow: none;
}

.op-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ice-deep);
  padding-bottom: 1px;
  border-bottom: 2px solid var(--ice-deep);
  white-space: nowrap;
}

.op-link:hover {
  color: var(--orange-deep);
  border-bottom-color: var(--orange-deep);
}

.rail {
  position: fixed;
  top: var(--strip-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: var(--ink-900);
  color: var(--paper-50);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 2px solid var(--ink-900);
  z-index: 71;
}

.rail__brand {
  position: relative;
  padding: 24px 40px 20px 18px;
  border-bottom: 1px solid var(--ink-700);
}

.brand__rule {
  position: absolute;
  right: 16px;
  top: 26px;
  width: 4px;
  height: 48px;
  background: var(--field-green);
}

.brand__link { display: block; }

.brand__name {
  display: block;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.brand__meta {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--grid-300);
}

.brand__badge {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--sprint-orange);
  color: var(--ink-900);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper-50);
  border: 2px solid var(--grid-300);
}

.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; }

.site-header[data-open] .nav-toggle {
  background: var(--field-green);
  border-color: var(--field-green);
}

.rail__panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-bottom: 18px;
}

.rail__nav { padding-top: 14px; }

.rail__navlabel {
  padding: 0 18px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grid-300);
}

.nav-list { display: flex; flex-direction: column; }

.nav-link {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 14px;
  border-left: 4px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper-50);
  transition: background .12s var(--ease), border-color .12s var(--ease),
              color .12s var(--ease);
}

.nav-link__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--grid-300);
}

.nav-link:hover {
  background: #171C20;
  border-left-color: var(--green-deep);
}

.nav-link:focus-visible { outline-offset: -3px; }

.nav-link[aria-current="page"] {
  background: var(--green-tint);
  color: var(--ink-900);
  border-left-color: var(--field-green);
  font-weight: 800;
}

.nav-link[aria-current="page"] .nav-link__num { color: var(--green-deep); }

.rail__ops {
  margin-top: auto;
  padding: 20px 16px 8px;
  border-top: 1px solid var(--ink-700);
}

.rail__utils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.rail__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--grid-300);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-left: var(--rail-w);
  background: var(--ink-900);
  color: var(--paper-50);
  border-top: 4px solid var(--field-green);
  padding: clamp(34px, 4vw, 56px) clamp(16px, 3.2vw, 44px) 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 38px);
  max-width: 1240px;
  margin-inline: auto;
}

.footer__brand { grid-column: 1 / -1; }

.footer__mark {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.footer__tag {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grid-300);
}

.footer__col { min-width: 0; }

.footer__title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sprint-orange);
  border-bottom: 1px solid var(--ink-700);
  padding-bottom: 9px;
}

.footer__list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer__link {
  font-size: 14.5px;
  color: var(--paper-50);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}

.footer__link:hover {
  color: var(--sprint-orange);
  border-bottom-color: var(--sprint-orange);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  max-width: 1240px;
  margin: clamp(26px, 3vw, 42px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-700);
}

.footer__line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--grid-300);
}

.footer__key {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--grid-300);
}

.footer__copy {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-50);
  padding-bottom: 1px;
  border-bottom: 2px solid var(--field-green);
  transition: color .12s var(--ease), border-color .12s var(--ease);
}

.footer__copy:hover {
  color: var(--sprint-orange);
  border-bottom-color: var(--sprint-orange);
}

/* ---------- 7. 主内容壳 ---------- */
#main-content,
.site-main {
  margin-left: var(--rail-w);
  padding-top: var(--strip-h);
  min-height: 60vh;
}

.scroll-progress {
  position: fixed;
  top: var(--strip-h);
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 75;
  pointer-events: none;
  background: rgba(14, 17, 20, .08);
}

.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--sprint-orange);
}

body.is-locked { overflow: hidden; }

/* ---------- 8. 动效 ---------- */
[data-reveal] {
  transition: opacity .42s var(--ease), transform .42s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

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

[data-count] {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1ch;
}

/* ---------- 9. 响应式 ---------- */
@media (min-width: 1200px) {
  .footer__grid {
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(110px, 1fr));
  }
  .footer__brand { grid-column: auto; }
}

@media (max-width: 959px) {
  .topstrip {
    height: var(--strip-h-sm);
    padding-inline: 12px;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .topstrip::-webkit-scrollbar { display: none; }
  .topstrip__facts { flex-wrap: nowrap; gap: 16px; }
  .topstrip__utils { flex-wrap: nowrap; margin-left: auto; padding-left: 8px; }
  .fact__num { font-size: 15px; }
  .fact__txt { font-size: 12.5px; }
  .chip { font-size: 11.5px; }

  .rail {
    top: var(--strip-h-sm);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--bar-h-sm);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-inline: 12px;
    overflow: visible;
    z-index: 74;
  }

  .rail__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    border-bottom: 0;
  }

  .brand__rule {
    position: static;
    width: 4px;
    height: 26px;
    flex: 0 0 auto;
    order: -1;
  }

  .brand__link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__name { font-size: 16px; white-space: nowrap; }
  .brand__meta { display: none; }
  .brand__badge { margin-top: 0; font-size: 10px; padding: 2px 6px; }

  .nav-toggle { display: inline-flex; flex: 0 0 auto; }

  .rail__panel {
    position: fixed;
    top: calc(var(--strip-h-sm) + var(--bar-h-sm));
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--strip-h-sm) - var(--bar-h-sm));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ink-900);
    border-bottom: 2px solid var(--field-green);
    padding-bottom: 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease),
                visibility .18s linear;
  }

  .site-header[data-open] .rail__panel {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .rail__nav { padding-top: 8px; }
  .nav-link { padding: 14px 16px 14px 18px; font-size: 16px; }
  .rail__ops { margin-top: 0; padding: 16px 16px 0; }
  .rail__note { font-size: 12px; }

  #main-content,
  .site-main {
    margin-left: 0;
    padding-top: calc(var(--strip-h-sm) + var(--bar-h-sm));
  }

  .site-footer { margin-left: 0; }

  .scroll-progress {
    top: calc(var(--strip-h-sm) + var(--bar-h-sm));
    left: 0;
  }

  .bp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 6; }
}

@media (max-width: 599px) {
  body { font-size: 15.5px; }

  .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 2; }

  .footer__line { width: 100%; }
  .sec-head__meta { margin-left: 0; width: 100%; }
}

/* ---------- 10. 无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--sprint-orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .panel--lift:hover {
    transform: none;
  }
}
