:root{
  --bg:#000000;
  --bg2:#121212;
  --panel:#0a0c11;
  --line:#1d2230;
  --ink:#e9eef8;
  --dim:#a3adbe;
  --neon:#6ea8ff;
  --neon2:#12d6a4;
  --gold:#ffc46b;
  --r:4px;
  color-scheme:dark;
}

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

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

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Comic Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
}

h1,h2,h3,h4,.brand,.cta-brand,.foot-logo,.side-h,.menu-btn{
  font-family:"Baloo 2","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-weight:700;
  letter-spacing:.01em;
}

a{color:var(--neon);text-decoration:none}
a:hover{color:#9cc4ff}
img{max-width:100%;display:block}

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

.wrap{
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:0 18px;
}

/* 顶部细条 */
.strip{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:4px 14px;
  background:#05070c;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.strip-k{
  font-size:14px;
  letter-spacing:.34em;
  text-transform:none;
  color:#8fbaff;
  text-shadow:0 0 10px rgba(110,168,255,.45);
  white-space:nowrap;
}

/* 页头：品牌独占一行，菜单行在下 */
.head{
  background:linear-gradient(180deg,#06080d 0%,#000 100%);
  border-bottom:1px solid var(--line);
}
.head-brand{padding:16px 18px 4px}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  color:#fff;
  font-size:26px;
  line-height:1.15;
}
.brand-logo{height:30px;width:auto;border-radius:var(--r)}
.brand:hover{color:#fff;text-shadow:0 0 16px rgba(110,168,255,.6)}

.head-menu{padding:0 18px 10px}

.menu{display:block}
.menu-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0;
  font-size:17px;
  color:var(--neon);
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.menu-btn::-webkit-details-marker{display:none}
.menu-btn::before{
  content:"";
  width:18px;
  height:2px;
  background:currentColor;
  box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor;
  transition:box-shadow .2s ease;
}
.menu-btn:hover{color:#9cc4ff}

.menu[open]{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  flex-direction:column;
  padding:18px 18px 40px;
  overflow-y:auto;
  background:rgba(0,0,0,.97);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
  border-bottom:1px solid var(--line);
}
.menu[open] .menu-btn{
  align-self:flex-start;
  border-bottom:1px solid var(--line);
  width:100%;
  color:var(--gold);
}
.menu[open] .menu-btn::before{box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor;transform:rotate(0)}

.menu-list{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:grid;
  gap:0;
  max-width:640px;
  width:100%;
}
.menu-list li{opacity:0;animation:rise .3s ease forwards}
.menu-list li:nth-child(1){animation-delay:.02s}
.menu-list li:nth-child(2){animation-delay:.05s}
.menu-list li:nth-child(3){animation-delay:.08s}
.menu-list li:nth-child(4){animation-delay:.11s}
.menu-list li:nth-child(5){animation-delay:.14s}
.menu-list li:nth-child(6){animation-delay:.17s}
.menu-list li:nth-child(7){animation-delay:.2s}

.menu-list a{
  display:block;
  padding:15px 4px;
  font-size:19px;
  color:#eef3fb;
  border-bottom:2px solid transparent;
  transition:border-color .18s ease,color .18s ease,padding-left .18s ease;
}
.menu-list a:hover,.menu-list a:focus-visible{
  color:var(--neon);
  border-bottom-color:var(--neon);
  padding-left:10px;
}

@keyframes rise{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

/* 首屏 */
.hero{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:20px;
  min-height:70vh;
  padding:30px 0 0;
}
.hero-txt{
  max-width:62ch;
  border-left:3px solid var(--neon);
  padding-left:16px;
}
.hero-txt h1{
  margin:0 0 12px;
  font-size:clamp(29px,7.4vw,54px);
  line-height:1.14;
  color:#fff;
  text-shadow:0 0 18px rgba(110,168,255,.28);
}
.lede{
  margin:0;
  color:var(--dim);
  font-size:17px;
  line-height:1.78;
}
.hero-fig{
  margin:0;
  min-height:170px;
  max-height:40vh;
  overflow:hidden;
  border-radius:var(--r);
  border-bottom:2px solid var(--neon);
  background:#05070c;
}
.hero-fig img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.86);
}
.hero-fig-empty{background:linear-gradient(120deg,#05070c,#0d1220 60%,#05070c)}

/* 主体两栏 */
.cols{
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:34px;
  align-items:start;
  padding:44px 0 10px;
}

.prose{min-width:0}
.prose article[id]{scroll-margin-top:96px}
.prose > article{
  background:var(--panel);
  border:1px solid #141822;
  border-bottom:2px solid var(--line);
  border-radius:var(--r);
  padding:22px 20px;
  margin:0 0 20px;
  transition:border-bottom-color .22s ease,background .22s ease,transform .22s ease;
}
.prose > article:hover{
  border-bottom-color:rgba(110,168,255,.6);
  background:#0c0f16;
  transform:translateY(-2px);
}
.prose > article:target{border-bottom-color:var(--neon)}

.prose h2{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.32;
  color:#fff;
}
.prose h3{
  margin:20px 0 6px;
  font-size:19px;
  color:#dde6f6;
}
.prose p{margin:0 0 14px;color:#c7d1e2;line-height:1.86}
.prose p:last-child{margin-bottom:0}
.prose a{color:var(--neon);text-decoration:underline;text-underline-offset:3px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:1.25em;color:#c7d1e2}
.prose li{margin:6px 0;line-height:1.8}
.prose img{border-radius:var(--r);margin:14px 0}
.prose blockquote{
  margin:14px 0;
  padding:8px 0 8px 14px;
  border-left:3px solid var(--gold);
  color:var(--dim);
  background:#0e1118;
}
.prose strong{color:#fff}
.prose hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.prose table{width:100%;border-collapse:collapse;font-size:16px;margin:14px 0}
.prose th,.prose td{border:1px solid #1a1f2b;padding:9px 10px;text-align:left}
.prose th{background:#0f131b;color:#fff}
.prose code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:15px;
  background:#11151d;
  border:1px solid #1b2130;
  border-radius:3px;
  padding:1px 5px;
}

/* 侧栏 */
.side{
  position:sticky;
  top:16px;
  background:var(--bg2);
  border:1px solid var(--line);
  border-left:3px solid var(--neon);
  border-radius:var(--r);
  padding:16px 14px;
}
.side-h{margin:0 0 8px;font-size:17px;color:#fff;line-height:1.4}
.side hr{border:0;border-top:1px solid var(--line);margin:0 0 10px}
.side-nav menu{list-style:none;margin:0;padding:0}
.side-nav a{
  display:block;
  min-height:42px;
  padding:9px 2px;
  font-size:16px;
  color:var(--dim);
  border-bottom:1px solid #191d27;
  transition:color .16s ease,padding-left .16s ease;
}
.side-nav li:last-child a{border-bottom:0}
.side-nav a:hover,.side-nav a.on{color:var(--neon);padding-left:6px}

/* 页脚 */
.foot{
  margin-top:56px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,#06080d 0%,#000 70%);
}
.foot-cta{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:20px;
  align-items:center;
  padding:34px 18px;
  border-bottom:1px solid var(--line);
}
.cta-col{min-width:0}
.cta-mark img{height:42px;width:auto;border-radius:var(--r)}
.cta-dot{
  display:block;
  width:14px;height:14px;
  border-radius:50%;
  background:var(--neon);
  box-shadow:0 0 14px rgba(110,168,255,.8);
}
.cta-brand{
  margin:0;
  font-size:clamp(23px,5vw,40px);
  line-height:1.15;
  color:#fff;
  text-shadow:0 0 16px rgba(110,168,255,.25);
}
.cta-host{
  margin:0;
  font-size:16px;
  letter-spacing:.06em;
  color:var(--dim);
  overflow-wrap:anywhere;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border:1px solid var(--neon);
  border-radius:var(--r);
  color:var(--neon);
  font-weight:700;
  font-family:"Baloo 2","PingFang SC",system-ui,sans-serif;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
}
.cta-btn:hover{
  background:var(--neon);
  color:#04070d;
  box-shadow:0 0 20px rgba(110,168,255,.45);
}

.foot-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 22px;
  padding:14px 18px 30px;
  max-width:1140px;
  margin:0 auto;
}
.foot-logo{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:#fff;
  font-size:18px;
}
.foot-nav menu{
  display:flex;
  flex-wrap:wrap;
  gap:0 14px;
  list-style:none;
  margin:0;
  padding:0;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  font-size:16px;
  color:var(--dim);
}
.foot-nav a:hover{color:var(--neon)}
.copy{
  margin:0 0 0 auto;
  color:#78828f;
  font-size:15px;
  line-height:1.6;
}

/* 断点 */
@media (max-width:900px){
  .cols{grid-template-columns:1fr;gap:26px;padding-top:34px}
  .side{position:static;order:2}
  .foot-cta{grid-template-columns:auto minmax(0,1fr);gap:14px 16px;padding:26px 18px}
  .cta-col:nth-child(3),.cta-col:nth-child(4){grid-column:1 / -1}
  .cta-btn{width:100%}
  .copy{margin-left:0}
}

@media (max-width:520px){
  body{font-size:17px}
  .hero{min-height:70vh;padding-top:24px}
  .hero-txt{padding-left:13px}
  .hero-fig{max-height:34vh;min-height:150px}
  .prose > article{padding:18px 15px}
  .brand{font-size:23px}
  .foot-bar{flex-direction:column;align-items:flex-start;gap:4px}
  .foot-nav menu{gap:0 16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
  .prose > article:hover{transform:none}
}

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