:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #edf5f2;
  --surface-3: #e5efec;
  --ink: #17333a;
  --muted: #5d7176;
  --line: #d5dfdc;
  --brand: #0c6770;
  --brand-2: #0f7b77;
  --brand-ink: #083f47;
  --aqua: #78d6ca;
  --amber: #ecad55;
  --amber-soft: #fff1d9;
  --danger: #b34a3f;
  --danger-soft: #fff0ec;
  --green: #2c7964;
  --green-soft: #eaf7f1;
  --blue-soft: #eaf3f8;
  --shadow: 0 18px 48px rgba(15, 54, 60, .11);
  --shadow-sm: 0 8px 24px rgba(15, 54, 60, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071b20;
  --surface: #0e272d;
  --surface-2: #102f34;
  --surface-3: #16373b;
  --ink: #eef8f5;
  --muted: #adc2c2;
  --line: #2b494c;
  --brand: #7edbd0;
  --brand-2: #64c9bf;
  --brand-ink: #d9fff9;
  --aqua: #74d5c9;
  --amber: #f1bb6c;
  --amber-soft: #3b301e;
  --danger: #ff9f92;
  --danger-soft: #3d2422;
  --green: #86ddbd;
  --green-soft: #15392f;
  --blue-soft: #15303c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
strong { font-weight: 760; }

.u-mt { margin-top: 17px !important; }
.u-mt-sm { margin-top: 14px !important; }
.text-link { color: var(--brand); font-weight: 800; }
.text-link:hover { text-decoration: underline; }
.status-good { color: var(--green) !important; }
.status-caution { color: var(--amber) !important; }
.copy-helper { position: fixed; inset: 0 auto auto -9999px; opacity: 0; pointer-events: none; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: 12px;
  padding: 10px 15px;
  border-radius: 9px;
  background: #fff;
  color: #083f47;
  box-shadow: var(--shadow-sm);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.update-bar {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: #082f36;
  color: #d9f5f1;
  font-size: 13px;
  letter-spacing: .01em;
}
.update-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-block: 6px;
  text-align: center;
}
.status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--aqua); box-shadow: 0 0 0 4px rgba(120, 214, 202, .12); }

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(9, 50, 56, .06); }
.site-header__inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand__mark { width: 39px; height: 39px; color: var(--brand); flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.18; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11.5px; letter-spacing: .03em; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a, .theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.primary-nav a:hover, .primary-nav a.is-active, .primary-nav a[aria-current="page"], .theme-toggle:hover { background: var(--surface-3); color: var(--ink); }
.theme-toggle { width: 40px; padding: 0; margin-left: 4px; }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="light"] .icon--moon { display: none; }
html[data-theme="dark"] .icon--sun { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; border-radius: 3px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(circle at 82% 12%, rgba(120, 214, 202, .26), transparent 30%),
    radial-gradient(circle at 16% 92%, rgba(236, 173, 85, .16), transparent 29%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(12, 103, 112, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 103, 112, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr); gap: 62px; align-items: center; }
.eyebrow, .page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.eyebrow::before, .page-kicker::before { content: ""; width: 24px; height: 2px; background: var(--amber); }
.hero h1, .page-hero h1 { margin: 0; max-width: 820px; font-size: clamp(42px, 5.8vw, 72px); line-height: 1.06; letter-spacing: -.045em; }
.hero h1 span { color: var(--brand); }
.hero__lead { max-width: 700px; margin: 25px 0 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 27px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.check-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 25px rgba(12, 103, 112, .22); }
html[data-theme="dark"] .button--primary { color: #062b31; }
.button--primary:hover { background: var(--brand-2); }
.button--ghost { border-color: var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.button--ghost:hover { background: var(--surface-3); }
.button--light { background: var(--surface); border-color: var(--line); }
.button--wide { width: 100%; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -98px; top: -105px; background: rgba(120, 214, 202, .18); }
.hero-panel__title { position: relative; z-index: 1; margin: 0 0 19px; font-size: 18px; }
.hero-panel__steps { position: relative; z-index: 1; display: grid; gap: 12px; }
.hero-panel__step { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.hero-panel__step:first-child { border-top: 0; padding-top: 0; }
.hero-panel__step span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-weight: 850; }
.hero-panel__step strong { display: block; margin-bottom: 3px; }
.hero-panel__step p { margin: 0; color: var(--muted); font-size: 14px; }

.section { padding: 78px 0; }
.section--soft { background: var(--surface-2); }
.section--compact { padding: 48px 0; }
.section-heading { max-width: 820px; margin-bottom: 31px; }
.section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 6px 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.17; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.section-kicker, .mini-kicker { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: none; }
.privacy-chip { display: inline-flex; align-items: center; gap: 8px; min-width: max-content; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 13px; }
.privacy-chip svg { width: 17px; height: 17px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.planner-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); gap: 26px; align-items: start; }
.planner-form, .planner-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.planner-form { padding: 25px; }
.planner-form fieldset { min-width: 0; padding: 0 0 24px; margin: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); }
.planner-form fieldset:last-of-type { margin-bottom: 22px; }
.planner-form legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 800; }
.planner-form legend span { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--surface-2); color: var(--brand); font-size: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field-label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.field-label input[type="text"], .field-label select {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  outline: none;
}
.field-label input[type="text"]:focus, .field-label select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card, .check-grid label {
  position: relative;
  display: flex;
  min-width: 0;
  cursor: pointer;
}
.choice-card input, .check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span {
  width: 100%;
  min-height: 77px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.choice-card > span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  border: 1.8px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--surface);
}
.choice-card > span::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  background: var(--brand);
  transition: transform .15s ease;
}
.choice-card strong { font-size: 14px; }
.choice-card small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.choice-card input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 12%, transparent); }
.choice-card input:checked + span::before { border-color: var(--brand); }
.choice-card input:checked + span::after { transform: translateY(-50%) scale(1); }
.choice-card input:focus-visible + span, .check-grid input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.check-grid label > span {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 41px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 640;
  line-height: 1.45;
  transition: border-color .18s ease, background .18s ease;
}
.check-grid label > span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  border: 1.7px solid var(--line);
  border-radius: 5px;
  transform: translateY(-50%);
  background: var(--surface);
}
.check-grid label > span::after {
  content: "✓";
  position: absolute;
  left: 16px;
  top: calc(50% - 1px);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%) scale(0);
  transition: transform .15s ease;
}
.check-grid input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.check-grid input:checked + span::before { border-color: var(--brand); background: var(--brand); }
.check-grid input:checked + span::after { transform: translateY(-50%) scale(1); }

