/* =========================================================
   易倍体育入口 · 共享站点样式 /assets/site.css
   深空蓝底噪 · 左侧品牌轨道 · 印刷研究板叠层
   ========================================================= */

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

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

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

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

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

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

button { background: none; border: 0; }

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

main { display: block; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #050C1A;
  --layer: #0B1B33;
  --rail-blue: #16305A;
  --lime: #C8FF2E;
  --orange: #FF6A1F;
  --paper: #F2EFE6;
  --ice: #E6EDF7;
  --mist: #8FA6C4;
  --score: #FFD166;

  --rail-w: 88px;
  --max: 1180px;
  --pad-x: clamp(1rem, 3vw, 2.5rem);

  --line: rgba(143, 166, 196, 0.22);
  --line-strong: rgba(143, 166, 196, 0.42);
  --layer-soft: rgba(11, 27, 51, 0.72);

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background: var(--deep);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ice);
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

p { max-width: 34em; }

::selection {
  background: var(--lime);
  color: #07101C;
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.7rem 1.25rem;
  background: var(--lime);
  color: #07101C;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.skip-link:focus {
  left: calc(var(--rail-w) + 1rem);
  top: 0.6rem;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: relative;
  z-index: 90;
  background: var(--deep);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(143, 166, 196, 0.16);
  z-index: 200;
  pointer-events: none;
}

.read-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.12s linear;
}

/* 品牌轨道 */
.brand-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  padding: 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--rail-blue);
  border-right: 1px solid rgba(143, 166, 196, 0.28);
  z-index: 120;
}

.rail-mark {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ice);
}

.rail-mark-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.rail-mark-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--lime);
  text-transform: uppercase;
}

.rail-ticks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: auto 0;
}

.rail-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rail-tick::before {
  content: "";
  width: 2px;
  height: 12px;
  background: rgba(143, 166, 196, 0.45);
  transition: height 0.2s ease, background 0.2s ease;
}

.rail-tick:hover::before { background: var(--orange); }

.rail-tick[data-active="true"]::before {
  height: 24px;
  background: var(--lime);
}

.rail-cta {
  writing-mode: vertical-rl;
  padding: 0.95rem 0.42rem;
  background: var(--lime);
  color: #07101C;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border-radius: 2px;
  transition: background 0.18s ease, color 0.18s ease;
}

.rail-cta:hover {
  background: var(--orange);
  color: #0A0F18;
}

/* 头部主体 */
.header-body {
  position: relative;
  z-index: 2;
  background: var(--deep);
}

.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.9rem;
  padding: 0.6rem var(--pad-x);
  background: var(--layer);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.09em;
  color: var(--mist);
}

.strip-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.strip-item--lead::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--lime);
  align-self: center;
}

.strip-label { text-transform: uppercase; }

.strip-value {
  color: var(--ice);
  font-weight: 600;
}

.strip-value--live { color: var(--lime); }

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem var(--pad-x);
  background: var(--deep);
  border-bottom: 1px solid rgba(22, 48, 90, 0.95);
}

.brand-phrase {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 0 0 auto;
}

.brand-phrase-cn {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.brand-phrase-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: var(--orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-strong);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 5px 0 var(--lime), 0 -5px 0 var(--lime);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle[aria-expanded="true"]::before {
  background: var(--orange);
  box-shadow: 0 5px 0 var(--orange), 0 -5px 0 var(--orange);
}

.site-nav {
  display: flex;
  margin-left: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-list li { flex: 0 0 auto; }

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.68rem;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--ice);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

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

.nav-list a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

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

/* ---------- 6. 通用容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.grid-5-7 { grid-template-columns: 5fr 7fr; }
.grid-4-8 { grid-template-columns: 4fr 8fr; }
.grid-7-5 { grid-template-columns: 7fr 5fr; }

.section-band {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: var(--layer);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chapter-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mist);
  text-transform: uppercase;
}

.chapter-mark::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}

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

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  background: var(--lime);
  border: 1px solid var(--lime);
  color: #07101C;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ice);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--layer);
  border-color: var(--lime);
  color: var(--lime);
}

.label {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(200, 255, 46, 0.45);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease,
    background 0.16s ease;
}

.chip:hover {
  color: var(--ice);
  border-color: var(--lime);
}

.chip[aria-pressed="true"],
.chip[data-selected="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #07101C;
  font-weight: 700;
}

/* ---------- 8. 纸张叠层与图片容器 ---------- */
.paper-slab {
  background: var(--paper);
  color: #101B29;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid #0B1B33;
  box-shadow: 8px 8px 0 var(--rail-blue);
}

.paper-slab h2,
.paper-slab h3,
.paper-slab h4 { color: #0A1524; }

.paper-slab .label {
  color: #1B3B14;
  border-color: rgba(20, 40, 12, 0.45);
  background: var(--lime);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--layer);
  border: 1px solid var(--line-strong);
  box-shadow: 8px 8px 0 rgba(22, 48, 90, 0.9);
  transition: transform 0.18s ease;
}

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

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

.media-frame:hover { transform: translate(2px, 2px); }

.media-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.22rem 0.5rem;
  background: var(--deep);
  border: 1px solid rgba(200, 255, 46, 0.5);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media-caption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.4rem;
  color: rgba(143, 166, 196, 0.5);
}

.breadcrumb li:last-child::after { content: ""; }

.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ---------- 10. Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: 0 var(--pad-x) 2rem;
  background: var(--layer);
  border-top: 1px solid var(--line);
}

.footer-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
  border-top: 2px solid var(--lime);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.footer-topline-mark {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.footer-topline-meta { color: var(--mist); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding: 2.25rem 0;
}

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

.footer-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.footer-list a {
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-meta {
  margin: 0 0 0.4rem;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--mist);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-fine {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 11. 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .nav-list a { font-size: 0.85rem; padding: 0.42rem 0.5rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-5-7,
  .grid-4-8,
  .grid-7-5 { grid-template-columns: 1fr; }
}

/* ---------- 12. 响应式：移动 ---------- */
@media (max-width: 860px) {
  :root { --rail-w: 0px; }

  body { padding-left: 0; }

  .skip-link:focus { left: 1rem; }

  .brand-rail {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem var(--pad-x);
    border-right: 0;
    border-bottom: 1px solid rgba(143, 166, 196, 0.28);
  }

  .rail-mark {
    writing-mode: horizontal-tb;
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
  }

  .rail-mark-name { font-size: 0.95rem; letter-spacing: 0.12em; }

  .rail-ticks { display: none; }

  .rail-cta {
    writing-mode: horizontal-tb;
    padding: 0.42rem 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .nav-bar {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .nav-list a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid rgba(143, 166, 196, 0.16);
    font-size: 0.95rem;
  }

  .nav-list a[aria-current="page"] {
    border-bottom-color: rgba(200, 255, 46, 0.55);
  }

  .paper-slab { box-shadow: 4px 4px 0 var(--rail-blue); }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }

  .data-strip {
    gap: 0.25rem 1.1rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .banner-title,
  .brand-phrase-cn { font-size: 1.02rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 1.75rem 0;
  }

  .media-frame { box-shadow: 4px 4px 0 rgba(22, 48, 90, 0.9); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 13. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .media-frame:hover,
  .btn:hover { transform: none; }
}
