:root {
  --primary: #ff5a2b;
  --primary-dark: #e9451a;
  --primary-soft: #fff1ec;
  --accent: #ff8a3d;
  --ink: #17171a;
  --ink-2: #4a4a52;
  --ink-3: #8b8b94;
  --line: #ececf0;
  --bg: #f5f6f8;
  --card: #ffffff;
  --green: #0aa06e;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(23, 23, 26, 0.07);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: calc(92px + var(--safe-bottom));
  background:
    radial-gradient(1200px 320px at 50% -140px, #ffe2d6 0%, rgba(255, 226, 214, 0) 70%),
    var(--bg);
  min-height: 100vh;
}

/* ---------- 顶部 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.logo {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 6px 16px rgba(255, 90, 43, 0.32);
}
.logo svg { width: 23px; height: 23px; }
.brand-line { display: flex; align-items: center; gap: 7px; }
.brand-text h1 { font-size: 18px; font-weight: 800; letter-spacing: 0.2px; }
.brand-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a45, #f03a12);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(240, 58, 18, 0.28);
}
.brand-text p { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.4px; }

.top-call {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  border: 1px solid #ffd6c7;
  padding: 8px 15px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 90, 43, 0.1);
  white-space: nowrap;
}

/* ---------- 价格浮动提示 ---------- */
.price-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 16px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  color: #8a5a00;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(176, 106, 0, 0.06);
}
.pa-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5a623;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.pa-text b { color: #b45309; font-weight: 800; }

/* ---------- 联系方式横幅 ---------- */
.contact-banner {
  position: relative;
  margin: 4px 16px 16px;
  padding: 17px 18px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #ff6a35 0%, #ff4d1f 55%, #f03a12 100%);
  box-shadow: 0 12px 30px rgba(240, 58, 18, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.cb-glow {
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.cb-main { position: relative; z-index: 1; }
.cb-label {
  font-size: 11.5px;
  letter-spacing: 1px;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cb-label::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.2 4C5.2 4 2 6.7 2 10c0 1.9 1.1 3.6 2.8 4.7l-.7 2.2 2.5-1.3c.8.2 1.7.4 2.6.4h.4a5.9 5.9 0 0 1-.2-1.5c0-3.3 3.2-6 7.1-6h.4C16.2 5.9 13 4 9.2 4z'/%3E%3Cpath d='M22 14.5c0-2.6-2.6-4.7-5.9-4.7s-5.9 2.1-5.9 4.7 2.6 4.7 5.9 4.7c.7 0 1.4-.1 2-.3l2 1-.5-1.7c1.4-.9 2.4-2.2 2.4-3.7z'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.cb-num {
  display: block;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin: 5px 0 4px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.cb-sub { font-size: 11.5px; opacity: 0.9; }
.cb-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 17px;
  border-radius: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); opacity: 0.9; }
.btn-call {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(120, 20, 0, 0.16);
}
.btn-wx {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn-primary {
  background: linear-gradient(135deg, #ff6a35, #ff4d1f);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 90, 43, 0.28);
}
.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* ---------- 卡片 ---------- */
.main { padding: 0 16px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card, .result + .card, .card + .result { margin-top: 14px; }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  padding: 6px;
  margin: 6px 6px 0;
  background: #f3f4f6;
  border-radius: 13px;
}
.tab {
  flex: 1;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 23, 26, 0.08);
}

.panel { display: none; padding: 16px; }
.panel.active { display: block; }

/* ---------- 拍照区 ---------- */
.drop {
  border: 1.5px dashed #ffc3ae;
  background: linear-gradient(180deg, #fff8f5 0%, #fffdfc 100%);
  border-radius: 16px;
  padding: 28px 18px 22px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.drop.dragover { border-color: var(--primary); background: var(--primary-soft); }
.drop-icon {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 6px 18px rgba(255, 90, 43, 0.16);
}
.drop-icon svg { width: 30px; height: 30px; }
.drop-title { font-size: 17px; font-weight: 700; }
.drop-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.drop-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.drop-btns .btn { padding: 12px 20px; border-radius: 13px; font-size: 14px; }
.drop-tip { font-size: 11px; color: #a9a9b2; margin-top: 16px; line-height: 1.6; }
.privacy {
  text-align: center;
  font-size: 11px;
  color: #b3b3ba;
  margin-top: 12px;
}

/* ---------- 搜索 ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f4f5f7;
  border-radius: 13px;
  padding: 0 12px;
  height: 48px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.search-box:focus-within { border-color: #ffb49b; background: #fff; }
.search-ico { width: 19px; height: 19px; color: #a8a8b1; flex: none; }
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
  min-width: 0;
}
.search-box input::placeholder { color: #a8a8b1; }
.search-clear {
  font-size: 20px;
  color: #a8a8b1;
  line-height: 1;
  padding: 4px 6px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 13px 0 3px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: #f4f5f7;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}
.chip.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: #ffd0be;
}
.search-hint {
  font-size: 12px;
  color: #a5a5ae;
  margin: 14px 2px 6px;
}
.results { margin-top: 4px; }
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid #f2f2f5;
  cursor: pointer;
}
.result-item:last-child { border-bottom: 0; }
.result-item:active { background: #fafafa; }
.ri-left { min-width: 0; }
.ri-model {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-brand {
  display: inline-block;
  font-size: 10.5px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 6px;
  vertical-align: 1px;
}
.ri-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ri-price .ri-lo { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.ri-price .ri-dash { margin: 0 2px; color: #c4c4cc; font-weight: 500; }
.empty {
  text-align: center;
  padding: 26px 10px 18px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}
.empty a { color: var(--primary); font-weight: 700; }
/* 平板/学习机查询无精确结果时的引导框 */
.empty-tablet { padding: 20px 14px 22px; color: var(--ink-2); font-size: 14px; }
.empty-tablet b { color: var(--primary); }
.empty-tablet .et-line { margin-top: 6px; }
.empty-tablet .et-btn {
  display: inline-block; margin-top: 14px; padding: 10px 34px;
  background: linear-gradient(135deg, #ff7a3c, #f43f1f); color: #fff !important;
  font-size: 15px; font-weight: 800; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(244, 63, 31, .28);
}
.empty-tablet .et-or { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* ---------- 手机号轻登记（方案A） ---------- */
.userbar {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 14px 0; padding: 9px 14px;
  background: #fff7ed; border: 1px solid #ffd7ad; border-radius: 12px;
  font-size: 13px; color: #7a3c00;
}
.userbar .ub-text { font-weight: 700; }
.userbar .ub-link, .userbar .ub-switch {
  border: none; background: none; padding: 2px 4px; font-size: 12.5px;
  color: #f43f1f; font-weight: 700; cursor: pointer;
}
.userbar .ub-switch { margin-left: auto; color: var(--ink-3); font-weight: 400; }

.recent-card { padding: 16px; }
.rc-head { display: flex; align-items: center; margin-bottom: 10px; }
.rc-title { font-size: 15px; font-weight: 800; }
.rc-head .link-btn { margin-left: auto; }
.rc-items { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-item {
  flex: 1 1 46%; min-width: 120px;
  background: #fafafa; border: 1px solid #eee; border-radius: 10px;
  padding: 10px 12px; cursor: pointer;
}
.rc-item:active { background: #fff2ec; }
.rc-model { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-quote { font-size: 15px; font-weight: 800; color: var(--primary); margin-top: 3px; }
.rc-count { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.phone-bar {
  position: fixed; left: 12px; right: 12px; bottom: 64px; z-index: 60;
  background: linear-gradient(160deg, #ffffff, #fffaf7);
  border: 1px solid #ffd7ad; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(120, 30, 0, .18);
  padding: 16px 16px 14px; animation: rise 0.3s ease both;
}
.pb-close {
  position: absolute; right: 8px; top: 6px; border: none; background: none;
  font-size: 20px; color: var(--ink-3); cursor: pointer; padding: 2px 8px;
}
.pb-title { font-size: 15px; font-weight: 800; color: #222; }
.pb-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.pb-form { display: flex; gap: 8px; margin-top: 10px; }
.pb-form input {
  flex: 1; min-width: 0; border: 1px solid #e5e5ea; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; background: #fff;
}
.pb-form input:focus { outline: none; border-color: var(--primary); }
.pb-form #pbWx { flex: 0 0 28%; }
.pb-form button {
  border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, #ff7a3c, #f43f1f); color: #fff; cursor: pointer; white-space: nowrap;
}
.pb-form button:disabled { opacity: .6; }

/* ---------- 识别结果 / 报价卡 ---------- */
.result { }
.price-card {
  background: linear-gradient(160deg, #ffffff 0%, #fffaf7 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid #ffe9e1;
  animation: rise 0.28s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pc-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.pc-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.pc-model {
  font-size: 21px;
  font-weight: 800;
  margin-top: 9px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}
.pc-brand {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
}
.pc-price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px dashed #f0dcd4;
}
.pc-price-label {
  font-size: 12.5px;
  color: var(--ink-2);
  padding-bottom: 7px;
}
.pc-price {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.pc-price .cur { font-size: 19px; margin-right: 2px; letter-spacing: 0; }
.pc-price .sep { font-size: 24px; margin: 0 3px; opacity: 0.5; letter-spacing: 0; }

/* 价格档位说明 */
.pc-tier {
  margin-top: 14px;
  background: #fff8f4;
  border: 1px solid #ffe6da;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 7px;
}
.pc-tier-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.pc-tier-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
}
.pc-tier-dot.bad { background: #ffb49b; }
.pc-tier-dot.good { background: #0aa06e; }
.pc-tier-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-tier-val {
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pc-tier-tip {
  font-size: 11px;
  color: #b09a90;
  margin-top: 8px;
  padding-left: 2px;
}
.pc-price-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.pc-price-note .date { white-space: nowrap; color: #b0b0b8; }
.pc-float-note {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.55;
}
.pc-float-note b { color: #b45309; font-weight: 800; }
.pc-float-note .tag {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f5a623;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}
.pc-config {
  margin-top: 10px;
  background: #fff8e8;
  border: 1px solid #ffe2b8;
  border-radius: 12px;
  padding: 10px 12px;
}
.pc-config-title { font-size: 13px; font-weight: 800; color: #a86400; line-height: 1.5; }
.pc-config-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pc-config-list span {
  font-size: 11.5px;
  font-weight: 700;
  color: #8a5a00;
  background: #fff;
  border: 1px solid #f3d49a;
  border-radius: 6px;
  padding: 2px 6px;
  font-variant-numeric: tabular-nums;
}
.pc-config-tip { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: #99702f; }
.pc-config-tip b { color: #8a5a00; }
.pc-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}
.pc-actions .btn { flex: 1; padding: 12px 0; border-radius: 12px; }
.pc-actions .btn-ghost { flex: 0 0 auto; padding: 12px 15px; }

.sub-title {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 16px 2px 6px;
}
.candidates {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 8px;
}
.candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f3f6;
  cursor: pointer;
}
.candidate:last-child { border-bottom: 0; }
.candidate:active { background: #fafafa; }
.cand-name { font-size: 13.5px; font-weight: 600; }
.cand-name .tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 6px;
}
.cand-price { font-size: 15px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.pc-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
  background: #fff8f4;
  border: 1px solid #ffe6da;
  border-radius: 11px;
  padding: 10px 12px;
}
.pc-hint b { color: var(--primary-dark); }
.pc-wx {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #dff2e7;
  border-radius: 12px;
  padding: 10px;
}
.pc-wx-qr {
  width: 108px;
  height: 108px;
  flex: none;
  display: block;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  background: #fff;
  object-fit: cover;
}
.pc-wx-info { flex: 1; min-width: 0; }
.pc-wx-title { font-size: 14px; font-weight: 800; color: #17914f; }
.pc-wx-sub { margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.pc-wx-copy {
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: #eafaf0;
  color: #17914f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pc-wx-copy:active { opacity: .8; }

/* ---------- 机型缩略图 ---------- */
.ri-thumb, .pc-thumb, .cand-thumb, .li-thumb {
  flex: none;
  object-fit: contain;
  background: #f4f5f7;
  border-radius: 8px;
  display: block;
}
.ri-thumb { width: 36px; height: 36px; }
.pc-thumb { width: 54px; height: 54px; border-radius: 10px; }
.cand-thumb { width: 30px; height: 30px; }
.li-thumb { width: 34px; height: 34px; }
/* 详情大卡：缩略图 + 机型名/品牌 横排 */
.pc-model-row { display: flex; align-items: center; gap: 13px; margin-top: 9px; }
.pc-model-row .pc-model { margin-top: 0; }
.pc-model-row .pc-brand { margin-top: 2px; }
/* 候选项：图 + 文字块（机型名在上、价格在下） */
.candidate .cand-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* 列表行「废旧保底价」小注 */
.ri-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
/* 详情卡：废旧 vs 正常机引导 */
.pc-ask {
  margin-top: 14px;
  background: #fff8f4;
  border: 1px dashed #ffcdb5;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pc-ask-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pc-ask-text b { color: var(--primary-dark); }
.pc-ask-btn {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff7a3c, #f43f1f);
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(244, 63, 31, .25);
}

/* ---------- 留电话 ---------- */
.lead-card {
  padding: 17px 18px 16px;
  border: 1px solid #d9f0e3;
  background: linear-gradient(160deg, #ffffff, #f6fdf9);
}
.lead-head { display: flex; align-items: center; gap: 11px; }
.lead-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: #e8f8f1; color: #0a8a5f;
}
.lead-ico svg { width: 19px; height: 19px; }
.lead-title { font-size: 14.5px; font-weight: 800; }
.lead-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.lead-form { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.lead-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1.5px solid #d9f0e3; border-radius: 12px;
  background: #fff; font-size: 15px; color: var(--ink);
  outline: none; font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
}
.lead-form input:focus { border-color: #6fd3a8; }
.lead-form button {
  flex: none; width: 100%; padding: 0 18px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #0ea557);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 165, 87, 0.24);
  transition: transform 0.15s ease;
}
.lead-form button:active { transform: scale(0.98); }
.lead-form button:disabled { opacity: 0.6; }
.lead-note { font-size: 11px; color: #a9b8ae; margin-top: 9px; }

/* ---------- 清单 ---------- */
.list-card { padding: 17px 18px 18px; }
.list-head { display: flex; align-items: flex-start; justify-content: space-between; }
.list-title { font-size: 15px; font-weight: 800; }
.list-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.link-btn { font-size: 12px; color: var(--ink-3); padding: 4px; }
.list-items { margin-top: 8px; }
.li-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f3f3f6;
}
.li-info { min-width: 0; }
.li-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-brand { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.li-right { display: flex; align-items: center; gap: 8px; flex: none; }
.li-price { font-size: 14.5px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.li-del { color: #b8b8c0; font-size: 18px; line-height: 1; padding: 2px 4px; }
.list-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 2px;
  font-size: 13px;
  color: var(--ink-2);
}
.list-total strong {
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.list-actions { display: flex; gap: 9px; margin-top: 13px; }
.list-actions .btn { flex: 1; padding: 12px 0; border-radius: 12px; }

/* ---------- 说明 ---------- */
.tips { padding: 17px 18px; }
.tips-title { font-size: 14px; font-weight: 800; }
.tips ul { margin-top: 9px; }
.tips li {
  position: relative;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.85;
  padding-left: 13px;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffb49b;
}
.tips-updated { font-size: 11px; color: #b3b3ba; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 26px 20px 10px;
  color: var(--ink-3);
}
.footer-name { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.footer-contact { font-size: 12.5px; margin-top: 7px; color: var(--ink-2); }
.footer-contact a { font-variant-numeric: tabular-nums; }
.footer-contact .dot { margin: 0 5px; color: #c9c9d0; }
.footer-note { font-size: 11px; color: #b3b3ba; margin-top: 7px; }

/* ---------- 底部固定栏 ---------- */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  gap: 9px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 560px;
  margin: 0 auto;
}
.bb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  height: 50px;
  transition: transform 0.15s ease;
}
.bb-btn:active { transform: scale(0.98); }
.bb-btn svg { width: 19px; height: 19px; flex: none; }
.bb-call {
  flex: 0 0 108px;
  color: var(--primary-dark);
  background: #fff;
  border: 1.5px solid #ffd0be;
}
.bb-wx {
  flex: 1;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #12a34a);
  box-shadow: 0 6px 18px rgba(18, 163, 74, 0.28);
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

/* ---------- 识别中 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(18, 18, 20, 0.55);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.overlay[hidden] { display: none; }
.scan {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px 24px;
  text-align: center;
  animation: rise 0.25s ease both;
}
.scan-phone {
  position: relative;
  width: 84px; height: 116px;
  margin: 0 auto 18px;
  border-radius: 18px;
  border: 2px solid #ffd0be;
  background: linear-gradient(180deg, #fff8f4, #fff);
  display: grid;
  place-items: center;
  color: #ffb49b;
  overflow: hidden;
}
.scan-phone svg { width: 54px; height: 54px; }
.scan-line {
  position: absolute;
  left: 6%; right: 6%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,90,43,0), #ff5a2b, rgba(255,90,43,0));
  box-shadow: 0 0 12px rgba(255, 90, 43, 0.7);
  animation: scanline 1.6s ease-in-out infinite;
}
@keyframes scanline {
  0% { top: 10%; }
  50% { top: 86%; }
  100% { top: 10%; }
}
.scan-title { font-size: 16px; font-weight: 800; }
.scan-desc { font-size: 12px; color: var(--ink-3); margin-top: 7px; min-height: 18px; line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translate(-50%, 12px);
  z-index: 100;
  background: rgba(23, 23, 26, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: 80vw;
  text-align: center;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 480px) {
  .cb-num { font-size: 32px; }
  .pc-price { font-size: 44px; }
}
