:root{
  --neon:#87ff71;
  --gold:#ffce5c;
  --ink:#192617;
  --paper:#f6ffe9;
  --white:#fffdf4;
  --line:rgba(25,38,23,.72);
  --soft:rgba(25,38,23,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden;overflow-x:clip}
body{
  margin:0;
  font-family:'Nunito','DM Sans',-apple-system,'PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(25,38,23,.13) 1px,transparent 1px);
  background-size:24px 24px;
  overflow-x:hidden;
  overflow-x:clip;
  overflow-wrap:break-word;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
p{margin:0 0 1em}
h1,h2,h3{letter-spacing:-.01em}
[data-reveal]{will-change:transform}

/* 顶部栏 */
.masthead{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:100%;
  padding:13px clamp(14px,4vw,40px);
  background:var(--white);
  border-bottom:3px dashed var(--line);
}
.mark{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  background:var(--neon);
  border:3px solid var(--ink);
  border-radius:4px;
  box-shadow:4px 4px 0 var(--ink);
  transform:rotate(-7deg);
  transition:transform .18s ease;
}
.mark:hover,.mark:focus-visible{transform:rotate(5deg) scale(1.06)}
.mark img{width:34px;height:34px;object-fit:contain}
.mainnav{flex:1 1 auto;min-width:0}
.mainnav p{display:flex;flex-wrap:wrap;gap:2px 6px;margin:0}
.mainnav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:6px 11px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  border:2px solid transparent;
  border-radius:4px;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.mainnav a::before{
  content:"";
  width:7px;height:7px;
  flex:0 0 auto;
  background:var(--gold);
  border:2px solid var(--ink);
  border-radius:50%;
}
.mainnav a:hover,.mainnav a:focus-visible{background:var(--neon);border-color:var(--ink);transform:translateY(-2px)}

/* 粘性锚点条 */
.anchorb{
  position:sticky;
  top:0;
  z-index:30;
  max-width:100%;
  background:var(--ink);
  padding:5px clamp(10px,4vw,34px);
  border-bottom:3px solid var(--neon);
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.anchorb nav{max-width:100%}
.anchorb p{display:flex;flex-wrap:nowrap;gap:8px;margin:0;width:max-content;max-width:none}
.anchorb a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 13px;
  font-size:16px;
  font-weight:800;
  white-space:nowrap;
  color:var(--neon);
  text-decoration:none;
  border:2px dashed transparent;
  border-radius:999px;
  transition:background .16s ease,color .16s ease;
}
.anchorb a:hover,.anchorb a:focus-visible{background:var(--neon);color:var(--ink);border-color:var(--ink)}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:clamp(24px,5vw,64px);
  max-width:1280px;
  min-height:100vh;
  margin:0 auto;
  padding:clamp(28px,6vw,70px) clamp(16px,5vw,60px);
  overflow:visible;
}
.hero::before{
  content:"";
  position:absolute;
  top:9%;
  right:-24px;
  width:152px;height:152px;
  border-radius:50%;
  background:var(--neon);
  opacity:.8;
  mix-blend-mode:multiply;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  bottom:8%;
  left:-18px;
  width:132px;height:132px;
  background:var(--gold);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  opacity:.85;
  pointer-events:none;
}
.hero-fig{
  position:relative;
  z-index:1;
  margin:0;
  min-width:0;
  min-height:300px;
  height:clamp(300px,52vh,540px);
  overflow:hidden;
  background:var(--white);
  border:3px solid var(--ink);
  border-radius:4px;
  box-shadow:14px 14px 0 var(--gold);
  transform:rotate(-1.7deg);
}
.hero-fig::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(25,38,23,.2) 1px,transparent 1px);
  background-size:15px 15px;
  mix-blend-mode:multiply;
}
.hero-img{width:100%;height:100%;object-fit:cover}
.shape{position:absolute;display:block}
.shape-a{top:8%;left:9%;width:112px;height:112px;border-radius:50%;background:var(--neon);border:3px solid var(--ink)}
.shape-b{bottom:11%;right:9%;width:124px;height:124px;background:var(--gold);border:3px solid var(--ink);clip-path:polygon(50% 0,100% 100%,0 100%)}
.shape-c{top:42%;left:44%;width:76px;height:76px;background:var(--ink);transform:rotate(18deg)}
.shape-d{top:22%;right:22%;width:58px;height:14px;background:var(--ink);border-radius:8px;transform:rotate(-24deg)}
.hero-txt{position:relative;z-index:1;min-width:0;text-align:right}
.badge{
  display:inline-block;
  padding:5px 14px;
  font-size:16px;
  font-weight:900;
  background:var(--neon);
  border:2px dashed var(--ink);
  border-radius:4px;
  transform:rotate(2deg);
}
.hero h1{
  margin:16px 0 22px;
  font-size:clamp(2rem,5.2vw,3.5rem);
  line-height:1.14;
  font-weight:900;
}
.hero-cta{margin:0}
.btn{
  display:inline-flex;
  align-items:center;
  min-height:52px;
  padding:10px 24px;
  font-size:17px;
  font-weight:900;
  text-decoration:none;
  background:var(--gold);
  border:3px solid var(--ink);
  border-radius:4px;
  box-shadow:6px 6px 0 var(--ink);
  transform:rotate(-1.2deg);
  transition:transform .16s ease,box-shadow .16s ease;
}
.btn:hover,.btn:focus-visible{transform:rotate(-1.2deg) translate(-2px,-2px);box-shadow:9px 9px 0 var(--ink)}

