/* =========================================================
   小鸟体育 · 共享样式表  /assets/site.css
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body { margin: 0; }

h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dt, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

input, select, textarea { font: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --turf: #128A4B;
  --turf-deep: #0A5C33;
  --cyan: #14E0C8;
  --whistle: #FFC93C;
  --chalk: #F7FAF8;
  --ink-blue: #0B1F33;
  --ruby: #8C1F3F;
  --indigo: #2E2A6E;
  --note: #5C6E63;
  --line: #D8E2DC;

  /* 字体 */
  --font-display: "Archivo Narrow", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --step-1: 14px;
  --step0: 17px;
  --step1: 20px;
  --step2: 28px;
  --step3: 40px;
  --step4: 56px;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --base: 220ms;
  --slow: 400ms;

  --radius: 18px;
  --radius-sm: 10px;
  --shell: 1200px;
  --gutter: 24px;
}

/* ---------- 3. Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.75;
  color: var(--ink-blue);
  background-color: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: var(--step1); }

p { text-wrap: pretty; }

/* 等宽数字：轮次、百分比、比分 */
.num,
.mono,
[data-mono] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.num {
  display: inline-block;
  text-align: right;
}

/* ---------- 4. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

#main-content { scroll-margin-top: 150px; }
main:focus { outline: none; }

/* ---------- 5. Layout utilities ---------- */
.wrap {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.prose {
  max-width: 66ch;
  font-size: var(--step0);
  line-height: 1.75;
}
.prose p + p { margin-top: 1.1em; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

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

.stack > * + * { margin-top: var(--gap, 16px); }

.rule { height: 1px; background: var(--line); border: 0; }

.field-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--note);
}

.annotation {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--note);
}

.muted { color: var(--note); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--turf); color: var(--chalk); }
.btn--primary:hover { background: var(--turf-deep); }

.btn--ink { background: var(--ink-blue); color: var(--chalk); }
.btn--ink:hover { background: #16324f; }

.btn--cyan { background: var(--cyan); color: var(--ink-blue); }
.btn--cyan:hover { background: #3ceada; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-blue);
}
.btn--ghost:hover {
  border-color: var(--turf);
  color: var(--turf-deep);
  background: rgba(18, 138, 75, 0.07);
}

.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ---------- 7. Chips / tags / stats ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--note);
}

.tag--round {
  background: var(--whistle);
  border-color: transparent;
  color: var(--ink-blue);
  font-weight: 700;
}

.tag--cyan {
  border-color: var(--cyan);
  color: var(--turf-deep);
}

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label { font-size: var(--step-1); color: var(--note); }

.stat--hero .stat__value { font-size: clamp(72px, 12vw, 128px); }

/* ---------- 8. Cards ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
.card:hover { border-color: var(--turf); box-shadow: 0 18px 36px -26px rgba(11, 31, 51, 0.6); }

.card--turf { background: var(--turf); color: var(--chalk); border-color: transparent; }
.card--ink { background: var(--ink-blue); color: var(--chalk); border-color: transparent; }
.card--ruby { background: var(--ruby); color: var(--chalk); border-color: transparent; }
.card--indigo { background: var(--indigo); color: var(--chalk); border-color: transparent; }

.card--turf .annotation,
.card--ink .annotation,
.card--ruby .annotation,
.card--indigo .annotation { color: rgba(247, 250, 248, 0.78); }

/* ---------- 9. Media / picture frame ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--ink-blue);
  isolation: isolate;
}

.media > img,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--strip { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media[data-placeholder] {
  background-image:
    radial-gradient(circle at 22% 78%, rgba(20, 224, 200, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(247, 250, 248, 0.07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(247, 250, 248, 0.07) 0 1px, transparent 1px 72px);
}

.media__caption {
  margin-top: 10px;
  font-size: var(--step-1);
  color: var(--note);
}

.media__credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 51, 0.55);
  color: rgba(247, 250, 248, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ---------- 10. Breadcrumbs ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--note);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs li { display: inline-flex; align-items: center; gap: 8px; }

.crumbs li::after {
  content: "/";
  color: var(--line);
}

.crumbs li:last-child::after { display: none; }

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

/* ---------- 11. Disclosure ---------- */
.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-of-type { border-bottom: 1px solid var(--line); }

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 8px 18px 16px;
  border-left: 3px solid transparent;
  font-size: var(--step0);
  font-weight: 700;
  text-align: left;
  color: var(--ink-blue);
  transition: background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}

.disclosure__summary:hover {
  background: rgba(18, 138, 75, 0.06);
  border-left-color: var(--turf);
}

.disclosure__summary[aria-expanded="true"] {
  border-left-color: var(--cyan);
  color: var(--turf-deep);
}

.disclosure__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.disclosure__icon::before,
.disclosure__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.disclosure__icon::before { left: 0; right: 0; top: 8px; height: 2px; }
.disclosure__icon::after {
  top: 0; bottom: 0; left: 8px; width: 2px;
  transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
}

