@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --neon:#87ff71;
  --sun:#ffce5c;
  --ink:#192617;
  --leaf:#2b6f27;
  --mint:#dcffd3;
  --paper:#f1f6e9;
  --maxw:1160px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"DM Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:clip;
}

h1,h2,h3,.cta,.brandline,.fcta a{
  font-family:"Space Grotesk","DM Sans","PingFang SC",system-ui,sans-serif;
  font-weight:700;
  line-height:1.16;
  letter-spacing:-.02em;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px clamp(10px,3vw,28px);
  background:var(--ink);
  border-bottom:3px dashed var(--neon);
}

.mark{
  flex:0 0 40px;
  width:40px;
  height:40px;
  position:relative;
  display:grid;
  place-items:center;
  text-decoration:none;
}
.mark span{
  position:absolute;
  inset:2px;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
  transform:rotate(-10deg);
}
.mark span::after{
  content:"";
  position:absolute;
  inset:12px;
  background:var(--ink);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.mark .glyph{
  position:relative;
  z-index:1;
  font-style:normal;
  font-weight:700;
  font-size:14px;
  color:var(--ink);
  line-height:1;
}

.nav{flex:1 1 auto;min-width:0}
.nav p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 11px;
  font-size:16px;
  line-height:1.3;
  color:var(--neon);
  text-decoration:none;
  border-radius:4px;
  border:1.5px dashed transparent;
  white-space:nowrap;
}
.nav a:hover,.nav a:focus-visible{
  background:var(--neon);
  color:var(--ink);
  border-color:var(--ink);
}

.cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 16px;
  font-size:16px;
  text-decoration:none;
  background:var(--sun);
  color:var(--ink);
  clip-path:polygon(7% 0,100% 0,93% 100%,0 100%);
  transform:rotate(-2deg);
  transition:transform .18s ease,background .18s ease;
}
.cta:hover,.cta:focus-visible{background:var(--neon);transform:rotate(1deg)}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:70vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:clamp(40px,7vw,86px) 20px clamp(72px,11vw,124px);
  background:var(--neon);
  clip-path:polygon(0 0,100% 0,100% 88%,0 100%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(135deg,rgba(25,38,23,.09) 0 12px,transparent 12px 26px);
  z-index:0;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.45;
  mix-blend-mode:multiply;
  z-index:0;
}
.hero-in{
  position:relative;
  z-index:2;
  max-width:840px;
  margin:0 auto;
}
.brandline{
  margin:0 0 12px;
  font-size:clamp(13px,2.2vw,17px);
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--ink);
}
.brandline span{
  display:inline-block;
  padding:4px 12px;
  background:var(--ink);
  color:var(--sun);
  clip-path:polygon(4% 0,100% 0,96% 100%,0 100%);
}
.hero h1{
  margin:0;
  font-size:clamp(26px,5.2vw,56px);
  line-height:1.12;
}
.lede{
  max-width:620px;
  margin:18px auto 0;
  font-size:clamp(16px,1.5vw,18px);
  color:#20301e;
}

.blob{position:absolute;z-index:1;pointer-events:none;mix-blend-mode:multiply}
.b1{
  width:150px;
  height:150px;
  left:-42px;
  top:16%;
  border-radius:50%;
  background:var(--sun);
}
.b2{
  width:0;
  height:0;
  right:5%;
  bottom:14%;
  border-left:58px solid transparent;
  border-right:58px solid transparent;
  border-bottom:104px solid var(--ink);
  opacity:.7;
  transform:rotate(16deg);
}

/* ---------- 主体 ---------- */
main{display:block}

