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

:root{
  --acid:#80ff00;
  --lime:#00ff00;
  --ink:#1f2617;
  --deep:#0b0f08;
  --paper:#f4ffdf;
  --paper2:#e3ffbc;
  --rail:212px;
}

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

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

body{
  margin:0;
  background:var(--deep);
  color:var(--ink);
  font:400 17px/1.65 'Rubik',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  letter-spacing:.01em;
}

h1,h2,h3,h4,.ghost,.fbig,summary,.topcta a{
  font-family:'Outfit','Rubik',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
}

img{display:block;max-width:100%}
p{margin:0 0 1em}
a{color:inherit}
::selection{background:var(--lime);color:var(--ink)}
:focus-visible{outline:3px solid var(--lime);outline-offset:3px}

/* 左侧竖排导轨 */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  padding:18px 16px;
  display:flex;
  flex-direction:column;
  gap:18px;
  background:linear-gradient(180deg,#1b2314,#0a0e07 62%,#161e10);
  border-right:3px solid var(--acid);
  z-index:70;
}

.mark{
  width:52px;
  height:52px;
  min-height:44px;
  border-radius:16px;
  background:var(--acid);
  color:var(--ink);
  display:grid;
  place-items:center;
  text-decoration:none;
  transform:rotate(-7deg);
  box-shadow:4px 4px 0 rgba(0,0,0,.75);
}
.mark img{width:42px;height:42px;border-radius:10px;object-fit:cover}
.mark .glyph{font-size:26px;font-weight:700;line-height:1}

.drawer summary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  background:var(--lime);
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  list-style:none;
  user-select:none;
  transform:rotate(1.5deg);
  animation:jit2 5s ease-in-out infinite;
}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary span{font-size:14px}

.drawer menu{
  margin:16px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:4px;
}
.drawer li{display:flex;align-items:flex-start;gap:6px}
.drawer .n{
  min-width:18px;
  padding-top:13px;
  font-size:13px;
  line-height:1;
  color:var(--acid);
  opacity:.65;
  font-variant-numeric:tabular-nums;
}
.drawer a{
  display:block;
  flex:1;
  min-height:44px;
  padding:10px;
  border-radius:12px;
  color:#e9ffd2;
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  text-decoration:none;
}
.drawer a:hover,.drawer a:focus-visible{background:var(--acid);color:var(--ink)}

.topcta{position:fixed;top:18px;right:18px;z-index:80}
.topcta a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:12px 22px;
  border:3px solid var(--ink);
  border-radius:999px;
  background:var(--acid);
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  transform:rotate(-3deg);
  box-shadow:6px 6px 0 rgba(0,0,0,.75);
  animation:jit 4.5s ease-in-out infinite;
}

/* 页面栅格 */
.shell{
  position:relative;
  z-index:2;
  margin-left:var(--rail);
  display:grid;
  grid-template-columns:206px minmax(0,1fr);
  gap:26px;
  padding:0 26px 0 20px;
}
main{min-width:0}
article{max-width:820px;padding-bottom:44px}

/* 固定英雄层 */
.hero{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:radial-gradient(120% 80% at 72% 8%,#33461f,#0a0e07 72%);
  will-change:transform;
}
.hero::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(190deg,rgba(11,16,7,.45),rgba(11,16,7,.8) 52%,rgba(11,16,7,.96));
  mix-blend-mode:multiply;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(165%) contrast(1.06);
  opacity:.94;
}
.ghost{
  position:absolute;
  left:2vw;
  top:6vh;
  z-index:0;
  margin:0;
  max-width:70vw;
  font-size:clamp(54px,12vw,180px);
  font-weight:700;
  line-height:.78;
  letter-spacing:-.045em;
  text-align:left;
  color:transparent;
  -webkit-text-stroke:2px var(--acid);
  opacity:.5;
  mix-blend-mode:screen;
  pointer-events:none;
}

/* 首屏标题区 */
.hero-head{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  min-height:100vh;
  min-height:100svh;
  padding:120px 34px 84px;
  text-align:right;
}
.hero-head h1{
  margin:0;
  max-width:14ch;
  font-size:clamp(40px,7.4vw,84px);
  line-height:.98;
  letter-spacing:-.04em;
  color:#f2ffdd;
  text-shadow:0 4px 0 rgba(11,15,8,.5);
}

/* 正文区块 */
article > section{
  position:relative;
  z-index:1;
  padding:60px 34px;
  background:var(--paper);
  color:var(--ink);
  border-top:3px dashed rgba(31,38,23,.34);
  scroll-margin-top:96px;
}
article > section:first-of-type{
  padding-top:64px;
  border-top:3px solid var(--acid);
}

