@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{
  --neon:#87ff71;
  --sun:#ffce5c;
  --ink:#192617;
  --text:#eaf7e6;
  --glass:rgba(255,255,255,.055);
  --r:28px;
  --dash:rgba(135,255,113,.42);
  --hand:"Caveat","Yuanti SC","PingFang SC",cursive;
  --ui:"Quicksand","Yuanti SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--ui);
  font-size:17px;
  line-height:1.75;
  background:var(--ink);
  color:var(--text);
  overflow-x:clip;
}

body::before{
  content:"";
  position:fixed;
  inset:-10%;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(rgba(135,255,113,.22) 1.4px,transparent 1.5px),
    radial-gradient(rgba(255,206,92,.16) 1.4px,transparent 1.5px);
  background-size:24px 24px,24px 24px;
  background-position:0 0,12px 12px;
  opacity:.55;
  mix-blend-mode:screen;
}

body::after{
  content:"";
  position:fixed;
  right:-130px;
  top:28%;
  width:320px;
  height:320px;
  z-index:0;
  pointer-events:none;
  background:var(--neon);
  opacity:.13;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(16deg);
}

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

/* ---------- 顶栏 ---------- */
.bar{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(25,38,23,.9);
  border-bottom:2px dashed var(--dash);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.bar-brand{
  display:flex;
  justify-content:center;
  padding:9px 18px 2px;
}

.mark{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:4px 10px;
  text-decoration:none;
  color:var(--neon);
  border-radius:14px;
}

.mark-glyph{
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:11px;
  background:var(--neon);
  color:var(--ink);
  font-family:var(--hand);
  font-size:22px;
  font-weight:700;
  transform:rotate(-6deg);
}

.mark-txt{
  font-family:var(--hand);
  font-size:26px;
  font-weight:700;
  letter-spacing:.1em;
  line-height:1.2;
}

.bar-tools{
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 14px 10px;
  max-width:1180px;
  margin:0 auto;
}

.burger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 15px;
  border:2px solid var(--neon);
  border-radius:999px;
  background:transparent;
  color:var(--neon);
  font:inherit;
  font-size:16px;
  cursor:pointer;
}

.burger em{font-style:normal;letter-spacing:.06em}

.burger-ico{display:grid;gap:3px}

.burger-ico i{
  display:block;
  width:18px;
  height:2px;
  background:currentColor;
  transition:transform .25s ease,opacity .25s ease;
}

.burger[aria-expanded="true"] .burger-ico i:nth-child(1){transform:translateY(5px) rotate(45deg)}
.burger[aria-expanded="true"] .burger-ico i:nth-child(2){opacity:0}
.burger[aria-expanded="true"] .burger-ico i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

.seek{flex:1;min-width:0;max-width:430px}

.seek input{
  width:100%;
  min-height:44px;
  padding:8px 16px;
  border:2px dashed rgba(255,206,92,.55);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  font:inherit;
  font-size:16px;
}

.seek input::placeholder{color:rgba(234,247,230,.6)}
.seek input:focus{outline:2px solid var(--sun);outline-offset:2px}

/* ---------- 全屏菜单 ---------- */
.veil{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:118px 22px 40px;
  background:rgba(25,38,23,.97);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease,visibility .28s ease;
  overflow-y:auto;
}

.veil.open{opacity:1;visibility:visible}

.veil::before{
  content:"";
  position:absolute;
  left:6%;
  top:16%;
  width:90px;
  height:90px;
  border:8px dotted var(--sun);
  border-radius:50%;
  opacity:.5;
  pointer-events:none;
}

.veil::after{
  content:"";
  position:absolute;
  right:5%;
  bottom:14%;
  width:110px;
  height:110px;
  background:var(--neon);
  opacity:.22;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-14deg);
  pointer-events:none;
}

.veil-nav{position:relative;z-index:1;width:100%;max-width:420px}

.veil-nav ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}

.veil-nav a{
  display:block;
  min-height:48px;
  padding:11px 18px;
  text-align:center;
  text-decoration:none;
  color:var(--text);
  font-family:var(--hand);
  font-size:23px;
  letter-spacing:.08em;
  border-radius:18px;
  border:2px dashed transparent;
  transition:color .2s ease,background .2s ease,transform .2s ease;
}

