*{box-sizing:border-box}

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

body{
  margin:0;
  padding:0 0 26px;
  font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  color:#eaf5d8;
  background-color:#1f2617;
  background-image:radial-gradient(rgba(128,255,0,.17) 1px,transparent 1px);
  background-size:22px 22px;
  overflow-x:hidden;
}

img{max-width:100%}

a{color:inherit}

/* 顶部条 */
.top{
  position:sticky;
  top:0;
  z-index:80;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 16px;
  padding:10px clamp(12px,3vw,30px);
  background:#80ff00;
  color:#1f2617;
  border-bottom:4px solid #1f2617;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:2px 4px;
  text-decoration:none;
  color:#1f2617;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.03em;
}

.brand .mark{
  display:inline-block;
  font-size:23px;
  animation:jitter 2.4s steps(2,end) infinite;
}

@keyframes jitter{
  0%,100%{transform:rotate(-7deg) translate(0,0)}
  25%{transform:rotate(5deg) translate(1px,-1px)}
  50%{transform:rotate(-3deg) translate(-1px,1px)}
  75%{transform:rotate(8deg) translate(1px,1px)}
}

.mainnav{
  order:3;
  flex:1 1 100%;
  min-width:0;
}

.navrow{
  display:flex;
  gap:4px;
  margin:0;
  padding:0 0 2px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.navrow::-webkit-scrollbar{display:none}

.navrow a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  border-radius:10px;
  text-decoration:none;
  white-space:nowrap;
  font-size:16px;
  font-weight:600;
  color:#1f2617;
  background:rgba(31,38,23,.08);
  transition:background .18s,color .18s;
}

.navrow a:hover,
.navrow a:focus-visible{
  background:#1f2617;
  color:#80ff00;
}

/* 滚动条带 */
.marquee{
  overflow:hidden;
  background:#00ff00;
  border-bottom:4px solid #1f2617;
  color:#1f2617;
}

.marquee-in{
  display:flex;
  align-items:center;
  gap:14px;
  width:max-content;
  padding:7px 0;
  white-space:nowrap;
  font-size:15px;
  font-weight:600;
  letter-spacing:.06em;
  animation:slide 26s linear infinite;
}

.marquee-in i{font-style:normal;opacity:.55}

@keyframes slide{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* 主容器 */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:22px clamp(12px,3vw,26px) 46px;
}

/* Hero */
.stage{position:relative}

.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:70vh;
  padding:clamp(18px,4vw,44px);
  overflow:hidden;
  background:#26301b;
  border-bottom:8px solid #80ff00;
  clip-path:polygon(0 0,100% 0,100% 91%,0 100%);
}

.ghost{
  position:absolute;
  top:8%;
  right:-5%;
  z-index:1;
  margin:0;
  font-size:clamp(62px,15.5vw,188px);
  font-weight:700;
  line-height:.86;
  letter-spacing:-.05em;
  color:transparent;
  -webkit-text-stroke:2px rgba(128,255,0,.6);
  transform:rotate(-8deg);
  pointer-events:none;
  will-change:transform;
}

.hero-img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.62;
  filter:saturate(160%) contrast(108%);
  mix-blend-mode:luminosity;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:min(100%,740px);
  padding-bottom:6px;
}

h1{
  margin:0;
  font-size:clamp(30px,6.4vw,64px);
  font-weight:700;
  line-height:1.06;
  letter-spacing:-.035em;
  color:#fff;
  text-shadow:4px 4px 0 #1f2617;
}

.hero-copy::before{
  content:"";
  display:block;
  width:74px;
  height:12px;
  margin-bottom:14px;
  background:#00ff00;
  border:3px solid #1f2617;
  transform:rotate(-3deg);
}

/* 内页 intro */
.intro{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:44vh;
  padding:clamp(18px,4vw,44px);
  overflow:hidden;
  background:#26301b;
  border-bottom:8px solid #80ff00;
  clip-path:polygon(0 0,100% 0,100% 94%,0 100%);
}

.intro .ghost{font-size:clamp(52px,13vw,140px)}

.lead{
  margin:16px 0 0;
  max-width:620px;
  font-size:clamp(17px,2.2vw,20px);
  color:#dff5c2;
}

/* 双栏 */
.split{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  margin-top:36px;
}

/* 正文纸片 */
.prose{min-width:0}

.prose > article{
  margin:0 0 28px;
  padding:clamp(16px,3.4vw,36px);
  color:#1f2617;
  background:#f3ffe4;
  border-radius:18px;
  border-bottom:7px solid #80ff00;
  box-shadow:9px 9px 0 #0b1006;
  transform:rotate(-.35deg);
  scroll-margin-top:132px;
}

.prose > article:nth-child(even){
  transform:rotate(.45deg);
  box-shadow:-9px 9px 0 #0b1006;
}

.prose > article:last-child{margin-bottom:0}

small{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.26em;
  line-height:1.4;
  color:#3f7a12;
}

