:root{
  --bg:#000000;
  --surf:#0a0a0a;
  --surf2:#121212;
  --line:#1d1d1d;
  --ink:#ededed;
  --muted:#9b9b9b;
  --accent:#ffd166;
  --neon:#6ee7b7;
  --radius:4px;
  --shadow:0 12px 30px rgba(0,0,0,.78);
}
*,*::before,*::after{box-sizing:border-box}
html{
  color-scheme:dark;
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  background:var(--bg);
}
body{
  margin:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  font-family:"Comic Neue","Baloo 2",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:none}
a:focus-visible,
button:focus-visible{
  outline:2px solid var(--neon);
  outline-offset:3px;
  border-radius:3px;
}
h1,h2,h3,h4{
  font-family:"Baloo 2","Comic Neue",-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:600;
  line-height:1.28;
  color:#fff;
  letter-spacing:.005em;
}

/* 顶部细条 */
.strip{
  background:linear-gradient(90deg,#0c0c0c,#000 60%);
  border-bottom:1px solid var(--line);
  padding:9px 18px;
  font-size:15px;
  letter-spacing:.1em;
  color:#b8b8b8;
}
.strip-txt{display:inline-flex;align-items:center;gap:8px}
.strip-txt::before{
  content:"";
  width:7px;height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 10px var(--accent);
}

/* 顶栏 */
.top{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 14px;
  background:rgba(0,0,0,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.mark{
  flex:none;
  width:44px;height:44px;
  display:grid;place-items:center;
  border:1px solid #2b2b2b;
  border-radius:var(--radius);
  background:#0d0d0d;
  color:var(--accent);
  font-family:"Baloo 2",sans-serif;
  font-weight:700;
  font-size:19px;
  box-shadow:0 0 14px rgba(255,209,102,.14);
  transition:transform .22s ease,border-color .22s ease;
}
.mark img{display:block;border-radius:3px}
.mark:hover{transform:translateY(-2px);border-color:var(--accent)}
.top-nav{
  display:flex;
  align-items:center;
  gap:2px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:2px 0;
}
.top-nav::-webkit-scrollbar{display:none}
.top-nav a{
  flex:none;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  font-size:16px;
  color:#cbcbcb;
  border-radius:var(--radius);
  white-space:nowrap;
  transition:color .2s ease,background .2s ease,transform .2s ease;
}
.top-nav a:hover{
  color:#000;
  background:var(--accent);
  transform:translateY(-1px);
}

/* 布局 */
.shell{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px 48px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 262px;
  gap:30px;
  align-items:start;
}
.doc{min-width:0}

/* 首屏 */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:20px;
  padding:42px 0 62px;
  text-align:left;
}
.hero h1{
  margin:0;
  font-size:clamp(30px,5.6vw,50px);
  line-height:1.2;
  max-width:20ch;
  text-shadow:0 0 22px rgba(255,209,102,.2);
}
.cta{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:11px 24px;
  border-radius:var(--radius);
  background:var(--accent);
  color:#000;
  font-weight:700;
  font-size:16px;
  box-shadow:0 0 20px rgba(255,209,102,.28);
  transition:transform .2s ease,box-shadow .2s ease;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 0 28px rgba(255,209,102,.45)}
.hero-fig{
  margin:4px 0 0;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:var(--surf2);
}
.hero-img{
  display:block;
  width:100%;
  max-height:46vh;
  object-fit:cover;
  filter:brightness(.9);
}
.slash{
  position:absolute;
  left:0;right:0;bottom:0;
  height:6px;
  transform:skewY(-1.1deg);
  background:linear-gradient(90deg,transparent,var(--accent) 22%,var(--neon) 78%,transparent);
  opacity:.72;
  pointer-events:none;
}

/* 正文 */
.body-wrap{display:block}
.body-wrap > section,
article section[id]{
  display:block;
  background:var(--surf);
  border:1px solid #171717;
  border-radius:var(--radius);
  box-shadow:0 8px 26px rgba(0,0,0,.6);
  padding:26px 22px;
  margin-bottom:20px;
  scroll-margin-top:88px;
}
article section[id] > p:last-child,
article section[id] > ul:last-child,
article section[id] > ol:last-child{margin-bottom:0}
h2{
  font-size:clamp(22px,3.6vw,27px);
  margin:0 0 12px;
}
h3{
  font-size:19px;
  margin:24px 0 8px;
  color:#f3f3f3;
}
hr{
  border:0;
  height:3px;
  width:46px;
  margin:0 0 18px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--accent),rgba(255,209,102,0));
}
p{margin:0 0 14px;color:#d7d7d7}
.body-wrap p:last-child{margin-bottom:0}
ul,ol{padding-left:1.25em;margin:0 0 14px}
li{margin-bottom:8px}
li::marker{color:var(--accent)}
strong{color:#fff}
blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:3px solid var(--neon);
  background:#0e0e0e;
  border-radius:0 var(--radius) var(--radius) 0;
  color:#cfcfcf;
}
figure{margin:0 0 16px}
figure img{border-radius:var(--radius);box-shadow:var(--shadow)}
figcaption{font-size:15px;color:var(--muted);padding-top:8px}
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.92em;
  background:#161616;
  padding:2px 6px;
  border-radius:3px;
}
table{width:100%;border-collapse:collapse;margin-bottom:16px;font-size:16px}
th,td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}
th{color:#fff}

/* 侧栏 */
.side{
  position:sticky;
  top:84px;
  background:var(--surf);
  border:1px solid #171717;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 16px;
}
.side h2{font-size:17px;margin:0 0 10px}
.side hr{margin-bottom:12px}
.side ul{list-style:none;margin:0;padding:0}
.side li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 6px;
  font-size:16px;
  color:#c5c5c5;
  border-bottom:1px solid #151515;
  transition:color .2s ease,padding-left .2s ease;
}
.side li:last-child a{border-bottom:0}
.side li a:hover{color:var(--accent);padding-left:11px}

