:root{
  --plum:#26171f;
  --void:#140c12;
  --rose:#ff0080;
  --magenta:#ff00ff;
  --violet:#7a2bff;
  --paper:#f9eef6;
  --dim:#c6adc0;
  --line:rgba(255,255,255,.15);
  --glass:rgba(255,255,255,.055);
  --r:18px;
  --dock-h:76px;
  --wrap:1180px;
}
*,*::before,*::after{box-sizing:border-box}
html{
  background:var(--void);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-weight:400;
  font-size:17px;
  line-height:1.78;
  color:var(--paper);
  background:transparent;
  overflow-x:hidden;
  padding-bottom:calc(var(--dock-h) + 40px);
}
body::before{
  content:"";
  position:fixed;
  inset:-22%;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(40% 34% at 18% 20%,rgba(255,0,128,.62),transparent 70%),
    radial-gradient(34% 30% at 84% 14%,rgba(255,0,255,.46),transparent 72%),
    radial-gradient(48% 42% at 70% 78%,rgba(122,43,255,.4),transparent 70%),
    radial-gradient(38% 36% at 26% 92%,rgba(255,0,128,.34),transparent 72%);
  filter:blur(34px) saturate(150%);
  mix-blend-mode:screen;
  animation:drift 24s ease-in-out infinite alternate;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.2) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.42;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.95),rgba(0,0,0,.22) 62%,transparent);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.95),rgba(0,0,0,.22) 62%,transparent);
}
@keyframes drift{
  0%{transform:translate3d(-2%,-1%,0) scale(1.04) rotate(0deg);filter:blur(34px) hue-rotate(0deg)}
  50%{transform:translate3d(3%,2%,0) scale(1.14) rotate(4deg);filter:blur(42px) hue-rotate(26deg)}
  100%{transform:translate3d(-1%,3%,0) scale(1.07) rotate(-3deg);filter:blur(36px) hue-rotate(-20deg)}
}
h1,h2,h3,h4{
  font-family:Calistoga,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Georgia,serif;
  font-weight:400;
  line-height:1.2;
  margin:0;
  letter-spacing:.005em;
}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
a{color:var(--paper);text-decoration:none}
img,svg{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--magenta);outline-offset:3px;border-radius:6px}

