:root {
  --paper: #f5f2ea;
  --surface: #fffefa;
  --ink: #1d2522;
  --muted: #66706c;
  --green: #116b50;
  --green-dark: #0a4936;
  --pink: #d62d73;
  --line: #c9cec8;
  --soft-green: #dfece6;
  --soft-pink: #f6dce8;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 234, 0.96);
}

.header-inner,
.container,
.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
}

.main-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green);
  border-color: var(--green);
}

.header-action {
  justify-self: end;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.button.secondary {
  background: transparent;
  color: var(--green);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  align-items: center;
  gap: 64px;
  padding-block: 42px;
}

.eyebrow,
.index-label,
.section-kicker {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.22;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 28px;
  font-size: 34px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 24px;
  color: #46504c;
  font-size: 18px;
}

.keyword-note {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 10px;
  border-left: 3px solid var(--pink);
  background: var(--soft-pink);
  color: #7e1747;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-height: 545px;
  display: grid;
  grid-template-columns: 74px minmax(0, 320px);
  align-items: center;
  justify-content: end;
  gap: 18px;
}

.category-tabs {
  display: grid;
  gap: 8px;
}

.category-tabs span {
  display: grid;
  min-height: 76px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  writing-mode: vertical-rl;
}

.category-tabs span:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.preview-stage {
  position: relative;
  width: min(100%, 320px);
  margin: 0;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 12px 12px 0 var(--soft-green);
}

.preview-image {
  display: grid;
  place-items: center;
}

.preview-image img {
  width: 100%;
  height: auto;
}

.preview-caption {
  width: 100%;
  padding: 10px 12px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.hero h1 span {
  display: block;
}

.section {
  padding: 82px 0;
}

.section.light {
  background: var(--surface);
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-header h2 {
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.8fr;
  gap: 22px;
  align-items: end;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 1px solid var(--ink);
  background: #fff;
}

.gallery-item figcaption {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-item figcaption strong {
  color: var(--pink);
}

.category-ledger,
.feature-grid,
.route-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.category-ledger {
  grid-template-columns: repeat(4, 1fr);
}

.ledger-item,
.feature-item,
.route-card {
  background: var(--surface);
  padding: 28px;
}

.ledger-item span,
.feature-item span {
  display: block;
  margin-bottom: 28px;
  color: var(--pink);
  font-weight: 800;
}

.ledger-item p,
.feature-item p,
.route-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.workflow {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.workflow article {
  counter-increment: step;
  border-top: 3px solid var(--green);
  padding-top: 22px;
}

.workflow article::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 30px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 800;
}

.route-grid {
  grid-template-columns: repeat(2, 1fr);
}

.route-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.route-card .text-link {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
  border-bottom: 1px solid var(--green);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

.final-cta p {
  margin: 0;
  color: #c5cec9;
}

.page-hero {
  padding: 78px 0 62px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 72px;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  border-top: 3px solid var(--green);
  padding-top: 16px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.article-body section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.article-body h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.article-body p,
.article-body li {
  color: #46504c;
}

.check-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 16px 12px 16px 40px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: var(--green);
  font-weight: 900;
}

.note-box {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--pink);
  background: var(--soft-pink);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr 30px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.faq-question::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink);
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  background: var(--green);
  color: #fff;
}

.faq-answer {
  display: none;
  max-width: 760px;
  padding: 0 44px 22px 0;
  color: var(--muted);
}

.faq-answer.is-open {
  display: block;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.footer-brand {
  justify-content: center;
  margin-inline: auto;
}

.site-footer p {
  max-width: 900px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    padding: 26px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .main-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .header-action {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 34px 38px;
  }

  .hero-media {
    min-height: auto;
    grid-template-columns: 54px minmax(0, 288px);
    justify-content: center;
  }

  .category-tabs span {
    min-height: 58px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .category-ledger,
  .feature-grid,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container,
  .hero-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 64px;
  }

  .main-nav {
    inset-block-start: 64px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-inner {
    gap: 12px;
    padding-block: 16px 18px;
  }

  .keyword-note {
    margin-bottom: 16px;
  }

  .hero-actions .button {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }

  .hero-media {
    grid-template-columns: 42px minmax(0, 160px);
    gap: 10px;
  }

  .category-tabs {
    gap: 4px;
  }

  .category-tabs span {
    min-height: 36px;
    font-size: 11px;
  }

  .preview-stage {
    box-shadow: 7px 7px 0 var(--soft-green);
  }

  .preview-caption {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .gallery-item img {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .category-ledger,
  .feature-grid,
  .workflow,
  .route-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta {
    gap: 20px;
  }

  .final-cta .button {
    width: 100%;
  }

  .page-hero {
    padding: 52px 0 44px;
  }

  .page-hero h1 {
    font-size: 39px;
  }
}

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

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