:root{
  --pink:#ff0080;
  --magenta:#ff00ff;
  --ink:#26171f;
  --bg:#120a11;
  --paper:#f8ecf5;
  --muted:#c9b0c3;
  --card:#2b1a24;
  --rail:238px;
  --r:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--paper);
  font-family:system-ui,-apple-system,"Segoe UI","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.8;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:-22%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(38% 42% at 16% 20%, rgba(255,0,128,.58), transparent 70%),
    radial-gradient(34% 38% at 80% 12%, rgba(255,0,255,.52), transparent 72%),
    radial-gradient(48% 46% at 64% 82%, rgba(118,0,255,.44), transparent 74%),
    conic-gradient(from 210deg at 52% 48%, rgba(255,0,128,.26), rgba(255,0,255,.18), rgba(0,224,255,.16), rgba(255,0,128,.26));
  filter:blur(30px) saturate(128%);
  opacity:.86;
  animation:flow 26s ease-in-out infinite alternate;
}
@keyframes flow{
  0%{transform:translate3d(0,0,0) scale(1.05);filter:blur(30px) hue-rotate(0deg)}
  50%{transform:translate3d(-3%,2%,0) scale(1.12);filter:blur(34px) hue-rotate(26deg)}
  100%{transform:translate3d(3%,-2%,0) scale(1.06);filter:blur(30px) hue-rotate(-16deg)}
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.35;
  background-image:
    linear-gradient(rgba(255,0,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,128,.07) 1px, transparent 1px);
  background-size:46px 46px, 46px 46px;
}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
ul{list-style:none;margin:0;padding:0}
a{color:#ff8ac8}
img{max-width:100%;height:auto;display:block}

/* 左侧竖排导航 */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px 14px 22px;
  background:rgba(16,9,15,.82);
  backdrop-filter:blur(14px);
  border-right:1px solid rgba(255,0,255,.18);
}
.mark{
  display:grid;
  grid-template-columns:repeat(2,9px);
  grid-template-rows:repeat(2,9px);
  gap:3px;
  align-content:center;
  justify-content:center;
  min-height:44px;
  min-width:44px;
  border-radius:12px;
  background:rgba(255,0,128,.16);
  text-decoration:none;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.mark i{display:block;background:var(--pink);border-radius:2px}
.mark i:nth-child(2),.mark i:nth-child(3){background:var(--magenta)}
.mark i:nth-child(4){background:#7a3bff}
.mark:hover{transform:scale(1.08) rotate(-3deg);box-shadow:0 0 22px rgba(255,0,255,.55);background:rgba(255,0,255,.24)}
.mark-name{
  margin:0;
  font-size:16px;
  letter-spacing:.22em;
  color:#f3d5e8;
  text-shadow:0 0 14px rgba(255,0,128,.6);
}
.rail nav{flex:1;min-height:0;overflow-y:auto}
.rail-list{display:grid;gap:4px}
.rail-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  color:#eed6e5;
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  transition:background .22s ease, color .22s ease, transform .22s ease;
}
.dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:rgba(255,0,128,.45);
  transition:background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.rail-list a:hover,
.rail-list a.on{
  background:linear-gradient(90deg, rgba(255,0,128,.3), rgba(255,0,255,.08));
  color:#fff;
  transform:translateX(3px);
}
.rail-list a:hover .dot,
.rail-list a.on .dot{background:var(--magenta);box-shadow:0 0 12px var(--magenta);transform:scale(1.25)}

/* 主体外壳 */
.shell{position:relative;z-index:1;margin-left:var(--rail)}
.ticker{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  font-size:16px;
  letter-spacing:.14em;
  color:var(--muted);
  border-bottom:1px solid rgba(255,0,255,.16);
}
.lamp{
  width:9px;height:9px;flex:0 0 9px;border-radius:50%;
  background:var(--magenta);
  box-shadow:0 0 12px var(--magenta);
  animation:pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:.45}50%{opacity:1}}
