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

:root {
  --neon: #87ff71;
  --mustard: #ffce5c;
  --ink: #192617;
  --deep: #0d150c;
  --paper: #f2ffe9;
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(135, 255, 113, .17) 1px, transparent 0);
  background-size: 26px 26px;
  color: #eaf7e2;
  font-family: 'Baloo 2', 'Comic Neue', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
}

a { color: var(--neon); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.2em; }
li { margin: 0 0 6px; }

/* ---------- 顶部两行导航 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px clamp(12px, 4vw, 28px) 12px;
  background: rgba(13, 21, 12, .93);
  backdrop-filter: blur(9px);
  border-bottom: 3px dashed rgba(255, 206, 92, .5);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 12px;
  border: 3px solid var(--neon);
  border-radius: 999px;
  background: rgba(135, 255, 113, .09);
  color: var(--neon);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-1.2deg);
}

.logo .mark {
  width: 20px;
  height: 20px;
  flex: none;
  background: var(--mustard);
  border: 3px solid var(--deep);
  border-radius: 6px;
  transform: rotate(14deg);
  box-shadow: 3px 3px 0 var(--neon);
}

.callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 3px solid var(--deep);
  border-radius: 999px;
  background: var(--mustard);
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
  transform: rotate(1.6deg);
  box-shadow: 4px 4px 0 rgba(135, 255, 113, .6);
}

.callout .ring {
  width: 12px;
  height: 12px;
  border: 3px solid var(--deep);
  border-radius: 50%;
  background: var(--neon);
}

.navbox { max-width: 1120px; margin: 12px auto 0; }

summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  border: 3px dashed var(--mustard);
  border-radius: 999px;
  background: rgba(255, 206, 92, .08);
  color: var(--mustard);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--neon);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.navbox[open] summary::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }

menu.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid rgba(135, 255, 113, .38);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: #eafae0;
  text-decoration: none;
  font-size: 16px;
}

.menu a:hover, .menu a:focus-visible {
  background: var(--neon);
  border-color: var(--deep);
  color: var(--deep);
}

.menu i {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--mustard);
  border-radius: 50%;
}

.menu li:nth-child(3n) i { background: var(--neon); border-radius: 2px; transform: rotate(45deg); }
.menu li:nth-child(3n+2) i { background: var(--mustard); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ---------- 主栅格 ---------- */
main.page {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px clamp(12px, 4vw, 28px) 44px;
}

.body { grid-column: 2; grid-row: 1; min-width: 0; }
.rail { grid-column: 1; grid-row: 1; position: sticky; top: 148px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 70vh;
  padding: 34px 22px 66px;
  border: 3px solid var(--neon);
  background: linear-gradient(158deg, rgba(135, 255, 113, .16), rgba(255, 206, 92, .13) 70%, rgba(13, 21, 12, .5));
  clip-path: polygon(0 0, 100% 0, 100% 93%, 64% 100%, 31% 95%, 0 100%);
  overflow: hidden;
  text-align: center;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .45;
  mix-blend-mode: screen;
}

.blob { position: absolute; border: 3px solid var(--deep); }

.b1 {
  width: 132px;
  height: 132px;
  top: -26px;
  left: -18px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: rotate(9deg);
}

.b2 {
  width: 96px;
  height: 96px;
  right: -14px;
  bottom: 34px;
  background: var(--neon);
  border-radius: 50%;
  border-style: dashed;
  border-width: 4px;
}

.b3 {
  width: 70px;
  height: 70px;
  right: 22%;
  top: 16px;
  background: rgba(135, 255, 113, .35);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
}

.hero-in { position: relative; z-index: 2; max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 2px dashed var(--mustard);
  border-radius: 999px;
  background: rgba(13, 21, 12, .55);
  color: var(--mustard);
  font-size: 16px;
  font-weight: 600;
}

.eyebrow .tick {
  width: 11px;
  height: 11px;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.6vw, 52px);
  line-height: 1.18;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(13, 21, 12, .95), 7px 7px 0 rgba(135, 255, 113, .45);
}

.lede {
  margin: 0 auto 20px;
  max-width: 30em;
  color: #e2f5d8;
  font-size: 17px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid rgba(135, 255, 113, .6);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  font-size: 16px;
  font-weight: 600;
  color: #f0ffe6;
}

