@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --ink: #192617;
  --void: #0b1310;
  --panel: #13211a;
  --txt: #d9f6e0;
  --dim: #8ec4a0;
  --line: rgba(135, 255, 113, 0.2);
  --rail: 236px;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  word-break: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -8%, rgba(1, 205, 254, 0.22), transparent 62%),
    radial-gradient(90% 52% at 8% 104%, rgba(255, 113, 206, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(135, 255, 113, 0.09) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(135, 255, 113, 0.06) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}

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

a { color: var(--cyan); }

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

/* ---------- 顶部细条 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(11, 19, 16, 0.97), rgba(11, 19, 16, 0.78));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neon);
  border-radius: 4px;
  color: var(--neon);
  text-decoration: none;
  background: rgba(135, 255, 113, 0.07);
  box-shadow: inset 0 0 16px rgba(135, 255, 113, 0.25), 0 0 14px rgba(135, 255, 113, 0.22);
}

.mark-img { width: 34px; height: 34px; object-fit: contain; }

.mark-glyph { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }

.ticker {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  display: flex;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(1, 205, 254, 0.85);
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}

.ticker span { flex: 0 0 auto; }

.ticker span::after {
  content: "/";
  margin-left: 20px;
  color: rgba(135, 255, 113, 0.45);
}

.burger {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--neon);
  background: rgba(135, 255, 113, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.burger[aria-expanded="true"] {
  background: var(--neon);
  color: var(--void);
}

/* ---------- 左侧竖排导航 ---------- */

.rail {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  max-width: 100vw;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 62px 14px 22px;
  transform: translateY(-104%);
  transition: transform 0.28s ease;
  background: linear-gradient(180deg, #0a110d, #12201a 70%, #0a110d);
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 20px));
}

.rail.open { transform: none; }

.rail-ol {
  counter-reset: navn;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-ol li { position: relative; }

.rail-ol li::before {
  counter-increment: navn;
  content: "0" counter(navn);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(1, 205, 254, 0.6);
  pointer-events: none;
}

.rail-ol a {
  display: block;
  min-height: 44px;
  padding: 12px 12px 12px 30px;
  color: #cdeccf;
  text-decoration: none;
  font-size: 15px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.rail-ol a:hover,
.rail-ol a:focus-visible {
  color: var(--neon);
  background: linear-gradient(90deg, rgba(135, 255, 113, 0.16), rgba(1, 205, 254, 0.06));
  border-left-color: var(--neon);
  transform: translateX(3px);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.55);
}

.rail-ol li:nth-child(2),
.rail-ol li:nth-child(5) { margin-top: 10px; }

.rail-ol li:nth-child(2)::after,
.rail-ol li:nth-child(5)::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 113, 206, 0.6), transparent);
}

/* ---------- 主区 ---------- */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.side {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.side-h {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(1, 205, 254, 0.85);
}

.side-h span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(1, 205, 254, 0.5);
}

.side-ol {
  list-style: none;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.side-ol a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  background: rgba(1, 205, 254, 0.05);
  border-left: 2px solid rgba(1, 205, 254, 0.32);
  border-radius: 0 4px 4px 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.side-ol a:hover,
.side-ol a:focus-visible {
  color: var(--neon);
  background: rgba(135, 255, 113, 0.12);
  border-left-color: var(--neon);
}

.sheet {
  min-width: 0;
  max-width: 74ch;
  counter-reset: sec;
}

/* ---------- 头图 ---------- */

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 20px 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  background:
    linear-gradient(152deg, rgba(1, 205, 254, 0.22), rgba(255, 113, 206, 0.18) 52%, rgba(135, 255, 113, 0.14)),
    var(--void);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: hue-rotate(-16deg) saturate(1.1);
}

.hero-txt { position: relative; z-index: 2; min-width: 0; }

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-size: clamp(26px, 6.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f2fff6;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.55), 0 0 42px rgba(1, 205, 254, 0.4);
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.hero h1::before {
  color: var(--cyan);
  clip-path: inset(0 0 58% 0);
  animation: glitch-a 5.2s steps(1) infinite;
}

.hero h1::after {
  color: var(--pink);
  clip-path: inset(54% 0 0 0);
  animation: glitch-b 6.9s steps(1) infinite;
}

@keyframes glitch-a {
  0%, 88%, 100% { transform: translate(-2px, 0); opacity: 1; }
  90% { transform: translate(3px, -1px); }
  94% { transform: translate(-4px, 1px); opacity: 0.7; }
}

@keyframes glitch-b {
  0%, 86%, 100% { transform: translate(2px, 0); opacity: 1; }
  89% { transform: translate(-3px, 1px); }
  93% { transform: translate(4px, -1px); opacity: 0.65; }
}

