:root {
  --ink: #000000;
  --layer: #0b0c0e;
  --layer2: #121212;
  --line: #1c1d22;
  --line-soft: #141519;
  --fg: #e8ebf0;
  --fg-soft: #c4cbd6;
  --mute: #8e97a5;
  --accent: #6ea8ff;
  --accent-dim: rgba(110, 168, 255, 0.45);
  --gold: #dcc08a;
  --rail: 228px;
  --top: 36px;
  --radius: 4px;
  --font: 'Figtree', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: clip;
}

[id] { scroll-margin-top: 92px; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }

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

.shell { min-height: 100vh; }

/* ---------- 顶部细条 ---------- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  height: var(--top);
  margin: 0;
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #b9c8de;
  background: #000;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}

.tick-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: var(--top);
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--rail);
  padding: 14px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #000;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brandmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--layer);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brandmark img { display: block; width: 26px; height: 26px; }

.mark-fb {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-dim);
}

.brandmark:hover { border-color: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-dim); }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 3px;
  color: var(--fg-soft);
  font-size: 0.92rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rail-list .ico {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid #3d4椒;
  border: 1px solid #3d4450;
  transform: rotate(45deg);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rail-list a:hover,
.rail-list a.on {
  color: #fff;
  border-left-color: var(--accent);
  background: #0a0d13;
}

.rail-list a:hover .ico,
.rail-list a.on .ico {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}

/* ---------- 主体 ---------- */
main {
  margin-left: var(--rail);
  padding: 62px clamp(16px, 3.4vw, 44px) 0;
  max-width: 1060px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-height: 45vh;
  padding: 8px 0 clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.hero-copy { min-width: 0; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.1vw, 3rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 22px rgba(110, 168, 255, 0.14);
}

.lede {
  margin: 0;
  padding-left: 14px;
  max-width: 44ch;
  border-left: 2px solid var(--accent-dim);
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- 双图错位拼贴 ---------- */
.collage {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 8px;
}

.badge {
  position: absolute;
  top: -10px;
  left: -8px;
  z-index: 3;
  margin: 0;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.4;
  color: #d7e5ff;
  background: #080c14;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  text-shadow: 0 0 10px var(--accent-dim);
}

.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--layer);
  will-change: transform;
}

.shot-a { transform: translateY(12px); }
.shot-b { transform: translateY(-10px); }

.shot .shot-img {
  display: block;
  width: 100%;
  filter: brightness(0.82) saturate(0.94);
  transition: filter 0.35s ease, transform 0.5s ease;
}

.shot:hover .shot-img { filter: brightness(1) saturate(1); transform: scale(1.03); }

/* ---------- 正文 + 左侧小栏 ---------- */
.content {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 46px);
  padding: clamp(26px, 4vw, 48px) 0 56px;
  border-bottom: 1px solid var(--line);
}

.side {
  position: sticky;
  top: calc(var(--top) + 24px);
  align-self: start;
  min-width: 0;
  padding-top: 4px;
}

.side-h {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-h > span { display: inline-block; }

.side-h > span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--gold);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.side-list li { counter-increment: toc; }

.side-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: #9aa4b2;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.side-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #4f5866;
}

.side-list a:hover,
.side-list a.on { color: var(--accent); padding-left: 4px; }

/* ---------- 正文排版 ---------- */
.prose { min-width: 0; }

.prose div {
  padding: clamp(24px, 3.4vw, 38px) 0;
  border-top: 1px solid var(--line-soft);
}

.prose div:first-of-type { border-top: 0; padding-top: 0; }

.prose h2,
.prose h3 {
  margin: 0 0 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f3f5f9;
}

.prose h2 { font-size: clamp(1.22rem, 2.3vw, 1.55rem); }

.prose h3 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #dfe6f0; }

.prose h2 > span,
.prose h3 > span {
  position: relative;
  display: inline-block;
  padding-left: 17px;
}

.prose h2 > span::before,
.prose h3 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}

.prose p,
.prose li {
  max-width: 64ch;
  color: var(--fg-soft);
}

.prose p { margin: 0 0 15px; }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }

.prose li { margin-bottom: 8px; }

.prose li::marker { color: var(--accent-dim); }

.prose strong { color: #fff; font-weight: 600; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(110, 168, 255, 0.4);
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--accent); }

.prose img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: brightness(0.9);
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 2px solid var(--gold);
  background: var(--layer);
  color: #cfd6e0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.foot {
  margin-left: var(--rail);
  padding: clamp(34px, 5vw, 56px) clamp(16px, 3.4vw, 44px) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, #000 0%, #08090b 100%);
}

.giant {
  margin: 0;
  font-size: clamp(2.2rem, 8.6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 0 26px rgba(110, 168, 255, 0.18);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #aeb7c4;
  font-size: 0.86rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot-list a:hover { color: #fff; border-bottom-color: var(--gold); }

.foot-base {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.foot-base p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: #6d7684;
}

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  min-height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #d6dee9;
  background: #0d1016;
  border: 1px solid #262a33;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, border-color 0.2s ease;
}

.totop.on { opacity: 1; visibility: visible; transform: none; }

.totop:hover { border-color: var(--accent-dim); color: #fff; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  :root { --top: 32px; }

  [id] { scroll-margin-top: 116px; }

  .ticker { font-size: 0.66rem; letter-spacing: 0.26em; padding: 0 12px; }

  .rail {
    top: var(--top);
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .brandmark { width: 42px; height: 42px; }

  .rail-list {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .rail-list::-webkit-scrollbar { display: none; }

  .rail-list a {
    min-height: 42px;
    padding: 6px 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .rail-list a:hover,
  .rail-list a.on { border-left-color: transparent; border-bottom-color: var(--accent); }

  .rail-list .ico { display: none; }

  main {
    margin-left: 0;
    padding: 108px 16px 0;
    max-width: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 26px;
  }

  .lede { font-size: 0.92rem; }

  .collage { margin-top: 22px; }

  .shot-a { transform: translateY(0); }
  .shot-b { transform: translateY(14px); }

  .content {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 26px;
  }

  .side {
    position: static;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #06070a;
  }

  .side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

  .foot {
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 16px 24px;
    gap: 18px;
  }

  .foot-base { text-align: left; }
}

@media (max-width: 420px) {
  .side-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .shot,
  .shot .shot-img { transform: none !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
