:root{
  --ink:#192617;
  --lime:#87ff71;
  --amber:#ffce5c;
  --paper:#f4f8ed;
  --deep:#2c4227;
  --sans:'Public Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --serif:'Libre Bodoni',Georgia,'Songti SC',serif;
  --hr:repeating-linear-gradient(135deg,var(--lime) 0 10px,var(--ink) 10px 15px);
}

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

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

body{
  margin:0;
  background-color:var(--paper);
  background-image:radial-gradient(rgba(25,38,23,.11) 1px,transparent 1px);
  background-size:26px 26px;
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  overflow-x:clip;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
p{margin:0 0 1em}
h1,h2,h3{margin:0 0 .35em}

hr{
  border:0;
  height:9px;
  margin:12px 0 20px;
  background:var(--hr);
}

/* ---------- 顶部导航 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--ink);
  color:var(--paper);
  border-bottom:3px solid var(--ink);
  box-shadow:0 4px 0 var(--amber);
}

.bar{
  max-width:1180px;
  margin:0 auto;
  padding:7px 14px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:6px;
}

.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:6px 8px;
  text-decoration:none;
  font-family:var(--serif);
  font-size:21px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--lime);
  transform:rotate(-1deg);
}
.brand .mark,
.brand img{
  width:32px;
  height:32px;
  object-fit:contain;
}
.brand:hover{color:var(--amber)}

.sideR{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:8px;
}

.dd{position:relative}
.dd-start{justify-self:start}

summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:6px 13px;
  border:3px solid var(--lime);
  color:var(--lime);
  font-size:16px;
  font-weight:700;
  letter-spacing:.04em;
  user-select:none;
}
summary::-webkit-details-marker{display:none}
summary::marker{content:''}
.dd[open] summary{background:var(--lime);color:var(--ink);border-color:var(--ink)}
summary:hover{background:var(--deep);color:var(--paper)}
.dd[open] summary:hover{background:var(--lime);color:var(--ink)}

.bars{
  width:16px;height:12px;
  background:
    linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 10px/100% 2px no-repeat;
}
.dots{
  width:16px;height:12px;
  background-image:radial-gradient(currentColor 1.6px,transparent 1.7px);
  background-size:6px 6px;
}

menu{
  list-style:none;
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  min-width:210px;
  margin:0;
  padding:6px;
  background:var(--paper);
  border:3px solid var(--ink);
  box-shadow:7px 7px 0 var(--ink);
  z-index:50;
}
.dd-end menu{left:auto;right:0}
menu li{margin:0}
menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 11px;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  border-bottom:2px dotted rgba(25,38,23,.35);
}
menu li:last-child a{border-bottom:0}
menu a:hover,
menu a:focus-visible{background:var(--amber);outline:0}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:6px 17px;
  background:var(--amber);
  color:var(--ink);
  border:3px solid var(--ink);
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  transform:rotate(-1.5deg);
}
.cta:hover{background:var(--lime);transform:rotate(1.5deg)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  padding:34px 16px 58px;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  align-items:center;
  gap:24px;
  min-height:70vh;
}
.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:30px;
  background:var(--lime);
  clip-path:polygon(0 100%,0 46%,26% 0,64% 34%,100% 0,100% 100%);
  pointer-events:none;
}

.heroTxt{position:relative;z-index:2}
.kicker{
  display:inline-block;
  margin:0 0 14px;
  padding:5px 13px;
  background:var(--amber);
  border:3px solid var(--ink);
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  transform:rotate(-2deg);
}

h1{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(31px,6.2vw,58px);
  line-height:1.1;
  letter-spacing:-.012em;
  margin:0 0 .34em;
  text-wrap:balance;
}

.lede{
  font-size:18px;
  line-height:1.65;
  max-width:46ch;
  margin:0;
  padding-left:14px;
  border-left:9px solid var(--lime);
}

.heroArt{position:relative;min-height:250px;z-index:1}
.heroArt .sh{position:absolute;display:block}
.sh1{width:98px;height:98px;background:var(--amber);border:3px solid var(--ink);left:2%;top:4%;transform:rotate(13deg)}
.sh2{width:132px;height:132px;background:var(--lime);clip-path:polygon(50% 0,100% 100%,0 100%);right:6%;top:26%}
.sh3{width:82px;height:82px;border:3px dashed var(--ink);border-radius:50%;right:2%;bottom:2%}
.sh4{width:158px;height:13px;background:var(--ink);left:10%;bottom:14%;transform:rotate(-8deg)}
.heroArt .artMark{
  position:absolute;
  width:88px;height:88px;
  object-fit:contain;
  left:40%;top:2%;
  transform:rotate(-6deg);
  border:3px solid var(--ink);
  background:var(--paper);
}

/* ---------- 正文 + 侧栏 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:6px 16px 46px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 302px;
  gap:38px;
  align-items:start;
}

.stage{min-width:0}

.prose{font-size:17px;line-height:1.78}
.prose section{
  padding:30px 0 10px;
  border-top:3px dotted rgba(25,38,23,.3);
  scroll-margin-top:120px;
}
.prose section:first-child{border-top:0;padding-top:2px}

.prose h2{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(24px,3.4vw,32px);
  line-height:1.22;
  letter-spacing:-.01em;
  margin:.1em 0 .1em;
}
.prose h3{
  font-family:var(--serif);
  font-weight:600;
  font-size:21px;
  line-height:1.3;
  margin:1.1em 0 .15em;
}
.prose p{margin:0 0 1.05em}
.prose ul,.prose ol{margin:0 0 1.05em;padding-left:1.3em}
.prose li{margin:.42em 0}
.prose li::marker{color:var(--deep);font-weight:700}
.prose strong{background:var(--amber);padding:0 3px;font-weight:700}
.prose em{font-style:normal;border-bottom:3px solid var(--lime)}
.prose a{color:#14512c;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.prose a:hover{background:var(--lime);color:var(--ink)}
.prose img{border:3px solid var(--ink);margin:20px 0}
.prose blockquote{
  margin:22px 0;
  padding:13px 18px;
  background:#fff;
  border-left:11px solid var(--lime);
  border-top:3px solid var(--ink);
  border-bottom:3px solid var(--ink);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:20px 0}
.prose th,.prose td{border:2px solid var(--ink);padding:8px 11px;text-align:left;font-size:16px}
.prose th{background:var(--lime)}
.prose code{font-size:16px;background:#fff;border:2px solid var(--ink);padding:1px 4px}

.rail{
  position:sticky;
  top:96px;
  margin-top:8px;
  padding:16px 16px 8px;
  background:#fff;
  border:3px solid var(--ink);
  box-shadow:8px 8px 0 var(--amber);
}
.rail h2{font-family:var(--serif);font-size:20px;font-weight:600;margin:0 0 2px}
.rail hr{height:8px;margin:8px 0 12px}

.ix{list-style:none;margin:0;padding:0;counter-reset:ix}
.ix li{counter-increment:ix;margin:0}
.ix a{
  display:flex;
  align-items:baseline;
  gap:9px;
  min-height:44px;
  padding:10px 2px;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  border-bottom:2px dotted rgba(25,38,23,.32);
}
.ix a::before{
  content:counter(ix,decimal-leading-zero);
  font-family:var(--serif);
  font-size:15px;
  color:#4d6a45;
}
.ix a:hover{background:var(--amber)}

/* ---------- 订阅 ---------- */
.band{
  margin-top:12px;
  background:var(--ink);
  color:var(--paper);
  clip-path:polygon(0 22px,100% 0,100% 100%,0 100%);
}
.bandIn{max-width:1180px;margin:0 auto;padding:44px 16px 48px}
.band h2{font-family:var(--serif);font-size:27px;font-weight:600;margin:0 0 2px;color:var(--lime)}
.band hr{background:repeating-linear-gradient(135deg,var(--amber) 0 10px,var(--paper) 10px 15px);max-width:520px;margin:10px 0 18px}

.sub{display:flex;flex-wrap:wrap;gap:10px;max-width:540px}
.sub input{
  flex:1 1 220px;
  min-width:0;
  min-height:50px;
  padding:10px 14px;
  background:transparent;
  color:var(--paper);
  border:3px solid var(--paper);
  font-family:var(--sans);
  font-size:17px;
}
.sub input::placeholder{color:rgba(244,248,237,.7)}
.sub input:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.sub button{
  min-height:50px;
  padding:10px 26px;
  background:var(--lime);
  color:var(--ink);
  border:3px solid var(--paper);
  font-family:var(--sans);
  font-size:17px;
  font-weight:700;
  cursor:pointer;
}
.sub button:hover{background:var(--amber)}
.sub button:disabled{background:var(--amber);cursor:default}

/* ---------- 回顶与页脚 ---------- */
.jump{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:30;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  background:var(--amber);
  border:3px solid var(--ink);
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  transform:rotate(-2deg);
  box-shadow:4px 4px 0 var(--ink);
}
.jump:hover{background:var(--lime);transform:rotate(0)}

.foot{
  max-width:1180px;
  margin:0 auto;
  padding:30px 16px 40px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px 22px;
}
.foot p{margin:0;font-weight:700;font-size:16px}
.foot p a{
  display:inline-block;
  margin-left:10px;
  padding:9px 2px;
  min-height:40px;
  text-decoration:none;
  border-bottom:3px solid var(--lime);
  font-weight:600;
}
.foot p a:hover{background:var(--lime)}
.foot small{font-size:16px;color:#3c5137}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference){
  .cta,.jump,.sub button,summary,.brand,menu a,.ix a{transition:background-color .18s ease,color .18s ease,transform .18s ease}
  .js .prose section{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s ease}
  .js .prose section.in{opacity:1;transform:none}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .wrap{grid-template-columns:1fr;gap:28px}
  .rail{position:static;order:2;margin-top:0;box-shadow:6px 6px 0 var(--amber)}
  .hero{grid-template-columns:1fr;min-height:auto;padding:26px 16px 54px}
  .heroArt{min-height:172px}
  .heroArt .artMark{left:auto;right:2%;top:0;width:66px;height:66px}
  .sh1{width:74px;height:74px}
  .sh2{width:100px;height:100px;right:26%;top:34%}
  .sh4{width:120px;left:2%}
}

@media (max-width:760px){
  .bar{
    grid-template-columns:1fr auto 1fr;
    grid-template-areas:"l b r" "c c c";
    row-gap:8px;
    padding:7px 10px;
  }
  .sideR{display:contents}
  .dd-start{grid-area:l}
  .brand{grid-area:b;font-size:18px;min-height:44px}
  .dd-end{grid-area:r;justify-self:end}
  .cta{grid-area:c;justify-self:center;width:100%;padding:6px 10px}
  summary{padding:6px 10px;font-size:16px}
  .prose section{scroll-margin-top:150px}
}

@media (max-width:420px){
  .brand{font-size:16px;gap:6px}
  .brand .mark,.brand img{width:26px;height:26px}
  summary{font-size:16px;padding:6px 8px;gap:6px}
  .heroTxt h1{font-size:30px}
  .kicker{font-size:16px}
  .foot{grid-template-columns:1fr;gap:6px}
  .foot p a:first-child{margin-left:0}
}

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