:root{
  --ink:#0d0d0d;
  --ink2:#141019;
  --violet:#8000ff;
  --magenta:#ff00ff;
  --txt:#e9e3f6;
  --dim:#a89bc6;
  --line:rgba(128,0,255,.34);
  --line2:rgba(255,0,255,.28);
  --radius:28px;
  --pad:clamp(14px,4vw,40px);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--ink);
  color:var(--txt);
  font-family:"Didact Gothic","Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
  background-image:
    radial-gradient(900px 520px at 12% -12%,rgba(128,0,255,.24),transparent 70%),
    radial-gradient(680px 420px at 96% 6%,rgba(255,0,255,.15),transparent 72%);
  background-repeat:no-repeat;
}
a{color:inherit}
:focus-visible{outline:2px solid var(--magenta);outline-offset:2px}
.scan{
  position:fixed;inset:0;pointer-events:none;z-index:70;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 1px,transparent 1px 3px);
  opacity:.55;
}

/* 顶部品牌条 */
.masthead{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  max-width:1180px;margin:0 auto;padding:.8rem var(--pad);
  border-bottom:1px solid var(--line2);
}
.brand{
  display:inline-flex;align-items:center;gap:.6rem;min-height:44px;text-decoration:none;
  color:#fff;font-family:"Poiret One","Didact Gothic",sans-serif;font-size:1.1rem;letter-spacing:.16em;
  text-shadow:0 0 14px rgba(255,0,255,.6);
}
.brand-mark{
  width:13px;height:13px;flex:0 0 auto;border:1px solid var(--magenta);transform:rotate(45deg);
  box-shadow:0 0 12px rgba(255,0,255,.85) inset;
}
.call{
  display:inline-flex;align-items:center;min-height:44px;padding:0 1.15rem;border-radius:999px;
  border:1px solid var(--magenta);color:#fff;text-decoration:none;font-size:.95rem;letter-spacing:.2em;
  background:rgba(255,0,255,.12);white-space:nowrap;
}
.call:hover{background:rgba(255,0,255,.3);text-shadow:0 0 10px var(--magenta)}

