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

:root{
  --ink:#261717;
  --panel:#33201f;
  --panel-b:#3d2523;
  --red:#ff0000;
  --pink:#ff1493;
  --paper:#fff6f4;
  --mute:rgba(255,246,244,.74);
  --line:rgba(255,246,244,.14);
  --r:18px;
  --mono:"Space Grotesk","Archivo",ui-monospace,monospace;
}

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

html{
  background:var(--ink);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  color:var(--paper);
  font-family:"Archivo","Space Grotesk","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

/* ---------- 极光底雾 ---------- */
.sky{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}
.sky span{
  position:absolute;
  display:block;
  border-radius:50%;
  filter:blur(72px) saturate(1.35);
  opacity:.6;
  mix-blend-mode:screen;
  will-change:transform;
}
.sky .g1{
  width:72vmax;height:72vmax;left:-22vmax;top:-28vmax;
  background:radial-gradient(circle at 35% 35%,#ff1493 0%,rgba(255,20,147,0) 64%);
  animation:drift1 12s ease-in-out infinite alternate;
}
.sky .g2{
  width:62vmax;height:62vmax;right:-20vmax;top:6vmax;
  background:radial-gradient(circle at 60% 40%,#ff0000 0%,rgba(255,0,0,0) 62%);
  animation:drift2 10s ease-in-out infinite alternate;
}
.sky .g3{
  width:54vmax;height:54vmax;left:22vmax;bottom:-26vmax;
  background:radial-gradient(circle at 50% 50%,#ff4d7e 0%,rgba(255,77,126,0) 60%);
  animation:drift3 11s ease-in-out infinite alternate;
}
.sky::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(255,246,244,.16) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.45;
}
@keyframes drift1{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(6vmax,4vmax,0) scale(1.12)}
}
@keyframes drift2{
  from{transform:translate3d(0,0,0) scale(1.08)}
  to{transform:translate3d(-5vmax,6vmax,0) scale(.94)}
}
@keyframes drift3{
  from{transform:translate3d(0,0,0) scale(.95)}
  to{transform:translate3d(4vmax,-5vmax,0) scale(1.1)}
}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px clamp(14px,4vw,40px);
  background:linear-gradient(180deg,rgba(38,23,23,.94),rgba(38,23,23,.62));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:15px;
  background:linear-gradient(135deg,var(--red),var(--pink));
  text-decoration:none;
  box-shadow:0 8px 22px rgba(255,0,64,.28);
  transition:transform .25s ease,box-shadow .25s ease;
}
.badge:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 12px 26px rgba(255,20,147,.4)}
.badge:focus-visible{outline:2px solid var(--paper);outline-offset:3px}
.badge .mark{width:24px;height:24px;display:block;border-radius:6px}

.beacon{
  width:14px;height:14px;
  border-radius:50%;
  background:var(--paper);
  box-shadow:0 0 0 5px rgba(255,246,244,.28);
}

.dock{margin-left:auto}
.dock ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:2px;
  margin:0;
  padding:0;
}
.dock li{animation:lift .5s both}
.dock li:nth-child(1){animation-delay:.02s}
.dock li:nth-child(2){animation-delay:.06s}
.dock li:nth-child(3){animation-delay:.10s}
.dock li:nth-child(4){animation-delay:.14s}
.dock li:nth-child(5){animation-delay:.18s}
.dock li:nth-child(6){animation-delay:.22s}
.dock li:nth-child(7){animation-delay:.26s}
.dock a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 13px;
  border-radius:999px;
  color:var(--paper);
  font-size:16px;
  text-decoration:none;
  transition:background .25s ease,transform .2s ease,color .25s ease;
}
.dock a:hover{
  background:rgba(255,246,244,.14);
  transform:translateY(-1px);
}
.dock a:focus-visible{outline:2px solid var(--pink);outline-offset:2px}

.switch{
  position:absolute;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
}
.switch-label{display:none}

