:root{
  --ink:#261717;
  --red:#ff0000;
  --violet:#8b00ff;
  --txt:#f7efec;
  --muted:#cfbcb9;
  --line:rgba(255,255,255,.18);
  --glass:rgba(255,255,255,.09);
  --r:28px;
}
*,*::before,*::after{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  background:#261717;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  overflow-x:hidden;
  min-height:100vh;
  color:var(--txt);
  font-family:'Outfit','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  background-color:#261717;
  background-image:
    radial-gradient(46% 32% at 84% -6%, rgba(139,0,255,.44), rgba(139,0,255,0) 72%),
    radial-gradient(42% 30% at 2% 14%, rgba(255,0,0,.26), rgba(255,0,0,0) 70%),
    radial-gradient(72% 48% at 50% 110%, rgba(139,0,255,.26), rgba(139,0,255,0) 72%);
  background-attachment:fixed;
  background-repeat:no-repeat;
}
img{max-width:100%;height:auto;display:block}

/* ---------- 顶部 / 左侧导航 ---------- */
.rail{
  position:fixed;
  inset:0 0 auto 0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  background:rgba(38,23,23,.62);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
.mark{
  flex:0 0 auto;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  text-decoration:none;
  color:#fff;
  font-weight:900;
  font-size:20px;
  background:linear-gradient(150deg,var(--red),var(--violet));
  border:1px solid rgba(255,255,255,.34);
  box-shadow:0 8px 22px rgba(139,0,255,.35),inset 0 1px 0 rgba(255,255,255,.4);
  overflow:hidden;
}
.mark img{width:44px;height:44px;object-fit:cover}
.rail-nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.rail-nav::-webkit-scrollbar{display:none}
.rail-nav p{
  display:flex;
  gap:8px;
  margin:0;
  padding:2px 2px 4px;
}
.pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  font-size:16px;
  font-weight:500;
  white-space:nowrap;
  text-decoration:none;
  color:var(--txt);
  background:rgba(255,255,255,.10);
  border:1px solid var(--line);
  border-radius:999px;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  transition:background .25s ease,border-color .25s ease,transform .25s ease;
}
.pill:hover,.pill:focus-visible{
  background:rgba(255,0,0,.3);
  border-color:rgba(255,0,0,.6);
  transform:translateY(-1px);
}
.pill:focus-visible,.cta:focus-visible,.mark:focus-visible,.side a:focus-visible,.foot a:focus-visible{
  outline:2px solid #ff5a5a;
  outline-offset:2px;
}

/* 右下主按钮 */
.cta{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:50;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 24px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.06em;
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--red),var(--violet));
  border:1px solid rgba(255,255,255,.38);
  box-shadow:0 14px 34px rgba(139,0,255,.42);
  transition:transform .25s ease,box-shadow .25s ease;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(255,0,0,.4)}

