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

:root{
  --ink:#192617;
  --ink-2:#20301f;
  --ink-3:#0f1a10;
  --neon:#87ff71;
  --sun:#ffce5c;
  --paper:#f2f7ea;
  --tint:#d9efd0;
  --nav-w:100px;
  --serif:Newsreader,Georgia,"Songti SC",serif;
  --sans:Roboto,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:var(--tint);
  font:400 17px/1.78 var(--sans);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(135,255,113,.16) 1px,transparent 1px);
  background-size:24px 24px;
  opacity:.45;
}

h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.15;margin:0}
p{margin:0 0 18px}
a{color:var(--sun)}

.page{position:relative;z-index:1;padding-left:var(--nav-w)}

/* ---------- 顶部细条 ---------- */
.notice{
  position:fixed;
  left:var(--nav-w);
  right:0;
  top:0;
  z-index:30;
  margin:0;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:0 20px;
  background:var(--sun);
  color:var(--ink);
  font-size:14px;
  font-weight:700;
  letter-spacing:.16em;
  border-bottom:3px solid var(--ink);
}
.notice::before{content:"◆";font-size:12px}
.notice::after{content:"◆";font-size:12px}

/* ---------- 左侧固定竖排导航 ---------- */
.rail-nav{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  z-index:40;
  width:var(--nav-w);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:16px 9px;
  background:var(--ink-3);
  border-right:3px solid var(--neon);
  overflow-y:auto;
}

.mark{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:48px;
  height:48px;
  background:var(--neon);
  color:var(--ink);
  font:700 26px/1 var(--serif);
  text-decoration:none;
  transform:rotate(-5deg);
  clip-path:polygon(0 0,100% 0,100% 70%,70% 100%,0 100%);
  border-bottom:4px solid var(--sun);
}

.grps{display:flex;flex-direction:column;gap:8px;width:100%}

.grp{width:100%}

.glabel{
  display:block;
  text-align:center;
  font-size:16px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--sun);
  padding:8px 2px;
  border:2px dashed rgba(255,206,92,.45);
  cursor:default;
}

.grp ul{
  list-style:none;
  margin:0;
  padding:0;
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .35s ease,opacity .25s ease;
}
.grp:hover ul,
.grp:focus-within ul{max-height:340px;opacity:1}

.grp a{
  display:block;
  padding:12px 4px;
  min-height:44px;
  font-size:16px;
  text-align:center;
  color:var(--tint);
  text-decoration:none;
  border-bottom:1px dotted rgba(135,255,113,.35);
}
.grp a:hover,
.grp a:focus-visible{background:var(--neon);color:var(--ink);outline:0}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  overflow:hidden;
  padding:44px 34px 40px;
  background:
    repeating-linear-gradient(135deg,rgba(135,255,113,.09) 0 16px,transparent 16px 32px),
    var(--ink-2);
  border-bottom:4px solid var(--neon);
}

.hero-art{position:absolute;inset:0;z-index:0}
.hero-art img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(.3) contrast(1.08)}

.hero-veil{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(205deg,rgba(25,38,23,.15) 10%,rgba(25,38,23,.9) 78%),
    rgba(135,255,113,.3);
  mix-blend-mode:multiply;
}

.shp{position:absolute;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:.85}
.s1{width:130px;height:130px;background:var(--sun);clip-path:polygon(50% 0,100% 100%,0 100%);left:5%;top:14%;transform:rotate(-9deg)}
.s2{width:86px;height:86px;background:var(--neon);clip-path:polygon(50% 0,100% 100%,0 100%);left:20%;bottom:14%;transform:rotate(14deg)}
.s3{width:150px;height:150px;border:7px solid var(--sun);border-radius:50%;right:36%;top:11%;opacity:.5}
.s4{width:64px;height:64px;background:var(--neon);right:8%;top:20%;transform:rotate(22deg);opacity:.7}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:min(880px,88%);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:16px;
  text-align:right;
}

.badge{
  display:inline-block;
  background:var(--sun);
  color:var(--ink);
  border:3px solid var(--ink);
  padding:6px 14px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.16em;
  transform:rotate(-3deg);
  box-shadow:5px 5px 0 rgba(135,255,113,.85);
}

