:root{
  --red:#ff0000;
  --pink:#ff1493;
  --ink:#261717;
  --bg:#120a0b;
  --panel:rgba(255,20,147,.09);
  --line:rgba(255,20,147,.26);
  --text:#ffe9ef;
  --muted:#d7b0bd;
  --radius:10px;
  --pad:clamp(16px,4.5vw,44px);
  --maxw:1160px;
  --shadow:0 18px 44px -22px rgba(255,0,0,.55);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,'Segoe UI','Noto Sans SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--text);
  background-color:var(--bg);
  background-image:
    radial-gradient(58% 38% at 4% -6%, rgba(255,0,0,.38), transparent 68%),
    radial-gradient(52% 40% at 98% 2%, rgba(255,20,147,.32), transparent 70%),
    radial-gradient(70% 50% at 50% 108%, rgba(255,20,147,.20), transparent 72%),
    linear-gradient(180deg,#1c1011 0%,#130a0b 46%,#0e0708 100%);
  background-repeat:no-repeat;
  background-attachment:scroll;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--pink)}
a:focus-visible,
button:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:6px}

::selection{background:var(--pink);color:#fff}

h1,h2,h3{font-family:'Righteous','Poppins',system-ui,sans-serif;font-weight:400}

/* ---------- 页头 ---------- */
.masthead{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 18px;
  padding:10px var(--pad);
  background:rgba(18,10,11,.86);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px) saturate(1.35);
  -webkit-backdrop-filter:blur(14px) saturate(1.35);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:6px 0;
  font-family:'Righteous','Poppins',sans-serif;
  font-size:23px;
  letter-spacing:.05em;
  color:#fff;
  text-decoration:none;
  text-shadow:0 0 22px rgba(255,20,147,.7);
}
.brand::before{
  content:"";
  width:11px;height:11px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--pink));
  box-shadow:0 0 14px var(--pink);
}

.jump{flex:1 1 100%}
.jump p{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
}
.jump a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 10px;
  font-size:16px;
  letter-spacing:.02em;
  color:var(--muted);
  text-decoration:none;
  border-radius:8px;
}
.jump a:hover{color:#fff;background:rgba(255,20,147,.18)}

/* ---------- 主体骨架 ---------- */
main{display:block}
.doc{display:block}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:clamp(18px,3.4vw,30px);
  padding:clamp(34px,7vw,78px) var(--pad) clamp(42px,8vw,86px);
  text-align:center;
}

.aura{
  position:absolute;
  inset:-18% -12%;
  z-index:-2;
  filter:saturate(1.25) blur(30px);
  opacity:.72;
  pointer-events:none;
  will-change:transform;
}
.aura i{
  position:absolute;
  display:block;
  border-radius:50%;
  mix-blend-mode:screen;
}
.aura i:nth-child(1){
  width:54vmax;height:54vmax;left:-12%;top:-14%;
  background:radial-gradient(circle at 40% 40%, rgba(255,0,0,.62), transparent 66%);
  animation:drift-a 11s ease-in-out infinite alternate;
}
.aura i:nth-child(2){
  width:46vmax;height:46vmax;right:-14%;top:8%;
  background:radial-gradient(circle at 55% 45%, rgba(255,20,147,.6), transparent 68%);
  animation:drift-b 9.5s ease-in-out infinite alternate;
}
.aura i:nth-child(3){
  width:40vmax;height:40vmax;left:32%;bottom:-18%;
  background:radial-gradient(circle at 50% 50%, rgba(255,90,150,.45), transparent 70%);
  animation:drift-c 12s ease-in-out infinite alternate;
}