/* ---------- 首屏 ---------- */
.stage{display:block}
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:118px 18px 96px;
  border-radius:0 0 50% 50% / 0 0 64px 64px;
}
.hero-figure{
  position:absolute;
  inset:0;
  margin:0;
  z-index:-1;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.58;
  transform:scale(1.06);
  filter:saturate(1.15) contrast(1.04);
}
.hero-figure::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(38,23,23,.86),rgba(38,23,23,.34) 42%,rgba(38,23,23,.94));
}
.hero-glow{
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(38% 30% at 74% 26%, rgba(255,0,0,.5), rgba(255,0,0,0) 70%),
    radial-gradient(44% 36% at 26% 66%, rgba(139,0,255,.55), rgba(139,0,255,0) 72%),
    linear-gradient(160deg,#2c1818,#1c0f18);
  filter:blur(6px);
}
.hero-copy{
  position:relative;
  max-width:860px;
  width:100%;
  text-align:center;
  padding:34px clamp(18px,4vw,46px) 38px;
  border-radius:var(--r);
  border:1px solid var(--line);
  border-bottom:2px solid var(--red);
  background:rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 34px 90px rgba(0,0,0,.5);
}
.hero h1{
  margin:0;
  font-size:clamp(2rem,7.6vw,4.2rem);
  line-height:1.14;
  font-weight:900;
  letter-spacing:.03em;
  color:#fff;
  text-shadow:0 0 26px rgba(255,0,0,.4),0 0 60px rgba(139,0,255,.5);
}
.hero-desc{
  margin:18px auto 0;
  max-width:620px;
  font-size:17px;
  line-height:1.7;
  color:var(--muted);
}

/* ---------- 正文 + 右栏 ---------- */
.body-wrap{
  display:grid;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:44px 18px 72px;
}
.prose{min-width:0}
.prose > article{
  padding:30px 0 34px;
  border-top:1px solid var(--line);
  scroll-margin-top:92px;
}
.prose > article:first-child{border-top:0;padding-top:4px}
.prose h2,.prose h3{
  margin:.2em 0 .62em;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.02em;
  color:#fff;
}
.prose h2{
  font-size:clamp(1.42rem,3.6vw,2rem);
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.prose h3{font-size:clamp(1.16rem,2.6vw,1.4rem)}
.prose small,.side small{
  display:block;
  margin-bottom:6px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.2em;
  color:#ff6b6b;
  text-transform:uppercase;
}
.prose p{margin:0 0 1em;color:#f1e5e2}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.25em}
.prose li{margin:.32em 0}
.prose a{color:#ffb3b3;text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose strong{color:#fff;font-weight:700}
.prose figure,.prose .card{
  margin:24px 0;
  padding:14px;
  border-radius:var(--r);
  border:1px solid var(--line);
  border-bottom:2px solid var(--violet);
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.prose figure img,.prose img{border-radius:18px;width:100%}
.prose blockquote{
  margin:22px 0;
  padding:14px 18px;
  border-left:3px solid var(--red);
  border-radius:0 18px 18px 0;
  background:rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:#f3e7e4;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{width:100%;border-collapse:collapse;margin:20px 0;font-size:16px}
.prose th,.prose td{padding:10px 12px;border:1px solid var(--line);text-align:left}
.prose th{background:rgba(139,0,255,.2)}

.side{
  padding:20px 18px 22px;
  border-radius:var(--r);
  border:1px solid var(--line);
  border-bottom:2px solid var(--red);
  background:var(--glass);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26);
}
.side h2{
  margin:0 0 14px;
  font-size:1.24rem;
  font-weight:900;
  letter-spacing:.04em;
}
.side ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.side a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 13px;
  font-size:16px;
  text-decoration:none;
  color:var(--txt);
  border-radius:14px;
  border:1px solid transparent;
  background:rgba(255,255,255,.06);
  transition:background .22s ease,border-color .22s ease,transform .22s ease;
}
.side a:hover{
  background:rgba(139,0,255,.28);
  border-color:rgba(255,255,255,.3);
  transform:translateX(-2px);
}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1180px;
  margin:0 auto;
  padding:36px 18px 96px;
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
  border-top:1px solid var(--line);
}
.foot dl{margin:0}
.foot dt{
  font-size:16px;
  font-weight:700;
  letter-spacing:.16em;
  color:#fff;
  text-transform:uppercase;
}
.foot dd{margin:10px 0 0;color:var(--muted);font-size:16px;line-height:1.6}
.foot dd.fnav{display:flex;flex-wrap:wrap;gap:8px}
.foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  font-size:16px;
  text-decoration:none;
  color:var(--txt);
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  transition:background .22s ease,border-color .22s ease;
}
.foot dd a:hover{background:rgba(255,0,0,.28);border-color:rgba(255,0,0,.6)}
.foot .copy{
  grid-column:1/-1;
  margin:6px 0 0;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:16px;
}

/* ---------- 动效 ---------- */
@keyframes rise{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}
.pill{animation:rise .42s both}
.pill:nth-child(1){animation-delay:.03s}
.pill:nth-child(2){animation-delay:.07s}
.pill:nth-child(3){animation-delay:.11s}
.pill:nth-child(4){animation-delay:.15s}
.pill:nth-child(5){animation-delay:.19s}
.pill:nth-child(6){animation-delay:.23s}
.pill:nth-child(7){animation-delay:.27s}
.hero-copy{animation:rise .62s .1s both}
.anim .prose > article,.anim .foot dl,.anim .side{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease,transform .5s ease;
}
.anim .prose > article.in,.anim .foot dl.in,.anim .side.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (min-width:760px){
  .foot{grid-template-columns:repeat(3,minmax(0,1fr))}
  .foot .copy{padding-top:20px}
}
@media (min-width:1000px){
  .rail{
    inset:0 auto 0 0;
    width:236px;
    flex-direction:column;
    align-items:stretch;
    gap:18px;
    padding:22px 18px;
    border-bottom:0;
    border-right:1px solid var(--line);
    background:rgba(38,23,23,.5);
  }
  .rail-nav{overflow:visible;flex:1 1 auto}
  .rail-nav p{flex-direction:column;gap:9px;padding:0}
  .pill{justify-content:flex-start;width:100%}
  .stage{margin-left:236px}
  .hero{
    padding:120px 40px 110px;
    border-radius:0 0 0 0;
    border-bottom-left-radius:120px;
    border-bottom-right-radius:120px;
  }
  .body-wrap{
    grid-template-columns:minmax(0,1fr) 290px;
    align-items:start;
    gap:36px;
    padding:52px 40px 88px;
  }
  .prose > article{scroll-margin-top:24px}
  .side{position:sticky;top:24px}
  .foot{padding-left:40px;padding-right:40px}
  .cta{right:32px;bottom:32px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
  }
  .anim .prose > article,.anim .foot dl,.anim .side{opacity:1;transform:none}
}

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