:root{
  --g:#87ff71;
  --y:#ffce5c;
  --ink:#192617;
  --paper:#eefbe6;
  --paper2:#dcf5cf;
  --card:#ffffff;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,'Noto Sans SC',system-ui,-apple-system,sans-serif;
  --disp:'Orbitron','JetBrains Mono',ui-monospace,system-ui,sans-serif;
  --max:1180px;
  --bd:3px solid var(--ink);
  --r:4px;
}

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

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

body{
  margin:0;
  font-family:var(--mono);
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(#19261720 1.2px,transparent 1.3px);
  background-size:20px 20px;
  overflow-x:hidden;
}

img{max-width:100%}
a{color:inherit}

/* ---------- 顶部 ---------- */
.mast{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--ink);
  border-bottom:4px solid var(--g);
}

.ticker{
  display:flex;
  gap:26px;
  overflow:hidden;
  white-space:nowrap;
  background:var(--g);
  color:var(--ink);
  font-size:12px;
  letter-spacing:.26em;
  padding:6px 12px;
  border-bottom:2px dashed var(--ink);
}

.bar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  padding:8px clamp(10px,3vw,26px);
}

.rail-l{justify-self:start}
.rail-r{justify-self:end}

.rail details{position:relative}

.rail summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 12px;
  border:2px solid var(--g);
  border-radius:var(--r);
  color:var(--g);
  font-size:15px;
  letter-spacing:.14em;
  background:transparent;
}
.rail summary::-webkit-details-marker{display:none}
.rail summary::before{
  content:"";
  width:0;height:0;
  border-left:8px solid var(--y);
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  transition:transform .2s ease;
}
.rail details[open] summary::before{transform:rotate(90deg)}
.rail summary:hover{background:#87ff711f}

.rail menu{
  margin:0;
  padding:6px;
  list-style:none;
  position:absolute;
  top:calc(100% + 10px);
  z-index:70;
  min-width:186px;
  background:var(--ink);
  border:2px solid var(--g);
  border-radius:var(--r);
  box-shadow:8px 8px 0 #87ff7133;
  display:grid;
  gap:2px;
}
.rail-l menu{left:0}
.rail-r menu{right:0}
.rail menu li{list-style:none;margin:0}
.rail menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  color:var(--paper);
  text-decoration:none;
  font-size:15px;
  border-bottom:1px dotted #87ff7140;
  border-radius:2px;
}
.rail menu li:last-child a{border-bottom:0}
.rail menu a:hover{background:var(--g);color:var(--ink)}

.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 8px;
  font-family:var(--disp);
  font-size:clamp(15px,2.1vw,21px);
  letter-spacing:.12em;
  color:var(--y);
  text-decoration:none;
}
.mark{
  width:32px;height:32px;object-fit:cover;
  border:2px solid var(--g);
  border-radius:3px;
  background:var(--paper2);
}

