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

:root{
  --acid:#80ff00;
  --neon:#00ff00;
  --ink:#1f2617;
  --deep:#0e130a;
  --deep2:#161d11;
  --txt:#e8ffd8;
  --dim:#a8c79a;
  --bar:84px;
  --sans:'Montserrat',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --serif:'Cormorant','Songti SC','Noto Serif SC','Source Han Serif SC',Georgia,serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding-bottom:var(--bar);
  background-color:var(--deep);
  background-image:
    radial-gradient(620px 420px at 10% -6%, rgba(128,255,0,.20), transparent 68%),
    radial-gradient(520px 400px at 92% 6%, rgba(0,255,0,.14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px);
  color:var(--txt);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
}

a{color:var(--acid);text-decoration:none}
a:hover{color:var(--neon)}

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

img{max-width:100%}

/* ---------- 顶部跑马灯 ---------- */
.ticker{
  background:var(--neon);
  color:#0b1206;
  border-bottom:2px solid var(--ink);
  overflow:hidden;
  font-weight:700;
  letter-spacing:.12em;
  white-space:nowrap;
}
.ticker-run{
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:5px 14px 5px 0;
  animation:run 26s linear infinite;
  will-change:transform;
}
.tk-w{padding-right:18px}
.tk-dot{width:9px;height:9px;background:var(--ink);transform:rotate(18deg);flex:0 0 auto}
@keyframes run{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- 底部固定条 ---------- */
.bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  background:rgba(11,16,8,.95);
  border-top:2px solid var(--acid);
  box-shadow:0 -10px 34px rgba(0,0,0,.6);
  backdrop-filter:blur(8px);
}
.navbar{
  max-width:1240px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:4px;
  padding:8px 14px;
}
.nav-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  flex:1 1 0;
  min-width:0;
}
.nav-left{justify-content:flex-end}
.nav-right{justify-content:flex-start}

.nl{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:0 9px;
  font-size:16px;
  font-weight:600;
  color:var(--txt);
  border-radius:3px;
  transition:background .18s ease,color .18s ease;
}
.nl::before{
  content:'';
  width:7px;height:7px;
  background:var(--acid);
  transform:rotate(20deg);
  flex:0 0 auto;
}
.nl:hover,.nl:focus-visible{background:var(--acid);color:#101a08}
.nl:hover::before,.nl:focus-visible::before{background:#101a08}

.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  font-family:var(--serif);
  font-weight:700;
  font-size:21px;
  letter-spacing:.05em;
  color:var(--acid);
  text-shadow:2px 2px 0 rgba(0,255,0,.4);
  animation:jitter 7s infinite;
}
@keyframes jitter{
  0%,90%,100%{transform:rotate(-1.3deg)}
  93%{transform:rotate(1.5deg) translateY(-1px)}
  96%{transform:rotate(-.5deg) translateY(1px)}
}

.find{flex:0 0 auto;margin-left:6px}
.find-in{
  width:134px;
  min-height:40px;
  padding:0 10px;
  font:inherit;
  font-size:16px;
  color:var(--txt);
  background:#0a1007;
  border:2px solid var(--acid);
  border-radius:3px;
  -webkit-appearance:none;
  appearance:none;
}
.find-in::placeholder{color:var(--dim)}

/* ---------- 主体 ---------- */
.stage{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(14px,3vw,34px) clamp(14px,3vw,32px) 24px;
  display:flex;
  gap:clamp(18px,3vw,40px);
  align-items:flex-start;
}

.rail{
  flex:0 0 234px;
  order:-1;
  position:sticky;
  top:20px;
  padding:16px 14px 18px;
  background:#141d0f;
  border:2px solid rgba(128,255,0,.4);
  border-radius:4px;
  box-shadow:9px 9px 0 rgba(0,255,0,.15);
  transform:rotate(-.7deg);
}
.rail-h{
  font-family:var(--serif);
  font-size:22px;
  line-height:1.2;
  margin:8px 0 10px;
  color:var(--acid);
}
.rail-list{display:flex;flex-direction:column}
.rl{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 8px;
  font-size:16px;
  color:var(--txt);
  border-bottom:1px dashed rgba(128,255,0,.24);
}
.rl:last-child{border-bottom:0}
.rl:hover{background:rgba(128,255,0,.1);color:var(--acid)}

.sheet{flex:1 1 auto;min-width:0;max-width:820px}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:clamp(16px,3vw,36px);
  align-items:center;
  min-height:70vh;
  padding:6px 0 30px;
  border-bottom:3px dashed rgba(128,255,0,.28);
}
.h1{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(38px,7vw,82px);
  line-height:1.03;
  letter-spacing:-.012em;
  margin:0 0 18px;
  color:#f5ffe9;
  text-shadow:4px 4px 0 rgba(0,255,0,.3);
}
.lede{
  margin:0;
  max-width:46ch;
  padding-left:14px;
  border-left:3px solid var(--acid);
  font-size:18px;
  line-height:1.6;
  color:var(--dim);
}
.hero-art{margin:0;position:relative;z-index:1}
.hero-art img{
  display:block;
  width:100%;
  height:auto;
  border:2px solid var(--acid);
  border-radius:4px;
  transform:rotate(1.6deg);
  box-shadow:10px 10px 0 rgba(0,255,0,.2);
  filter:saturate(145%);
}
.hero-art:empty{display:none}