h2{
  margin:0 0 14px;
  font-size:clamp(22px,3.4vw,34px);
  font-weight:700;
  line-height:1.18;
  letter-spacing:-.025em;
  color:#1f2617;
}

h3{
  margin:1.3em 0 .5em;
  font-size:clamp(18px,2.4vw,22px);
  font-weight:600;
  line-height:1.3;
  color:#1f2617;
}

p{margin:0 0 1em}

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

.prose a{
  color:#2b6a00;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.prose a:hover{background:#d8ff9e}

.prose ul,
.prose ol{padding-left:1.3em;margin:0 0 1em}

.prose li{margin:.3em 0}

.prose blockquote{
  margin:1.2em 0;
  padding:12px 18px;
  border-left:7px solid #00ff00;
  background:rgba(128,255,0,.2);
  font-weight:500;
}

.prose img{
  height:auto;
  border-radius:14px;
  filter:saturate(150%);
}

.prose hr{
  height:6px;
  margin:1.6em 0;
  border:0;
  background:repeating-linear-gradient(90deg,#1f2617 0 10px,transparent 10px 20px);
}

/* 侧栏 */
.side{
  position:relative;
  padding:18px;
  color:#d8f5b0;
  background:#11170c;
  border:3px solid #80ff00;
  border-radius:18px;
  transform:rotate(1.3deg);
  box-shadow:8px 8px 0 rgba(128,255,0,.24);
}

.side small{color:#80ff00}

.side h2{
  margin-bottom:12px;
  font-size:22px;
  color:#fff;
}

.sidelist{
  display:grid;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.sidelist a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 9px;
  border-bottom:1px dashed rgba(128,255,0,.28);
  border-radius:10px;
  font-size:16px;
  text-decoration:none;
  color:#d8f5b0;
  transition:background .18s,color .18s;
}

.sidelist a:hover,
.sidelist a:focus-visible{
  background:#80ff00;
  color:#1f2617;
}

.sticker{
  position:absolute;
  right:-12px;
  bottom:-16px;
  width:56px;
  height:56px;
  background:#00ff00;
  border:3px solid #1f2617;
  border-radius:14px;
  transform:rotate(15deg);
  mix-blend-mode:screen;
  pointer-events:none;
}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 22px;
  margin-top:26px;
  padding:26px clamp(14px,3vw,34px);
  background:#151c0f;
  border-top:7px solid #80ff00;
  color:#cfe8a8;
}

.foot-brand{
  flex:1 1 100%;
  font-size:clamp(30px,7.2vw,66px);
  font-weight:700;
  line-height:1;
  letter-spacing:-.045em;
  color:#80ff00;
}

.foot-nav{flex:1 1 100%}

.footlist{
  display:flex;
  flex-wrap:wrap;
  gap:2px 12px;
  margin:0;
  padding:0;
  list-style:none;
}

.footlist a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:2px 3px;
  font-size:16px;
  text-decoration:none;
  color:#cfe8a8;
}

.footlist a:hover{color:#00ff00}

.foot-legal{
  flex:1 1 100%;
  text-align:center;
  font-size:15px;
  color:#8fa878;
}

/* 回到顶部 */
.toTop{
  position:fixed;
  right:13px;
  bottom:13px;
  z-index:90;
}

.toTop a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  color:#1f2617;
  background:#80ff00;
  border:3px solid #1f2617;
  border-radius:12px;
  box-shadow:4px 4px 0 #1f2617;
  transform:rotate(-3deg);
}

/* 入场 */
.js .prose > article{
  opacity:0;
  transform:translateY(20px) rotate(-.35deg);
  transition:opacity .5s ease,transform .5s ease;
}

.js .prose > article.in{opacity:1}

.js .prose > article.in:nth-child(odd){transform:rotate(-.35deg)}

.js .prose > article.in:nth-child(even){transform:rotate(.45deg)}

/* 桌面 */
@media (min-width:760px){
  .mainnav{order:0;flex:1 1 auto}
  .navrow{justify-content:flex-end;flex-wrap:wrap;overflow:visible}
}

@media (min-width:900px){
  .split{
    grid-template-columns:minmax(0,1fr) 292px;
    align-items:start;
  }
  .side{top:104px}
  .side:not(.flat){position:sticky}
  .foot-brand{flex:0 1 auto}
  .foot-legal{flex:0 0 auto}
}

@media (max-width:899px){
  .side{position:static;transform:none}
}

@media (max-width:720px){
  body{font-size:16px}
  .hero{min-height:64vh}
  h1{font-size:clamp(28px,8.6vw,40px);text-shadow:3px 3px 0 #1f2617}
  .prose > article{box-shadow:6px 6px 0 #0b1006}
  .prose > article:nth-child(even){box-shadow:-6px 6px 0 #0b1006}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .brand .mark,
  .marquee-in{animation:none}
  .marquee-in{transform:none}
  .js .prose > article{opacity:1;transition:none;transform:none!important}
}

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