.hero h1{
  font-size:clamp(34px,7vw,74px);
  line-height:1.02;
  color:var(--paper);
  text-shadow:3px 3px 0 var(--ink),7px 7px 0 rgba(255,206,92,.55);
  letter-spacing:-.015em;
}

/* ---------- 主体 ---------- */
.stage{
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  align-items:start;
}

.rail{
  position:sticky;
  top:36px;
  align-self:start;
  padding:30px 16px 40px;
  background:rgba(15,26,16,.72);
  border-right:2px dashed rgba(135,255,113,.3);
}

.rail-head small{
  display:inline-block;
  font-size:16px;
  letter-spacing:.22em;
  color:var(--sun);
  margin-bottom:4px;
}
.rail-head h2{
  font-size:22px;
  color:var(--neon);
  margin-bottom:18px;
  border-bottom:3px solid var(--neon);
  padding-bottom:10px;
}

.rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rail-list a{
  display:flex;
  gap:8px;
  align-items:baseline;
  padding:11px 6px;
  min-height:44px;
  font-size:16px;
  color:var(--tint);
  text-decoration:none;
  border-left:3px solid transparent;
}
.rail-list .num{
  font-family:var(--serif);
  font-size:14px;
  color:var(--neon);
  letter-spacing:.05em;
  flex:0 0 auto;
}
.rail-list a:hover,
.rail-list a.on{
  background:var(--neon);
  color:var(--ink);
  border-left-color:var(--sun);
}
.rail-list a:hover .num,
.rail-list a.on .num{color:var(--ink)}

.doc{padding:0 32px 70px;min-width:0}
.body{max-width:840px;padding-top:10px}

/* ---------- 正文排版 ---------- */
.body section{
  padding:44px 0;
  border-bottom:2px dashed rgba(135,255,113,.28);
  scroll-margin-top:76px;
}
.body section:last-child{border-bottom:0}

.body small{
  display:inline-block;
  font-size:16px;
  letter-spacing:.2em;
  color:var(--sun);
  margin-bottom:6px;
}

.body h2{
  font-size:clamp(26px,3.4vw,40px);
  color:var(--neon);
  margin:0 0 18px;
  letter-spacing:-.01em;
}
.body h3{
  font-size:clamp(21px,2.4vw,26px);
  color:var(--paper);
  margin:28px 0 12px;
}
.body h3::before{content:"";display:inline-block;width:12px;height:12px;background:var(--sun);margin-right:10px;transform:rotate(45deg)}

.body p{font-size:17px;line-height:1.85}
.body a{
  color:var(--sun);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.body a:hover{color:var(--neon)}

.body ul,
.body ol{margin:0 0 20px;padding-left:22px}
.body li{margin:6px 0;line-height:1.8}
.body ul li::marker{color:var(--neon)}
.body ol li::marker{color:var(--sun);font-family:var(--serif)}

.body blockquote{
  margin:24px 0;
  padding:16px 20px;
  border-left:6px solid var(--sun);
  background:rgba(135,255,113,.07);
  font-style:normal;
}
.body blockquote p:last-child{margin:0}

.body img{
  max-width:100%;
  height:auto;
  display:block;
  margin:20px 0;
  border:3px solid var(--neon);
}

.body figure{margin:22px 0}
.body figcaption{font-size:16px;color:#a9c8a3}

.body table{width:100%;border-collapse:collapse;margin:20px 0;font-size:16px}
.body th,
.body td{border:2px solid rgba(135,255,113,.35);padding:10px 12px;text-align:left}
.body th{background:rgba(255,206,92,.16);color:var(--sun)}
.body code{font-family:ui-monospace,Consolas,monospace;font-size:15px;background:rgba(135,255,113,.12);padding:1px 5px}

.body hr{border:0;border-top:3px dashed rgba(255,206,92,.5);margin:26px 0}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  margin-top:30px;
  padding:46px 30px 0;
  display:grid;
  grid-template-columns:1.3fr 1.4fr 1fr 1fr;
  gap:26px 28px;
  background:
    repeating-linear-gradient(45deg,rgba(255,206,92,.07) 0 12px,transparent 12px 24px),
    var(--ink-3);
  border-top:4px solid var(--neon);
}
.foot section{min-width:0}

.fbrand{
  font-family:var(--serif);
  font-size:24px;
  color:var(--neon);
  margin:0 0 10px;
}
.fdesc{font-size:16px;color:#a9c8a3;margin:0}

.foot dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}
.foot dt{
  grid-column:1/-1;
  color:var(--sun);
  font-size:16px;
  letter-spacing:.14em;
  border-bottom:1px dotted rgba(255,206,92,.5);
  padding-bottom:4px;
  margin:12px 0 4px;
}
.foot dt:first-child{margin-top:0}
.foot dd{margin:0}
.foot dd a{
  display:block;
  padding:11px 0;
  min-height:44px;
  font-size:16px;
  color:var(--tint);
  text-decoration:none;
}
.foot dd a:hover{color:var(--neon)}

.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.chips li{
  font-size:16px;
  padding:6px 12px;
  border:2px solid var(--neon);
  color:var(--neon);
  transform:rotate(-1.5deg);
}
.chips li:nth-child(even){border-color:var(--sun);color:var(--sun);transform:rotate(1.5deg)}

.totop{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--neon);
  text-decoration:none;
  border-bottom:5px solid var(--sun);
  clip-path:polygon(0 0,100% 0,100% 100%,9% 100%);
}

