/* ============================================================
   客资与客户关系管理系统 · 样式
   ============================================================ */
:root {
  --brand: #1a5fd0;
  --brand-d: #123a7a;
  --brand-l: #eaf1fd;
  --bg: #f2f5f9;
  --panel: #ffffff;
  --line: #e2e8f1;
  --line-d: #cfd8e5;
  --text: #1b2028;
  --text-2: #5b6470;
  --text-3: #8b95a4;
  --green: #0f766e;
  --green-bg: #e6f5f1;
  --orange: #b45309;
  --orange-bg: #fdf3e2;
  --red: #c0392b;
  --red-bg: #fdecea;
  --purple: #6d28d9;
  --purple-bg: #f1ebfd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 6px 18px -8px rgba(16, 30, 54, .12);
  --mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; }
button { font-family: inherit; }
.loading { padding: 40px; text-align: center; color: var(--text-3); }

/* ---------------------------------------------------------- 登录 */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
}
.login-brand {
  position: relative;
  padding: 64px 56px;
  color: #fff;
  background:
    radial-gradient(900px 460px at 88% 8%, rgba(96, 165, 250, .38), transparent 62%),
    radial-gradient(700px 520px at 0% 100%, rgba(13, 148, 136, .3), transparent 58%),
    linear-gradient(160deg, #123a7a 0%, #17459a 52%, #1a5fd0 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 30%, #000 12%, transparent 72%);
  pointer-events: none;
}
.brand-mark { margin-bottom: 30px; }
.login-brand h1 { font-size: 30px; letter-spacing: .3px; line-height: 1.35; }
.login-brand .sub { margin: 16px 0 0; font-size: 14.5px; line-height: 1.85; color: rgba(255,255,255,.82); max-width: 420px; }
.brand-points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.brand-points li {
  position: relative; padding-left: 22px; font-size: 13.5px; color: rgba(255,255,255,.9);
  line-height: 1.6;
}
.brand-points li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-radius: 2px; background: #7dd3c0;
}
.brand-points b { color: #fff; font-weight: 700; }
.brand-foot { margin-top: auto; padding-top: 40px; font-size: 12.5px; color: rgba(255,255,255,.6); }

.login-panel { padding: 56px 48px; overflow-y: auto; }
.login-head h2 { font-size: 22px; }
.login-head p { margin: 8px 0 20px; color: var(--text-2); font-size: 13.5px; }
/* 登录表单：账号 + 密码 + 登录按钮。窄屏时占满整行，手指好点 */
.login-form { margin-bottom: 24px; }
.login-form .field { margin-bottom: 12px; }
.login-form .btn.lg { width: 100%; min-height: 44px; font-size: 15px; }
.login-err {
  min-height: 20px; margin-top: 8px; font-size: 13px; color: #c0392b; line-height: 1.5;
}
.login-err:empty { display: none; }
.acc-head {
  font-size: 12px; color: var(--text-3); letter-spacing: .04em;
  padding-top: 14px; margin-bottom: 12px; border-top: 1px dashed var(--line);
}
.account-list { display: grid; gap: 22px; }
.acc-group h4 {
  font-size: 12.5px; color: var(--text-3); font-weight: 600;
  letter-spacing: .06em; margin-bottom: 10px; text-transform: none;
}
.acc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text);
  transition: .16s; min-width: 108px;
}
.acc-btn:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.acc-btn.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand); font-weight: 600; }
.acc-btn .u { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.acc-btn:hover .u { color: var(--brand); }

/* ---------------------------------------------------------- 布局 */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-head { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); }
.side-logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #1a5fd0, #123a7a); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.side-title { font-size: 13.5px; font-weight: 650; }
.side-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group { margin-bottom: 6px; }
.nav-group-t {
  padding: 10px 10px 6px; font-size: 11px; color: var(--text-3);
  letter-spacing: .08em; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); margin-bottom: 2px; transition: .14s;
}
.nav-item:hover { background: #f3f6fb; color: var(--text); }
.nav-item.active { background: var(--brand-l); color: var(--brand); font-weight: 600; }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .38; }
.nav-item.active .dot { opacity: 1; }
.nav-badge {
  margin-left: auto; font-size: 11px; background: var(--red); color: #fff;
  padding: 1px 6px; border-radius: 8px; font-weight: 600;
}
.side-foot { padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.side-acts { display: flex; gap: 6px; }
.side-acts .btn { flex: 1 1 0; min-width: 0; }
.side-user { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.side-user .nm { font-size: 13px; font-weight: 600; }
.side-user .rl { font-size: 11.5px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 54px; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.crumb { font-size: 14.5px; font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: 0; padding: 6px; color: var(--text-2); cursor: pointer; }
.chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  background: var(--green-bg); color: var(--green); font-weight: 600;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-l); color: var(--brand); font-size: 12px; font-weight: 700;
}
.view { padding: 22px; flex: 1; }

/* ---------------------------------------------------------- 通用 */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-hd {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-hd h3 { font-size: 14.5px; }
.card-hd .sp { margin-left: auto; }
.card-bd { padding: 16px 18px; }
.card-bd.tight { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px; border: 1px solid var(--line-d);
  background: #fff; color: var(--text); font-size: 13px; cursor: pointer;
  transition: .14s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #1550b4; color: #fff; }
.btn.danger { border-color: #e6b4ad; color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }
.btn.ghost { border-color: transparent; background: #f4f6fa; color: var(--text-2); }
.btn.ghost:hover { background: var(--brand-l); color: var(--brand); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.tag.gray { background: #eef1f6; color: var(--text-2); }
.tag.blue { background: var(--brand-l); color: var(--brand); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.orange { background: var(--orange-bg); color: var(--orange); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.purple { background: var(--purple-bg); color: var(--purple); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; background: #fff; overflow-x: auto; }
.tab {
  padding: 11px 14px; font-size: 13.5px; color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: .14s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow);
}
.kpi .k { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 25px; font-weight: 700; letter-spacing: -.4px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.kpi .foot { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.kpi.warn .v { color: var(--orange); }
.kpi.bad .v { color: var(--red); }
.kpi.good .v { color: var(--green); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inp, select.inp, textarea.inp {
  padding: 7px 10px; border: 1px solid var(--line-d); border-radius: 7px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text); outline: none;
}
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.inp.w-sm { width: 120px; }
.inp.w-md { width: 180px; }
/* 比例输入用窄框：一格只放 0-100 的数字，宽框会把表格撑开 */
.inp.w-xs { width: 74px; padding: 5px 8px; text-align: right; }
textarea.inp { resize: vertical; min-height: 66px; }
label.field, div.field { display: block; margin-bottom: 13px; }
label.field > span, div.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }
label.field > span em { color: var(--red); font-style: normal; }
label.field .inp, div.field .inp { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }

/* V3.18 自动分配方式：三选一。做成并排的「卡片式单选」而不是一行三个 radio，
   因为每项都要解释「什么场景用它」——光看名字选不出来。 */
.am-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.am-opt {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.am-opt:hover { border-color: var(--brand); }
.am-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(26, 95, 208, .12); }
.am-opt b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.am-sub { display: block; font-size: 12px; line-height: 1.5; color: var(--text-3); font-weight: 400; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .am-opts { grid-template-columns: 1fr; }
}

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; padding: 10px 14px; background: #f7f9fc; color: var(--text-2);
  font-weight: 600; font-size: 12.5px; white-space: nowrap;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2;
}
table.tb td { padding: 11px 14px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
table.tb tbody tr:hover { background: #f9fbff; }
table.tb tbody tr.clickable { cursor: pointer; }
table.tb td.num, table.tb th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tb td.mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
table.tb tfoot td { background: #f7f9fc; font-weight: 650; }
.empty { padding: 44px 20px; text-align: center; color: var(--text-3); font-size: 13px; }

/* 抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(16, 30, 54, .34);
  opacity: 0; transition: opacity .2s; z-index: 60;
}
.drawer-mask.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 94vw);
  background: #fff; z-index: 61; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(16,30,54,.18);
}
.drawer.show { transform: translateX(0); }
.drawer-hd {
  padding: 16px 32px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.drawer-hd h3 { font-size: 15.5px; }
.drawer-hd .sp { margin-left: auto; }
/* 抽屉宽度固定 720px，折中到 32px：比原来松一半，又不至于把表格类的宽内容挤窄 */
.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 32px 40px; }
.drawer-ft { padding: 12px 32px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  background: none; border: 0; cursor: pointer; color: var(--text-3);
  font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.icon-btn:hover { background: #f2f5f9; color: var(--text); }

/* 模态 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 30, 54, .36); z-index: 80;
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 12px; width: min(560px, 100%);
  box-shadow: 0 24px 70px rgba(16,30,54,.28); overflow: hidden;
}
/* 宽弹窗：报价编辑器有 10 列（本版含 / 明细 / 规格 / 数量 / 目录价 / 分摊 /
   折扣 / 含税单价 / 含税小计 / 未税单价），860 装不下会横向滚动，表格一滚
   就看不到左边的产品名。940 刚好够，成交弹窗也一并宽松些。 */
.modal.wide { width: min(940px, 100%); }
/* 左右留白要够：录入框几乎顶到窗体边缘时，选中文字往右拖会滑出窗体，
   松手就落在遮罩上。留出 40px 缓冲区，正常拖选不会踩到边界。
   （遮罩点击关闭本身也加了 mousedown 判定，见 core.js，这里是第一道防线。） */
.modal-hd { padding: 16px 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-hd h3 { font-size: 15px; }
.modal-bd { padding: 18px 40px; max-height: 68vh; overflow-y: auto; }
.modal-ft { padding: 13px 40px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

/* 提示 */
.toast-root { position: fixed; top: 18px; right: 18px; z-index: 120; display: grid; gap: 8px; }
.toast {
  background: #1b2028; color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: slideIn .2s ease; max-width: 340px;
}
.toast.err { background: #a5261a; }
.toast.ok { background: #0f766e; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } }

.note {
  background: #f6f9fd; border-left: 3px solid var(--brand); border-radius: 0 7px 7px 0;
  padding: 11px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.75;
}
.note.warn { background: #fdf8ee; border-left-color: var(--orange); }
.note b { color: var(--text); }

/* 一次性临时密码：等宽大字、可整段选中，方便抄写或截图转达 */
.temp-pwd {
  font-family: var(--mono, ui-monospace, Consolas, monospace);
  font-size: 22px; letter-spacing: .12em; font-weight: 650;
  background: #f4f6fa; border: 1px dashed var(--line); border-radius: 8px;
  padding: 16px 18px; text-align: center; user-select: all; word-break: break-all;
}

/* 描述列表 */
.dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; font-size: 13px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; color: var(--text); word-break: break-all; }
.sec-t { font-size: 13px; font-weight: 650; color: var(--text); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px;
  /* 窄屏上说明文案宁可折到下一行，也别把标题挤成两行 */
  flex-wrap: wrap; row-gap: 2px; }
.sec-t::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--brand); }
.sec-t:first-child { margin-top: 0; }

/* 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ""; position: absolute; left: -18px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand);
}
.tl-item.done::before { background: var(--brand); }
.tl-h { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-b { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.7; }
.tl-time { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }

/* 条形图 */
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 78px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-row .lb { color: var(--text-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 18px; background: #f0f3f8; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4a86e8, #1a5fd0); transition: width .4s; }
.bar-fill.g { background: linear-gradient(90deg, #4bbfa8, #0f766e); }
.bar-fill.o { background: linear-gradient(90deg, #f0b45f, #b45309); }
.bar-val { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

/* 迷你折线 */
.spark { width: 100%; height: 90px; display: block; }

/* 登录态账号卡 */
.acc-group .role-hint { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }

/* 推荐卡 */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rec {
  border: 1px solid var(--line); border-radius: 9px; padding: 14px;
  background: #fff; position: relative;
}
.rec.best { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.rec .nm { font-size: 14px; font-weight: 650; }
.rec .sc { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.rec .rs { font-size: 12px; color: var(--text-2); line-height: 1.7; margin: 9px 0 11px; }
.rec .flag {
  position: absolute; top: -9px; left: 12px; background: var(--brand); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}

/* 手机适配 */
@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 34px 26px 30px; }
  .login-brand h1 { font-size: 22px; }
  .brand-points { margin-top: 22px; gap: 10px; }
  .login-panel { padding: 26px 22px 44px; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 70;
    transform: translateX(-100%); transition: transform .22s;
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
  .view { padding: 14px; }
  .topbar { padding: 0 14px; height: 50px; }
  #btn-scan { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi .v { font-size: 21px; }
  .grid-2 { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  /* 平板/窄窗口：窗体本身就不宽，40px 会明显压扁输入框，折到 24px */
  .modal-mask { padding: 14px; }
  .modal-hd, .modal-bd, .modal-ft { padding-left: 24px; padding-right: 24px; }
  .drawer-hd, .drawer-bd, .drawer-ft { padding-left: 20px; padding-right: 20px; }
  .dl { grid-template-columns: 84px 1fr; }
  table.tb th, table.tb td { padding: 9px 11px; }
  .card-hd { padding: 12px 14px; }
  .card-bd { padding: 13px 14px; }
  .tabs { padding: 0 10px; }
  .bar-row { grid-template-columns: 76px 1fr 64px; }
  .login-brand { min-height: auto; }
  .brand-foot { margin-top: 12px; padding-top: 0; }
}
@media (max-width: 560px) {
  .acc-btn { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .modal-bd { max-height: 72vh; }
  /* 手机上一屏只有 360-430px，留 16px 就够，再大输入框没地方了 */
  .modal-hd, .modal-bd, .modal-ft { padding-left: 16px; padding-right: 16px; }
  .kpi .v { font-size: 19px; }
}

/* ---------------- 权限矩阵 ---------------- */
.perm-wrap { max-height: 62vh; overflow: auto; }
.perm-tb { font-size: 13px; }
.perm-tb thead th {
  position: sticky; top: 0; z-index: 3; background: #f6f8fc;
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  padding: 8px 6px; white-space: nowrap;
}
.perm-tb .perm-name {
  position: sticky; left: 0; z-index: 2; background: #fff;
  min-width: 190px; text-align: left; padding-left: 14px;
}
.perm-tb thead .perm-name { z-index: 4; background: #f6f8fc; }
.perm-tb td { padding: 6px; }
.perm-tb td.t-c { width: 58px; }
.perm-tb input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: #1a5fd0; }
.perm-tb .perm-code {
  display: block; font-family: var(--mono); font-size: 10.5px;
  color: var(--text-3); margin-top: 1px;
}
.perm-tb tr.row-off .perm-name { color: var(--text-3); }
.perm-tb tr.perm-mod td {
  background: #eef2f9; font-size: 11.5px; font-weight: 700;
  color: var(--text-2); padding: 6px 14px; letter-spacing: .3px;
  position: sticky; left: 0;
}
.perm-tb tr:hover td:not(.perm-mod) { background: #fafcff; }
.perm-tb tr:hover .perm-name { background: #fafcff; }

@media (max-width: 720px) {
  .perm-tb .perm-name { min-width: 132px; font-size: 12px; padding-left: 10px; }
  .perm-tb td.t-c { width: 40px; }
  .perm-tb thead th { font-size: 10.5px; padding: 7px 2px; writing-mode: vertical-rl; }
  .perm-tb thead .perm-name { writing-mode: horizontal-tb; }
}

/* ================= V1.6 新增组件 ================= */
td.t-c, th.t-c { text-align: center; }
.tb td .btn + .btn { margin-left: 4px; }

.chk {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.chk input { width: 15px; height: 15px; accent-color: #1a5fd0; }

/* 意向订单 / 订单明细行编辑 */
.line-item {
  display: grid;
  grid-template-columns: minmax(180px, 2.2fr) 78px 112px 96px 30px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.line-item .li-amt {
  text-align: right; font-size: 12.5px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.line-item .li-del { width: 28px; height: 28px; line-height: 1; }
@media (max-width: 720px) {
  .line-item { grid-template-columns: 1fr 1fr; }
  .line-item .li-prod { grid-column: 1 / -1; }
  .line-item .li-amt { text-align: left; }
}

/* 智能表格页的映射表与日志 */
.map-tb td { padding: 7px 12px; }
.timeline .tl-h .tag { margin-left: 6px; }


/* 提成规则档位行：起提 / 止提 / 比例 / 删除 */
.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 32px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.tier-row .t-del { width: 30px; height: 30px; line-height: 1; padding: 0; }
@media (max-width: 720px) {
  .tier-row { grid-template-columns: 1fr 1fr; }
  .tier-row .t-del { grid-column: 2; justify-self: end; }
}

/* 智能表格接入参数分组 */
.api-group { display: none; }
.api-group.on { display: block; }

/* ---------- 客资导入：8 列可粘贴网格 ---------- */
.paste-wrap { overflow-x: auto; }
.paste-tb { min-width: 980px; }
.paste-tb th { white-space: nowrap; font-size: 12.5px; }
.paste-tb td { padding: 0; border-right: 1px solid var(--line); }
.paste-tb td:last-child { border-right: 0; }
.paste-tb input.cell {
  display: block; width: 100%; box-sizing: border-box;
  border: 0; outline: 0; background: transparent; color: var(--text-1);
  font: inherit; font-size: 13px; padding: 8px 10px;
}
.paste-tb input.cell:focus { background: var(--bg-2, rgba(0, 0, 0, .04)); box-shadow: inset 0 0 0 2px var(--blue, #1a5fd0); }
.paste-tb input.cell::placeholder { color: var(--text-3); opacity: .55; }
.paste-tb tr.bad td { background: rgba(214, 48, 49, .10); }
.paste-tb tr.bad input.cell::placeholder { color: var(--red); }

/* ---------- 推广趋势：多系列折线图 ---------- */
.linechart { width: 100%; height: auto; display: block; margin-top: 4px; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px;
  color: var(--text-2); margin-bottom: 6px;
}
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .lg i {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
.chart-legend .lg b { color: var(--text); font-variant-numeric: tabular-nums; }

/* 粒度切换：周 / 月 / 年 */
.seg { display: inline-flex; border: 1px solid var(--line-d); border-radius: 8px; overflow: hidden; }
.seg button {
  border: 0; background: #fff; color: var(--text-2); font: inherit; font-size: 12.5px;
  padding: 6px 15px; cursor: pointer; border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brand); color: #fff; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sel {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-d);
  background: #fff; color: var(--text-2); cursor: pointer; user-select: none;
}
.chip-sel.on { background: var(--brand-l); border-color: #b9d0f7; color: var(--brand-d); font-weight: 600; }
.chip-sel input { display: none; }

/* ---------- 实施条件确认 ---------- */
.impl-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; margin-bottom: 14px;
  background: #fbfcfe;
}
.impl-bar.ok { border-color: #b6e0d6; background: var(--green-bg); }
.impl-bar.wait { border-color: #f2d5a8; background: var(--orange-bg); }
.impl-bar .t { font-weight: 650; font-size: 13px; }
.impl-bar .d { font-size: 12.5px; color: var(--text-2); }
.impl-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.impl-check {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; background: #fff; cursor: pointer; font-size: 13px;
}
.impl-check.on { border-color: #b6e0d6; background: var(--green-bg); }
.impl-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.impl-check .n { flex: 1; }
.impl-check .s { font-size: 11.5px; color: var(--text-3); }
.impl-check.on .s { color: var(--green); }
@media (max-width: 720px) { .impl-checks { grid-template-columns: 1fr; } }


/* ---------- 实施资料附件 ---------- */
.att-thumb {
  width: 56px; height: 40px; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: 5px; background: #f4f6fa;
}
.att-link { color: var(--brand); font-weight: 550; text-decoration: none; }
.att-link:hover { text-decoration: underline; }
.att-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- 话术库 ---------- */
.scr-hd2 { flex-wrap: wrap; gap: 10px; }
.scr-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scr-kw { width: 220px; }
/* 桌面端四个按钮摆得下，不需要「更多」。选择器要压过 .btn 的 display，
   光写 .scr-more 会被后面的 .btn 规则覆盖，桌面上会多出一个空的「⋯」。 */
.scr-tools .scr-more { display: none; }

.scr-layout {
  display: grid; grid-template-columns: 196px minmax(0, 1fr);
  gap: 20px; align-items: start;
}
.scr-side { border-right: 1px solid var(--line); padding-right: 14px; }
.scr-cat {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 7px;
  cursor: pointer; font-size: 13px; color: var(--text-2); margin-bottom: 3px;
}
.scr-cat b { margin-left: auto; font-weight: 600; color: var(--text-3); font-size: 12px; }
.scr-cat:hover { background: #f4f6fa; }
.scr-cat.on { background: var(--brand-l); color: var(--brand); font-weight: 600; }
.scr-cat.on b { color: var(--brand); }
.scr-sub {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 22px; border-radius: 6px;
  cursor: pointer; font-size: 12.5px; color: var(--text-2);
}
.scr-sub b { margin-left: auto; color: var(--text-3); font-size: 11.5px; }
.scr-sub:hover { background: #f4f6fa; }
.scr-sub.on { background: #eef2f8; color: var(--brand); font-weight: 600; }
.scr-tip { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.7; }

.scr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .scr-grid { grid-template-columns: 1fr; } }
.scr-card {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 9px;
  transition: box-shadow .15s, border-color .15s;
}
.scr-card:hover { border-color: #c8d6ea; box-shadow: 0 2px 10px rgba(26, 95, 208, .07); }
.scr-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scr-title { font-size: 14px; font-weight: 650; }
.scr-tags { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.scr-body {
  font-size: 13px; color: var(--text-2); line-height: 1.75; white-space: pre-wrap;
  overflow-wrap: anywhere;   /* 长链接、连续数字不能撑破卡片 */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.scr-body.open { display: block; -webkit-line-clamp: unset; }
.scr-ft { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.scr-meta { color: var(--text-3); font-size: 12px; }
.scr-copy.done { color: #1f7a44; border-color: #b7e0c6; background: #eefaf1; }

/* 全屏阅读页 */
.scr-read-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.scr-read {
  font-size: 16.5px; line-height: 1.9; color: var(--text-1); white-space: pre-wrap;
  overflow-wrap: anywhere; user-select: text; -webkit-user-select: text;
  padding: 14px 16px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px;
}
.scr-read-meta {
  margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.8;
}

/* 手机端（≤720px）：分类改成顶部横滑胶囊，正文放大，按钮加大到能点准 */
@media (max-width: 720px) {
  .scr-hd2 { padding: 12px 14px; }
  .scr-tools { width: 100%; gap: 8px; }
  .scr-kw { flex: 1 1 100%; width: auto; min-width: 0; }
  .scr-tools > .btn { flex: 1 1 auto; min-height: 38px; padding: 0 12px; }
  .scr-tools .scr-more { display: inline-flex; flex: 0 0 44px !important; justify-content: center; }
  .scr-tools .sc-aux { display: none; }
  .scr-tools.aux-open .sc-aux { display: inline-flex; flex: 1 1 calc(50% - 8px); }
  #sc-new { flex: 1 1 auto; }

  .scr-layout { grid-template-columns: 1fr; gap: 12px; }
  .scr-side {
    display: flex; gap: 8px; align-items: center; overflow-x: auto;
    border-right: 0; padding: 0 0 4px; margin: 0 -14px; padding-left: 14px; padding-right: 14px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .scr-side::-webkit-scrollbar { display: none; }
  .scr-cat, .scr-sub {
    flex: 0 0 auto; margin: 0; padding: 7px 12px; border: 1px solid var(--line);
    border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap;
  }
  .scr-cat b, .scr-sub b { margin-left: 4px; }
  .scr-cat.on, .scr-sub.on { background: var(--brand); border-color: var(--brand); color: #fff; }
  .scr-cat.on b, .scr-sub.on b { color: rgba(255, 255, 255, .82); }
  .scr-tip { display: none; }

  .scr-grid { grid-template-columns: 1fr; gap: 10px; }
  .scr-card { padding: 12px 13px; gap: 8px; }
  .scr-title { font-size: 15px; line-height: 1.45; }
  .scr-tags { margin-left: 0; }
  .scr-body {
    font-size: 15px; line-height: 1.85; color: var(--text-1);
    -webkit-line-clamp: 6;
  }
  .scr-ft { flex-wrap: wrap; gap: 8px; }
  .scr-meta { flex: 1 1 100%; font-size: 11.5px; }
  .scr-ft .btn { flex: 1 1 auto; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  /* 复制是手机上的主要动作，给它一点主色，别和编辑 / 删除混成一片灰 */
  .scr-ft .scr-copy { color: var(--brand); border-color: #c3d7f2; background: #f2f7ff; font-weight: 600; }
  .scr-read { font-size: 16.5px; padding: 12px 13px; }
  .drawer-hd h3 { font-size: 16px; }
  .drawer-ft .btn { min-height: 42px; flex: 1 1 auto; }
}


/* ---------------- V3.6 省市「可选可填」下拉 ---------------- */
.combo { position: relative; }
.combo-inp { padding-right: 30px; }
.combo-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 12px; line-height: 1; border-radius: 6px;
}
.combo-btn:hover { background: var(--brand-l); color: var(--brand); }
.combo.open .combo-btn { transform: translateY(-50%) rotate(180deg); color: var(--brand); }
.combo-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  max-height: 214px; overflow: auto; padding: 4px;
  background: var(--panel); border: 1px solid var(--line-d);
  border-radius: 8px; box-shadow: 0 10px 24px -10px rgba(16, 30, 54, .28);
}
.combo-item { padding: 7px 9px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.combo-item:hover, .combo-item.on { background: var(--brand-l); color: var(--brand); }
.combo-empty { padding: 8px 9px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
/* 下方空间不够时往上翻，避免被 .modal-bd 裁掉半行 */
.combo-pop.up { top: auto; bottom: calc(100% + 4px); }

/* ---------------- V3.6 产品图片 ---------------- */
.prod-thumb {
  width: 44px; height: 44px; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: 6px; background: #f7f9fc;
}
.prod-thumb.ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--text-3); border-style: dashed;
}
.img-box { display: flex; align-items: center; gap: 14px; }
.img-box img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #f7f9fc;
}
.img-box .ph {
  width: 84px; height: 84px; border-radius: 8px; border: 1px dashed var(--line-d);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-3); text-align: center; padding: 6px;
}
.img-box .acts { display: flex; flex-direction: column; gap: 6px; }

/* ---------------- V3.7 产品附件 ---------------- */
/* 缩略图本身是个按钮：图片要「点开看大图」，用 button 包住 img 才有语义与键盘可达性。 */
.thumb-btn {
  padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0;
  border-radius: 6px; vertical-align: middle;
}
.thumb-btn:hover .prod-thumb { border-color: var(--brand); }
.att-more {
  display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 8px;
  font-size: 11px; color: var(--text-2); background: var(--bg); vertical-align: 16px;
}
.pdf-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 6px; border-radius: 6px;
  border: 1px solid #f0d0cd; background: #fdf3f2; color: #c0392b;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
}
.pdf-chip:hover { border-color: #c0392b; }
.att-box { display: flex; align-items: flex-start; gap: 14px; }
.att-box > div:first-child { flex: 1 1 auto; min-width: 0; }
.att-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 6px;
}
.att-row.pending { border-style: dashed; background: #fbfcfe; }
.att-thumb {
  width: 38px; height: 38px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); background: #f7f9fc; flex: 0 0 auto;
}
.att-ico {
  width: 38px; height: 38px; border-radius: 6px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-3); background: var(--bg);
}
.att-ico.pdf { background: #fdf3f2; color: #c0392b; font-weight: 700; }
.att-main { flex: 1 1 auto; min-width: 0; }
.att-name {
  font-size: 13px; color: var(--text); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.att-meta { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.att-empty {
  padding: 14px 12px; border: 1px dashed var(--line-d); border-radius: 8px;
  font-size: 12.5px; color: var(--text-3); line-height: 1.6;
}
.att-acts { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; max-width: 190px; }
.att-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.att-preview {
  display: flex; align-items: center; justify-content: center;
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  max-height: 62vh; overflow: auto;
}
.att-preview img { max-width: 100%; max-height: 58vh; object-fit: contain; border-radius: 6px; }

/* ---------------- V3.6 报价单下载 ---------------- */
.quote-pick { display: flex; gap: 12px; margin-top: 4px; }
.quote-pick .btn {
  flex: 1 1 0; min-height: 74px; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 4px; padding: 12px 14px;
  text-align: left; line-height: 1.4;
}
.quote-pick .btn b { font-size: 14px; }
.quote-pick .btn span { font-size: 12px; color: var(--text-3); font-weight: 400; }
.quote-pick .btn.primary span { color: rgba(255, 255, 255, .82); }

/* ---------------- V3.9 微信朋友圈 ---------------- */
.mo-shell .card-hd { flex-wrap: wrap; gap: 10px; }
.mo-tabbar { align-items: center; }
.mo-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mo-tools .inp { height: 32px; }
.mo-kw { width: 200px; }

.mo-banner {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; margin-bottom: 14px;
  border-radius: 9px; background: var(--brand-l); border: 1px solid #cfe0fb;
  font-size: 13px; color: var(--text-2);
}
.mo-banner b { color: var(--brand); font-size: 13.5px; }
.mo-banner.warn { background: var(--orange-bg); border-color: #f2ddb8; }
.mo-banner.warn b { color: var(--orange); }

.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.mo-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px 11px;
  background: var(--panel); display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .15s, border-color .15s;
}
.mo-card:hover { border-color: var(--line-d); box-shadow: var(--shadow); }
.mo-card.canceled { opacity: .68; background: #fafbfd; }
.mo-hd { display: flex; align-items: flex-start; gap: 8px; }
.mo-title { font-weight: 650; font-size: 14px; line-height: 1.45; cursor: pointer; flex: 1 1 auto; }
.mo-title:hover { color: var(--brand); }
.mo-when { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mo-when b { color: var(--text); font-variant-numeric: tabular-nums; }
.mo-sep { color: var(--line-d); }
.mo-pushat { color: var(--text-3); }
.mo-text {
  font-size: 12.8px; color: var(--text-2); line-height: 1.62; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mo-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mo-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px;
  background: var(--brand-l); color: var(--brand); font-size: 11.5px; font-weight: 600;
}
.mo-chip i { font-style: normal; font-weight: 400; opacity: .72; }
.mo-chip b { font-weight: 700; margin-left: 2px; cursor: pointer; opacity: .6; }
.mo-chip b:hover { opacity: 1; color: var(--red); }
.mo-chip.gray { background: #eef1f6; color: var(--text-2); }
.mo-chip.blue { background: var(--brand-l); color: var(--brand); }
.mo-chip.gone { opacity: .4; text-decoration: line-through; }

.mo-prog { margin-top: 2px; }
.mo-prog-t { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.mo-prog-t b { color: var(--text); font-variant-numeric: tabular-nums; }
.mo-late { color: var(--red); margin-left: 6px; font-weight: 600; }
.mo-track { height: 5px; border-radius: 3px; background: #eef1f6; overflow: hidden; }
.mo-track i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.mo-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* 详情抽屉 */
.mo-dt { display: flex; flex-direction: column; gap: 16px; }
.mo-copybox { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mo-copyhd { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #f7f9fc;
  border-bottom: 1px solid var(--line); font-size: 13px; }
.mo-copytext { padding: 12px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.mo-sechd { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.mo-sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.mo-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mo-mitem { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  /* 朋友圈素材基本是 3:4 竖图，按正方形裁会把包装上的字裁掉一半 */
  aspect-ratio: 3 / 4; background: #f6f8fb; cursor: zoom-in; }
.mo-mitem img, .mo-mitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-mitem[data-video] { cursor: default; }
.mo-mtag { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px;
  color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .58)); }
.mo-tb td { vertical-align: middle; }
.mo-num { font-variant-numeric: tabular-nums; }
.mo-muted { color: var(--text-3); }
.mo-shot { width: 36px; height: 58px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line);
  margin-right: 4px; cursor: zoom-in; vertical-align: middle; }
.mo-op { text-align: right; }
.mo-pushinfo { font-size: 12.5px; color: var(--text-2); border-top: 1px dashed var(--line); padding-top: 10px; }
.mo-pushinfo .mo-hint { color: var(--text-3); margin-top: 4px; font-size: 12px; }
.mo-err { color: var(--red); margin-top: 4px; }
.mo-imgview { display: flex; align-items: center; justify-content: center; background: #f6f8fb;
  border-radius: 10px; padding: 10px; max-height: 72vh; overflow: auto; }
.mo-imgview img { max-width: 100%; max-height: 68vh; object-fit: contain; }

/* 表单 */
.mo-form .field { display: block; margin-bottom: 14px; }
.mo-form .field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.mo-form .field i { font-style: normal; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.mo-req { color: var(--red); }
.mo-ta { width: 100%; resize: vertical; line-height: 1.7; font-family: inherit; }
/* V3.19 富文本编辑框：工具条 + 可编辑区。contenteditable 在手机上长按
   就出「粘贴 / 全选」，这一点比 textarea 更符合销售的实际操作习惯。 */
.mo-editor { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.mo-ebar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 8px;
  background: #f7f9fc; border-bottom: 1px solid var(--line); }
.mo-eb { min-width: 30px; height: 26px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text-2); font-size: 12.5px; cursor: pointer; line-height: 1; }
.mo-eb:hover { background: #fff; border-color: var(--line); color: var(--text); }
.mo-ebar-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.mo-linkbar { display: flex; gap: 8px; align-items: center; padding: 8px;
  border-bottom: 1px solid var(--line); background: #fbfcfe; }
.mo-linkbar .inp { flex: 1; }
.mo-rich { min-height: 132px; max-height: 46vh; overflow: auto; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.75; outline: none; word-break: break-word; }
.mo-rich:empty::before { content: attr(data-ph); color: var(--text-3); }
.mo-rich p { margin: 0 0 4px; }
.mo-rich a, .mo-copytext a { color: var(--blue, #1a5fd0); text-decoration: underline; }
.mo-copytext p { margin: 0 0 6px; }
.mo-copytext p:last-child { margin-bottom: 0; }
.mo-len { text-align: right; font-size: 11.5px; color: var(--text-3); margin: -8px 0 10px; }
.mo-users { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.mo-user-tools { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f7f9fc;
  border-bottom: 1px solid var(--line); }
.mo-user-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 2px 10px; padding: 10px; max-height: 190px; overflow: auto; }
.mo-user { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 2px; cursor: pointer; }
.mo-user i { font-style: normal; font-size: 11px; color: var(--text-3); }
.mo-picks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mo-existing { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mo-hintline { font-size: 12px; color: var(--text-3); }

/* 报表 */
.mo-report .mo-sechd { margin-bottom: 8px; }
.mo-rate { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.mo-rate .mo-track { flex: 1 1 auto; }
.mo-rate span { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mo-warnv { color: var(--orange); font-weight: 600; }
.mo-badv { color: var(--red); font-weight: 600; }

@media (max-width: 720px) {
  .mo-grid { grid-template-columns: 1fr; }
  .mo-kw { width: 100%; }
  .mo-tools { width: 100%; }
  .mo-user-list { grid-template-columns: 1fr 1fr; }
  .mo-mgrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* ---------------- 联系结果截图（V3.10） ----------------
   缩略图按 4 列排，手机上落到 2 列；点图片开原图，不在弹窗里做放大镜，
   因为截图里常常是通话记录这种小字，放大镜不如直接看原尺寸。 */
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.shot-item { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.shot-item > a { display: block; aspect-ratio: 4 / 3; background: #f2f4f8; }
.shot-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-item figcaption {
  display: flex; align-items: center; gap: 4px; padding: 4px 7px;
  font-size: 11px; color: var(--text-3); border-top: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-item .shot-del {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--text-3); font-size: 15px; line-height: 1; padding: 0 2px;
}
.shot-item .shot-del:hover { color: var(--red); }
@media (max-width: 720px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 报价单抬头预览（V3.10）：导出前先看清这份单上会印谁的电话 */
.q-head { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
.q-head-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.9; }
.q-head-row > span { width: 92px; flex: none; color: var(--text-3); }
.q-head-row > b { font-weight: 600; }

/* 报价版本编辑（V3.18）：税率 / 折扣 / 有效期 / 状态四个字段一行排开，
   报价单本身就是「改两三个数、马上看合计」的动作，字段摊成两行反而要多看一次。 */
.qe-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.qe-tot {
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; align-items: baseline;
  margin-top: 10px; padding: 12px 16px; border-radius: 10px;
  background: #f7f9fc; border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
}
.qe-tot b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .qe-head { grid-template-columns: 1fr 1fr; }
  .qe-tot { gap: 12px 18px; justify-content: flex-start; }
}

/* ---------------- V3.11 新增 ----------------
   产品检索（录单时按货号/型号直接命中）、作废行、整单成交价、规格列。 */

/* 录单时的产品检索：输入框下方浮出结果条，不做成弹窗——
   连续加 5 个产品时，一个一个开弹窗要关 5 次。 */
.find-box { position: relative; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.find-box .inp { flex: 1; width: auto; }
.find-res {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: #fff; border: 1px solid var(--line-d); border-radius: 8px;
  box-shadow: 0 8px 22px -10px rgba(16, 30, 54, .28); overflow: hidden;
  max-height: 300px; overflow-y: auto;
}
.find-item {
  display: grid; grid-template-columns: 96px minmax(120px, 1.6fr) minmax(90px, 1.2fr) 92px;
  gap: 10px; align-items: center; padding: 8px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.find-item:last-child { border-bottom: 0; }
.find-item:hover, .find-item.on { background: var(--brand-l); }
.find-item .mono { font-family: var(--mono); font-size: 12px; color: var(--brand-d); }
.find-item .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find-item .mt { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find-item .pr { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.find-empty { padding: 14px 12px; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 720px) {
  .find-item { grid-template-columns: 78px 1fr; }
  .find-item .mt, .find-item .pr { display: none; }
}

/* 作废单：留在列表里可查、可复现，但一眼看出不参与统计 */
.row-void { opacity: .62; }
.row-void td { text-decoration: none; background: #fbfbfc; }
.row-void td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.row-void .num { text-decoration: line-through; text-decoration-color: var(--text-3); }

/* 整单成交价：确认成交时先填总额，按目录价比例摊到各产品 */
.won-target-box {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--brand); border-radius: 8px;
  background: var(--brand-l); font-size: 13px; font-weight: 600; color: var(--brand-d);
}
.won-target-box .inp { width: 128px; background: #fff; font-weight: 500; }

/* 确认成交时「不参与分摊」的行：锁定在目录价，灰底 + 左侧竖线提示它不跟着整单价走 */
.tb input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); }
.tb tr.row-fixed td { background: var(--bg); color: var(--text-2); }
.tb tr.row-fixed td:first-child { box-shadow: inset 3px 0 0 var(--text-3); }
.tb tr.row-fixed input:disabled { background: var(--bg); }

/* 规格 1 / 规格 2 同格两行：分两列会让表格横向溢出，合成一格更好读 */
.spec-cell { font-size: 12.5px; line-height: 1.5; color: var(--text-2); white-space: nowrap; }

/* 产品备注（V3.18）：备注常常是一整段验收标准或选型理由，铺开会把表格撑成
   一屏一条。这里限宽两行、超出省略，完整内容放 title，鼠标停一下就能看全；
   表格横向已经很长，再加一列自由换行的长文本只会让「找货」更难。 */
.cell-remark {
  max-width: 240px; min-width: 90px; font-size: 12.5px; line-height: 1.45;
  color: var(--text-2); white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cell-remark:empty::after { content: "—"; color: var(--text-3); }

/* 成交弹窗的产品格：规格一行 + 状态标记。报价里勾掉的行默认不成交，
   必须在行上直接标出来，否则销售会以为系统把那一行弄丢了。 */
.li-spec {
  font-size: 12px; line-height: 1.4; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.li-tag {
  display: inline-block; margin-top: 3px; padding: 0 6px; font-size: 11px;
  border: 1px solid var(--line-d); border-radius: 4px; color: var(--text-3); background: #fff;
}

/* 字段下方的补充说明：例如内部货号「保存后自动生成」——
   塞进 placeholder 会在输入后消失，而这条信息恰恰是填表后才想确认的。 */
.field-hint { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
input[readonly].inp, input:disabled.inp { background: var(--bg); color: var(--text-2); cursor: default; }

/* ============================================================
   V3.12 知识库 / 推广素材创意库 / 品牌
   ============================================================ */

/* 知识库：左窄右宽两栏。分类往往只有五六条，不值得占满一行；
   而条目内容可能有长摘要与标签，需要宽度。窄屏折成一列。 */
.kb-wrap { display: grid; grid-template-columns: 208px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.kb-side .card-bd { padding: 6px; }
.kb-cat {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--text-2); text-align: left;
}
.kb-cat:hover { background: var(--bg); }
.kb-cat.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.kb-cat span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-cat b { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.kb-cat.on b { color: var(--brand-d); }
/* 分类选择：下拉 + 按需出现的「新分类」输入框，两者上下叠，别撑破 grid-2 */
.kb-cat-pick { display: grid; gap: 6px; }

.kb-item { padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.kb-item:last-child { border-bottom: 0; }
.kb-item:hover { background: var(--bg); }
.kb-item .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-item .hd .tt { font-size: 14px; font-weight: 600; color: var(--text); }
.kb-item .hd .tm { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.kb-item .sm {
  margin-top: 5px; font-size: 12.5px; line-height: 1.6; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-sm {
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--text-2); border: 1px solid var(--line);
}

/* 详情抽屉：正文保留换行，不做 Markdown 渲染——
   资料是粘贴进来的表格与段落，转成 HTML 反而会把缩进和列对齐弄丢。 */
.kb-detail-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kb-detail-hd .tm { font-size: 12px; color: var(--text-3); }
.kb-summary {
  font-size: 13.5px; line-height: 1.7; color: var(--text);
  padding: 10px 12px; background: var(--brand-l); border-radius: 8px; margin-bottom: 12px;
}
.kb-body { font-size: 13.5px; line-height: 1.85; color: var(--text); white-space: pre-wrap; word-break: break-word; }

.kb-atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.kb-att.wide { grid-column: 1 / -1; }
.kb-att { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.kb-att-img { display: block; background: var(--bg); }
.kb-att-img img { display: block; width: 100%; height: 132px; object-fit: cover; }
.kb-att video { display: block; width: 100%; max-height: 340px; background: #000; }
.kb-att-meta { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; flex-wrap: wrap; }
.kb-att-meta .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-att-meta .sz { color: var(--text-3); }
.kb-att.row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap;
  /* 文件行（PDF/Word/PPT）横向铺满，不再挤在 230px 的网格里把按钮挤到第二行 */
  grid-column: 1 / -1; }
.kb-att.row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kb-rel { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-rel-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px;
  border: 1px solid var(--line-d); border-radius: 999px; font-size: 12.5px; background: #fff;
}
.kb-rel-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line-d); border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 12.5px; color: var(--text); text-align: left;
}
.kb-rel-link:hover { border-color: var(--brand); color: var(--brand-d); }

/* V3.15 相关知识点（话术侧维护）：区块标题后的说明统一压暗压小；
   选择器直接展开在按钮下方，不再叠一层弹窗——编辑话术时再弹窗会盖住正文。 */
.sec-hint { font-weight: 400; font-size: 12.5px; color: var(--text-3); }
.kbk-hint { font-size: 12px; color: var(--text-3); align-self: center; }
.kbk-none { font-size: 12.5px; color: var(--text-3); padding: 4px 0 2px; }
.kbk-pick { border-top: 1px dashed var(--line-d); margin-top: 10px; padding-top: 12px; }
/* 编辑弹窗里正文已经很长，选择器再占 420px 会把下方的备注挤出屏幕 */
.kbk-pick .pick-list { max-height: 300px; }
.kb-rel-open { cursor: pointer; }
.kb-rel-open:hover { color: var(--brand-d); text-decoration: underline; }
.kb-rel-item .icon-btn { font-size: 15px; padding: 0 4px; line-height: 1.2; }

/* 关联话术选择器 */
.row-2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.pick-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.pick-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--bg); }
.pick-row.on { background: var(--green-bg); }
.pick-row .sm { color: var(--text-3); font-size: 12px; }

/* 推广素材：卡片流。素材是给推广「看」的，竖排列表看不出海报长什么样 */
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.mkt-card {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.mkt-card:hover { box-shadow: 0 10px 24px -16px rgba(16, 30, 54, .4); transform: translateY(-1px); }
.mkt-card .cover { position: relative; height: 148px; background: var(--bg); }
.mkt-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-card .cover .ph {
  height: 100%; display: grid; place-items: center; color: var(--text-3);
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
}
.mkt-card .badge {
  position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 2px 8px;
  border-radius: 999px; font-weight: 600;
}
.mkt-card .badge.green { background: var(--green-bg); color: var(--green); }
.mkt-card .badge.gray { background: rgba(255,255,255,.92); color: var(--text-3); }
.mkt-card .badge.red { background: var(--red-bg); color: var(--red); }
.mkt-card .badge.orange { background: var(--orange-bg); color: var(--orange); }
.mkt-card .bd { padding: 10px 12px 12px; }
.mkt-card .tt { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.mkt-card .kind { margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.mkt-card .sell {
  margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-card .ft {
  margin-top: 10px; display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--text-3);
}

/* 品牌：logo 预览框固定尺寸，不管上传的是方图还是长条都能对齐 */
.brand-row { display: flex; gap: 16px; align-items: flex-start; margin-top: 6px; }
.brand-preview {
  width: 132px; height: 132px; border: 1px dashed var(--line-d); border-radius: 10px;
  display: grid; place-items: center; background: var(--bg); overflow: hidden; flex: none;
}
.brand-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-preview .ph { font-size: 12px; color: var(--text-3); }

/* 品牌 logo 替换掉侧边栏的「CRM」与登录页的默认图标 */
.side-logo.has-logo { background: #fff; border: 1px solid var(--line-d); padding: 3px; }
.side-logo.has-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-mark.has-logo {
  background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px;
  display: inline-grid; place-items: center; width: 62px; height: 62px;
}
.brand-mark.has-logo img { max-width: 46px; max-height: 46px; object-fit: contain; }
.empty.sm { padding: 18px 12px; font-size: 12.5px; }

@media (max-width: 900px) {
  .kb-wrap { grid-template-columns: 1fr; }
  .kb-atts { grid-template-columns: 1fr; }
  .mkt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .brand-row { flex-direction: column; }
}

/* ============================================================
   V3.13 客户资料链接（话术库 › 分享）
   ============================================================ */
.sh-hint { font-weight: 400; font-size: 12.5px; color: var(--text-3); }
.sh-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sh-sub { font-size: 12.5px; color: var(--text-3); }
.sh-head .btn { margin-left: auto; }
.sh-list { display: grid; gap: 8px; }
.sh-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.sh-item.off { background: var(--bg); }
.sh-main { min-width: 0; flex: 1; }
.sh-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sh-act { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.sh-empty { font-size: 12.5px; color: var(--text-3); padding: 2px 0 4px; }

/* 附件多选：一屏能看到十来条，多了在里面滚，不把弹窗顶得老长 */
.sh-pick {
  display: grid; gap: 4px; max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 9px; padding: 6px;
}
.sh-pick-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px;
  border-radius: 7px; font-size: 13px; cursor: pointer;
}
.sh-pick-item:hover { background: var(--bg); }
.sh-pick-item input { width: 15px; height: 15px; accent-color: var(--brand); flex: 0 0 auto; }
.sh-pick-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-pick-item .sz { color: var(--text-3); font-size: 12px; flex: 0 0 auto; }
.sh-all {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  font-weight: 400; font-size: 12.5px; color: var(--text-3); cursor: pointer;
}
.sh-all input { width: 14px; height: 14px; accent-color: var(--brand); }
label.sh-chk { display: flex; align-items: center; gap: 8px; padding-top: 20px; }
label.sh-chk > span { display: inline; margin-bottom: 0; font-size: 13px; color: var(--text); }
label.sh-chk input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.sh-ok { font-size: 15px; font-weight: 650; color: var(--green); margin-bottom: 12px; }
.sh-facts { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

/* V3.14 分享结果里的二维码：销售把手机递过去、客户扫一下就打开，
   比「复制链接 → 打开微信 → 粘贴 → 发送」少三步，现场讲解时尤其有用。 */
.sh-qr-wrap {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  margin-bottom: 12px;
}
.sh-qr {
  flex: 0 0 132px; width: 132px; height: 132px; padding: 6px;
  background: #fff; border-radius: 8px; border: 1px solid var(--line);
}
.sh-qr-tip { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.sh-qr-tip b { color: var(--text); font-weight: 650; }
.sh-qr-ph {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.6;
}
@media (max-width: 560px) {
  .sh-qr-wrap { flex-direction: column; align-items: flex-start; }
  .sh-qr { align-self: center; }
}

@media (max-width: 720px) {
  .sh-item { flex-wrap: wrap; }
  .sh-act { width: 100%; justify-content: flex-end; }
}
