@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syncopate:wght@400;700&display=swap');

:root{
  --neon:#69ff69;
  --cyan:#00ffff;
  --ink:#172617;
  --base:#09130b;
  --panel:#0f1e13;
  --edge:#2b4430;
  --line:#21382a;
  --text:#d9f4dd;
  --dim:#8fb79a;
  --chrome:linear-gradient(135deg,#f6fff6 0%,#a9bcae 26%,#ffffff 44%,#6d8173 60%,#dff3e2 100%);
  --strip:linear-gradient(90deg,var(--neon),var(--cyan) 58%,#f6fff6);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(520px 340px at 84% 4%,rgba(0,255,255,.10),transparent 70%),
    radial-gradient(560px 420px at 10% 92%,rgba(105,255,105,.10),transparent 72%),
    var(--base);
  background-attachment:fixed;
  color:var(--text);
  font-family:"Space Mono",ui-monospace,"Courier New",monospace;
  font-size:16px;
  line-height:1.7;
}

img{max-width:100%;height:auto}
a{color:var(--cyan)}

/* ---------- 左侧竖排轨道 ---------- */
.rail{
  position:fixed;
  top:0;left:0;bottom:0;
  width:236px;
  z-index:20;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:16px 14px 20px;
  background:linear-gradient(180deg,#0d1c11,#152b18 58%,#0b1710);
  border-right:1px solid var(--edge);
  overflow-y:auto;
  scrollbar-width:thin;
}
.rail-top{display:flex}
.mark{
  display:grid;
  place-items:center;
  width:48px;height:48px;
  border:1px solid #8fe0a0;
  background:linear-gradient(160deg,#12241a,#1d3a24);
  clip-path:polygon(0 0,100% 0,100% 72%,72% 100%,0 100%);
  color:var(--neon);
  text-decoration:none;
  font-family:Syncopate,"Space Mono",monospace;
  font-weight:700;
  font-size:20px;
  box-shadow:0 0 16px rgba(105,255,105,.28);
}
.mark img{width:100%;height:100%;object-fit:cover;display:block}
.rail-h{
  margin:0;
  font-family:Syncopate,"Space Mono",monospace;
  font-weight:400;
  font-size:16px;
  letter-spacing:.3em;
  color:#84c894;
}
.rail-h span::before{content:"✦ ";color:var(--cyan)}
.rail-nav{flex:1 1 auto;min-height:0}
.pills{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  counter-reset:p;
}
.pills li{counter-increment:p}
.pill{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:9px 14px;
  border:1px solid var(--edge);
  border-radius:999px;
  background:rgba(105,255,105,.04);
  color:#c7efcd;
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;
}
.pill::before{
  content:counter(p,decimal-leading-zero);
  font-size:13px;
  color:#63a974;
  letter-spacing:.06em;
}
.pill:hover,
.pill:focus-visible{
  border-color:var(--neon);
  background:rgba(105,255,105,.14);
  color:var(--neon);
  box-shadow:0 0 18px rgba(105,255,105,.38);
  transform:translateX(3px);
}
.pill.is-on{
  border-color:#ffffff;
  background:linear-gradient(135deg,#e2ffe6,#69ff69);
  color:#0b1a10;
  font-weight:700;
  box-shadow:0 0 22px rgba(105,255,105,.5);
}
.pill.is-on::before{color:#1e6b32}
.rail-foot{padding-top:8px;border-top:1px solid var(--edge)}
.contact{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:999px;
  background:linear-gradient(135deg,#e6fff0,#6ff0ff 55%,#b9ffd0);
  color:#0b1a10;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 0 18px rgba(0,255,255,.32);
}
.contact:hover{filter:brightness(1.08)}

/* ---------- 主区 ---------- */
main{
  position:relative;
  z-index:1;
  padding-left:236px;
}
.wrap{
  max-width:980px;
  margin:0 auto;
  padding:26px 24px 0;
}
.deck{position:relative}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:8px 0 0;
  text-align:right;
}
.ttl{
  margin:0;
  font-family:Syncopate,"Space Mono",monospace;
  font-weight:700;
  font-size:clamp(26px,5.2vw,54px);
  line-height:1.1;
  letter-spacing:.02em;
  background:var(--chrome);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 16px rgba(105,255,105,.5));
  text-wrap:balance;
}
.lede{
  margin:14px 0 0 auto;
  max-width:44ch;
  color:#a9d8b6;
}
.hero-art{
  position:relative;
  margin-top:18px;
  height:30vh;
  min-height:150px;
  border:1px solid var(--edge);
  background:#0c1a10;
  overflow:hidden;
}
.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,rgba(0,255,255,.2),transparent 45%,rgba(105,255,105,.22));
  mix-blend-mode:screen;
  pointer-events:none;
  animation:sweep 7s ease-in-out infinite;
}
.hero-img{width:100%;height:100%;object-fit:cover;display:block}
.bubbles{position:absolute;inset:0}
.bubbles i{
  position:absolute;
  display:block;
  width:96px;height:96px;
  border:1px solid rgba(0,255,255,.55);
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.8),rgba(105,255,105,.28) 46%,transparent 72%);
  animation:bob 9s ease-in-out infinite;
}
.bubbles i:nth-child(1){left:7%;top:16%;width:104px;height:104px}
.bubbles i:nth-child(2){right:12%;top:24%;width:70px;height:70px;animation-delay:-2.4s}
.bubbles i:nth-child(3){left:38%;bottom:8%;width:130px;height:130px;animation-delay:-4.6s}
.bubbles i:nth-child(4){right:30%;bottom:30%;width:44px;height:44px;animation-delay:-6.2s}
.spark{
  position:absolute;
  width:12px;height:12px;
  pointer-events:none;
  background:radial-gradient(circle,#ffffff 0 2px,rgba(0,255,255,.95) 2px 3px,transparent 4px);
  filter:drop-shadow(0 0 6px #00ffff);
  animation:twinkle 4s ease-in-out infinite;
}

.band{
  display:block;
  height:14px;
  margin-top:14px;
  background:var(--strip);
  clip-path:polygon(0 0,100% 0,100% 34%,0 100%);
}

/* ---------- 正文 ---------- */
.sheet{
  position:relative;
  display:block;
  padding:18px 0 40px;
}
.sheet > div{
  padding:26px 0 30px;
  border-bottom:1px solid var(--line);
}
.sheet > div:last-child{border-bottom:0;padding-bottom:6px}
.sheet [id]{scroll-margin-top:96px}
.sheet h2,
.sheet h3{
  font-family:Syncopate,"Space Mono",monospace;
  color:#eaffea;
  line-height:1.28;
  margin:0 0 14px;
  font-weight:700;
}
.sheet h2{
  position:relative;
  font-size:clamp(20px,3vw,28px);
  padding-bottom:12px;
}
.sheet h2 span::before{
  content:"✦";
  color:var(--cyan);
  margin-right:.5em;
  font-size:.8em;
  vertical-align:.08em;
}
.sheet h2::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:88px;height:3px;
  background:var(--strip);
}
.sheet h3{font-size:18px}
.sheet p{margin:0 0 14px;max-width:70ch;color:#cfeecf}
.sheet ul,
.sheet ol{padding-left:1.35em;max-width:70ch;margin:0 0 16px}
.sheet li{margin:.35em 0}
.sheet li::marker{color:var(--neon)}
.sheet a{color:var(--cyan);text-underline-offset:3px}
.sheet a:hover{color:var(--neon)}
.sheet strong{color:#f2fff2}
.sheet blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  border-left:4px solid var(--neon);
  background:rgba(105,255,105,.07);
}
.sheet table{width:100%;border-collapse:collapse;margin:0 0 16px}
.sheet th,.sheet td{border:1px solid var(--line);padding:8px 10px;text-align:left}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  max-width:1028px;
  margin:24px 0 0 236px;
  padding:30px 24px 16px;
  border-top:1px solid var(--edge);
  background:linear-gradient(180deg,#0e1e13,#09130b);
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1.1fr) minmax(0,.8fr);
  gap:18px 26px;
  align-items:start;
}
.foot h2{
  margin:0 0 12px;
  font-family:Syncopate,"Space Mono",monospace;
  font-weight:400;
  font-size:16px;
  letter-spacing:.2em;
  color:#77c98b;
}
.foot h2 span::before{content:"✦ ";color:var(--cyan)}
.bigmark{
  margin:0;
  font-family:Syncopate,"Space Mono",monospace;
  font-weight:700;
  font-size:clamp(30px,5.4vw,58px);
  line-height:1;
  background:var(--chrome);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 12px rgba(105,255,105,.35));
  word-break:break-word;
}
.fnav dl{
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px 16px;
}
.fnav dt{grid-column:1/-1;color:#6f9c7d;margin-bottom:4px}
.fnav dd{margin:0}
.fnav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#bfe9c6;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.fnav a:hover{color:var(--neon);border-bottom-color:var(--neon)}
.f3 a{
  display:flex;
  align-items:center;
  min-height:40px;
  color:var(--cyan);
  text-decoration:none;
}
.f3 a:hover{color:var(--neon)}
.fbase{
  grid-column:1/-1;
  margin-top:10px;
  padding-top:12px;
  border-top:1px solid var(--line);
  text-align:center;
  color:#6f9c7d;
}
.cr{margin:0}

/* ---------- 动效 ---------- */
@keyframes sweep{
  0%,100%{opacity:.35}
  50%{opacity:.95}
}
@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-14px)}
}
@keyframes twinkle{
  0%,100%{opacity:.15;transform:scale(.7)}
  50%{opacity:1;transform:scale(1.15)}
}

/* ---------- 窄屏 ---------- */
@media (max-width:880px){
  .rail{
    right:0;
    bottom:auto;
    width:auto;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:9px 12px;
    border-right:0;
    border-bottom:1px solid var(--edge);
    overflow:visible;
  }
  .mark{width:42px;height:42px;font-size:17px}
  .rail-h{display:none}
  .rail-nav{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .pills{flex-direction:row;gap:8px;padding-bottom:2px}
  .pill{white-space:nowrap;padding:8px 12px}
  .pill:hover,
  .pill:focus-visible{transform:none}
  .rail-foot{display:none}
  main{padding-left:0;padding-top:70px}
  .wrap{padding:14px 16px 0}
  .hero{min-height:0;padding-top:10px}
  .hero-art{height:24vh;min-height:132px}
  .sheet [id]{scroll-margin-top:84px}
  .foot{
    margin-left:0;
    grid-template-columns:1fr;
    padding:24px 16px 14px;
  }
  .fnav dl{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-art::after,
  .bubbles i,
  .spark{animation:none}
  .spark{opacity:.9}
  .pill{transition:none}
}

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