/* ==========================================================================
   易倍体育入口 — 全站共享样式 /assets/site.css
   夜场墨绿底 · 荧光青状态 · 暖橙标记 · 印刷目录骨架
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

:where(a, button, summary) { -webkit-tap-highlight-color: transparent; }

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

/* 2. 设计令牌 ------------------------------------------------------------- */
:root {
  /* 色彩 */
  --c-ink:        #071C16; /* 夜场墨绿 主背景 */
  --c-turf:       #0D2E24; /* 深草皮绿 分区/卡片 */
  --c-neon:       #00E5C7; /* 荧光青 实时/焦点 */
  --c-amber:      #FF8A3D; /* 暖橙 专栏/日期/时间轴 */
  --c-wine:       #5B1F33; /* 酒红 章节标签 */
  --c-indigo:     #1B1F4B; /* 靛紫 卷轴/错位色块 */
  --c-paper:      #F2F7F4; /* 浅纸白 正文 */
  --c-mute:       #9AB5AA; /* 中灰绿 次要文本 */
  --c-void:       #03120E; /* 深黑绿 页脚/边框 */
  --c-neon-soft:  #7CFFE8; /* 荧光青浅 悬停/光晕 */
  --c-rose:       #F0C7D6; /* 酒红分区上的浅文字 */

  /* 线条 */
  --line-strong: 1px solid rgba(154, 181, 170, 0.34);
  --line-soft:   1px solid rgba(154, 181, 170, 0.18);
  --line-neon:   1px solid rgba(0, 229, 199, 0.42);

  /* 字体 */
  --font-display: "Archivo Narrow", "Roboto Condensed", "Noto Sans SC",
                  "Source Han Sans SC", "PingFang SC", "Microsoft YaHei",
                  system-ui, -apple-system, sans-serif;
  --font-body:    Inter, "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", system-ui,
                  -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Roboto Mono", ui-monospace,
                  SFMono-Regular, Menlo, Consolas, monospace;
  --font-note:    "IBM Plex Sans", "Noto Sans SC", system-ui, sans-serif;

  /* 尺寸 */
  --shell: 1320px;
  --gutter: clamp(16px, 3.2vw, 42px);
  --head-h: 76px;
  --radius-s: 2px;
  --radius-m: 4px;
  --radius-l: 8px;

  /* 节奏 */
  --gap-xs: 8px;
  --gap-s: 14px;
  --gap-m: 22px;
  --gap-l: clamp(28px, 4vw, 56px);
  --gap-xl: clamp(48px, 7vw, 104px);
}

/* 3. 基础排版 ------------------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.5vw + 13.6px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--c-paper);
  background-color: var(--c-ink);
  background-image:
    radial-gradient(1200px 700px at 84% -12%, rgba(0, 229, 199, 0.09), transparent 62%),
    radial-gradient(1000px 620px at -12% 106%, rgba(27, 31, 75, 0.55), transparent 64%),
    repeating-linear-gradient(0deg,
      rgba(242, 247, 244, 0.022) 0 1px,
      transparent 1px 5px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--c-paper);
}

h1 { font-size: clamp(32px, 4.8vw, 58px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 23px); }
h4 { font-size: clamp(16px, 1.2vw, 18px); }

p { text-wrap: pretty; }

strong { color: var(--c-paper); font-weight: 700; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

code, kbd, samp, .mono { font-family: var(--font-mono); }

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

:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

/* 4. 布局骨架 ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

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

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.prose {
  max-width: 68ch;
  font-size: 1rem;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  position: relative;
  padding-left: 20px;
}

.prose ul > li + li { margin-top: 0.5em; }

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--c-neon);
}

.rule {
  height: 1px;
  border: 0;
  background: rgba(154, 181, 170, 0.22);
  margin-block: clamp(24px, 4vw, 48px);
}

/* 5. 通用文字与标签 ------------------------------------------------------- */
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.72;
  color: var(--c-paper);
}

