:root {
  --accent:#165eb6;
  --pale:#edf5ff;
  --bg:#f2f7fc;
  --ink:#102d57;
  --muted:#617992;
  --line:#d8e4f0;
  --brand-navy:#102d57;
  --brand-cyan:#3fd4e0
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  background:radial-gradient(ellipse at 95% 0%,#dceaf9 0,transparent 48%),var(--bg);
  color:var(--ink);
  font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column
}
.demo-banner {
  text-align:center;
  background:#fff0cc;
  color:#694800;
  padding:9px 16px;
  font-size:13px;
  font-weight:600
}
header {
  width:min(1080px,100%);
  margin:0 auto;
  padding:25px 30px;
  gap:20px;
  display:flex;
  justify-content:space-between;
  align-items:center
}
header .brand {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  text-decoration:none;
  color:var(--brand-navy)
}
.brand-logo {
  flex:0 0 auto;
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:50%;
  background:white
}
.brand-copy strong {
  display:block;
  font-size:20px;
  font-weight:750;
  letter-spacing:1px;
  line-height:1.5
}
.brand-copy small {
  display:block;
  font-size:9px;
  letter-spacing:1.5px;
  margin-top:4px;
  color:var(--muted)
}
.header-note {
  font-size:13px;
  color:var(--brand-navy);
  white-space:nowrap;
  padding:7px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#ffffffb3
}
main {
  flex:1;
  padding:38px 20px 64px;
  display:flex;
  align-items:flex-start;
  justify-content:center
}
.card {
  position:relative;
  width:100%;
  max-width:560px;
  background:white;
  border:1px solid var(--line);
  border-radius:22px;
  padding:42px;
  box-shadow:0 18px 55px #12396b0d;
  border-top:4px solid var(--accent)
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:1.8px;
  font-weight:700;
  color:var(--accent);
  margin-bottom:12px
}
.eyebrow::before {
  content:"";
  width:22px;
  height:3px;
  flex:0 0 auto;
  border-radius:2px;
  background:var(--brand-cyan)
}
h1 {
  font-size:29px;
  line-height:1.4;
  letter-spacing:-.6px;
  margin:0 0 14px
}
.intro {
  color:var(--muted);
  margin:0 0 28px
}
.field {
  margin:0 0 22px
}
.field label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:8px
}
.field input {
  width:100%;
  min-height:51px;
  border:1px solid #c7d9e9;
  border-radius:9px;
  padding:12px 14px;
  font:inherit;
  background:#fcfdff;
  color:var(--ink);
  transition:border-color .18s,box-shadow .18s
}
.field input:hover { border-color:#8baecc }
.field input:focus { border-color:var(--accent);box-shadow:0 0 0 3px var(--pale) }
input:focus-visible,button:focus-visible,a:focus-visible {
  outline:3px solid #96b8ff;
  outline-offset:3px
}
button,.button {
  display:block;
  width:100%;
  border:0;
  border-radius:10px;
  padding:14px 20px;
  background:var(--accent);
  color:white;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
  font-weight:600;
  line-height:1.5;
  font-family:inherit;
  font-size:16px;
  transition:filter .18s,box-shadow .18s
}
button:not(:disabled):hover,.button:hover { filter:brightness(.94);box-shadow:0 5px 14px #102d5714 }
button span {
  float:right
}
.secondary {
  background:var(--pale);
  color:var(--accent);
  margin-top:12px
}
button:disabled {
  opacity:.65;
  cursor:wait
}
.status {
  color:var(--muted);
  font-size:13px;
  margin:8px 0;
  min-height:0
}
.status:empty {
  display:none
}
.footnote {
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:28px
}
.error,.notice {
  border-radius:8px;
  padding:12px 14px;
  margin-bottom:22px;
  font-size:14px
}
.error {
  background:#fff0f0;
  color:#a52626
}
.notice {
  background:#fff3d8;
  color:#77500a
}
.errorlist {
  list-style:none;
  color:#ae2424;
  margin:6px 0 0;
  padding:0;
  font-size:13px
}
fieldset {
  border:0;
  padding:0;
  margin:0 0 24px
}
legend {
  font-size:13px;
  color:var(--muted);
  padding:0;
  margin-bottom:10px
}
.choice {
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px;
  margin:10px 0;
  cursor:pointer
}
.choice:has(input:checked) {
  background:var(--pale);
  border-color:var(--accent)
}
.choice input {
  accent-color:var(--accent);
  margin-top:7px
}
.choice strong {
  font-size:15px
}
.choice small {
  display:block;
  color:var(--muted);
  word-break:break-all
}
.back {
  display:inline-block;
  font-size:13px;
  color:var(--muted);
  margin-top:25px
}
footer {
  text-align:center;
  color:var(--muted);
  padding:20px;
  font-size:12px
}
.theme-b {
  --accent:#16714f;
  --pale:#eaf6f0;
  --bg:#edf6f1;
  --ink:#153c2d;
  --line:#d7e8df
}
.theme-c,
.theme-c_allowed {
  --accent:#a55b12;
  --pale:#fff1dd;
  --bg:#fff5e7;
  --ink:#553b20;
  --line:#f1dfc7
}
.theme-a {
  --bg:#f2f7fc
}
.theme-vip {
  --accent:#80530e;
  --pale:#fcf0d5;
  --bg:#faf5e9;
  --ink:#493515;
  --muted:#75603a;
  --line:#e5d5b0;
  background:var(--bg)
}
.vip-card .intro,
.vip-card .vip-note {
  color:var(--muted)
}
.vip-card .prominent {
  color:var(--accent)
}
.vip-note {
  margin:0 0 28px
}
.theme-vip footer {
  color:var(--muted)
}
.theme-vip ::selection {
  background:var(--accent);
  color:white
}
.theme-vip a:focus-visible {
  outline-color:var(--accent)
}
.result-card {
  text-align:center;
  border-top:5px solid var(--accent)
}
.result-mark {
  width:64px;
  height:64px;
  border-radius:50%;
  background:var(--pale);
  color:var(--accent);
  display:grid;
  place-items:center;
  margin:0 auto 24px;
  font-size:34px
}
.result-card .eyebrow { justify-content:center }
.branch {
  color:var(--accent);
  font-size:17px;
  margin:20px 0 10px
}
.prominent {
  font-weight:600;
  color:var(--accent)
}
.id-box {
  background:var(--pale);
  border-radius:12px;
  padding:22px;
  margin:30px 0;
  display:grid;
  place-items:center;
  text-align:center
}
.id-box strong {
  font-size:18px;
  word-break:break-all
}
.id-box .result-number {
  display:block;
  max-width:100%;
  font-size:clamp(48px, 8vw, 64px);
  font-weight:800;
  line-height:1.3;
  color:var(--accent)
}
/* 手机端细化；宽屏继续使用现有单列样式。 */
@media(max-width:600px) {
body {
  background:var(--bg);
  -webkit-tap-highlight-color:transparent
}
::selection { background:var(--accent);color:white }
  header {
  padding:24px 24px 18px;
  gap:12px
}
.brand-logo {
  width:44px;
  height:44px
}
header .brand { gap:10px }
.brand-copy strong {
  font-size:17px;
  letter-spacing:.5px
}
.brand-copy small {
  font-size:7px;
  letter-spacing:.7px
}
main {
  padding:12px 16px 28px
}
.card {
  padding:28px 24px;
  border:0;
  border-radius:16px;
  box-shadow:0 10px 32px #102d570a;
  min-width:0
}
h1 {
  font-size:27px;
  line-height:1.4;
  margin-bottom:8px;
  overflow-wrap:anywhere;
  text-wrap:balance
}
.intro { font-size:14px;margin-bottom:28px;color:#526980 }
.theme-b .intro,.theme-b .person-name { color:#496858 }
.theme-c .intro,
.theme-c_allowed .intro { color:#79562f }
.field { margin-bottom:22px }
.field label { margin-bottom:8px;color:var(--ink) }
.field input {
  min-height:54px;
  padding:14px;
  border-color:var(--line);
  border-radius:12px;
  background:var(--bg);
  font-size:16px;
  caret-color:var(--accent)
}
.field input::placeholder { color:#526980;opacity:1 }
.field input[aria-invalid="true"] { border-color:#a52626;background:#fff8f8 }
.field input:focus { background:white }
button,.button {
  min-height:54px;
  border-radius:12px;
  padding:15px 16px;
  touch-action:manipulation;
  transition:transform .16s ease-out,background-color .16s ease-out,filter .16s ease-out
}
button:not(:disabled):active,.button:active { transform:scale(.98);filter:brightness(.9) }
button:disabled { opacity:.7 }
button[data-loading-active] { display:flex;align-items:center;justify-content:center;gap:10px }
button[data-loading-active]::before {
  content:"";
  width:16px;
  height:16px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:button-spin .8s linear infinite
}
.secondary { margin-top:12px;background:transparent;color:var(--accent);box-shadow:inset 0 0 0 1px var(--line) }
.status { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap }
.person-name { margin:0 0 24px;font-size:15px;color:#526980;overflow-wrap:anywhere }
fieldset { min-width:0;margin-bottom:24px }
legend { color:#496858;font-size:14px;margin-bottom:12px }
.choice {
  position:relative;
  gap:12px;
  margin:0 0 12px;
  padding:18px 16px;
  border-radius:12px;
  background:white;
  min-height:80px;
  transition:background-color .16s ease-out,border-color .16s ease-out;
  touch-action:manipulation
}
.choice:last-child { margin-bottom:0 }
.choice:has(input:checked) { box-shadow:inset 0 0 0 1px var(--accent) }
.choice:has(input:focus-visible) { outline:3px solid var(--accent);outline-offset:3px }
.choice input { width:20px;height:20px;flex:0 0 20px;margin:3px 0 0 }
.choice > span { min-width:0 }
.choice strong { display:block;font-size:16px;line-height:1.6;overflow-wrap:anywhere }
.choice small { margin-top:6px;color:#496858;font-size:12px;line-height:1.7;overflow-wrap:anywhere }
.back { display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:16px;text-underline-offset:4px }
.result-card { padding-top:32px }
.result-mark { width:56px;height:56px;margin-bottom:20px }
.branch { margin:12px 0 0;font-size:14px;overflow-wrap:anywhere }
.result-person { margin:12px 0 0;font-size:18px;overflow-wrap:anywhere }
.id-box { padding:24px 12px;margin:28px 0;background:transparent;border-block:1px dashed var(--line);border-radius:0 }
.id-box .result-number { font-size:clamp(40px,12vw,64px);font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums }
.id-box .long-number { font-size:28px;line-height:1.5 }
.number-value { overflow-wrap:anywhere }
.number-unit { display:inline-block;font-size:16px;font-weight:500;margin-left:6px;vertical-align:baseline }
footer { padding:16px 20px max(24px,env(safe-area-inset-bottom));color:#526980 }
.demo-banner {
  font-size:11px;
  padding:6px 12px;
  font-weight:400
}
@media (hover:hover) {
  .choice:hover { border-color:var(--accent) }
}
@media (prefers-reduced-motion:reduce) {
  button,.button,.choice,.field input { transition:none }
  button[data-loading-active]::before { animation:none }
}
}
@keyframes button-spin { to { transform:rotate(360deg) } }
