/* =============================================================
   火博体育 · 共享样式库  /assets/site.css
   夜间赛场转播台 × 暖纸档案 · 侧边轨道导览
   ============================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-color: rgba(201, 44, 14, .45); text-underline-offset: 3px; }
table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --charcoal: #111216;
  --charcoal-2: #1A1C22;
  --paper: #F3EBDD;
  --paper-2: #E5D7C3;
  --flame: #FF4D1C;
  --ember: #C92C0E;
  --electric: #22E3B0;
  --signal: #FFC53D;
  --steel: #5C6570;
  --mist: #C7D0DA;
  --white: #FFFFFF;

  --ink: var(--charcoal);
  --ink-soft: var(--steel);

  --line-dark: rgba(199, 208, 218, .18);
  --line-dark-soft: rgba(199, 208, 218, .10);
  --line-light: rgba(17, 18, 22, .14);
  --line-light-soft: rgba(17, 18, 22, .08);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --rail-w: 96px;
  --shell-max: 1280px;
  --gap: clamp(16px, 2.4vw, 28px);
  --pad-x: clamp(18px, 4vw, 48px);
  --sec-y: clamp(40px, 6vw, 84px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: .04em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 900; }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; letter-spacing: .05em; }

p { max-width: 72ch; }

strong, b { font-weight: 800; }

::selection { background: var(--flame); color: var(--white); }

.display {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.02;
  font-size: clamp(36px, 5vw, 88px);
}

.editorial {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  letter-spacing: .02em;
}

.coord {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
}
.coord--flame { color: var(--ember); }
.coord--light { color: rgba(199, 208, 218, .78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--flame);
  flex: none;
}

/* ---------- 4. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(24px, 3.4vw, 48px); }

.section--dark {
  background: var(--charcoal);
  color: var(--paper);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark .coord { color: rgba(199, 208, 218, .72); }
.section--dark p { color: var(--mist); }

.section--paper2 { background: var(--paper-2); }

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 720px) {
  .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)); }
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-light);
}
.section--dark .rule,
.site-footer .rule { background: var(--line-dark); }

.sheer {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 28px));
}

/* ---------- 5. Buttons / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--flame); color: var(--white); }
.btn--primary:hover { background: var(--ember); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(17, 18, 22, .35);
}
.btn--ghost:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }

.btn--onDark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(199, 208, 218, .4);
}
.btn--onDark:hover { background: var(--paper); border-color: var(--paper); color: var(--charcoal); }

.btn--block { display: flex; width: 100%; }

.archive-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 12px 10px;
  background: var(--flame);
  color: #1B0703;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%);
  transition: background-color .16s ease, transform .16s ease;
}
.archive-badge:hover { background: var(--signal); color: #1B0703; transform: translateY(-1px); }
.archive-badge:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--flame);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- 7. Global focus ---------- */
:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}
.rail :focus-visible,
.drawer :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible {
  outline-color: var(--electric);
}
#main-content:focus { outline: none; }

