:root{
  --ink:#001e3c;
  --ink-deep:#00142b;
  --mint:#99ffcc;
  --neon:#00ff41;
  --text:#e2f8ee;
  --dim:#a3c4bd;
  --line:rgba(153,255,204,.24);
  --line-soft:rgba(153,255,204,.13);
  --r:18px;
  --side:266px;
  --pad:clamp(16px,3.2vw,42px);
  --font:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  padding-left:var(--side);
  font-family:var(--font);
  font-size:17px;
  line-height:1.68;
  color:var(--text);
  background:
    radial-gradient(58vw 58vw at 92% -12%,rgba(0,255,65,.17),transparent 62%),
    radial-gradient(52vw 52vw at 2% 106%,rgba(153,255,204,.15),transparent 62%),
    var(--ink);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  top:-12vw;
  left:52%;
  width:56vw;
  height:56vw;
  max-width:720px;
  max-height:720px;
  border-radius:46% 54% 62% 38% / 52% 42% 58% 48%;
  background:radial-gradient(circle at 42% 38%,rgba(0,255,65,.26),rgba(153,255,204,.07) 56%,transparent 72%);
  filter:blur(44px);
  animation:breathe 17s ease-in-out infinite;
  pointer-events:none;
  z-index:0;
}

@keyframes breathe{
  0%,100%{transform:scale(1) rotate(0deg);opacity:.85}
  50%{transform:scale(1.15) rotate(6deg);opacity:1}
}

header,main,footer{position:relative;z-index:1}

a{color:var(--mint);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:#fff}
:focus-visible{outline:2px solid var(--neon);outline-offset:3px}

/* ---------- masthead ---------- */
.masthead{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--side);
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px 18px 26px;
  border-right:1px solid var(--line-soft);
  background:
    linear-gradient(180deg,rgba(0,30,60,.94),rgba(0,16,34,.97));
  backdrop-filter:blur(7px);
  z-index:6;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:8px 6px;
  font-weight:600;
  font-size:1.06rem;
  letter-spacing:.01em;
  color:var(--mint);
  text-decoration:none;
}
.brand .mark{
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(153,255,204,.1);
}

.jump{flex:1 1 auto}

.jump p{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0;
}

.jump a{
  display:block;
  min-height:44px;
  padding:11px 12px;
  border:1px solid transparent;
  border-radius:13px;
  color:var(--text);
  font-size:.98rem;
  text-decoration:none;
  transition:background .25s ease,border-color .25s ease,color .2s ease;
}
.jump a:hover,
.jump a:focus-visible{
  background:rgba(153,255,204,.09);
  border-color:var(--line);
  color:var(--mint);
}

.cta{
  display:block;
  min-height:46px;
  padding:13px 14px;
  border-radius:999px;
  background:linear-gradient(115deg,var(--neon),var(--mint) 78%);
  color:#00220f;
  font-weight:700;
  font-size:.98rem;
  text-align:center;
  text-decoration:none;
  transition:transform .3s ease,filter .3s ease;
}
.cta:hover{color:#001a0b;transform:translateY(-2px);filter:brightness(1.06)}

/* ---------- hero ---------- */
.hero{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(20px,3.4vw,44px) var(--pad) 0;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:14px;
}

.hero h1{
  margin:0;
  max-width:26ch;
  font-size:clamp(1.85rem,1.1rem + 2.9vw,3.15rem);
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.01em;
  background:linear-gradient(102deg,var(--mint),#ffffff 52%,var(--neon));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lede{
  margin:0;
  max-width:56ch;
  color:var(--dim);
  font-size:1rem;
}

.hero-art{
  position:relative;
  margin-top:8px;
  height:clamp(132px,26vh,244px);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  background:linear-gradient(118deg,rgba(0,255,65,.14),rgba(153,255,204,.05));
}
.hero-art img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:translate3d(0,var(--py,0px),0) scale(1.07);
  will-change:transform;
}

/* ---------- content shell ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(22px,3vw,34px) var(--pad) clamp(52px,6vw,88px);
}

.panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) 256px;
  gap:clamp(20px,3vw,40px);
  align-items:start;
}

.body{
  min-width:0;
  padding:clamp(16px,2.6vw,32px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(178deg,rgba(2,42,76,.74),rgba(1,23,44,.8));
}

.body > article + article{
  margin-top:34px;
  padding-top:28px;
  border-top:1px dashed var(--line-soft);
}

.body > article{scroll-margin-top:22px}

.body p{margin:0 0 14px;max-width:66ch}
.body ul,.body ol{margin:0 0 16px;padding-left:1.25em}
.body li{margin:0 0 7px}
.body li::marker{color:var(--neon)}

.body small{
  display:block;
  margin:22px 0 7px;
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--neon);
}
.body small:first-child{margin-top:0}

.body h2{
  margin:0 0 12px;
  font-size:clamp(1.28rem,1rem + 1.1vw,1.85rem);
  line-height:1.3;
  font-weight:600;
  color:var(--mint);
  letter-spacing:-.005em;
}

.body h3{
  margin:20px 0 9px;
  font-size:1.12rem;
  line-height:1.4;
  font-weight:600;
  color:#d8fff0;
}
.body small + h3{margin-top:0}

.body h2 + p,.body h3 + p{margin-top:0}
.body strong{color:#ffffff;font-weight:600}
.body a{color:var(--mint)}

.body blockquote{
  margin:18px 0;
  padding:12px 16px;
  border-left:3px solid var(--neon);
  border-radius:0 12px 12px 0;
  background:rgba(0,255,65,.07);
  color:#e8fff6;
}
.body blockquote p:last-child{margin-bottom:0}

.body img{max-width:100%;height:auto;border-radius:14px;border:1px solid var(--line-soft)}

.body table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 16px;
  font-size:.96rem;
}
.body th,.body td{
  padding:9px 11px;
  border:1px solid var(--line-soft);
  text-align:left;
}
.body th{color:var(--mint);background:rgba(153,255,204,.07)}

/* ---------- rail ---------- */
.rail{
  position:sticky;
  top:20px;
  padding:16px 13px 14px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(1,28,52,.62);
  backdrop-filter:blur(6px);
}

.rail .eyebrow{
  display:block;
  margin:0 0 6px;
  font-size:.74rem;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--neon);
}

