@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root{
  --ink:#1a1a2e;
  --bg:#08080f;
  --bg-2:#141130;
  --red:#ff0000;
  --pink:#ff006e;
  --cyan:#00e5ff;
  --fg:#efeaf6;
  --dim:#a79fc0;
  --rail:236px;
  --r:10px;
  --head:'Space Grotesk',"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  --body:"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font:16px/1.7 var(--body);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:90;
  pointer-events:none;
  background:repeating-linear-gradient(to bottom,rgba(255,255,255,.05) 0 1px,transparent 1px 3px);
  opacity:.5;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(60% 50% at 88% 0%,rgba(255,0,110,.18),transparent 70%),
    radial-gradient(55% 45% at 0% 22%,rgba(0,229,255,.10),transparent 70%);
}
a{color:inherit}
img{max-width:100%}
:focus-visible{outline:2px dashed var(--cyan);outline-offset:3px}

/* 左侧固定竖排控制台 */
.rail{
  position:fixed;
  top:0;bottom:0;left:0;
  width:var(--rail);
  z-index:70;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:22px 16px;
  overflow-y:auto;
  background:linear-gradient(180deg,#151232,#0a0916 65%);
  border-right:1px solid rgba(255,110,180,.22);
  box-shadow:inset -18px 0 40px -30px #ff006e;
}
.brand{
  display:block;
  padding:6px 4px;
  font-family:var(--head);
  font-weight:700;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.01em;
  color:#fff;
  text-decoration:none;
  text-shadow:0 0 14px rgba(255,0,110,.85),0 0 34px rgba(255,0,0,.55);
}
.brand:hover{color:#fff0f6}
.rail__nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.rail__nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border-radius:999px;
  font-size:16px;
  color:var(--fg);
  text-decoration:none;
  background:rgba(255,255,255,.06);
  transition:background .18s,color .18s,transform .18s,box-shadow .18s;
}
.rail__nav a:hover,.rail__nav a:focus-visible{
  background:var(--pink);
  color:#0a0916;
  transform:translateX(3px);
  box-shadow:0 0 18px rgba(255,0,110,.7);
}
.rail__cta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.18em;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(90deg,var(--red),var(--pink));
  box-shadow:0 0 22px rgba(255,0,0,.45);
}
.rail__cta:hover{filter:brightness(1.12)}

.shell{margin-left:var(--rail)}
.main{display:block}

/* hero */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:flex-start;
  overflow:hidden;
  border-bottom:1px solid rgba(255,110,180,.25);
  background:
    radial-gradient(120% 90% at 12% 0%,rgba(255,0,110,.38),transparent 62%),
    linear-gradient(180deg,var(--ink),#07070d);
}
.hero__art{position:absolute;inset:0;margin:0}
.hero__img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  filter:contrast(1.1) saturate(1.15) hue-rotate(-8deg);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg,rgba(8,8,15,.95) 0%,rgba(26,26,46,.82) 55%,rgba(255,0,110,.25) 100%);
}
.hero__copy{
  position:relative;
  z-index:2;
  max-width:840px;
  padding:10vh 24px 6vh;
}
.hero__lede{
  max-width:52ch;
  margin:18px 0 0;
  font-size:clamp(16px,1.6vw,19px);
  color:#ded7ee;
}

h1{
  margin:0;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(2rem,5.4vw,3.6rem);
  line-height:1.04;
  letter-spacing:-.025em;
  color:#fff;
  text-shadow:0 0 18px rgba(255,0,110,.8),0 0 48px rgba(255,0,0,.55);
}

.glitch{position:relative;display:inline-block}
.glitch::before,.glitch::after{
  content:attr(data-text);
  position:absolute;
  left:0;top:0;
  width:100%;
  pointer-events:none;
  opacity:.85;
}
.glitch::before{
  color:var(--cyan);
  transform:translate(-2px,-2px);
  clip-path:polygon(0 0,100% 0,100% 46%,0 46%);
  animation:gl1 6s infinite steps(1);
}
.glitch::after{
  color:var(--pink);
  transform:translate(2px,2px);
  clip-path:polygon(0 54%,100% 54%,100% 100%,0 100%);
  animation:gl2 5s infinite steps(1);
}
@keyframes gl1{
  0%,92%,100%{transform:translate(-2px,-2px)}
  93%{transform:translate(-8px,-2px)}
  96%{transform:translate(5px,1px)}
}
@keyframes gl2{
  0%,88%,100%{transform:translate(2px,2px)}
  90%{transform:translate(9px,2px)}
  94%{transform:translate(-4px,1px)}
}