.ticker-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:28px;
  max-width:1200px;
  margin:0 auto;
  padding:26px 28px 66px;
}
.stage{min-width:0}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  gap:22px;
  align-items:center;
  min-height:70vh;
  padding:24px 0 38px;
}
.hero-copy{text-align:center;min-width:0}
h1{
  margin:0 0 18px;
  font-family:"Press Start 2P",system-ui,-apple-system,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:clamp(26px,3.6vw,42px);
  line-height:1.55;
  letter-spacing:.02em;
  background:linear-gradient(100deg,#ffffff 0%,#ffb8dd 34%,var(--magenta) 64%,#ffffff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 18px rgba(255,0,128,.55));
  overflow-wrap:break-word;
}
.hero-desc{
  margin:0 auto;
  max-width:34em;
  font-size:17px;
  line-height:1.75;
  color:#e6cddd;
}
.hero-art{
  position:relative;
  min-height:340px;
  align-self:stretch;
  border-radius:var(--r);
  overflow:hidden;
  background:
    radial-gradient(70% 80% at 22% 18%, rgba(255,0,128,.5), transparent 72%),
    linear-gradient(152deg, rgba(255,0,255,.36), rgba(122,59,255,.24) 46%, rgba(38,23,31,.95));
  box-shadow:0 18px 50px -28px rgba(255,0,255,.7);
}
.hero-img{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  mix-blend-mode:screen;
}
.ghost{
  position:absolute;
  left:5%;
  bottom:5%;
  z-index:2;
  font-family:"Press Start 2P",system-ui,sans-serif;
  font-size:clamp(42px,6.6vw,92px);
  line-height:1;
  letter-spacing:.03em;
  white-space:nowrap;
  color:rgba(255,255,255,.22);
  text-shadow:0 0 32px rgba(255,0,255,.6);
  pointer-events:none;
}

/* 正文 */
.prose{display:block;min-width:0}
.prose > section{
  background:var(--card);
  border-radius:var(--r);
  padding:26px 26px 30px;
  margin:0 0 22px;
  scroll-margin-top:64px;
  animation:rise .55s cubic-bezier(.2,.7,.3,1) both;
}
.prose > section:nth-child(1){animation-delay:.02s}
.prose > section:nth-child(2){animation-delay:.08s}
.prose > section:nth-child(3){animation-delay:.14s}
.prose > section:nth-child(4){animation-delay:.2s}
.prose > section:nth-child(5){animation-delay:.26s}
.prose > section:nth-child(6){animation-delay:.32s}
.prose > section:nth-child(7){animation-delay:.38s}
.prose > section:nth-child(n+8){animation-delay:.42s}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.prose h2,.prose h3{
  margin:26px 0 12px;
  line-height:1.4;
  letter-spacing:.01em;
  color:#fff;
  font-weight:700;
}
.prose h2{
  font-size:clamp(20px,2.3vw,25px);
  background:linear-gradient(92deg,#fff,#ffb2da 60%,var(--pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.prose h3{font-size:19px;color:#ffc6e4}
.prose > section > h2:first-child,
.prose > section > h3:first-child{margin-top:0}
.prose hr{
  height:2px;
  border:0;
  margin:0 0 18px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--pink),var(--magenta),transparent);
}
.prose p,.prose li{color:#f2e2ec}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.35em}
.prose ul li{list-style:disc}
.prose ol li{list-style:decimal}
.prose li{margin:0 0 .4em}
.prose strong{color:#fff}
.prose a{color:#ff9ad2;text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose code,.prose pre{
  font-family:"VT323",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:1.06em;
  background:rgba(255,0,255,.14);
  border-radius:8px;
}
.prose code{padding:1px 6px}
.prose pre{padding:14px 16px;overflow-x:auto;line-height:1.5}
.prose pre code{background:none;padding:0}
.prose blockquote{
  margin:0 0 1.1em;
  padding:12px 18px;
  border-left:4px solid var(--pink);
  border-radius:0 14px 14px 0;
  background:rgba(255,0,128,.12);
  color:#ffd9ec;
}
.prose img{margin:0 0 1.1em;border-radius:14px}

/* 右侧栏 */
.side{
  position:sticky;
  top:24px;
  align-self:start;
  min-width:0;
}
.side h2{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:.2em;
  color:#ffd3ea;
  font-weight:700;
}
.side hr{
  height:2px;
  border:0;
  margin:0 0 4px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--magenta),rgba(255,0,128,.1));
}
.side-list{display:grid;gap:8px;margin-top:16px}
.side-list a{
  display:block;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  background:var(--card);
  color:#f0d9e6;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:background .22s ease, transform .22s ease, color .22s ease;
}
.side-list a:hover{
  background:#3a2230;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 8px 22px -14px var(--magenta);
}

/* 页脚 */
.foot{position:relative;z-index:1}
.foot-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:24px;
  padding:34px 28px 40px;
  border-top:1px solid rgba(255,0,255,.2);
}
.foot-brand{display:grid;gap:12px;justify-items:start}
address{
  font-style:normal;
  font-size:17px;
  letter-spacing:.14em;
  color:#f3d9e9;
}
.foot-links ul{display:grid;gap:2px}
.foot-links a{
  display:inline-block;
  min-height:44px;
  padding:10px 4px;
  font-size:16px;
  line-height:1.4;
  color:#e3c8da;
  text-decoration:none;
}
.foot-links a:hover{color:#fff;text-shadow:0 0 14px rgba(255,0,255,.8)}
.foot-legal{text-align:right;color:var(--muted);font-size:16px}
.foot-legal p{margin:0}

/* 回到顶部 */
.totop{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:40;
  min-height:44px;
  padding:11px 16px;
  border-radius:999px;
  background:rgba(43,26,36,.92);
  color:#ffd8ec;
  font-size:16px;
  line-height:1.3;
  text-decoration:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow:0 0 0 1px rgba(255,0,255,.28), 0 10px 26px -16px var(--magenta);
}
.totop.show{opacity:1;visibility:visible;transform:none}
.totop:hover{background:#3d2432;color:#fff}

@media (max-width:960px){
  body::after{background-size:38px 38px, 38px 38px}
  .rail{
    position:static;
    inset:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    overflow-x:auto;
    border-right:0;
    border-bottom:1px solid rgba(255,0,255,.18);
  }
  .mark-name{display:none;white-space:nowrap}
  .rail nav{flex:0 0 auto;overflow:visible}
  .rail-list{display:flex;gap:6px}
  .rail-list a{white-space:nowrap;padding:10px 12px}
  .rail-list a:hover,.rail-list a.on{transform:none}
  .shell{margin-left:0}
  .ticker{padding:12px 16px}
  .wrap{grid-template-columns:1fr;gap:20px;padding:18px 16px 48px}
  .hero{grid-template-columns:1fr;min-height:0;padding:6px 0 24px;gap:18px}
  .hero-art{min-height:220px}
  .ghost{font-size:clamp(38px,11vw,70px)}
  .side{position:static}
  .foot-grid{grid-template-columns:1fr 1fr;gap:18px;padding:26px 16px 34px}
  .foot-legal{grid-column:1/-1;text-align:left}
}
@media (max-width:560px){
  .foot-grid{grid-template-columns:1fr}
  .totop{right:12px;bottom:12px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before,.lamp{animation:none}
  .prose > section{animation:none}
  .mark,.rail-list a,.side-list a,.totop{transition:none}
}

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