/* 正文区 */
.reader{
  display:grid;
  grid-template-columns:minmax(0,1fr) 304px;
  gap:clamp(24px,4vw,52px);
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(16px,5vw,60px) 74px;
}
.prose{min-width:0}
.prose article{
  padding:34px 0;
  border-top:3px dashed var(--line);
  scroll-margin-top:76px;
}
.prose article:first-child{border-top:0;padding-top:8px}
.prose h2{
  margin:0 0 .7em;
  font-size:clamp(1.4rem,3vw,1.92rem);
  line-height:1.26;
  font-weight:900;
}
.prose h2::before{
  content:"";
  display:inline-block;
  width:15px;height:15px;
  margin-right:11px;
  vertical-align:0;
  background:var(--neon);
  border:2px solid var(--ink);
  transform:rotate(12deg);
}
.prose h3{margin:1.5em 0 .45em;font-size:1.16rem;font-weight:900}
.prose p{max-width:66ch}
.prose ul,.prose ol{max-width:66ch;margin:0 0 1.1em;padding-left:1.3em}
.prose li{margin:.34em 0}
.prose li::marker{color:#3f7a29}
.prose a{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:var(--gold);
  text-underline-offset:3px;
}
.prose a:hover{background:var(--neon);text-decoration-color:var(--ink)}
.prose strong{font-weight:900;background:linear-gradient(transparent 62%,var(--gold) 62%)}
.prose blockquote{
  margin:1.2em 0;
  padding:13px 18px;
  border-left:7px solid var(--gold);
  border-radius:0 4px 4px 0;
  background:rgba(255,206,92,.24);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  font-size:16px;
  margin:1.2em 0;
}
.prose th,.prose td{border:2px solid var(--soft);padding:9px 11px;text-align:left}
.prose th{background:rgba(135,255,113,.38);font-weight:900}
.prose pre{
  max-width:100%;
  overflow-x:auto;
  padding:12px;
  font-size:16px;
  background:rgba(25,38,23,.08);
  border:2px dashed var(--line);
  border-radius:4px;
}
.prose code{padding:1px 6px;font-size:16px;background:rgba(25,38,23,.09);border-radius:3px}
.prose pre code{padding:0;background:none}
.prose img{border:3px solid var(--ink);border-radius:4px;margin:.7em 0;max-width:100%;height:auto}
.prose hr{border:0;border-top:3px dashed var(--line);margin:1.7em 0}

/* 侧栏 */
.rail{
  position:sticky;
  top:72px;
  align-self:start;
  min-width:0;
  padding:18px;
  background:var(--white);
  border:3px solid var(--ink);
  border-bottom:9px solid var(--neon);
  border-radius:4px;
  box-shadow:8px 8px 0 rgba(25,38,23,.16);
  transform:rotate(.7deg);
}
.rail-h{margin:0 0 .4em;font-size:1.16rem;font-weight:900;line-height:1.32}
.subtitle{margin:0 0 14px;font-size:16px;line-height:1.62;color:rgba(25,38,23,.86)}
.rail-nav ul{
  display:grid;
  gap:2px;
  margin:0;
  padding:10px 0 0;
  list-style:none;
  border-top:2px dotted var(--line);
}
.rail-nav li{min-width:0}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 8px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  border-radius:4px;
  transition:background .16s ease;
}
.rail-nav a::before{
  content:"";
  width:8px;height:8px;
  flex:0 0 auto;
  margin-right:9px;
  background:var(--gold);
  border:2px solid var(--ink);
}
.rail-nav a:hover,.rail-nav a:focus-visible{background:var(--neon)}
.to-top{margin:14px 0 0}
.to-top a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 8px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  border-bottom:3px solid var(--gold);
}
.to-top a:hover{background:var(--neon)}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px 22px;
  max-width:100%;
  padding:20px clamp(14px,4vw,44px);
  background:var(--ink);
  color:var(--paper);
  border-top:7px solid var(--neon);
}
.foot-logo{
  display:grid;
  place-items:center;
  width:40px;height:40px;
  background:var(--neon);
  border-radius:4px;
  transform:rotate(-6deg);
}
.foot-logo img,.foot-logo svg{width:30px;height:30px}
.foot nav{min-width:0;max-width:100%}
.foot nav p{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 4px;margin:0}
.foot nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 9px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
}
.foot nav a:hover,.foot nav a:focus-visible{
  color:var(--neon);
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}
.foot-copy{font-size:16px}