/* 正文与右侧栏交错 */
.flow{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:0 46px;
  align-items:start;
  max-width:1140px;
  padding:0 24px 70px;
}
.flow > article{
  grid-column:1;
  min-width:0;
  padding:38px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.flow > article:first-child{border-top:0;padding-top:48px}
.flow > article h2{
  margin:0 0 10px;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(1.45rem,3vw,2.05rem);
  line-height:1.15;
  letter-spacing:-.01em;
  color:#fff;
  text-shadow:0 0 16px rgba(255,0,110,.7);
}
.flow > article h3{
  margin:26px 0 8px;
  font-family:var(--head);
  font-weight:700;
  font-size:1.2rem;
  color:#fff;
}
.flow > article p{margin:0 0 14px;color:#dcd6ea}
.flow > article ul,.flow > article ol{margin:0 0 16px;padding-left:1.15em}
.flow > article li{margin:0 0 7px;color:#dcd6ea}
.flow > article strong,.flow > article b{color:#fff}
.flow > article a{color:var(--cyan)}
.flow > article figure{
  margin:22px 0;
  padding:10px;
  background:var(--bg-2);
  border-radius:var(--r);
}
.flow > article figure img{display:block;width:100%;height:auto;border-radius:8px}
.flow > article blockquote{
  margin:20px 0;
  padding:12px 16px;
  background:rgba(255,0,110,.09);
  border-left:3px solid var(--pink);
  border-radius:0 var(--r) var(--r) 0;
  color:#e8e2f3;
}
.flow > article blockquote p:last-child{margin:0}
.flow > article table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.flow > article th,.flow > article td{padding:9px 10px;text-align:left;border-bottom:1px solid rgba(255,255,255,.12)}

hr{
  height:3px;
  border:0;
  margin:0 0 20px;
  background:linear-gradient(90deg,var(--red),var(--pink) 42%,rgba(255,0,110,0) 100%);
  box-shadow:0 0 12px rgba(255,0,110,.45);
}

.side{
  grid-column:2;
  grid-row:1;
  align-self:start;
  padding:18px;
  background:var(--bg-2);
  border-radius:var(--r);
  box-shadow:0 0 0 1px rgba(255,110,180,.14),0 0 34px -18px #ff006e;
}
.side h2{
  margin:0 0 8px;
  font-family:var(--head);
  font-weight:700;
  font-size:1.02rem;
  letter-spacing:.16em;
  color:#fff;
}
.side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:8px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  background:rgba(255,255,255,.045);
  transition:background .16s,color .16s;
}
.side a:hover{background:var(--cyan);color:#0a0916}

.flow > article,.side{scroll-margin-top:96px}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px 26px;
  padding:44px 24px 26px;
  background:#0b0a17;
  border-top:1px solid rgba(255,110,180,.24);
}
.foot__cta{flex:1 1 100%;margin:0 0 8px}
.foot__cta a{
  display:inline-block;
  padding-bottom:6px;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(1.7rem,4.4vw,2.6rem);
  line-height:1.1;
  color:#fff;
  text-decoration:none;
  border-bottom:4px solid var(--pink);
  text-shadow:0 0 18px rgba(255,0,110,.8),0 0 44px rgba(255,0,0,.45);
}
.foot__cta a:hover{color:#ffe6f2}
.foot__brand{flex:0 0 auto;font-family:var(--head);font-weight:700;font-size:18px}
.foot__brand a{color:#fff;text-decoration:none}
.foot__nav{flex:1 1 auto}
.foot__nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:2px 16px;margin:0;padding:0}
.foot__nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
}
.foot__nav a:hover{color:var(--pink)}
.foot__copy{flex:0 0 auto;font-size:16px;color:#7d76a0}

/* 滚动揭示 */
.reveal{opacity:0;transform:translateY(16px)}
.reveal.in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s ease}

@media (max-width:1024px){
  .flow{grid-template-columns:minmax(0,1fr) 240px;gap:0 26px}
  .hero__copy{padding:8vh 20px 5vh}
}

@media (max-width:900px){
  .rail{
    top:0;right:0;bottom:auto;left:0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:9px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid rgba(255,110,180,.24);
    box-shadow:0 10px 30px -20px #ff006e;
    -webkit-overflow-scrolling:touch;
  }
  .brand{flex:0 0 auto;font-size:18px;padding:6px 2px;white-space:nowrap}
  .rail__nav{flex:0 0 auto}
  .rail__nav ul{flex-direction:row;gap:8px}
  .rail__nav a{white-space:nowrap;min-height:42px;padding:6px 12px}
  .rail__cta{flex:0 0 auto;margin-top:0;min-height:42px;padding:0 16px;letter-spacing:.1em}
  .shell{margin-left:0;padding-top:66px}
  .hero{min-height:0;padding-bottom:34px}
  .hero__copy{padding:34px 18px 0;max-width:none}
  .flow{grid-template-columns:1fr;gap:0;padding:0 18px 54px}
  .flow > article,.side{grid-column:1}
  .flow > article:first-child{padding-top:36px}
  .side{grid-row:auto;margin:8px 0 0}
  .side ul{flex-direction:row;flex-wrap:wrap}
  .side a{min-height:44px}
  .foot{padding:34px 18px 22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}

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