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

:root{
  --acid:#00ff80;
  --blue:#0000ff;
  --paper:#f0f0f0;
  --dim:#8f8f8f;
  --edge:clamp(16px,4vw,56px);
}

*,*::before,*::after{box-sizing:border-box;border-radius:0 !important;}

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

body{
  margin:0;
  overflow-x:clip;
  background:#000;
  color:var(--paper);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC",sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
}

img{display:block;max-width:100%;height:auto;border:3px solid var(--acid);}
p{margin:0 0 1em;}

a{
  color:var(--acid);
  text-decoration:none;
  border-bottom:2px solid var(--acid);
}
a:hover,a:focus-visible{background:var(--acid);color:#000;border-bottom-color:#000;outline:none;}
a:focus-visible{outline:3px solid var(--blue);outline-offset:2px;}

/* 顶部细条 */
.strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--acid);
  color:#000;
  border-bottom:4px solid #000;
  font-size:12px;
  font-weight:600;
  letter-spacing:.22em;
  padding:7px 12px;
  overflow:hidden;
  white-space:nowrap;
}
.strip .dot{display:inline-block;width:7px;height:7px;background:#000;}

/* 页头：品牌居中，菜单分列两侧 */
.hdr{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:6px;
  padding:10px var(--edge);
  background:#000;
  border-bottom:4px solid var(--acid);
  position:relative;
  z-index:30;
}
.brand{
  font-size:clamp(18px,2vw,26px);
  font-weight:700;
  letter-spacing:.16em;
  color:var(--paper);
  border-bottom:0;
  padding:8px 12px;
  white-space:nowrap;
}
.brand:hover{background:var(--blue);color:#fff;}
.hleft,.hright{display:flex;align-items:center;gap:2px;flex-wrap:wrap;}
.hright{justify-content:flex-end;}

.hlink{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  font-size:16px;
  font-weight:600;
  color:var(--paper);
  border-bottom:0;
}
.hlink:hover{background:var(--acid);color:#000;}

.gd{position:relative;}
.gd-t{border-bottom:3px solid var(--blue);}
.gd-m{
  display:none;
  position:absolute;
  right:0;
  top:100%;
  min-width:200px;
  flex-direction:column;
  background:#000;
  border:3px solid var(--acid);
  z-index:40;
}
.gd-m .hlink{border-bottom:2px solid #1d1d1d;width:100%;}
.gd:hover .gd-m,.gd:focus-within .gd-m{display:flex;}

.burger{
  display:none;
  background:var(--acid);
  color:#000;
  border:0;
  font:inherit;
  font-weight:700;
  letter-spacing:.12em;
  padding:12px 16px;
  min-height:44px;
  cursor:pointer;
}
.burger:hover{background:var(--blue);color:#fff;}

/* 二级粘性锚点条 */
.anchors{
  position:sticky;
  top:0;
  z-index:25;
  background:var(--blue);
  border-bottom:4px solid var(--acid);
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.anchors nav{display:flex;width:max-content;min-width:100%;padding:0 var(--edge);}
.anc{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:12px 16px;
  font-size:16px;
  font-weight:600;
  color:#fff;
  border-bottom:0;
  border-right:2px solid #2f2fff;
  white-space:nowrap;
}
.anc:hover{background:var(--acid);color:#000;}

/* 首屏 */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:48px var(--edge) 120px;
  overflow:hidden;
  border-bottom:4px solid var(--acid);
}
.hero-h1{
  position:relative;
  z-index:1;
  margin:0;
  max-width:22ch;
  font-size:clamp(2.4rem,10vw,8rem);
  line-height:.94;
  font-weight:700;
  letter-spacing:-.03em;
  color:var(--paper);
  word-break:break-word;
}
.slab{
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-46px;
  height:130px;
  background:var(--acid);
  transform:skewY(-5deg);
  z-index:0;
}

/* 主体：aside 在左 */
main{display:block;}
.wrap{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  max-width:1280px;
  margin:0 auto;
  padding:0 var(--edge);
}

.rail{
  position:sticky;
  top:56px;
  align-self:start;
  padding:32px 20px 32px 0;
  border-right:4px solid var(--blue);
}
.knot{
  width:72px;
  height:72px;
  border:4px solid var(--acid);
  position:relative;
  margin-bottom:18px;
}
.knot::before{content:"";position:absolute;inset:14px -8px;border:3px solid var(--blue);transform:rotate(45deg);}
.knot::after{content:"";position:absolute;left:22px;right:22px;top:22px;bottom:22px;background:var(--acid);}
.rail-mark{
  margin:0 0 12px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.2em;
  color:var(--acid);
}
.rail-nav{display:flex;flex-direction:column;border-top:3px solid var(--acid);}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 0;
  font-size:16px;
  color:var(--paper);
  border-bottom:2px solid #1d1d1d;
}
.rail-nav a:hover{background:var(--acid);color:#000;padding-left:8px;}

.col{padding:36px 0 60px clamp(16px,3vw,48px);min-width:0;}
.col-h2{
  margin:0;
  font-size:clamp(1.7rem,4vw,2.8rem);
  line-height:1.04;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--paper);
}
.subtitle{
  margin:10px 0 30px;
  max-width:62ch;
  padding-left:14px;
  border-left:7px solid var(--blue);
  color:var(--acid);
  font-size:17px;
}

/* 正文 */
.body{border-top:4px solid var(--acid);padding-top:10px;}
.body section{padding-block:26px;scroll-margin-top:76px;}
.body section + section{border-top:3px solid var(--blue);}
.body :is(h2,h3,h4){line-height:1.2;font-weight:700;letter-spacing:-.01em;}
.body h2{
  margin:34px 0 12px;
  padding-top:16px;
  border-top:3px solid var(--blue);
  font-size:clamp(1.35rem,3vw,2rem);
}
.body h3{margin:26px 0 10px;font-size:1.18rem;color:var(--acid);}
.body h4{margin:20px 0 8px;font-size:1.02rem;color:var(--acid);}
.body :is(p,ul,ol,blockquote,table){max-width:68ch;}
.body p{margin:0 0 1.1em;}
.body ul,.body ol{margin:0 0 1.2em;padding-left:1.4em;}
.body li{margin:0 0 .5em;}
.body li::marker{color:var(--acid);font-weight:700;}
.body strong{color:var(--acid);}
.body blockquote{
  margin:24px 0;
  padding:16px 20px;
  background:var(--blue);
  color:#fff;
  border:0;
}
.body blockquote p:last-child{margin:0;}
.body img{margin:24px 0;}
.body figure{margin:24px 0;}
.body figcaption{font-size:15px;color:var(--dim);margin-top:8px;}
.body code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.92em;
  background:#121212;
  border:2px solid #333;
  padding:1px 5px;
}
.body pre{
  overflow-x:auto;
  background:#121212;
  border:3px solid #333;
  padding:14px 16px;
}
.body pre code{border:0;background:none;padding:0;}
.body table{width:100%;border-collapse:collapse;margin:0 0 1.2em;}
.body th,.body td{border:2px solid #2c2c2c;padding:8px 10px;text-align:left;}
.body th{background:#111;color:var(--acid);}
.body time{color:var(--dim);font-size:15px;font-variant-numeric:tabular-nums;}
.body hr{border:0;border-top:3px solid var(--blue);margin:28px 0;}

/* 滚动显现 */
body.js .body section{opacity:0;transform:translateY(10px);transition:opacity .18s linear,transform .18s linear;}
body.js .body section.is-in{opacity:1;transform:none;}

/* 页脚 */
.foot{border-top:6px solid var(--acid);background:#000;}
.f-mark{padding:clamp(20px,5vw,48px) var(--edge) 0;overflow:hidden;}
.giant{
  margin:0;
  font-size:clamp(2.8rem,15vw,11rem);
  line-height:.82;
  font-weight:700;
  letter-spacing:-.04em;
  color:var(--acid);
  white-space:nowrap;
}
.f-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:4px solid var(--acid);
  margin-top:clamp(16px,4vw,40px);
}
.f-col{padding:24px 20px;border-right:3px solid #1d1d1d;}
.f-col:last-child{border-right:0;}
.f-col dl{margin:0;}
.f-col dt{
  display:inline-block;
  margin-bottom:10px;
  padding:2px 10px;
  background:var(--blue);
  color:#fff;
  font-size:14px;
  letter-spacing:.2em;
}
.f-col dd{margin:0;}
.f-col dd a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 0;
  font-size:16px;
  color:var(--paper);
  border-bottom:2px solid #1a1a1a;
}
.f-col dd a:hover{background:var(--acid);color:#000;padding-left:6px;}
.f-kw{
  margin:0;
  font-size:clamp(1.1rem,2.4vw,1.5rem);
  font-weight:700;
  letter-spacing:.12em;
  color:var(--acid);
}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:10px 18px;
  background:var(--acid);
  color:#000;
  font-weight:700;
  border-bottom:0;
}
.totop:hover{background:var(--blue);color:#fff;}
.f-bar{
  border-top:4px solid var(--acid);
  background:var(--blue);
  color:#fff;
  padding:16px var(--edge);
  text-align:center;
}
.f-bar p{margin:0;font-size:15px;letter-spacing:.12em;}

@media (max-width:900px){
  .hdr{grid-template-columns:auto 1fr auto;padding:8px 16px;}
  .burger{display:block;}
  .brand{font-size:18px;padding:8px 4px;letter-spacing:.1em;}
  .hleft,.hright{
    grid-column:1/-1;
    grid-row:2;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin-top:8px;
    border-top:3px solid var(--acid);
  }
  .hdr.open .hleft,.hdr.open .hright{display:flex;}
  .hlink{width:100%;padding:13px 10px;border-bottom:2px solid #1d1d1d;}
  .gd-m{position:static;display:flex;min-width:0;border:0;background:none;}
  .gd-t{border-bottom:2px solid #1d1d1d;}

  .wrap{grid-template-columns:1fr;padding:0 16px;}
  .rail{
    position:static;
    padding:22px 0 20px;
    border-right:0;
    border-bottom:4px solid var(--blue);
  }
  .knot{margin-bottom:12px;}
  .rail-nav{flex-direction:row;flex-wrap:wrap;gap:8px;border-top:0;}
  .rail-nav a{border:2px solid #333;padding:0 12px;flex:0 0 auto;}
  .rail-nav a:hover{padding-left:12px;background:var(--acid);}
  .col{padding:24px 0 42px;}

  .f-grid{grid-template-columns:1fr;}
  .f-col{border-right:0;border-bottom:3px solid #1d1d1d;padding:20px 16px;}
  .f-mark{padding:22px 16px 0;}
  .f-bar{padding:16px;}
  .body section{padding-block:20px;scroll-margin-top:64px;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  body.js .body section{opacity:1;transform:none;transition:none;}
}

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