/* ==========================================================================
   非凡体育 · 共享基础样式 /assets/site.css
   基调：墨绿坐标纸 + 荧光青数据高亮 + 暖橙口径标注 + 堆叠面板
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0A1F1A;
  --panel: #102C25;
  --panel-lift: #163A31;
  --cyan: #4FE0C0;
  --cyan-soft: #A8F3E4;
  --orange: #FF8A3D;
  --orange-soft: #FFB27A;
  --paper: #EAF3F0;
  --muted: #8FA8A2;
  --veil: rgba(79, 224, 192, 0.12);
  --hairline: rgba(168, 243, 228, 0.16);

  --font-display: "Archivo Narrow", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --shell: 1220px;
  --gutter: clamp(18px, 4vw, 46px);
  --stack-gap: clamp(18px, 2.6vw, 32px);
  --header-h: 78px;

  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
    --radius-xl: 26px;
    --radius-lg: 18px;
  }
}

/* ---------- 2. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: var(--header-h);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(168, 243, 228, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 243, 228, 0.05) 1px, transparent 1px),
    radial-gradient(110% 68% at 84% -14%, rgba(79, 224, 192, 0.13), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(255, 138, 61, 0.07), transparent 64%);
  background-size: 76px 76px, 76px 76px, 100% 100%, 100% 100%;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.14; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

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

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

/* ---------- 3. 中文排版与工具类 ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.04;
}

.h2 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.16;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.32;
}

.lede {
  max-width: 34em;
  margin: 0 0 1.1em;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(234, 243, 240, 0.78);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- 4. 面板 / 网格 / 卡片 ---------- */
.stack {
  display: grid;
  gap: var(--stack-gap);
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.2vw, 42px);
}

.panel--lift { background: var(--panel-lift); }

.grid {
  display: grid;
  gap: var(--stack-gap);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

/* ---------- 5. 胶囊 / 标签 / 面包屑 ---------- */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(168, 243, 228, 0.06);
  color: rgba(234, 243, 240, 0.82);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.pill:hover {
  background: var(--veil);
  color: var(--paper);
  border-color: rgba(79, 224, 192, 0.38);
}

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid rgba(79, 224, 192, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(79, 224, 192, 0.14);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tag--alert {
  background: rgba(255, 138, 61, 0.16);
  border-color: rgba(255, 138, 61, 0.36);
  color: var(--orange-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb > *:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(143, 168, 162, 0.55);
}

/* ---------- 6. 图片容器（页面阶段直接复用） ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, #143A31 0%, #0C241E 58%, #0A1F1A 100%);
}

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

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

.media-frame__note {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-soft);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

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

.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  background: var(--veil);
  border-color: rgba(79, 224, 192, 0.42);
}

/* ---------- 8. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.22s ease;
}

.skip-link:focus { top: 14px; }

/* ---------- 9. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(10, 31, 26, 0.78) 0%, rgba(10, 31, 26, 0) 100%);
  transition: background-color 0.34s ease, box-shadow 0.34s ease, background-image 0.34s ease;
}

.site-header.is-solid,
.site-header.is-nav-open {
  background-color: var(--ink);
  background-image: none;
  box-shadow: 0 1px 0 var(--hairline), 0 22px 46px -34px rgba(0, 0, 0, 0.95);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.brand-mark__ring {
  position: absolute;
  inset: 7px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.brand-mark__arc {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 17px;
  height: 17px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  border-top-right-radius: 15px;
}

.brand-text { display: grid; gap: 1px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  line-height: 1.2;
  color: var(--muted);
}

/* 导航 */
.nav { flex: none; }

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(234, 243, 240, 0.72);
  white-space: nowrap;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: var(--veil);
}

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

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.nav-toggle:hover { background: var(--veil); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { font-family: var(--font-mono); }

/* 阅读进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  margin-top: clamp(52px, 8vw, 116px);
  background: var(--panel);
  border-top: 1px solid var(--hairline);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5.6vw, 70px) var(--gutter) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: clamp(26px, 4vw, 52px);
}

.footer-col { min-width: 0; }

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: rgba(234, 243, 240, 0.82);
  transition: color 0.22s ease, border-color 0.22s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
}

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

.footer-line--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(168, 243, 228, 0.72);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-icp { color: rgba(143, 168, 162, 0.78); }

/* ---------- 11. 显现 ---------- */
.reveal {
  opacity: 0.6;
  transform: translateY(16px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1120px) {
  .nav-link { padding: 0 12px; font-size: 14px; }
  .brand-sub { display: none; }
}

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--meta { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-actions > .btn { display: none; }

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

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 14px var(--gutter) 26px;
    background: var(--panel);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    height: auto;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(168, 243, 228, 0.05);
    border-color: rgba(168, 243, 228, 0.08);
    font-size: 17px;
  }

  .nav-link[aria-current="page"] {
    border-color: var(--cyan);
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .lede { font-size: 16px; }
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col--meta { grid-column: auto; }
  .footer-links { gap: 10px 18px; }
}

@media (max-width: 420px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 15px; letter-spacing: 0.12em; }
  .nav-toggle__label { display: none; }
  .footer-base { flex-direction: column; }
}

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

  .reveal { opacity: 1 !important; transform: none !important; }
  .header-progress { display: none; }
}
