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

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

:root {
  --ink: #192617;
  --ink-2: #21331e;
  --ink-3: #0f1a0e;
  --lime: #87ff71;
  --sun: #ffce5c;
  --paper: #edfae8;
  --muted: #c6d8bf;
  --rail: 236px;
  --pad: clamp(18px, 4vw, 56px);
  --r: 28px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(135, 255, 113, .14) 1.4px, transparent 1.5px);
  background-size: 24px 24px;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

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

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

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* ---------- 左侧竖排栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px 26px;
  background: var(--ink-2);
  border-right: 3px dashed rgba(135, 255, 113, .35);
  overflow-y: auto;
}

.rail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 150px;
  background: var(--lime);
  opacity: .16;
  pointer-events: none;
  clip-path: polygon(0 100%, 100% 100%, 0 22%);
}

.brand {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--lime);
  color: var(--ink);
  border-radius: 14px;
  transform: rotate(-6deg);
  text-decoration: none;
  transition: transform .25s ease, border-radius .25s ease;
}
.brand:hover { transform: rotate(6deg) scale(1.05); border-radius: 22px; }
.brand .mark { width: 34px; height: 34px; object-fit: contain; display: block; }
.mark-glyph {
  width: 18px; height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.nav-shell { flex: none; }

.nav-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--sun);
  border: 2px dashed var(--sun);
  border-radius: 0 18px 0 18px;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease, color .2s ease;
}
.nav-summary::-webkit-details-marker { display: none; }
.nav-summary:hover,
.nav-shell[open] > .nav-summary { background: var(--sun); color: var(--ink); }

.bars {
  width: 16px; height: 12px;
  flex: none;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 5px / 70% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 100% 2px no-repeat;
}

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

.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--paper);
  border-left: 3px solid transparent;
  border-radius: 0 14px 14px 0;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.nav-list a:hover {
  background: var(--lime);
  color: var(--ink);
  border-left-color: var(--sun);
  transform: translateX(3px) rotate(-.5deg);
}
.nav-list .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--sun);
  opacity: .85;
}
.nav-list a:hover .num { color: var(--ink); }

.finder {
  margin-top: auto;
  display: flex;
  gap: 0;
  border: 2px solid rgba(135, 255, 113, .45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 26, 14, .7);
}
.finder input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}
.finder input::placeholder { color: rgba(237, 250, 232, .55); }
.finder input:focus { outline: none; }
.finder button {
  flex: none;
  min-width: 46px;
  min-height: 44px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.finder button:hover { background: var(--lime); }

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  align-items: end;
  justify-items: end;
  overflow: hidden;
  border-bottom: 3px dashed rgba(135, 255, 113, .45);
  background: var(--ink-3);
}

.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 26, 14, .1), rgba(15, 26, 14, .92) 74%);
}
.hero--plain .hero-media {
  background:
    radial-gradient(circle at 22% 32%, rgba(135, 255, 113, .45), transparent 58%),
    linear-gradient(118deg, #22351f, #101a0f 70%);
}
.hero--plain .hero-media::after {
  content: "";
  position: absolute;
  right: 18%; top: 18%;
  width: 42vw; height: 42vw;
  max-width: 420px; max-height: 420px;
  background: var(--sun);
  opacity: .9;
  transform: rotate(-12deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 5vw, 60px) var(--pad);
  text-align: right;
}
.hero-kicker {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--lime);
}
.hero-kicker::after {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--lime);
}
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 60px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 3px 24px rgba(15, 26, 14, .85);
}

/* ---------- 版心 ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) var(--pad) 60px;
}

.content-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(22px, 3.4vw, 48px);
  align-items: start;
}

/* ---------- 正文 ---------- */
.prose {
  min-width: 0;
  padding: clamp(20px, 3.6vw, 44px);
  background: rgba(33, 51, 30, .72);
  border: 2px dashed rgba(135, 255, 113, .42);
  border-radius: var(--r);
}

.prose > *:first-child { margin-top: 0; }
.prose > article + article {
  margin-top: 2.2em;
  padding-top: 2em;
  border-top: 2px dashed rgba(135, 255, 113, .28);
}