.rail-title{
  margin:0 0 10px;
  font-size:1.02rem;
  font-weight:600;
  color:var(--mint);
}

.rail-list{
  list-style:none;
  margin:0 0 12px;
  padding:0;
  display:grid;
  gap:2px;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:12px;
  color:var(--text);
  font-size:.95rem;
  text-decoration:none;
  transition:background .22s ease,border-color .22s ease,color .2s ease;
}
.rail-list a:hover,
.rail-list a:focus-visible{
  background:rgba(153,255,204,.09);
  border-color:var(--line);
  color:var(--mint);
}

.totop{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 10px;
  border-top:1px dashed var(--line-soft);
  color:var(--neon);
  font-size:.92rem;
  text-decoration:none;
}

/* ---------- footer ---------- */
.site-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 20px;
  padding:20px var(--pad) 24px;
  border-top:1px solid var(--line-soft);
  background:linear-gradient(180deg,rgba(0,20,40,.6),rgba(0,14,30,.9));
  font-size:.92rem;
  color:var(--dim);
}

.f-brand a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 0;
  color:var(--mint);
  font-weight:600;
  text-decoration:none;
}

.site-foot nav p{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  margin:0;
}

.site-foot nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 9px;
  color:var(--text);
  text-decoration:none;
  border-radius:10px;
}
.site-foot nav a:hover{color:var(--mint);background:rgba(153,255,204,.08)}

.f-top a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 0;
  color:var(--neon);
  text-decoration:none;
}

.f-copy{margin-left:auto;color:var(--dim);padding:8px 0}

/* ---------- motion ---------- */
.js .body > article{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .62s ease,transform .62s cubic-bezier(.2,.7,.3,1);
}
.js .body > article.in{opacity:1;transform:none}

/* ---------- mobile ---------- */
@media (max-width:900px){
  :root{--side:0px}
  body{padding-left:0;font-size:16.5px}

  .masthead{
    position:static;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 10px;
    padding:12px 14px 10px;
    border-right:none;
    border-bottom:1px solid var(--line-soft);
  }
  .brand{font-size:1rem;padding:6px 4px}
  .jump{flex:1 1 100%;order:3}
  .jump p{flex-direction:row;flex-wrap:wrap;gap:3px}
  .jump a{padding:11px 10px;font-size:.92rem;min-height:42px}
  .cta{margin-left:auto;padding:12px 16px;font-size:.92rem}

  .hero{min-height:0;padding-top:16px}
  .hero h1{max-width:20ch}
  .lede{font-size:.97rem}
  .hero-art{height:clamp(120px,22vh,190px)}

  .panel{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2;padding:14px 12px}
  .rail-list{grid-template-columns:1fr 1fr;display:grid}
  .f-copy{margin-left:0}
  .site-foot{gap:6px 14px}
}

@media (max-width:420px){
  .hero h1{font-size:1.72rem}
  .rail-list{grid-template-columns:minmax(0,1fr)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .hero-art img{transform:none}
  .js .body > article{opacity:1 !important;transform:none !important;transition:none !important}
  .cta:hover{transform:none}
}

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