/* ============================================================
   飞亚体育 /assets/site.css
   共享外壳：reset、变量、中文排版、页头、页脚、通用组件
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font: inherit; }

/* ---------- 变量 ---------- */
:root {
  --bg: #0B1412;
  --panel: #101B18;
  --surface: #17241F;
  --line: #2A3B34;
  --muted: #7C8F87;
  --ink: #E8F1EC;
  --cyan: #22E0C8;
  --orange: #FF7A2F;
  --cyan-soft: #6EE7D7;
  --orange-deep: #C2410C;

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

  --gutter: clamp(32px, 8vw, 96px);
  --gap: clamp(16px, 2.2vw, 28px);
  --speed: .18s;
  --r: 2px;
}

/* ---------- 基础排版 ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04120F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  transform: translateY(-240%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: none; }

.site-main {
  padding-top: clamp(112px, 13vw, 148px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.site-main:focus { outline: none; }

/* 文字建筑 */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .98;
}
.display-xl { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: .92; font-size: clamp(46px, 9vw, 112px); }
.serif { font-family: var(--font-serif); font-weight: 500; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }
.lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: rgba(232, 241, 236, .88);
  max-width: 32em;
}
.note { font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.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;
}

/* ---------- 布局 ---------- */
.wrap { width: min(1180px, 100% - var(--gutter)); margin-inline: auto; }
.wrap--wide { width: min(1440px, 100% - clamp(24px, 5vw, 64px)); margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }
.start-2 { grid-column-start: 2; }
.start-3 { grid-column-start: 3; }
.start-4 { grid-column-start: 4; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--primary { background: var(--cyan); border-color: var(--cyan); color: #04120F; }
.btn--primary:hover { background: var(--cyan-soft); border-color: var(--cyan-soft); color: #04120F; }
.btn--ghost { border-color: rgba(232, 241, 236, .28); }
.btn--orange { border-color: rgba(255, 122, 47, .55); color: var(--orange); }
.btn--orange:hover { background: rgba(255, 122, 47, .1); border-color: var(--orange); color: var(--orange); }
.btn__icon { font-family: var(--font-mono); font-size: 12px; }

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(42, 59, 52, .3);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.chip--cyan { color: var(--cyan); border-color: rgba(34, 224, 200, .45); background: rgba(34, 224, 200, .08); }
.chip--orange { color: var(--orange); border-color: rgba(255, 122, 47, .45); background: rgba(255, 122, 47, .08); }

/* ---------- 筛选 ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-btn {
  padding: 8px 14px;
  font-size: 13.5px;
  color: rgba(232, 241, 236, .72);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: color var(--speed) ease, background var(--speed) ease, border-color var(--speed) ease, transform var(--speed) ease;
}
.filter-btn:hover { color: var(--ink); border-color: rgba(34, 224, 200, .5); }
.filter-btn[aria-pressed="true"] { color: #04120F; background: var(--cyan); border-color: var(--cyan); }
.filter-btn[aria-pressed="true"]::before { content: "/"; margin-right: 6px; opacity: .55; }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
[data-filter-item][data-hidden] { display: none; }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 章节头 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.section-head__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(11, 20, 18, 0), rgba(11, 20, 18, .72));
  pointer-events: none;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--plain::after { display: none; }
.media-caption { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- 横向数据带 ---------- */
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.band__item {
  flex: 0 0 auto;
  min-width: clamp(180px, 22vw, 260px);
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}
.band__item:last-child { border-right: 0; }
.band__label { font-size: 12.5px; color: var(--muted); }
.band__value { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--ink); }
.band__value--cyan { color: var(--cyan); }
.band__value--orange { color: var(--orange); }
.band__unit { margin-left: 4px; font-size: 13px; color: var(--muted); }

/* ---------- 数据表 ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.data-table { width: 100%; min-width: 560px; font-size: 14.5px; }
.data-table th,
.data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table tbody tr:hover { background: rgba(42, 59, 52, .3); }
.data-table td.num,
.data-table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 时间轴列表 ---------- */
.log { position: relative; padding-left: 22px; }
.log::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.log__item { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); }
.log__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 26px;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}
.log__mark { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.log__title { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 1.5; }
.log__body { font-size: 14.5px; color: rgba(232, 241, 236, .82); margin-top: 6px; max-width: 38em; }

/* ---------- 进入显现 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal[data-revealed] { opacity: 1; transform: none; }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 14px clamp(12px, 3vw, 28px) 0;
  pointer-events: none;
  transition: padding .24s ease;
}
.site-header > * { pointer-events: auto; }
.site-header[data-condensed] { padding-top: 8px; }

.capsule {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  background: rgba(16, 27, 24, .88);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  transition: padding .24s ease, background var(--speed) ease;
}
.site-header[data-condensed] .capsule { padding: 5px 8px 5px 14px; background: rgba(16, 27, 24, .96); }

.capsule__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand-tag { font-size: 12px; letter-spacing: .1em; color: var(--muted); transition: opacity var(--speed) ease; }
.site-header[data-condensed] .brand-tag { opacity: 0; }

.capsule__slash {
  flex: 0 0 auto;
  width: 2px;
  height: 24px;
  transform: skewX(-16deg);
  background: linear-gradient(180deg, transparent, var(--line) 35%, var(--line) 65%, transparent);
}

.capsule__nav { flex: 1 1 auto; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  padding: 7px 11px;
  font-size: 14px;
  color: rgba(232, 241, 236, .76);
  text-decoration: none;
  border-radius: var(--r);
  transition: color var(--speed) ease, background var(--speed) ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--cyan); background: rgba(34, 224, 200, .07); }
.nav-link[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 -1px 0 0 var(--cyan); }

.capsule__cta {
  flex: 0 0 auto;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  color: #04120F;
  background: var(--cyan);
  border-radius: var(--r);
  transition: background var(--speed) ease;
}
.capsule__cta:hover { background: var(--cyan-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 8px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transition: transform var(--speed) ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-3.5px) rotate(-45deg); }

/* 越位线刻度 */
.offside { position: relative; width: min(1180px, 100%); height: 13px; margin: 8px auto 0; }
.offside__ticks {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 26px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 26px 6px;
  opacity: .85;
}
.offside__fill {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 224, 200, .55);
}
.offside__mark {
  position: absolute;
  left: 0; bottom: -2px;
  z-index: 3;
  width: 2px;
  height: 11px;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 122, 47, .55);
  transition: left .08s linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(40px, 6vw, 72px) 0 26px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 36px, transparent 36px 64px);
  opacity: .45;
}
.footer-inner { width: min(1180px, 100% - var(--gutter)); margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr 1.05fr; gap: clamp(28px, 4vw, 56px); }