/* ---------- 骨架 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(16px,3vw,30px) clamp(16px,4vw,40px) 64px;
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:clamp(18px,3vw,42px);
  align-items:start;
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  display:flex;
  align-items:center;
  gap:clamp(14px,4vw,38px);
  min-height:70vh;
  padding:clamp(20px,4vw,44px) clamp(16px,3vw,34px);
  margin-bottom:clamp(18px,3vw,40px);
  border-radius:calc(var(--r) + 10px);
  overflow:hidden;
  background-image:radial-gradient(rgba(255,246,244,.14) 1.2px,transparent 1.2px);
  background-size:18px 18px;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(120% 90% at 12% 100%,rgba(255,20,147,.34),rgba(38,23,23,0) 62%);
  pointer-events:none;
}
.orb{
  flex:0 0 auto;
  width:clamp(58px,13vw,96px);
  height:auto;
  position:relative;
  animation:breathe 9s ease-in-out infinite alternate;
  filter:drop-shadow(0 12px 26px rgba(255,0,60,.34));
}
@keyframes breathe{
  from{transform:translateY(0) rotate(-3deg)}
  to{transform:translateY(-12px) rotate(4deg)}
}
.hero h1{
  position:relative;
  min-width:0;
  margin:0;
  font-size:clamp(2.3rem,7.4vw,4.6rem);
  line-height:1.06;
  letter-spacing:-.025em;
  font-weight:700;
  background:linear-gradient(104deg,#fff6f4 12%,#ffc7de 62%,var(--pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:92px;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:20px 18px;
  border-radius:var(--r);
  background:var(--panel);
  animation:lift .55s both;
}
.rail small{
  display:block;
  font-size:15px;
  font-weight:600;
  letter-spacing:.24em;
  color:var(--pink);
}
.rail h2{
  margin:0 0 8px;
  font-size:19px;
  line-height:1.35;
  font-weight:700;
}
.rail ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  counter-reset:rail;
}
.rail li{counter-increment:rail}
.rail a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:4px 9px;
  border-radius:12px;
  color:var(--mute);
  font-size:16px;
  text-decoration:none;
  transition:background .2s ease,color .2s ease,padding-left .2s ease;
}
.rail a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.06em;
  color:var(--pink);
  opacity:.85;
}
.rail a:hover{
  background:rgba(255,246,244,.12);
  color:var(--paper);
  padding-left:14px;
}
.rail a:focus-visible{outline:2px solid var(--pink);outline-offset:2px}

.totop{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:12px;
  background:linear-gradient(120deg,var(--red),var(--pink));
  color:var(--paper);
  font-size:16px;
  text-decoration:none;
  transition:filter .2s ease,transform .2s ease;
}
.totop:hover{filter:saturate(1.25) brightness(1.08);transform:translateY(-1px)}
.totop:focus-visible{outline:2px solid var(--paper);outline-offset:2px}

/* ---------- 正文 ---------- */
.stage{min-width:0}

