:root {
  color-scheme: light;
  --ink: #20282a;
  --muted: #657074;
  --paper: #ffffff;
  --ground: #f4f2ec;
  --ground-cool: #edf2ef;
  --line: #dcded8;
  --green: #315c56;
  --green-dark: #244943;
  --green-soft: #e7efec;
  --sand: #c8aa76;
  --danger: #9f473f;
  --success: #2f715e;
  --radius: 14px;
  font-family: "Microsoft YaHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 222, 216, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.brand { display: inline-grid; text-decoration: none; line-height: 1; }
.brand strong { font-size: 20px; letter-spacing: .12em; }
.brand span { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.topbar-note { color: var(--muted); font-size: 12px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: calc(100dvh - 66px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 68px);
}

.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); line-height: 1.1; letter-spacing: -.045em; }
.hero-lead { max-width: 30ch; margin-bottom: 0; color: #4e5b5e; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 18px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: #c9cec9; background: #fff; }
.button-secondary:hover { border-color: #9aa9a4; }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(49, 92, 86, .2); outline-offset: 2px; }
.button:disabled { opacity: .55; cursor: wait; }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 24px 70px rgba(42, 61, 55, .08);
}
.panel-label { margin-bottom: 22px; color: var(--green); font-size: 14px; font-weight: 800; }
.answer-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.answer-list li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.answer-list li > span, .platform-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.answer-list strong { display: block; margin-bottom: 5px; font-size: 14px; }
.answer-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.metrics div { padding: 25px 18px; border-right: 1px solid var(--line); text-align: center; }
.metrics div:last-child { border-right: 0; }
.metrics strong, .metrics span { display: block; }
.metrics strong { margin-bottom: 6px; font-size: 18px; }
.metrics span { color: var(--muted); font-size: 12px; }

.content-section, .decision-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) clamp(20px, 4vw, 48px);
}
.platform-section { padding-top: 10px; }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-heading h2, .form-intro h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; }
.section-heading p, .form-intro > p:last-child { max-width: 62ch; margin-bottom: 0; color: var(--muted); line-height: 1.75; }

