/* ============================================================
   悟空体育 · 共享站点样式 /assets/site.css
   奶油纸底 + 墨黑 + 赤金 + 朱砂 + 琥珀，极细边界与围绳式分隔
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { 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; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #14110F;
  --ink-700: #2A211C;
  --paper-50: #F8F3E9;
  --paper-100: #EFE7D8;
  --gold-600: #B8873A;
  --cinnabar-600: #C33A22;
  --amber-500: #F0A63C;
  --slate-600: #4C5B6B;
  --slate-200: #D7DEE5;
  --jade-700: #2F6B57;

  --line: var(--slate-200);
  --line-strong: #C6BEB0;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --rail-w: 72px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2,.7,.3,1);
  --shadow-card: 0 16px 30px -26px rgba(20,17,15,.85);
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1100px) {
  body { padding-left: var(--rail-w); }
}
#main-content { display: block; scroll-margin-top: 130px; }

a, button, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px var(--ink-900);
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--paper-50);
  background-color: var(--ink-900);
  border: 1px solid var(--gold-600);
  transform: translateY(-200%);
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Header / masthead ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--paper-50);
  border-bottom: 1px solid var(--line-strong);
}

.masthead { border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px 24px 14px;
}
.masthead__brand {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: .03em;
  color: var(--ink-900);
  transition: color 180ms var(--ease);
}
.masthead__brand:hover { color: var(--cinnabar-600); }
.masthead__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
  color: var(--slate-600);
}
.masthead__meta--start { justify-self: start; }
.masthead__meta--end { justify-self: end; }
.masthead__kicker { letter-spacing: .16em; }
.rule-short { display: block; flex: none; width: 26px; height: 2px; background-color: var(--gold-600); }
.badge-ver {
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-900);
  border: 1px solid var(--gold-600);
}

/* ---------- 6. Nav band ---------- */
.navband {
  background-color: var(--paper-100);
  border-bottom: 1px solid var(--line);
}
.navband__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 54px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.nav-drawer { display: flex; flex: 1; align-items: stretch; min-width: 0; }
.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: stretch; width: 100%; }
.nav__item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  border-left: 1px solid var(--line);
}
.nav__item:first-child { border-left: 0; }
.nav__link {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--ink-700);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav__link:hover { color: var(--cinnabar-600); background-color: rgba(184,135,58,.1); }
.nav__link[aria-current="page"] { color: var(--ink-900); font-weight: 800; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 22px;
  height: 2px;
  background-color: var(--gold-600);
  transform: translateX(-50%);
}

.nav-toggle { display: none; }
.nav-toggle__label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--ink-900); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background-color: var(--ink-900);
  transition: transform 180ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.utility {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.utility__login {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--slate-600);
  transition: color 160ms var(--ease);
}
.utility__login:hover { color: var(--gold-600); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .1em;
  color: var(--ink-900);
  background-color: transparent;
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease),
              color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px -14px rgba(20,17,15,.7); }
.btn--subscribe { background-color: var(--amber-500); border-color: var(--amber-500); }
.btn--subscribe:hover { background-color: var(--gold-600); border-color: var(--gold-600); color: var(--paper-50); }
.btn--primary { background-color: var(--ink-900); border-color: var(--ink-900); color: var(--paper-50); }
.btn--primary:hover { background-color: var(--cinnabar-600); border-color: var(--cinnabar-600); color: var(--paper-50); }
.btn--ghost { background-color: transparent; border-color: var(--line-strong); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--gold-600); color: var(--gold-600); background-color: rgba(184,135,58,.08); }

/* ---------- 8. Side rail ---------- */
.rail { display: none; }
.rail__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold-600);
}
.rail__track { position: relative; width: 1px; height: 180px; background-color: var(--line-strong); }
.rail__fill {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 3px;
  height: 0;
  background-color: var(--gold-600);
  transition: height 120ms linear;
}
.rail__pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--slate-600);
}
@media (min-width: 1100px) {
  .rail {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 70;
    width: var(--rail-w);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background-color: var(--paper-100);
    border-right: 1px solid var(--line);
    pointer-events: none;
  }
}

/* ---------- 9. Footer ---------- */
.site-footer {
  color: var(--paper-100);
  background-color: var(--ink-700);
  background-image: repeating-linear-gradient(180deg, rgba(248,243,233,.055) 0 1px, transparent 1px 64px);
  border-top: 2px solid var(--gold-600);
}
.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 60px) 24px 28px;
}
.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(248,243,233,.16);
}
.brand-lockup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.brand-lockup__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .04em;
  color: var(--paper-50);
}
.brand-lockup__tag {
  padding-left: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold-600);
  border-left: 1px solid rgba(248,243,233,.24);
}
.footer__note { max-width: 46ch; font-size: 14px; line-height: 1.7; color: rgba(248,243,233,.7); }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 28px; }
.footer__col { min-width: 0; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--gold-600);
}
.footer__list { display: grid; gap: 9px; }
.footer__link {
  font-size: 14px;
  letter-spacing: .02em;
  color: rgba(248,243,233,.82);
  transition: color 160ms var(--ease);
}
.footer__link:hover, .footer__link:focus-visible { color: var(--gold-600); }
.footer__list--contact li { display: grid; gap: 1px; }
.footer__key { font-size: 11px; letter-spacing: .14em; color: rgba(248,243,233,.55); }
.footer__val { font-size: 14px; color: var(--paper-50); overflow-wrap: anywhere; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(248,243,233,.16);
}
.footer__legal-line { font-size: 12px; letter-spacing: .06em; color: rgba(248,243,233,.6); }

