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

:root{
  --lime:#80ff00;
  --acid:#00ff00;
  --ink:#1f2617;
  --paper:#eaffd0;
  --deep:#141a0f;
  --shade:#0a0d06;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--ink);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(128,255,0,.13), transparent 42%),
    radial-gradient(circle at 88% 62%, rgba(0,255,0,.09), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px);
  color:var(--paper);
  font-family:Quicksand,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--acid)}

p{margin:0 0 1em}

.sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------- 左侧固定竖排 ---------- */
.masthead{
  position:fixed;
  top:0;left:0;bottom:0;
  width:216px;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px 16px;
  background:var(--deep);
  border-right:3px solid var(--lime);
  box-shadow:8px 0 0 rgba(0,0,0,.45);
}

.brand{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 11px;
  background:var(--lime);
  color:var(--ink);
  text-decoration:none;
  border:3px solid var(--ink);
  border-radius:4px;
  transform:rotate(-2.2deg);
  box-shadow:5px 5px 0 var(--shade);
  font-family:Caveat,"Segoe Script",cursive;
  font-size:25px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:.01em;
  transition:transform .22s ease, box-shadow .22s ease;
}

.brand:hover,
.brand:focus-visible{
  transform:rotate(1.5deg) translateY(-2px);
  box-shadow:7px 8px 0 var(--shade);
}

.logo{display:inline-flex;line-height:0}
.logo svg{width:26px;height:26px}

.brand-name{display:inline-block}

.tabs p{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0;
}

