/* ============================================================
   爱体育主站 · 共享样式表 /assets/site.css
   主题：夜场灯光 + 草皮绿 · 战术研究板秩序感
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #07251C;
  --ink-950: #0B0F0D;
  --moss: #4F6B45;
  --turf: #2E7D4F;
  --neon: #48F0B0;
  --bone: #F1EAD8;
  --stone: #8A9088;
  --clay: #B9663F;
  --card-red: #D94B45;
  --card-yellow: #F2C14E;

  --text: var(--bone);
  --text-dim: #C3CFC2;
  --text-mute: var(--stone);
  --line: rgba(138, 144, 136, 0.26);
  --line-strong: rgba(138, 144, 136, 0.46);

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", 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: "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --dur: 220ms;
  --dur-fast: 180ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. 中文排版基线 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(46, 125, 79, 0.42), transparent 62%),
    radial-gradient(780px 460px at 2% 6%, rgba(79, 107, 69, 0.3), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
p { text-wrap: pretty; }

/* ---------- 4. 布局基元 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 6vw, 84px); }
.section--tight { padding-block: clamp(26px, 4vw, 48px); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(24px, 4vw, 40px);
}

/* ---------- 5. 排版工具 ---------- */
.display {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
}
.lede {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 62ch;
}
.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--neon);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.92;
  color: #D5DCD2;
}
.prose p + p { margin-top: 1em; }
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--bone);
}
.prose ul { list-style: none; margin-top: 0.8em; }
.prose li { position: relative; padding-left: 18px; margin-bottom: 0.5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background: var(--neon);
}
.prose a { color: var(--neon); text-underline-offset: 3px; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn--primary {
  background: var(--neon);
  color: #06231A;
  box-shadow: 0 12px 28px -16px rgba(72, 240, 176, 0.95);
}
.btn--primary:hover { background: #7CF7C6; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 7. 胶囊与标签 ---------- */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(11, 15, 13, 0.42);
  color: #C7D2C6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.pill:hover { border-color: rgba(72, 240, 176, 0.72); color: var(--bone); }
.pill[aria-pressed="true"],
.pill[aria-current="true"],
.pill.is-active {
  background: rgba(72, 240, 176, 0.14);
  border-color: var(--neon);
  color: var(--neon);
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(241, 234, 216, 0.1);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.tag--neon { background: rgba(72, 240, 176, 0.16); color: var(--neon); }
.tag--clay { background: rgba(185, 102, 63, 0.24); color: #E8B79A; }
.tag--red { background: rgba(217, 75, 69, 0.22); color: #F19591; }
.tag--yellow { background: rgba(242, 193, 78, 0.18); color: var(--card-yellow); }

/* ---------- 8. 面板与图片容器 ---------- */
.panel {
  background: linear-gradient(158deg, rgba(79, 107, 69, 0.26), rgba(11, 15, 13, 0.58));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(148deg, rgba(46, 125, 79, 0.4), rgba(7, 37, 28, 0.9)),
    repeating-linear-gradient(90deg, rgba(241, 234, 216, 0.05) 0 1px, transparent 1px 46px);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 37, 28, 0.86);
  border: 1px solid rgba(72, 240, 176, 0.4);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- 9. 可展开内容组 ---------- */
.expand {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 15, 13, 0.52);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.expand[data-open="true"] { border-color: rgba(72, 240, 176, 0.45); }
.expand-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bone);
  transition: background-color var(--dur) var(--ease);
}
.expand-trigger:hover { background: rgba(72, 240, 176, 0.07); }
.expand-trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--neon);
  transition: transform var(--dur) var(--ease);
}
.expand-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.expand-panel {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
  border-top: 1px solid rgba(138, 144, 136, 0.16);
  padding-top: 16px;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs { margin-bottom: 26px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}
.breadcrumb-list li + li {
  position: relative;
  padding-left: 18px;
}
.breadcrumb-list li + li::before {
  content: "/";
  position: absolute;
  left: 4px;
  top: 0;
  color: rgba(138, 144, 136, 0.6);
}
.breadcrumb-link {
  color: #C7D2C6;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.breadcrumb-link:hover { color: var(--neon); }
.breadcrumb-current { color: var(--bone); }

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--neon);
  color: #06231A;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus-visible {
  top: 14px;
  outline-offset: 3px;
}

/* ---------- 12. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 37, 28, 0.98), rgba(7, 37, 28, 0.9));
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid rgba(138, 144, 136, 0.18);
}
.header-shell { padding-block: 12px; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 13, 0.78);
  border: 1px solid rgba(138, 144, 136, 0.24);
  box-shadow: 0 22px 44px -32px rgba(0, 0, 0, 0.95);
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--bone);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--neon), var(--turf));
  color: #06231A;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--neon);
}
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: #C3CFC2;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--bone); background: rgba(241, 234, 216, 0.08); }
.nav-link[aria-current="page"] {
  color: #05201A;
  background: var(--neon);
}
.nav-link[aria-current="page"]:hover { color: #05201A; background: #7CF7C6; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(72, 240, 176, 0.34);
  background: rgba(72, 240, 176, 0.08);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(72, 240, 176, 0.18);
  flex: 0 0 auto;
}
.header-cta { flex: 0 0 auto; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color var(--dur-fast) var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle-text { letter-spacing: 0.04em; }
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon), var(--turf));
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 118px);
  padding: clamp(38px, 5vw, 64px) 0 26px;
  background: var(--ink-950);
  border-top: 1px solid rgba(138, 144, 136, 0.2);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--turf) 42%, transparent 88%);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-line {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.footer-note { font-size: 13.5px; line-height: 1.75; color: var(--text-mute); max-width: 34ch; }
.footer-version {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--clay);
  border-left: 2px solid rgba(185, 102, 63, 0.6);
  padding-left: 10px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-nav-group { min-width: 0; }
.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--neon);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: #C3CFC2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-link:hover { color: var(--neon); border-bottom-color: rgba(72, 240, 176, 0.5); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid rgba(138, 144, 136, 0.18);
}
.footer-contact {
  flex: 1 1 100%;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-mute);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-mute);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-mute);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.back-to-top::after { content: "↑"; font-family: var(--font-mono); color: var(--neon); }
.back-to-top:hover { border-color: var(--neon); color: var(--neon); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .brand-tagline { display: none; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .version-badge { display: none; }
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
  }
  .nav-toggle { display: inline-flex; }
  .header-tools { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 5;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: #0B0F0D;
    border: 1px solid rgba(138, 144, 136, 0.28);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    padding: 13px 16px;
    border-radius: 18px;
    font-size: 15px;
    white-space: normal;
  }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-bottom { gap: 10px 18px; }
  .back-to-top { margin-left: 0; }
  .expand-trigger { padding: 14px 16px; font-size: 15px; }
  .expand-panel { padding: 14px 16px 16px; }
  .media-caption { font-size: 11px; padding: 4px 10px; }
}

/* ---------- 15. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn--primary:hover { transform: none; }
}
