@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root{
  --lime:#80ff00;
  --neon:#00ff00;
  --ink:#1f2617;
  --ink2:#12180d;
  --paper:#f4ffe2;
  --line:rgba(128,255,0,.32);
  --r:28px;
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:#e8ffd2;
  font:400 17px/1.75 Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  overflow-x:clip;
  max-width:100%;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 88% 4%,rgba(0,255,0,.18),transparent 44%),
    radial-gradient(circle at 6% 82%,rgba(128,255,0,.13),transparent 48%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.022) 0 2px,transparent 2px 7px);
  mix-blend-mode:screen;
}

img{max-width:100%;height:auto}
a{color:var(--neon)}
h1,h2,h3{font-family:"Playfair Display",Georgia,serif;font-weight:700}
menu{list-style:none;margin:0;padding:0}
[id]{scroll-margin-top:100px}

/* ---------- 顶部 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 14px;
  background:rgba(18,24,13,.92);
  backdrop-filter:blur(9px);
  border-bottom:2px dashed var(--line);
}

.logo{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 auto;
  transform:rotate(-9deg);
  text-decoration:none;
}
.logo svg{width:34px;height:34px;filter:drop-shadow(0 0 9px rgba(128,255,0,.65))}

.navd{position:relative}
.navd summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 18px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.16em;
  color:var(--ink);
  background:var(--lime);
  border:2px solid var(--ink);
  border-radius:999px;
  box-shadow:3px 3px 0 var(--neon);
  user-select:none;
}
.navd summary::-webkit-details-marker{display:none}
.navd summary:focus-visible{outline:3px solid var(--neon);outline-offset:2px}

.navd menu{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  z-index:70;
  width:min(82vw,330px);
  max-width:calc(100vw - 28px);
  padding:8px;
  background:var(--ink2);
  border:2px solid var(--lime);
  border-radius:20px;
  box-shadow:0 24px 46px rgba(0,0,0,.6);
  transform:rotate(-1.2deg);
}
.navd menu a{
  display:block;
  min-height:44px;
  padding:11px 14px;
  font-size:16px;
  color:#dfffb8;
  text-decoration:none;
  border-radius:12px;
}
.navd menu a:hover,
.navd menu a:focus-visible{background:var(--lime);color:var(--ink)}

@media (min-width:900px){
  .navd menu{width:auto;min-width:228px}
}

/* ---------- 首屏拼贴 ---------- */
.hero{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  min-height:70vh;
  padding:46px 18px 44px;
  overflow:hidden;
}

.hero-art{position:absolute;inset:0;z-index:0}

.polaroid{
  position:absolute;
  z-index:1;
  width:min(42vw,246px);
  margin:0;
  padding:8px 8px 22px;
  background:var(--paper);
  border-radius:14px;
  box-shadow:0 26px 44px rgba(0,0,0,.55);
}
.polaroid .pic{display:block;width:100%;border-radius:8px}
.p0{left:3%;top:9%;transform:rotate(-9deg)}
.p1{right:5%;bottom:5%;transform:rotate(7deg);z-index:2}