@media(min-width:1080px){
  .rail details{display:flex;align-items:center;gap:4px}
  .rail summary{padding:6px 10px;font-size:13px;letter-spacing:.1em;border-color:#87ff7166}
  .rail menu{
    position:static;
    display:flex;
    align-items:center;
    gap:2px;
    min-width:0;
    padding:0;
    background:none;
    border:0;
    box-shadow:none;
  }
  .rail menu a{
    border-bottom:0;
    padding:8px 10px;
    color:var(--paper);
    border-radius:3px;
  }
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:13vh clamp(16px,5vw,64px) 72px;
  overflow:hidden;
  border-bottom:4px solid var(--ink);
  background:
    repeating-linear-gradient(135deg,#ffce5c22 0 12px,transparent 12px 24px);
}

.hero::before{
  content:"";
  position:absolute;
  top:6vh;
  right:-46px;
  width:180px;
  height:180px;
  background:var(--g);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(10deg);
  mix-blend-mode:multiply;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:14px;
  background:repeating-linear-gradient(135deg,var(--y) 0 14px,transparent 14px 28px);
  border-top:2px dashed #19261755;
}

.hero-art{
  position:absolute;
  top:15vh;
  left:clamp(12px,4vw,58px);
  width:min(36vw,360px);
  height:min(54vh,480px);
  pointer-events:none;
  z-index:1;
}
.hero-art .pic{
  position:absolute;
  width:76%;
  aspect-ratio:3/4;
  object-fit:cover;
  border:var(--bd);
  border-radius:var(--r);
  background:var(--paper2);
  box-shadow:10px 12px 0 #19261726;
}
.hero-art .pic:nth-child(1){top:0;left:0;transform:rotate(-6deg)}
.hero-art .pic:nth-child(2){
  bottom:0;right:0;
  aspect-ratio:4/3;
  transform:rotate(5deg);
  z-index:2;
}

.hero-txt{
  position:relative;
  z-index:3;
  margin-left:auto;
  max-width:min(56ch,720px);
  text-align:right;
}

.hero h1{
  font-family:var(--disp);
  font-size:clamp(30px,5.4vw,60px);
  line-height:1.14;
  letter-spacing:.01em;
  margin:0 0 16px;
  text-shadow:6px 6px 0 var(--y);
}

.hero-desc{
  margin:0;
  margin-left:auto;
  max-width:46ch;
  font-size:16px;
  line-height:1.85;
  color:#2b3d28;
  background:#ffffffb8;
  border-right:6px solid var(--g);
  padding:10px 14px;
  border-radius:var(--r);
}

.hero-ghost{
  position:absolute;
  left:0;right:0;bottom:-1.5vw;
  z-index:0;
  text-align:center;
  white-space:nowrap;
  font-family:var(--disp);
  font-size:clamp(58px,15vw,178px);
  line-height:.86;
  letter-spacing:-.02em;
  color:transparent;
  -webkit-text-stroke:2px #19261733;
  mix-blend-mode:multiply;
  pointer-events:none;
}

/* ---------- 正文骨架 ---------- */
main{padding:0 clamp(13px,4vw,38px) 84px}

.doc{
  max-width:var(--max);
  margin:0 auto;
  padding-top:clamp(30px,5vw,58px);
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(20px,3vw,42px);
  align-items:start;
}

@media(min-width:860px){
  .doc{grid-template-columns:250px minmax(0,1fr)}
}

.side{
  border:var(--bd);
  border-radius:var(--r);
  background:var(--card);
  padding:16px 14px 18px;
  box-shadow:0 14px 28px #19261721;
}
@media(min-width:860px){
  .side{position:sticky;top:112px}
}

.side small{
  display:inline-block;
  font-size:11px;
  letter-spacing:.28em;
  background:var(--y);
  padding:2px 8px;
  border-radius:2px;
  border:2px solid var(--ink);
}

.side h2{
  font-family:var(--disp);
  font-size:19px;
  letter-spacing:.1em;
  margin:10px 0 12px;
}

.side ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}
.side li{list-style:none}
.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 8px;
  font-size:15px;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px dotted #19261745;
  border-radius:2px;
}
.side li:last-child a{border-bottom:0}
.side a:hover{background:var(--g)}

.prose{
  min-width:0;
  overflow-wrap:anywhere;
  background:var(--card);
  border:var(--bd);
  border-radius:var(--r);
  padding:clamp(18px,3.2vw,44px);
  box-shadow:0 16px 34px #1926171f;
}

.prose article{
  margin-top:38px;
  padding-top:8px;
  border-top:2px dashed #1926172b;
  scroll-margin-top:112px;
}
.prose article:first-child{margin-top:0;padding-top:0;border-top:0}

.prose h2{
  font-family:var(--disp);
  font-size:clamp(22px,2.5vw,30px);
  line-height:1.3;
  letter-spacing:.01em;
  margin:0 0 14px;
  padding-left:14px;
  border-left:7px solid var(--g);
}

.prose h3{
  font-family:var(--disp);
  font-size:clamp(18px,2vw,22px);
  line-height:1.4;
  margin:26px 0 10px;
  color:#20351d;
}