.disclosure__summary[aria-expanded="true"] .disclosure__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.disclosure__panel {
  padding: 0 8px 22px 16px;
  max-width: 66ch;
  color: var(--ink-blue);
}

.disclosure__panel[hidden] { display: none; }

/* ---------- 12. Reveal ---------- */
[data-reveal] {
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}

html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html[data-js="on"] [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   13. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background:
    linear-gradient(90deg,
      var(--turf) 0 46%,
      var(--cyan) 46% 54%,
      var(--whistle) 54% 60%,
      var(--ink-blue) 60% 100%);
}

/* 跳至主内容 */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 120;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--ink-blue);
  color: var(--chalk);
  font-size: 15px;
  font-weight: 700;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus { top: 0; }

/* 刊头 */
.masthead {
  position: relative;
  padding: 18px 0 14px;
}

.masthead__inner {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-cta { justify-self: start; }

.brand {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.brand__mark {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-blue);
}

.brand__mark::after {
  content: "";
  display: block;
  width: 42%;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--turf);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--note);
}

.masthead__meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--whistle);
  color: var(--ink-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.season-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turf-deep);
  animation: badge-pulse 2.4s var(--ease) infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* 移动汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chalk);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-blue);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-blue);
  transition: transform var(--base) var(--ease), background-color var(--base) var(--ease);
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 栏目条 */
.nav-strip {
  max-height: none;
  overflow: visible;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(216, 226, 220, 0.34), rgba(247, 250, 248, 0));
}

.nav-list {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 16px;
  border-left: 3px solid transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-blue);
  transition: background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--note);
}

.nav-link:hover {
  background: rgba(18, 138, 75, 0.07);
  border-left-color: var(--turf);
  color: var(--turf-deep);
}

.nav-link:hover .nav-link__index { color: var(--turf); }

.nav-link[aria-current="page"] {
  background: rgba(18, 138, 75, 0.13);
  border-left-color: var(--turf);
  color: var(--turf-deep);
  font-weight: 700;
}

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

/* 阅读进度条 */
.scroll-meter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 90;
  background: rgba(11, 31, 51, 0.12);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--turf), var(--cyan) 62%, var(--whistle));
}

/* =========================================================
   14. Footer
   ========================================================= */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(48px, 6vw, 72px);
  background: var(--ink-blue);
  color: var(--chalk);
  border-top: 3px solid var(--turf);
}

.footer__inner {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 34px 24px;
}

.footer__brand { grid-column: span 3; }

.footer__brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--chalk);
}

.footer__brand-line {
  margin-top: 10px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.7;
  color: #9DB0C0;
}

.footer-col { grid-column: span 2; }
.footer-col--contact { grid-column: span 3; }
.footer-col--subscribe { grid-column: span 2; }

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--chalk);
}

.footer-col__num { color: var(--whistle); }

.footer-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.footer-link {
  font-size: 15px;
  color: #B9C9D6;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-link[aria-current="page"] {
  color: var(--chalk);
  border-bottom-color: var(--turf);
}

.footer-facts {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.footer-fact { display: grid; gap: 3px; }

.footer-fact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6F8698;
}

.footer-fact__value {
  font-size: 15px;
  line-height: 1.6;
  color: #D3DEE6;
  word-break: break-word;
}

.footer__subscribe-text {
  margin-top: 14px;
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.65;
  color: #8FA3B4;
}

.footer__meta {
  width: min(var(--shell), calc(100% - 40px));
  margin: 44px auto 0;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(247, 250, 248, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #8FA3B4;
}

.footer__contact { max-width: 100%; }

/* =========================================================
   15. Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer-col,
  .footer-col--contact,
  .footer-col--subscribe { grid-column: auto; }
  .footer__brand-line { max-width: 44ch; }
  .footer__subscribe-text { max-width: 34ch; }
}

@media (max-width: 900px) {
  body { padding-bottom: 78px; }

  .masthead { padding: 16px 0 12px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 8px;
    width: calc(100% - 32px);
  }

  .brand__sub { letter-spacing: 0.16em; }

  .masthead__meta { justify-self: center; }

  /* 悬浮客户端入口 */
  .header-cta {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 75;
    box-shadow: 0 16px 32px -14px rgba(11, 31, 51, 0.6);
    padding: 12px 24px;
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 16px;
  }

  /* 折叠栏目条 */
  .nav-strip {
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height var(--base) var(--ease), border-color var(--base) var(--ease);
  }

  .site-header[data-open] .nav-strip {
    max-height: 72vh;
    overflow-y: auto;
    border-top-color: var(--line);
    background: var(--chalk);
    box-shadow: 0 20px 30px -26px rgba(11, 31, 51, 0.7);
  }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100% - 32px);
  }

  .nav-link {
    padding: 15px 12px;
    font-size: var(--step0);
  }

  .section { padding-block: clamp(40px, 9vw, 64px); }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__brand { grid-column: auto; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
  .brand__mark { font-size: 30px; }
  .season-badge { font-size: 12px; }
}

/* ---------- 16. 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;
  }

  .season-badge__dot { animation: none; }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