.blank{height:158px;background:repeating-linear-gradient(45deg,#c7ff87 0 12px,#a6ef5c 12px 24px)}

.stk{position:absolute;z-index:3;display:block}
.s1{width:72px;height:72px;left:58%;top:7%;border-radius:50%;background:var(--neon);opacity:.55;mix-blend-mode:screen}
.s2{width:124px;height:32px;left:5%;bottom:7%;background:var(--lime);transform:rotate(-18deg);animation:jit 3.6s ease-in-out infinite}
.s3{width:26px;height:26px;right:7%;top:14%;background:var(--paper);transform:rotate(45deg)}

@keyframes jit{
  0%,100%{transform:rotate(-18deg) translate(0,0)}
  50%{transform:rotate(-14deg) translate(3px,-4px)}
}

.hero-copy{
  position:relative;
  z-index:5;
  max-width:620px;
  margin-left:auto;
  text-align:right;
}
.tape{
  display:block;
  width:118px;
  height:24px;
  margin:0 0 14px auto;
  background:var(--neon);
  transform:rotate(-4deg);
  box-shadow:0 6px 14px rgba(0,0,0,.45);
}
.hero h1{
  margin:0;
  font-size:clamp(30px,7.4vw,66px);
  line-height:1.12;
  color:#fff;
  text-shadow:4px 4px 0 rgba(0,255,0,.35),-2px -2px 0 rgba(15,20,10,.9);
}

@media (max-width:520px){
  .hero{padding:38px 16px 34px;min-height:66vh;align-items:flex-start}
  .polaroid{width:132px;padding:6px 6px 16px}
  .p0{top:6%;left:2%}
  .p1{top:34%;right:2%;bottom:auto}
  .blank{height:88px}
  .hero-copy{margin-top:auto;padding-top:150px}
  .s2{width:88px;height:24px;bottom:3%}
}

/* ---------- 斜切色带 ---------- */
.band-wrap{
  position:relative;
  z-index:6;
  width:100%;
  margin:-16px 0 -8px;
  padding:12px 0;
  overflow:hidden;
}
.band{
  position:relative;
  padding:8px 0;
  overflow:hidden;
  background:var(--lime);
  border-top:3px solid var(--ink);
  border-bottom:3px solid var(--ink);
  transform:rotate(-1.6deg) scale(1.01);
}
.band-in{display:flex;white-space:nowrap;animation:slide 24s linear infinite}
.band-in span{
  display:block;
  padding:0 12px;
  font-size:18px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--ink);
}
.band-in .star{color:#0a3d00}

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

/* ---------- 主体骨架 ---------- */
main{position:relative;z-index:4;display:block}
.wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:34px 16px 58px;
}
@media (min-width:980px){
  .wrap{grid-template-columns:252px minmax(0,1fr);gap:36px;align-items:start}
}

/* ---------- 侧栏 ---------- */
.side{
  position:relative;
  padding:16px 16px 18px;
  background:rgba(128,255,0,.075);
  border:2px solid var(--line);
  border-radius:var(--r);
  transform:rotate(-.8deg);
  min-width:0;
}
@media (min-width:980px){
  .side{position:sticky;top:92px}
}
.side h2{
  margin:0 0 8px;
  font-size:21px;
  letter-spacing:.06em;
  color:var(--lime);
}
hr{
  height:0;
  margin:10px 0;
  border:0;
  border-top:2px dashed var(--line);
}
.side hr{margin:0 0 6px}
.toc{display:flex;flex-direction:column}
.toc li{min-width:0}
.toc a{
  display:block;
  min-height:42px;
  padding:10px 8px;
  font-size:16px;
  color:#dfffb8;
  text-decoration:none;
  overflow-wrap:anywhere;
  border-bottom:1px solid rgba(128,255,0,.16);
}
.toc li:last-child a{border-bottom:0}
.toc a:hover,
.toc a:focus-visible{background:var(--lime);color:var(--ink);border-radius:10px}

.body{min-width:0}

/* ---------- 正文 ---------- */
.prose{min-width:0}
.prose > div{
  position:relative;
  margin:0 0 26px;
  padding:24px 19px 30px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(128,255,0,.22);
  border-bottom:6px solid var(--lime);
  border-radius:var(--r);
  transform:rotate(-.22deg);
  overflow-wrap:anywhere;
}
.prose > div:nth-of-type(even){transform:rotate(.24deg)}
.prose > div:last-child{margin-bottom:0}

.prose h2{
  margin:0 0 10px;
  font-size:clamp(22px,3.5vw,32px);
  line-height:1.25;
  color:var(--lime);
  letter-spacing:.02em;
}
.prose h3{
  margin:24px 0 8px;
  font-size:20px;
  color:#fff;
}
.prose p{margin:0 0 15px}
.prose p:last-child{margin-bottom:0}
.prose a{text-underline-offset:3px}
.prose ul,.prose ol{margin:0 0 15px;padding-left:1.3em}
.prose li{margin:0 0 6px}
.prose img{max-width:100%;border:3px solid var(--paper);border-radius:16px}
.prose blockquote{
  margin:16px 0;
  padding:12px 16px;
  background:rgba(0,255,0,.09);
  border-left:6px solid var(--neon);
  border-radius:0 16px 16px 0;
}
.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;
}
.prose th,.prose td{padding:8px 10px;border:1px solid var(--line);text-align:left}
.prose code{
  padding:2px 6px;
  font-size:15px;
  background:#0c1108;
  border-radius:6px;
  color:var(--lime);
  overflow-wrap:anywhere;
}
.prose pre{
  max-width:100%;
  overflow-x:auto;
  padding:12px 14px;
  background:#0c1108;
  border-radius:14px;
}
.prose hr{margin:18px 0}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:4;
  margin-top:16px;
  padding:36px 18px 26px;
  background:var(--ink2);
  border-top:4px dashed var(--lime);
  overflow:hidden;
}
.foot::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 82% 8%,rgba(0,255,0,.14),transparent 46%);
}
.cols{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  max-width:1180px;
  margin:0 auto;
}
@media (min-width:760px){
  .cols{grid-template-columns:repeat(3,1fr);gap:30px}
}
.foot dl{margin:0;min-width:0}
.foot dt{
  font-family:"Playfair Display",Georgia,serif;
  font-size:17px;
  letter-spacing:.1em;
  color:var(--lime);
}
.foot dd{
  margin:6px 0 0;
  font-size:16px;
  color:#cbeaa8;
  overflow-wrap:anywhere;
}
.foot a{
  display:inline-block;
  min-height:40px;
  padding:6px 0;
  color:#dfffb8;
  text-decoration:none;
}
.foot a:hover,
.foot a:focus-visible{color:var(--neon);text-decoration:underline}

.mega{
  position:relative;
  max-width:1180px;
  margin:30px auto 0;
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(40px,13.5vw,124px);
  line-height:.94;
  letter-spacing:.04em;
  text-align:center;
  color:var(--lime);
  text-shadow:4px 4px 0 rgba(0,255,0,.28);
  word-break:break-all;
}
.copy{
  position:relative;
  margin:12px 0 0;
  font-size:16px;
  text-align:center;
  color:#a9cf87;
}

/* ---------- 出场 ---------- */
.js .rv{opacity:0;transition:opacity .6s ease}
.js .rv.on{opacity:1}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .band-in{animation:none}
  .s2{animation:none}
  .js .rv{opacity:1;transition:none}
}

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