/* ============================================================
   易倍体育 EMC — 共享样式 /assets/site.css
   夜间战术室 × 球场边线
   ============================================================ */

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

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

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

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

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

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

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

:root {
  /* 色彩 */
  --ink-900: #07130F;
  --ink-800: #0C1F19;
  --ink-700: #12302A;
  --line: #1B4A3E;
  --cyan: #00E5C0;
  --cyan-soft: #7CF7DE;
  --amber: #FFA23A;
  --paper: #F2EFE6;
  --cool: #C9D3CE;
  --mute: #8A9A94;
  --alert: #E4572E;

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

  /* 节奏 */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --skew: -6deg;
  --header-h: 72px;
  --radius-cut: 18px;
}

body {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--cyan); color: #04140F; }

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

/* ---------- 通用布局 ---------- */

.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.section { padding: var(--sp-6) 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--cool);
  max-width: 60ch;
  margin-top: var(--sp-2);
}

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

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

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--sp-4) 0;
}

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

.annotation {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mute);
  line-height: 1.5;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-3);
}

/* ---------- 蓝图底 ---------- */

.blueprint {
  position: relative;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(27, 74, 62, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 74, 62, 0.32) 1px, transparent 1px),
    radial-gradient(120% 80% at 82% 0%, rgba(0, 229, 192, 0.09), transparent 62%);
  background-size: 88px 88px, 88px 88px, 100% 100%;
}

.blueprint--paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(12, 31, 25, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 31, 25, 0.07) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  color: var(--ink-800);
}

/* ---------- 按钮 ---------- */

.btn {
  --btn-bg: transparent;
  --btn-line: var(--line);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--btn-fg);
  isolation: isolate;
  transition: color 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  transform: skewX(var(--skew));
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:focus-visible { outline: none; }

.btn:focus-visible::before {
  box-shadow: 0 0 0 2px var(--cyan), 0 0 0 4px var(--ink-900);
}

.btn--primary {
  --btn-bg: var(--cyan);
  --btn-line: var(--cyan);
  --btn-fg: #04140F;
  font-weight: 700;
}

.btn--primary:hover {
  --btn-bg: var(--cyan-soft);
  --btn-line: var(--cyan-soft);
}

.btn--ghost {
  --btn-line: rgba(0, 229, 192, 0.42);
  --btn-fg: var(--cyan-soft);
}

.btn--ghost:hover {
  --btn-bg: rgba(0, 229, 192, 0.1);
  --btn-line: var(--cyan);
  --btn-fg: var(--cyan-soft);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn__ver {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border: 1px solid currentColor;
  opacity: 0.72;
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--cool);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 192, 0.45); }
.tag--amber { color: var(--amber); border-color: rgba(255, 162, 58, 0.5); }
.tag--muted { color: var(--mute); }

/* ---------- 面板 ---------- */

.panel {
  position: relative;
  background: var(--ink-700);
  border: 1px solid var(--line);
  padding: var(--sp-3);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink-800);
  border-color: rgba(12, 31, 25, 0.16);
}

.panel--flat {
  background: transparent;
  border-color: var(--line);
}

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-700);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--radius-cut)), calc(100% - var(--radius-cut)) 100%, 0 100%);
}

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

.media-frame--paper {
  background: var(--cool);
  border-color: rgba(12, 31, 25, 0.16);
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.media-frame__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(to right, var(--cyan) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cyan) 1px, transparent 1px);
  background-size: 40px 40px;
}

.media-frame__stamp {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(7, 19, 15, 0.82);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- 正文长文 ---------- */

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cool);
}

.prose > * + * { margin-top: var(--sp-2); }

.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--paper);
  margin-top: var(--sp-5);
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  margin-top: var(--sp-4);
}

.prose ul { padding-left: 0; }

.prose li {
  position: relative;
  padding-left: 20px;
  margin-top: 6px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 192, 0.4);
}

.prose a:hover { color: var(--cyan-soft); }

.prose--paper {
  color: #2A3C36;
}

.prose--paper h2,
.prose--paper h3 { color: var(--ink-800); }

.prose--paper li::before { background: var(--ink-700); }

/* ---------- 面包屑 ---------- */

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

.breadcrumb a { color: var(--cool); }

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

