:root {
  --brand:#c0392b; --brand-dark:#8e1f16; --brand-light:#fdf0ef;
  --dark:#2c3e50; --bg:#f4f5f7; --card:#fff;
  --border:#e5e7eb; --muted:#8a8f98;
  --ok:#27ae60; --warn:#e67e22; --err:#c0392b;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"PingFang SC","Microsoft YaHei",-apple-system,sans-serif; background:var(--bg); color:var(--dark); font-size:14px; }

/* ===== 登录 ===== */
.login-wrap { display:flex; justify-content:center; align-items:center; min-height:100vh;
  background:linear-gradient(135deg,#c0392b 0%,#8e1f16 60%,#6b140e 100%); }
.login-card { background:#fff; padding:44px 40px; border-radius:16px; width:380px; text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.35); }
.logo-mark { font-size:44px; }
.login-card h1 { color:var(--brand); font-size:28px; letter-spacing:6px; margin:8px 0 4px; }
.login-card .sub { color:var(--muted); margin:0 0 26px; font-size:13px; }
.login-card input { width:100%; padding:13px 14px; margin:9px 0; border:1px solid var(--border);
  border-radius:10px; font-size:15px; outline:none; transition:border .2s; }
.login-card input:focus { border-color:var(--brand); }
.login-btns { display:flex; gap:10px; margin-top:16px; }
.login-btns button { flex:1; padding:13px; border:none; border-radius:10px; cursor:pointer; font-size:15px; font-weight:600; }
.msg { color:var(--err); margin-top:12px; min-height:18px; font-size:13px; }

/* ===== 顶栏 ===== */
.topbar { background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center;
  padding:0 24px; height:58px; position:sticky; top:0; z-index:50; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.brand { color:var(--brand); font-weight:800; font-size:18px; margin-right:32px; white-space:nowrap; }
.nav-tabs { display:flex; gap:2px; flex:1; overflow-x:auto; }
.tab { padding:8px 16px; border:none; background:none; cursor:pointer; font-size:14px; color:#555;
  border-radius:8px; white-space:nowrap; transition:all .15s; }
.tab:hover { background:#f5f5f5; }
.tab.active { background:var(--brand); color:#fff; font-weight:600; }
.user-info { display:flex; align-items:center; gap:12px; }
.user-info span { font-size:13px; color:var(--muted); }

main { max-width:1160px; margin:24px auto; padding:0 20px; }
.tab-content { display:none; animation:fadeIn .2s; }
.tab-content.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1} }

/* ===== 概览 ===== */
.hero-banner { background:linear-gradient(120deg,#c0392b,#e74c3c); color:#fff; border-radius:16px;
  padding:32px; margin-bottom:24px; }
.hero-banner h2 { font-size:22px; margin-bottom:6px; color:#fff; }
.hero-banner p { opacity:.9; margin-bottom:18px; }
.hero-actions { display:flex; gap:12px; }
.btn-lg { padding:13px 26px; font-size:15px; border-radius:10px; }
.btn-light { background:rgba(255,255,255,.18); color:#fff; border:1px solid rgba(255,255,255,.4);
  padding:13px 26px; font-size:15px; border-radius:10px; cursor:pointer; }
.btn-light:hover { background:rgba(255,255,255,.28); }

.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-bottom:24px; }
.stat-card { background:var(--card); border-radius:14px; padding:20px; box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:transform .15s; }
.stat-card:hover { transform:translateY(-2px); }
.stat-card .num { font-size:30px; font-weight:800; color:var(--brand); }
.stat-card .lbl { color:var(--muted); font-size:13px; margin-top:4px; }
.section-title h3 { margin:20px 0 12px; font-size:16px; }

/* ===== 通用按钮 ===== */
.btn-primary { background:var(--brand); color:#fff; border:none; padding:11px 22px; border-radius:9px;
  cursor:pointer; font-size:14px; font-weight:600; transition:filter .15s; }
.btn-primary:hover { filter:brightness(1.1); }
.btn-primary:disabled { opacity:.5; cursor:not-allowed; }
.btn-primary-sm { background:var(--brand); color:#fff; border:none; padding:8px 16px; border-radius:8px;
  cursor:pointer; font-size:13px; font-weight:600; }
.btn-primary-sm:hover { filter:brightness(1.1); }
.btn-ghost { background:#f0f0f0; border:none; padding:11px 22px; border-radius:9px; cursor:pointer; font-size:14px; }
.btn-ghost:hover { background:#e5e5e5; }
.btn-ghost-sm { background:#f0f0f0; border:none; padding:6px 12px; border-radius:7px; cursor:pointer; font-size:12px; }
.btn-outline-sm { background:#fff; border:1px solid var(--border); padding:8px 16px; border-radius:8px;
  cursor:pointer; font-size:13px; color:#555; }
.btn-outline-sm:hover { border-color:var(--brand); color:var(--brand); }
.btn-danger-sm { background:#fff0f0; color:var(--err); border:none; padding:6px 12px; border-radius:7px; cursor:pointer; font-size:12px; }
.btn-danger-sm:hover { background:#ffe0e0; }
.full { width:100%; }

/* ===== 列表卡片 ===== */
.page-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.page-head h2 { font-size:19px; }
.item-card { background:var(--card); border-radius:12px; padding:14px 18px; margin-bottom:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.04); display:flex; justify-content:space-between; align-items:center; gap:12px; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.badge { background:var(--brand-light); color:var(--brand); font-size:11px; padding:3px 10px; border-radius:20px; font-weight:600; }
.badge-ok { background:#e8f8ef; color:var(--ok); font-size:11px; padding:3px 10px; border-radius:20px; }

/* ===== 需求卡 ===== */
.req-card { background:var(--card); border-radius:12px; padding:16px 18px; margin-bottom:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.04); display:flex; justify-content:space-between; align-items:center; gap:16px; }
.req-title { font-weight:600; font-size:15px; margin-bottom:6px; }
.req-meta { display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:12px; }
.req-actions { display:flex; gap:8px; flex-shrink:0; }
.quality-tag { background:#fff3e0; color:#e67e22; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:600; }
.status-draft { color:var(--muted); } .status-quoted { color:var(--ok); } .status-deal { color:var(--brand); } .status-lost { color:var(--err); }

/* ===== 弹窗/表单 ===== */
.modal { position:fixed; inset:0; background:rgba(20,20,30,.55); display:flex; justify-content:center;
  align-items:center; z-index:200; backdrop-filter:blur(2px); animation:fadeIn .15s; }
.modal-card { background:#fff; border-radius:16px; padding:28px; width:520px; max-width:94vw;
  max-height:88vh; overflow-y:auto; box-shadow:0 24px 80px rgba(0,0,0,.3); }
.modal-card.wide { width:680px; }
.modal-card h3 { margin-bottom:18px; font-size:17px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-item.full { grid-column:1/-1; }
.form-item label { display:block; font-size:12px; color:var(--muted); margin-bottom:5px; font-weight:600; }
.form-item input, .form-item select, .form-item textarea { width:100%; padding:11px 12px;
  border:1px solid var(--border); border-radius:9px; font-size:14px; outline:none; transition:border .2s; background:#fafbfc; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color:var(--brand); background:#fff; }
.form-item textarea { resize:vertical; }
.modal-actions { display:flex; gap:10px; margin-top:20px; justify-content:flex-end; flex-wrap:wrap; }
.hidden { display:none !important; }

/* ===== chips ===== */
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { padding:6px 14px; border:1px solid var(--border); border-radius:20px; cursor:pointer;
  font-size:13px; user-select:none; transition:all .15s; background:#fff; }
.chip:hover { border-color:var(--brand); }
.chip.on { background:var(--brand); color:#fff; border-color:var(--brand); }

/* ===== 解析/AI 提示 ===== */
.parse-ok { background:#e8f8ef; color:var(--ok); padding:10px 14px; border-radius:9px; margin-top:12px; font-size:13px; }
.err-hint { background:#fdf0ef; color:var(--err); padding:12px 16px; border-radius:9px; margin-top:12px; font-size:13px; }
.loading-hint { color:var(--muted); text-align:center; padding:30px; font-size:14px; }
.empty-state { text-align:center; padding:60px 20px; color:var(--muted); }
.empty-state .empty-emoji { font-size:48px; margin-bottom:12px; }
.empty-state p { margin-bottom:16px; }
.empty-hint { color:var(--muted); text-align:center; padding:40px 20px; }

/* ===== 商品卡 ===== */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.prod-card { background:var(--card); border-radius:14px; padding:18px; box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:transform .15s; }
.prod-card:hover { transform:translateY(-2px); }
.prod-head { display:flex; align-items:center; gap:8px; justify-content:space-between; margin-bottom:6px; }
.prod-card h4 { font-size:15px; }
.price-row { display:flex; justify-content:space-between; align-items:baseline; margin:10px 0 12px; }
.prod-price { color:var(--brand); font-size:19px; font-weight:800; }
.prod-vcount { color:var(--muted); font-size:12px; }
.tag-warn { background:#fff3e0; color:#e67e22; font-size:10px; padding:2px 8px; border-radius:10px; }

/* ===== 供应商卡 ===== */
.supplier-card { background:var(--card); border-radius:12px; padding:14px 16px; margin-bottom:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.04); display:flex; align-items:center; gap:14px; }
.sup-avatar { width:42px; height:42px; border-radius:12px; background:var(--brand-light); color:var(--brand);
  display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; flex-shrink:0; }
.sup-body { flex:1; min-width:0; }
.sup-name { font-weight:600; margin-bottom:3px; }
.sup-tags { margin-top:5px; font-size:11px; color:var(--muted); }

/* ===== 报价单卡 ===== */
.quote-card { background:var(--card); border-radius:14px; padding:18px; margin-bottom:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.05); }
.quote-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.quote-title { font-weight:700; font-size:16px; }
.quote-meta { color:var(--muted); font-size:12px; margin-bottom:8px; }
.quote-total { font-size:22px; font-weight:800; color:var(--brand); margin-bottom:12px; }
.quote-actions { display:flex; gap:8px; }

/* ===== AI 方案展示 ===== */
.plan-modal-card { width:820px; max-width:95vw; }
.plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:8px; }
.plan-box { background:#fff; border:2px solid var(--border); border-radius:14px; padding:18px;
  transition:all .15s; display:flex; flex-direction:column; gap:6px; }
.plan-box:hover { border-color:var(--brand); transform:translateY(-2px); box-shadow:0 8px 24px rgba(192,57,43,.1); }
.plan-box.conflict { border-color:#e67e22; }
.plan-box.empty { border-style:dashed; opacity:.6; }
.plan-box .tier { font-weight:800; font-size:15px; color:var(--brand); }
.plan-product { font-weight:700; font-size:15px; }
.plan-spec { color:var(--muted); font-size:12px; }
.plan-supplier { font-size:12px; color:#555; }
.plan-price-row { display:flex; justify-content:space-between; background:#fafbfc; border-radius:10px;
  padding:10px 12px; margin:4px 0; }
.price-label { font-size:11px; color:var(--muted); }
.plan-price { font-size:17px; font-weight:800; color:var(--brand); }
.plan-cost { font-size:14px; font-weight:600; }
.plan-margin { font-size:14px; font-weight:700; }
.plan-meta { font-size:12px; color:var(--muted); }
.plan-box .full { margin-top:6px; }
.warn-text { color:var(--warn); } .ok-text { color:var(--ok); }
.warn-line { background:#fdf6ec; color:var(--warn); padding:9px 14px; border-radius:9px;
  margin-top:8px; font-size:13px; }
.sub-text { color:var(--muted); font-size:13px; margin-bottom:14px; }

/* ===== 报价确认 ===== */
.confirm-summary { background:var(--brand-light); border-radius:10px; padding:14px 16px; margin-bottom:16px; }
.live-price { background:#fafbfc; border-radius:10px; padding:12px 16px; margin-top:14px; }
.live-row { display:flex; justify-content:space-between; padding:4px 0; font-size:14px; }
.live-row.total { border-top:1px dashed var(--border); margin-top:6px; padding-top:8px; font-size:16px; }
.live-row.total b { color:var(--brand); font-size:20px; }

/* ===== 详情/比价 ===== */
.compare-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f0f0f0; }
.compare-rank { font-size:20px; width:32px; text-align:center; }
.compare-body { flex:1; }
.compare-price { font-weight:800; color:var(--brand); font-size:16px; }
.detail-line { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f0f0f0; }
.detail-line .right { text-align:right; font-weight:600; }

/* ===== 上传 ===== */
.upload-result { margin-top:14px; }
#upload-file { padding:10px; border:2px dashed var(--border); border-radius:10px; width:100%; margin:8px 0 4px; }

/* ===== toast ===== */
#toast { position:fixed; bottom:30px; left:50%; transform:translateX(-50%) translateY(20px);
  background:rgba(20,20,30,.92); color:#fff; padding:12px 24px; border-radius:10px; font-size:14px;
  opacity:0; transition:all .3s; z-index:999; pointer-events:none; max-width:80vw; }
#toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width:768px) {
  .plan-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .topbar { padding:0 12px; }
  .brand { margin-right:12px; font-size:15px; }
}

/* ===== 预警 ===== */
.bell-btn { background:none; border:none; font-size:18px; cursor:pointer; position:relative; padding:6px; }
.alert-badge { position:absolute; top:0; right:0; background:var(--err); color:#fff; font-size:10px;
  min-width:16px; height:16px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  padding:0 4px; font-weight:700; }
.alert-badge.hidden { display:none; }
.alert-item { border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:10px; }
.alert-item.new { border-color:var(--brand); background:#fffaf9; }
.alert-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.alert-body { margin-bottom:6px; }
.badge-up { background:#fdecea; color:var(--err); font-size:11px; padding:2px 8px; border-radius:12px; font-weight:700; }
.badge-down { background:#e8f8ef; color:var(--ok); font-size:11px; padding:2px 8px; border-radius:12px; font-weight:700; }

/* ===== 客户 ===== */
.customer-card { background:var(--card); border-radius:12px; padding:14px 16px; margin-bottom:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.04); display:flex; justify-content:space-between; align-items:center; gap:12px;
  border-left:4px solid transparent; }
.customer-card.need-follow { border-left-color:var(--brand); }
.customer-card.cust-arch { opacity:.82; background:#fafafa; }
.customer-card .cust-chip { margin-left:6px; }
.customer-card.cust-arch .cust-name { color:#777; }
.cust-name { font-weight:600; font-size:15px; margin-bottom:4px; }
.cust-tags { margin:6px 0; display:flex; gap:6px; flex-wrap:wrap; }
.chip-sm { background:#f0f0f0; font-size:11px; padding:2px 8px; border-radius:10px; color:#555; }
.follow-badge { background:var(--brand); color:#fff; margin-left:6px; }
.cust-actions { display:flex; gap:8px; flex-shrink:0; }
.btn-ok-sm { background:#e8f8ef; color:var(--ok); border:none; padding:7px 12px; border-radius:8px; cursor:pointer; font-size:12px; font-weight:600; }
.btn-ok-sm:hover { filter:brightness(.95); }
.plan-chip { background:#fff3e0; color:#e67e22; font-size:11px; padding:3px 10px; border-radius:12px; font-weight:600; }
.cust-chip { background:#eef2ff; color:#4f46e5; font-size:11px; font-weight:600; padding:2px 10px; border-radius:12px; margin-left:8px; vertical-align:middle; }
.impact-row { border:1px solid var(--border); border-radius:10px; padding:10px 14px; margin-bottom:8px; }
/* ===== 商城 ===== */
.catalog-banner { background:linear-gradient(120deg,#7b1fa2,#9c27b0); border-radius:14px;
  padding:22px 24px; margin-bottom:16px; color:#fff; }
.catalog-banner input { margin-top:14px; padding:12px 16px; border:none; border-radius:10px; width:100%; font-size:14px; outline:none; }
.cat-filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.cat-chip { background:#fff; border:1px solid var(--border); }
.cat-chip:hover { border-color:#7b1fa2; color:#7b1fa2; }
.catalog-card { background:#fff; border-radius:14px; padding:16px; box-shadow:0 2px 10px rgba(0,0,0,.05); border-top:3px solid #9c27b0; }
.cat-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:6px; }
.cat-head h4 { font-size:15px; }
.cat-tag { background:#f3e5f5; color:#7b1fa2; font-size:10px; padding:2px 8px; border-radius:10px; font-weight:700; white-space:nowrap; }
.legal-links { font-size:11px; color:#aaa; margin-top:14px; }
.legal-links a { color:#888; text-decoration:underline; }
.upload-hint { font-size:12px; color:var(--muted); margin:8px 0; }
.result-ok { background:#e8f8ef; color:var(--ok); padding:8px 12px; border-radius:8px; margin:4px 0; font-size:13px; }
.result-err { background:#fdf0ef; color:var(--err); padding:8px 12px; border-radius:8px; margin:4px 0; font-size:13px; }

/* ===== 新模块（09-06：合同/履约/提醒/工具） ===== */
.subnav { display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; }
.subnav-chip { padding:8px 18px; border:1px solid var(--border); background:#fff; border-radius:10px;
  cursor:pointer; font-size:13px; font-weight:600; color:#555; transition:all .15s; }
.subnav-chip:hover { border-color:var(--brand); color:var(--brand); }
.subnav-chip.on { background:var(--brand); color:#fff; border-color:var(--brand); }
.kv-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:16px; }
.kv-card { background:#fff; border-radius:12px; padding:16px; box-shadow:0 1px 6px rgba(0,0,0,.04); }
.kv-card .n { font-size:24px; font-weight:800; }
.kv-card .l { color:var(--muted); font-size:12px; margin-top:2px; }
.kv-card.acc { color:var(--brand); } .kv-card.ow { color:var(--err); } .kv-card.ok { color:var(--ok); }
.biz-card { background:#fff; border-radius:13px; padding:15px 18px; margin-bottom:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.04); border-left:4px solid transparent; }
.biz-card.ow { border-left-color:var(--err); } .biz-card.soon { border-left-color:var(--warn); }
.biz-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.biz-title { font-weight:700; font-size:15px; }
.biz-meta { color:var(--muted); font-size:12px; display:flex; gap:10px; flex-wrap:wrap; margin:4px 0; }
.biz-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.stamp { font-size:11px; font-weight:700; padding:2px 8px; border-radius:8px; white-space:nowrap; }
.stamp-red { background:#fdecea; color:var(--err); }
.stamp-orange { background:#fff3e0; color:var(--warn); }
.stamp-green { background:#e8f8ef; color:var(--ok); }
.stamp-blue { background:#e7f0fd; color:#1565c0; }
.stamp-purple { background:#f3e8fd; color:#7b1fa2; }
.stamp-gray { background:#f0f0f0; color:#777; }
.tbl { width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,.04); }
.tbl th { background:#fafbfc; color:var(--muted); font-size:12px; text-align:left; padding:10px 12px; border-bottom:1px solid var(--border); }
.tbl td { padding:10px 12px; border-bottom:1px solid #f4f4f4; font-size:13px; vertical-align:top; }
.tbl tr:last-child td { border-bottom:none; }
.money-b { color:var(--brand); font-weight:800; }
.money-ow { color:var(--err); font-weight:700; }
.progress { height:6px; background:#f0f0f0; border-radius:4px; overflow:hidden; margin-top:6px; min-width:110px; }
.progress > i { display:block; height:100%; background:var(--ok); border-radius:4px; }
.note-green { background:#e8f8ef; color:var(--ok); padding:8px 12px; border-radius:8px; font-size:13px; margin-top:8px; }
.chip-purple { background:#eef2ff; color:#4f46e5; font-size:11px; padding:3px 10px; border-radius:12px; font-weight:600; }
.chip-plain { background:#f0f0f0; color:#555; font-size:11px; padding:3px 10px; border-radius:12px; }
.rem-row { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; background:#fff;
  border-radius:12px; padding:13px 16px; margin-bottom:8px; box-shadow:0 1px 5px rgba(0,0,0,.04); }
.rem-row .t { font-weight:600; }
.rem-row .d { color:var(--muted); font-size:12px; margin-top:3px; }
.ov-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:16px; }
.tool-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.tag-ok { background:#e8f8ef; color:var(--ok,#2e9e5b); font-size:10px; padding:2px 8px; border-radius:10px; }
.btn-warn-sm { background:#fff3e0; color:#e67e22; border:none; padding:7px 12px; border-radius:8px; cursor:pointer; font-size:12px; font-weight:600; }
.btn-warn-sm:hover { filter:brightness(.96); }
.sup-filter { margin:10px 2px 2px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:#fff; font-size:13px; color:#333; }
.sup-black { opacity:.82; background:#fafafa; border-color:#eee; }
.sup-black .sup-avatar { background:#f0f0f0; color:#888; }
.sup-card .sup-name .tag-warn { margin-left:6px; vertical-align:middle; }
.tool-card { background:#fff; border-radius:13px; padding:16px; box-shadow:0 1px 6px rgba(0,0,0,.04); }
.ent-logo { width:40px; height:40px; border-radius:10px; background:var(--brand-light); color:var(--brand);
  display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; flex-shrink:0; }
@media (max-width:768px){ .kv-grid,.ov-strip{grid-template-columns:1fr 1fr;} }

/* ===== 📇 建档中心 M2（2026-09-07） ===== */
.arch-kind-chips { display:flex; gap:10px; margin-bottom:16px; }
.arch-kind { padding:9px 22px; border:1px solid var(--border); border-radius:22px; background:#fff;
  cursor:pointer; font-size:14px; font-weight:600; color:#555; transition:all .15s; }
.arch-kind:hover { border-color:var(--brand); }
.arch-kind.on { background:var(--brand); color:#fff; border-color:var(--brand); box-shadow:0 2px 8px rgba(192,57,43,.25); }
.arch-path-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin-bottom:6px; }
.arch-path-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:18px 16px;
  text-align:left; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.04); transition:all .15s; display:flex; flex-direction:column; gap:6px; }
.arch-path-card:hover { border-color:var(--brand); transform:translateY(-2px); box-shadow:0 6px 16px rgba(192,57,43,.12); }
.arch-path-card b { font-size:15px; color:var(--dark); }
.arch-path-card span { font-size:12px; color:var(--muted); line-height:1.5; }
.arch-link-wrap { margin-top:22px; border:1px dashed #e0b3ad; background:linear-gradient(120deg,#fdf7f5,#fff);
  border-radius:14px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.arch-link-title { font-size:13px; color:#7a4a44; line-height:1.6; flex:1; min-width:220px; }
.arch-ws-actions { display:flex; gap:10px; margin-top:16px; justify-content:flex-end; flex-wrap:wrap; }
.arch-footnote { margin-top:10px; opacity:.85; }
.confirm-banner { background:#fff8e1; border:1px solid #f2e0a0; color:#8a6d1a; padding:10px 14px; border-radius:10px;
  font-size:13px; font-weight:600; margin-bottom:12px; }
.dup-bar { padding:10px 14px; border-radius:10px; font-size:13px; margin-bottom:8px; line-height:1.55; }
.dup-bar-exact { background:#fdf0ef; border:1px solid #f0c4c0; color:var(--err); }
.dup-bar-black { background:#fbe9e7; border:1.5px solid var(--brand); color:var(--brand); font-weight:600; }
.dup-bar-fuzzy { background:#fdf6ec; border:1px solid #f0d5ab; color:var(--warn); }
.dup-bar-link { background:#fff8e1; border:1px solid #f2e0a0; color:#8a6d1a; }
.arch-form { margin-top:4px; }
.arch-form input.phone-bad, input.phone-bad { border-color:#e6b93c; background:#fffbe6; }
.field-note { color:#b26a00; font-size:12px; margin-top:4px; line-height:1.5; }
.btn-danger { background:var(--err); color:#fff; border:none; padding:11px 22px; border-radius:9px;
  cursor:pointer; font-size:14px; font-weight:600; }
.btn-danger:hover { filter:brightness(1.1); }
.batch-stats { font-size:13px; color:var(--muted); margin:2px 0 10px; }
.tbl-scroll { max-height:420px; overflow:auto; border:1px solid var(--border); border-radius:10px; }
.batch-table { width:100%; border-collapse:collapse; background:#fff; font-size:13px; }
.batch-table th { background:#fafafa; color:var(--muted); font-size:12px; text-align:left; padding:9px 10px;
  position:sticky; top:0; border-bottom:1px solid var(--border); z-index:1; }
.batch-table td { padding:8px 10px; border-bottom:1px solid #f2f2f2; vertical-align:top; }
.batch-table tr.row-dup-exact td { background:#fdf0ef; }
.batch-table tr.row-dup-fuzzy td { background:#fdf6ec; }
.batch-table tr.row-skipped td { opacity:.45; }
.batch-table td.phone-bad { background:#fffbe6; }
.batch-table td.bx-no { white-space:nowrap; }
.batch-table td.bx-tip { min-width:150px; color:var(--err); font-size:12px; }
.batch-table tr.row-dup-fuzzy td.bx-tip { color:var(--warn); }

/* ===== ⑤ 在线分享 / 客户反馈 ===== */
.intent-badge { background:#fff4e5; color:#b26a00; border:1px solid #f0c36d; border-radius:12px;
  padding:1px 8px; font-size:11.5px; margin-left:6px; cursor:pointer; white-space:nowrap; }
.share-on-chip { background:#e7f1fb; color:#1565c0; border-radius:10px; padding:0 7px;
  font-size:11px; margin-left:8px; }
.exp-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.exp-chip { border:1px solid var(--border); background:#fff; color:#555; padding:6px 14px;
  border-radius:16px; font-size:13px; cursor:pointer; }
.exp-chip.on { background:#1565c0; border-color:#1565c0; color:#fff; }
.share-url-box { background:#f6f8fa; border:1px dashed #b6c2d0; border-radius:10px;
  padding:10px 12px; font-size:12.5px; color:#2c3e50; word-break:break-all; user-select:all; }
.fb-row { border:1px solid var(--border); border-radius:12px; padding:10px 12px; margin-bottom:10px; }
.fb-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.fb-badge { border-radius:12px; padding:1px 10px; font-size:12px; font-weight:600; white-space:nowrap; }
.fb-good { background:#e8f5e9; color:#2e7d32; }
.fb-bad { background:#fdf0ef; color:var(--err); }
.fb-wait { background:#f3f4f6; color:#6b7280; }
.fb-deal { background:#e8f5e9; color:#1b5e20; border:1px solid #2e7d32; }
.fb-row-deal { border-color:#2e7d32; background:#f4fbf4; }
.fb-note { background:#faf9f7; border-radius:8px; padding:6px 10px; font-size:12.5px; color:#555;
  margin-top:6px; white-space:pre-line; }

/* ===== 📥 文件导入中心 M2 工作台（2026-09-07） ===== */
.imp-steps { display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.imp-step { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); }
.imp-step .n { width:22px; height:22px; border-radius:50%; background:#e9eaee; color:#777; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; }
.imp-step.on { color:var(--dark); font-weight:600; }
.imp-step.on .n { background:var(--brand); color:#fff; }
.imp-step.done .n { background:#2e9e5b; color:#fff; }
.imp-step-arrow { color:#cfd4dd; font-weight:700; }
.imp-dropzone { border:2px dashed #cfd6e4; background:#fafbfd; border-radius:14px; padding:36px 22px; text-align:center;
  color:var(--muted); cursor:pointer; transition:all .15s; display:flex; flex-direction:column; gap:6px; }
.imp-dropzone:hover { border-color:var(--brand); }
.imp-dropzone.drag { border-color:var(--brand); background:#fdf3f1; }
.imp-dropzone b { font-size:17px; color:var(--dark); }
.imp-dropzone span { font-size:13px; line-height:1.6; }
.imp-supplier-card { border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:10px;
  background:#fff; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; box-shadow:0 1px 4px rgba(0,0,0,.03); }
.imp-supplier-card.exact { border-color:#bcd9b5; background:#f2faf0; }
.imp-supplier-card.fuzzy { border-color:#f0d5ab; background:#fdf8ef; }
.imp-supplier-card.black { border-color:#f0c4c0; background:#fdf6f5; }
.imp-supplier-card .muted { font-size:12px; margin-top:3px; }
.imp-tag { font-size:11px; padding:2px 9px; border-radius:11px; margin-left:6px; white-space:nowrap; font-weight:600; }
.imp-tag.exact { background:#d7ecd0; color:#2e7d32; }
.imp-tag.fuzzy { background:#fbe3bd; color:#b26a00; }
.imp-tag.black { background:#f7c9c5; color:#b3261e; }
.imp-sel-box { border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-top:4px; background:#fff; }
.imp-sel-title { font-size:13px; font-weight:600; color:#444; margin-bottom:8px; }
.imp-sel-modes { display:flex; gap:18px; margin-bottom:8px; font-size:13px; }
.imp-sel-modes label { cursor:pointer; }
.imp-warn-red { background:#fbe9e7; border:1px solid var(--brand); color:var(--brand); padding:11px 15px; border-radius:10px;
  font-size:13.5px; margin-bottom:10px; line-height:1.7; }
.imp-form .form-item { margin-bottom:2px; }
.imp-edit-input { width:100%; padding:4px 6px; border:1px solid var(--border); border-radius:6px; font-size:12.5px; box-sizing:border-box; background:#fff; }
.imp-edit-input:focus { outline:none; border-color:var(--brand); }
.imp-thumbs { display:flex; gap:4px; flex-wrap:wrap; max-width:220px; }
.imp-thumb { position:relative; }
.imp-thumb img { width:44px; height:44px; object-fit:cover; border-radius:6px; border:1px solid var(--border); display:block; }
.imp-thumb.main img { border:2px solid var(--brand); }
.imp-main-badge { position:absolute; left:0; bottom:0; background:var(--brand); color:#fff; font-size:9px; padding:0 4px; border-radius:0 5px 0 5px; }
.imp-row-ok td { background:#f4faf5; }
.imp-row-noprice td { background:#fdf0ef; }
.imp-row-noimg td { background:#fff9ea; }
.imp-skip-row td { opacity:.5; background:#fafafa; }
.batch-table tr.imp-row-ok td, .batch-table tr.imp-row-noprice td, .batch-table tr.imp-row-noimg td { background-clip:padding-box; }
.batch-table .imp-row-ok td:first-child, .batch-table .imp-row-noprice td:first-child, .batch-table .imp-row-noimg td:first-child { border-left:3px solid transparent; }
.batch-table tr.imp-row-ok td:first-child { border-left-color:#2e9e5b; }
.batch-table tr.imp-row-noprice td:first-child { border-left-color:var(--err); }
.batch-table tr.imp-row-noimg td:first-child { border-left-color:#e6a23c; }
.imp-pool-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.imp-pool-head h3 { margin:0; }
.imp-pool-pending { border-color:#f0a8a2 !important; background:#fef6f5; }

/* ===== L9 电子名片 + 方案秀演示模式（开发队列⑫） ===== */
.mycard-face { display:flex; gap:16px; align-items:center; background:linear-gradient(120deg,#fff7f5,#fff);
  border:1px solid #f0d9d2; border-radius:16px; padding:16px; margin-bottom:14px; }
.mycard-logo { width:64px; height:64px; border-radius:14px; flex:none; overflow:hidden; display:flex;
  align-items:center; justify-content:center; background:linear-gradient(120deg,#c0392b,#e74c3c);
  color:#fff; font-size:28px; font-weight:800; }
.mycard-logo img { width:100%; height:100%; object-fit:cover; }
.mycard-co { font-weight:800; font-size:16px; color:#2c3e50; line-height:1.4; }
.mycard-line { font-size:13px; color:#666; margin-top:3px; }
.qr-box { width:150px; height:150px; flex:none; border:1px solid var(--border); border-radius:12px;
  padding:6px; background:#fff; }
.qr-box img { width:100%; height:100%; display:block; }
.demo-overlay { position:fixed; inset:0; z-index:9999; background:#f4f5f7; overflow-y:auto;
  -webkit-tap-highlight-color:transparent; }
.demo-top { position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 14px; background:#2c3e50; color:#fff; }
.demo-top .t { font-size:13px; letter-spacing:.5px; }
.demo-top .t b { color:#ffd8a8; }
.demo-body { max-width:640px; margin:0 auto; padding:14px 14px 80px; }
.demo-head { background:#fff; border-radius:14px; padding:14px; box-shadow:0 2px 10px rgba(0,0,0,.05); margin-bottom:12px; }
.demo-co { font-size:14px; color:#c0392b; font-weight:700; }
.demo-title { font-size:19px; font-weight:800; color:#2c3e50; margin-top:4px; line-height:1.4; }
.demo-valid { font-size:12.5px; color:#8a8f98; margin-top:6px; }
.demo-total { display:flex; justify-content:space-between; align-items:flex-end; margin-top:8px; }
.demo-total .lb { color:#8a8f98; font-size:12.5px; }
.demo-total .num { color:#c0392b; font-size:26px; font-weight:800; }
.demo-note { font-size:12px; color:#8a8f98; margin-top:8px; line-height:1.7; white-space:pre-wrap; }
.demo-line { background:#fff; border-radius:14px; padding:12px; margin-bottom:12px;
  box-shadow:0 1px 6px rgba(0,0,0,.04); display:flex; gap:12px; }
.demo-line .li { width:84px; height:84px; border-radius:10px; background:#f0f1f3; flex:none; overflow:hidden;
  display:flex; align-items:center; justify-content:center; border:1px solid #eee; }
.demo-line .li img { max-width:100%; max-height:100%; object-fit:contain; }
.demo-line .lm { flex:1; min-width:0; }
.demo-ln { font-weight:700; font-size:15px; line-height:1.4; }
.demo-ls { color:#8a8f98; font-size:12.5px; margin-top:3px; line-height:1.5; word-break:break-all; }
.demo-lr { margin-top:8px; font-size:13.5px; color:#333; }
.demo-lr b { color:#2c3e50; }
.demo-lr .lt { color:#8a8f98; font-size:12px; }
.demo-foot { text-align:center; color:#b9bec6; font-size:12px; margin-top:18px; }
