/* 轻松报价通 · Apple-inspired mobile UI：系统字体、雾白材质、清晰金额层级 */

:root {
  --c-bg: #f5f5f7;
  --c-bg-soft: rgba(118, 118, 128, 0.09);
  --c-card: rgba(255, 255, 255, 0.86);
  --c-border: rgba(60, 60, 67, 0.12);
  --c-text: #1d1d1f;
  --c-text-2: #6e6e73;
  --c-text-3: #8e8e93;
  --c-primary: #007aff;
  --c-primary-dark: #0066d6;
  --c-primary-soft: #eaf3ff;
  --c-danger: #ff3b30;
  --c-danger-soft: #fff0ef;
  --c-warn: #ff9f0a;
  --c-warn-soft: #fff5e4;
  --c-link: #007aff;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.045);
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--c-text);
  background: #e9e9ed;
  font-size: 16px;
  line-height: 1.5;
}

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--c-link); text-decoration: none; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.10);
  position: relative;
}

.boot-loading { padding: 48px; text-align: center; color: var(--c-text-3); }

.page {
  min-height: 100vh;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 82% 0, rgba(0, 122, 255, .11), transparent 28%), var(--c-bg);
}
.page-inner { padding: 0 20px; }

/* ---------- 顶部栏 ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.navbar .brand { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.navbar .nav-link { font-size: 14px; color: var(--c-primary); background: rgba(255,255,255,.72); border-radius: 999px; padding: 8px 13px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.navbar-title { font-size: 17px; font-weight: 600; text-align: center; flex: 1; }
.nav-back {
  font-size: 15px; color: var(--c-text); display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 8px 4px 0; min-width: 48px;
}
.nav-back::before { content: "‹"; font-size: 22px; line-height: 1; }
.nav-right { min-width: 48px; text-align: right; font-size: 15px; color: var(--c-text-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: block; width: 100%; text-align: center;
  padding: 16px; border-radius: 14px; font-size: 17px; font-weight: 650;
  transition: opacity 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 22px rgba(0,122,255,.20); }
.btn-primary:active { background: var(--c-primary-dark); }
.btn-primary[disabled] { background: #a8cff7; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--c-bg-soft); color: var(--c-text); font-weight: 500; }
.btn-outline { background: #fff; border: 1px solid var(--c-border); color: var(--c-text); font-weight: 500; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 14px; width: auto; display: inline-block; border-radius: 9px; }

.cta-fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: 480px; margin: 0 auto;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: rgba(245,245,247,.84);
  border-top: 1px solid rgba(60,60,67,.08);
  backdrop-filter: blur(18px);
}
.cta-fixed .btn { box-shadow: 0 8px 22px rgba(0, 122, 255, 0.22); }
.cta-fixed .row { display: flex; gap: 10px; }

/* ---------- 首页 ---------- */
.home-hero { text-align: left; padding: 48px 20px 8px; }
.home-hero h1 { font-size: 34px; line-height: 1.12; font-weight: 760; letter-spacing: -1.2px; }
.home-hero .subtitle { margin-top: 10px; color: var(--c-text-2); font-size: 15px; }

