:root{
  --lime:#87ff71;
  --yellow:#ffce5c;
  --ink:#192617;
  --paper:#f6f8ef;
  --mint:#dff7d6;
  --rail:262px;
  --strip:38px;
  --font-body:'Chakra Petch',ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans SC','Microsoft YaHei',sans-serif;
  --font-head:'Russo One','Chakra Petch',ui-sans-serif,system-ui,'Noto Sans SC','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--paper);
  background-image:radial-gradient(circle,rgba(25,38,23,.16) 1.1px,transparent 1.2px);
  background-size:17px 17px;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.7;
  font-weight:400;
}

img{max-width:100%}

a{color:inherit}

a:focus-visible,button:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}

.page{min-height:100vh}

/* 顶部细条 */
.strip{
  position:fixed;
  top:0;
  left:var(--rail);
  right:0;
  height:var(--strip);
  z-index:40;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:repeating-linear-gradient(45deg,var(--yellow) 0 14px,#ffd977 14px 28px);
  border-bottom:3px solid var(--ink);
}

.strip-track{
  display:flex;
  align-items:center;
  gap:28px;
  padding-left:18px;
  animation:mar 26s linear infinite;
  will-change:transform;
}

.strip-run{
  font-family:var(--font-head);
  font-size:13px;
  letter-spacing:.24em;
  white-space:nowrap;
  color:var(--ink);
}

.strip-run::after{
  content:"";
  display:inline-block;
  vertical-align:middle;
  width:10px;
  height:10px;
  margin-left:24px;
  background:var(--ink);
  border-radius:50%;
}

/* 左侧竖排导航 */
.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:var(--rail);
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:20px 16px 26px;
  overflow-y:auto;
  background:var(--ink);
  color:#f3ffe9;
  border-right:6px solid var(--lime);
}

.rail::before{
  content:"";
  position:absolute;
  right:-26px;
  top:128px;
  width:104px;
  height:104px;
  background:var(--yellow);
  opacity:.9;
  transform:rotate(16deg);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  pointer-events:none;
}

.rail::after{
  content:"";
  position:absolute;
  left:-14px;
  bottom:44px;
  width:74px;
  height:74px;
  background:repeating-linear-gradient(90deg,var(--lime) 0 7px,transparent 7px 14px);
  transform:rotate(-8deg);
  opacity:.55;
  pointer-events:none;
}

.brand{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  color:var(--lime);
  font-family:var(--font-head);
  font-size:19px;
  line-height:1.24;
  letter-spacing:.02em;
  text-decoration:none;
}

.brand-mark{
  position:relative;
  flex:0 0 auto;
  width:26px;
  height:26px;
  border:3px solid var(--lime);
  border-radius:50%;
  background:var(--yellow);
}

.brand-mark::after{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:50%;
  background:var(--ink);
}

.rail-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pill{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  border:3px solid var(--lime);
  border-radius:999px;
  color:#f3ffe9;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}

.pill:nth-child(even){
  border-color:var(--yellow);
  transform:rotate(-1.4deg);
}

.pill:hover,.pill:focus-visible{
  background:var(--lime);
  color:var(--ink);
  transform:translateX(5px) rotate(0);
}

/* 主体 */
.col{
  margin-left:var(--rail);
  padding-top:var(--strip);
}

main{
  max-width:1120px;
  padding:0 26px 0 30px;
}

main [id]{
  scroll-margin-top:calc(var(--strip) + 16px);
}

/* 头图 */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;
  gap:26px;
  min-height:45vh;
  padding:26px 0 30px;
  border-bottom:4px solid var(--ink);
}

.hero-copy h1{
  margin:0 0 14px;
  font-family:var(--font-head);
  font-size:clamp(29px,4.6vw,50px);
  line-height:1.1;
  letter-spacing:.01em;
  text-shadow:4px 4px 0 var(--lime);
}

.lede{
  max-width:54ch;
  margin:0 0 18px;
  font-size:17px;
  color:#2b3a29;
}

.btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:10px 24px;
  border:3px solid var(--ink);
  border-radius:999px;
  background:var(--yellow);
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  box-shadow:5px 5px 0 var(--ink);
  transition:transform .15s ease,box-shadow .15s ease;
}

.btn-cta:hover,.btn-cta:focus-visible{
  transform:translate(-2px,-2px);
  box-shadow:8px 8px 0 var(--ink);
}

