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

:root{
  --neon:#00ff80;
  --blue:#0000ff;
  --black:#000000;
  --ink:#d9ffe9;
  --dim:#8fd8b4;
  --frame:3px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  background-color:var(--black);
  background-image:
    radial-gradient(rgba(0,255,128,.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,255,.10), transparent 320px);
  background-size:22px 22px, 100% 100%;
  color:var(--ink);
  font-family:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size:17px;
  line-height:1.7;
  font-weight:400;
}

h1,h2,h3,h4{font-weight:700;line-height:1.15;letter-spacing:-.01em}
p{margin:0 0 16px}
a{color:var(--neon)}
img{max-width:100%;height:auto}

main [id]{scroll-margin-top:104px}

/* ---------- 头部 ---------- */
.masthead{
  border-bottom:4px solid var(--neon);
  background:var(--black);
}
.masthead nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  max-width:1240px;
  margin:0 auto;
  padding:8px 12px;
}
.rail{
  display:flex;
  flex-wrap:wrap;
  margin:0;
  gap:2px;
}
.rail.right{justify-content:flex-end}
.rail a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  font-size:16px;
  font-weight:500;
  color:var(--neon);
  text-decoration:none;
  border:2px solid transparent;
}
.rail a:hover,.rail a:focus-visible{
  background:var(--blue);
  color:#ffffff;
  border-color:#ffffff;
}
.brand{
  margin:0;
  text-align:center;
  white-space:nowrap;
}
.brand a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 10px;
  font-size:19px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--neon);
  text-decoration:none;
  border-bottom:3px solid var(--blue);
}
.brand .mark{
  display:inline-block;
  padding:0 6px;
  background:var(--neon);
  color:var(--black);
  font-size:15px;
  letter-spacing:0;
}
.cta{
  border:3px solid var(--neon) !important;
  background:var(--neon);
  color:var(--black) !important;
  font-weight:700;
}
.cta:hover,.cta:focus-visible{
  background:var(--blue) !important;
  color:#ffffff !important;
}

/* ---------- 锚点条 ---------- */
.anchors{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--black);
  border-bottom:var(--frame) solid var(--blue);
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.anchors p{
  margin:0;
  display:flex;
  gap:0;
  white-space:nowrap;
  max-width:1240px;
  padding:0 8px;
}
.anchors a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 12px;
  font-size:16px;
  font-weight:600;
  color:var(--neon);
  text-decoration:none;
  border-right:1px solid rgba(0,255,128,.3);
}
.anchors a:first-child{border-left:1px solid rgba(0,255,128,.3)}
.anchors a:hover,.anchors a:focus-visible{background:var(--blue);color:#ffffff}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100vh;
  border-bottom:4px solid var(--neon);
  background:rgba(0,0,0,.72);
}
.hero-figure{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  border-right:var(--frame) solid var(--blue);
}
.hero-figure.blank{
  background-image:
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(0,255,128,.16) 20px 22px),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(0,0,255,.4) 20px 22px);
  background-color:var(--black);
  min-height:280px;
}
.hero-img{
  width:100%;
  display:block;
  border:var(--frame) solid var(--neon);
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:40px 28px;
}
.hero-copy h1{
  margin:0 0 22px;
  font-size:clamp(30px,4.6vw,58px);
  color:var(--neon);
  text-wrap:balance;
}
.lede{
  max-width:46ch;
  margin:0;
  font-size:17px;
  color:var(--dim);
  border-top:var(--frame) solid var(--blue);
  padding-top:16px;
}

/* ---------- 主体 ---------- */
.wrap{
  max-width:1240px;
  margin:0 auto;
  padding:52px 16px 80px;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:36px;
  align-items:start;
}

