@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root{
  --red:#ff0000;
  --purple:#8b00ff;
  --ink:#261717;
  --txt:#f8eeee;
  --dim:#d8c2c2;
  --line:rgba(255,255,255,.2);
  --glass:rgba(255,255,255,.09);
  --glass-hi:rgba(255,255,255,.17);
  --rail:236px;
  --pad:40px;
  --r:4px;
  --font:'Outfit',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  font-family:var(--font);
  font-size:17px;
  line-height:1.7;
  color:var(--txt);
  background:#150c0c;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:-2;
  background:
    radial-gradient(42vw 42vw at 16% 10%,rgba(255,0,0,.62),transparent 62%),
    radial-gradient(38vw 38vw at 84% 22%,rgba(139,0,255,.58),transparent 66%),
    radial-gradient(52vw 52vw at 62% 92%,rgba(255,0,0,.32),transparent 70%),
    radial-gradient(30vw 30vw at 28% 68%,rgba(139,0,255,.3),transparent 72%),
    #170d0d;
  filter:blur(30px);
}
.aurora{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(20,12,12,.3),rgba(20,12,12,.8));
}
a{color:inherit;text-decoration:none}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
menu{margin:0;padding:0;list-style:none}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid #ff4d4d;outline-offset:3px}

/* ---------- 左侧竖排航条 ---------- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px 16px;
  background:rgba(38,23,23,.55);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  backdrop-filter:blur(16px) saturate(130%);
  border-right:1px solid var(--line);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.06);
}
.mark{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:46px;
  height:46px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(140deg,rgba(255,0,0,.85),rgba(139,0,255,.85));
  font-weight:900;
  font-size:22px;
  line-height:1;
  letter-spacing:.02em;
  box-shadow:0 10px 24px -14px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .25s ease, box-shadow .25s ease;
}
.mark:hover{transform:translateY(-2px) rotate(-2deg);box-shadow:0 16px 30px -16px rgba(0,0,0,.9)}
.mark-img{width:100%;height:100%;object-fit:cover;border-radius:var(--r)}
.mark span{transform:translateY(-1px)}

.fold{position:relative}
.fold>summary{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 12px;
  list-style:none;
  cursor:pointer;
  font-weight:700;
  font-size:16px;
  letter-spacing:.06em;
  color:var(--txt);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  transition:background .22s ease;
}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary:hover{background:var(--glass-hi)}
.bars{
  width:18px;
  height:12px;
  background:
    linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 10px/100% 2px no-repeat;
  flex:0 0 auto;
  opacity:.85;
}
.fold menu{padding-top:14px;display:grid;gap:4px}
.nlink{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 12px;
  font-size:16px;
  line-height:1.4;
  color:var(--dim);
  border-radius:var(--r);
  border-left:2px solid transparent;
  transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease;
}
.nlink:hover,.nlink:focus-visible{
  color:#fff;
  background:rgba(255,0,0,.2);
  border-left-color:var(--red);
  transform:translateX(2px);
}
.ping{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  color:#fff;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(120deg,rgba(255,0,0,.55),rgba(139,0,255,.55));
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transition:filter .2s ease,transform .2s ease;
}
.ping:hover{filter:brightness(1.2);transform:translateY(-2px)}

/* ---------- 首屏 ---------- */
main{margin-left:var(--rail)}
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
  align-items:center;
  gap:38px;
  min-height:100svh;
  padding:60px var(--pad) 64px;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  z-index:0;
  right:-12%;
  top:-4%;
  width:48%;
  height:108%;
  background:linear-gradient(158deg,rgba(255,0,0,.42),rgba(139,0,255,.42));
  clip-path:polygon(32% 0,100% 0,68% 100%,0 100%);
  filter:blur(2px);
  opacity:.75;
  pointer-events:none;
}
.hero-art{
  position:relative;
  z-index:1;
  margin:0;
  height:clamp(300px,64vh,560px);
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.26);
  overflow:hidden;
  background:linear-gradient(200deg,rgba(255,0,0,.35),rgba(38,23,23,.7),rgba(139,0,255,.4));
  box-shadow:0 40px 80px -44px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.4);
  will-change:transform;
}
.hero-img{width:100%;height:100%;object-fit:cover}
.hero-void{
  position:absolute;
  inset:0;
  background:
    radial-gradient(60% 50% at 30% 25%,rgba(255,255,255,.4),transparent 70%),
    linear-gradient(150deg,rgba(255,0,0,.5),rgba(139,0,255,.45));
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
.hero-copy{
  position:relative;
  z-index:1;
  text-align:center;
  max-width:34ch;
  margin:0 auto;
  padding:26px 22px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 30px 60px -40px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.35);
}
h1{
  margin:0;
  font-size:clamp(30px,4.6vw,56px);
  font-weight:900;
  line-height:1.08;
  letter-spacing:.015em;
  text-wrap:balance;
  text-shadow:0 2px 22px rgba(0,0,0,.45);
}
.rule{
  width:88px;
  height:3px;
  margin:20px auto;
  border:0;
  background:linear-gradient(90deg,var(--red),var(--purple));
}
.lead{margin:0 0 22px;color:#f1e2e2;font-size:17px;line-height:1.75}
.hero-act{margin:0}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 26px;
  font-weight:700;
  font-size:16px;
  letter-spacing:.16em;
  border-radius:var(--r);
  color:#fff;
  border:1px solid rgba(255,255,255,.32);
  background:linear-gradient(120deg,var(--red),var(--purple));
  box-shadow:0 16px 34px -20px rgba(255,0,0,.9),inset 0 1px 0 rgba(255,255,255,.5);
  transition:transform .2s ease,filter .2s ease;
}
.btn:hover{transform:translateY(-2px);filter:brightness(1.12)}
.btn.ghost{
  background:rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}

