/* 基础：色板令牌、排版、布局、横幅、页头页脚、焦点样式。移动端优先。 */
:root {
  --ink: #1c1917;
  --paper: #fffaf3;
  --card: #ffffff;
  --muted: #57534e;
  --line: #d6d3d1;
  --ember: #a3261b;
  --ember-dark: #7f1d16;
  --link: #9a3412;
  --focus: #1d4ed8;
  --night: #1c1917;
  --night-text: #f5f5f4;
  --night-link: #fdba74;
  --banner-text: #fde68a;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.2; margin: 1.4em 0 0.5em; }
h1 { font-size: 2rem; margin-top: 0.6em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
[tabindex="-1"]:focus { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

.demo-banner {
  margin: 0;
  padding: 8px 16px;
  background: var(--night);
  color: var(--banner-text);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { color: var(--ink); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 6px 2px; color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"] { color: var(--ember); text-decoration-thickness: 3px; }

main { display: block; padding-bottom: 32px; }

.site-footer { background: var(--night); color: var(--night-text); padding: 24px 0; font-size: 0.95rem; }
.site-footer a { color: var(--night-link); }
.site-footer :focus-visible { outline-color: var(--banner-text); }
.footer-name { font-weight: 800; font-size: 1.05rem; }
.footer-demo { border-top: 1px solid #57534e; padding-top: 12px; color: var(--banner-text); }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.eyebrow { margin: 1.2em 0 0; color: var(--ember); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.hint, .hint-inline { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 0.4em; }

@media (min-width: 760px) {
  h1 { font-size: 2.6rem; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

/* 组件：按钮、卡片、首页区块、表单、明细表、步骤条、FAQ、提示框。 */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--ember);
  border-radius: var(--radius);
  background: var(--ember);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: #f5f5f4; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.95rem; }
.btn:disabled { background: #e7e5e4; border-color: #a8a29e; color: #44403c; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero { padding: 8px 0 8px; }
.hero-art { display: block; width: 100%; max-width: 320px; height: auto; margin: 16px 0 0; }

.cards { display: grid; gap: 16px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.2em; margin-bottom: 0; }
.price { font-weight: 700; color: var(--ember); }
.facts { padding-left: 1.2em; }
.facts li { margin-bottom: 0.5em; }
.steps-list { padding-left: 1.4em; }
.steps-list h3 { margin-top: 0.8em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.cta-band { margin-top: 32px; padding: 8px 16px 16px; background: var(--card); border: 2px solid var(--ember); border-radius: var(--radius); }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; padding: 12px 14px; min-width: 0; }
legend { font-weight: 700; padding: 0 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid #78716c;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
[aria-invalid="true"] { border-color: var(--ember); }
.choice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.choice input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--ember); }
.field-qty input { max-width: 120px; }
.field-error { color: var(--ember); font-weight: 600; margin: 4px 0 0; font-size: 0.95rem; }
.field-error:empty { margin: 0; }
.error-box { color: var(--ember-dark); font-weight: 600; }
.error-box:not(:empty) { background: #fef2f2; border-left: 4px solid var(--ember); padding: 10px 12px; }
.notice { background: #fef3c7; border-left: 4px solid #92400e; padding: 10px 12px; color: var(--ink); }

.quote-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.quote-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.quote-table th, .quote-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table th { text-align: left; font-weight: 400; }
.quote-table td { text-align: right; white-space: nowrap; padding-left: 12px; }
.quote-table tfoot th { font-weight: 600; }
.row-strong th, .row-strong td { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--ink); }
.mini-quote { font-weight: 700; margin-bottom: 8px; }

.progress { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; counter-reset: step; font-size: 0.9rem; }
.progress li { counter-increment: step; padding: 4px 10px; border-radius: 999px; background: #e7e5e4; color: var(--ink); }
.progress li::before { content: counter(step) ". "; }
.progress li[aria-current="step"] { background: var(--ember); color: #ffffff; font-weight: 700; }
.step h2 { margin-top: 0.2em; }
.step-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 12px; }
.summary-group { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.summary-group dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.summary-group dt { font-weight: 600; }
.summary-group dd { margin: 0; }
.result { margin-top: 16px; padding: 12px 16px; border: 2px solid #166534; border-radius: var(--radius); background: #f0fdf4; }
.pay-label { font-weight: 700; margin-bottom: 4px; }

.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 12px 14px; font-weight: 700; min-height: 44px; }
.faq-item p { padding: 0 14px 12px; margin: 0; }

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