.voice-zone { display: flex; flex-direction: column; align-items: center; margin: 28px 20px 10px; padding: 30px 20px 22px; border-radius: 22px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.78); box-shadow: 0 12px 34px rgba(0,61,138,.07); backdrop-filter: blur(16px); }
.voice-btn {
  width: 104px; height: 104px; border-radius: 50%;
  background: linear-gradient(145deg,#1690ff,#0068e8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.30), inset 0 1px 1px rgba(255,255,255,.35);
  user-select: none; touch-action: none;
  transition: transform 0.12s;
}
.voice-btn.recording { transform: scale(.96); background: linear-gradient(145deg,#ff6961,#ff3b30); }
.voice-btn .voice-btn-label { font-size: 16px; font-weight: 700; }
.voice-hint { margin-top: 14px; font-size: 14px; color: var(--c-text-2); }
.voice-hint.warn { color: var(--c-warn); }

.text-entry { text-align: center; padding: 6px 0 4px; }
.text-entry button { color: var(--c-primary); background: var(--c-primary-soft); border-radius: 12px; font-size: 15px; font-weight: 600; padding: 12px 22px; }

.text-panel { padding: 8px 20px 0; }
.text-panel textarea {
  width: 100%; min-height: 104px; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 12px; font-size: 16px; resize: none;
  background: var(--c-bg-soft); outline: none;
}
.text-panel textarea:focus { border-color: var(--c-primary); background: #fff; }

.home-section { padding: 22px 20px 0; }
.home-section h2 { font-size: 13px; color: var(--c-text-2); font-weight: 600; margin-bottom: 10px; }
.example-card {
  background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-sm);
  padding: 13px 14px; font-size: 14px; color: var(--c-text-2); line-height: 1.7;
  margin-bottom: 8px;
}
.demo-link { color: var(--c-link); font-size: 15px; padding: 6px 0; display: inline-block; }

.recent-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-card); border: 1px solid rgba(255,255,255,.74); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 10px; box-shadow: var(--shadow-card);
}
.recent-item .r-main { min-width: 0; }
.recent-item .r-name { font-size: 15px; font-weight: 500; }
.recent-item .r-sub { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.recent-item .r-amount { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.recent-item .r-arrow { color: var(--c-text-3); margin-left: 8px; }

.recording-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 120px;
}
.recording-panel {
  background: rgba(29,29,31,.90); color: #fff; border-radius: 20px; padding: 26px 34px; text-align: center;
}
.recording-panel .rp-title { font-size: 17px; font-weight: 600; }
.recording-panel .rp-hint { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.68); }
.recording-waves { display: flex; gap: 4px; justify-content: center; align-items: flex-end; height: 30px; margin-top: 14px; }
.recording-waves span {
  width: 4px; background: var(--c-primary); border-radius: 2px;
  animation: wave 0.9s ease-in-out infinite;
}
.recording-waves span:nth-child(1) { height: 12px; animation-delay: 0s; }
.recording-waves span:nth-child(2) { height: 22px; animation-delay: 0.12s; }
.recording-waves span:nth-child(3) { height: 30px; animation-delay: 0.24s; }
.recording-waves span:nth-child(4) { height: 20px; animation-delay: 0.36s; }
.recording-waves span:nth-child(5) { height: 12px; animation-delay: 0.48s; }
@keyframes wave { 50% { transform: scaleY(0.4); } }

/* ---------- 骨架屏 ---------- */
.skeleton-block {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f0f0f2 25%, #e6e6ea 50%, #f0f0f2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  margin-bottom: 12px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-note { text-align: center; color: var(--c-text-3); font-size: 14px; padding: 10px 0 20px; }
.loading-note .strong { color: var(--c-text-2); font-size: 15px; }

/* ---------- 项目卡片（确认页） ---------- */
.item-card {
  position: relative; background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-card);
  overflow: hidden;
}
.item-card .ic-name { font-size: 16px; font-weight: 600; }
.item-card .ic-spec { font-size: 13px; color: var(--c-text-3); margin-top: 2px; }
.item-card .ic-line {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px;
}
.item-card .ic-qty { font-size: 14px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.item-card .ic-amount { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-card .ic-amount.missing { font-size: 14px; color: var(--c-danger); font-weight: 500; }
.field-hint { color: var(--c-danger); font-size: 13px; margin-top: 6px; }
.conf-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-warn-soft); color: var(--c-warn);
  font-size: 12px; border-radius: 6px; padding: 2px 8px; margin-top: 8px;
}
.conf-badge.done { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.swipe-wrap { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; }
.swipe-actions {
  position: absolute; right: 0; top: 0; bottom: 0; display: flex;
}
.swipe-actions button {
  width: 76px; color: #fff; font-size: 14px; border-radius: 0;
}
.swipe-actions .act-del { background: var(--c-danger); }
.swipe-actions .act-copy { background: var(--c-link); }
.swipe-content { position: relative; background: #fff; transition: transform 0.18s; }
.swipe-wrap .item-card { margin-bottom: 0; }

.add-item-btn {
  width: 100%; padding: 13px; border: 1px dashed #c9c9cf; border-radius: var(--radius);
  color: var(--c-text-2); font-size: 15px; background: #fff; margin-bottom: 14px;
}

.total-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 4px 6px;
  border-top: 1px solid var(--c-border); margin-top: 4px;
}
.total-bar .t-label { font-size: 15px; color: var(--c-text-2); }
.total-bar .t-value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }

.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 2px; border-bottom: 1px solid var(--c-border); font-size: 15px;
}
.meta-row .m-label { color: var(--c-text-2); }
.meta-row .m-value { font-weight: 500; max-width: 62%; text-align: right; word-break: break-all; }
.meta-row .m-value.placeholder { color: var(--c-text-3); font-weight: 400; }

