:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --text: #1f2329;
  --muted: #858b96;
  --line: #e9ebef;
  --blue: #1677ff;
  --blue-soft: #edf5ff;
  --blue-text: #1768d1;
  --error: #d83b43;
  --shadow: 0 3px 18px rgba(20, 37, 63, .035);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11151b; --surface: #1c222a; --surface-soft: #252d37;
    --text: #edf1f5; --muted: #aab3bf; --line: #343e49;
    --blue: #60a5ff; --blue-soft: #1b354e; --blue-text: #7bb6ff;
    --error: #ff8b90; --shadow: 0 3px 18px rgba(0, 0, 0, .12);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151b; --surface: #1c222a; --surface-soft: #252d37;
  --text: #edf1f5; --muted: #aab3bf; --line: #343e49;
  --blue: #60a5ff; --blue-soft: #1b354e; --blue-text: #7bb6ff;
  --error: #ff8b90; --shadow: 0 3px 18px rgba(0, 0, 0, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.55; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, p { margin-top: 0; }
.site-shell { min-height: 100vh; }
.topbar {
  height: 58px; padding: 0 max(20px, calc((100vw - 1000px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #1677ff; color: #fff; font-size: 17px; font-weight: 700; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 13px; font-weight: 650; }
.brand-text small { font-size: 9px; color: var(--muted); }
.theme-toggle { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.theme-toggle svg { width: 17px; height: 17px; }
.intro { background: var(--surface); }
.intro-inner { max-width: 1000px; margin: auto; padding: 27px 20px 22px; }
.eyebrow { margin: 0 0 5px; color: var(--blue-text); font-size: 11px; font-weight: 650; }
h1 { margin: 0 0 6px; font-size: 27px; line-height: 1.35; font-weight: 700; }
.hero-description { margin: 0; color: var(--muted); font-size: 13px; }
.point-badge {
  margin-top: 20px; padding: 11px 15px;
  background: var(--blue-soft); border-radius: 10px;
}
.point-details { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 1px; }
.point-details small { width: 100%; color: var(--blue-text); font-size: 10px; }
.point-details strong { font-size: 13px; font-weight: 650; }
.point-details > span { color: var(--muted); font-size: 12px; }
.demo-banner {
  max-width: 1000px; margin: 14px auto 0; padding: 9px 13px;
  display: flex; align-items: center; gap: 8px;
  color: #8b641c; background: #fff8e9; border: 1px solid #f4e4ba;
  border-radius: 8px; font-size: 11px;
}
.demo-banner[hidden] { display: none; }
.demo-pulse { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #d5a03d; }
.content-grid {
  max-width: 1000px; margin: 14px auto 48px; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start;
}
.form-card { min-width: 0; }
.section-heading, .description-field, .phone-field, .call-card, .guide-card, .state-panel, .loading-state {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.section-heading { margin-bottom: 12px; padding: 19px 22px; }
.section-heading h2 { margin: 0 0 3px; font-size: 17px; line-height: 1.4; }
.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.category-field {
  min-width: 0; padding: 17px 22px 5px; margin: 0 0 12px;
  background: var(--surface); border: 0; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.category-field legend { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 650; }
.category-field .field-hint { clear: both; }
.required { color: var(--error); }
.optional { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.field-hint { margin: 5px 0 14px; color: var(--muted); font-size: 11px; }
.category-grid { display: block; }
.category-option {
  min-height: 49px; padding: 10px 1px; display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); cursor: pointer;
}
.category-option:hover .option-label { color: var(--blue-text); }
.category-option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.category-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-label { order: 1; flex: 1; font-size: 13px; overflow-wrap: anywhere; }
.option-icon {
  order: 2; width: 19px; height: 19px; display: grid; place-items: center;
  border: 1.5px solid #bec4cc; border-radius: 5px;
  color: #fff; font-size: 12px; line-height: 1;
}
.category-option:has(input[type="radio"]) .option-icon { border-radius: 50%; }
.category-option:has(input:checked) .option-label, .category-option.is-selected .option-label { color: var(--blue-text); font-weight: 600; }
.category-option:has(input:checked) .option-icon, .category-option.is-selected .option-icon { background: var(--blue); border-color: var(--blue); }
.category-option:has(input:checked) .option-icon::after, .category-option.is-selected .option-icon::after { content: "✓"; }
.category-option:has(input[type="radio"]:checked) .option-icon::after { width: 7px; height: 7px; border-radius: 50%; background: #fff; content: ""; }
.field-error { min-height: 16px; margin: 2px 0 0; color: var(--error); font-size: 11px; }
.description-field, .phone-field { margin: 0 0 12px; padding: 18px 22px 10px; }
.description-field label, .phone-field label { font-size: 15px; font-weight: 650; }
.description-field textarea {
  display: block; width: 100%; min-height: 88px; resize: vertical;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-soft); color: var(--text); line-height: 1.55;
}
.description-field textarea::placeholder, .input-wrap input::placeholder { color: #a3abb5; }
.description-field textarea:focus, .input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.description-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.description-meta > span { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.input-wrap { height: 43px; display: flex; align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.input-prefix { padding: 0 11px; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.input-wrap input { flex: 1; min-width: 0; height: 100%; padding: 0 11px; border: 0; outline: 0; background: transparent; color: var(--text); }
.input-wrap input:focus-visible { outline: none; }
.privacy-note { display: flex; gap: 8px; padding: 6px 7px; margin: 3px 0 10px; color: var(--muted); }
.privacy-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--blue); }
.privacy-note p { margin: 0; font-size: 11px; }
.privacy-note button { padding: 0; border: 0; background: none; color: var(--blue-text); font-size: 11px; }
.submit-area { padding: 14px 0 2px; }
.submit-button { width: 100%; height: 46px; border: 0; border-radius: 8px; background: #1677ff; color: #fff; font-weight: 650; font-size: 14px; }
.submit-button:hover { background: #0d68e5; }
.submit-button:disabled { opacity: .58; cursor: wait; }
.form-footnote { margin: 9px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.submit-error { margin: 0 0 10px; padding: 10px 12px; color: var(--error); background: var(--surface); border: 1px solid var(--error); border-radius: 8px; font-size: 12px; }
.side-content { display: grid; gap: 12px; }
.call-card, .guide-card { padding: 18px; }
.call-card p { margin: 0 0 2px; color: var(--muted); font-size: 11px; }
.call-card h2 { margin: 0 0 2px; font-size: 16px; }
.call-card span { color: var(--muted); font-size: 12px; }
.call-button { height: 40px; margin-top: 17px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-text); font-size: 12px; text-decoration: none; }
.call-button span { color: var(--blue-text); font-size: 21px; line-height: 1; }
.call-button.disabled { opacity: .5; pointer-events: none; }
.call-card small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.guide-card strong { font-size: 12px; }
.guide-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.loading-state, .state-panel { min-height: 340px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-state[hidden], .state-panel[hidden], #formState[hidden] { display: none; }
.loading-state p { color: var(--muted); }
.spinner { width: 27px; height: 27px; margin-bottom: 15px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon { width: 56px; height: 56px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; }
.error-icon { color: var(--error); background: var(--surface-soft); }
.success-icon { color: white; background: #30a46c; }
.state-panel h2 { margin: 0 0 8px; font-size: 22px; }
.state-panel > p { max-width: 390px; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.section-kicker { margin: 0 0 5px; color: var(--blue-text); font-size: 11px; }
.secondary-button { margin-top: 10px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.case-number-box { width: min(100%, 360px); margin: 13px 0; padding: 15px; display: flex; flex-direction: column; gap: 3px; background: var(--blue-soft); border-radius: 8px; }
.case-number-box small { color: var(--muted); font-size: 11px; }
.case-number-box strong { font-size: 19px; overflow-wrap: anywhere; }
.case-number-box button { align-self: center; margin-top: 5px; padding: 0; border: 0; background: none; color: var(--blue-text); font-size: 11px; }
.success-note { font-size: 11px !important; }
footer { max-width: 1000px; margin: 0 auto; padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer strong { font-weight: 400; }
footer p { margin: 0; }
.privacy-dialog { width: min(92vw, 520px); padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .2); }
.privacy-dialog::backdrop { background: rgba(8, 20, 33, .58); }
.dialog-head { padding: 20px 23px 15px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 19px; }
.dialog-head button { align-self: start; padding: 0; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; }
.dialog-body { padding: 18px 23px 8px; color: var(--muted); font-size: 12px; }
.dialog-body dl { margin: 15px 0; padding: 8px 12px; background: var(--surface-soft); border-radius: 8px; }
.dialog-body dl div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.dialog-body dl div:last-child { border: 0; }
.dialog-body dt { width: 66px; flex: none; color: var(--text); font-weight: 600; }
.dialog-body dd { margin: 0; }
.dialog-done { display: block; width: calc(100% - 46px); height: 42px; margin: 5px 23px 22px; border: 0; border-radius: 8px; background: #1677ff; color: #fff; }
@media (max-width: 760px) {
  .topbar { height: 52px; padding: 0 16px; }
  .brand-mark { width: 29px; height: 29px; font-size: 15px; }
  .intro-inner { padding: 19px 16px 17px; }
  h1 { font-size: 23px; }
  .hero-description { font-size: 12px; }
  .point-badge { margin-top: 16px; padding: 10px 12px; }
  .demo-banner { margin: 10px 12px 0; }
  .content-grid { display: block; margin: 10px auto 35px; padding: 0 12px; }
  .section-heading { padding: 17px 18px; }
  .category-field { padding: 15px 18px 4px; }
  .description-field, .phone-field { padding: 16px 18px 9px; }
  .submit-area { position: sticky; bottom: 0; z-index: 4; margin: 0 -12px; padding: 9px 12px calc(7px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -5px 16px rgba(20, 37, 63, .06); }
  .submit-area .form-footnote { display: none; }
  .side-content { margin-top: 12px; }
  .guide-card { display: none; }
  .loading-state, .state-panel { min-height: 270px; }
  footer { padding: 20px 16px 30px; flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
