@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root{
  --ink:#08080f;
  --deep:#1a1a2e;
  --red:#ff0000;
  --rose:#ff006e;
  --cyan:#6fe4ff;
  --paper:#eceaf6;
  --dim:#a6a1bd;
  --r:28px;
  --edge:rgba(255,0,110,.24);
}

*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  min-height:100%;
  font-family:'Lato',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--paper);
  background-color:#08080f;
  background-image:
    linear-gradient(rgba(255,0,110,.075) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,0,110,.075) 1px,transparent 1px),
    radial-gradient(880px 520px at 82% -8%,rgba(255,0,0,.24),transparent 68%),
    radial-gradient(720px 460px at 6% 4%,rgba(255,0,110,.18),transparent 70%);
  background-size:46px 46px,46px 46px,100% 100%,100% 100%;
  background-attachment:fixed,fixed,fixed,fixed;
  overflow-x:hidden;
}

.scan{
  position:fixed;
  inset:0;
  z-index:70;
  pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(0,0,0,.34) 0 1px,transparent 1px 3px);
  opacity:.5;
}

img{max-width:100%;height:auto}
a{color:var(--cyan);text-decoration:none}
a:hover{color:#fff}
p{margin:0 0 1em}

.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,38px);
}

.sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ===== 顶栏 ===== */
.hud{
  position:relative;
  z-index:40;
  display:flex;
  align-items:center;
  gap:14px;
  max-width:1180px;
  margin:0 auto;
  padding:12px clamp(16px,4vw,38px) 10px;
}

.sigil{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:44px;
  padding:4px 10px;
  border-radius:14px;
  background:rgba(255,0,110,.12);
  flex:0 0 auto;
}
.sigil-img{width:30px;height:30px;display:block}
.sigil-txt{
  font-family:'EB Garamond',Georgia,serif;
  font-size:18px;
  letter-spacing:.08em;
  color:#fff;
  text-shadow:0 0 12px rgba(255,0,0,.8);
}

.burger{
  display:none;
  min-height:44px;
  padding:8px 16px;
  margin-left:auto;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  background:rgba(255,255,255,.06);
  border:0;
  border-radius:14px;
  cursor:pointer;
}

.deck{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1 1 auto;
  flex-wrap:wrap;
}

.deck-home a,
.clus dt,
.hotline{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  font-size:16px;
  color:var(--paper);
  border-radius:12px;
  letter-spacing:.02em;
}
.deck-home a:hover,
.clus:hover dt,
.clus:focus-within dt,
.hotline:hover{background:rgba(255,0,110,.16);color:#fff}

.clus{position:relative;margin:0}
.clus dt{
  cursor:default;
  color:var(--dim);
  font-weight:700;
}
.clus dt::after{content:'＋';margin-left:6px;font-size:12px;color:var(--rose)}
.clus dd{
  margin:0;
}

.clus dd a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:4px 12px;
  color:var(--paper);
  font-size:16px;
  border-radius:10px;
}
.clus dd a:hover{background:rgba(255,0,110,.2);color:#fff}

.hotline{
  margin-left:auto;
  border:1px solid var(--edge);
  color:var(--rose);
  font-weight:700;
  box-shadow:0 0 18px -6px rgba(255,0,110,.9);
}

/* ===== 锚点索引条 ===== */
.rail{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding:6px clamp(12px,4vw,38px);
  background:rgba(8,8,15,.88);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(255,0,110,.2);
  border-bottom:1px solid rgba(255,0,110,.2);
  scrollbar-width:thin;
}
.rail a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 12px;
  font-size:15px;
  color:var(--dim);
  border-radius:10px;
  white-space:nowrap;
}
.rail a:hover{color:#fff;background:rgba(255,0,110,.18)}

/* ===== 首屏 ===== */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(20px,4vw,48px);
  align-items:center;
  min-height:70vh;
  padding:clamp(26px,5vw,56px) 0;
  border-bottom:1px solid rgba(255,0,110,.22);
}