.prose p{margin:0 0 1.15em}
.prose ul,.prose ol{padding-left:1.35em;margin:0 0 1.15em}
.prose li{margin:0 0 .45em}
.prose li::marker{color:#2e7a3a}

.prose a{
  color:#1c6a2e;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.prose a:hover{background:var(--y);color:var(--ink)}

.prose img{
  height:auto;
  border:var(--bd);
  border-radius:var(--r);
  background:var(--paper2);
  box-shadow:8px 8px 0 #19261722;
}

.prose blockquote{
  margin:1.3em 0;
  padding:12px 16px;
  background:var(--paper2);
  border-left:7px solid var(--y);
  border-radius:var(--r);
}
.prose blockquote p:last-child{margin-bottom:0}

.prose table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
  margin:0 0 1.2em;
  display:block;
  overflow-x:auto;
}
.prose th,.prose td{
  border:2px solid #19261733;
  padding:8px 10px;
  text-align:left;
}
.prose th{background:var(--paper2)}

.prose code,.prose pre{
  font-family:var(--mono);
  background:var(--paper2);
  border-radius:3px;
}
.prose code{padding:1px 5px}
.prose pre{padding:12px 14px;overflow-x:auto;border:2px dashed #19261744}

.prose hr{
  border:0;
  border-top:3px dotted #19261744;
  margin:2em 0;
}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:var(--paper);
  border-top:6px solid var(--g);
}

.cta{
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(28px,6vw,62px) clamp(16px,4vw,38px);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:2px dashed #87ff7144;
  background-image:repeating-linear-gradient(135deg,#87ff7112 0 10px,transparent 10px 20px);
}
.cta p{
  margin:0;
  font-family:var(--disp);
  font-size:clamp(23px,5vw,52px);
  line-height:1.12;
  letter-spacing:.06em;
  color:var(--g);
  text-shadow:4px 4px 0 #87ff7122;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:50px;
  padding:0 22px;
  background:var(--y);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  letter-spacing:.16em;
  border:3px solid var(--g);
  border-radius:var(--r);
  box-shadow:6px 6px 0 #87ff7138;
}
.cta-btn:hover{background:var(--g)}

.fgrid{
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(22px,4vw,42px) clamp(16px,4vw,38px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
@media(min-width:780px){
  .fgrid{grid-template-columns:1.5fr 1fr 1fr 1fr}
}

.fcol ul{list-style:none;margin:0;padding:0}
.fcol li{list-style:none}
.fcol a{
  display:flex;
  align-items:center;
  min-height:42px;
  font-size:15px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px dotted #87ff7135;
}
.fcol a:hover{color:var(--g)}
.fbrand{
  font-family:var(--disp);
  color:var(--y);
  letter-spacing:.12em;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:17px;
}

.base{
  max-width:var(--max);
  margin:0 auto;
  padding:14px clamp(16px,4vw,38px) 32px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 20px;
  border-top:2px dashed #87ff7144;
}
.base address{
  font-style:normal;
  font-size:14px;
  color:#c8e2bd;
  letter-spacing:.08em;
}
.base ul{
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  list-style:none;
  margin:0;
  padding:0;
}
.base a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:14px;
  color:var(--g);
  text-decoration:none;
}
.base a:hover{text-decoration:underline}

/* ---------- 动效 ---------- */
.rv{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease,transform .52s cubic-bezier(.2,.7,.25,1);
}
.rv.in{opacity:1;transform:none}

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

/* ---------- 窄屏微调 ---------- */
@media(max-width:760px){
  .ticker{display:none}
  .hero{padding-top:9vh;min-height:auto}
  .hero-art{
    position:static;
    width:auto;height:auto;
    display:flex;
    gap:12px;
    margin-bottom:22px;
  }
  .hero-art .pic{
    position:static;
    width:47%;
    aspect-ratio:4/5;
    transform:rotate(-3deg);
    box-shadow:7px 7px 0 #19261726;
  }
  .hero-art .pic:nth-child(2){transform:rotate(3deg)}
  .hero h1{text-shadow:4px 4px 0 var(--y)}
  .hero-ghost{font-size:44vw;bottom:-6px}
  .hero-desc{margin-left:auto}
  .foot .cta{justify-content:flex-start}
}

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