.veil-nav a:hover,.veil-nav a:focus-visible{
  color:var(--ink);
  background:var(--neon);
  border-color:var(--ink);
  transform:rotate(-1.5deg);
}

.veil-nav li:nth-child(even) a:hover{background:var(--sun)}

/* ---------- 主体网格 ---------- */
.stage{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px 44px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
}

.paper{min-width:0}

main div{scroll-margin-top:132px}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  display:grid;
  gap:14px;
  min-height:45vh;
  padding:20px 18px 24px;
  border-radius:var(--r);
  border:2px dashed var(--dash);
  background:
    linear-gradient(158deg,rgba(135,255,113,.14),rgba(255,206,92,.1) 60%,rgba(255,255,255,.03));
  overflow:hidden;
}

.hero-art{
  position:relative;
  min-height:158px;
  will-change:transform;
}

.sh{position:absolute;pointer-events:none}

.sh1{
  width:58px;
  height:58px;
  top:2%;
  right:4%;
  background:var(--neon);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(14deg);
  mix-blend-mode:screen;
}

.sh2{
  width:44px;
  height:44px;
  bottom:6%;
  left:2%;
  border:6px dotted var(--sun);
  border-radius:50%;
}

.sh3{
  width:86px;
  height:12px;
  top:54%;
  left:32%;
  background:repeating-linear-gradient(90deg,var(--sun) 0 6px,transparent 6px 13px);
  transform:rotate(-9deg);
}

.polaroid{
  position:absolute;
  margin:0;
  padding:7px 7px 13px;
  background:#f6ffe9;
  border-radius:15px;
  box-shadow:8px 10px 0 rgba(0,0,0,.34);
  overflow:hidden;
}

.polaroid .shot{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:9px;
}

.po1{
  width:56%;
  aspect-ratio:3/4;
  top:0;
  left:2%;
  transform:rotate(-6deg);
}

.po2{
  width:50%;
  aspect-ratio:1/1;
  bottom:-4%;
  right:0;
  transform:rotate(6deg);
}

.hero-copy{text-align:right}

.chip{
  display:inline-block;
  padding:5px 16px;
  border-radius:999px;
  background:var(--sun);
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  transform:rotate(-3deg);
  box-shadow:4px 4px 0 rgba(0,0,0,.38);
}

.hero h1{
  margin:14px 0 0;
  font-size:clamp(26px,6.4vw,50px);
  line-height:1.22;
  font-weight:700;
  color:#fff;
  letter-spacing:.01em;
  text-shadow:3px 3px 0 rgba(135,255,113,.25);
}

