:root{
  --ink:#171f26;
  --panel-a:#202c37;
  --panel-b:#19222b;
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --text:#e3edf5;
  --muted:#a6b9c9;
  --line:#2b3946;
  --r:28px;
  --lift:14px 14px 34px rgba(0,0,0,.55), -12px -12px 30px rgba(200,224,244,.06);
  --lift-s:6px 6px 16px rgba(0,0,0,.5), -6px -6px 16px rgba(200,224,244,.06);
  --press:inset 4px 4px 11px rgba(0,0,0,.6), inset -4px -4px 11px rgba(200,224,244,.05);
  --stem:"Varela Round","Nunito Sans",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:"Nunito Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0}
h1,h2,h3{font-family:var(--stem);font-weight:400;line-height:1.25;margin:0}

.wrap{width:100%;max-width:1120px;margin:0 auto;padding-left:22px;padding-right:22px}

:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:8px}

/* 顶栏 */
.top{
  background:linear-gradient(160deg,#1c2731,#161f27);
  box-shadow:0 16px 34px rgba(0,0,0,.5);
}
.bar{
  max-width:1240px;
  margin:0 auto;
  padding:14px 20px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
}
.menu p{margin:0;display:flex;flex-wrap:wrap;gap:4px}
.menuA p{justify-content:flex-end}
.menuB p{justify-content:flex-start}
.menu a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:16px;
  font-size:16px;
  color:#c5d7e5;
  transition:color .15s,box-shadow .15s,transform .15s;
}
.menu a:hover{color:#ffffff;box-shadow:var(--lift-s)}
.menu a:active{transform:scale(.96);box-shadow:var(--press)}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:7px 16px;
  border-radius:22px;
  background:linear-gradient(145deg,#243240,#1a232c);
  box-shadow:var(--lift-s);
  font-family:var(--stem);
  font-size:18px;
  color:#edf5fb;
  white-space:nowrap;
}
.brand img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.brandSm{padding:5px 13px;font-size:17px}
.orb{
  width:24px;height:24px;border-radius:50%;
  background:radial-gradient(circle at 32% 28%,var(--pink),var(--blue) 58%,#6e8ea6);
  box-shadow:inset -2px -3px 7px rgba(0,0,0,.4);
}

/* 粘性锚点条 */
.stripWrap{
  position:sticky;top:0;z-index:50;
  background:rgba(22,30,38,.95);
  box-shadow:0 10px 26px rgba(0,0,0,.5);
}
.strip{padding:6px 18px;overflow-x:auto;overscroll-behavior-x:contain}
.strip p{margin:0;display:flex;align-items:center;gap:8px;min-height:52px}
.strip a{
  flex:0 0 auto;
  display:inline-flex;align-items:center;
  min-height:40px;padding:0 14px;
  border-radius:14px;
  font-size:16px;color:#bed2e1;white-space:nowrap;
  background:linear-gradient(145deg,#1f2b36,#18212a);
  box-shadow:3px 3px 9px rgba(0,0,0,.55),-3px -3px 9px rgba(200,224,244,.05);
  transition:transform .15s,box-shadow .15s,color .15s;
}
.strip a:hover{color:#ffffff}
.strip a:active{transform:scale(.96);box-shadow:var(--press)}

/* 首屏 */
.hero{
  max-width:1120px;
  margin:0 auto;
  padding:46px 22px 58px;
  min-height:70vh;
  display:flex;
  align-items:center;
  gap:clamp(20px,4vw,52px);
}
.heroArt{
  flex:0 0 auto;
  margin:0;
  width:clamp(140px,22vw,240px);
  aspect-ratio:1;
  border-radius:50%;
  display:grid;place-items:center;
  overflow:hidden;
  background:linear-gradient(150deg,#27343f,#1a242d);
  box-shadow:
    18px 18px 40px rgba(0,0,0,.6),
    -14px -14px 34px rgba(200,224,244,.08),
    inset -8px -10px 22px rgba(0,0,0,.4),
    inset 8px 10px 22px rgba(245,224,232,.07);
}
.heroArt img{width:100%;height:100%;object-fit:cover}
.heroArt:empty::after{
  content:"";
  width:62%;height:62%;border-radius:50%;
  background:radial-gradient(circle at 34% 30%,var(--pink),var(--blue) 58%,#6b8ba4);
  box-shadow:inset -7px -9px 20px rgba(0,0,0,.35),10px 12px 26px rgba(0,0,0,.45);
}
.heroBody{
  margin-left:auto;
  max-width:640px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:16px;
  text-align:right;
}
.chip{
  display:inline-flex;align-items:center;
  min-height:38px;padding:0 18px;
  border-radius:15px;
  font-size:16px;color:#111c26;
  background:linear-gradient(145deg,var(--pink),var(--blue));
  box-shadow:var(--lift-s);
}
.hero h1{font-size:clamp(30px,4.6vw,50px);color:#f1f8fd;letter-spacing:.01em}
.lede{color:var(--muted);max-width:34em;font-size:17px}
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:0 30px;border-radius:26px;
  font-family:var(--stem);font-size:17px;color:#101b24;
  background:linear-gradient(145deg,var(--blue),#a7c8e0);
  box-shadow:10px 10px 24px rgba(0,0,0,.55),-8px -8px 22px rgba(200,224,244,.12);
  transition:transform .15s,box-shadow .15s;
}
.pill:active{transform:scale(.97);box-shadow:inset 4px 4px 12px rgba(0,0,0,.35),inset -4px -4px 12px rgba(255,255,255,.5)}

/* 双栏：左侧导航栏 + 正文 */
.cols{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:34px;
  align-items:start;
  padding-top:24px;
  padding-bottom:70px;
}
.rail{
  position:sticky;top:76px;
  padding:20px;
  border-radius:var(--r);
  background:linear-gradient(150deg,var(--panel-a),var(--panel-b));
  box-shadow:var(--lift);
}
.kicker{display:block;font-size:16px;letter-spacing:.2em;color:#8db0c9}
.railTitle{font-size:20px;color:var(--pink);margin:2px 0 14px}
.railList{display:grid;gap:8px}
.railList a{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:4px 12px;
  border-radius:15px;font-size:16px;color:#cbdcea;
  background:linear-gradient(145deg,#1d2833,#182028);
  box-shadow:4px 4px 11px rgba(0,0,0,.5),-4px -4px 11px rgba(200,224,244,.05);
  transition:box-shadow .15s,transform .15s;
}
.railList a:hover{box-shadow:var(--lift-s)}
.railList a:active{transform:scale(.98);box-shadow:var(--press)}
.railList b{font-family:var(--stem);font-weight:400;font-size:16px;color:#7f9fb8}

/* 正文 */
.prose{min-width:0;overflow-wrap:break-word}
.prose section{
  padding:28px 30px 32px;
  margin-bottom:28px;
  border-radius:var(--r);
  background:linear-gradient(150deg,var(--panel-a),var(--panel-b));
  box-shadow:16px 16px 38px rgba(0,0,0,.5),-14px -14px 34px rgba(200,224,244,.05);
  scroll-margin-top:92px;
}
.prose section:last-child{margin-bottom:0}
.prose h2{font-size:clamp(22px,3vw,29px);color:#eaf3fa;margin-bottom:14px}
.prose h3{font-size:20px;color:#e2eef7;margin:24px 0 10px}
.prose p{margin:0 0 14px;color:#cfdde8}
.prose p:last-child{margin-bottom:0}
.prose small{display:block;font-size:16px;letter-spacing:.16em;color:#8fb0c9;margin-bottom:8px}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 14px}
.prose li{margin:0 0 8px}
.prose a{color:#bfe0f7;text-decoration:underline;text-underline-offset:3px}
.prose strong{color:#eff7fd}
.prose blockquote{
  margin:18px 0;padding:16px 20px;border-radius:20px;color:#dbe8f2;
  background:#1a232c;
  box-shadow:inset 6px 6px 14px rgba(0,0,0,.55),inset -6px -6px 14px rgba(200,224,244,.05);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:18px 0}
.prose figcaption{font-size:16px;color:#93aec3;margin-top:8px}
.prose img{margin:16px 0;border-radius:20px;box-shadow:var(--lift)}
.prose table{
  display:block;width:100%;overflow-x:auto;
  border-collapse:collapse;margin:14px 0;font-size:16px;
}
.prose th,.prose td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.prose hr{border:0;height:2px;background:var(--line);margin:22px 0;border-radius:2px}
.prose code{font-size:16px;background:#141c23;padding:2px 6px;border-radius:8px}

/* 页脚 */
.foot{
  max-width:1120px;
  margin:24px auto 0;
  padding:26px 22px 40px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:linear-gradient(180deg,#1a232c,#161e25);
  box-shadow:0 -14px 30px rgba(0,0,0,.28);
}
.footNav p{margin:0;display:flex;flex-wrap:wrap;gap:2px}
.footNav a{
  display:inline-flex;align-items:center;
  min-height:44px;padding:0 10px;
  border-radius:13px;font-size:16px;color:#a8bfd2;
  transition:color .15s,box-shadow .15s;
}
.footNav a:hover{color:#ffffff}
.footEnd{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.ghost{
  display:inline-flex;align-items:center;
  min-height:44px;padding:0 18px;border-radius:20px;
  font-size:16px;color:#cfe6f7;
  background:linear-gradient(145deg,#212e3a,#18212a);
  box-shadow:var(--lift-s);
  transition:transform .15s,box-shadow .15s;
}
.ghost:active{transform:scale(.97);box-shadow:var(--press)}
.copy{font-size:16px;color:#8ba2b5}

/* 入场 */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay:var(--d,0ms);
}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{transition:none}
}

@media (max-width:900px){
  .bar{grid-template-columns:1fr;justify-items:center;padding:12px 14px;gap:8px}
  .brand{order:-1}
  .menu p{justify-content:center}
  .menu a{padding:0 10px}
  .wrap{padding-left:16px;padding-right:16px}
  .strip{padding:6px 14px}
  .hero{
    flex-direction:column;
    align-items:stretch;
    min-height:0;
    padding:34px 18px 44px;
    gap:22px;
  }
  .heroArt{width:132px;align-self:flex-end;margin-right:6px}
  .heroBody{max-width:100%;gap:14px}
  .cols{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:8px;padding-bottom:48px}
  .rail{position:static;order:2}
  .prose section{padding:22px 18px 26px;margin-bottom:20px;scroll-margin-top:74px}
  .foot{flex-direction:column;align-items:center;text-align:center;gap:12px}
  .footEnd{align-items:center}
  .footNav p{justify-content:center}
}

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