/* 动效 */
@media (prefers-reduced-motion:no-preference){
  .js [data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .42s ease,transform .42s ease}
  .js [data-reveal].in{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  html{scroll-behavior:auto}
}

/* 断点 */
@media (max-width:960px){
  .rail{transform:none}
  .reader{grid-template-columns:minmax(0,1fr) 272px}
}
@media (max-width:860px){
  .hero{grid-template-columns:1fr;min-height:0;gap:26px;padding-top:30px;padding-bottom:34px}
  .hero-txt{text-align:left}
  .hero-fig{height:auto;max-height:40vh;min-height:190px;transform:none;box-shadow:9px 9px 0 var(--gold)}
  .hero h1{margin:14px 0 18px}
  .hero::before{width:96px;height:96px;right:8px;top:4%}
  .hero::after{width:84px;height:84px;left:6px;bottom:2%}
  .reader{grid-template-columns:1fr}
  .rail{position:static;order:2}
  .prose article{scroll-margin-top:70px}
}
@media (max-width:560px){
  body{font-size:16px}
  .masthead{flex-wrap:wrap;gap:10px;padding:12px 14px}
  .mainnav a{padding:6px 9px}
  .hero{padding-left:14px;padding-right:14px}
  .hero::before{width:74px;height:74px;right:4px}
  .hero::after{width:66px;height:66px;left:2px}
  .hero-fig{box-shadow:7px 7px 0 var(--gold)}
  .reader{padding-left:14px;padding-right:14px;gap:26px}
  .foot{gap:8px 12px;padding:16px 12px}
  .foot-copy{flex:1 0 100%;text-align:center;padding:8px 0 2px;border-top:2px dotted rgba(246,255,233,.3)}
}
@media (max-width:400px){
  .mainnav a{font-size:16px;padding:6px 7px;gap:6px}
  .hero::before{right:0}
  .hero::after{left:0}
}

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