/* ---------- 10. Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(36px, 5.5vw, 72px); }
.section--alt { background-color: var(--paper-100); border-block: 1px solid var(--line); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }

/* ---------- 11. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.lead { max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--ink-700); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background-color: var(--gold-600); }
.muted { color: var(--slate-600); }
.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.prose { max-width: 68ch; font-size: 17px; line-height: 1.8; color: var(--ink-700); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.4;
  color: var(--ink-900);
}
.prose h3 {
  margin-top: 1.5em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink-900);
}
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink-900); border-bottom: 1px solid var(--gold-600); transition: color 160ms var(--ease); }
.prose a:hover { color: var(--cinnabar-600); }
.prose strong { font-weight: 700; color: var(--ink-900); }
.prose blockquote { padding-left: 18px; border-left: 2px solid var(--gold-600); color: var(--slate-600); }

/* ---------- 12. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate-600);
}
.breadcrumb a { transition: color 160ms var(--ease); }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb__sep { color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); }

/* ---------- 13. Card / tag / chip / stat ---------- */
.card {
  padding: clamp(18px, 2vw, 24px);
  background-color: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-2px);
  border-color: var(--gold-600);
  box-shadow: var(--shadow-card);
}
.card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.card__meta { margin-bottom: 8px; font-size: 11px; letter-spacing: .14em; color: var(--slate-600); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--slate-600);
  background-color: var(--paper-50);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.tag--gold { color: var(--gold-600); border-color: var(--gold-600); }
.tag--live { color: var(--ink-900); background-color: var(--amber-500); border-color: var(--amber-500); }
.tag--jade { color: var(--jade-700); border-color: var(--jade-700); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-700);
  background-color: var(--paper-50);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.chip:hover { color: var(--gold-600); border-color: var(--gold-600); }
.chip[aria-pressed="true"] { color: var(--paper-50); background-color: var(--ink-900); border-color: var(--ink-900); }

.stat { display: grid; gap: 2px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.stat__label { font-size: 11px; letter-spacing: .14em; color: var(--slate-600); }

/* ---------- 14. Media containers (页面阶段放图) ---------- */
.figure { display: grid; gap: 8px; }
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.media img, .media svg, .media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.figure__caption { font-size: 12px; line-height: 1.6; letter-spacing: .06em; color: var(--slate-600); }

/* ---------- 15. Ring divider ---------- */
.ring-rule {
  position: relative;
  height: 1px;
  margin-block: clamp(24px, 3vw, 40px);
  background-color: var(--line);
}
.ring-rule::before, .ring-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--gold-600);
  transform: translateY(-50%) rotate(45deg);
}
.ring-rule::before { left: 0; }
.ring-rule::after { right: 0; }

/* ---------- 16. Reveal ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link { font-size: 14px; letter-spacing: .03em; }
  .utility { gap: 10px; padding-left: 12px; }
  .utility__login { font-size: 12px; }
}

@media (max-width: 900px) {
  .navband__inner { padding-inline: 16px; min-height: 0; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 48px;
  }
  .nav-drawer {
    position: absolute;
    top: 100%;
    right: 16px;
    z-index: 90;
    display: none;
    flex-direction: column;
    width: min(300px, 86vw);
    padding-top: 6px;
    background-color: var(--paper-50);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px -28px rgba(20,17,15,.6);
  }
  .nav-drawer[data-open="true"] { display: flex; }
  .nav { flex: none; }
  .nav__list { flex-direction: column; }
  .nav__item { flex: none; border-left: 0; border-top: 1px solid var(--line); }
  .nav__item:first-child { border-top: 0; }
  .nav__link { height: 46px; justify-content: flex-start; padding: 0 18px; font-size: 15px; }
  .nav__link[aria-current="page"]::after {
    left: 0;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    margin-top: -9px;
    transform: none;
  }
  .utility {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .utility .btn { width: 100%; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { align-items: flex-start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
  .container { padding-inline: 18px; }
  .footer__inner { padding-inline: 18px; }
  .display { line-height: 1.18; }
}

@media (max-width: 640px) {
  .masthead__inner { gap: 8px; padding: 12px 16px 10px; }
  .masthead__brand { font-size: 26px; }
  .masthead__meta { letter-spacing: .1em; }
  .masthead__meta--start .masthead__kicker { display: none; }
  .rule-short { width: 18px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; }
}

/* ---------- 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;
  }
  .card:hover, .card:focus-within, .btn:hover { transform: none; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
}