.ghost{
  position:absolute;
  left:50%;
  top:clamp(10px,7vw,56px);
  z-index:-1;
  margin:0;
  width:max-content;
  font-family:'Righteous','Poppins',sans-serif;
  font-size:clamp(3.2rem,21vw,15rem);
  line-height:1;
  letter-spacing:.02em;
  color:transparent;
  background:linear-gradient(100deg,#fff 0%,#ffc2d8 45%,var(--pink) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  opacity:.16;
  transform:translate3d(-50%,0,0);
  pointer-events:none;
  user-select:none;
  will-change:transform;
}

.hero-copy{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(12px,2.4vw,20px);
}

.hero-copy h1{
  margin:0;
  font-size:clamp(2rem,6.6vw,4.1rem);
  line-height:1.16;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 0 34px rgba(255,20,147,.55);
}
.hero-copy h1::after{
  content:"";
  display:block;
  width:clamp(70px,16vw,150px);
  height:3px;
  margin:clamp(14px,2.6vw,22px) auto 0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pink),transparent);
}

.lede{
  margin:0;
  max-width:56ch;
  font-size:clamp(16px,2.1vw,18px);
  font-weight:300;
  line-height:1.8;
  color:var(--muted);
}

.hero-media{
  position:relative;
  z-index:1;
  margin:0;
  width:100%;
  max-width:760px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  border-bottom:3px solid var(--pink);
  box-shadow:var(--shadow);
}
.hero-media img{width:100%;height:auto}

/* ---------- 双栏 ---------- */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(22px,4vw,46px);
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(30px,6vw,68px) var(--pad) clamp(20px,4vw,40px);
  align-items:start;
}