/* ---------- 正文与右侧栏 ---------- */
.shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  align-items:start;
  gap:28px;
  max-width:1240px;
  margin:0 auto;
  padding:0 var(--pad) 84px;
}
.prose{min-width:0}
.prose>article,.prose [id]{
  scroll-margin-top:96px;
}
.prose>article{
  margin:0 0 22px;
  padding:30px 28px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:var(--glass);
  -webkit-backdrop-filter:blur(15px) saturate(135%);
  backdrop-filter:blur(15px) saturate(135%);
  box-shadow:0 26px 54px -40px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.16);
}
.prose h2,.prose h3{
  font-weight:900;
  line-height:1.2;
  letter-spacing:.01em;
  margin:0 0 12px;
  text-wrap:balance;
}
.prose h2{font-size:clamp(22px,2.6vw,30px)}
.prose h3{font-size:clamp(19px,2vw,23px);color:#ffe7e7}
.prose hr{
  height:2px;
  margin:0 0 20px;
  border:0;
  background:linear-gradient(90deg,var(--red),rgba(139,0,255,.15));
}
.prose ul,.prose ol{padding-left:20px;color:#f0e1e1}
.prose li{margin-bottom:8px}
.prose p,.prose li{color:#f0e1e1}
.prose a{color:#ff8f8f;text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:#fff}
.prose strong{color:#fff}
.prose blockquote{
  margin:0 0 18px;
  padding:12px 18px;
  border-left:3px solid var(--purple);
  background:rgba(255,255,255,.06);
  border-radius:0 var(--r) var(--r) 0;
}
.side{
  position:sticky;
  top:24px;
  padding:20px 18px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 30px 60px -44px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.3);
}
.side h2{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.side hr{
  height:2px;
  margin:0 0 12px;
  border:0;
  background:linear-gradient(90deg,var(--purple),transparent);
}
.jump{display:grid;gap:2px}
.jump .nlink{
  min-height:40px;
  font-size:16px;
  color:#e6d5d5;
  border-left:0;
  border-radius:var(--r);
  padding:8px 10px;
}
.jump .nlink:hover{transform:none;background:rgba(139,0,255,.28)}

/* ---------- 页脚 ---------- */
footer{
  margin-left:var(--rail);
  padding:0 var(--pad) 34px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(38,23,23,.4),rgba(24,13,13,.75));
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
footer>article{max-width:1240px;margin:0 auto}
.f-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:34px auto 30px;
  padding:30px 28px;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.24);
  background:
    linear-gradient(118deg,rgba(255,0,0,.42),rgba(139,0,255,.4)),
    rgba(255,255,255,.06);
  box-shadow:0 34px 70px -48px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.35);
}
.f-brand{
  margin:0;
  font-size:clamp(26px,4vw,42px);
  font-weight:900;
  line-height:1.1;
  letter-spacing:.02em;
  text-shadow:0 2px 20px rgba(0,0,0,.4);
}
.f-act{margin:0}
.f-cols{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:26px;
  padding:26px 4px 24px;
  border-top:1px solid rgba(255,255,255,.14);
}
.f-col h3{
  margin:0 0 10px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#ffcfcf;
}
.f-col p{margin:0;font-size:16px;color:var(--dim);word-break:break-word}
.f-col menu{display:grid;gap:2px}
.f-col .nlink{min-height:40px;font-size:16px;padding:7px 0;border-left:0;color:var(--dim)}
.f-col .nlink:hover{background:none;color:#fff;transform:none;text-decoration:underline;text-underline-offset:4px}
.f-base{
  padding:18px 0 0;
  border-top:1px solid rgba(255,255,255,.14);
  text-align:center;
}
.f-base p{margin:0;font-size:16px;color:#bfa8a8;letter-spacing:.06em}

/* ---------- 回到顶部 ---------- */
.totop{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:40;
  width:48px;
  height:48px;
  font-size:20px;
  font-family:var(--font);
  color:#fff;
  cursor:pointer;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.3);
  background:rgba(38,23,23,.62);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  box-shadow:0 18px 34px -22px rgba(0,0,0,.9);
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease;
}
.totop.show{opacity:1;pointer-events:auto;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .hero-art{transform:none !important}
}

/* ---------- 平板 ---------- */
@media (max-width:1080px){
  :root{--rail:200px;--pad:26px}
  .shell{grid-template-columns:minmax(0,1fr) 240px;gap:22px}
}

/* ---------- 小屏：航条变顶栏 ---------- */
@media (max-width:900px){
  :root{--pad:18px}
  .rail{
    position:sticky;
    inset:0;
    width:auto;
    height:auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 14px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .mark{width:42px;height:42px;font-size:20px}
  .ping{margin-top:0;min-width:74px;letter-spacing:.1em}
  .fold menu{
    position:absolute;
    left:0;
    top:calc(100% + 10px);
    width:min(78vw,320px);
    max-height:66vh;
    overflow:auto;
    padding:10px;
    border-radius:var(--r);
    border:1px solid var(--line);
    background:rgba(30,18,18,.94);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    box-shadow:0 30px 60px -30px rgba(0,0,0,.95);
  }
  main,footer{margin-left:0}
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    gap:20px;
    padding:26px var(--pad) 44px;
  }
  .hero::after{display:none}
  .hero-art{height:clamp(210px,34vh,300px)}
  .hero-copy{max-width:none;padding:24px 18px}
  .shell{grid-template-columns:1fr;padding-bottom:56px}
  .side{position:static}
  .prose>article{padding:24px 18px}
  .f-cols{grid-template-columns:1fr 1fr;gap:20px}
  .f-cta{padding:24px 18px}
  .f-base{padding-bottom:10px}
}

@media (max-width:560px){
  .f-cols{grid-template-columns:1fr}
  h1{font-size:clamp(28px,8vw,38px)}
  .totop{right:12px;bottom:12px}
}

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