/* ---------- 8. Desktop rail ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  width: var(--rail-w);
  background: var(--charcoal);
  color: var(--mist);
  border-right: 1px solid var(--line-dark);
}

.rail__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 0 14px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.rail__inner::-webkit-scrollbar { width: 4px; }
.rail__inner::-webkit-scrollbar-thumb { background: rgba(199, 208, 218, .28); }

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  text-decoration: none;
  flex: none;
}
.rail__brand-cn {
  writing-mode: vertical-rl;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .3em;
  line-height: 1;
  color: var(--white);
}
.rail__brand-sub {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .26em;
  line-height: 1;
  color: var(--electric);
}

.rail__ticks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 40px;
  flex: none;
}
.rail__ticks i {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 208, 218, .05), rgba(199, 208, 218, .55));
}
.rail__ticks i:nth-child(3n) {
  width: 62%;
  background: linear-gradient(90deg, rgba(255, 77, 28, .05), var(--flame));
  height: 2px;
}

.rail__nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 4px;
  flex: none;
}

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 0;
  color: var(--mist);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--flame);
  transform: translateY(-50%);
  transition: height .18s var(--ease);
}
.rail__link:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.rail__link[aria-current="page"] { color: var(--white); background: rgba(255, 77, 28, .1); }
.rail__link[aria-current="page"]::before { height: 26px; }

.rail__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(199, 208, 218, .55);
  transition: color .16s ease;
}
.rail__link[aria-current="page"] .rail__idx { color: var(--flame); }

.rail__label { display: block; }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark-soft);
  flex: none;
}
.rail__quick {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--mist);
  text-decoration: none;
  padding: 5px 2px;
  transition: color .16s ease;
}
.rail__quick:hover { color: var(--electric); }

.rail__foot .archive-badge {
  min-width: 64px;
  padding: 8px 4px 10px;
  font-size: 9px;
  letter-spacing: .06em;
  line-height: 1.25;
  text-align: center;
}

/* ---------- 9. Mobile topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad-x);
  background: var(--charcoal);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.topbar__brand-cn {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--white);
}
.topbar__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--electric);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(199, 208, 218, .38);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.nav-toggle:hover { background: rgba(255, 77, 28, .16); border-color: var(--flame); color: var(--white); }
.nav-toggle[aria-expanded="true"] { border-color: var(--flame); color: var(--white); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle--close { border-color: rgba(199, 208, 218, .38); }

/* ---------- 10. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  pointer-events: none;
  background: transparent;
}
.scroll-progress > [data-progress] {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--flame), var(--electric));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 11. Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--charcoal);
  color: var(--paper);
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .3s var(--ease), visibility .3s var(--ease);
}
.drawer[data-open="true"] {
  visibility: visible;
  transform: translateX(0);
}

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

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad-x);
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}
.drawer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--electric);
}

.drawer__nav { display: flex; flex-direction: column; }

.drawer__group {
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--line-dark-soft);
}
.drawer__group-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--flame);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  color: var(--paper);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark-soft);
  transition: color .16s ease;
}
.drawer__link:last-child { border-bottom: 0; }
.drawer__link:hover { color: var(--electric); }
.drawer__link[aria-current="page"] { color: var(--flame); }

.drawer__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(199, 208, 218, .55);
}
.drawer__link[aria-current="page"] .drawer__idx { color: var(--flame); }

.drawer__foot {
  margin-top: auto;
  padding: 18px var(--pad-x) 34px;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--charcoal);
  color: var(--mist);
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(58px, 7vw, 88px) var(--pad-x) 28px;
}

.site-footer__flag {
  position: absolute;
  top: clamp(16px, 2.4vw, 26px);
  right: var(--pad-x);
  z-index: 2;
}

.site-footer__col { display: flex; flex-direction: column; }

.site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-self: flex-start;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.1;
  text-decoration: none;
}
.site-footer__brand span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--electric);
}

.site-footer__line {
  margin-top: 16px;
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.site-footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(199, 208, 218, .74);
}
.site-footer__stamp .num { color: var(--signal); }

.site-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--flame);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__list a {
  display: inline-block;
  padding-bottom: 1px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.site-footer__list a:hover { color: var(--electric); border-color: var(--electric); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 20px var(--pad-x) 40px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(199, 208, 218, .78);
}
.site-footer__legal { font-family: var(--font-mono); letter-spacing: .04em; }
.site-footer__contact { max-width: none; }
.site-footer__util { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__util a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 208, 218, .3);
  transition: color .16s ease, border-color .16s ease;
}
.site-footer__util a:hover { color: var(--electric); border-color: var(--electric); }

/* ---------- 13. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--steel);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(92, 101, 112, .55); }
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 101, 112, .38);
  transition: color .16s ease, border-color .16s ease;
}
.breadcrumb a:hover { color: var(--ember); border-color: var(--ember); }
.breadcrumb [aria-current="page"] { color: var(--charcoal); }

/* ---------- 14. Media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line-light);
}
.media-frame > img,
.media-frame > svg {
  display: block;
  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--banner { aspect-ratio: 21 / 9; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: var(--charcoal);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}
html.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 16. Desktop breakpoint ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .rail { display: block; }

  .topbar { display: none; }

  .drawer { display: none; }

  .scroll-progress { left: var(--rail-w); }

  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .site-footer__col:nth-child(2) { transform: translateY(16px); }
  .site-footer__col:nth-child(3) { transform: translateY(34px); }
  .site-footer__col:nth-child(4) { transform: translateY(8px); }

  .site-footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__col--brand { grid-column: 1 / -1; }
}

/* ---------- 17. Short viewport rail tuning ---------- */
@media (min-width: 1024px) and (max-height: 760px) {
  .rail__inner { gap: 10px; padding: 10px 0 10px; }
  .rail__brand { padding: 2px 0; }
  .rail__brand-cn { font-size: 16px; letter-spacing: .24em; }
  .rail__ticks { gap: 4px; }
  .rail__link { padding: 8px 0; font-size: 11px; }
  .rail__foot { gap: 6px; padding-top: 8px; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .drawer { transition: none; }
  [data-reveal],
  html.reveal-on [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover,
  .archive-badge:hover { transform: none; }
}
