/* ==========================================================
   移动破碎选型报价 · 客户端自助页
   浅色工业风：石板灰 + 琥珀色强调
   ========================================================== */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #16202b;
  --ink-2: #39495c;
  --muted: #6b7c8f;
  --line: #e2e7ed;
  --line-strong: #cfd7e0;
  --accent: #b45309;
  --accent-2: #d97706;
  --accent-soft: #fef3e2;
  --ok: #1a7f4b;
  --ok-soft: #e7f6ee;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .04), 0 8px 24px rgba(22, 32, 43, .05);
  --shadow-lg: 0 2px 6px rgba(22, 32, 43, .06), 0 18px 48px rgba(22, 32, 43, .09);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
}
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #b45309, #d97706);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(180, 83, 9, .25);
}
.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.topbar-meta b { color: var(--ink); font-weight: 650; }
.topbar-phone {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-phone:hover { border-color: var(--accent-2); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 46px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #f6ddba;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 30em;
}
.hero-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-points span {
  color: var(--ink-2);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-points span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card h4 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.stat-row:last-child { border-bottom: 0; }
.stat-row span { color: var(--muted); }
.stat-row b { font-weight: 650; }
.stat-row b.big { font-size: 17px; color: var(--accent); }

/* ---------- 卡片与步骤 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
}
.panel-head h2 { font-size: 17px; }
.panel-head .hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.panel-body { padding: 26px; }

.steps {
  display: flex;
  gap: 6px;
  padding: 14px 26px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.step-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.step-chip i {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e8edf2;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.step-chip.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.step-chip.active i { background: var(--accent-2); color: #fff; }
.step-chip.done i { background: var(--ok); color: #fff; }
.step-chip.done { color: var(--ink-2); }

.field { margin-bottom: 26px; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 11px;
}
.field-label label { font-weight: 600; font-size: 14.5px; }
.field-label .req { color: var(--danger); font-size: 12px; }
.field-label .note { color: var(--muted); font-size: 12.5px; margin-left: auto; }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}
.opt {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  text-align: left;
  transition: .16s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.opt.on {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .1);
}
.opt strong { font-size: 14px; font-weight: 620; }
.opt small { color: var(--muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: .16s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.on {
  border-color: var(--accent-2);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.range-row { display: flex; align-items: center; gap: 16px; }
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2) var(--pct, 40%), #e6ebf1 var(--pct, 40%));
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--accent-2);
  box-shadow: 0 2px 6px rgba(22, 32, 43, .18);
  cursor: pointer;
}
.num-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: var(--surface);
}
.num-box input {
  border: 0;
  outline: 0;
  width: 66px;
  font-size: 17px;
  font-weight: 650;
  font-family: inherit;
  color: var(--ink);
  text-align: right;
}
.num-box span { color: var(--muted); font-size: 13px; }

.txt {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: .16s;
  background: var(--surface);
}
.txt:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(217, 119, 6, .1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tip {
  display: flex;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}
.tip b { color: var(--ink); }

.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 620;
  transition: .16s;
}
.btn-primary {
  background: linear-gradient(140deg, #b45309, #d97706);
  color: #fff;
  box-shadow: 0 6px 16px rgba(180, 83, 9, .22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(180, 83, 9, .28); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent); }
.nav-row .spacer { margin-left: auto; }

/* ---------- 结果页 ---------- */
.result { padding: 34px 0 60px; }
.result-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.result-head h1 { font-size: 27px; }
.result-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.result-head .actions { margin-left: auto; display: flex; gap: 10px; }

.verdict {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.verdict-main {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.v-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: .02em;
}
.v-item b { font-size: 17px; font-weight: 650; }
.v-item b.accent { color: var(--accent); }
.v-item span.sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.verdict-why {
  padding: 16px 26px;
  background: var(--surface-2);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.verdict-why b { color: var(--ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15.5px; }
.card-head .badge {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 600;
}
.card-head .hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.card-body { padding: 22px 24px; }
.card-body.tight { padding: 16px 24px 22px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td {
  padding: 11px 10px;
  border-bottom: 1px solid #f0f3f6;
  color: var(--ink-2);
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
td.strong { color: var(--ink); font-weight: 600; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #eef2f6;
  color: var(--ink-2);
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ng { background: var(--danger-soft); color: var(--danger); }

.flow-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  overflow-x: auto;
}
.flow-box svg { display: block; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  background: var(--surface);
}
.tier.rec { border-color: var(--accent-2); background: linear-gradient(180deg, #fffdf9, #fff); box-shadow: 0 8px 22px rgba(180, 83, 9, .1); }
.tier .badge-rec {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
}
.tier h4 { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.tier .price {
  font-size: 27px;
  font-weight: 700;
  margin: 8px 0 2px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.tier .price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.tier p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

.note-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.note-list li::marker { color: var(--accent-2); }

.machine {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.machine:last-child { border-bottom: 0; }
.machine .m-score {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
  background: var(--ok-soft);
  color: var(--ok);
  flex: none;
}
.machine .m-score.mid { background: var(--warn-soft); color: var(--warn); }
.machine .m-main { flex: 1; min-width: 0; }
.machine .m-main b { font-size: 14px; }
.machine .m-main p { font-size: 12.5px; color: var(--muted); }
.machine a.m-link {
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--ink-2);
}
.machine a.m-link:hover { border-color: var(--accent-2); color: var(--accent); }

.lead-box {
  background: linear-gradient(160deg, #1b2836, #253445);
  border-radius: 18px;
  padding: 26px;
  color: #eaf0f6;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
}
.lead-box h3 { font-size: 19px; color: #fff; }
.lead-box p { font-size: 13.5px; color: #a9b8c8; margin-top: 8px; line-height: 1.7; }
.lead-box .txt {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.lead-box .txt::placeholder { color: #7f90a3; }
.lead-box .form-grid { grid-template-columns: 1fr; gap: 10px; }
.lead-box .btn-primary {
  background: #fff;
  color: #16202b;
  box-shadow: none;
  width: 100%;
  margin-top: 4px;
}
.lead-box .btn-primary:hover { background: #f1f5f9; }

.copy-box {
  background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #c8d4e0;
  white-space: pre-wrap;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  max-height: 190px;
  overflow: auto;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}
.foot b { color: var(--ink-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: #16202b;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(22, 32, 43, .25);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .hero { padding: 30px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 14.5px; }
  .topbar-meta { display: none; }
  .panel-body, .nav-row, .panel-head, .steps { padding-left: 16px; padding-right: 16px; }
  .verdict-main { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .lead-box { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .result-head .actions { margin-left: 0; }
  .hero-card { padding: 16px; }
  .flow-box { padding: 4px; }
  .result-head h1 { font-size: 21px; line-height: 1.35; }
  .result-head .actions { width: 100%; }
  .result-head .actions .btn { flex: 1; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 24px; }
  .result-head h1 { font-size: 19px; }
  .verdict-main { grid-template-columns: 1fr; }
  .wrap, .container { padding-left: 14px; padding-right: 14px; }
  .panel-body, .nav-row, .panel-head, .steps { padding-left: 14px; padding-right: 14px; }
}