.muted { color: var(--c-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-amber);
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 24px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  padding-bottom: 14px;
  border-bottom: var(--line-soft);
}

.section-head__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
}

.section-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-mute);
  padding-left: 12px;
  border-left: 3px solid var(--c-amber);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
  border: 1px solid currentColor;
  border-radius: var(--radius-s);
  color: var(--c-mute);
  background: transparent;
}

.tag--neon {
  color: var(--c-neon);
  background: rgba(0, 229, 199, 0.1);
  border-color: rgba(0, 229, 199, 0.45);
}

.tag--amber {
  color: var(--c-amber);
  background: rgba(255, 138, 61, 0.1);
  border-color: rgba(255, 138, 61, 0.45);
}

.tag--wine {
  color: var(--c-rose);
  background: var(--c-wine);
  border-color: transparent;
}

.note {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-note);
  font-size: 13px;
  line-height: 1.72;
  color: var(--c-mute);
}

.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--c-amber);
}

.note--neon::before { background: var(--c-neon); }

/* 6. 按钮 ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--neon {
  background: var(--c-neon);
  color: var(--c-ink);
}

.btn--neon:hover { background: var(--c-neon-soft); }

.btn--ghost {
  background: transparent;
  color: var(--c-paper);
  border-color: rgba(154, 181, 170, 0.42);
}

.btn--ghost:hover {
  color: var(--c-neon);
  border-color: var(--c-neon);
  background: rgba(0, 229, 199, 0.08);
}

.btn--amber {
  background: var(--c-amber);
  color: var(--c-void);
}

.btn--amber:hover { background: #FFA463; }

/* 7. 卡片与面包屑 --------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--c-turf);
  border: var(--line-soft);
  border-radius: var(--radius-m);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-mute);
}

.crumb a {
  color: var(--c-mute);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 181, 170, 0.35);
}

.crumb a:hover {
  color: var(--c-neon);
  border-bottom-color: var(--c-neon);
}

.crumb__sep { color: rgba(154, 181, 170, 0.5); }

/* 8. 图片容器基础（页面阶段放置 img / picture） --------------------------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: var(--line-soft);
  border-radius: var(--radius-m);
  background-color: var(--c-turf);
  background-image:
    linear-gradient(135deg, var(--c-turf) 0%, #123A2E 46%, var(--c-indigo) 100%);
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.94);
}

.media-frame--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(242, 247, 244, 0.05) 0 2px,
      transparent 2px 12px);
  pointer-events: none;
}

.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  font-family: var(--font-note);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-paper);
  background: linear-gradient(to top,
    rgba(3, 18, 14, 0.94) 0%,
    rgba(3, 18, 14, 0.62) 52%,
    rgba(3, 18, 14, 0) 100%);
  border-left: 3px solid var(--c-neon);
}

/* 9. 页头 ----------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 300;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  background: var(--c-neon);
  text-decoration: none;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  transition: top 0.18s ease;
}

.skip-link:focus { top: 0; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(3, 18, 14, 0.94);
  border-top: 3px solid var(--c-neon);
  border-bottom: var(--line-strong);
  box-shadow: 0 14px 34px -24px rgba(0, 229, 199, 0.6);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
}

.site-head__frame {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: var(--head-h);
}

/* 品牌署名 */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-paper);
}

.brand__mark {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: var(--c-neon);
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(0, 229, 199, 0.14);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mute);
  padding-left: 23px;
}

/* 移动目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-neon);
  background: rgba(0, 229, 199, 0.08);
  border: var(--line-neon);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { background: rgba(0, 229, 199, 0.18); }

.nav-toggle[aria-expanded="true"] {
  background: var(--c-neon);
  color: var(--c-ink);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

/* 主导航 */
.primary-nav { margin-left: auto; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__list a {
  display: block;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-mute);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  transition: color 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease;
}

.primary-nav__list a:hover {
  color: var(--c-paper);
  background: rgba(0, 229, 199, 0.08);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--c-ink);
  background: var(--c-neon);
  border-bottom-color: var(--c-paper);
}