.planner-result { position: sticky; top: calc(var(--header-height) + 22px); min-height: 590px; overflow: hidden; }
.planner-result__placeholder { min-height: 590px; display: grid; place-items: center; align-content: center; padding: 36px; text-align: center; }
.planner-result__placeholder svg { width: 190px; margin-bottom: 17px; fill: none; stroke: color-mix(in srgb, var(--brand) 55%, var(--line)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.planner-result__placeholder h3 { margin: 0 0 6px; font-size: 22px; }
.planner-result__placeholder p { max-width: 360px; margin: 0; color: var(--muted); }
.plan-output { padding: 24px; }
.plan-output__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan-output__head h3 { margin: 5px 0 5px; font-size: 26px; }
.plan-output__head p { margin: 0; color: var(--muted); font-size: 14px; }
.plan-output__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.plan-output__tag { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.plan-group { padding-top: 19px; }
.plan-group__title { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 14px; }
.plan-group__dot { width: 8px; height: 8px; border-radius: 50%; }
.plan-group--urgent .plan-group__dot { background: var(--danger); }
.plan-group--discuss .plan-group__dot { background: var(--amber); }
.plan-group--pack .plan-group__dot { background: var(--green); }
.plan-item { padding: 13px 14px; margin-top: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.plan-item strong { display: block; font-size: 14.5px; }
.plan-item p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan-item a { display: inline-flex; color: var(--brand); font-size: 12.5px; font-weight: 800; }
.plan-item a:hover { text-decoration: underline; }
.plan-output__related { padding-top: 22px; margin-top: 21px; border-top: 1px solid var(--line); }
.plan-output__related h4 { margin: 0 0 11px; font-size: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--brand); font-size: 12.5px; font-weight: 800; }
.related-links a:hover { background: var(--surface-2); }
.plan-output__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.plan-output__actions .button { min-height: 41px; padding: 8px 12px; font-size: 13px; }

.use-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.use-note { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.use-note span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; background: var(--surface-2); color: var(--brand); font-weight: 850; }
.use-note h3 { margin: 0 0 6px; font-size: 17px; }
.use-note p { margin: 0; color: var(--muted); font-size: 14px; }

.page-hero { position: relative; overflow: hidden; padding: 70px 0 52px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 85%, var(--bg)), var(--bg)); }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -180px; top: -240px; background: color-mix(in srgb, var(--aqua) 22%, transparent); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(39px, 5vw, 64px); }
.page-hero__lead { max-width: 840px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--brand); font-weight: 760; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.topic-nav { margin-top: -1px; border-block: 1px solid var(--line); background: var(--surface); }
.topic-nav__inner { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.topic-nav a { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; }
.topic-nav a:hover { background: var(--surface-2); color: var(--ink); }

.content-section { padding: 65px 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.content-section--soft { background: var(--surface-2); }
.content-heading { max-width: 840px; margin-bottom: 25px; }
.content-heading h2 { margin: 5px 0 10px; font-size: clamp(28px, 3.8vw, 43px); line-height: 1.2; letter-spacing: -.03em; }
.content-heading p { margin: 0; color: var(--muted); font-size: 16.5px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.content-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.prose-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; }
.prose-card p { margin: 0; color: var(--muted); }
.prose-card p + p { margin-top: 11px; }
.prose-card ul { margin: 10px 0 0; padding-left: 1.25em; color: var(--muted); }
.prose-card li + li { margin-top: 6px; }
.number-card { display: grid; grid-template-columns: 43px 1fr; gap: 13px; align-items: start; }
.number-card > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-weight: 850; }
.number-card h3 { margin-top: 1px; }

.callout { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 20px 21px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.callout + .callout { margin-top: 13px; }
.callout__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-weight: 900; }
.callout strong { display: block; margin-bottom: 4px; font-size: 17px; }
.callout p { margin: 0; color: var(--muted); }
.callout--danger { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); background: var(--danger-soft); }
.callout--danger .callout__icon { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); color: var(--danger); }
.callout--amber { border-color: color-mix(in srgb, var(--amber) 43%, var(--line)); background: var(--amber-soft); }
.callout--amber .callout__icon { background: color-mix(in srgb, var(--amber) 22%, var(--surface)); color: #9b641f; }
.callout--green { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: var(--green-soft); }
.callout--green .callout__icon { background: color-mix(in srgb, var(--green) 16%, var(--surface)); color: var(--green); }

.step-list { display: grid; gap: 12px; counter-reset: steps; }
.step-item { position: relative; min-height: 70px; padding: 15px 17px 15px 66px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.step-item::before { counter-increment: steps; content: counter(steps); position: absolute; left: 17px; top: 15px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--brand); font-weight: 850; }
.step-item strong { display: block; margin-bottom: 2px; }
.step-item p { margin: 0; color: var(--muted); font-size: 14px; }

.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-card__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table-card__header h3 { margin: 2px 0 0; font-size: 20px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 840px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--surface-2); color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.data-table td { font-size: 14px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; color: var(--ink); }
.data-table td small { display: block; margin-top: 3px; color: var(--muted); }
.table-note { margin: 0; padding: 12px 17px 14px; border-top: 1px solid var(--line); color: var(--muted); background: var(--bg); font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; margin-bottom: 5px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.35; }
.badge--common { background: var(--green-soft); color: var(--green); }
.badge--special { background: var(--amber-soft); color: #99601d; }
.badge--verify { background: var(--blue-soft); color: var(--brand); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }

.symptom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.symptom-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.symptom-card__label { display: inline-flex; padding: 4px 8px; margin-bottom: 11px; border-radius: 999px; background: var(--surface-2); color: var(--brand); font-size: 11px; font-weight: 850; }
.symptom-card h3 { margin: 0 0 6px; font-size: 18px; }
.symptom-card p { margin: 0; color: var(--muted); }
.symptom-card strong { display: block; margin-top: 10px; color: var(--danger); }

.medicine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.medicine-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.medicine-card__head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.medicine-card h3 { margin: 0; font-size: 18px; }
.medicine-card p { margin: 0; color: var(--muted); font-size: 14px; }
.medicine-card p + p { margin-top: 8px; }
.medicine-card ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 14px; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.faq-list summary { position: relative; padding: 16px 48px 16px 18px; font-weight: 760; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 23px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 18px 17px; color: var(--muted); }
.faq-list details p { margin: 0; }

.source-list { margin: 0; padding-left: 1.35em; }
.source-list li + li { margin-top: 9px; }
.source-list a { color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.source-list span { display: block; color: var(--muted); font-size: 13px; }

.official-compact { padding: 26px 0; border-top: 1px solid var(--line); background: var(--surface); }
.official-compact details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.official-compact summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; cursor: pointer; font-weight: 800; list-style: none; }
.official-compact summary::-webkit-details-marker { display: none; }
.official-compact summary::after { content: "展开"; color: var(--brand); font-size: 12px; }
.official-compact details[open] summary::after { content: "收起"; }
.official-compact__body { padding: 0 19px 19px; }
.official-compact__body p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.official-links { display: flex; flex-wrap: wrap; gap: 8px; }
.official-links a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--brand); font-size: 12.5px; font-weight: 800; }

