/* =========================================================
   全站体育 · 共享样式 /assets/site.css
   夜战墨绿 + 战术板网格 + 奶油纸叠层
   ========================================================= */

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

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

body {
  margin: 0;
  background: #0B1F17;
  color: #F5F7F2;
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

:root {
  /* 色彩 */
  --ink: #0B1F17;
  --charcoal: #121413;
  --lime: #C8FF3D;
  --lime-soft: rgba(200, 255, 61, 0.12);
  --red: #E5484D;
  --yellow: #F5C542;
  --white: #F5F7F2;
  --grey: #C9D1C7;
  --cream: #F1E9D6;
  --brown: #2A1F19;
  --blue: #6B7C72;

  /* 线条 */
  --line: rgba(245, 247, 242, 0.16);
  --line-soft: rgba(245, 247, 242, 0.08);
  --text-dim: rgba(245, 247, 242, 0.66);
  --text-faint: rgba(245, 247, 242, 0.46);

  /* 形状 */
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-tile: 12px;
  --shadow-float: 0 18px 42px rgba(0, 0, 0, 0.48);

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

  /* 尺寸 */
  --shell-w: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-160%);
  transition: transform 0.22s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* =========================================================
   通用排版与布局工具
   ========================================================= */
.container {
  width: min(var(--shell-w), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  padding: clamp(52px, 7vw, 100px) 0;
}

.section--tight {
  padding: clamp(28px, 4vw, 54px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-lead {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(90deg, rgba(245, 247, 242, 0.24), rgba(245, 247, 242, 0.02));
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

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

/* =========================================================
   通用组件
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn--primary:hover {
  background: #D9FF70;
  box-shadow: 0 10px 24px rgba(200, 255, 61, 0.26);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 247, 242, 0.28);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tag--lime { color: var(--lime); }
.tag--red { color: var(--red); }
.tag--yellow { color: var(--yellow); }
.tag--plain { color: rgba(245, 247, 242, 0.58); }

.paper-card {
  background: var(--cream);
  color: var(--brown);
  border: 1px solid var(--brown);
  border-radius: var(--radius-tile);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: 7px 7px 0 rgba(42, 31, 25, 0.24);
}

.paper-card a {
  color: var(--brown);
  border-bottom: 1px solid rgba(42, 31, 25, 0.4);
}

.data-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.angle-mark {
  position: relative;
}

.angle-mark::before,
.angle-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--lime);
  pointer-events: none;
}

.angle-mark::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.angle-mark::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  background: rgba(245, 197, 66, 0.09);
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(245, 247, 242, 0.84);
}

/* 图片容器基础规则（页面阶段放入 <img>） */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--charcoal);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, 0.07);
  pointer-events: none;
}

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

.image-frame--grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* 面包屑 */
.breadcrumbs {
  padding-top: clamp(18px, 2.4vw, 28px);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.breadcrumb-list a {
  color: rgba(245, 247, 242, 0.72);
  transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
  color: var(--lime);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--lime);
}

.breadcrumb-sep {
  color: rgba(245, 247, 242, 0.26);
}

/* =========================================================
   悬浮胶囊头部
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 1.4vw, 16px) 0;
}

.header-shell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: min(var(--shell-w), calc(100% - 2 * var(--gutter)));
  padding: 10px 14px 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 20, 19, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header[data-scrolled="true"] .header-shell {
  background: rgba(18, 20, 19, 0.94);
  border-color: rgba(245, 247, 242, 0.24);
  box-shadow: var(--shadow-float);
}

.header-brand {
  order: 1;
  flex: 0 0 auto;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.brand-subline {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.header-nav {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--grey);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(245, 247, 242, 0.08);
}

.nav-link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.nav-link[aria-current="page"]:hover {
  background: var(--lime);
  color: var(--ink);
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  order: 4;
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 247, 242, 0.26);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--lime);
  background: rgba(200, 255, 61, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-shell[data-open="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.header-shell[data-open="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.header-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  height: 3px;
  pointer-events: none;
}

.header-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* 中等宽度收紧导航 */
@media (max-width: 1120px) and (min-width: 961px) {
  .header-shell {
    padding-left: 16px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .header-actions .btn--ghost {
    display: none;
  }
}

/* 移动端：胶囊横向展开为下拉面板 */
@media (max-width: 960px) {
  .header-shell {
    padding: 10px 14px;
    border-radius: 26px;
  }

  .header-brand {
    order: 1;
    flex: 1 1 auto;
  }

  .nav-toggle {
    order: 2;
    display: flex;
  }

  .header-nav,
  .header-actions {
    display: none;
    flex-basis: 100%;
  }

  .header-nav {
    order: 3;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  .header-actions {
    order: 4;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    padding-bottom: 4px;
  }

  .header-shell[data-open="true"] .header-nav,
  .header-shell[data-open="true"] .header-actions {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .header-actions .btn {
    flex: 1 1 140px;
  }
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--text-dim);
  border-top: 1px solid rgba(245, 247, 242, 0.1);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
}

.footer-shell {
  position: relative;
  width: min(var(--shell-w), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-top: clamp(32px, 5vw, 56px);
}

.footer-tick {
  height: 8px;
  margin-bottom: clamp(26px, 3.4vw, 40px);
  background: repeating-linear-gradient(
    90deg,
    rgba(200, 255, 61, 0.5) 0 1px,
    transparent 1px 14px
  );
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(30px, 4.5vw, 54px);
  border-bottom: 1px solid rgba(245, 247, 242, 0.1);
}

.footer-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

.footer-tagline {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.82;
  color: var(--blue);
}

.footer-cta-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 247, 242, 0.16);
  border-radius: 14px;
  background: rgba(245, 247, 242, 0.03);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.footer-cta:hover {
  border-color: var(--lime);
  background: rgba(200, 255, 61, 0.07);
  transform: translateY(-2px);
}

.footer-cta--primary {
  border-color: rgba(200, 255, 61, 0.42);
  background: rgba(200, 255, 61, 0.08);
}

.footer-cta-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--white);
}

.footer-cta--primary .footer-cta-label {
  color: var(--lime);
}

.footer-cta-hint {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 242, 0.52);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-bottom: 1px solid rgba(245, 247, 242, 0.1);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-link {
  font-size: 14px;
  color: rgba(245, 247, 242, 0.72);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--lime);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: rgba(245, 247, 242, 0.48);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 24px 0 clamp(28px, 4vw, 42px);
}

.footer-note {
  max-width: 68ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(245, 247, 242, 0.46);
}

.footer-serial {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 247, 242, 0.36);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-serial {
    white-space: normal;
    letter-spacing: 0.1em;
  }
}

/* =========================================================
   动效与偏好
   ========================================================= */
@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;
  }

  .header-progress-bar {
    transition: none;
  }
}
