:root{
  --bg:#192617;
  --deep:#101b12;
  --ink:#e3f8db;
  --dim:#a9c8a3;
  --neon:#87ff71;
  --cyan:#01cdfe;
  --pink:#ff71ce;
  --purple:#b967ff;
  --line:rgba(135,255,113,.22);
  --r:18px;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  --top:2.5rem;
  --left:3.6rem;
  margin:0;
  padding:var(--top) 0 0 var(--left);
  background-color:var(--bg);
  background-image:
    radial-gradient(1100px 460px at 82% -8%,rgba(1,205,254,.16),transparent 70%),
    radial-gradient(860px 400px at 6% 0%,rgba(255,113,206,.12),transparent 70%);
  background-repeat:no-repeat;
  color:var(--ink);
  font:400 1.03rem/1.75 var(--mono);
  overflow-x:hidden;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:30;
  pointer-events:none;
  opacity:.45;
  background:repeating-linear-gradient(180deg,rgba(0,0,0,0) 0 2px,rgba(0,0,0,.18) 2px 4px);
}
img{max-width:100%}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* 左侧竖排栏 */
.rail{
  position:fixed;
  z-index:50;
  top:0;
  left:0;
  bottom:0;
  width:var(--left);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1rem;
  padding:.7rem 0;
  background:rgba(16,27,18,.94);
  border-right:1px solid var(--line);
}
.brand-icon{
  display:grid;
  place-items:center;
  width:2.4rem;
  height:2.4rem;
  border-radius:12px;
  border:1px solid var(--line);
  overflow:hidden;
  text-decoration:none;
  background:#132015;
}
.logo-img{display:block;width:100%;height:100%;object-fit:cover}
.logo-txt{color:var(--neon);font-size:1.15rem;font-weight:500;line-height:1}

