/* ==========================================================
   球速体育 · 共享站点样式  /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 { margin: 0; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --paper: #F3EDE0;
  --ink: #211A15;
  --dark: #0B2A21;
  --pitch: #17503C;
  --orange: #F05A1E;
  --orange-soft: #F9B08A;
  --cyan: #6FE0CE;
  --moss: #6B7A70;
  --line: #DCD3C2;
  --alert: #C63A2B;

  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --measure: 720px;

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: 160ms ease;
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.16;
}

h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.32; }

strong { font-weight: 700; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--moss);
  text-transform: uppercase;
}

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

/* focus */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-offset: 2px; }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #14100C;
}
.btn--solid:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--on-dark {
  background: transparent;
  border-color: rgba(243, 237, 224, 0.4);
  color: var(--paper);
}
.btn--on-dark:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--dark);
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: #14100C;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--dark);
  color: var(--paper);
}

.header-top {
  border-bottom: 1px solid rgba(243, 237, 224, 0.14);
}

.header-top__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 237, 224, 0.88);
  white-space: nowrap;
}

.brand-line__dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--orange);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.status-chip {
  padding: 3px 8px;
  border: 1px solid rgba(243, 237, 224, 0.22);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 237, 224, 0.72);
  white-space: nowrap;
}

.status-chip--ver {
  background: var(--pitch);
  border-color: var(--pitch);
  color: var(--cyan);
}

.header-top__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(243, 237, 224, 0.6);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}
.top-link:hover {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.header-main {
  position: relative;
}

.header-main__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 8px 0;
  color: var(--paper);
  text-decoration: none;
}

.brand__tick {
  width: 12px;
  height: 22px;
  flex: none;
  background: var(--orange);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand__sub {
  align-self: flex-end;
  padding-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--moss);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(243, 237, 224, 0.34);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease);
}
.nav-toggle:hover {
  background: rgba(243, 237, 224, 0.08);
  border-color: rgba(243, 237, 224, 0.6);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* main nav */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.9vw, 12px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 5px;
  color: rgba(243, 237, 224, 0.74);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}

.site-nav__link::before {
  content: "";
  width: 10px;
  height: 2px;
  flex: none;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease), background-color var(--ease);
}

.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::before {
  transform: scaleX(1);
  background: var(--orange-soft);
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}
.site-nav__link[aria-current="page"]::before {
  transform: scaleX(1);
  background: var(--orange);
}

.site-nav__foot { display: none; }

/* header cta */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: clamp(6px, 1.2vw, 18px);
  min-height: 42px;
  padding: 10px 18px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #14100C;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.header-cta:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.header-cta--panel { display: none; }

/* scroll meter */
.scroll-meter {
  height: 3px;
  background: rgba(243, 237, 224, 0.16);
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 90ms linear;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-tick {
  height: 14px;
  border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, var(--dark) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, var(--moss) 0 1px, transparent 1px 24px);
  background-size: 100% 14px, 100% 7px;
  background-position: bottom left, bottom left;
  background-repeat: no-repeat, no-repeat;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr);
  gap: clamp(28px, 4vw, 72px);
  padding-top: clamp(32px, 4.5vw, 60px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.footer-brand__line {
  margin-top: 10px;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--moss);
}

.footer-brand__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--pitch);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--moss);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}
.footer-link:hover {
  color: var(--pitch);
  border-bottom-color: var(--orange);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--moss);
}

.footer-legal {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- 9. Content primitives ---------- */
.breadcrumb {
  padding: 20px 0 6px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.breadcrumb__link:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.breadcrumb__item[aria-current="page"] { color: var(--ink); }

.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.75;
}
.prose p + p { margin-top: 1em; }
.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.25em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 21px;
}
.prose strong { color: var(--pitch); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--pitch);
  white-space: nowrap;
}

.tag--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #14100C;
}

.tag--cyan {
  background: rgba(111, 224, 206, 0.22);
  border-color: var(--cyan);
  color: var(--pitch);
}

/* image containers for page stage */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--dark);
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(11, 42, 33, 0.86);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
  .header-status { display: none; }
}

@media (max-width: 940px) {
  .header-top__inner { min-height: 32px; }
  .brand-line {
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }
  .header-top__links { display: none; }

  .header-main__inner { min-height: 62px; }

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

  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 6px 0 16px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--dark);
    border-top: 1px solid rgba(243, 237, 224, 0.18);
    border-bottom: 1px solid rgba(243, 237, 224, 0.18);
  }

  .site-nav[data-open="true"] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(243, 237, 224, 0.1);
  }

  .site-nav__link {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
  }

  .site-nav__link::before { width: 14px; }

  .site-nav__foot {
    display: block;
    padding: 16px 24px 0;
  }

  .header-cta--panel {
    display: inline-flex;
    width: 100%;
    margin-left: 0;
    min-height: 48px;
    font-size: 15px;
  }

  .grid--7-5,
  .grid--5-7,
  .grid--8-4 { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .brand__text { font-size: 20px; }
  .brand__sub { display: none; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-legal {
    margin-left: 0;
    flex-basis: 100%;
  }

  .footer-meta { gap: 6px 0; }
  .footer-meta > p { flex-basis: 100%; }

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

/* ---------- 11. 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;
    scroll-behavior: auto !important;
  }

  .scroll-meter__fill { transition: none; }
}