.copy{
  grid-column:1/-1;
  margin:26px -30px 0;
  padding:16px 30px;
  border-top:2px dashed rgba(135,255,113,.3);
  font-size:14px;
  letter-spacing:.08em;
  color:#96b791;
}

/* ---------- 动效 ---------- */
.rv{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .6s cubic-bezier(.2,.8,.2,1);
  transition-delay:calc(var(--i,0) * 55ms);
}
.rv.in{opacity:1;transform:none}

.mark{transition:transform .35s ease}
.mark:hover{transform:rotate(6deg) scale(1.06)}

/* ---------- 移动端 ---------- */
@media (max-width:960px){
  :root{--nav-w:0px}
  .page{padding-left:0;padding-top:58px}

  .rail-nav{
    left:0;
    right:0;
    bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-right:0;
    border-bottom:3px solid var(--neon);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  .mark{width:40px;height:40px;font-size:20px;margin-right:4px}
  .grps{flex-direction:row;align-items:center;gap:14px;width:auto}
  .grp{width:auto}
  .glabel{border:0;padding:6px 2px;white-space:nowrap}
  .grp ul{
    display:flex;
    gap:2px;
    max-height:none;
    opacity:1;
    overflow:visible;
  }
  .grp a{padding:12px 9px;min-height:44px;white-space:nowrap;border-bottom:0}
  .grp a:hover,.grp a:focus-visible{background:var(--neon);color:var(--ink)}

  .notice{position:static;height:auto;justify-content:center;padding:9px 12px;letter-spacing:.12em}

  .hero{min-height:62vh;padding:36px 18px 28px}
  .hero-copy{max-width:100%}
  .s3{right:12%;top:8%;width:110px;height:110px}
  .s1{width:90px;height:90px;left:6%;top:9%}
  .s2{left:10%;bottom:10%}
  .s4{display:none}

  .stage{display:block}
  .rail{
    position:static;
    padding:20px 16px 14px;
    border-right:0;
    border-bottom:2px dashed rgba(135,255,113,.3);
  }
  .rail-head h2{font-size:20px;margin-bottom:12px}
  .rail-list{flex-direction:row;flex-wrap:wrap;gap:6px}
  .rail-list a{
    border-left:0;
    border:2px solid rgba(135,255,113,.45);
    padding:9px 10px;
  }
  .rail-list a.on{border-color:var(--sun)}

  .doc{padding:0 16px 48px}
  .body{padding-top:0}
  .body section{padding:32px 0;scroll-margin-top:76px}

  .foot{grid-template-columns:1fr 1fr;padding:34px 16px 0;gap:20px}
  .copy{margin:20px -16px 0;padding:14px 16px}
  .totop{width:100%}
}

@media (max-width:520px){
  body{font-size:17px}
  .foot{grid-template-columns:1fr}
  .foot dl{grid-template-columns:1fr}
  .hero{min-height:56vh}
  .rail-list a{font-size:16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .mark{transition:none}
}

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