.prose h2 {
  margin: 1.5em 0 .6em;
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--lime);
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: .48em; height: .48em;
  margin-right: .42em;
  vertical-align: .06em;
  background: var(--sun);
  transform: rotate(45deg);
}
.prose h3 {
  margin: 1.3em 0 .5em;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.4;
  color: var(--sun);
}
.prose p { margin: 0 0 1.05em; color: var(--muted); }
.prose strong { color: var(--paper); }
.prose a { color: var(--sun); text-decoration: underline dotted; text-underline-offset: 4px; }
.prose a:hover { color: var(--lime); }

.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin: .45em 0; color: var(--muted); }
.prose li::marker { color: var(--lime); }

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: rgba(255, 206, 92, .1);
  border-left: 6px solid var(--sun);
  border-radius: 0 20px 20px 0;
  color: var(--paper);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose img {
  border-radius: 20px;
  border: 2px solid var(--lime);
  height: auto;
}

.prose table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 16px;
}
.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px dashed rgba(135, 255, 113, .4);
  text-align: left;
}
.prose th { color: var(--sun); background: rgba(255, 206, 92, .08); }

.prose hr {
  height: 0;
  margin: 1.8em 0;
  border: 0;
  border-top: 2px dashed rgba(135, 255, 113, .3);
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.side-block {
  padding: 16px 18px;
  background: rgba(255, 206, 92, .07);
  border: 2px solid var(--sun);
  border-radius: 24px;
  transform: rotate(-.6deg);
}
.side-block:nth-child(2) { transform: rotate(.7deg); }

.side-h {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--sun);
}
.side-h span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px dotted var(--sun);
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px dotted rgba(237, 250, 232, .22);
  transition: color .18s ease, padding-left .18s ease;
}
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--lime); padding-left: 6px; }

.side-desc {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.to-top {
  display: inline-block;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease;
}
.to-top:hover { background: var(--sun); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 18px var(--pad) 30px;
  border-top: 3px dashed rgba(135, 255, 113, .4);
  background: var(--ink-3);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
}
.foot-brand .mark { width: 26px; height: 26px; object-fit: contain; }
.mark-mini {
  width: 14px; height: 14px;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px dotted transparent;
  transition: color .18s ease, border-color .18s ease;
}
.foot-nav a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.foot-copy {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- 入场 ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
.js .side-block.reveal.in { transform: rotate(-.6deg); }
.js .side-block:nth-child(2).reveal.in { transform: rotate(.7deg); }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .content-zone { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: 1fr; }
  .side-block,
  .side-block:nth-child(2) { transform: none; }
  .js .side-block.reveal.in,
  .js .side-block:nth-child(2).reveal.in { transform: none; }
}

@media (max-width: 760px) {
  body { padding-left: 0; }
  [id] { scroll-margin-top: 96px; }

  .rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 3px dashed rgba(135, 255, 113, .45);
    overflow: visible;
  }
  .rail::after { display: none; }

  .brand { width: 42px; height: 42px; border-radius: 12px; }
  .brand .mark { width: 28px; height: 28px; }

  .nav-shell { position: relative; }
  .nav-summary { min-height: 44px; padding: 8px 12px; letter-spacing: .06em; }

  .nav-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    width: min(76vw, 300px);
    margin: 0;
    padding: 8px;
    background: var(--ink-2);
    border: 2px dashed var(--sun);
    border-radius: 0 20px 20px 20px;
    box-shadow: 6px 6px 0 rgba(15, 26, 14, .55);
  }

  .finder { margin: 0 0 0 auto; max-width: 46vw; }

  .hero { min-height: 42vh; }
  .hero-copy { padding: 20px 16px 24px; }
  .hero--plain .hero-media::after { width: 58vw; height: 58vw; right: 10%; }

  .wrap { padding: 22px 16px 44px; }
  .prose { padding: 18px 16px; border-radius: 22px; }
  .foot { justify-content: center; text-align: center; }
  .foot-nav { justify-content: center; }
}

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

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