.railbox{
  position:sticky;
  top:78px;
  border:var(--frame) solid var(--neon);
  border-radius:28px;
  background:#040d09;
  padding:20px 18px;
  box-shadow:0 22px 46px rgba(0,255,128,.14);
}
.railbox h2{
  margin:0;
  font-size:19px;
  color:var(--neon);
  letter-spacing:.08em;
}
.railbox hr{
  border:0;
  border-top:var(--frame) solid var(--blue);
  margin:10px 0 12px;
}
.side-links{margin:0}
.side-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 0;
  font-size:16px;
  font-weight:500;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px dashed rgba(0,255,128,.32);
}
.side-links a:last-child{border-bottom:0}
.side-links a:hover,.side-links a:focus-visible{color:var(--neon);text-decoration:underline}

.body-col{min-width:0}

section{
  border:var(--frame) solid var(--blue);
  border-radius:28px;
  background:rgba(0,0,0,.86);
  padding:30px 26px 34px;
  box-shadow:0 24px 54px rgba(0,0,255,.26);
}
section > div + div{
  margin-top:52px;
  padding-top:44px;
  border-top:2px solid rgba(0,255,128,.3);
}
section h2{
  margin:0 0 10px;
  font-size:clamp(22px,2.9vw,31px);
  color:var(--neon);
}
section h2 + hr{
  border:0;
  border-top:4px solid var(--blue);
  width:76px;
  margin:0 0 20px;
}
section h3{
  margin:30px 0 10px;
  font-size:21px;
  color:var(--neon);
}
section h3 + hr{
  border:0;
  border-top:2px solid var(--blue);
  width:48px;
  margin:0 0 14px;
}
section p,section li{max-width:70ch}
section p{margin:0 0 18px}
section ul,section ol{margin:0 0 18px;padding-left:22px}
section li{margin:0 0 8px}
section a{text-decoration:underline;text-underline-offset:3px}
section strong{color:#ffffff;font-weight:700}
section blockquote{
  margin:0 0 20px;
  padding:14px 18px;
  border-left:6px solid var(--neon);
  background:rgba(0,0,255,.16);
}
section figure{margin:0 0 20px}
section figure img{border:var(--frame) solid var(--neon)}
section code{
  font-family:ui-monospace, "Courier New", monospace;
  background:#0b1a12;
  padding:1px 5px;
}

/* ---------- 页脚 ---------- */
footer{
  border-top:4px solid var(--neon);
  background:var(--black);
  padding:44px 16px 26px;
}
.foot-grid{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
footer dl{
  margin:0;
  border-left:var(--frame) solid var(--blue);
  padding-left:14px;
}
footer dt{
  font-size:16px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--neon);
  margin-bottom:6px;
}
footer dd{margin:0}
footer dd a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
}
footer dd a:hover,footer dd a:focus-visible{color:var(--neon);text-decoration:underline}
.foot-bar{
  max-width:1240px;
  margin:30px auto 0;
  padding-top:14px;
  border-top:2px solid var(--blue);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
}
.foot-bar p{margin:0;font-size:16px;color:var(--dim)}
.foot-bar a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--neon);
  text-decoration:none;
  font-weight:600;
}
.foot-bar a:hover{background:var(--blue);color:#ffffff}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .18s linear, transform .18s linear;
}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  *{animation-duration:0s !important}
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .wrap{
    grid-template-columns:1fr;
    gap:26px;
    padding:34px 16px 60px;
  }
  .railbox{position:static}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{order:1;padding:44px 20px 32px}
  .hero-figure{order:2;border-right:0;border-top:var(--frame) solid var(--blue);padding:18px}
  .hero-copy h1{font-size:clamp(28px,8vw,42px)}
  .foot-grid{grid-template-columns:1fr;gap:18px}
}

@media (max-width:640px){
  body{font-size:16px}
  .masthead nav{
    grid-template-columns:1fr;
    padding:8px;
    gap:4px;
  }
  .brand{order:-1;text-align:center;border-bottom:2px solid var(--blue);padding-bottom:6px;margin-bottom:4px}
  .rail{justify-content:center}
  .rail.right{justify-content:center}
  .rail a{padding:0 8px;font-size:16px}
  section{padding:22px 16px 26px}
  .railbox{padding:16px 14px}
}

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