.site-footer { padding: 45px 0 25px; background: #082f36; color: #e8f4f2; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 45px; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { color: #77d6c8; }
.brand--footer small { color: #a9c7c6; }
.site-footer__disclaimer { max-width: 680px; margin: 19px 0 0; color: #b8cfce; font-size: 13px; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.site-footer__links div { display: grid; align-content: start; gap: 7px; }
.site-footer__links strong { margin-bottom: 3px; font-size: 13px; color: #fff; }
.site-footer__links a { color: #b8cfce; font-size: 13px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); color: #9bb9b8; font-size: 12px; }
.back-to-top { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast { position: fixed; z-index: 110; left: 50%; bottom: 22px; max-width: calc(100% - 40px); padding: 11px 15px; border-radius: 10px; background: #0b3940; color: #fff; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  :root { --header-height: 70px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: calc(34px + var(--header-height)) 16px auto;
    max-height: calc(100dvh - 130px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { justify-content: flex-start; padding-inline: 13px; }
  .theme-toggle { width: 100%; margin: 0; border: 1px solid var(--line); }
  .hero__grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-panel { max-width: 720px; }
  .planner-layout { grid-template-columns: 1fr; }
  .planner-result { position: static; min-height: 380px; }
  .planner-result__placeholder { min-height: 380px; }
  .content-grid--3, .symptom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); }
  body { font-size: 15px; }
  .update-bar__inner { gap: 6px; font-size: 11.5px; }
  .update-bar__sep { display: none; }
  .site-header__inner { min-height: 66px; }
  .brand__mark { width: 35px; height: 35px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10.5px; }
  .primary-nav { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 46px; }
  .hero h1, .page-hero h1 { font-size: clamp(36px, 12vw, 52px); }
  .hero__lead { font-size: 16px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__trust { display: grid; gap: 8px; }
  .hero-panel { padding: 21px; }
  .section, .content-section { padding: 55px 0; }
  .section--compact { padding: 39px 0; }
  .section-heading--split { display: block; }
  .section-heading--split .privacy-chip { margin-top: 15px; }
  .section-heading h2 { font-size: 34px; }
  .planner-form, .plan-output { padding: 18px; }
  .choice-grid, .check-grid, .form-row, .use-note-grid, .content-grid, .content-grid--3, .symptom-grid, .medicine-grid { grid-template-columns: 1fr; }
  .choice-card > span { min-height: 70px; }
  .plan-output__actions { display: grid; grid-template-columns: 1fr; }
  .plan-output__actions .button { width: 100%; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero__lead { font-size: 16px; }
  .page-actions { display: grid; }
  .page-actions .button { width: 100%; }
  .table-card__header { display: block; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__links { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { display: grid; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .primary-nav { grid-template-columns: 1fr; }
  .site-footer__links { grid-template-columns: 1fr; }
}

@media print {
  .update-bar, .site-header, .hero__actions, .privacy-chip, .official-compact, .site-footer, .back-to-top, .toast, .page-actions, .topic-nav, .js-print, .plan-output__actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-hero, .section, .content-section { padding: 20px 0; background: #fff !important; }
  .hero::before, .page-hero::after { display: none; }
  .shell { width: 100%; }
  .hero__grid, .planner-layout, .content-grid, .content-grid--3, .symptom-grid, .medicine-grid { display: block; }
  .hero-panel, .planner-form { display: none; }
  .planner-result { position: static; min-height: 0; border: 0; box-shadow: none; }
  .planner-result__placeholder { display: none; }
  .plan-output { padding: 0; }
  .plan-item, .prose-card, .callout, .symptom-card, .medicine-card, .table-card { break-inside: avoid; box-shadow: none; }
  a { text-decoration: none; }
  .data-table { min-width: 0; }
}

/* Questionnaire v3: UN M49 multi-region selector and purpose selector */
.region-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.region-group {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 48%, var(--surface));
}
.region-group h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.choice-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.choice-card--compact > span {
  min-height: 52px;
  padding: 10px 10px 10px 39px;
}
.choice-card--compact strong { font-size: 13px; }
.choice-card--check > span::before { border-radius: 5px; }
.choice-card--check > span::after {
  content: "✓";
  left: 17px;
  top: calc(50% - 1px);
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.choice-card--check input:checked + span::before {
  border-color: var(--brand);
  background: var(--brand);
}
.inline-source {
  color: var(--brand);
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}
.form-error {
  margin: 11px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 760;
}
.planner-form fieldset.has-error > legend { color: var(--danger); }
.planner-form fieldset.has-error .region-group,
.planner-form fieldset.has-error .purpose-grid {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
}

@media (max-width: 720px) {
  .choice-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card--compact > span { min-height: 54px; }
}

@media (max-width: 420px) {
  .choice-grid--compact { grid-template-columns: 1fr; }
}