.rail{
  position:relative;
  border:1px solid var(--line);
  border-bottom:3px solid var(--pink);
  border-radius:var(--radius);
  background:linear-gradient(180deg,var(--panel),rgba(255,0,0,.04));
  padding:16px 16px 12px;
  box-shadow:var(--shadow);
}
.rail-title{
  margin:0 0 10px;
  font-size:17px;
  letter-spacing:.2em;
  color:#fff;
}
.rail hr{
  border:0;
  height:2px;
  margin:0 0 10px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pink),transparent);
}
.rail-list{
  margin:0;
  display:flex;
  flex-direction:column;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 2px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,20,147,.18);
}
.rail-list a:last-child{border-bottom:0}
.rail-list a:hover{color:#fff;padding-left:6px}

/* ---------- 正文 ---------- */
.prose{min-width:0;font-weight:300}

.prose section{
  scroll-margin-top:96px;
  padding:clamp(26px,4.6vw,46px) 0;
  border-bottom:1px solid rgba(255,20,147,.14);
}
.prose section:first-child{padding-top:0}
.prose section:last-child{border-bottom:0;padding-bottom:0}

.prose h2{
  margin:0 0 14px;
  font-size:clamp(1.4rem,3.6vw,2.05rem);
  line-height:1.3;
  color:#fff;
  text-shadow:0 0 26px rgba(255,20,147,.35);
}
.prose h3{
  margin:26px 0 10px;
  font-size:clamp(1.1rem,2.4vw,1.35rem);
  line-height:1.4;
  color:#ffd6e4;
}
.prose hr{
  border:0;
  height:2px;
  margin:0 0 18px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--pink) 45%,transparent);
}
.prose p{margin:0 0 16px}
.prose p:last-child{margin-bottom:0}
.prose ul,
.prose ol{margin:0 0 16px;padding-left:1.3em}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--pink)}
.prose strong{color:#fff;font-weight:600}
.prose a{
  color:var(--pink);
  text-decoration:none;
  border-bottom:1px solid rgba(255,20,147,.45);
  padding-bottom:1px;
}
.prose a:hover{color:#fff;border-bottom-color:#fff}
.prose img{
  width:100%;
  margin:20px 0;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.prose figure{margin:20px 0}
.prose blockquote{
  margin:20px 0;
  padding:14px 18px;
  border-left:3px solid var(--pink);
  border-radius:0 var(--radius) var(--radius) 0;
  background:var(--panel);
  color:#ffd6e4;
}
.prose table{
  width:100%;
  border-collapse:collapse;
  margin:20px 0;
  font-size:16px;
}
.prose th,
.prose td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
.prose th{color:#fff;font-weight:600}
.prose code{
  padding:2px 6px;
  border-radius:6px;
  background:rgba(255,20,147,.16);
  font-size:.94em;
}
.prose pre{
  overflow-x:auto;
  padding:14px 16px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(38,23,23,.7);
}
.prose pre code{padding:0;background:none}

/* ---------- 页脚 ---------- */
.base{
  margin-top:clamp(40px,8vw,84px);
  border-top:1px solid var(--line);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255,20,147,.20), transparent 70%),
    #100809;
}
.cta{
  padding:clamp(42px,9vw,86px) var(--pad);
  text-align:center;
}
.cta-big{
  margin:0;
  font-family:'Righteous','Poppins',sans-serif;
  font-size:clamp(2.1rem,9vw,4.6rem);
  line-height:1.05;
  letter-spacing:.02em;
  color:transparent;
  background:linear-gradient(100deg,var(--red),var(--pink) 45%,#ff9dc6);
  background-size:220% 220%;
  -webkit-background-clip:text;
  background-clip:text;
  animation:flow 10s ease-in-out infinite alternate;
}
.cta-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:clamp(18px,3vw,26px);
  padding:10px 28px;
  border:1px solid var(--pink);
  border-radius:999px;
  color:#fff;
  font-size:16px;
  letter-spacing:.1em;
  text-decoration:none;
  background:rgba(255,20,147,.10);
}
.cta-link:hover{background:var(--pink);box-shadow:0 0 26px rgba(255,20,147,.6)}

.fine{
  padding:14px var(--pad) 24px;
  border-top:1px solid rgba(255,20,147,.14);
  text-align:center;
}
.fine-line{
  margin:0;
  font-size:16px;
  color:var(--muted);
  letter-spacing:.04em;
}

/* ---------- 动效 ---------- */
@keyframes drift-a{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(6%,5%,0) scale(1.12)}
}
@keyframes drift-b{
  from{transform:translate3d(0,0,0) scale(1.06)}
  to{transform:translate3d(-7%,8%,0) scale(1)}
}
@keyframes drift-c{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(4%,-7%,0) scale(1.16)}
}
@keyframes flow{
  from{background-position:0% 50%}
  to{background-position:100% 50%}
}
@keyframes rise{
  from{opacity:0;transform:translate3d(0,16px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}

@media (prefers-reduced-motion: no-preference){
  .hero-copy{animation:rise .75s ease-out both}
  .hero-copy h1{animation:rise .85s ease-out both}
  .lede{animation:rise .85s .12s ease-out both}
  .hero-media{animation:rise .9s .2s ease-out both}
  .rail-list a{animation:rise .5s ease-out both}
  .rail-list a:nth-child(1){animation-delay:.04s}
  .rail-list a:nth-child(2){animation-delay:.09s}
  .rail-list a:nth-child(3){animation-delay:.14s}
  .rail-list a:nth-child(4){animation-delay:.19s}
  .rail-list a:nth-child(5){animation-delay:.24s}
  .rail-list a:nth-child(6){animation-delay:.29s}
  .rail-list a:nth-child(7){animation-delay:.34s}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .aura i,.cta-big{animation:none}
}

/* ---------- 断点 ---------- */
@media (min-width:760px){
  .hero{gap:28px}
}

@media (min-width:900px){
  .masthead{position:sticky;top:0;z-index:40;flex-wrap:nowrap;padding-top:8px;padding-bottom:8px}
  .brand{font-size:25px}
  .jump{flex:0 1 auto}
  .grid{grid-template-columns:230px minmax(0,1fr);gap:clamp(26px,3.6vw,52px)}
  .rail{position:sticky;top:96px}
  .prose section{scroll-margin-top:104px}
}

@media (min-width:1100px){
  .grid{grid-template-columns:250px minmax(0,1fr)}
  .prose{font-size:18px}
}

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