/* 粘性锚点条 */
.railbar{
  position:sticky;top:0;z-index:40;overflow-x:auto;
  background:rgba(13,13,13,.93);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.anchors ul{display:flex;gap:.3rem;list-style:none;margin:0;padding:.35rem var(--pad)}
.anchors a{
  display:inline-flex;align-items:center;min-height:42px;padding:0 .8rem;white-space:nowrap;
  text-decoration:none;color:var(--dim);font-size:.93rem;border:1px solid transparent;border-radius:12px;
}
.anchors a:hover,.anchors a.on{color:#fff;border-color:var(--violet);text-shadow:0 0 10px rgba(128,0,255,.9)}

/* 主栅格 */
.stage{
  position:relative;z-index:2;max-width:1180px;margin:0 auto;
  padding:clamp(14px,3vw,30px) var(--pad) clamp(38px,7vw,70px);
  display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(20px,3vw,32px);
}
.stage > *{min-width:0}

/* 头图区 */
.hero{
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  gap:1rem;min-height:45vh;padding:clamp(14px,4vw,30px) 0 clamp(20px,4vw,32px);
  border-bottom:1px solid var(--line);
}
.hero-title{
  position:relative;margin:0;font-weight:400;letter-spacing:.05em;color:#fff;
  font-family:"Poiret One","Didact Gothic",sans-serif;
  font-size:clamp(1.9rem,8vw,3.4rem);line-height:1.14;
  text-shadow:0 0 18px rgba(255,0,255,.6),0 0 46px rgba(128,0,255,.55);
}
.glitch::before,.glitch::after{
  content:attr(data-txt);position:absolute;left:0;top:0;width:100%;pointer-events:none;
}
.glitch::before{color:var(--magenta);clip-path:inset(0 0 58% 0);transform:translate(-2px,-1px);animation:gA 5s steps(2,end) infinite}
.glitch::after{color:#8f3bff;clip-path:inset(58% 0 0 0);transform:translate(2px,1px);animation:gB 6.5s steps(2,end) infinite}
@keyframes gA{0%,88%,100%{transform:translate(-2px,-1px)}90%{transform:translate(-7px,-3px)}94%{transform:translate(3px,1px)}}
@keyframes gB{0%,85%,100%{transform:translate(2px,1px)}88%{transform:translate(6px,2px)}92%{transform:translate(-4px,-1px)}}
.hero-sub{margin:0;max-width:44ch;color:var(--dim);font-size:1rem}

.frame{
  margin:0;width:100%;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);
  background:linear-gradient(150deg,rgba(128,0,255,.22),rgba(255,0,255,.08));
  display:flex;align-items:center;justify-content:center;
}
.hero-frame{max-width:660px;aspect-ratio:16/9}
.outro-frame{max-width:520px;aspect-ratio:16/9;margin:0 auto}
.frame .shot{display:block;width:100%;height:100%;object-fit:cover}
.void-mark{width:34%;max-width:118px;height:auto;opacity:.9}

/* 正文各节 */
.stage section[id],.stage section.sec{
  scroll-margin-top:112px;padding:clamp(18px,3vw,28px) 0;
  border-top:1px solid rgba(128,0,255,.2);overflow-x:auto;
}
.stage section[id] h2,.stage section[id] h3,.stage section[id] h4{
  font-family:"Poiret One","Didact Gothic",sans-serif;font-weight:400;color:#fff;line-height:1.32;letter-spacing:.03em;
}
.stage section[id] h2{margin:.1rem 0 .9rem;font-size:clamp(1.35rem,4.2vw,1.9rem)}
.stage section[id] h3{margin:1.2rem 0 .6rem;font-size:1.14rem;color:#ff9df9}
.stage section[id] h2 > span,.stage section[id] h3 > span{
  background-image:linear-gradient(90deg,var(--violet),var(--magenta));
  background-repeat:no-repeat;background-size:100% 2px;background-position:0 100%;
  padding-bottom:.12em;
}
.stage section[id] p{margin:0 0 1rem;color:#dad3ea}
.stage section[id] strong{color:#fff}
.stage section[id] a{color:#ff9df9;text-underline-offset:3px;text-decoration-color:rgba(255,0,255,.55)}
.stage section[id] ul,.stage section[id] ol{margin:0 0 1rem;padding-left:1.25rem}
.stage section[id] li{margin:.35rem 0}
.stage section[id] blockquote{margin:1rem 0;padding:.5rem 0 .5rem 1rem;border-left:2px solid var(--magenta);color:var(--dim)}
.stage section[id] img{max-width:100%;height:auto;border-radius:var(--radius);border:1px solid var(--line)}
.stage section[id] table{width:100%;border-collapse:collapse;font-size:.95rem}
.stage section[id] th,.stage section[id] td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left}

/* 收尾 */
.outro{border-top:1px solid var(--line);padding-top:clamp(20px,3vw,30px);text-align:center}
.outro h2{
  margin:0 0 1rem;font-family:"Poiret One",sans-serif;font-weight:400;
  font-size:clamp(1.5rem,5.5vw,2.2rem);letter-spacing:.14em;color:#fff;
}
.outro h2 span{text-shadow:0 0 16px rgba(128,0,255,.85)}

/* 侧栏 */
.rail{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:1.05rem 1rem;background:rgba(128,0,255,.07);
}
.rail-h{
  margin:0 0 .7rem;font-family:"Poiret One",sans-serif;font-weight:400;
  font-size:.95rem;letter-spacing:.2em;color:#ff9df9;
}
.rail-h span{text-shadow:0 0 12px rgba(255,0,255,.7)}
.rail-list{list-style:none;margin:0;padding:0;display:grid;gap:.15rem}
.rail-list a{
  display:flex;align-items:center;min-height:42px;padding:.25rem .55rem;font-size:.94rem;
  color:var(--dim);text-decoration:none;border-left:2px solid transparent;border-radius:0 12px 12px 0;
}
.rail-list a:hover,.rail-list a.on{color:#fff;border-left-color:var(--magenta);background:rgba(255,0,255,.12)}

/* 页脚 */
.base{
  position:relative;z-index:2;max-width:1180px;margin:0 auto;
  padding:clamp(30px,6vw,58px) var(--pad) 44px;border-top:1px solid var(--line2);
  text-align:center;background:linear-gradient(180deg,rgba(13,13,13,0),rgba(13,13,13,.85));
}
.base-cta{margin:0}
.base-cta a{
  display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:.9rem 2.3rem;
  border:1px solid var(--magenta);border-radius:999px;text-decoration:none;color:#fff;
  font-size:1.1rem;letter-spacing:.18em;text-shadow:0 0 12px rgba(255,0,255,.65);
  background:linear-gradient(120deg,rgba(128,0,255,.35),rgba(255,0,255,.22));
}
.base-cta a:hover{background:linear-gradient(120deg,rgba(128,0,255,.55),rgba(255,0,255,.4))}
.base-copy{margin:1.3rem 0 0;color:#7d7298;font-size:.85rem}
.base-copy a{color:#a89bc6;text-decoration:none}

/* 入场 */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
.reveal.in{opacity:1;transform:none}

@media (min-width:900px){
  .stage{grid-template-columns:minmax(0,1fr) 272px;align-items:start}
  .stage > section,.stage > .hero{grid-column:1}
  .rail{grid-column:2;grid-row:1/span 60;position:sticky;top:104px;align-self:start}
}
@media (max-width:899px){
  .hero{min-height:38vh}
  .rail{margin-top:.4rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .glitch::before,.glitch::after{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
}

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