:root {
  --bg: #f4f7fb;
  --bg-deep: #e8f0f7;
  --ink: #163047;
  --muted: #5a6a78;
  --line: #d4dee8;
  --card: #ffffff;
  --teal: #1a5a8a;
  --teal-ink: #13466c;
  --deep: #0f2a40;
  --brass: #3d6a8c;
  --brass-soft: #e6eef5;
  --warn: #eef3f8;
  --shadow: 0 16px 40px rgba(15, 42, 64, 0.06);
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Public Sans", "Avenir Next", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --header: 72px;
}

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

html { scroll-behavior: smooth; }

html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 90% -10%, rgba(26, 90, 138, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 280px);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--deep);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 190px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--teal);
  color: #f4f0e6;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: 0.02em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-weight: 650; letter-spacing: -0.01em; }
.brand-zh { font-size: 0.82rem; color: var(--muted); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 6px 8px;
  border-radius: 999px;
}

.site-nav a:hover { background: rgba(14, 92, 86, 0.08); }
.site-nav a[aria-current="page"] {
  background: var(--deep);
  color: #f4f0e6;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.checklist-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brass);
  padding: 6px 8px;
}

#lang-toggle,
.nav-toggle,
.button,
button {
  font-family: inherit;
}

#lang-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}

#lang-toggle { min-width: 64px; }

.nav-toggle { display: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 18px 0 8px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-ink);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brass);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.18; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); margin: 10px 0 14px; }
h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: 0 0 12px; }
h3 { font-size: 1.28rem; margin: 0 0 8px; }

.lede { font-size: 1.18rem; color: #2a3532; max-width: 42rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.2;
}

.button.primary { background: var(--teal); color: #f6f3ea; }
.button.primary:hover { background: var(--teal-ink); color: white; }
.button.ghost { background: transparent; border-color: #c9bfb0; color: var(--ink); }
.button.ghost:hover { border-color: var(--teal); color: var(--teal-ink); }

.hero-card, .card, .panel, .hospital, .faq details, .template, form, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card ol { margin: 8px 0 0; padding-left: 1.1rem; }
.hero-card li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 0.92rem; }

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

.grid-3, .grid-2, .grid-4 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .panel { padding: 18px 18px 16px; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.num {
  font-family: var(--serif);
  color: var(--brass);
  font-size: 1.4rem;
}

.boundary {
  background: var(--deep);
  color: #f4f0e6;
  border-radius: 22px;
  padding: 28px;
}
.boundary h2 { color: #f4f0e6; }
.boundary a { color: #d7efe9; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.boundary-grid div {
  border-top: 1px solid rgba(244, 240, 230, 0.2);
  padding-top: 10px;
}
.boundary strong { display: block; font-weight: 650; }

.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.city {
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-deep);
  border: 1px solid #d5e4e1;
  text-decoration: none;
  color: inherit;
}
.city:hover { border-color: var(--teal); }
.city span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

.steps { counter-reset: step; display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--teal);
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filters button[aria-pressed="true"] {
  background: var(--teal);
  color: #f6f3ea;
  border-color: var(--teal);
}
.filters button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 7px 12px;
  cursor: pointer;
}

.hospital { padding: 20px; margin: 14px 0; }
.hospital header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 700;
}
.facts { margin: 8px 0 0; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.sources { font-size: 0.92rem; color: var(--muted); }
.sources a { word-break: break-word; }

.template pre, .copy-block {
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  background: #f6f3ec;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}

.template { padding: 18px; }

.callout {
  padding: 16px 18px;
  background: var(--warn);
  box-shadow: none;
}
.callout strong { color: var(--brass); }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); font-weight: 650; }

.faq details { padding: 4px 16px; margin: 10px 0; box-shadow: none; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.faq details p:first-of-type { margin-top: 0; }

form { padding: 18px; display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 650; }
input, select, textarea {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #d2c8b8;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.check { font-weight: 450; grid-template-columns: 20px 1fr; align-items: start; }
.check input { width: auto; margin-top: 5px; }
.form-note { color: var(--muted); font-size: 0.95rem; }
.preview {
  display: none;
  border: 1px dashed var(--teal);
  background: #f3faf8;
  border-radius: 16px;
  padding: 16px;
}
.preview.is-on { display: block; }
.preview h3 { margin-top: 0; }

.checklist { display: grid; gap: 10px; }
.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.group-title { margin: 22px 0 4px; }

.site-footer { background: #ebe4d6; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 20px 40px; }
.disclaimer {
  background: var(--warn);
  border: 1px solid #e3d3b0;
  border-left: 4px solid var(--brass);
  border-radius: 14px;
  padding: 14px 16px;
}
.disclaimer p { margin: 8px 0; }
.disclaimer .label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); font-weight: 750; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; font-size: 0.92rem; }
.footer-nav a { text-decoration: none; }

.glossary td:first-child { font-weight: 650; white-space: nowrap; }

@media (max-width: 980px) {
  .hero, .grid-3, .grid-4, .cities, .boundary-grid { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 5;
    padding-bottom: 8px;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 10px 8px; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 760px) {
  .hero, .grid-2, .grid-3, .grid-4, .cities, .boundary-grid, .step { grid-template-columns: 1fr; }
  h1 { font-size: 2.15rem; }
}

@media print {
  .site-header, .header-tools, .actions, .filters, .no-print, .nav-toggle { display: none !important; }
  body { background: white; }
  .en, .zh { display: block !important; }
  .card, .hospital, .panel, .template, .hero-card, .boundary { box-shadow: none; }
  a { color: inherit; }
  .wrap { padding-top: 0; }
}

.legal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42rem;
}
