/* ============================================================
   必一运动看台 · 共享样式 /assets/site.css
   夜间数据看台：深炭黑底 + 网格坐标 + 荧光绿信号
   ============================================================ */

:root {
  --ink: #111111;
  --ink-2: #2B2B2B;
  --ink-3: #161616;
  --ink-4: #0B0B0B;
  --signal: #C6FF00;
  --signal-soft: #D9FF7A;
  --signal-shadow: #1E2A12;
  --flare: #FF5A1F;
  --paper: #F5F7F2;
  --muted: #9AA39B;
  --neutral: #6B7280;
  --line: rgba(245, 247, 242, 0.12);
  --line-soft: rgba(245, 247, 242, 0.06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --pill: 999px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(245, 247, 242, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 242, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

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

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-soft); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
figure { margin: 0; }
strong { color: var(--paper); }
small { font-size: 12px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--signal);
  color: #101004;
}

/* ---------- 通用容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 48px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--signal);
  color: #101004;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #101004; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn::after { content: "↗"; font-size: 0.9em; line-height: 1; opacity: 0.85; }
.btn--action {
  background: var(--flare);
  border-color: var(--flare);
  color: #160700;
}
.btn--action::after { content: "→"; }
.btn--action:hover {
  background: #FF7A47;
  border-color: #FF7A47;
  color: #160700;
  transform: translateY(-1px);
}
.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #101004;
}
.btn--signal::after { content: "→"; }
.btn--signal:hover {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  color: #101004;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(245, 247, 242, 0.28);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: translateY(-1px);
}

/* ---------- 标签与筛选胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--signal);
  color: #101004;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--ghost {
  background: transparent;
  border: 1px solid rgba(198, 255, 0, 0.45);
  color: var(--signal);
}
.tag--flare {
  background: var(--flare);
  color: #160700;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(245, 247, 242, 0.2);
  border-radius: var(--pill);
  background: transparent;
  color: rgba(245, 247, 242, 0.82);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}
.chip:hover { border-color: var(--signal); color: var(--signal); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  color: #101004;
}

/* ---------- 面板 ---------- */
.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral);
  list-style: none;
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb__sep { color: #3c4038; }

/* ---------- 数字与正文 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(245, 247, 242, 0.86);
}
.prose h2, .prose h3 { color: var(--paper); margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--signal);
  color: var(--muted);
}

/* ---------- 图片容器基础规则（页面阶段填充 img） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #1a1d16;
  isolation: isolate;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(198, 255, 0, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}
.media-frame::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40%;
  height: 72%;
  z-index: 0;
  background: radial-gradient(60% 100% at 72% 100%, rgba(198, 255, 0, 0.22), transparent 70%);
  pointer-events: none;
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--skew { transform: skewY(-2deg); }
.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

/* ---------- 滚动显现 ---------- */
[data-reveal] { transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(17, 17, 17, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.header-rail {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: var(--max);
  min-height: 72px;
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }
.brand__glyph {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 32px;
  border-radius: 7px 7px 7px 2px;
  background: var(--signal);
  transform: skewX(-8deg);
  box-shadow: 0 0 0 1px var(--signal-shadow), 0 8px 22px -8px rgba(198, 255, 0, 0.7);
}
.brand__glyph::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 7px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.78;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand__latin {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--muted);
  white-space: nowrap;
}

/* 状态行 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 0 auto;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(198, 255, 0, 0.22);
  border-radius: var(--pill);
  background: rgba(30, 42, 18, 0.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  animation: signal-pulse 2.4s ease-out infinite;
}
@keyframes signal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(198, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0); }
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(245, 247, 242, 0.24);
  border-radius: var(--pill);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--signal); color: var(--signal); }
.nav-toggle[aria-expanded="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: #101004;
}
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* 索引命令栏 */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.55), rgba(17, 17, 17, 0.35));
}
.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__item { flex: 0 0 auto; margin: 0; }
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px clamp(14px, 2vw, 26px);
  color: rgba(245, 247, 242, 0.72);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
  color: var(--neutral);
  transition: color 0.18s var(--ease);
}
.site-nav__link:hover {
  color: var(--paper);
  background: rgba(245, 247, 242, 0.05);
}
.site-nav__link:hover .site-nav__num { color: var(--signal); }
.site-nav__link[aria-current="page"] {
  color: var(--signal);
  background: rgba(198, 255, 0, 0.07);
}
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--signal); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--signal);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--signal), var(--flare));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform 0.1s linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  background: var(--ink-4);
  border-top: 1px solid var(--line);
  color: var(--paper);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(900px 320px at 84% -12%, rgba(198, 255, 0, 0.11), transparent 72%);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 42vw);
  height: 3px;
  background: var(--signal);
}
.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 76px) 28px;
}

.footer-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  padding-bottom: 28px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.footer-lead__kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal);
}
.footer-lead__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer-lead__link { flex: 0 0 auto; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.foot-col {
  min-width: 0;
  padding-top: 4px;
}
.foot-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-col__title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  flex: 0 0 auto;
}
.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.foot-list li { margin: 0; }
.foot-link {
  display: inline-block;
  color: rgba(245, 247, 242, 0.78);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.foot-link:hover {
  color: var(--signal);
  transform: translateX(3px);
}
.foot-list--plain li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.foot-base-icp {
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 242, 0.72) !important;
}
.foot-col--contact {
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid rgba(198, 255, 0, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #202417, #16190f);
  box-shadow: 0 28px 56px -36px rgba(198, 255, 0, 0.55);
}
.foot-col--contact .foot-col__title { color: var(--signal); }
.foot-col__cta {
  width: 100%;
  margin-top: 18px;
  padding: 11px 16px;
  font-size: 13px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 22px;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.footer-note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--neutral);
}
.footer-base__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-status { font-size: 10px; letter-spacing: 0.06em; }
}

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

  .header-rail {
    flex-wrap: wrap;
    row-gap: 8px;
    min-height: 64px;
    padding-block: 11px;
  }
  .brand { margin-right: auto; }
  .brand__name { font-size: 15px; }
  .brand__latin { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-rail > .btn--action { display: none; }
  .header-status {
    order: 4;
    flex: 1 1 100%;
    margin: 0;
    padding: 5px 0 0;
    border: 0;
    background: transparent;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--muted);
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 6px 0 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #141414;
    box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.92);
  }
  .site-nav[data-open] {
    display: block;
    animation: nav-drop 0.22s var(--ease);
  }
  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .site-nav__list {
    flex-direction: column;
    padding: 0;
    overflow: visible;
  }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    gap: 12px;
    padding: 15px var(--gutter);
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav__num { font-size: 11px; }
  .site-nav__link[aria-current="page"] { background: rgba(198, 255, 0, 0.06); }
  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }

  .footer-lead { align-items: flex-start; }
  .footer-lead__link { width: 100%; justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col--contact { order: -1; }
  .footer-base { justify-content: flex-start; }
  .btn { padding: 11px 18px; font-size: 13px; }
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
  }
  .status-dot { animation: none; box-shadow: 0 0 0 3px rgba(198, 255, 0, 0.22); }
  .site-nav[data-open] { animation: none; }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .scroll-progress { transition: none; }
}
