:root {
  color-scheme: light;
  --ink: #1d2424;
  --muted: #5f6968;
  --line: #d8ded9;
  --paper: #f6f2e8;
  --panel: #fffaf0;
  --field: #e9efe6;
  --green: #266247;
  --green-2: #79a36b;
  --blue: #356078;
  --rust: #b7653b;
  --gold: #c49a4d;
  --shadow: 0 20px 60px rgba(29, 36, 36, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(29, 36, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 36, 36, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Aptos, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img,
svg {
  max-width: 100%;
}

.skip-link {
  left: 16px;
  position: absolute;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(29, 36, 36, 0.12);
  background: rgba(246, 242, 232, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
  background: rgba(38, 98, 71, 0.1);
}

.nav-links a.language-switch {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--gold);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
}

.section,
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 44px;
  min-height: 0;
  padding-top: 36px;
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
}

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

h1,
.display {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
}

h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
}

h3 {
  font-size: 1.15rem;
}

.zh {
  color: var(--green);
  display: block;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 0.48em;
  line-height: 1.2;
  margin-top: 14px;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  margin: 18px 0 0;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.language-gate {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.language-choice-grid {
  display: grid;
  gap: 18px;
}

.language-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
}

.language-card.accent {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--green-2);
}

.language-card strong {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.language-card span:last-child {
  color: var(--muted);
}

.signal-board {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.board-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.pipeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.stage {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--green);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(121, 163, 107, 0.13), transparent 42%),
    #fffdf7;
}

.stage:nth-child(2) {
  border-left-color: var(--blue);
}

.stage:nth-child(3) {
  border-left-color: var(--rust);
}

.stage:nth-child(4) {
  border-left-color: var(--gold);
}

.stage-code {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.stage strong {
  display: block;
  font-size: 1.02rem;
}

.stage span:last-child {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.metric {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--field);
}

.metric strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  margin-top: 8px;
}

.band {
  border-top: 1px solid rgba(29, 36, 36, 0.12);
  border-bottom: 1px solid rgba(29, 36, 36, 0.12);
  background: rgba(233, 239, 230, 0.72);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 470px;
  color: var(--muted);
  margin: 0;
}

.grid-3,
.grid-2,
.price-grid,
.question-grid {
  display: grid;
  gap: 18px;
}

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

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

.panel,
.price,
.method,
.question-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.panel.accent,
.price.featured {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--green-2);
}

.panel p,
.price p,
.method p {
  color: var(--muted);
  margin: 12px 0 0;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 3px;
}

.price-amount {
  margin: 18px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.price-amount small {
  display: block;
  color: var(--muted);
  font-family: Aptos, "Noto Sans SC", sans-serif;
  font-size: 0.92rem;
  margin-top: 10px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.timeline-row strong {
  color: var(--green);
}

.empty-state {
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.84);
  padding: 34px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.form-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  color: var(--ink);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #b9c2bc;
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(196, 154, 77, 0.55);
  outline-offset: 2px;
}

.result-box {
  min-height: 260px;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  overflow: auto;
}

.site-footer {
  border-top: 1px solid rgba(29, 36, 36, 0.12);
  padding: 34px 22px;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .form-shell,
  .grid-2,
  .grid-3,
  .price-grid,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links-static {
    display: flex;
    position: static;
    box-shadow: none;
  }

  .brand {
    min-width: 0;
    max-width: 250px;
  }

  .section,
  .hero {
    padding: 52px 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero .signal-board {
    display: none;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }
}