/* ---------- 正文卡片 ---------- */
.paper > div:not(.hero){
  position:relative;
  margin-top:24px;
  padding:26px 20px 24px;
  border-radius:var(--r);
  border:1px dashed rgba(255,255,255,.24);
  background:var(--glass);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.paper > div:not(.hero)::before{
  content:"";
  position:absolute;
  top:14px;
  right:16px;
  width:30px;
  height:30px;
  border-top:3px solid var(--sun);
  border-right:3px solid var(--sun);
  border-radius:0 10px 0 0;
  transform:rotate(8deg);
  opacity:.85;
  pointer-events:none;
}

.paper > div:nth-of-type(odd):not(.hero)::before{
  border-top-color:var(--neon);
  border-right-color:var(--neon);
}

.paper h2{
  margin:0 0 .55em;
  font-size:clamp(21px,3.6vw,30px);
  line-height:1.32;
  color:var(--neon);
  letter-spacing:.01em;
}

.paper h3{
  margin:1.3em 0 .45em;
  font-size:19px;
  line-height:1.4;
  color:var(--sun);
}

.paper p{margin:0 0 1em}
.paper p:last-child{margin-bottom:0}

.paper a{color:var(--sun);text-decoration-thickness:2px;text-underline-offset:3px}
.paper a:hover{color:var(--neon)}

.paper ul,.paper ol{margin:0 0 1em;padding-left:1.35em}
.paper li{margin:.35em 0}
.paper ul li::marker{color:var(--neon)}
.paper ol li::marker{color:var(--sun);font-weight:700}

.paper blockquote{
  margin:1.1em 0;
  padding:12px 18px;
  border-left:5px solid var(--neon);
  border-radius:0 18px 18px 0;
  background:rgba(135,255,113,.09);
}

.paper figure{margin:1.1em 0}
.paper img{border-radius:18px;display:block}
.paper code{
  font-size:16px;
  padding:2px 7px;
  border-radius:8px;
  background:rgba(255,206,92,.16);
  color:var(--sun);
}

.paper table{width:100%;border-collapse:collapse;margin:1em 0;font-size:16px}
.paper th,.paper td{border:1px dashed rgba(255,255,255,.26);padding:10px 12px;text-align:left}
.paper th{color:var(--neon)}

/* ---------- 右侧栏 ---------- */
.rail{
  padding:20px 16px 22px;
  border-radius:var(--r);
  border:2px dashed rgba(255,206,92,.5);
  background:rgba(255,206,92,.075);
}

.rail-eb{
  display:block;
  font-family:var(--hand);
  font-size:19px;
  line-height:1.2;
  letter-spacing:.18em;
  color:var(--sun);
}

.rail-h{
  margin:2px 0 .7em;
  font-size:20px;
  line-height:1.35;
  color:#fff;
}

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

.rail-list li{opacity:0;transform:translateX(10px);animation:railIn .5s ease forwards}
.rail-list li:nth-child(1){animation-delay:.04s}
.rail-list li:nth-child(2){animation-delay:.1s}
.rail-list li:nth-child(3){animation-delay:.16s}
.rail-list li:nth-child(4){animation-delay:.22s}
.rail-list li:nth-child(5){animation-delay:.28s}
.rail-list li:nth-child(6){animation-delay:.34s}
.rail-list li:nth-child(7){animation-delay:.4s}

@keyframes railIn{to{opacity:1;transform:none}}

.rail-list a{
  display:block;
  min-height:44px;
  padding:10px 12px;
  border-left:3px solid transparent;
  border-radius:0 14px 14px 0;
  text-decoration:none;
  color:#dcf3d4;
  line-height:1.4;
}

.rail-list a:hover,.rail-list a:focus-visible{
  background:rgba(135,255,113,.16);
  border-left-color:var(--neon);
  color:#fff;
}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px 18px;
  padding:24px 16px 42px;
  border-top:2px dashed rgba(135,255,113,.34);
  text-align:center;
  font-size:16px;
}

.foot-ad{
  font-style:normal;
  font-family:var(--hand);
  font-size:21px;
  letter-spacing:.08em;
  color:var(--neon);
}

.foot-links{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:0;padding:0}

.foot-links a{
  display:inline-block;
  min-height:44px;
  padding:10px 4px;
  color:#dcf3d4;
  text-decoration:none;
  border-bottom:2px dotted rgba(255,206,92,.5);
}

.foot-links a:hover{color:var(--sun)}

.up{
  display:inline-block;
  min-height:44px;
  padding:10px 16px;
  border:2px solid var(--sun);
  border-radius:999px;
  color:var(--sun);
  text-decoration:none;
}

.up:hover{background:var(--sun);color:var(--ink)}

/* ---------- 滚动揭示 ---------- */
.rv{opacity:0;transform:translateY(18px);transition:opacity .5s ease,transform .5s ease}
.rv.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (min-width:720px){
  .hero-art{min-height:220px}
  .paper > div:not(.hero){padding:32px 30px 30px}
}

@media (min-width:760px){
  .hero{
    grid-template-columns:1.05fr 1fr;
    align-items:center;
    padding:26px 24px;
    gap:20px;
  }
  .hero-art{min-height:46vh}
}

@media (min-width:900px){
  .stage{
    grid-template-columns:minmax(0,1fr) 252px;
    align-items:start;
    padding:26px 22px 52px;
    gap:30px;
  }
  .rail{position:sticky;top:126px}
  .paper > div:not(.hero){padding:36px 34px 32px}
  .bar-brand{justify-content:flex-start;max-width:1180px;margin:0 auto;padding-left:22px}
}

@media (max-width:519px){
  .bar-tools{padding:4px 12px 10px}
  .mark-txt{font-size:23px}
  .hero h1{text-shadow:2px 2px 0 rgba(135,255,113,.25)}
  .foot{gap:6px 12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .rail-list li{opacity:1;transform:none}
  .rv{opacity:1;transform:none}
}

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