.skip{
  position:fixed;
  left:14px;
  top:-64px;
  z-index:220;
  padding:10px 18px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:var(--rose);
  color:#fff;
  font-size:16px;
  transition:top .2s ease;
}
.skip:focus{top:12px}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:120;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:var(--dock-h);
  padding:12px clamp(12px,3vw,28px);
  background:rgba(22,12,18,.8);
  -webkit-backdrop-filter:blur(18px) saturate(170%);
  backdrop-filter:blur(18px) saturate(170%);
  border-top:1px solid rgba(255,255,255,.16);
  box-shadow:0 -20px 44px rgba(0,0,0,.5);
}
.dock-brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
  min-height:44px;
  padding:0 16px 0 12px;
  border-radius:999px;
  border:1px solid rgba(255,0,128,.55);
  background:linear-gradient(135deg,rgba(255,0,128,.24),rgba(255,0,255,.14));
  font-family:Calistoga,"PingFang SC",serif;
  font-size:17px;
  letter-spacing:.04em;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease;
}
.dock-brand:hover,.dock-brand:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(255,0,128,.4);
}
.spark{
  width:11px;height:11px;
  border-radius:50%;
  background:conic-gradient(from 0deg,var(--rose),var(--magenta),var(--violet),var(--rose));
  box-shadow:0 0 12px rgba(255,0,255,.9);
  animation:spin 7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.dock-list{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  padding:2px;
  list-style:none;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.dock-list::-webkit-scrollbar{height:0}
.dock-list li{flex:0 0 auto}
.dock-list li.is-off{display:none}
.dock-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  font-size:16px;
  line-height:1.4;
  white-space:nowrap;
  color:var(--dim);
  transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;
}
.dock-list a:hover,.dock-list a:focus-visible{
  color:#fff;
  border-color:rgba(255,0,255,.7);
  background:linear-gradient(135deg,rgba(255,0,128,.34),rgba(255,0,255,.2));
  transform:translateY(-2px);
}
.dock-search{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  margin:0;
}
.dock-search input{
  width:118px;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.07);
  color:var(--paper);
  font:inherit;
  font-size:16px;
  transition:width .22s ease,border-color .2s ease,background .2s ease;
}
.dock-search input::placeholder{color:rgba(198,173,192,.85)}
.dock-search input:focus{
  width:172px;
  outline:none;
  border-color:var(--magenta);
  background:rgba(255,0,255,.14);
}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  align-items:center;
  gap:clamp(16px,4vw,54px);
  min-height:70vh;
  max-width:var(--wrap);
  margin:0 auto;
  padding:clamp(26px,6vw,74px) clamp(18px,4vw,40px) clamp(22px,4vw,54px);
}
.hero-fig{
  margin:0;
  position:relative;
  filter:drop-shadow(0 26px 60px rgba(255,0,128,.32));
}
.hero-fig svg{width:100%;height:auto}
.hero-orb{transform-origin:210px 210px;animation:orb 30s linear infinite}
@keyframes orb{to{transform:rotate(360deg)}}
.hero-copy{text-align:right}
.hero-copy h1{
  font-size:clamp(2.3rem,6.2vw,4.4rem);
  line-height:1.06;
  background:linear-gradient(112deg,#ffffff 8%,var(--rose) 48%,var(--magenta) 78%,#c9a6ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-wrap:balance;
}
.lead{
  margin:clamp(14px,2.4vw,22px) 0 0 auto;
  max-width:46ch;
  color:var(--dim);
  font-size:17px;
}

/* ---------- 主体：左栏 + 正文 ---------- */
.stage{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 clamp(18px,4vw,40px) clamp(40px,6vw,72px);
  display:grid;
  grid-template-columns:minmax(184px,224px) minmax(0,1fr);
  gap:clamp(18px,3vw,44px);
  align-items:start;
}
.rail{
  position:sticky;
  top:22px;
  padding:18px 16px 20px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.018));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 14px 34px rgba(0,0,0,.32);
}
.rail h2{
  font-size:1.06rem;
  letter-spacing:.12em;
  color:#fff;
}
.rail hr{
  margin:10px 0 4px;
  border:0;
  height:1px;
  background:linear-gradient(90deg,var(--magenta),rgba(255,255,255,.1));
}
.rail-list{
  counter-reset:rail;
  list-style:none;
  margin:6px 0 0;
  padding:0;
}
.rail-list li{counter-increment:rail}
.rail-list a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:42px;
  padding:8px 2px;
  font-size:16px;
  line-height:1.45;
  color:var(--dim);
  border-bottom:1px solid rgba(255,255,255,.075);
  transition:color .16s ease,padding-left .16s ease;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:12px;
  letter-spacing:.08em;
  color:var(--rose);
}
.rail-list li:last-child a{border-bottom:0}
.rail-list a:hover,.rail-list a.on{color:#fff;padding-left:6px}

/* ---------- 正文 ---------- */
.prose{min-width:0}
.prose > article{
  position:relative;
  scroll-margin:22px 0 96px;
  margin:0 0 22px;
  padding:clamp(20px,3.4vw,36px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.016));
  box-shadow:0 18px 40px rgba(0,0,0,.24);
  overflow:hidden;
}
.prose > article::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:3px;
  background:linear-gradient(90deg,var(--rose),var(--magenta) 46%,rgba(122,43,255,.7) 72%,transparent);
  opacity:.9;
}
.prose > article > :first-child{margin-top:0}
.prose h2{
  font-size:clamp(1.42rem,2.7vw,1.92rem);
  color:#fff;
  margin:0 0 .1em;
  text-wrap:balance;
}
.prose h3{
  font-size:clamp(1.16rem,2vw,1.36rem);
  color:#ffe6f4;
  margin:1.4em 0 .3em;
}
.prose hr{
  border:0;
  height:1px;
  margin:12px 0 20px;
  background:linear-gradient(90deg,var(--rose),rgba(255,255,255,.14) 55%,transparent);
}
.prose p{color:#ead9e5}
.prose ul,.prose ol{padding-left:1.25em;color:#ead9e5}
.prose li{margin:.28em 0}
.prose a{
  color:#ff8ac4;
  text-decoration:underline;
  text-decoration-color:rgba(255,0,128,.55);
  text-underline-offset:3px;
}
.prose a:hover{color:#fff;text-decoration-color:var(--magenta)}
.prose blockquote{
  margin:1.2em 0;
  padding:12px 18px;
  border-left:3px solid var(--magenta);
  border-radius:0 12px 12px 0;
  background:rgba(255,0,255,.09);
  color:#f4e2ee;
}
.prose img,.prose svg{
  border-radius:14px;
  height:auto;
  margin:1em 0;
}
.prose table{
  width:100%;
  border-collapse:collapse;
  display:block;
  overflow-x:auto;
  font-size:16px;
}
.prose th,.prose td{
  padding:9px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
.prose code,.prose pre{
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:.92em;
}
.prose pre{
  overflow-x:auto;
  padding:14px;
  border-radius:12px;
  background:rgba(0,0,0,.42);
}
.prose strong{color:#fff}

/* ---------- 页脚 ---------- */
.foot{
  border-top:1px solid var(--line);
  background:rgba(12,7,10,.68);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  padding:clamp(30px,5vw,54px) clamp(18px,4vw,40px) 26px;
}
.foot-grid{
  max-width:var(--wrap);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:clamp(20px,4vw,52px);
  align-items:start;
}
.foot-brand h2{
  font-size:1.42rem;
  background:linear-gradient(100deg,#fff,var(--rose) 60%,var(--magenta));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.foot-brand hr{
  border:0;
  height:1px;
  margin:12px 0 14px;
  background:linear-gradient(90deg,var(--magenta),rgba(255,255,255,.08));
}
.foot-brand address{
  font-style:normal;
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--dim);
  font-size:16px;
}
.foot-links ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  color:var(--dim);
  font-size:16px;
  transition:color .16s ease,border-color .16s ease,background .16s ease;
}
.foot-links a:hover,.foot-links a:focus-visible{
  color:#fff;
  border-color:rgba(255,0,128,.65);
  background:rgba(255,0,128,.16);
}
.sub{
  max-width:var(--wrap);
  margin:clamp(24px,4vw,38px) auto 0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(120deg,rgba(255,0,128,.13),rgba(255,0,255,.07));
}
.sub-label{
  font-family:Calistoga,"PingFang SC",serif;
  font-size:16px;
  letter-spacing:.1em;
  color:#fff;
}
.sub input{
  flex:1 1 190px;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.3);
  color:var(--paper);
  font:inherit;
  font-size:16px;
}
.sub input:focus{outline:none;border-color:var(--magenta)}
.sub button{
  min-height:44px;
  padding:0 22px;
  border:0;
  border-radius:999px;
  background:linear-gradient(120deg,var(--rose),var(--magenta));
  color:#fff;
  font:inherit;
  font-size:16px;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease;
}
.sub button:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(255,0,255,.4)}
.sub-note{
  flex:1 1 100%;
  margin:0;
  font-size:16px;
  color:#ffb8dd;
  min-height:1px;
}
.foot-base{
  max-width:var(--wrap);
  margin:26px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:var(--dim);
  font-size:16px;
}
.foot-base p{margin:0}

/* ---------- 入场 ---------- */
.will{opacity:0;transform:translateY(16px);transition:opacity .62s ease,transform .62s cubic-bezier(.22,.7,.3,1)}
.in{opacity:1;transform:none}
.prose > article:nth-child(1){transition-delay:.02s}
.prose > article:nth-child(2){transition-delay:.07s}
.prose > article:nth-child(3){transition-delay:.12s}
.prose > article:nth-child(4){transition-delay:.17s}
.prose > article:nth-child(5){transition-delay:.22s}
.prose > article:nth-child(6){transition-delay:.27s}
.prose > article:nth-child(7){transition-delay:.32s}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:auto;
    padding-top:clamp(24px,7vw,40px);
  }
  .hero-copy{order:1;text-align:right}
  .hero-fig{order:2;max-width:340px;margin-left:auto;margin-right:auto}
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static}
  .rail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
  .foot-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  :root{--dock-h:72px}
  body{font-size:16px}
  .dock{gap:8px;padding:10px 10px}
  .dock-brand{padding:0 13px 0 10px;font-size:16px}
  .dock-list{gap:6px}
  .dock-list a{padding:0 12px;font-size:16px}
  .dock-search input{width:76px;padding:0 12px}
  .dock-search input:focus{width:120px}
  .hero-copy h1{font-size:clamp(2rem,10.5vw,2.9rem)}
  .rail-list{grid-template-columns:minmax(0,1fr)}
  .sub{padding:14px}
  .sub button{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before,.spark,.hero-orb{animation:none}
  .will{opacity:1;transform:none;transition:none}
  .dock-list a,.dock-brand,.sub button{transition:none}
}

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