:root {
  --ink: #192617;
  --ink-deep: #0e1a0d;
  --neon: #87ff71;
  --mustard: #ffce5c;
  --paper: #f2ffe9;
  --body: #e9f7e2;
  --line: rgba(135, 255, 113, 0.28);
  --mute: #9fbb97;
}

*,
*::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 12% 8%, rgba(135, 255, 113, 0.08) 0, transparent 42%),
    radial-gradient(circle at 88% 24%, rgba(255, 206, 92, 0.07) 0, transparent 38%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 14px);
  color: var(--body);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

div[id] {
  scroll-margin-top: 104px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---------- 顶部锚点栏 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(25, 38, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--neon);
}

.rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 16px, transparent 16px 32px);
  pointer-events: none;
}

.rail-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--neon);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transform: rotate(-6deg);
}

.rail-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mark-txt {
  display: block;
  padding: 0 2px;
  text-align: center;
  letter-spacing: -0.04em;
}

.rail-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.rail-nav ul {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail-nav ul::-webkit-scrollbar {
  display: none;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: #dff6d5;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

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

.rail-nav a[aria-current="true"] {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--ink);
}

.rail-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 92% 100%, 0 100%);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, #255c33 0, transparent 55%),
    radial-gradient(circle at 78% 74%, #4a3a12 0, transparent 52%),
    var(--ink);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 38, 23, 0.7), rgba(25, 38, 23, 0.86)),
    repeating-linear-gradient(45deg, rgba(135, 255, 113, 0.07) 0 10px, transparent 10px 22px);
}

.hero-body {
  width: 100%;
  max-width: 920px;
  padding: 28px 22px 96px;
  text-align: center;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.4rem);
  line-height: 1.12;
  transform: rotate(-1.2deg);
}

.hero-h1 span {
  display: inline;
  padding: 0.02em 0.16em;
  background: var(--neon);
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 30px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--mustard);
  border: 2px solid var(--ink);
  border-radius: 4px;
  transform: rotate(2deg);
}

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 66px;
  background: var(--mustard);
  clip-path: polygon(0 100%, 0 46%, 52% 0, 100% 72%, 100% 100%);
  pointer-events: none;
}

/* ---------- 主体布局 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 18px 60px;
}

.shell {
  min-width: 0;
  max-width: 860px;
}

.deco {
  position: relative;
  height: 118px;
  margin: 0 0 6px;
  overflow: hidden;
  border: 3px solid var(--neon);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(135, 255, 113, 0.14) 0 2px, transparent 2px 13px),
    var(--ink);
}

.deco .d {
  position: absolute;
  display: block;
}

.d1 {
  left: 7%;
  top: -34px;
  width: 118px;
  height: 118px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(9deg);
}

.d2 {
  right: 12%;
  bottom: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.9;
}

.d3 {
  left: 38%;
  top: 44px;
  width: 132px;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 8px, transparent 8px 16px);
  transform: rotate(-8deg);
}

.d4 {
  right: 34%;
  top: 12px;
  width: 40px;
  height: 40px;
  border: 3px dotted var(--neon);
  border-radius: 4px;
  transform: rotate(18deg);
}

/* ---------- 正文 ---------- */
.shell div {
  padding: 40px 0;
  border-top: 3px dashed var(--line);
}

.shell div:first-of-type {
  border-top: 0;
  padding-top: 26px;
}

.shell h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 17px;
  font-size: clamp(1.35rem, 4.4vw, 1.9rem);
  line-height: 1.28;
}

.shell h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 8px;
  background: var(--neon);
  border-radius: 2px;
}

.shell h2 span {
  background: linear-gradient(transparent 62%, rgba(255, 206, 92, 0.5) 62%);
}

.shell h3 {
  position: relative;
  margin: 26px 0 12px;
  padding-left: 14px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.shell h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 5px;
  background: var(--mustard);
}

.shell h3 span {
  background: linear-gradient(transparent 68%, rgba(135, 255, 113, 0.22) 68%);
}

.shell p {
  margin: 0 0 1em;
}

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

.shell a:hover {
  color: var(--neon);
}

.shell ul,
.shell ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.shell li {
  margin: 0.35em 0;
}

.shell li::marker {
  color: var(--neon);
}

.shell strong {
  color: var(--neon);
}

.shell blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  background: rgba(255, 206, 92, 0.09);
  border-left: 6px solid var(--mustard);
  border-radius: 4px;
}

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

.shell img {
  margin: 1.2em 0;
  border: 3px solid var(--ink);
  border-radius: 4px;
  outline: 2px solid var(--line);
}

.shell table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 16px;
}

.shell th,
.shell td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px dotted var(--line);
}

.shell th {
  color: var(--neon);
  font-weight: 600;
}

.shell figure {
  margin: 1.2em 0;
}

.shell figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--mute);
}

/* ---------- 右侧栏 ---------- */
.side {
  position: relative;
  align-self: start;
  padding: 18px 16px;
  background: rgba(135, 255, 113, 0.05);
  border: 2px dashed var(--neon);
  border-radius: 4px;
}

.side-h {
  position: relative;
  margin: 0 0 12px;
  padding-left: 15px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.side-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 7px;
  background: var(--mustard);
  border-radius: 2px;
}

.side-h span {
  background: linear-gradient(transparent 64%, rgba(255, 206, 92, 0.42) 64%);
}

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

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(135, 255, 113, 0.16);
}

.side-nav a:hover,
.side-nav a[aria-current="true"] {
  background: var(--neon);
  color: var(--ink);
  border-radius: 4px;
}

.side-blob {
  height: 74px;
  margin-top: 16px;
  background: var(--mustard);
  clip-path: polygon(0 34%, 100% 0, 78% 100%, 18% 78%);
  opacity: 0.92;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 16px;
  padding: 42px 18px 20px;
  background: var(--ink-deep);
  border-top: 5px solid var(--neon);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 22px 20px;
  background: var(--neon);
  color: var(--ink);
  border-radius: 4px;
  transform: rotate(-0.7deg);
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(1.3rem, 5vw, 2rem);
  line-height: 1.2;
}

.foot-cta h2 span {
  background: linear-gradient(transparent 66%, rgba(25, 38, 23, 0.22) 66%);
}

.foot-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #cfeac6;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.address,
.foot-id address {
  font-style: normal;
  font-size: 17px;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.01em;
}

.copy {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 14px;
  font-size: 16px;
  color: var(--mute);
  border-top: 1px dashed rgba(135, 255, 113, 0.25);
}

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

@media (min-width: 980px) {
  body {
    font-size: 18px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 44px;
    padding-top: 44px;
    padding-bottom: 80px;
  }

  .side {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 82px;
  }

  .hero-body {
    padding-bottom: 120px;
  }
}

@media (max-width: 420px) {
  .rail {
    gap: 8px;
    padding: 8px 10px;
  }

  .rail-nav a {
    padding: 0 9px;
  }

  .rail-cta {
    padding: 0 12px;
  }

  .stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .deco {
    height: 96px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

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