:root {
  --neon: #87ff71;
  --mustard: #ffce5c;
  --ink: #192617;
  --ink2: #0d160c;
  --paper: #e9ffe9;
  --line: rgba(135, 255, 113, .34);
  --card: rgba(233, 255, 233, .045);
  --serif: 'Cinzel', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Josefin Sans', '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;
  padding-bottom: 108px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(rgba(135, 255, 113, .17) 1px, transparent 1.4px),
    repeating-linear-gradient(45deg, rgba(255, 206, 92, .07) 0 2px, transparent 2px 15px);
  background-size: 23px 23px, auto;
}

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

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 2px;
}

/* ---------- 角落标记 ---------- */
.corner {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--neon);
  background: rgba(13, 22, 12, .9);
  color: var(--neon);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.corner img { display: block; width: 30px; height: 30px; object-fit: contain; border-radius: 50%; }

.corner:hover, .corner:focus-visible {
  background: var(--neon);
  color: var(--ink);
  transform: rotate(-6deg);
}

/* ---------- 底部胶囊导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(13, 22, 12, .95);
  backdrop-filter: blur(12px);
  border-top: 2px dashed rgba(135, 255, 113, .42);
}

.dock ol {
  display: flex;
  gap: 8px;
  margin: 0 auto;
  padding: 2px;
  max-width: 1180px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock ol::-webkit-scrollbar { display: none; }

.dock a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(135, 255, 113, .06);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.dock-num { font-family: var(--serif); font-size: 16px; opacity: .68; }

.dock a:hover, .dock a:focus-visible {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  transform: translateY(-3px) rotate(-1.6deg);
}

.dock a.is-active {
  background: var(--mustard);
  color: var(--ink);
  border-color: var(--mustard);
}

/* ---------- 主干 ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 45vh;
  padding: clamp(64px, 9vh, 88px) clamp(16px, 4vw, 40px) clamp(20px, 4vw, 34px);
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  right: -.04em;
  top: -.2em;
  font-family: var(--serif);
  font-size: clamp(110px, 24vw, 300px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 206, 92, .24);
  transform: rotate(-4deg);
  pointer-events: none;
  user-select: none;
}

.hero-fig {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  border: 2px dashed var(--line);
  border-bottom: 6px solid var(--mustard);
  background: linear-gradient(150deg, rgba(135, 255, 113, .18), rgba(255, 206, 92, .1));
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 91% 100%, 0 100%);
}

.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

.shape { position: absolute; display: block; }

.s1 {
  width: 58%; aspect-ratio: 1; left: 3%; bottom: -16%;
  border-radius: 50%; background: var(--neon); opacity: .92;
}

.s2 {
  width: 48%; height: 48%; right: -8%; top: 6%;
  background: var(--mustard); opacity: .95;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(12deg);
}

.s3 {
  width: 26%; height: 26%; left: 33%; top: 9%;
  border: 7px dotted var(--paper); border-radius: 50%; opacity: .8;
}

.hero-copy { position: relative; text-align: right; }

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.16;
  letter-spacing: .01em;
  color: #ffffff;
  text-shadow: 0 3px 0 rgba(25, 38, 23, .95);
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 128px;
  height: 8px;
  margin: 16px 0 0 auto;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 12px, transparent 12px 22px);
}

.hero-desc {
  max-width: 40ch;
  margin: 16px 0 0 auto;
  color: #cfefd0;
  font-size: 17px;
  font-weight: 300;
}

.stage {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
  padding: 0 clamp(16px, 4vw, 40px) 56px;
}

.rail {
  position: sticky;
  top: 14px;
  padding: 18px 14px 22px;
  border-radius: 28px;
  border: 2px dashed var(--line);
  border-bottom: 6px solid var(--neon);
  background: rgba(13, 22, 12, .74);
}

.rail h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .16em;
  color: var(--mustard);
}

.rail hr {
  border: 0;
  height: 6px;
  width: 78px;
  margin: 10px 0 16px;
  background: repeating-linear-gradient(90deg, var(--neon) 0 9px, transparent 9px 18px);
}

.rail-list { list-style: none; margin: 0; padding: 0; }

.rail-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px 6px 18px;
  border-radius: 14px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.rail-list a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  background: var(--mustard);
  transform: rotate(45deg);
}

.rail-list a:hover, .rail-list a:focus-visible {
  background: rgba(135, 255, 113, .15);
  color: var(--neon);
  transform: translateX(3px);
}

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

.prose article {
  position: relative;
  margin: 0 0 26px;
  padding: 24px clamp(16px, 3vw, 32px) 28px;
  border-radius: 28px;
  border: 1px solid rgba(135, 255, 113, .18);
  border-bottom: 6px solid var(--neon);
  background: var(--card);
  scroll-margin-top: 74px;
  transition: transform .25s ease, border-color .25s ease;
}

.prose article:nth-child(even) { border-bottom-color: var(--mustard); }

.prose article:hover {
  transform: translateY(-3px);
  border-color: rgba(135, 255, 113, .46);
}

.prose h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.3;
  color: #ffffff;
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-8deg);
  vertical-align: middle;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--neon);
}

.prose hr {
  border: 0;
  height: 6px;
  width: 96px;
  margin: 10px 0 18px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 10px, transparent 10px 20px);
}

.prose p { margin: 0 0 14px; }

.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 14px; }

.prose li { margin: 0 0 8px; }

.prose strong, .prose b { color: var(--neon); }

.prose a { color: var(--mustard); text-underline-offset: 3px; }

.prose img { max-width: 100%; height: auto; border-radius: 20px; }

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 6px solid var(--neon);
  border-radius: 0 22px 22px 0;
  background: rgba(135, 255, 113, .08);
}

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

.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }

.prose th, .prose td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px dashed rgba(135, 255, 113, .3);
}

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); }

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .55s cubic-bezier(.22, .9, .3, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 44px clamp(16px, 4vw, 40px) 26px;
  background: linear-gradient(180deg, rgba(135, 255, 113, .07), rgba(13, 22, 12, 1) 62%);
  border-top: 2px dashed rgba(135, 255, 113, .32);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr 1.35fr;
  gap: clamp(16px, 3vw, 34px);
  max-width: 1180px;
  margin: 0 auto;
}

footer dl { margin: 0; }

footer dt {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--mustard);
}

footer dd { margin: 0; color: #bfe2c0; font-size: 16px; }

footer ul { list-style: none; margin: 0; padding: 0; }

footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cfefd0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

footer li a:hover, footer li a:focus-visible { color: var(--neon); border-bottom-color: var(--neon); }

.foot-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--ink);
  border: 3px solid var(--ink);
  outline: 2px solid var(--mustard);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  transform: rotate(-7deg);
}

.f-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--mustard);
}

.sub { display: flex; flex-wrap: wrap; gap: 8px; }

.sub input {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(13, 22, 12, .82);
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
}

.sub button {
  min-height: 46px;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.sub button:hover, .sub button:focus-visible { background: var(--neon); transform: rotate(-2deg); }

.foot-base {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(135, 255, 113, .26);
  text-align: center;
}

.copy { margin: 0 0 6px; color: #9fd3a2; font-size: 16px; letter-spacing: .1em; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--neon);
  font-size: 16px;
  text-decoration: none;
}

.foot-base a:hover { text-decoration: underline; }

/* ---------- 断点 ---------- */
@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 18px; padding-top: 68px; }
  .hero-ghost { font-size: clamp(96px, 34vw, 200px); top: -.16em; }
  .hero-fig { aspect-ratio: 16 / 9; }
  .hero-copy { text-align: left; }
  .hero-copy h1::after { margin-left: 0; }
  .hero-desc { margin-left: 0; max-width: none; }
  .stage { grid-template-columns: 1fr; }
  .rail { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; padding-bottom: 116px; }
  .foot-grid { grid-template-columns: 1fr; }
  .prose article { padding: 20px 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in { transition: none; }
  .prose article:hover, .dock a:hover, .corner:hover, .sub button:hover { transform: none; }
}

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