.doc{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
.doc > div{
  scroll-margin-top:96px;
  padding:clamp(18px,3vw,34px);
  border-radius:var(--r);
  background:var(--panel);
  animation:lift .55s both;
}
.doc > div:nth-child(even){background:var(--panel-b)}
.doc > div:nth-child(1){animation-delay:.04s}
.doc > div:nth-child(2){animation-delay:.08s}
.doc > div:nth-child(3){animation-delay:.12s}
.doc > div:nth-child(4){animation-delay:.16s}
.doc > div:nth-child(5){animation-delay:.2s}
.doc > div:nth-child(6){animation-delay:.24s}

@keyframes lift{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}

.doc small{
  display:block;
  margin:0 0 6px;
  font-size:15px;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--pink);
}
.doc h2{
  margin:0 0 .55em;
  font-size:clamp(1.4rem,2.7vw,1.95rem);
  line-height:1.24;
  letter-spacing:-.015em;
  font-weight:700;
}
.doc h3{
  margin:1.2em 0 .4em;
  font-size:1.16rem;
  line-height:1.35;
  font-weight:600;
}
.doc p{
  margin:0 0 1em;
  color:rgba(255,246,244,.88);
}
.doc p:last-child,
.doc ul:last-child,
.doc ol:last-child{margin-bottom:0}
.doc ul,
.doc ol{
  margin:0 0 1em;
  padding-left:1.25em;
}
.doc li{margin:.32em 0;color:rgba(255,246,244,.88)}
.doc strong{color:#fff}
.doc a{
  color:#ffd0e0;
  text-decoration:underline;
  text-underline-offset:3px;
}
.doc a:hover{color:#fff}
.doc blockquote{
  margin:0 0 1em;
  padding:2px 0 2px 16px;
  border-left:3px solid var(--pink);
  color:var(--mute);
}
.doc img{max-width:100%;height:auto;border-radius:14px}
.doc table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
}
.doc th,
.doc td{
  padding:8px 10px;
  text-align:left;
  border-bottom:1px solid var(--line);
}

/* ---------- 页脚 ---------- */
footer{
  margin-top:36px;
  border-top:1px solid var(--line);
  background:rgba(24,14,14,.72);
}
.fbar{
  max-width:1180px;
  margin:0 auto;
  padding:16px clamp(16px,4vw,40px);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px 20px;
}
.fa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--red),var(--pink));
  text-decoration:none;
}
.fa .mark{width:22px;height:22px;display:block;border-radius:5px}
.fa:focus-visible{outline:2px solid var(--paper);outline-offset:3px}

footer nav ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
  padding:0;
}
footer nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 11px;
  border-radius:999px;
  color:var(--mute);
  font-size:16px;
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
footer nav a:hover{background:rgba(255,246,244,.12);color:var(--paper)}
footer nav a:focus-visible{outline:2px solid var(--pink);outline-offset:2px}

.copy{
  margin:0;
  font-size:15px;
  color:rgba(255,246,244,.6);
  white-space:nowrap;
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .wrap{
    grid-template-columns:minmax(0,1fr);
    padding-top:14px;
  }
  .hero{
    min-height:62vh;
    border-radius:var(--r);
  }
  .rail{
    position:static;
    top:auto;
  }
  .rail ol{flex-direction:row;flex-wrap:wrap}
  .rail li{flex:1 1 auto}
  .rail a{padding:6px 10px}

  .switch-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
    min-height:46px;
    padding:0 20px;
    border-radius:15px;
    background:rgba(255,246,244,.13);
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    user-select:none;
    transition:background .2s ease,color .2s ease;
  }
  .switch:checked ~ .switch-label{
    background:linear-gradient(135deg,var(--red),var(--pink));
  }
  .switch:focus-visible ~ .switch-label{
    outline:2px solid var(--pink);
    outline-offset:3px;
  }
  .dock{
    margin-left:0;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:none;
    padding:10px 14px 18px;
    background:#2c1a1a;
    border-bottom:1px solid var(--line);
    box-shadow:0 24px 48px rgba(0,0,0,.5);
    max-height:calc(100vh - 70px);
    overflow-y:auto;
  }
  .dock ol{flex-direction:column;flex-wrap:nowrap;justify-content:flex-start}
  .dock a{
    width:100%;
    min-height:50px;
    border-radius:12px;
    font-size:17px;
    padding:0 14px;
  }
  .switch:checked ~ .dock{display:block}

  .fbar{grid-template-columns:minmax(0,1fr);justify-items:start}
  .copy{white-space:normal}
}

@media (max-width:560px){
  body{font-size:16.5px}
  .hero{padding:22px 16px;gap:12px}
  .doc > div{padding:18px 16px}
  .dock a{font-size:16.5px}
}

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

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