:root{
  --ink:#172617;
  --ink-deep:#0b140c;
  --panel:#1b2f1e;
  --neon:#69ff69;
  --cyan:#00ffff;
  --pink:#ff9ad2;
  --chrome:linear-gradient(148deg,#f2fff2 0%,#a9c3ad 16%,#ffffff 30%,#7f9c84 46%,#e7f7e8 62%,#9fb8a3 78%,#f6fff6 100%);
  --line:rgba(105,255,105,.22);
  --line-soft:rgba(0,255,255,.2);
  --glow:0 0 22px rgba(105,255,105,.42);
  --r:10px;
  --rail:236px;
  --text:#e2f4e3;
  --muted:#9dbb9f;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:hidden;
  padding-left:var(--rail);
  font-family:'Outfit','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.66;
  color:var(--text);
  background:
    radial-gradient(880px 560px at 88% -12%, rgba(0,255,255,.16), transparent 62%),
    radial-gradient(720px 520px at 4% 8%, rgba(105,255,105,.13), transparent 60%),
    radial-gradient(600px 400px at 60% 100%, rgba(255,154,210,.1), transparent 65%),
    var(--ink);
  background-attachment:fixed;
  min-height:100vh;
}
img{max-width:100%;display:block}
a{color:var(--cyan)}

/* ============ 左侧固定导航 ============ */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:22px 16px 20px;
  background:linear-gradient(180deg,rgba(23,38,23,.97),rgba(9,20,11,.98));
  border-right:1px solid var(--line);
  box-shadow:14px 0 40px rgba(0,0,0,.42);
  backdrop-filter:blur(8px);
  overflow:hidden;
}
.rail::after{
  content:"";
  position:absolute;
  right:-1px;
  top:0;
  width:1px;
  height:100%;
  background:linear-gradient(180deg,transparent,var(--cyan),var(--neon),transparent);
  opacity:.7;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#eaffea;
  padding:6px 4px;
  border-radius:var(--r);
}
.brand-mark{
  width:34px;
  height:34px;
  flex:none;
  border-radius:50%;
  background:var(--chrome);
  box-shadow:0 0 0 1px rgba(255,255,255,.6),0 0 18px rgba(0,255,255,.55),inset -3px -3px 8px rgba(23,38,23,.35);
}
.brand-text{
  font-weight:900;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.01em;
  text-shadow:0 0 14px rgba(105,255,105,.5);
}
.rail nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
.rail nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rail nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 11px;
  border-radius:var(--r);
  border:1px solid transparent;
  color:#d3eed4;
  font-size:16px;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.rail nav a:hover,.rail nav a:focus-visible{
  color:#0b140c;
  background:linear-gradient(135deg,var(--neon),var(--cyan));
  border-color:rgba(255,255,255,.7);
  box-shadow:var(--glow);
  transform:translateX(3px);
}
.dot{
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:var(--neon);
  box-shadow:0 0 9px var(--neon);
  transition:background .18s ease,box-shadow .18s ease;
}
.rail nav a:hover .dot{background:#0b140c;box-shadow:none}
.rail-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:16px;
  color:#08150a;
  text-decoration:none;
  background:linear-gradient(135deg,var(--neon) 0%,#c9ffe0 45%,var(--cyan) 100%);
  box-shadow:0 10px 26px rgba(0,255,255,.24),inset 0 1px 0 rgba(255,255,255,.85);
  transition:transform .18s ease,box-shadow .18s ease;
}
.rail-cta:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(105,255,105,.35),inset 0 1px 0 #fff}

/* ============ 主区 ============ */
main{padding:0 clamp(16px,3.4vw,44px)}

.hero{
  max-width:1180px;
  margin:0 auto;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:clamp(16px,3vh,30px);
  padding:clamp(26px,5vh,58px) 0 clamp(24px,4vh,44px);
  text-align:center;
  border-bottom:1px solid var(--line);
}
.hero-copy{max-width:820px;display:flex;flex-direction:column;gap:12px;align-items:center}
h1{
  margin:0;
  font-size:clamp(2rem,5.4vw,3.7rem);
  font-weight:900;
  letter-spacing:-.025em;
  line-height:1.08;
  background:linear-gradient(178deg,#ffffff 0%,#dcffdf 38%,#79ea86 66%,#00ffff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 24px rgba(0,255,255,.38));
}
.hero-desc{
  margin:0;
  max-width:60ch;
  font-size:clamp(1rem,2.1vw,1.1rem);
  color:#c6e4c8;
  letter-spacing:.01em;
}
.hero-figure{
  position:relative;
  margin:0;
  width:min(880px,100%);
  aspect-ratio:16/6;
  border-radius:14px;
  overflow:hidden;
  background:var(--chrome);
  box-shadow:0 26px 60px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.55),inset 0 0 40px rgba(0,255,255,.25);
}
.hero-img{width:100%;height:100%;object-fit:cover}
.bubble{
  position:absolute;
  left:8%;
  bottom:14%;
  width:56px;
  height:56px;
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%,#ffffff,#a8ffb6 42%,rgba(0,255,255,.5) 72%,rgba(0,255,255,.05));
  box-shadow:inset 0 0 12px rgba(255,255,255,.9),0 0 22px rgba(0,255,255,.55);
  opacity:.85;
  pointer-events:none;
}
.bubble.b2{left:auto;right:11%;top:16%;bottom:auto;width:34px;height:34px;opacity:.7}

.stage{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(24px,4.4vw,52px) 0 clamp(30px,5vw,60px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:clamp(20px,3vw,44px);
  align-items:start;
}
.prose{min-width:0}
.prose > section{
  padding:clamp(20px,3.2vw,34px) 0;
  border-bottom:1px dashed var(--line);
  scroll-margin-top:24px;
}
.prose > section:last-child{border-bottom:0}
.prose small{
  display:inline-block;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.26em;
  color:var(--cyan);
  text-transform:uppercase;
  margin-bottom:4px;
  text-shadow:0 0 12px rgba(0,255,255,.5);
}
.prose h2{
  margin:.1em 0 .55em;
  font-size:clamp(1.5rem,2.9vw,2rem);
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.015em;
  color:#efffef;
}
.prose h3{
  margin:1.2em 0 .4em;
  font-size:clamp(1.15rem,2vw,1.3rem);
  font-weight:700;
  color:#e8ffe9;
}
.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}
.prose strong{color:#f4fff5;font-weight:700}
.prose a{color:var(--cyan);text-decoration:underline;text-decoration-color:rgba(0,255,255,.45);text-underline-offset:3px}
.prose a:hover{color:var(--neon);text-decoration-color:var(--neon)}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.35em}
.prose li{margin:.32em 0}
.prose li::marker{color:var(--neon)}
.prose blockquote{
  margin:1.1em 0;
  padding:.55em 1em;
  border-left:3px solid var(--neon);
  border-radius:0 var(--r) var(--r) 0;
  background:rgba(105,255,105,.07);
  color:#d5efd6;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:1.2em 0}
.prose figure img{border-radius:var(--r);box-shadow:0 16px 36px rgba(0,0,0,.4)}
.prose figcaption{font-size:14px;color:var(--muted);margin-top:8px;text-align:center}
.prose table{width:100%;border-collapse:collapse;margin:1em 0;font-size:16px}
.prose th,.prose td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.prose th{background:rgba(105,255,105,.1);font-weight:700;color:#efffef}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.94em;
  padding:1px 6px;
  border-radius:6px;
  background:rgba(0,255,255,.12);
  color:#d9feff;
}
.prose hr{border:0;border-top:1px dashed var(--line);margin:1.6em 0}

/* ============ 右侧栏 ============ */
.side{
  position:sticky;
  top:24px;
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:16px 14px 18px;
  border-radius:var(--r);
  border:1px solid var(--line-soft);
  background:linear-gradient(160deg,rgba(27,47,30,.94),rgba(12,24,14,.96));
  box-shadow:0 20px 44px rgba(0,0,0,.45),inset 0 0 28px rgba(0,255,255,.08);
}
.side small{
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.26em;
  color:var(--cyan);
  margin-bottom:4px;
}
.side h2{
  margin:0 0 12px;
  font-size:1.12rem;
  font-weight:900;
  letter-spacing:-.01em;
  color:#efffef;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 8px 8px 14px;
  position:relative;
  font-size:15px;
  color:#cfe9d1;
  text-decoration:none;
  border-radius:8px;
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}
.side a::before{
  content:"";
  position:absolute;
  left:4px;
  top:50%;
  width:4px;
  height:4px;
  margin-top:-2px;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 8px var(--cyan);
}
.side a:hover{background:rgba(105,255,105,.12);color:#eaffea;padding-left:18px}

/* ============ 页脚 ============ */
.foot{
  max-width:1180px;
  margin:0 auto;
  padding:24px clamp(16px,3.4vw,44px) 44px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:center;
  text-align:center;
  border-top:1px solid var(--line);
  font-size:15px;
}
.foot p{margin:0}
.foot small{display:block;font-size:13.5px;color:var(--muted);word-break:break-all}
.foot .f-copy{font-weight:700;color:#e6ffe7}
.foot a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  font-size:15px;
  color:var(--neon);
  text-decoration:none;
  border:1px solid var(--line);
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
}
.foot a:hover{background:linear-gradient(135deg,var(--neon),var(--cyan));color:#0b140c;box-shadow:var(--glow)}

/* ============ 滚动显现 ============ */
.reveal-on .prose > section,
.reveal-on .hero-figure,
.reveal-on .side,
.reveal-on .foot{opacity:0;transform:translateY(18px);transition:opacity .62s ease,transform .62s ease}
.reveal-on .in{opacity:1;transform:none}

/* ============ 窄屏 ============ */
@media (max-width:900px){
  body{padding-left:0;padding-top:60px}
  .rail{
    inset:0 0 auto 0;
    width:auto;
    height:60px;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:0 12px;
    border-right:0;
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 30px rgba(0,0,0,.45);
  }
  .rail::after{display:none}
  .brand{padding:0;flex:none}
  .brand-mark{width:30px;height:30px}
  .brand-text{display:none}
  .rail nav{flex:1;min-width:0;overflow-y:hidden;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .rail nav::-webkit-scrollbar{display:none}
  .rail nav ul{flex-direction:row;gap:2px}
  .rail nav a{min-height:40px;padding:8px 12px;white-space:nowrap;font-size:15px}
  .rail nav a:hover{transform:none}
  .rail-cta{flex:none;min-height:40px;padding:8px 14px;font-size:14.5px;white-space:nowrap}
  .hero{min-height:44vh;padding-top:22px}
  .stage{grid-template-columns:minmax(0,1fr);gap:22px}
  .side{position:static;max-height:none;order:2}
  .prose > section{scroll-margin-top:74px}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:6px;padding-bottom:36px}
}
@media (max-width:420px){
  .hero-figure{aspect-ratio:16/9}
  .bubble{width:42px;height:42px}
  .bubble.b2{width:26px;height:26px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001s!important;animation-duration:.001s!important}
  .reveal-on .prose > section,
  .reveal-on .hero-figure,
  .reveal-on .side,
  .reveal-on .foot{opacity:1;transform:none}
}

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