/* ============================================================
   趣体育赛场 — /assets/site.css
   共享外壳：重置 / 设计变量 / 中文排版 / 刊头 / 页脚 / 通用组件
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 152px;
}

:root {
  /* 色彩令牌 */
  --ink: #0B1F16;
  --ink-2: #12301F;
  --turf-dark: #1E5B3A;
  --turf: #2E8B57;
  --sprout: #57C97A;
  --volt: #C8FF3D;
  --score: #FF5A2B;
  --paper: #F4F1E9;
  --zone: #E3E8DC;
  --muted: #6B7A70;
  --card: #FBFBF6;
  --hairline: rgba(11, 31, 22, 0.13);
  --on-dark: rgba(244, 241, 233, 0.82);
  --on-dark-soft: rgba(244, 241, 233, 0.6);
  --on-dark-line: rgba(244, 241, 233, 0.16);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 形状 */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* 尺寸 */
  --wide: 1240px;
  --narrow: 860px;
  --shadow-1: 0 18px 40px -32px rgba(11, 31, 22, 0.85);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.012em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }

::selection { background: var(--volt); color: var(--ink); }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--turf);
  outline-offset: 3px;
}

/* ---------- 通用容器与栅格 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.wrap--narrow { max-width: var(--narrow); }

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

.band { height: 8px; background: var(--zone); }
.band--volt { background: var(--volt); }
.band--turf {
  background: repeating-linear-gradient(90deg, var(--turf-dark) 0 96px, var(--turf) 96px 192px);
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }

/* ---------- 中文排版层级 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--turf-dark);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--volt);
  flex: none;
}

.page-title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(25px, 3.4vw, 40px);
  font-weight: 800;
  margin: 0 0 14px;
}

.lede {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.8;
  color: var(--muted);
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 跳过链接 ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 刊头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.22s ease, background-color 0.22s ease;
}
.site-header[data-stuck] {
  background: rgba(244, 241, 233, 0.95);
  box-shadow: 0 16px 34px -30px rgba(11, 31, 22, 1);
}

.header__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  pointer-events: none;
}
.header__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--volt);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.7);
  transition: width 0.12s linear;
}

.header__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "ticker brand actions";
  align-items: center;
  gap: 16px;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 14px clamp(16px, 4vw, 40px) 12px;
  transition: padding 0.22s ease;
}

.header__ticker {
  grid-area: ticker;
  min-width: 0;
  max-height: 64px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.2s ease;
}

.header__brand { grid-area: brand; text-align: center; }

.header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header__download { white-space: nowrap; }

/* 报头 */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  color: var(--ink);
}
.brand__title {
  display: inline-block;
  font-size: clamp(20px, 2.5vw, 31px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.07em;
  transform: skewX(-5deg);
  transition: color 0.18s ease;
}
.brand:hover .brand__title { color: var(--turf-dark); }

.brand__sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transform: skewX(-8deg);
  white-space: nowrap;
}

/* 比分摘要条 */

.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ticker__label {
  flex: none;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--turf-dark);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.ticker__track::-webkit-scrollbar { display: none; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 12px;
  white-space: nowrap;
  scroll-snap-align: start;
}
.ticker__team { color: var(--ink-2); font-weight: 600; }
.ticker__score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--score);
}
.ticker__score i { font-style: normal; color: var(--muted); padding: 0 1px; }
.ticker__flag {
  padding: 1px 7px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 吸顶收窄态 */

.site-header[data-stuck] .header__shell { padding-block: 8px 7px; }
.site-header[data-stuck] .header__ticker { max-height: 0; opacity: 0; }
.site-header[data-stuck] .brand__sub { display: none; }

/* 导航行 */

.header__nav {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 8px clamp(16px, 4vw, 40px);
  list-style: none;
}
.nav__link {
  display: block;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav__link:hover { background: var(--zone); color: var(--ink); }
.nav__link[aria-current="page"] {
  background: var(--volt);
  color: var(--ink);
}

/* 移动导航按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.nav-toggle:hover { border-color: var(--turf); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background-color 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.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-toggle__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 17px; font-size: 13px; }

.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: #d8ff70; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--turf-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--turf);
  color: var(--turf-dark);
  background: rgba(46, 139, 87, 0.08);
}

/* ---------- 标签、表格、计量条 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--zone);
  color: var(--turf-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.tag--volt { background: var(--volt); color: var(--ink); }
.tag--score { background: rgba(255, 90, 43, 0.14); color: var(--score); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th,
.table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.table tbody tr:nth-child(even) { background: rgba(227, 232, 220, 0.45); }
.table .num { font-family: var(--font-mono); text-align: right; letter-spacing: 0.03em; }

.meter {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--zone);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--turf), var(--sprout));
}
.meter__fill--volt { background: linear-gradient(90deg, var(--sprout), var(--volt)); }

/* ---------- 卡片 ---------- */

.card {
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--card);
}
.card--ink {
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
}
.card--turf {
  background: var(--turf-dark);
  border-color: transparent;
  color: var(--paper);
}
.card--ink .muted,
.card--turf .muted { color: var(--on-dark-soft); }

/* ---------- 图片容器（页面阶段放图） ---------- */

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(87, 201, 122, 0.34), transparent 62%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.figure > img,
.figure > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(11, 31, 22, 0), rgba(11, 31, 22, 0.74));
  pointer-events: none;
}
.figure figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: rgba(244, 241, 233, 0.92);
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }

/* ---------- 面包屑 ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(107, 122, 112, 0.6); }
.crumbs a {
  color: var(--turf-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.crumbs a:hover { border-color: currentColor; }

/* ---------- 侧边章节索引 ---------- */

.index-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.index-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.index-link .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.index-link:hover { background: var(--zone); }
.index-link.is-active { background: var(--volt); color: var(--ink); }
.index-link.is-active .idx { color: var(--ink-2); }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.footer__stripe {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--volt) 0 84px, var(--turf-dark) 84px 168px);
}

.footer__inner { padding-block: clamp(36px, 5vw, 68px) 26px; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--on-dark-line);
}

.footer__brand { min-width: 0; }
.footer__mark {
  display: inline-block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  transform: skewX(-5deg);
  color: var(--paper);
}
.footer__tag {
  margin: 12px 0 8px;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
}
.footer__domain {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--volt);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.footer__col { min-width: 0; }
.footer__col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sprout);
}
.footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer__link:hover {
  color: var(--volt);
  border-bottom-color: rgba(200, 255, 61, 0.55);
}

.footer__contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(26px, 3.5vw, 42px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer__contact-title {
  margin: 0 0 9px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  transform: skewX(-4deg);
  transform-origin: left center;
  color: var(--paper);
}
.footer__contact-note {
  margin: 0;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--on-dark-soft);
}

.footer__contact-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}
.footer__address {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-left: 2px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--on-dark-soft);
}

.copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-md);
  background: rgba(244, 241, 233, 0.04);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.copy:hover {
  border-color: var(--volt);
  background: rgba(200, 255, 61, 0.08);
}
.copy__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sprout);
}
.copy__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.copy__hint {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 233, 0.5);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 241, 233, 0.58);
}
.footer__legal p { margin: 0; }
.footer__legal a {
  color: rgba(244, 241, 233, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 233, 0.26);
}
.footer__legal a:hover { color: var(--volt); border-bottom-color: var(--volt); }
.footer__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 120px; }

  .header__shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "ticker ticker";
    row-gap: 10px;
  }
  .header__brand { text-align: left; }
  .brand { align-items: flex-start; }
  .header__actions { justify-content: flex-end; }

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

  .header__nav { display: none; }
  .site-header[data-open] .header__nav { display: block; }
  .site-header[data-open] { box-shadow: 0 22px 44px -34px rgba(11, 31, 22, 1); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 18px;
  }
  .nav__link {
    padding: 13px 18px;
    border-radius: 16px;
    font-size: 16px;
  }

  .footer__top,
  .footer__contact { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--7-5,
  .grid--5-7 { grid-template-columns: minmax(0, 1fr); }

  .footer__contact-rows { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { justify-content: flex-start; }
  .copy { grid-template-columns: auto minmax(0, 1fr); }
  .copy__hint { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.2em; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 降级动效 ---------- */

@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;
  }
  .header__progress-bar { transition: none; }
  .site-header[data-stuck] .header__ticker { max-height: none; opacity: 1; }
}
