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

:root {
  --ink: #192617;
  --ink-deep: #0e1b12;
  --ink-soft: #1d3020;
  --neon: #87ff71;
  --butter: #ffce5c;
  --paper: #eef7e8;
  --muted: #b9cfb2;
  --line: rgba(135, 255, 113, 0.34);
  --pad: clamp(1rem, 4vw, 2.6rem);
  --radius: 18px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Nunito Sans", "Rubik", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.78;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(135, 255, 113, 0.14) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.55;
}

.shell {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: "Rubik", "Nunito Sans", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.16;
}

/* ---------- 头部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #0c1910 0%, #16241a 100%);
  border-bottom: 3px dashed var(--line);
}

.brandrow {
  display: flex;
  align-items: center;
  padding: 0.5rem var(--pad) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--butter);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.brandmark {
  width: 26px;
  height: 26px;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-9deg);
  filter: drop-shadow(3px 3px 0 rgba(255, 206, 92, 0.55));
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.15rem var(--pad) 0.6rem;
}

.menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.78rem;
  border: 2px solid rgba(135, 255, 113, 0.4);
  border-radius: 999px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu a:nth-child(even) {
  border-color: rgba(255, 206, 92, 0.45);
  border-style: dotted;
}

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

.menu .num {
  font-family: "Rubik", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--butter);
}

.menu a:hover .num {
  color: var(--ink);
}

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(135, 255, 113, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 rgba(135, 255, 113, 0.8);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(3rem, 10vh, 7rem) var(--pad) clamp(5rem, 13vh, 9rem);
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 206, 92, 0.24), transparent 44%),
    linear-gradient(142deg, #213524 0%, #192617 54%, #123120 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 62rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 8.6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neon);
  text-shadow: 6px 6px 0 rgba(255, 206, 92, 0.42);
}

.lede {
  max-width: 44ch;
  margin: 0;
  font-size: 1.12rem;
  color: #d9e9d1;
}

.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
  will-change: transform;
}

.shape.a {
  top: 12%;
  right: -50px;
  width: 240px;
  height: 240px;
  background: var(--butter);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(12deg);
}

.shape.b {
  left: -40px;
  bottom: 20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.55;
}

.shape.c {
  right: 20%;
  bottom: 6%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--neon) 0 25%, transparent 0 50%);
  opacity: 0.5;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--neon) 0 20px, var(--butter) 20px 40px);
  z-index: 1;
}

/* ---------- 正文区 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.4rem, 7vw, 4.6rem) var(--pad) clamp(2rem, 6vw, 4rem);
}

.prose {
  min-width: 0;
  max-width: 46rem;
}

.prose section {
  position: relative;
  padding-block: clamp(1.6rem, 4vw, 2.7rem);
  scroll-margin-top: 9.5rem;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.prose section:nth-child(1) { animation-delay: 0.02s; }
.prose section:nth-child(2) { animation-delay: 0.08s; }
.prose section:nth-child(3) { animation-delay: 0.14s; }
.prose section:nth-child(4) { animation-delay: 0.2s; }
.prose section:nth-child(5) { animation-delay: 0.26s; }
.prose section:nth-child(6) { animation-delay: 0.32s; }
.prose section:nth-child(7) { animation-delay: 0.38s; }

.prose section + section {
  border-top: 2px dashed rgba(135, 255, 113, 0.24);
}

.prose section:first-child {
  padding-top: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prose h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--butter);
}

.prose h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--neon);
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose hr {
  width: 92px;
  height: 7px;
  margin: 0.35rem 0 1.3rem;
  border: 0;
  background: var(--neon);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

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

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

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--butter);
}

.prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 7px solid var(--butter);
  border-radius: var(--radius);
  background: rgba(255, 206, 92, 0.09);
  color: #f0f6ea;
}

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

.prose strong {
  color: var(--butter);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.prose figure {
  margin: 1.4rem 0;
  border-bottom: 5px solid var(--neon);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: rgba(135, 255, 113, 0.14);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 9rem;
  transform: rotate(-0.9deg);
  padding: 1.05rem 0.95rem 1.3rem;
  border: 2px solid rgba(255, 206, 92, 0.5);
  border-bottom: 6px solid var(--butter);
  border-radius: var(--radius);
  background: rgba(255, 206, 92, 0.07);
}

.rail h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--butter);
}

.rail hr {
  border: 0;
  border-top: 2px dotted rgba(255, 206, 92, 0.55);
  margin: 0.55rem 0 0.8rem;
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  border-bottom: 2px solid rgba(135, 255, 113, 0.22);
  border-radius: 10px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.rail a:hover,
.rail a:focus-visible {
  background: var(--neon);
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(2rem, 6vw, 3.6rem) var(--pad) 1.4rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(135, 255, 113, 0.13), transparent 40%),
    var(--ink-deep);
  border-top: 6px solid var(--neon);
}

.ctaBlock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 2.4rem;
  max-width: 1000px;
  padding: clamp(1.5rem, 5vw, 2.8rem);
  background: var(--neon);
  color: var(--ink);
  border-radius: var(--radius);
  border-bottom: 7px solid var(--butter);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 94% 100%, 0 100%);
}

.ctaBlock .big {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.ctaBlock a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--neon);
  font-weight: 700;
  text-decoration: none;
}

.ctaBlock a:hover,
.ctaBlock a:focus-visible {
  background: var(--ink-soft);
  outline: 3px solid var(--butter);
}

.footCols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.footCols address {
  font-style: normal;
  font-family: "Rubik", sans-serif;
  font-size: 1.3rem;
  color: var(--butter);
  line-height: 1.4;
}

.footCols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
  align-content: start;
}

.footCols a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.1rem;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px dotted rgba(135, 255, 113, 0.45);
}

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

.copy {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 2px dashed rgba(135, 255, 113, 0.22);
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    transform: rotate(-0.5deg);
    order: 2;
  }

  .prose {
    max-width: none;
  }

  .prose section {
    scroll-margin-top: 1.5rem;
  }

  .footCols {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 700px) {
  .masthead {
    position: static;
  }

  .menubar {
    flex-wrap: wrap;
  }

  .menu {
    flex: 1 1 100%;
  }

  .cta {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 92svh;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  }

  .shape.a {
    width: 170px;
    height: 170px;
    right: -60px;
  }

  .shape.b {
    width: 120px;
    height: 120px;
  }
}

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

  .prose section {
    animation: none;
  }

  .shape {
    transform: none !important;
  }

  * {
    transition: none !important;
  }
}

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