.badge:nth-child(1) { transform: rotate(-2deg); }
.badge:nth-child(2) { transform: rotate(1.5deg); border-color: rgba(255, 206, 92, .7); }
.badge:nth-child(3) { transform: rotate(-1deg); }

/* ---------- 导语块 ---------- */
.intro {
  margin: 30px 0;
  padding: 24px clamp(16px, 3vw, 30px);
  border: 3px dashed var(--mustard);
  border-radius: 18px;
  background: rgba(255, 206, 92, .09);
  backdrop-filter: blur(8px);
}

/* ---------- 正文小节 ---------- */
h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
  color: var(--mustard);
}

h3 { margin: 22px 0 10px; font-size: 20px; color: var(--neon); }

hr {
  height: 0;
  margin: 0 0 18px;
  border: 0;
  border-top: 4px dashed rgba(135, 255, 113, .55);
}

.body > article[id] {
  position: relative;
  margin: 0 0 26px;
  padding: 26px clamp(16px, 3vw, 30px);
  border: 3px solid rgba(135, 255, 113, .3);
  border-left: 10px solid var(--neon);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(9px);
  box-shadow: 8px 8px 0 rgba(13, 21, 12, .55);
  scroll-margin-top: 210px;
}

.body > article[id]:nth-of-type(even) { transform: rotate(-.22deg); }

.body > article[id] a { color: var(--mustard); }

.body > article[id]::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mustard);
  opacity: .8;
}

/* ---------- 侧栏 ---------- */
.rail-card {
  padding: 16px;
  border: 3px dashed var(--mustard);
  border-radius: 18px;
  background: rgba(255, 206, 92, .09);
  backdrop-filter: blur(8px);
}

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

.rail-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #eafae0;
  text-decoration: none;
  font-size: 16px;
}

.rail-card a::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--neon);
}

.rail-card a:hover, .rail-card a:focus-visible {
  background: rgba(135, 255, 113, .16);
  border-color: rgba(135, 255, 113, .45);
}

.rail-t {
  margin: 0 0 10px;
  color: var(--mustard);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.rail-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 3px solid rgba(135, 255, 113, .4);
  border-radius: 18px;
  background: rgba(135, 255, 113, .08);
  backdrop-filter: blur(8px);
}

.rail-rot { margin: 0; font-size: 16px; color: #d9f1cf; }

/* ---------- 页脚 ---------- */
footer.foot {
  padding: 30px clamp(14px, 4vw, 28px) 26px;
  border-top: 3px dashed rgba(255, 206, 92, .5);
  background: var(--deep);
  text-align: center;
  overflow: hidden;
}

.foot-big {
  margin: 0 0 18px;
  font-size: clamp(34px, 8.6vw, 82px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  color: transparent;
  -webkit-text-stroke: 2px var(--neon);
  transform: rotate(-1deg);
  opacity: .9;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 16px;
  font-size: 16px;
}

address {
  font-style: normal;
  max-width: 32em;
  color: #cbe3c1;
}

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 2px solid rgba(135, 255, 113, .35);
  border-radius: 10px;
  color: var(--neon);
  text-decoration: none;
  font-size: 16px;
}

.foot-links a:hover, .foot-links a:focus-visible {
  background: var(--neon);
  border-color: var(--deep);
  color: var(--deep);
}

.copy { margin: 0; font-size: 16px; color: #a4c19a; }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  main.page { grid-template-columns: minmax(0, 1fr); }
  .body { grid-column: 1; }
  .rail { grid-column: 1; grid-row: 2; position: static; margin-top: 30px; }
  .rail-card ul { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .body > article[id] { scroll-margin-top: 240px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { padding: 8px 12px 10px; }
  .logo { font-size: 16px; padding: 6px 12px 6px 10px; }
  .callout { padding: 8px 14px; font-size: 16px; }
  .hero { min-height: 0; padding: 26px 16px 48px; }
  .hero-badges { gap: 8px; }
  .badge { min-height: 36px; padding: 5px 11px; }
  .intro, .body > article[id] { padding: 20px 16px; }
  .body > article[id] { border-left-width: 7px; }
  .b1 { width: 96px; height: 96px; }
  .b2 { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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