.badge{
  display:inline-block;
  margin:0 0 14px;
  padding:6px 14px;
  font-size:14px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#0a0a12;
  background:linear-gradient(96deg,var(--red),var(--rose));
  border-radius:999px;
  box-shadow:0 0 26px -8px var(--rose);
}

.hero-title{
  margin:0 0 18px;
  font-family:'EB Garamond',Georgia,'Songti SC',serif;
  font-weight:600;
  font-size:clamp(2.1rem,5.6vw,4.1rem);
  line-height:1.14;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 0 16px rgba(255,0,0,.6),0 0 52px rgba(255,0,110,.42);
  animation:flicker 9s steps(1,end) infinite;
}

@keyframes flicker{
  0%,87%,100%{transform:none;opacity:1}
  88%{transform:translate(-3px,1px) skewX(-1.6deg);opacity:.82}
  90%{transform:translate(3px,-1px) skewX(1.4deg);opacity:1}
  92%{transform:translate(-1px,1px);opacity:.9}
}

.lede{
  max-width:44ch;
  font-size:18px;
  color:#d6d2e6;
  line-height:1.8;
}

.hero-act{margin:22px 0 0}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:10px 26px;
  font-weight:700;
  font-size:17px;
  color:#0a0a12;
  background:linear-gradient(96deg,var(--rose),var(--red));
  border-radius:999px;
  box-shadow:0 0 32px -8px rgba(255,0,110,.95);
  transition:transform .2s ease,box-shadow .2s ease;
}
.cta:hover{color:#0a0a12;transform:translateY(-2px);box-shadow:0 0 42px -4px rgba(255,0,110,1)}

.hero-art{
  margin:0;
  position:relative;
  will-change:transform;
}
.hero-img{
  display:block;
  width:100%;
  border-radius:var(--r);
  box-shadow:0 0 0 1px rgba(255,0,110,.35),0 30px 70px -26px rgba(255,0,0,.75);
  filter:saturate(1.08) hue-rotate(-6deg);
}
.hero-void{
  aspect-ratio:4/3;
  border-radius:var(--r);
  background:
    repeating-linear-gradient(135deg,rgba(255,0,110,.24) 0 2px,transparent 2px 12px),
    radial-gradient(circle at 70% 30%,rgba(255,0,0,.42),transparent 60%),
    #101024;
  box-shadow:0 0 0 1px rgba(255,0,110,.35),0 30px 70px -26px rgba(255,0,0,.7);
}

/* ===== 内容与侧栏 ===== */
.ledger{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:clamp(22px,3vw,46px);
  align-items:start;
  padding:clamp(30px,5vw,66px) 0;
}

.prose{min-width:0}
.prose > section[id]{scroll-margin-top:132px;padding-bottom:clamp(24px,4vw,46px)}
.prose > section[id] + section[id]{
  border-top:1px dashed rgba(255,255,255,.14);
  padding-top:clamp(24px,4vw,46px);
}
.prose > section[id]:last-child{padding-bottom:0}

.prose h2{
  margin:0 0 10px;
  font-family:'EB Garamond',Georgia,'Songti SC',serif;
  font-weight:600;
  font-size:clamp(1.45rem,3vw,2rem);
  line-height:1.28;
  color:#fff;
  text-shadow:0 0 14px rgba(255,0,110,.55);
}
.prose h3{
  margin:1.4em 0 .5em;
  font-size:1.15rem;
  color:var(--cyan);
  letter-spacing:.02em;
}
.prose p{color:#dcd8ec}
.prose a{
  color:var(--rose);
  border-bottom:1px solid rgba(255,0,110,.5);
}
.prose a:hover{color:#fff;background:rgba(255,0,110,.18)}
.prose ul,.prose ol{padding-left:1.3em;color:#dcd8ec}
.prose li{margin:.4em 0}
.prose strong{color:#fff}
.prose blockquote{
  margin:1.4em 0;
  padding:14px 20px;
  border-left:3px solid var(--rose);
  background:rgba(255,0,110,.09);
  border-radius:0 var(--r) var(--r) 0;
}
.prose blockquote p:last-child{margin:0}
.prose img{border-radius:var(--r);margin:1em 0}
.prose code{
  background:rgba(255,255,255,.09);
  padding:.1em .4em;
  border-radius:6px;
  font-size:.94em;
}
.prose table{width:100%;border-collapse:collapse;margin:1.2em 0}
.prose th,.prose td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.13);
  font-size:16px;
}

.side{
  position:sticky;
  top:132px;
  padding:22px 20px;
  background:rgba(255,0,110,.1);
  border-radius:var(--r);
  box-shadow:inset 0 0 0 1px rgba(255,0,110,.16);
}
.side-h{
  margin:0 0 6px;
  font-family:'EB Garamond',Georgia,serif;
  font-size:1.32rem;
  color:#fff;
}
.side .subtitle{
  margin:0 0 14px;
  font-size:15px;
  line-height:1.7;
  color:var(--dim);
}
.side-list{margin:0}
.side-list dd{
  margin:0;
  border-top:1px solid rgba(255,255,255,.12);
}
.side-list dd a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--paper);
}
.side-list dd a:hover{color:var(--rose)}

/* ===== 页脚 ===== */
.base{
  display:flex;
  flex-wrap:wrap;
  gap:18px 28px;
  align-items:center;
  justify-content:space-between;
  padding:26px clamp(16px,4vw,38px) 34px;
  border-top:1px solid rgba(255,0,110,.26);
  background:rgba(26,26,46,.55);
}
.base section{margin:0}
.base-mail{flex:1 1 260px}
.base-nav{flex:1 1 auto}
.base-copy{flex:0 0 auto}
.base-copy p{margin:0;font-size:15px;color:var(--dim)}

.base-dl{
  display:flex;
  flex-wrap:wrap;
  gap:2px 16px;
  margin:0;
  align-items:center;
}
.base-dl dt{
  font-size:14px;
  letter-spacing:.16em;
  color:var(--rose);
}
.base-dl dd{margin:0}
.base-dl dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 4px;
  font-size:15px;
  color:var(--dim);
}
.base-dl dd a:hover{color:#fff}

.sub{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.sub input{
  flex:1 1 150px;
  min-height:44px;
  padding:8px 14px;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,0,110,.3);
  border-radius:14px;
}
.sub input:focus{outline:2px solid var(--rose);outline-offset:1px}
.sub button{
  min-height:44px;
  padding:8px 22px;
  font:inherit;
  font-size:16px;
  font-weight:700;
  color:#0a0a12;
  background:linear-gradient(96deg,var(--rose),var(--red));
  border:0;
  border-radius:14px;
  cursor:pointer;
}
.sub .ok{
  flex:1 1 100%;
  margin:0;
  font-size:14px;
  color:var(--cyan);
  min-height:1px;
}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-art{order:-1}
  .ledger{grid-template-columns:1fr}
  .side{position:static;order:2}
}

@media (max-width:860px){
  .burger{display:inline-flex}
  .hotline{display:none}
  .deck{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:6px 0 2px;
  }
  .deck.open{display:flex}
  .deck-home a{width:100%}
  .clus{width:100%}
  .clus dt{color:var(--rose);font-size:15px;letter-spacing:.16em}
  .clus dd a{min-height:46px}
  .hud{flex-wrap:wrap}
}

@media (max-width:620px){
  body{font-size:16px}
  .hero-title{font-size:clamp(1.9rem,8vw,2.6rem)}
  .lede{font-size:17px}
  .base{flex-direction:column;align-items:flex-start}
  .base-dl{gap:2px 12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-title{animation:none}
  .cta,.hero-art{transition:none}
  .hero-art{transform:none !important}
}

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