.board{
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(22px,4vw,44px) clamp(14px,3vw,26px) clamp(46px,8vw,84px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 262px;
  gap:26px 30px;
  align-items:start;
}
.strip{
  grid-column:1/-1;
  margin:0;
  height:24px;
  overflow:hidden;
}
.strip svg{width:100%;height:100%;display:block}

.prose{grid-column:1;min-width:0}
.rail{grid-column:2}

/* ---------- 正文 ---------- */
.prose section{
  background:#fff;
  border-radius:4px;
  padding:24px clamp(16px,3vw,30px) 28px;
  margin:0 0 20px;
}
.prose section:nth-child(even){background:var(--mint)}
.prose section[id]{scroll-margin-top:104px}
.prose section:last-child{margin-bottom:0}

.prose h2{
  font-size:clamp(21px,3vw,29px);
  margin:0 0 .55em;
}
.prose h3{
  font-size:clamp(18px,2.2vw,22px);
  margin:1.2em 0 .5em;
}
.prose h2 > span,.prose h3 > span{
  background:linear-gradient(transparent 60%,var(--sun) 60%);
  padding-bottom:.06em;
}
.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.25em}
.prose li{margin:0 0 .45em}
.prose li::marker{color:var(--leaf);font-weight:700}
.prose a{
  color:var(--leaf);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-decoration-color:var(--neon);
  text-underline-offset:3px;
}
.prose a:hover{background:var(--neon);color:var(--ink);text-decoration-color:var(--ink)}
.prose strong{background:var(--sun);padding:0 .18em}
.prose blockquote{
  margin:0 0 1em;
  padding:10px 16px;
  border-left:5px solid var(--neon);
  background:#fafcf6;
  border-radius:0 4px 4px 0;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose img{border-radius:4px;margin:0 0 1em}
.prose figure{margin:0 0 1em}
.prose hr{
  border:0;
  border-top:3px dotted var(--ink);
  opacity:.35;
  margin:22px 0;
}
.prose table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1em}
.prose th,.prose td{border-bottom:1px dotted #9ab894;padding:8px 6px;text-align:left}
.prose th{background:var(--sun)}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:96px;
  align-self:start;
  padding:16px 16px 18px;
  background:var(--sun);
  border:3px dashed var(--ink);
  border-radius:4px;
  transform:rotate(1.5deg);
}
.rail h2{
  margin:0 0 12px;
  font-size:16px;
  letter-spacing:.14em;
}
.rail h2 > span{
  display:inline-block;
  border-bottom:3px solid var(--ink);
  padding-bottom:2px;
}
.rail ul{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.rail a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:5px 9px;
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  background:rgba(255,255,255,.55);
  border-left:4px solid var(--ink);
  border-radius:0 4px 4px 0;
}
.rail a:hover,.rail a:focus-visible{background:var(--ink);color:var(--neon)}

/* ---------- 页脚 ---------- */
footer{
  background:var(--ink);
  color:var(--neon);
  padding:clamp(32px,6vw,62px) clamp(14px,4vw,42px) 24px;
  background-image:repeating-linear-gradient(45deg,rgba(135,255,113,.09) 0 10px,transparent 10px 22px);
  clip-path:polygon(0 14px,100% 0,100% 100%,0 100%);
}
.fcta{
  display:flex;
  justify-content:center;
  margin-bottom:clamp(28px,5vw,50px);
}
.fcta a{
  display:inline-block;
  padding:.1em .55em .16em;
  font-size:clamp(30px,8vw,74px);
  text-decoration:none;
  color:var(--ink);
  background:var(--neon);
  clip-path:polygon(0 8%,100% 0,97% 92%,3% 100%);
  transition:background .2s ease,transform .2s ease;
}
.fcta a:hover,.fcta a:focus-visible{background:var(--sun);transform:rotate(-1.5deg)}

.fbot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
  padding-top:16px;
  border-top:2px dashed rgba(135,255,113,.45);
}
.fbot p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  font-size:16px;
}
.cr{letter-spacing:.08em}
.fbot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 11px;
  text-decoration:none;
  color:var(--neon);
  border:1px dashed rgba(135,255,113,.55);
  border-radius:4px;
}
.fbot a:hover,.fbot a:focus-visible{background:var(--neon);color:var(--ink);border-style:solid}

/* ---------- 滚动出现 ---------- */
.js-on .rev{
  opacity:0;
  transform:translateY(16px);
}
.js-on .rev.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}

/* ---------- 断点 ---------- */
@media (max-width:940px){
  .board{grid-template-columns:minmax(0,1fr)}
  .prose{grid-column:1}
  .rail{
    grid-column:1;
    position:static;
    transform:none;
    margin-top:4px;
  }
}

@media (max-width:680px){
  body{font-size:16px}
  .top{padding:8px 10px;gap:8px}
  .nav p{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .nav p::-webkit-scrollbar{display:none}
  .nav a{padding:6px 9px;font-size:15px}
  .cta{padding:8px 12px;font-size:15px}
  .hero{
    min-height:56vh;
    padding:26px 16px 64px;
    clip-path:polygon(0 0,100% 0,100% 93%,0 100%);
  }
  .b1{width:96px;height:96px;top:8%;left:-32px}
  .b2{border-left-width:38px;border-right-width:38px;border-bottom-width:70px;bottom:10%}
  .prose section{padding:20px 15px 24px;margin-bottom:16px}
  .fbot{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js-on .rev{opacity:1;transform:none;transition:none}
  .cta,.fcta a{transition:none}
}

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