/* 汉堡 + 全屏遮罩 */
.brg{position:relative}
.brg > summary{
  list-style:none;
  cursor:pointer;
  width:2.7rem;
  height:2.7rem;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--neon);
  font-size:.76rem;
  letter-spacing:.02em;
  background:#132015;
  user-select:none;
}
.brg > summary::-webkit-details-marker{display:none}
.s-off{display:none}
.brg[open] .s-on{display:none}
.brg[open] .s-off{display:inline}
.brg[open] > summary{
  position:fixed;
  top:1rem;
  right:1rem;
  z-index:60;
  width:auto;
  height:2.7rem;
  padding:0 .9rem;
  background:#132015;
  border-color:var(--pink);
  color:var(--pink);
}
.brg > menu{
  list-style:none;
  margin:0;
  padding:4.8rem clamp(1.2rem,7vw,4rem) 2rem;
  position:fixed;
  inset:0;
  z-index:55;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.2rem;
  overflow-y:auto;
  background:
    linear-gradient(165deg,rgba(255,113,206,.2),rgba(185,103,255,.16) 40%,rgba(1,205,254,.18) 65%,#101b12 92%),
    #131f14;
}
.brg > menu a{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:.55rem .2rem;
  font-size:clamp(1.05rem,3.6vw,1.5rem);
  letter-spacing:.04em;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.brg > menu li:last-child a{border-bottom:0}
.brg > menu a:hover{color:var(--neon);text-shadow:0 0 14px rgba(135,255,113,.6)}

/* 顶部细条 */
.ticker{
  position:fixed;
  z-index:45;
  top:0;
  left:var(--left);
  right:0;
  height:var(--top);
  margin:0;
  display:flex;
  align-items:center;
  padding:0 1rem;
  font-size:.76rem;
  letter-spacing:.24em;
  color:var(--dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  background:linear-gradient(90deg,rgba(1,205,254,.18),rgba(255,113,206,.12));
  border-bottom:1px solid var(--line);
}

.wrap{max-width:1140px;margin:0 auto;padding:0 clamp(1rem,4vw,2.5rem)}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:calc(100svh - var(--top));
  padding:3.5rem 0 0;
  background-image:radial-gradient(rgba(135,255,113,.2) 1px,transparent 1.4px);
  background-size:24px 24px;
}
.hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:46%;
  z-index:0;
  background:linear-gradient(180deg,transparent,rgba(255,113,206,.22) 44%,rgba(185,103,255,.3) 70%,rgba(1,205,254,.36));
}
.hero-copy{
  position:relative;
  z-index:2;
  text-align:right;
  padding:0 clamp(.2rem,3vw,2.5rem) 1.8rem;
}
h1{
  margin:0 0 .55rem;
  font-size:clamp(1.85rem,6.4vw,3.4rem);
  line-height:1.16;
  letter-spacing:-.01em;
  text-shadow:2px 0 rgba(1,205,254,.85),-2px 0 rgba(255,113,206,.85);
  animation:glitch 7s steps(1) infinite;
}
.sub-h{
  margin:0 0 .9rem;
  font-size:clamp(.92rem,2.3vw,1.1rem);
  font-weight:400;
  letter-spacing:.3em;
  color:var(--cyan);
  text-shadow:0 0 12px rgba(1,205,254,.5);
}
.subtitle{
  margin:0 0 0 auto;
  max-width:46ch;
  font-size:1.02rem;
  color:var(--dim);
}
.hero-art{position:relative;z-index:1;margin:0;line-height:0}
.hero-art:empty{display:none}
.hero-img{
  display:block;
  width:100%;
  height:clamp(170px,34vh,320px);
  object-fit:cover;
  filter:hue-rotate(290deg) saturate(1.15);
  will-change:transform;
}
@keyframes glitch{
  0%,90%,100%{text-shadow:2px 0 rgba(1,205,254,.85),-2px 0 rgba(255,113,206,.85);transform:none}
  91%{text-shadow:4px 0 rgba(1,205,254,.9),-5px 0 rgba(255,113,206,.9);transform:translateX(1px)}
  94%{text-shadow:-3px 0 rgba(135,255,113,.9),3px 0 rgba(255,113,206,.9);transform:translateX(-2px)}
  97%{text-shadow:2px 0 rgba(1,205,254,.9),-2px 0 rgba(135,255,113,.9);transform:none}
}

/* 正文 + 右侧栏 */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,255px);
  gap:clamp(1.5rem,4vw,3.2rem);
  align-items:start;
  margin-top:2.5rem;
  padding:3rem 0 4rem;
  border-top:1px solid var(--line);
}
.prose{min-width:0;font-size:1.02rem;overflow-wrap:break-word}
.prose div[id]{
  scroll-margin-top:5rem;
  margin-top:3.2rem;
  padding-top:2.8rem;
  border-top:1px dashed var(--line);
}
.prose div[id]:first-child{margin-top:0;padding-top:0;border-top:0}
.prose h2{
  margin:0 0 .85rem;
  padding-left:.75rem;
  border-left:4px solid var(--neon);
  font-size:clamp(1.22rem,3.1vw,1.72rem);
  line-height:1.34;
}
.prose h3{margin:1.8rem 0 .6rem;font-size:1.1rem;color:var(--cyan)}
.prose p{margin:0 0 1.15rem}
.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.4rem}
.prose li{margin:.35rem 0}
.prose a{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--neon)}
.prose img{display:block;margin:1.5rem 0;height:auto;border-radius:var(--r)}
.prose blockquote{margin:1.5rem 0;padding:.9rem 1.1rem;border-radius:var(--r);background:#1f331f;color:var(--dim)}
.prose code{padding:.1em .35em;border-radius:6px;background:var(--deep);font-size:.95em}
.prose pre{padding:1rem;border-radius:var(--r);background:var(--deep);overflow:auto}
.prose hr{margin:2rem 0;border:0;border-top:1px dashed var(--line)}

.side{
  position:sticky;
  top:5rem;
  padding:1rem 1.1rem 1.2rem;
  border-radius:var(--r);
  font-size:.9rem;
  background:
    linear-gradient(180deg,rgba(1,205,254,.14),rgba(255,113,206,.06) 55%,transparent),
    #1e301f;
}
.side-t{margin:0 0 .6rem;font-size:.82rem;font-weight:500;letter-spacing:.3em;color:var(--neon)}
.side ul{list-style:none;margin:0;padding:0}
.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .1rem;
  color:var(--dim);
  text-decoration:none;
  border-bottom:1px dotted rgba(135,255,113,.2);
}
.side li:last-child a{border-bottom:0}
.side a:hover,.side a:focus-visible{color:var(--neon)}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem 2rem;
  padding:2rem clamp(1rem,4vw,2.5rem) 2.4rem;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(1,205,254,.08),rgba(255,113,206,.1));
}
.foot p{margin:0}
.copy{font-size:.85rem;letter-spacing:.06em;color:var(--dim)}
.sub{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.sub label{font-size:.8rem;letter-spacing:.14em;color:var(--dim)}
.sub input{
  width:10.5rem;
  max-width:100%;
  min-height:44px;
  padding:.5rem .7rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--deep);
  color:var(--ink);
  font:inherit;
  font-size:.85rem;
}
.sub input::placeholder{color:#6f8a6b}
.sub button{
  min-height:44px;
  padding:.5rem 1.05rem;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg,var(--neon),var(--cyan));
  color:#0e1a10;
  font:inherit;
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.1em;
  cursor:pointer;
}
.sub button:disabled{filter:saturate(.55);cursor:default}
.foot-c ul{display:flex;flex-wrap:wrap;gap:.2rem 1.1rem;list-style:none;margin:0;padding:0}
.foot-c a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--dim);
  font-size:.85rem;
  text-decoration:none;
}
.foot-c a:hover{color:var(--neon)}

.top{
  position:fixed;
  right:.9rem;
  bottom:.9rem;
  z-index:44;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.4rem .85rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(16,27,18,.92);
  color:var(--neon);
  font-size:.8rem;
  text-decoration:none;
}
.top:hover{border-color:var(--neon)}

/* 滚动出现 */
html.js [data-rev]{opacity:0;transform:translateY(22px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.3,1)}
html.js [data-rev].in{opacity:1;transform:none}

@media (max-width:820px){
  body{--top:5.5rem;--left:0px;padding:var(--top) 0 0}
  .rail{
    right:0;
    bottom:auto;
    width:auto;
    height:3.4rem;
    flex-direction:row;
    align-items:center;
    gap:.75rem;
    padding:0 .8rem;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .ticker{left:0;top:3.4rem;height:2.1rem;font-size:.7rem;letter-spacing:.14em}
  .brg[open] > summary{top:.55rem;right:.6rem}
  .hero{min-height:calc(100svh - var(--top));padding-top:2.4rem}
  .hero-copy{padding-bottom:1.4rem}
  .stage{grid-template-columns:minmax(0,1fr)}
  .side{position:static;order:2}
  .foot{flex-direction:column;align-items:flex-start;gap:1.15rem}
  .foot-c{width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  html.js [data-rev]{opacity:1;transform:none}
}

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