.navlink{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:8px 10px;
  color:var(--paper);
  text-decoration:none;
  font-weight:600;
  font-size:16px;
  line-height:1.35;
  border-left:3px solid transparent;
  border-radius:0 4px 4px 0;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.navlink .dot{
  flex:0 0 auto;
  width:9px;height:9px;
  background:var(--acid);
  border:1px solid var(--ink);
  transform:rotate(45deg);
}

.navlink:hover,
.navlink:focus-visible{
  background:var(--lime);
  color:var(--ink);
  border-left-color:var(--ink);
  transform:translateX(3px) rotate(-.7deg);
}

.navlink:hover .dot,
.navlink:focus-visible .dot{background:var(--ink)}

/* ---------- 主区 ---------- */
main{
  margin-left:216px;
  display:grid;
  grid-template-columns:minmax(0,186px) minmax(0,1fr);
  gap:26px;
  align-items:start;
  padding:28px 24px 46px;
}

.rail{
  position:sticky;
  top:26px;
  padding:14px 12px 22px;
  background:rgba(0,0,0,.28);
  border:2px dashed rgba(128,255,0,.5);
  border-radius:4px;
}

.rail-title{
  margin:0 0 12px;
  font-family:Caveat,"Segoe Script",cursive;
  font-size:24px;
  font-weight:700;
  line-height:1.2;
}

.rail-title span{
  display:inline-block;
  padding:0 9px;
  background:var(--lime);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:4px;
  transform:rotate(-2deg);
}

.rail-list{
  margin:0;
  padding:0;
  list-style:none;
  font-size:16px;
}

.rail-list li a{
  display:block;
  min-height:42px;
  padding:9px 2px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px dotted rgba(128,255,0,.4);
  transition:color .16s ease, padding-left .16s ease;
}

.rail-list li a:hover,
.rail-list li a:focus-visible{
  color:var(--lime);
  padding-left:7px;
}

.rail-tape{
  margin-top:16px;
  height:22px;
  background:repeating-linear-gradient(45deg, var(--lime) 0 7px, var(--ink) 7px 14px);
  border:2px solid var(--lime);
  border-radius:2px;
  transform:rotate(1.6deg);
}

.sheet{
  min-width:0;
  max-width:940px;
}

.sheet > article{
  padding:26px 0;
  border-top:3px dashed rgba(128,255,0,.32);
}

.sheet > article:first-of-type{
  padding-top:0;
  border-top:0;
}

.sheet > article[id]{scroll-margin-top:26px}

.sheet h2,
.sheet h3{
  font-family:Caveat,"Segoe Script",cursive;
  color:var(--lime);
  line-height:1.25;
  margin:0 0 .55em;
  font-weight:700;
  letter-spacing:.01em;
}

.sheet h2{font-size:31px}
.sheet h3{font-size:25px}

.sheet h2 span,
.sheet h3 span{
  display:inline;
  text-decoration:underline wavy var(--acid);
  text-decoration-thickness:2px;
  text-underline-offset:6px;
}

.sheet p,
.sheet li{font-size:17px}

.sheet ul,
.sheet ol{padding-left:1.25em}

.sheet li{margin-bottom:.45em}

.sheet a{
  color:var(--acid);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.sheet a:hover{background:var(--lime);color:var(--ink);text-decoration:none}

.sheet blockquote{
  margin:1.2em 0;
  padding:12px 16px;
  background:rgba(128,255,0,.1);
  border-left:5px solid var(--lime);
  border-radius:0 4px 4px 0;
}

.sheet img{
  border:3px solid var(--lime);
  border-radius:4px;
  box-shadow:7px 7px 0 var(--shade);
  filter:saturate(140%);
}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:24px;
  align-items:center;
  min-height:70vh;
  padding:16px 0 8px;
}

.hero-media{
  position:relative;
  transform:rotate(-2.4deg);
}

.hero-img{
  width:100%;
  border-width:4px;
  box-shadow:11px 11px 0 var(--shade);
}

.hero-media::after{
  content:"";
  position:absolute;
  top:-13px;left:50%;
  width:88px;height:24px;
  margin-left:-44px;
  background:rgba(128,255,0,.55);
  border:2px solid rgba(31,38,23,.6);
  transform:rotate(4deg);
  mix-blend-mode:screen;
}

.hero-blob{
  position:relative;
  aspect-ratio:4 / 5;
  border:4px solid var(--lime);
  border-radius:4px;
  overflow:hidden;
  background:linear-gradient(150deg, var(--lime), var(--acid) 55%, var(--ink));
  box-shadow:11px 11px 0 var(--shade);
}

.hero-blob i{
  position:absolute;
  display:block;
  border:3px solid var(--ink);
  border-radius:50%;
  mix-blend-mode:multiply;
}

.hero-blob .b1{width:58%;height:58%;left:-12%;bottom:-10%;background:var(--acid)}
.hero-blob .b2{width:38%;height:38%;right:6%;top:8%;background:var(--paper);border-radius:4px;transform:rotate(16deg)}

.hero-copy{text-align:right}

.kicker{
  display:inline-block;
  margin:0 0 14px;
  padding:5px 11px;
  background:var(--acid);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:4px;
  transform:rotate(1.6deg);
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  box-shadow:4px 4px 0 var(--shade);
}

.hero h1{
  margin:0 0 14px;
  font-family:Caveat,"Segoe Script",cursive;
  font-size:clamp(36px, 5.6vw, 62px);
  line-height:1.06;
  font-weight:700;
  color:var(--lime);
  text-shadow:3px 3px 0 var(--shade);
}

.lede{
  margin:0;
  color:#cfe4b8;
  font-size:17px;
}

/* ---------- 跑马灯 ---------- */
.marquee{
  overflow:hidden;
  margin:22px 0 6px;
  padding:9px 0;
  background:var(--deep);
  border-top:3px dashed var(--lime);
  border-bottom:3px dashed var(--lime);
}

.marquee p{
  display:inline-block;
  margin:0;
  white-space:nowrap;
  font-family:Caveat,"Segoe Script",cursive;
  font-size:23px;
  font-weight:600;
  color:var(--acid);
  animation:slide 26s linear infinite;
}

.marquee .sep{color:var(--lime)}

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

/* ---------- 页脚 ---------- */
.foot{
  margin-left:216px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:26px 34px;
  padding:34px 24px 30px;
  background:var(--deep);
  border-top:5px solid var(--lime);
}

.foot h2{
  font-family:Caveat,"Segoe Script",cursive;
  font-size:26px;
  font-weight:700;
  line-height:1.25;
  color:var(--lime);
  margin:0 0 .6em;
}

.foot h2 span{
  display:inline-block;
  padding:0 9px;
  border:2px solid var(--lime);
  border-radius:4px;
  transform:rotate(-1.5deg);
}

.foot p{font-size:16px}

.f-tag{color:#cfe4b8;max-width:30ch}

.f-links{
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
}

.flink{
  display:inline-block;
  min-height:42px;
  padding:9px 0;
  color:var(--paper);
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .16s ease, border-color .16s ease;
}

.flink:hover,
.flink:focus-visible{color:var(--lime);border-bottom-color:var(--lime)}

.f-sub{grid-column:1 / -1}

.sub{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  max-width:480px;
}

.sub input{
  flex:1 1 200px;
  min-height:44px;
  padding:10px 12px;
  font-family:inherit;
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  border:3px solid var(--ink);
  border-radius:4px;
}

.sub input:focus-visible,
.sub button:focus-visible{outline:3px solid var(--acid);outline-offset:2px}

.sub button{
  min-height:44px;
  padding:10px 22px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--lime);
  border:3px solid var(--ink);
  border-radius:4px;
  box-shadow:4px 4px 0 var(--shade);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease;
}

.sub button:hover{
  transform:translate(-2px,-2px) rotate(-1deg);
  box-shadow:6px 6px 0 var(--shade);
}

.f-bottom{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 20px;
  padding-top:14px;
  border-top:2px dotted rgba(128,255,0,.45);
}

.copy{margin:0;color:#a8c78f;font-size:16px}
.to-top{margin:0}

/* ---------- 滚动显现 ---------- */
.rv{
  opacity:0;
  transform:translateY(16px) rotate(-.35deg);
  transition:opacity .5s ease, transform .5s ease;
}

.rv.in{opacity:1;transform:none}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .masthead{
    position:static;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    padding:14px 14px 12px;
    border-right:0;
    border-bottom:3px solid var(--lime);
    box-shadow:0 6px 0 rgba(0,0,0,.4);
  }

  .brand{font-size:22px;padding:8px 10px;transform:rotate(-1.6deg)}

  .tabs{
    flex:1 1 240px;
    min-width:0;
  }

  .tabs p{
    flex-direction:row;
    gap:4px;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }

  .navlink{
    flex:0 0 auto;
    white-space:nowrap;
    min-height:44px;
    border-left:0;
    border-bottom:3px solid transparent;
    border-radius:4px 4px 0 0;
  }

  .navlink:hover,
  .navlink:focus-visible{transform:rotate(-1deg)}

  main{
    margin-left:0;
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    padding:18px 14px 34px;
  }

  .rail{
    position:static;
    order:2;
  }

  .sheet{order:1}

  .sheet > article[id]{scroll-margin-top:118px}

  .hero{
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    min-height:0;
    padding-top:6px;
  }

  .hero-media{max-width:340px;transform:rotate(-1.6deg)}

  .hero-copy{text-align:left}

  .hero h1{font-size:clamp(32px, 8.4vw, 44px)}

  .foot{
    margin-left:0;
    grid-template-columns:minmax(0,1fr);
    padding:26px 14px;
  }

  .f-sub,
  .f-bottom{grid-column:auto}
}

@media (max-width:420px){
  .hero-blob{aspect-ratio:1 / 1}
  .rail-tape{height:16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .marquee p{animation:none}
  .rv{opacity:1;transform:none;transition:none}
  .brand,
  .navlink,
  .sub button{transition:none}
}

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