.lede {
  margin: 14px 0 0;
  max-width: 58ch;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: #b7ddc4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* ---------- 正文块 ---------- */

.sheet > section:not(.hero) {
  position: relative;
  counter-increment: sec;
  margin: 26px 0;
  padding: 24px 20px 26px;
  scroll-margin-top: 92px;
  border: 1px solid rgba(135, 255, 113, 0.14);
  border-left: 3px solid rgba(1, 205, 254, 0.5);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20, 33, 26, 0.94), rgba(12, 21, 17, 0.95));
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.95);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sheet > section:not(.hero)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 62px;
  height: 2px;
  background: var(--cyan);
  transform: skewX(-32deg);
  transform-origin: left;
  opacity: 0.75;
}

.sheet > section:not(.hero)::after {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(1, 205, 254, 0.5);
}

.sheet > section:not(.hero):hover {
  border-left-color: var(--neon);
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(135, 255, 113, 0.18);
}

.js .sheet > section.rv { opacity: 0; transform: translateY(16px); }

.js .sheet > section.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sheet h2 {
  margin: 0 0 0.55em;
  font-size: clamp(21px, 3.2vw, 27px);
  line-height: 1.35;
  color: #eafff1;
}

.sheet h2 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
}

.sheet h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, transparent);
}

.sheet h3 {
  margin: 1.5em 0 0.5em;
  padding-left: 12px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--neon);
  border-left: 2px solid rgba(255, 113, 206, 0.7);
}

.sheet h3 > span { display: inline-block; }

.sheet p { margin: 0 0 1em; }

.sheet ul,
.sheet ol { margin: 0 0 1.1em; padding-left: 1.4em; }

.sheet li { margin: 0.35em 0; }

.sheet li::marker { color: var(--neon); }

.sheet a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(1, 205, 254, 0.55);
}

.sheet a:hover,
.sheet a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.6);
}

.sheet strong { color: #f0fff4; }

.sheet blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  color: #c6ecd2;
  border-left: 3px solid var(--pink);
  background: linear-gradient(90deg, rgba(255, 113, 206, 0.12), transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

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

.sheet figure { margin: 1.2em 0; }

.sheet img {
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}

.sheet code {
  padding: 1px 6px;
  font-size: 15px;
  color: var(--neon);
  background: rgba(135, 255, 113, 0.1);
  border-radius: 4px;
}

.sheet pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.sheet pre code { padding: 0; background: none; }

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.sheet th,
.sheet td {
  padding: 9px 11px;
  text-align: left;
  border: 1px solid var(--line);
}

.sheet th { background: rgba(1, 205, 254, 0.1); color: var(--neon); }

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  padding: 52px 18px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.1), rgba(10, 17, 13, 0.98) 46%);
}

.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--cyan) 46%, var(--neon));
  transform: skewY(-1.1deg);
  transform-origin: left;
}

.foot p { margin: 0; }

.f-cta {
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--neon);
  text-shadow: 0 0 22px rgba(135, 255, 113, 0.45);
}

.f-nav {
  font-size: 13px;
  line-height: 2;
  color: var(--dim);
}

.f-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
}

.f-top a {
  display: inline-block;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(1, 205, 254, 0.45);
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.f-top a:hover,
.f-top a:focus-visible {
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
}

.foot small {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #7ba787;
  border-top: 1px solid var(--line);
}

/* ---------- 断点 ---------- */

@media (min-width: 900px) {
  body { padding-left: var(--rail); }

  .burger { display: none; }

  .rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    width: var(--rail);
    max-width: var(--rail);
    max-height: none;
    padding: 26px 12px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: none;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  }

  .top { padding: 8px 22px; }

  .stage { padding: 32px 26px 84px; }
}

@media (min-width: 1000px) {
  .stage {
    grid-template-columns: 192px minmax(0, 1fr);
    gap: 34px;
  }

  .side { position: sticky; top: 84px; }

  .side-ol { flex-direction: column; gap: 4px; overflow: visible; }

  .hero { padding: 52px 34px 56px; }
}

@media (max-width: 460px) {
  .ticker { font-size: 11px; gap: 14px; }
  .hero { padding: 34px 16px 40px; }
  .sheet > section:not(.hero) { padding: 20px 15px 22px; }
  .foot { padding: 46px 16px 20px; }
}

@media (min-width: 760px) {
  .foot {
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    gap: 26px;
    padding: 62px 30px 22px;
  }
  .f-cta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1::before,
  .hero h1::after { animation: none; }
  .js .sheet > section.rv { opacity: 1; transform: none; transition: none; }
  .rail { transition: none; }
}
=====

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