:root {
  color-scheme: light;
  --ink: #17372d;
  --muted: #5f7069;
  --forest: #123c2c;
  --leaf: #287a50;
  --leaf-soft: #e7f1e8;
  --cream: #f7f4ea;
  --paper: #fffdf7;
  --line: #d9e1d7;
  --melon: #e95752;
  --shadow: 0 18px 50px rgba(20, 58, 43, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: inherit; }

button, input { font: inherit; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 215, 0.8);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #d8edcf;
  border-radius: 50%;
  background: var(--leaf);
}

.brand-mark span {
  width: 22px;
  height: 10px;
  margin-top: 17px;
  border-top: 3px solid #f7f0d7;
  border-radius: 50%;
  background: var(--melon);
}

nav { display: flex; gap: 28px; }

nav a {
  color: #455f55;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover, nav a:focus-visible { color: var(--leaf); }

.intro {
  padding-block: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 48px;
}

.eyebrow, .section-number {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.15rem, 3.8vw, 3.45rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.local-note {
  width: fit-content;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.local-note > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 900;
}

.local-note p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.local-note strong { color: var(--ink); }

.intro-image {
  position: relative;
  max-width: 460px;
  margin: 0;
  justify-self: end;
}

.intro-image::before {
  content: "";
  position: absolute;
  inset: -16px 22px 36px -18px;
  z-index: -1;
  border: 1px solid #b8d4bb;
  border-radius: 42% 58% 48% 52% / 53% 38% 62% 47%;
  background: #e9f1df;
  transform: rotate(-3deg);
}

.intro-image img {
  width: 100%;
  height: 320px;
  aspect-ratio: 16 / 11;
  display: block;
  object-fit: cover;
  border-radius: 42% 58% 47% 53% / 52% 38% 62% 48%;
  box-shadow: var(--shadow);
}

.intro-image figcaption {
  max-width: 330px;
  margin: 16px 14px 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.tool-section {
  padding-block: 82px;
  background: var(--forest);
  color: white;
}

.tool-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.5fr;
  gap: 48px 64px;
  align-items: start;
}

.tool-heading { position: sticky; top: 110px; }

.tool-heading .section-number { color: #95cfa5; }

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.tool-heading > p:last-child, .section-intro > p:last-child {
  margin: 18px 0 0;
  color: #bed0c8;
}

.checker {
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
}

.question-grid { display: grid; gap: 30px; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

legend {
  width: 100%;
  margin-bottom: 12px;
  font-weight: 700;
}

legend span {
  width: 25px;
  height: 25px;
  margin-right: 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #bde0c3;
  font-size: 0.75rem;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.choices label { position: relative; cursor: pointer; }

.choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.choices label span {
  min-height: 46px;
  padding: 8px 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: #e1ebe6;
  font-size: 0.94rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.choices label:hover span { border-color: rgba(255,255,255,0.45); }

.choices input:checked + span {
  border-color: #b9dfbd;
  background: #eaf5e7;
  color: var(--forest);
  font-weight: 800;
}

.choices input:focus-visible + span { outline: 3px solid #ffcb75; outline-offset: 3px; }

.form-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-button {
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--melon);
  color: white;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.primary-button:hover { background: #d84b48; }

.text-button {
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  background: none;
  color: #d7e5dd;
  cursor: pointer;
}

.primary-button:focus-visible, .text-button:focus-visible { outline: 3px solid #ffcb75; outline-offset: 3px; }

.form-hint { width: 100%; margin: -6px 0 0; color: #b9c9c1; font-size: 0.82rem; }
.form-hint.is-error { color: #ffd09d; }

.result-card {
  grid-column: 2;
  padding: 34px;
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 20px 46px rgba(0,0,0,0.13);
}

.result-card.is-empty { box-shadow: none; opacity: 0.88; }

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-topline p { margin: 0; color: var(--leaf); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; }

.result-topline span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #dde9dc;
  color: #416250;
  font-size: 0.76rem;
}

.result-card h3 { margin: 10px 0 24px; font-size: 1.45rem; }
.result-card dl { margin: 0; display: grid; gap: 18px; }
.result-card dl > div { padding-top: 16px; border-top: 1px solid #d9dfd4; }
.result-card dt { color: var(--leaf); font-size: 0.82rem; font-weight: 800; }
.result-card dd { margin: 4px 0 0; color: #3d5048; }
.disclaimer { margin: 24px 0 0; padding: 12px 15px; border-left: 3px solid var(--melon); background: white; font-weight: 800; }

.knowledge { padding-block: 96px; }

.section-intro { max-width: 700px; }
.section-intro > p:last-child { color: var(--muted); }

.knowledge-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.knowledge-grid article {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knowledge-index { color: var(--melon); font-family: Georgia, serif; font-size: 1.1rem; font-style: italic; }
.knowledge-grid h3 { margin: 18px 0 10px; font-size: 1.28rem; }
.knowledge-grid p { margin: 0; color: var(--muted); }

.privacy {
  margin-bottom: 96px;
  padding: 46px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  border-radius: 20px;
  background: var(--leaf-soft);
}

.privacy-copy p { margin: 0; color: #40564c; }
.privacy-copy p + p { margin-top: 14px; }

footer { border-top: 1px solid var(--line); background: #f2f1e9; }

.footer-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #5f7069;
  font-size: 0.84rem;
}

.footer-inner p { margin: 0; }
.footer-inner a { text-underline-offset: 3px; }

@media (max-width: 840px) {
  .intro { grid-template-columns: 1fr; padding-block: 34px 38px; }
  .intro-image { display: none; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-heading { position: static; }
  .result-card { grid-column: 1; }
  .privacy { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 60px; }
  nav { gap: 14px; }
  nav a { font-size: 0.78rem; }
  nav a:last-child { display: none; }
  .intro { padding-block: 22px 28px; }
  h1 { font-size: clamp(1.82rem, 9.4vw, 2.6rem); }
  .lede { font-size: 0.98rem; line-height: 1.6; }
  .tool-section { padding-block: 26px 52px; }
  .tool-heading > p:last-child { display: none; }
  .tool-heading h2 { font-size: 1.55rem; }
  .checker, .result-card { padding: 24px 18px; border-radius: 16px; }
  .choices, .choices-four { grid-template-columns: repeat(2, 1fr); }
  .knowledge { padding-block: 70px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-grid article { min-height: auto; padding: 26px 22px; }
  .privacy { margin-bottom: 66px; padding: 30px 22px; }
  .footer-inner { padding-block: 25px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