.breadcrumb__sep { color: var(--line); }

/* ---------- 显现与返回顶部 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
  background: var(--ink-700);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { border-color: var(--cyan); }

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #04140F;
  background: var(--cyan);
  transition: top 0.2s ease;
}

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

/* ============================================================
   头部
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-image: linear-gradient(to bottom, rgba(7, 19, 15, 0.92) 0%, rgba(7, 19, 15, 0.5) 62%, rgba(7, 19, 15, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-solid {
  background-color: rgba(12, 31, 25, 0.94);
  background-image: none;
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header.is-solid .scroll-progress { opacity: 1; }

.site-header__inner {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: var(--header-h);
}

/* 品牌 */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cyan);
  transform: skewX(-8deg);
  flex: none;
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--cyan);
  opacity: 0.75;
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__cn {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.brand__en {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.brand--footer .brand__cn { font-size: 20px; }
.brand--footer .brand__mark { width: 34px; height: 34px; }

/* 导航 */

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cool);
  transition: color 0.18s ease;
}

.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mute);
  transition: color 0.18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s ease;
}

.nav__link:hover { color: var(--cyan-soft); }
.nav__link:hover::after { transform: scaleX(1); }

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

.nav__link[aria-current="page"] .nav__index { color: var(--amber); }

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__head,
.site-nav__foot { display: none; }

/* 动作区 */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-actions__ghost {
  padding: 9px 16px;
  font-size: 13px;
}

.header-actions__cta { padding: 11px 18px; }

/* 汉堡 */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  flex: none;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 0.22s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.site-header[data-open="true"] .nav-toggle__bars::before {
  transform: translateY(5.25px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  transform: translateY(-5.25px) rotate(-45deg);
}

.nav-scrim { display: none; }

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6) 0 var(--sp-4);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--cool);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.footer__pitch {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(560px, 82%);
  height: 128px;
  transform: translateX(-50%);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0.55;
  pointer-events: none;
}

.footer__pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140px;
  height: 70px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 140px 140px;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  max-width: 340px;
}

.brand--footer { margin-bottom: 2px; }

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

.footer__stamp {
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  border: 1px solid var(--line);
}

.footer__title {
  padding-bottom: 12px;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.footer__links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--cool);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.footer__links a:hover {
  padding-left: 14px;
  color: var(--cyan-soft);
}

.footer__links a:hover::before { opacity: 1; }

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.footer__contact-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.footer__contact-key {
  flex: none;
  padding: 1px 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid var(--line);
}

.footer__contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cool);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: var(--sp-4);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

/* ============================================================
   章节目录跟随（供页面阶段使用 data-toc）
   ============================================================ */

[data-toc] a[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1080px) {
  .header-actions__ghost { display: none; }
  .nav__link { padding: 8px 9px; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; --skew: -3deg; }

  .site-header {
    background-color: rgba(7, 19, 15, 0.94);
    background-image: none;
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .site-header__inner { gap: 12px; }

  .header-actions__ghost,
  .header-actions__cta { display: none; }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(86vw, 360px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 84px 24px 32px;
    background: var(--ink-800);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1);
    will-change: transform;
  }

  .site-header[data-open="true"] .site-nav { transform: translateX(0); }

  .site-nav__head {
    display: block;
    margin-bottom: var(--sp-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--mute);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(27, 74, 62, 0.65);
  }

  .nav__link::after { left: 0; right: auto; width: 0; bottom: 0; }

  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { width: 100%; transform: none; }

  .site-nav__foot {
    display: block;
    margin-top: var(--sp-3);
  }

  .site-nav__note {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: var(--mute);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(4, 12, 10, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .site-header[data-open="true"] .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .footer__brand-col {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }
  .site-header__inner { width: calc(100% - 32px); }
  .site-footer__inner { width: calc(100% - 32px); }

  .section { padding: var(--sp-5) 0; }

  .grid-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-2);
  }

  .prose { font-size: 16px; }

  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }

  .footer__contact { gap: 10px 18px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer__pitch { display: none; }
  .footer__legal { flex-direction: column; }
  .section-title { font-size: 28px; }
}

/* ============================================================
   偏好设置
   ============================================================ */

@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;
    transform: none;
  }

  .site-nav { transition: none; }
}