/* ---------- 弹层 / Bottom Sheet / Modal ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 18px 18px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto;
  animation: sheetUp 0.22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0.4; } }
.sheet h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; text-align: center; }

.modal-mask {
  position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 340px;
  padding: 22px 20px 16px; text-align: center;
  animation: sheetUp 0.18s ease-out;
}
.modal .md-title { font-size: 17px; font-weight: 600; }
.modal .md-body { margin-top: 10px; font-size: 15px; color: var(--c-text-2); line-height: 1.6; }
.modal .md-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .md-actions .btn { padding: 11px; font-size: 15px; }

.form-field { margin-bottom: 14px; text-align: left; }
.form-field label { display: block; font-size: 13px; color: var(--c-text-2); margin-bottom: 6px; }
.form-field label .req { color: var(--c-danger); }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: 16px; outline: none; background: var(--c-bg-soft);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--c-primary); background: #fff; }
.form-field .f-hint { font-size: 12px; color: var(--c-danger); margin-top: 4px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-field { flex: 1; }

/* ---------- 预览页 / 报价单渲染 ---------- */
.preview-tools {
  display: flex; gap: 8px; padding: 4px 20px 14px; align-items: center;
}
.tpl-switch { display: flex; background: var(--c-bg-soft); border-radius: 10px; padding: 3px; }
.tpl-switch button {
  padding: 6px 14px; font-size: 13px; border-radius: 8px; color: var(--c-text-2);
}
.tpl-switch button.active { background: #fff; color: var(--c-text); font-weight: 600; box-shadow: var(--shadow-card); }

.quote-paper {
  position: relative; margin: 0 16px; background: #fff;
  border: 1px solid var(--c-border); border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.quote-paper .qp-inner { padding: 30px 26px 26px; }

/* 模板 A：商务经典 */
.tpl-a .qp-merchant { text-align: center; border-bottom: 3px double #d8d8dc; padding-bottom: 16px; }
.tpl-a .qp-merchant .m-logo { max-height: 52px; max-width: 160px; margin-bottom: 8px; }
.tpl-a .qp-merchant .m-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.tpl-a .qp-doc-title { text-align: center; margin: 16px 0 4px; font-size: 21px; font-weight: 700; letter-spacing: 6px; }
.tpl-a .qp-number { text-align: center; font-size: 12px; color: var(--c-text-3); letter-spacing: 1px; }
.tpl-a .qp-head { margin: 16px 0 10px; font-size: 13.5px; color: var(--c-text-2); line-height: 2; }
.tpl-a .qp-head b { color: var(--c-text); font-weight: 600; }
.tpl-a table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tpl-a th {
  text-align: left; font-weight: 600; color: var(--c-text-2); font-size: 12.5px;
  border-bottom: 1.5px solid #c9c9cf; padding: 7px 4px;
}
.tpl-a td { border-bottom: 1px solid var(--c-border); padding: 9px 4px; vertical-align: top; }
.tpl-a .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tpl-a .item-spec { display: block; font-size: 12px; color: var(--c-text-3); }
.tpl-a .qp-total-row td { border-bottom: none; padding-top: 12px; }
.tpl-a .qp-grand { font-size: 21px; font-weight: 800; color: var(--c-text); }
.tpl-a .qp-foot { margin-top: 18px; font-size: 13px; color: var(--c-text-2); line-height: 2; border-top: 1px solid var(--c-border); padding-top: 12px; }
.tpl-a .qp-merchant-foot { margin-top: 14px; font-size: 12.5px; color: var(--c-text-3); line-height: 1.9; }

/* 模板 B：极简现代 */
.tpl-b .qp-inner { padding: 34px 26px; }
.tpl-b .qp-merchant { display: flex; align-items: center; gap: 10px; }
.tpl-b .qp-merchant .m-logo { max-height: 40px; max-width: 120px; }
.tpl-b .qp-merchant .m-name { font-size: 16px; font-weight: 600; }
.tpl-b .qp-doc-title { margin: 22px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.tpl-b .qp-number { font-size: 12px; color: var(--c-text-3); }
.tpl-b .qp-head { margin: 18px 0 6px; font-size: 13.5px; color: var(--c-text-2); line-height: 2; }
.tpl-b .qp-head b { color: var(--c-text); font-weight: 600; }
.tpl-b .b-item { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.tpl-b .b-item .bi-top { display: flex; justify-content: space-between; align-items: baseline; }
.tpl-b .b-item .bi-name { font-size: 15px; font-weight: 600; }
.tpl-b .b-item .bi-amount { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tpl-b .b-item .bi-sub { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.tpl-b .b-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.tpl-b .b-total .bt-label { font-size: 14px; color: var(--c-text-2); }
.tpl-b .b-total .bt-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tpl-b .qp-foot { margin-top: 20px; font-size: 13px; color: var(--c-text-2); line-height: 2; }
.tpl-b .qp-merchant-foot { margin-top: 14px; font-size: 12.5px; color: var(--c-text-3); line-height: 1.9; }

.watermark-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around;
  overflow: hidden; opacity: 0.55;
}
.watermark-layer span {
  transform: rotate(-24deg); color: rgba(0, 0, 0, 0.07);
  font-size: 15px; font-weight: 600; letter-spacing: 2px; white-space: nowrap;
  padding: 26px 10px; user-select: none;
}

.merchant-nudge {
  margin: 14px 16px 0; background: var(--c-bg-soft); border-radius: var(--radius);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.merchant-nudge .mn-text { font-size: 13.5px; color: var(--c-text-2); line-height: 1.6; }

.logo-picker { display: flex; align-items: center; gap: 12px; }
.logo-preview {
  width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--c-border);
  object-fit: contain; background: #fff;
}
.logo-empty {
  width: 56px; height: 56px; border-radius: 10px; border: 1px dashed #c9c9cf;
  display: flex; align-items: center; justify-content: center; color: var(--c-text-3); font-size: 12px;
}

/* ---------- 支付页 ---------- */
.pay-summary { text-align: center; padding: 26px 20px 6px; }
.pay-summary .ps-title { font-size: 16px; color: var(--c-text-2); }
.pay-summary .ps-amount { font-size: 34px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.benefit-list { padding: 18px 28px 6px; }
.benefit-list li {
  list-style: none; font-size: 15px; color: var(--c-text); padding: 8px 0; position: relative;
}
.sku-list { padding: 14px 20px 0; }
.sku-item {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 10px; background: #fff;
}
.sku-item.selected { border-color: var(--c-primary); background: var(--c-primary-soft); }
.sku-item .sk-left { display: flex; align-items: center; gap: 10px; }
.sku-item .sk-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c9c9cf; position: relative;
}
.sku-item.selected .sk-radio { border-color: var(--c-primary); }
.sku-item.selected .sk-radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-primary);
}
.sku-item .sk-name { font-size: 16px; font-weight: 600; }
.sku-item .sk-name .sk-tag {
  font-size: 11px; color: var(--c-primary-dark); background: #fff;
  border: 1px solid var(--c-primary); border-radius: 4px; padding: 1px 5px; margin-left: 6px; font-weight: 500;
}
.sku-item .sk-price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sku-item .sk-price .sk-unit { font-size: 12px; color: var(--c-text-3); font-weight: 400; }

.pay-status-box {
  margin: 16px 20px 0; border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px;
  display: none;
}
.pay-status-box.show { display: block; }
.pay-status-box.warn { background: var(--c-warn-soft); color: #8a5b00; }
.pay-status-box.info { background: var(--c-bg-soft); color: var(--c-text-2); }
.pay-status-box .psb-title { font-weight: 600; margin-bottom: 4px; }
.pay-status-box button { color: var(--c-link); font-size: 14px; margin-top: 8px; padding: 0; }

/* ---------- 成功页 ---------- */
.success-hero { text-align: center; padding: 44px 20px 10px; }
.success-check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--c-primary);
  color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.24);
}
.success-hero h2 { font-size: 20px; font-weight: 700; margin-top: 16px; }
.success-hero .sc-info { margin-top: 8px; color: var(--c-text-2); font-size: 15px; }
.success-hero .sc-amount { font-size: 30px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }

.action-block { padding: 20px 20px 0; }
.action-block .btn { margin-bottom: 10px; }

.share-status-card {
  margin: 18px 20px 0; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 4px 16px; background: #fff;
}
.share-status-card .meta-row:last-child { border-bottom: none; }
.status-pill {
  display: inline-block; font-size: 12px; border-radius: 20px; padding: 2px 10px; font-weight: 500;
}
.status-pill.on { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.status-pill.off { background: var(--c-bg-soft); color: var(--c-text-3); }

.share-card-preview {
  margin: 14px 20px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden;
}
.share-card-preview .scp-head { background: var(--c-bg-soft); padding: 8px 12px; font-size: 12px; color: var(--c-text-3); }
.share-card-preview .scp-body { padding: 14px; display: flex; gap: 12px; align-items: center; }
.share-card-preview .scp-thumb {
  width: 46px; height: 46px; border-radius: 8px; background: var(--c-bg-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
  overflow: hidden;
}
.share-card-preview .scp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.share-card-preview .scp-title { font-size: 14.5px; font-weight: 600; }
.share-card-preview .scp-desc { font-size: 12.5px; color: var(--c-text-2); margin-top: 3px; }

.plain-link { display: block; text-align: center; color: var(--c-link); font-size: 15px; padding: 18px 0 6px; }

/* ---------- 我的报价 ---------- */
.search-box { padding: 8px 20px 4px; }
.search-box input {
  width: 100%; background: var(--c-bg-soft); border: none; border-radius: 10px;
  padding: 11px 14px 11px 38px; font-size: 15px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a6a6ab' viewBox='0 0 16 16'%3E%3Cpath d='M11.7 10.3h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5-5-5zM6.5 11a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.date-group-title { padding: 18px 20px 8px; font-size: 13px; color: var(--c-text-3); font-weight: 500; }
.quote-list { padding: 0 20px; }
.quote-row {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-card);
}
.quote-row .qr-top { display: flex; justify-content: space-between; align-items: baseline; }
.quote-row .qr-customer { font-size: 16px; font-weight: 600; }
.quote-row .qr-status { font-size: 12px; border-radius: 5px; padding: 2px 8px; flex-shrink: 0; }
.quote-row .qr-status.st-draft { background: var(--c-bg-soft); color: var(--c-text-2); }
.quote-row .qr-status.st-unlocked { background: #e8f0fe; color: #3367d6; }
.quote-row .qr-status.st-sent { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.quote-row .qr-status.st-revoked { background: var(--c-warn-soft); color: var(--c-warn); }
.quote-row .qr-item { font-size: 13.5px; color: var(--c-text-2); margin-top: 4px; }
.quote-row .qr-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.quote-row .qr-amount { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-row .qr-time { font-size: 12px; color: var(--c-text-3); }

.empty-state { text-align: center; padding: 90px 40px 0; }
.empty-state .es-title { font-size: 18px; font-weight: 600; }
.empty-state .es-desc { margin-top: 10px; color: var(--c-text-2); font-size: 14.5px; }
.empty-state .btn { margin-top: 26px; }

.fab {
  position: fixed; right: 20px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--c-primary); color: #fff; border-radius: 30px;
  padding: 13px 22px; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 122, 255, 0.24);
  display: flex; align-items: center; gap: 4px;
}
.fab::before { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }
@media (min-width: 520px) { .fab { right: calc(50% - 220px); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 120px; z-index: 99;
  background: rgba(0, 0, 0, 0.75); color: #fff;
  padding: 11px 20px; border-radius: 10px; font-size: 14.5px;
  max-width: 80%; text-align: center; line-height: 1.5;
  animation: toastIn 0.18s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.page-error { text-align: center; padding: 100px 30px 0; }
.page-error .pe-title { font-size: 18px; font-weight: 600; }
.page-error .pe-desc { margin-top: 10px; color: var(--c-text-2); font-size: 14.5px; line-height: 1.7; }
.page-error .btn { margin-top: 24px; }
.page-error .btn + .btn { margin-top: 10px; }

.demo-banner {
  background: var(--c-warn-soft); color: #8a5b00; font-size: 13px;
  text-align: center; padding: 8px; border-radius: 8px; margin: 0 16px 12px;
}