.btn-cta--big{
  min-height:52px;
  padding:12px 30px;
  background:var(--lime);
}

.collage{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34vh;
}

.collage:empty{display:none}

.collage-fig{
  width:52%;
  aspect-ratio:4/3;
  margin:0;
  overflow:hidden;
  border:4px solid var(--ink);
  border-radius:4px;
  background:#fff;
  box-shadow:8px 8px 0 rgba(25,38,23,.85);
}

.collage-fig img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.collage-fig--1{
  z-index:2;
  transform:rotate(-6deg) translateX(6%);
  animation:bob 9s ease-in-out infinite;
}

.collage-fig--2{
  width:44%;
  margin-top:16%;
  transform:rotate(5deg) translateX(-6%);
  animation:bob 11s ease-in-out infinite reverse;
}

/* 内容区 */
.stage{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:34px;
  padding:34px 0 44px;
}

.side{
  position:sticky;
  top:calc(var(--strip) + 18px);
  align-self:start;
  padding:16px;
  border:3px solid var(--ink);
  border-radius:4px;
  background:#fff;
  box-shadow:6px 6px 0 var(--mint);
}

small{
  display:inline-block;
  margin-bottom:6px;
  padding:2px 9px;
  border:2px solid var(--ink);
  border-radius:999px;
  background:var(--yellow);
  font-family:var(--font-body);
  font-size:13px;
  font-weight:700;
  letter-spacing:.16em;
  transform:rotate(-2deg);
}

.side h2{
  margin:6px 0 12px;
  font-family:var(--font-head);
  font-size:20px;
  line-height:1.25;
}

.side-list{
  display:grid;
  gap:6px;
  margin:0 0 12px;
  padding:0;
  list-style:none;
}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 10px;
  border:2px dashed rgba(25,38,23,.45);
  border-radius:4px;
  font-size:16px;
  text-decoration:none;
}

.side-list a:hover,.side-list a:focus-visible{
  background:var(--lime);
  border-style:solid;
}

.side-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
  border-bottom:3px solid var(--yellow);
}

.prose{
  min-width:0;
  padding:8px 26px 30px;
  border:3px solid var(--ink);
  border-radius:4px;
  background:#fff;
  box-shadow:10px 10px 0 var(--mint);
}

.prose section{
  position:relative;
  padding:26px 0 30px;
  border-bottom:3px dashed rgba(25,38,23,.32);
  animation:rise .5s ease both;
}

.prose section:last-child{border-bottom:0}

.prose section:nth-child(1){animation-delay:.03s}
.prose section:nth-child(2){animation-delay:.07s}
.prose section:nth-child(3){animation-delay:.11s}
.prose section:nth-child(4){animation-delay:.15s}
.prose section:nth-child(5){animation-delay:.19s}
.prose section:nth-child(6){animation-delay:.23s}
.prose section:nth-child(7){animation-delay:.27s}

.prose h2{
  margin:0 0 14px;
  font-family:var(--font-head);
  font-size:clamp(23px,3.2vw,33px);
  line-height:1.22;
  letter-spacing:.01em;
}

.prose h2::after{
  content:"";
  display:block;
  width:66px;
  height:7px;
  margin-top:10px;
  border-radius:7px;
  background:var(--lime);
}

.prose h3{
  margin:22px 0 10px;
  font-family:var(--font-head);
  font-size:20px;
  line-height:1.3;
}

.prose p{
  margin:0 0 14px;
  font-size:17px;
  line-height:1.8;
}

.prose a{
  color:#13481a;
  text-decoration:underline;
  text-decoration-color:var(--yellow);
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}

.prose ul,.prose ol{
  margin:0 0 16px;
  padding-left:1.25em;
}

.prose li{
  margin:0 0 8px;
  line-height:1.75;
}