.footer-mark { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .01em; }
.footer-tagline { margin-top: 4px; font-family: var(--font-serif); font-weight: 500; font-size: 16px; color: var(--cyan); }
.footer-note { margin-top: 14px; max-width: 30ch; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.footer-region {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink);
}
.footer-region__dot { width: 6px; height: 6px; background: var(--orange); }

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.footer-list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(232, 241, 236, .78);
  text-decoration: none;
  transition: color var(--speed) ease, box-shadow var(--speed) ease;
}
.footer-list a:hover { color: var(--cyan); box-shadow: inset 0 -1px 0 0 var(--cyan); }

.footer-contact { border-top: 1px solid var(--line); }
.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.footer-label { min-width: 34px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.footer-value { font-family: var(--font-mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.footer-meta { margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.copy-btn {
  margin-left: auto;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: color var(--speed) ease, border-color var(--speed) ease, background var(--speed) ease;
}
.copy-btn:hover { color: var(--cyan); border-color: rgba(34, 224, 200, .5); }
.copy-btn[data-state="copied"] { color: #04120F; background: var(--cyan); border-color: var(--cyan); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header { padding-top: 10px; }
  .capsule { padding: 8px 10px; gap: 10px; }
  .capsule__slash { display: none; }
  .brand-tag { display: none; }
  .capsule__cta { margin-left: auto; padding: 8px 13px; font-size: 13px; }
  .nav-toggle { display: inline-flex; margin-left: 0; }

  .capsule__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(16, 27, 24, .98);
    border: 1px solid var(--line);
    border-radius: var(--r);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--speed) ease, transform var(--speed) ease, visibility var(--speed) ease;
  }
  .capsule__nav[data-open] { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: block; padding: 12px 10px; font-size: 15px; border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav-list li:last-child .nav-link { border-bottom: 0; }
  .nav-link[aria-current="page"] { background: rgba(34, 224, 200, .08); }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  [class*="span-"] { grid-column: 1 / -1; }
  [class*="start-"] { grid-column-start: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-list { grid-template-columns: 1fr; }
  .filter-count { margin-left: 0; width: 100%; }
  .log { padding-left: 16px; }
  .log__item::before { left: -19px; }
}

@media (max-width: 420px) {
  .brand-mark { font-size: 18px; }
  .footer-value { font-size: 12px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .offside__mark { transition: none; }
}