/* 实时数据条 */
.scoretick {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-neon-soft);
  background: linear-gradient(180deg,
    rgba(0, 229, 199, 0.12) 0%,
    rgba(0, 229, 199, 0.02) 100%);
  border: var(--line-neon);
  border-radius: var(--radius-s);
}

.scoretick__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-neon);
  animation: tickPulse 2.4s ease-in-out infinite;
}

.scoretick__text { color: var(--c-mute); }

.scoretick__clock { color: var(--c-neon); }

@keyframes tickPulse {
  0%, 100% {
    opacity: 0.35;
    box-shadow: 0 0 0 0 rgba(0, 229, 199, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(0, 229, 199, 0);
  }
}

/* 10. 页脚 ---------------------------------------------------------------- */
.site-foot {
  margin-top: var(--gap-xl);
  background: var(--c-void);
  border-top: 3px solid var(--c-amber);
  color: var(--c-paper);
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.3fr 1.1fr;
  gap: clamp(22px, 3vw, 46px);
  padding-block: clamp(38px, 6vw, 68px) clamp(22px, 3.5vw, 40px);
}

.foot-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-paper);
}

.foot-brand__desc {
  margin-top: 12px;
  max-width: 36ch;
  font-family: var(--font-note);
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--c-mute);
}

.foot-brand__region {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-neon);
}

.foot-col__title {
  margin-bottom: 15px;
  padding-left: 11px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-amber);
  border-left: 3px solid var(--c-amber);
}

.foot-links {
  display: grid;
  gap: 9px;
}

.foot-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--c-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-links a:hover {
  color: var(--c-paper);
  border-bottom-color: var(--c-neon);
}

.foot-meta {
  display: grid;
  gap: 11px;
}

.foot-meta li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: baseline;
}

.foot-meta__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-amber);
}

.foot-meta__v {
  font-family: var(--font-note);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-mute);
  word-break: break-word;
}

.foot-note {
  font-family: var(--font-note);
  font-size: 13px;
  line-height: 1.72;
  color: var(--c-mute);
}

.foot-note + .foot-note { margin-top: 10px; }

.foot-note:first-of-type {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--c-paper);
}

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 28px;
  border-top: var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-mute);
}

/* 11. JS 注入元素 --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-neon) 0%, var(--c-amber) 100%);
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--c-neon);
  background: var(--c-turf);
  border: var(--line-neon);
  border-radius: var(--radius-m);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease,
              visibility 0.25s ease, background-color 0.2s ease,
              color 0.2s ease;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  color: var(--c-ink);
  background: var(--c-neon);
}

/* 12. 响应式：平板与手机 --------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --head-h: 64px; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .scoretick { display: none; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100vh - var(--head-h) - 20px);
    overflow-y: auto;
    padding: 14px var(--gutter) 24px;
    background: var(--c-void);
    border-bottom: 3px solid var(--c-neon);
    box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease,
                visibility 0.22s ease;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-nav__list a {
    padding: 14px 14px;
    font-size: 15.5px;
    border-bottom: var(--line-soft);
    border-radius: 0;
  }

  .primary-nav__list a[aria-current="page"] {
    color: var(--c-ink);
    background: var(--c-neon);
    border-bottom-color: transparent;
  }

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

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

@media (max-width: 860px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .brand__tag { display: none; }
  .brand__text { font-size: 17px; }
  .section-head__note { margin-left: 0; }
}

@media (max-width: 620px) {
  .site-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .site-foot__base { justify-content: flex-start; }
  .foot-meta li { grid-template-columns: 44px 1fr; }
  .to-top { right: 12px; bottom: 12px; }
}

/* 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;
  }

  .scoretick__pulse { animation: none; opacity: 1; }
  .scroll-progress { display: none !important; }
  .to-top { transition: none; }
  .btn:hover,
  .to-top.is-on { transform: none; }
}