article h2{
  display:inline-block;
  margin:1.5em 0 .5em;
  font-size:clamp(26px,4.3vw,42px);
  line-height:1.08;
  letter-spacing:-.02em;
}
article h2 > span,article h3 > span{
  display:inline-block;
  padding:.04em .2em;
  border-radius:16px;
  background:var(--acid);
  color:var(--ink);
  transform:rotate(-.8deg);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
article h2 > span .stk,article h3 > span .stk{color:var(--ink);opacity:.5}
article h3{
  display:inline-block;
  margin:1.4em 0 .4em;
  font-size:clamp(21px,2.7vw,26px);
  line-height:1.2;
}
article p{max-width:64ch}
article ul,article ol{max-width:62ch;padding-left:1.25em}
article li{margin:.35em 0}
article strong{font-weight:700}
article a{
  color:#315a00;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
article time{
  display:inline-block;
  margin-bottom:.5em;
  padding:3px 12px;
  border-radius:999px;
  background:var(--ink);
  color:var(--acid);
  font-size:15px;
  font-weight:600;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
article blockquote{
  margin:1.4em 0;
  padding:16px 20px;
  border-left:6px solid var(--acid);
  border-radius:0 20px 20px 0;
  background:var(--paper2);
  font-weight:500;
}
article blockquote p:last-child{margin:0}
article img{margin:1.2em 0;border-radius:24px}
article hr{border:0;border-top:3px dotted rgba(31,38,23,.4);margin:1.8em 0}

/* 侧边索引 */
.idx{
  position:sticky;
  top:96px;
  align-self:start;
  z-index:3;
  margin-top:140px;
  padding:16px 14px;
  border:3px solid var(--acid);
  border-radius:26px;
  background:rgba(19,26,12,.95);
  transform:rotate(-1.2deg);
  box-shadow:8px 8px 0 rgba(0,0,0,.55);
}
.idx-t{margin:0 0 10px;font-size:18px;color:var(--acid);line-height:1.2}
.idx-t > span{display:inline-flex;align-items:baseline;gap:6px}
.stk{color:var(--acid);font-size:.7em}
.idx ol{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.idx a{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-height:44px;
  padding:9px 8px;
  border-radius:12px;
  color:#e6ffcd;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
}
.idx a:hover,.idx a:focus-visible{background:var(--acid);color:var(--ink)}
.idx .num{font-size:13px;line-height:1;color:var(--acid);opacity:.7;font-variant-numeric:tabular-nums}
.idx a:hover .num{color:var(--ink);opacity:1}

/* 跑马灯贴条 */
.tape{
  position:relative;
  z-index:4;
  margin-left:var(--rail);
  padding:10px 0;
  overflow:hidden;
  white-space:nowrap;
  background:var(--lime);
  color:var(--ink);
  border-top:3px solid var(--ink);
  border-bottom:3px solid var(--ink);
  font-weight:700;
  font-size:18px;
  mix-blend-mode:multiply;
}
.tape span{display:inline-block;padding-right:1.4rem;animation:tape 26s linear infinite}

/* 页脚 */
.foot{
  position:relative;
  z-index:3;
  margin-left:var(--rail);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:44px 30px;
  background:var(--ink);
  color:var(--paper);
  border-top:4px solid var(--acid);
}
.fbig{margin:0;font-size:clamp(26px,4.6vw,48px);line-height:1;letter-spacing:-.03em}
.fbig > span{display:inline-flex;align-items:flex-start;gap:8px}
.fbig a{color:var(--acid);text-decoration:none}
.fnav{display:flex;flex-wrap:wrap;gap:2px 6px;max-width:430px}
.fnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 12px;
  border-radius:999px;
  color:var(--paper);
  font-size:16px;
  text-decoration:none;
}
.fnav a:hover,.fnav a:focus-visible{background:var(--acid);color:var(--ink)}
.fbot{font-size:16px;color:#bfd59b}

/* 入场 */
.js article > section{opacity:0;transform:translateY(26px)}
.js article > section.seen{
  opacity:1;
  transform:none;
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.9,.2,1);
}

@keyframes jit{
  0%,100%{transform:rotate(-3deg) translateY(0)}
  50%{transform:rotate(-1.2deg) translateY(-3px)}
}
@keyframes jit2{
  0%,100%{transform:rotate(1.5deg)}
  50%{transform:rotate(3.4deg)}
}
@keyframes tape{to{transform:translateX(-50%)}}

@media (max-width:900px){
  .rail{
    inset:0 0 auto 0;
    width:auto;
    height:64px;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:0 120px 0 12px;
    border-right:0;
    border-bottom:3px solid var(--acid);
  }
  .mark{width:44px;height:44px;border-radius:12px}
  .mark img{width:36px;height:36px}
  .drawer summary{padding:9px 14px}
  .drawer menu{
    position:fixed;
    top:70px;
    left:10px;
    right:10px;
    z-index:95;
    margin:0;
    padding:10px;
    max-height:70vh;
    overflow:auto;
    background:#161e10;
    border:3px solid var(--acid);
    border-radius:24px;
    box-shadow:0 12px 0 rgba(0,0,0,.45);
  }
  .topcta{top:9px;right:10px}
  .topcta a{min-height:44px;padding:10px 16px;font-size:15px}
  .shell{
    display:flex;
    flex-direction:column;
    margin-left:0;
    padding:64px 0 0;
    gap:0;
  }
  main{order:1}
  .idx{order:2;position:static;margin:24px 16px 0}
  article{max-width:none;padding-bottom:26px}
  .hero-head{
    align-items:flex-start;
    text-align:left;
    min-height:calc(100svh - 64px);
    padding:84px 18px 56px;
  }
  .hero-head h1{font-size:clamp(34px,10.5vw,58px);max-width:15ch}
  article > section{padding:44px 18px;scroll-margin-top:80px}
  article > section:first-of-type{padding-top:40px}
  article h2{font-size:clamp(24px,7vw,34px)}
  .ghost{left:2vw;top:9vh;font-size:clamp(44px,16vw,104px);opacity:.4}
  .tape{margin-left:0;font-size:16px}
  .foot{margin-left:0;flex-direction:column;align-items:flex-start;padding:34px 18px}
  .fnav{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js article > section{opacity:1;transform:none}
}

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