.logic-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 52px; align-items: start; }
.logic-main > p { max-width: 58ch; color: #4f5a5d; font-size: 17px; line-height: 1.9; }
blockquote { margin: 28px 0 0; border-left: 3px solid var(--sand); padding: 9px 0 9px 20px; font-size: 20px; font-weight: 800; line-height: 1.65; }
.logic-steps { display: grid; border-top: 1px solid #cfd3cf; }
.logic-steps article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid #cfd3cf; }
.logic-steps article > span { color: var(--sand); font-size: 12px; font-weight: 900; }
.logic-steps strong { display: block; margin-bottom: 5px; }
.logic-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.platform-card { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(23px, 3vw, 32px); }
.platform-card.douyin { border-top: 4px solid #415f5a; }
.platform-card.xhs { border-top: 4px solid #b28f5f; }
.platform-card h3 { margin-bottom: 10px; font-size: 21px; }
.platform-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.decision-section { max-width: none; background: #263936; color: #fff; }
.decision-section > * { max-width: 1084px; margin-left: auto; margin-right: auto; }
.decision-section .section-heading p { color: rgba(255, 255, 255, .68); }
.decision-track { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.decision-track div { padding: 24px 22px; border-right: 1px solid rgba(255, 255, 255, .18); }
.decision-track div:last-child { border-right: 0; }
.decision-track strong, .decision-track span { display: block; }
.decision-track strong { margin-bottom: 10px; font-size: 16px; }
.decision-track span { color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.65; }
.optional-note { margin-top: 24px; margin-bottom: 0; color: #ded4bf; font-size: 13px; line-height: 1.7; }

.form-section { padding: clamp(60px, 8vw, 96px) 20px; background: var(--ground-cool); }
.form-intro { max-width: 790px; margin: 0 auto 28px; text-align: center; }
.form-intro .eyebrow { margin-bottom: 12px; }
.form-shell { max-width: 840px; margin: 0 auto; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.progress { height: 5px; border-radius: 999px; background: #d6dfda; overflow: hidden; }
.progress span { display: block; width: 20%; height: 100%; background: var(--green); transition: width .2s ease; }
#leadForm { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(22px, 4vw, 38px); box-shadow: 0 18px 52px rgba(42, 61, 55, .06); }
.form-step { display: none; }
.form-step.active { display: block; }
.step-heading { display: grid; grid-template-columns: 44px 1fr; gap: 15px; margin-bottom: 26px; }
.step-heading > span { color: var(--sand); font-size: 14px; font-weight: 900; }
.step-heading h3 { margin-bottom: 7px; font-size: 25px; }
.step-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.form-grid, .conditional { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; margin-bottom: 15px; color: #30383a; font-size: 13px; font-weight: 800; }
label em, legend em, .signature-label em { color: var(--danger); font-style: normal; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd2ce;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #7a8486; }
.field-error { border-color: var(--danger) !important; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.form-actions.end { justify-content: flex-end; }

fieldset { margin: 0; border: 0; padding: 0; }
legend { margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 0; border: 1px solid #cdd2ce; border-radius: 10px; padding: 16px; cursor: pointer; }
.choice-wide { grid-column: 1 / -1; }
.choice:has(input:checked) { border-color: var(--green); background: #f0f5f3; box-shadow: 0 0 0 2px rgba(49, 92, 86, .08); }
.choice input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.choice strong, .choice small { display: block; }
.choice strong { margin-bottom: 6px; }
.choice small { color: var(--muted); font-weight: 400; line-height: 1.55; }
.conditional { display: none; margin-top: 15px; border-radius: 10px; background: #f3f6f4; padding: 15px; }
.conditional.show { display: grid; }
.conditional label { margin-bottom: 0; }
.form-note { margin: 14px 0 0; border-left: 3px solid var(--sand); padding: 6px 0 6px 12px; color: #675d4d; font-size: 12px; line-height: 1.65; }

.workload { display: grid; border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-row strong, .work-row small { display: block; }
.work-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.work-row b { color: var(--green); font-size: 12px; }
.quote-box { margin-top: 20px; border-radius: 10px; background: #f4f5f2; padding: 17px; }
.quote-row { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; font-size: 13px; }
.quote-row.total { margin-top: 8px; border-top: 1px solid #d5d8d3; padding-top: 13px; font-size: 17px; font-weight: 900; }
.quote-row .discount { color: var(--success); font-weight: 800; }

.signature-card { margin-top: 6px; border: 1px solid #d4d0c6; border-radius: 10px; background: #fbfaf7; padding: 17px; }
.signature-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.signature-label button { border: 0; background: transparent; color: var(--green); font-weight: 800; cursor: pointer; }
.signature-pad { overflow: hidden; border: 1px solid #cdd2ce; border-radius: 8px; background: #fff; }
.signature-pad canvas { display: block; width: 100%; height: 160px; touch-action: none; }
.signature-card > small { display: block; margin-top: 7px; color: var(--muted); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin: 15px 0 0; font-weight: 400; line-height: 1.65; }
.consent input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.submit-error { min-height: 20px; margin-top: 12px; color: var(--danger); font-size: 13px; }

#successStep { padding: 28px 0; text-align: center; }
#successStep.active { display: block; }
.success-mark { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--green-soft); color: var(--success); font-size: 28px; font-weight: 900; }
#successStep h3 { margin-bottom: 8px; font-size: 26px; }
#successStep > p { max-width: 52ch; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.reference-box { display: inline-block; margin: 20px auto; border: 1px solid var(--line); border-radius: 8px; background: #f6f7f4; padding: 11px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

footer { padding: 30px 20px; background: #fff; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .logic-layout { grid-template-columns: 1fr; gap: 30px; }
  .decision-track { grid-template-columns: 1fr 1fr; }
  .decision-track div:nth-child(2) { border-right: 0; }
  .decision-track div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, .18); }
}

@media (max-width: 620px) {
  .topbar { min-height: 60px; }
  .topbar-note { display: none; }
  .hero { padding-top: 46px; padding-bottom: 54px; }
  h1 { font-size: 39px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border-bottom: 0; }
  .platform-grid, .form-grid, .choice-grid, .conditional { grid-template-columns: 1fr; }
  .choice-wide { grid-column: auto; }
  .decision-track { grid-template-columns: 1fr; }
  .decision-track div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .decision-track div:last-child { border-bottom: 0; }
  .form-intro { text-align: left; }
  #leadForm { padding: 21px 17px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions.end { flex-direction: column; }
  .form-actions .button { width: 100%; }
  .work-row { grid-template-columns: 1fr; gap: 6px; }
  .quote-row { align-items: flex-start; }
}

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