.prose li::marker{color:#13481a}

.prose img{
  height:auto;
  border:3px solid var(--ink);
  border-radius:4px;
}

.prose figure{margin:18px 0}

.prose blockquote{
  margin:0 0 16px;
  padding:8px 0 8px 16px;
  border-left:6px solid var(--yellow);
  background:rgba(255,206,92,.18);
}

.prose blockquote p:last-child{margin-bottom:0}

.prose table{
  width:100%;
  margin:0 0 16px;
  border-collapse:collapse;
  font-size:16px;
}

.prose th,.prose td{
  padding:8px 10px;
  border:2px solid var(--ink);
  text-align:left;
}

.prose th{background:var(--mint)}

.prose code{
  padding:1px 5px;
  border-radius:3px;
  background:var(--mint);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.95em;
}

.prose hr{
  margin:24px 0;
  border:0;
  border-top:3px dotted var(--ink);
}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:26px;
  padding:34px 30px 22px;
  border-top:6px solid var(--ink);
  background:var(--ink);
  color:#eaffdf;
}

.foot-cta{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:20px 22px;
  border:3px dashed var(--lime);
  border-radius:4px;
  background:radial-gradient(circle at 88% 18%,rgba(255,206,92,.3),transparent 62%);
}

.cta-word{
  margin:0;
  font-family:var(--font-head);
  font-size:clamp(21px,3.3vw,33px);
  line-height:1.2;
  color:var(--lime);
  letter-spacing:.02em;
}

.foot-col{min-width:0}

.foot-col--nav{grid-column:span 2}

.foot nav dl{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px 16px;
  margin:0;
}

.foot dt{margin:0}

.foot dt a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  font-weight:600;
  color:#f0ffe8;
  text-decoration:none;
}

.foot dt a:hover,.foot dt a:focus-visible{
  color:var(--lime);
  text-decoration:underline;
  text-underline-offset:5px;
}

.foot dd{
  margin:0;
  align-self:center;
  font-size:14px;
  letter-spacing:.14em;
  color:#a9c79c;
}

.tile{
  display:block;
  width:52px;
  height:26px;
  margin-bottom:10px;
  background:var(--yellow);
  transform:rotate(-6deg);
  clip-path:polygon(12% 0,100% 0,88% 100%,0 100%);
}

.brand--foot{
  color:var(--lime);
  font-size:17px;
  min-height:40px;
}

.foot-col--go{
  display:flex;
  align-items:flex-start;
}

.foot-bar{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:14px;
  border-top:3px solid #3a5233;
  font-size:15px;
  color:#c6e0ba;
}

.copy{margin:0}

.bar-links{
  display:flex;
  gap:18px;
  margin:0;
}

.bar-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--lime);
  text-decoration:none;
}

.bar-links a:hover,.bar-links a:focus-visible{text-decoration:underline;text-underline-offset:5px}

/* 动效 */
@keyframes mar{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

@keyframes bob{
  0%,100%{translate:0 0}
  50%{translate:0 -9px}
}

@keyframes rise{
  from{opacity:0;translate:0 14px}
  to{opacity:1;translate:0 0}
}

/* 窄屏 */
@media (max-width:900px){
  .strip{
    position:static;
    height:34px;
  }

  .rail{
    position:static;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-right:0;
    border-bottom:6px solid var(--lime);
    overflow:visible;
  }

  .rail::before,.rail::after{display:none}

  .brand{
    font-size:18px;
    color:var(--lime);
  }

  .rail-nav{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
    width:100%;
  }

  .pill{
    min-height:40px;
    padding:6px 14px;
    font-size:15px;
  }

  .col{
    margin-left:0;
    padding-top:0;
  }

  main{padding:0 16px}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    gap:18px;
    padding:22px 0 26px;
  }

  .hero-copy h1{
    font-size:clamp(26px,8vw,38px);
    text-shadow:3px 3px 0 var(--lime);
  }

  .collage{
    min-height:0;
    padding:6px 0 14px;
  }

  .collage-fig{width:54%;box-shadow:6px 6px 0 rgba(25,38,23,.85)}
  .collage-fig--2{width:42%}
  .collage-fig--1{transform:rotate(-4deg) translateX(4%)}
  .collage-fig--2{transform:rotate(3deg) translateX(-4%)}

  .stage{
    grid-template-columns:1fr;
    gap:20px;
    padding:22px 0 32px;
  }

  .side{position:static}

  .prose{padding:6px 16px 22px;box-shadow:6px 6px 0 var(--mint)}

  .foot{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    padding:26px 16px 18px;
  }

  .foot-col--nav{grid-column:1/-1}

  .foot nav dl{gap:2px 12px}
}

@media (max-width:460px){
  .hero-copy .btn-cta{width:100%}
  .foot-cta{flex-direction:column;align-items:flex-start}
  .btn-cta--big{width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
}

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