/* 页脚 */
.foot{
  max-width:1120px;
  margin:0 auto;
  padding:30px 16px 44px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  font-size:16px;
}
.foot > *{flex:1 1 170px;min-width:0}
.foot-brand a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  color:#f0f0f0;
  font-weight:700;
}
.foot-brand img{border-radius:3px}
.foot-nav dl{
  margin:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 14px;
}
.foot-nav dt{
  grid-column:1 / -1;
  font-size:15px;
  color:#7f7f7f;
  letter-spacing:.08em;
}
.foot-nav dd{margin:0}
.foot-nav dd a{
  display:flex;
  align-items:center;
  min-height:44px;
  color:#c4c4c4;
  transition:color .2s ease;
}
.foot-nav dd a:hover{color:var(--accent)}
.foot-note{align-self:center}
.foot-note a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  border:1px solid #262626;
  border-radius:var(--radius);
  color:#cfcfcf;
  transition:border-color .2s ease,color .2s ease;
}
.foot-note a:hover{border-color:var(--accent);color:var(--accent)}
.foot-copy{
  align-self:center;
  text-align:center;
  color:#8c8c8c;
  font-size:16px;
}

/* 动效 */
.reveal{opacity:0;transform:translateY(16px)}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .62s ease,transform .62s ease;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
}

/* 断点 */
@media (max-width:920px){
  .shell{grid-template-columns:minmax(0,1fr);gap:24px}
  .side{position:static}
}
@media (max-width:640px){
  body{font-size:17px}
  .strip{font-size:15px;padding:8px 14px}
  .top{padding:8px 10px}
  .top-nav a{padding:10px 11px;font-size:16px}
  .hero{min-height:62vh;padding:30px 0 48px;gap:16px}
  .hero h1{max-width:none}
  .shell{padding:0 12px 36px}
  article section[id]{padding:20px 15px;margin-bottom:16px;scroll-margin-top:78px}
  .foot{padding:26px 14px 38px;gap:18px}
  .foot > *{flex:1 1 100%}
  .foot-copy{text-align:left}
  .side{padding:16px 14px}
}

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