.stk{
  position:absolute;
  border:2px solid var(--neon);
  pointer-events:none;
  z-index:0;
  mix-blend-mode:screen;
}
.stk-1{
  top:-12px;right:32%;
  width:92px;height:92px;
  transform:rotate(14deg);
  background:rgba(128,255,0,.16);
}
.stk-2{
  bottom:18px;left:-16px;
  width:58px;height:58px;
  transform:rotate(-9deg);
  background:rgba(0,255,0,.2);
}

/* ---------- 正文 ---------- */
small{
  display:inline-block;
  margin-bottom:6px;
  padding:2px 10px;
  font-family:var(--sans);
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  color:#0d1508;
  background:var(--neon);
  border-radius:2px;
  transform:rotate(-1.8deg);
  box-shadow:3px 3px 0 rgba(0,0,0,.5);
}

.sheet > section{position:relative;transition:opacity .5s ease,transform .5s ease}
.sheet > section.rv{opacity:0;transform:translateY(16px) rotate(-.35deg)}
.sheet > section.in{opacity:1;transform:none}

.sheet > section:not(.hero){
  margin-top:42px;
  padding-top:28px;
  border-top:3px solid rgba(128,255,0,.16);
}

.sheet h2{
  font-family:var(--serif);
  font-size:clamp(27px,4.4vw,44px);
  line-height:1.1;
  letter-spacing:-.005em;
  margin:.15em 0 .55em;
  color:var(--acid);
}
.sheet h3{
  font-family:var(--serif);
  font-size:clamp(21px,3vw,29px);
  line-height:1.2;
  margin:1em 0 .35em;
  color:#ebffd9;
}
.sheet p{margin:0 0 1.05em;max-width:70ch}
.sheet ul,.sheet ol{margin:0 0 1.2em;padding-left:1.35em;max-width:70ch}
.sheet li{margin-bottom:.5em}
.sheet strong{color:var(--neon)}
.sheet a{text-decoration:underline;text-decoration-color:rgba(128,255,0,.5);text-underline-offset:3px}
.sheet img{height:auto;border:2px solid rgba(128,255,0,.45);border-radius:4px}
.sheet blockquote{
  margin:1.2em 0;
  padding:12px 16px;
  border-left:4px solid var(--neon);
  background:rgba(128,255,0,.08);
  border-radius:0 4px 4px 0;
}
.sheet code,.sheet pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:16px;
}
.sheet pre{
  overflow-x:auto;
  padding:12px 14px;
  background:#10170c;
  border:1px dashed rgba(128,255,0,.4);
  border-radius:4px;
}
.sheet table{width:100%;border-collapse:collapse;margin:0 0 1.3em;font-size:16px}
.sheet th,.sheet td{
  padding:10px 12px;
  text-align:left;
  border:1px dashed rgba(128,255,0,.28);
}
.sheet th{background:rgba(128,255,0,.1);color:var(--acid)}
.sheet hr{border:0;border-top:2px dashed rgba(128,255,0,.25);margin:1.6em 0}

/* ---------- 子页 ---------- */
.kids-h{font-family:var(--serif);font-size:26px;color:var(--acid);margin:.1em 0 .6em}
.kids-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(196px,1fr));
  gap:12px;
  margin:0;padding:0;list-style:none;
}
.kids-list a{
  display:block;
  padding:14px;
  background:#172010;
  border:2px solid rgba(128,255,0,.3);
  border-radius:4px;
  box-shadow:0 6px 18px rgba(0,0,0,.45);
  color:var(--txt);
  text-decoration:none;
}
.kids-list a:hover{border-color:var(--acid);color:var(--acid)}

/* ---------- 页脚 ---------- */
.foot{
  max-width:1180px;
  margin:54px auto 0;
  padding:26px clamp(14px,3vw,32px) 30px;
  display:flex;
  flex-wrap:wrap;
  gap:20px 34px;
  align-items:flex-start;
  border-top:2px dashed rgba(128,255,0,.3);
  background:linear-gradient(180deg, rgba(128,255,0,.055), transparent 70%);
}
.fcol{margin:0;flex:1 1 150px;min-width:118px}
.fcol dt{
  margin-bottom:8px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--acid);
}
.fcol dd{margin:0;display:flex;flex-wrap:wrap;gap:4px 14px}
.fcol dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--txt);
}
.fcol dd a:hover{color:var(--acid)}
.copy{
  flex:1 1 100%;
  margin:0;
  padding-top:14px;
  border-top:1px solid rgba(128,255,0,.16);
  font-family:var(--serif);
  font-size:20px;
  letter-spacing:.05em;
  color:var(--acid);
}

/* ---------- 窄屏 ---------- */
@media (max-width:920px){
  :root{--bar:176px}
  .navbar{flex-wrap:wrap;row-gap:4px;padding:6px 10px}
  .brand{order:1;margin-right:auto;padding:0 4px}
  .find{order:2;margin-left:auto}
  .find-in{width:112px}
  .nav-left{order:3;flex:1 1 100%;justify-content:center}
  .nav-right{order:4;flex:1 1 100%;justify-content:center}
  .nl{padding:0 7px;gap:6px}
}

@media (max-width:820px){
  .stage{flex-direction:column;align-items:stretch}
  .sheet{max-width:none;width:100%}
  .rail{
    order:2;
    position:static;
    width:100%;
    flex:0 0 auto;
    transform:none;
    box-shadow:6px 6px 0 rgba(0,255,0,.15);
  }
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:10px 0 24px;
    gap:18px;
  }
  .hero-art{order:2}
  .h1{font-size:clamp(34px,10vw,54px)}
  .stk{display:none}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .ticker-run,.brand{animation:none}
  .sheet > section{transition:none}
  .sheet > section.rv{opacity:1;transform:none}
}

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