:root {
  --primary: #b0653a;
  --primary-dark: #8f4e2a;
  --primary-light: #f7ede5;
  --accent: #d4a373;
  --bg: #f5f4f1;
  --card: #ffffff;
  --text: #2d2a26;
  --text-light: #7a736b;
  --border: #e8e2da;
  --success: #4a7c59;
  --warning: #c07f2a;
  --danger: #b3423a;
  --info: #3a6ea5;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 60px; }

/* ============ 登录页 ============ */
/* R178-B：加 flex-direction:column —— 否则卡片与备案条被横向排布，备案号会跑到卡片右侧 */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #efe7de 0%, #f5f4f1 50%, #ece4da 100%); }
.login-card { background: var(--card); padding: 44px 40px 36px; border-radius: 16px; width: 380px; box-shadow: 0 12px 40px rgba(90, 65, 45, 0.12); text-align: center; }
.login-logo { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; margin: 0 auto 16px; display: block; box-shadow: 0 4px 16px rgba(90, 65, 45, 0.12); }
.login-title { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
.login-sub { color: var(--text-light); font-size: 13px; margin: 8px 0 28px; }
.login-card input { width: 100%; margin-bottom: 14px; padding: 12px 14px; }
.btn-login { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 16px; letter-spacing: 4px; margin-top: 6px; transition: background .2s; }
.btn-login:hover { background: var(--primary-dark); }
.login-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }
.login-foot { margin-top: 22px; font-size: 12px; color: var(--text-light); }

/* ============ 布局 ============ */
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--primary); }
.store-tag { font-size: 12px; color: var(--text-light); background: var(--primary-light); padding: 3px 10px; border-radius: 20px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.nav-tabs { display: flex; gap: 4px; background: #fff; padding: 10px 24px 0; border-bottom: 1px solid var(--border); }
.nav-tab { padding: 10px 18px; border: none; background: none; color: var(--text-light); font-size: 14px; border-bottom: 2.5px solid transparent; }
.nav-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.nav-tab:hover { color: var(--primary); }
.container { max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; }

/* ============ 组件 ============ */
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 18px 20px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
/* 卡片折叠（数据统计页等）：点击标题收起/展开内容 */
.card.foldable .card-title { cursor: pointer; user-select: none; }
.card.foldable .card-title:hover { color: var(--primary); }
.card.foldable .cq-fold { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-light); transition: transform .15s; }
.card.foldable.collapsed .cq-fold { transform: rotate(-90deg); }
.card.foldable.collapsed .card-title { margin-bottom: 0; }
.card.foldable.collapsed .card-title ~ * { display: none; }
/* 区块折叠（运营总后台 sec-block）：点击小节标题收起/展开该小节 */
.sec-block.foldable .sec-title { cursor: pointer; user-select: none; }
.sec-block.foldable .sec-title:hover { color: var(--primary); }
.sec-block.foldable .cq-fold { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--text-light); transition: transform .15s; }
.sec-block.foldable.collapsed .cq-fold { transform: rotate(-90deg); }
.sec-block.foldable.collapsed .sec-title { margin-bottom: 0; }
.sec-block.foldable.collapsed .sec-title ~ * { display: none; }
/* R161：拍摄计划书内部折叠（逐组脚本 / 各大章节）
   计划书实测 13000+ px，整张卡折起来不够——展开一次还是十几屏。所以卡内再分层：
   一组一折、一章一折，默认收起只留大纲，摄影师点开哪组看哪组。
   只动 display，DOM 全在：复制全文、导出 PDF、统计计数都不受影响（导出走的是另一套版式）。 */
.sp-fold > .sp-fold-t { cursor: pointer; user-select: none; }
.sp-fold > .sp-fold-t:hover { opacity: .78; }
.sp-fold > .sp-fold-t .cq-fold { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 400; opacity: .65; transition: transform .15s; }
.sp-fold.collapsed > .sp-fold-t .cq-fold { transform: rotate(-90deg); }
.sp-fold.collapsed > .sp-fold-b { display: none; }
/* 章节收起时标题的下边距要跟着收掉，否则大纲视图里会留一排空白 */
.sp-fold.sp-sec.collapsed > .sp-fold-t { padding-bottom: 0; }
/* 组卡收起时标题那条分隔线要去掉，否则每张收起的卡下面都挂一根多余的线 */
.sp-fold.sp-grp.collapsed > .sp-fold-t { border-bottom: none; }
.sp-foldbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 2px; padding: 8px 11px; background: #FDF7FA; border: 1px dashed #F0C9D8; border-radius: 8px; }
.sp-foldbar-t { font-size: 12px; color: #9C8A93; line-height: 1.7; }
/* R138：销售预案环节折叠工具条（主标题点一下收起/展开，右侧一键全开全收） */
.pv-foldbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 12px; padding: 9px 12px; background: #f7f9fe;
  border: 1px dashed rgba(47,111,237,.28); border-radius: 8px; }
.pv-foldbar-t { font-size: 12.5px; color: var(--text-light); line-height: 1.7; }
.card.foldable > .card-title { cursor: pointer; user-select: none; border-radius: 6px; padding: 2px 4px; margin-left: -4px; transition: background .15s, color .15s; }
.card.foldable > .card-title:hover { background: rgba(47,111,237,.06); color: var(--primary); }
@media (max-width: 640px) { .pv-foldbar { flex-direction: column; align-items: flex-start; } }
.btn { padding: 7px 16px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; transition: all .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #3d6a4a; color: #fff; }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--text-light); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #faf8f5; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #f0ece6; vertical-align: middle; }
tr:hover td { background: #faf8f5; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.tag-gray { background: #eeeae4; color: var(--text-light); }
.tag-blue { background: #e7eff8; color: var(--info); }
.tag-green { background: #e6f0e8; color: var(--success); }
.tag-orange { background: #f7ecdc; color: var(--warning); }
.tag-red { background: #f8e7e5; color: var(--danger); }
.tag-brown { background: var(--primary-light); color: var(--primary-dark); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { min-width: 130px; }
.filter-bar input[type=text] { min-width: 200px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }
/* 可点击的统计卡片（成交笔数/客户总数等，点击跳转或查看明细） */
.stat-card.stat-click { cursor: pointer; border-color: var(--accent); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.stat-card.stat-click:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 4px 14px rgba(176, 101, 58, .18); }
.stat-click-hint { font-size: 11px; color: var(--primary); margin-top: 6px; opacity: .85; }

.modal-mask { position: fixed; inset: 0; background: rgba(45, 42, 38, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px 16px; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 960px; padding: 24px 28px; }
.modal-sm { max-width: 480px; }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { border: none; background: none; font-size: 22px; color: var(--text-light); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.form-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.form-item { display: flex; flex-direction: column; gap: 5px; }
.form-item label { font-size: 12px; color: var(--text-light); }
.form-item input, .form-item select { min-width: 160px; }

/* 通知 */
.notif-wrap { position: relative; }
.notif-badge { position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: absolute; right: 0; top: 36px; width: 380px; max-width: calc(100vw - 32px); max-height: 480px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 99; display: none; }
.notif-panel.open { display: block; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; border-radius: 10px 10px 0 0; }
.notif-head-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-readall { border: none; background: none; color: var(--primary); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.notif-readall:hover { text-decoration: underline; }
.notif-item { padding: 12px 16px 12px 24px; border-bottom: 1px solid #f0ece6; cursor: pointer; position: relative; }
.notif-item:hover { background: #faf8f5; }
.notif-item.unread { background: #fdf6ef; }
.notif-item.unread::before { content: ''; position: absolute; left: 9px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.notif-item-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.notif-item-body { font-size: 12px; color: var(--text-light); word-break: break-all; }
.notif-item-body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif-expand { font-size: 12px; color: var(--primary); margin-top: 2px; cursor: pointer; user-select: none; }
.notif-expand:hover { text-decoration: underline; }
.notif-item-time { font-size: 11px; color: var(--text-light); margin-top: 4px; }
@media (max-width: 640px) {
  .notif-panel { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; max-width: none; max-height: 70vh; }
}

/* 流程时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 16px 12px; }
.tl-dot { position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #ddd; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.tl-item.done .tl-dot { background: var(--success); }
.tl-item.current .tl-dot { background: var(--primary); }
.tl-label { font-weight: 600; font-size: 13px; }
.tl-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 确认矩阵 */
.confirm-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm-cell { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12px; background: #faf8f5; }
.confirm-cell.ok { border-color: var(--success); background: #e6f0e8; color: var(--success); }
.confirm-cell .who { display: block; font-size: 11px; color: var(--text-light); margin-top: 3px; }

.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.subtab { padding: 8px 14px; border: none; background: none; color: var(--text-light); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

.empty { text-align: center; color: var(--text-light); padding: 40px 0; font-size: 13px; }
.section-note { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.mini-table th { padding: 8px 10px; font-size: 12px; }
.mini-table td { padding: 8px 10px; }
.mini-table input, .mini-table select { padding: 5px 8px; font-size: 13px; min-width: 70px; width: 100%; }
/* 第一环节·核对原套餐：固定内容（前两列）与填写内容（第三列）视觉分离 */
.pc-check-table td:nth-child(1), .pc-check-table td:nth-child(2) { background: rgba(0,0,0,.025); color: var(--text-light); font-size: 13px; }
.pc-check-table td:nth-child(3) input { border: 1.5px dashed var(--primary); background: #fff; font-weight: 600; }
.inline-input { border: none; border-bottom: 1px dashed var(--border); background: transparent; padding: 4px 2px; width: 100%; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.rank-1 { background: #f5d47a; color: #7a5a00; }
.rank-2 { background: #d8d8d8; color: #555; }
.rank-3 { background: #edc9a3; color: #7a4a1a; }
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(45,42,38,.9); color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 13px; z-index: 999; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.link-btn { color: var(--primary); background: none; border: none; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 上传（小按钮 + 缩略图，支持截图粘贴） ---------- */
.up-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.up-list:empty { display: none; }
.up-item { position: relative; }
.up-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; cursor: zoom-in; }
/* R112：茶饮图（微信聊天长截图）——完整比例显示，不裁切成小方块，点开看原图 */
.tea-zone .up-item img { width: auto; height: auto; max-width: 300px; max-height: 360px; object-fit: contain; background: #fff; }
.tea-zone .up-list { align-items: flex-start; }
/* R112：第三环节 6 个方案位（主推高中低 + 兜底高中低） */
.scheme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.scheme-box { border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; background: #fffdf8; }
.scheme-head { font-weight: 700; font-size: 14px; color: var(--primary); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,.06); }
.scheme-box .form-item { margin-bottom: 8px; }
.scheme-box .form-item label { font-size: 12px; }
@media (max-width: 720px) { .scheme-grid { grid-template-columns: 1fr; } }
.up-item .up-file { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--primary); background: #f5f1e8; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; text-decoration: none; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .up-file:hover { border-color: var(--primary); background: #f0e9dc; }
.up-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); border: none; border-radius: 8px; cursor: pointer; transition: all .15s; box-shadow: 0 3px 10px rgba(176,101,58,.25); }
.up-btn:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(176,101,58,.32); }
.up-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(176,101,58,.25); }
.up-btn::before { content: '＋'; font-size: 16px; font-weight: 700; }
.up-zone-editable { outline: none; }
.up-zone-editable:focus .up-btn { filter: brightness(1.05); }
.up-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.up-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--danger); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; z-index: 2; }
.mini-table td .o-type-input { min-width: 108px; width: 108px; padding: 5px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.sec-block { margin-top: 16px; }
.sec-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.range-bar { height: 10px; background: #f0ece3; border-radius: 5px; overflow: hidden; }
.range-fill { height: 100%; background: linear-gradient(90deg, #c8a86b, #a8874f); border-radius: 5px; }
td.dim { color: #c9c4ba; }

/* ---------- 超期预案：PC/平板宽版横板布局 ---------- */
.modal.modal-wide { max-width: 1480px; }
@media (max-width: 1180px) { .modal.modal-wide { max-width: 97%; } }
.plan-groups { display: flex; flex-direction: column; gap: 14px; }
.plan-group { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 14px; background: #fdfcfa; }
.plan-group-head { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.plan-group-head .form-item { min-width: 96px; flex: 1; }
.plan-group-head .form-item.grow { flex: 2.2; min-width: 150px; }
.plan-group-head .form-item input { width: 100%; }
.plan-group-del { flex: none; margin-bottom: 2px; }
.plan-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 1480px) { .plan-slots { grid-template-columns: repeat(2, 1fr); } }
.plan-slot { border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px 10px; background: #fff; }
.plan-slot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.plan-slot-title { font-size: 12px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.plan-slot input[type="number"] { width: 70px; padding: 4px 8px; font-size: 13px; text-align: center; }
/* 超期服务区块：宽屏三列、窄屏单列 */
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-grid .form-item textarea { min-height: 70px; }
.ov-points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 1200px) { .ov-points { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .ov-points { grid-template-columns: 1fr; } }
/* 特色规划示例图片上传区 */
.ov-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
@media (max-width: 900px) { .ov-imgs { grid-template-columns: 1fr; } }
.ov-img-item { background: #faf7f2; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.ov-img-item label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
/* 每组卡片的「超期服务」栏：文字描述 + 图片上传 */
.plan-group-ov { margin-top: 12px; padding: 10px 12px 12px; background: #faf7f2; border: 1px dashed var(--border); border-radius: 8px; }
.plan-group-ov-title { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.plan-group-ov textarea { width: 100%; min-height: 56px; }
.plan-group-ov .up-zone { margin-top: 8px; }

/* R136：示例样片 —— AI 的第二个分析维度 */
.plan-group-ref { margin-top: 10px; padding: 10px 12px 12px; background: #f4f8fb; border: 1px dashed #b9cfe0; border-radius: 8px; }
.plan-ref-tip { font-size: 11.5px; color: var(--text-light); line-height: 1.7; margin-bottom: 8px; }
.plan-group-ref .up-zone { margin-top: 0; }

/* R67：数据统计数字下钻 */
.drill { color: var(--primary); cursor: pointer; border-bottom: 1px dashed var(--primary); font-weight: 700; padding: 0 2px; }
.drill:hover { background: rgba(176, 101, 58, .1); border-radius: 3px; }

/* ===== R100 宝贝信息（孩子数量 / 性别 / 年龄 / 出生日期 → 星座 + 属相）=====
   门店端客户档案填写区、客户详情、超期预案客情档案、总后台抽查弹窗共用 */
.baby-cnt-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.baby-cnt-opt { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; padding: 7px 14px; border: 1px solid var(--border, #E3E6EB); border-radius: 20px; background: #fff; transition: .15s; }
.baby-cnt-opt:hover { border-color: #D4537E; color: #D4537E; }
.baby-cnt-opt input { margin: 0; cursor: pointer; }
.baby-cnt-opt:has(input:checked) { border-color: #D4537E; background: #FDF4F8; color: #72243E; font-weight: 600; }
/* R101：宝贝填写行改成「三段卡片」—— 序号+删除 / 三列字段 / 自动标签。
   旧版是 6 列单行硬塞进 480px 窄弹窗，必然撑破；卡片式在窄屏自动降为单列 */
.baby-card { border: 1px solid #F1E4EA; border-radius: 10px; background: #FDFBFC; padding: 10px 12px; margin-bottom: 8px; }
.baby-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.baby-no { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #72243E; }
.baby-no::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #D4537E; flex: none; }
.baby-card-bd { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, .82fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; }
.b-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.b-f > span { font-size: 11px; color: var(--text-light); }
.b-f select, .b-f input { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--border, #E3E6EB); border-radius: 8px; font-size: 13.5px; background: #fff; }
.baby-card-ft { margin-top: 8px; font-size: 12.5px; color: #0F6E56; min-height: 17px; line-height: 1.4; }
.baby-card-ft .b-hint { color: #9AA3AD; }
.baby-card .b-del { flex: none; border: 1px solid var(--border, #E3E6EB); background: #fff; color: var(--text-light); font-size: 12px; border-radius: 7px; padding: 3px 9px; cursor: pointer; line-height: 1.5; }
.baby-card .b-del:hover { border-color: var(--danger, #e5484d); color: var(--danger, #e5484d); }
.baby-del-ph { display: block; width: 28px; }
.baby-legacy { margin-top: 8px; font-size: 12.5px; color: #8A94A0; background: #F7F7F5; border-radius: 8px; padding: 7px 10px; }
.baby-empty { font-size: 12.5px; color: #9AA3AD; background: #F7F7F5; border: 1px dashed var(--border, #E3E6EB); border-radius: 8px; padding: 9px 11px; }
.baby-chip { display: inline-block; background: #FDF4F8; border: 1px solid #F4C0D1; color: #72243E; border-radius: 12px; padding: 1px 9px; font-size: 12px; white-space: nowrap; }
.baby-sep { margin: 0 5px; color: #B76E85; font-size: 12px; }
.baby-cnt { display: inline-block; background: #EEEBF7; color: #534AB7; border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-right: 6px; }
.baby-list { display: flex; flex-direction: column; gap: 6px; }
.baby-row { display: grid; grid-template-columns: 52px auto 1fr 1fr 1.2fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; background: #FBF9FA; border-radius: 8px; font-size: 13px; }
.baby-tag-n { background: #FDF4F8; border: 1px solid #F4C0D1; color: #72243E; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.baby-tag-z { background: #EEEBF7; color: #534AB7; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.baby-tag-a { background: #FAEEDA; color: #854F0B; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.baby-inherit { margin: 8px 0 10px; padding: 10px 12px; background: #F7FBFA; border: 1px solid #C8E6DD; border-radius: 10px; }
.baby-inherit-hd { font-size: 13px; font-weight: 600; color: #0F6E56; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.baby-inherit-tip { font-weight: 400; font-size: 12px; color: #7C9A90; }
.baby-inherit .baby-row { background: #fff; border: 1px solid #E4F0EC; }
.baby-inherit-empty { font-size: 12.5px; color: #8A94A0; background: #F7F7F5; border-radius: 8px; padding: 8px 10px; margin: 8px 0 10px; }
/* ===== R103 超期预案里的「宝贝情况」编辑块 =====
   老哥的实际场景：建档时信息不全，是在做预案聊客情时才问出来的，销售被迫跑回建档页再填一遍。
   所以这里复用建档页那套编辑器（同一个 mountBabyEditor），销售/管理可现场补，
   保存客情时顺手回写客户档案；非销售/管理角色仍是只读展示，不改权限模型。 */
.baby-plan { margin: 8px 0 10px; padding: 10px 12px; background: #F7FBFA; border: 1px solid #C8E6DD; border-radius: 10px; }
.baby-plan-hd { font-size: 13px; font-weight: 600; color: #0F6E56; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.baby-plan-tip { font-weight: 400; font-size: 12px; color: #7C9A90; }
.baby-plan .baby-card { background: #fff; border-color: #E4F0EC; }
.baby-plan-sync { margin-top: 8px; font-size: 12px; color: #7C9A90; }
.baby-plan-ro { margin: 8px 0 10px; }
@media (max-width: 720px) {
  .baby-card-bd { grid-template-columns: 1fr; }
  .baby-row { grid-template-columns: 46px auto 1fr; }
}

/* ===== R101 客户建档弹窗改版：分区卡片 + 双列栅格 + 弹窗内滚动 =====
   旧版是 480px 窄弹窗 + 十几行单列竖排，又窄又长，宝贝行还会撑破。
   新版：宽 820px、六个分区两块一列、标题吸顶、主体滚动、操作条吸底。 */
.modal.modal-cust { max-width: 820px; padding: 0; display: flex; flex-direction: column; max-height: calc(100vh - 60px); overflow: hidden; }
.modal-cust-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px 13px; border-bottom: 1px solid var(--border); }
.modal-cust-head .modal-title { margin-bottom: 0; font-size: 16px; }
.modal-cust-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 22px 18px; }
.modal-cust-foot { flex: none; padding: 11px 22px; border-top: 1px solid var(--border); background: #fff; box-shadow: 0 -3px 12px rgba(45, 42, 38, .05); }
.modal-cust-foot .modal-actions { margin-top: 0; }
/* 本弹窗内所有输入控件一律撑满格子，避免 min-width:160px 撑破栅格 */
.modal-cust .form-item input, .modal-cust .form-item select, .modal-cust .form-item textarea { min-width: 0; width: 100%; }

.form-sec { margin-bottom: 18px; }
.form-sec:last-child { margin-bottom: 0; }
.form-sec-t { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.form-sec-t::before { content: ''; flex: none; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); }
.form-sec-t .sec-hint { font-weight: 400; color: var(--text-light); font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .form-item { min-width: 0; }
.span-all { grid-column: 1 / -1; }

/* 客户类型：两个大卡片单选，替代原来一长串文字 */
.ctype-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ctype-opt { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff; transition: .15s; }
.ctype-opt:hover { border-color: var(--accent); background: #FDFAF7; }
.ctype-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.ctype-opt input { margin: 0; flex: none; }
.ctype-t { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.ctype-opt:has(input:checked) .ctype-t { color: var(--primary-dark); }
.ctype-d { font-size: 11.5px; color: var(--text-light); line-height: 1.5; padding-left: 21px; }

/* 手机：弹窗转全屏抽屉，单列，按钮等宽，输入框 16px 防 iOS 聚焦放大 */
@media (max-width: 720px) {
  .modal-mask:has(.modal-cust) { padding: 0; align-items: stretch; }
  .modal.modal-cust { max-width: 100%; width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .modal-cust-head { padding: 12px 14px; }
  .modal-cust-body { padding: 14px 14px 20px; }
  .modal-cust-foot { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .modal-cust-foot .modal-actions { gap: 10px; }
  .modal-cust-foot .modal-actions .btn { flex: 1; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .ctype-pick { grid-template-columns: 1fr; }
  .form-sec { margin-bottom: 16px; }
  .baby-cnt-pick { gap: 8px; }
  .baby-cnt-opt { flex: 1 1 0; justify-content: center; padding: 10px 8px; }
  .modal-cust input, .modal-cust select, .modal-cust textarea { font-size: 16px; }
}

/* ===== R102：通话成本「实测小卡片」 =====
   把真实通话的 ASR / LLM 花费反推成「元 / 分钟」，跟拍脑袋算的理论红线摆在一起对照。
   设计要点：金额量级只有千分之几，格子必须能放下 6 位小数的数字且不撑破（minmax + word-break）。 */
.cc-lab { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, #FCFBF9, #F6F3EF); padding: 12px 14px; margin-top: 12px; }
.cc-lab-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cc-lab-t { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-lab-sub { font-size: 12px; color: var(--text-light); }
.cc-lab-flag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.cc-lab-flag.flag-green { background: #E6F1E9; color: #3D7A50; }
.cc-lab-flag.flag-amber { background: #FAF0DC; color: #96651B; }
.cc-lab-flag.flag-gray  { background: #EDEAE5; color: #7A736B; }
.cc-lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.cc-lab-cell { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.cc-lab-cell .l { font-size: 11.5px; color: var(--text-light); }
.cc-lab-cell .v { font-size: 16px; font-weight: 700; margin-top: 2px; word-break: break-all; line-height: 1.25; }
.cc-lab-cell .v .u { font-size: 12px; font-weight: 500; color: var(--text-light); }
.cc-lab-cell .s { font-size: 11px; color: var(--text-light); margin-top: 3px; line-height: 1.45; }
.cc-lab-band { margin-top: 11px; font-size: 12.5px; }
.cc-lab-band th, .cc-lab-band td { padding: 6px 8px; }
.cc-lab-tip { margin-top: 10px; font-size: 12.5px; line-height: 1.65; background: var(--card); border-left: 3px solid var(--accent); padding: 8px 11px; border-radius: 0 7px 7px 0; }
.cc-lab-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.cc-lab-act input { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; width: 92px; }
/* 手机：两列 + 横向滚动的分档表，保证 390px 下不溢出 */
@media (max-width: 720px) {
  .cc-lab { padding: 11px 12px; }
  .cc-lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cc-lab-cell .v { font-size: 15px; }
  .cc-lab-band { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}
/* R112：第二环节【现在】达标率结果卡 */
.ach-summary { background: #faf7f2; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.ach-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ach-big > span { font-size: 13px; color: var(--text-light); }
.ach-big b { font-size: 26px; line-height: 1; color: var(--primary-dark); }
.ach-sub { margin-left: auto; font-size: 12px; color: var(--text-light); background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; }
.ach-table th, .ach-table td { text-align: center; }
.ach-table td:first-child { text-align: left; font-weight: 600; }
.mini-note { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }
@media (max-width: 720px) { .ach-sub { margin-left: 0; width: 100%; text-align: center; } }

/* ===== R112-P1B：第二环节【过去】情感钩子 +【未来】产品线标签 =====
   两块都是「点一下就完成输入」的设计：选片现场销售是站着跟客户说话的，
   任何需要打字或复制粘贴的动作，实际使用率都会趋近于零。 */
.hook-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.hook-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 5px 6px 5px 12px; font-size: 12.5px; line-height: 1.4; }
.hook-chip b { color: var(--text-light); font-weight: 600; flex: none; }
.hook-quote { flex: none; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 14px; padding: 2px 9px; font-size: 11.5px; cursor: pointer; line-height: 1.6; }
.hook-quote:hover { background: var(--primary); color: #fff; }
.pl-tag-wrap { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.pl-tag { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 16px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.pl-tag:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pl-tag.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pl-tag:disabled { cursor: default; opacity: .75; }
/* R117⑤：门店自建标签后面挂一个「×」，加错了要能删 —— 只能加不能删的标签区，用两次就变成垃圾场 */
.tag-pair { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 7px; }
.tag-x { flex: none; width: 19px; height: 19px; line-height: 1; border: 1px solid var(--border); background: #fff; color: var(--text-light); border-radius: 50%; cursor: pointer; font-size: 13px; padding: 0; }
.tag-x:hover:not(:disabled) { border-color: var(--danger, #e34d59); color: var(--danger, #e34d59); }
.tag-x:disabled { cursor: default; opacity: .45; }
/* R117④：变化数「变1 / 变2 / 变3」三格并排，销售要能横向对比着填 */
.ac-e { display: inline-block; width: 52px !important; text-align: center; border-bottom-style: solid; }
.ac-pce { display: inline-block; min-width: 22px; text-align: center; font-weight: 600; }
@media (max-width: 720px) {
  .hook-chip { padding: 5px 6px 5px 10px; font-size: 12px; }
  .pl-tag { padding: 6px 11px; }
}

/* R112-P3：AI 成交思路 / 方案评估 */
.ai-sel-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: linear-gradient(180deg,#fffdf6,#fff); margin-bottom: 12px; }
.ai-sel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-sel-head .t { font-weight: 700; font-size: 14.5px; }
.ai-sel-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-sel-tag { background: #eef4ff; color: var(--primary); border-radius: 14px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
.ai-sel-tag.g { background: #eaf7ee; color: var(--success); }
.ai-sel-tag.y { background: #fff4e5; color: #c8811a; }
.ai-sel-main { background: #f7f9ff; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.8; margin-bottom: 10px; }
.ai-step { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); }
.ai-step:first-child { border-top: 0; }
.ai-step .n { flex: 0 0 74px; font-weight: 700; font-size: 13px; color: var(--primary); }
.ai-step .v { flex: 1; font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; }
.ai-obj { border: 1px solid #f3d9b0; background: #fffaf0; border-radius: 8px; padding: 8px 11px; margin-bottom: 7px; font-size: 13px; line-height: 1.8; }
.ai-obj .p { font-weight: 700; color: #b26a12; }
.ai-sel-sub { font-size: 12.5px; color: var(--text-light); margin: 6px 0 4px; font-weight: 700; }
/* R137：成交思路「证据锚点」—— 让销售一眼看出这份思路是从哪几张片子长出来的 */
.ai-anchor-box { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-anchor { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; background: #f6f8fb; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 12.5px; line-height: 1.7; color: var(--text); }
.ai-anchor i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* R137：AI 起草稿 —— 生成即落库，第二次打开还在 */
.pv-draft { margin: 8px 0; border: 1px solid #cfe0ff; background: #f5f8ff; border-radius: 8px; padding: 8px 11px; }
.pv-draft-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; }
.pv-draft-ico { font-size: 13px; }
.pv-draft-meta { color: var(--text-light); font-size: 12px; }
.pv-draft-body { margin: 7px 0; padding: 8px 10px; background: #fff; border: 1px dashed var(--border); border-radius: 6px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; max-height: 190px; overflow: auto; }
.pv-draft-act { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-plan-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--border); font-size: 13.5px; }
.ai-plan-row:first-child { border-top: 0; }
.ai-plan-row .sl { flex: 0 0 130px; font-weight: 600; }
.ai-score { flex: 0 0 92px; height: 7px; background: #eceff5; border-radius: 4px; overflow: hidden; }
.ai-score i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.ai-plan-row .sc { flex: 0 0 42px; font-weight: 700; }
.ai-plan-row .wh { flex: 1; color: var(--text-light); font-size: 12.5px; line-height: 1.7; }
.ai-first { background: #eaf7ee; color: var(--success); border-radius: 14px; padding: 3px 10px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.ai-risk { background: #fff2f2; border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; padding: 7px 11px; font-size: 13px; line-height: 1.8; margin-top: 5px; }
/* R163：6 套方案解析与评价 —— 每套独立一块，写清「靠什么撑着 / 漏了什么 / 什么时候切 / 怎么改」，不再是一行一句话 */
.ai-plan-blk { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.ai-plan-hd { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.ai-plan-hd .nm { flex: 0 0 auto; }
.ai-plan-hd .ai-score { flex: 0 0 92px; }
.ai-plan-hd .sc { flex: 0 0 auto; min-width: 30px; color: var(--primary); font-weight: 700; }
.ai-plan-ln { display: flex; gap: 8px; font-size: 13px; line-height: 1.75; margin-top: 6px; }
.ai-plan-ln .k { flex: 0 0 62px; color: var(--text-light); font-size: 12px; padding-top: 2px; }
.ai-plan-ln .v { flex: 1; }
.ai-plan-ln.gap .v { color: #a35b00; }
.ai-plan-ln.use .v { color: var(--primary); }
.ai-plan-ln.fix .v { color: var(--success); }
.ai-plan-anch { margin-top: 7px; font-size: 12px; color: var(--text-light); }
.ai-plan-anch span { display: inline-block; background: #f2f5fb; border-radius: 12px; padding: 2px 9px; margin: 2px 4px 0 0; }
@media (max-width: 720px) { .ai-step { flex-direction: column; gap: 3px; } .ai-step .n { flex: none; } .ai-plan-row { flex-wrap: wrap; } .ai-plan-row .sl { flex: 0 0 100%; } .ai-plan-ln { flex-direction: column; gap: 1px; } .ai-plan-ln .k { flex: none; } }

/* ============ R168：超期服务（拍摄当天的超预期惊喜） ============ */
.svc-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.svc-row { display: flex; gap: 9px; align-items: flex-start; background: #fff; border: 1px solid #F0DCC8; border-radius: 10px; padding: 9px 11px; }
.svc-chk { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 2px; font-size: 11px; color: var(--text-light); cursor: pointer; }
.svc-chk input { width: 16px; height: 16px; cursor: pointer; }
.svc-main { flex: 1; min-width: 0; }
.svc-what { font-size: 13.5px; color: var(--text-light); line-height: 1.7; }
.svc-what b { color: #A24C1E; }
.svc-when { color: #C0703A; }
.svc-do { color: #3F2A35; font-size: 14px; line-height: 1.85; border-radius: 6px; padding: 1px 4px; margin-left: -4px; }
.svc-do[contenteditable="true"]:hover, .svc-do[contenteditable="true"]:focus { background: #FFF3E6; outline: 1px dashed #E0A87A; }
.svc-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-light); }
.svc-ok { color: var(--success); }
.svc-bad { color: var(--warning); font-weight: 600; }
.svc-del { flex: none; border: none; background: none; color: #C9B8A8; cursor: pointer; font-size: 14px; padding: 2px 4px; }
.svc-del:hover { color: var(--danger); }
.svc-gap { display: inline-block; background: #FFE9D6; border: 1px solid #F3C9A8; border-radius: 20px; padding: 1px 9px; margin: 0 4px 0 0; color: #A24C1E; }
/* R169：思路溯源 —— 这条想法借鉴自哪个案例，门店能回溯，也能反过来检验 AI 学歪没有 */
.svc-from { background: #EEF6FF; border: 1px solid #C7DDF5; border-radius: 20px; padding: 1px 9px; color: #2F6392; }
/* R169：动作库里找不到对应动作 —— 不丢，标出来让门店先确认能不能落地 */
.svc-need { margin-top: 3px; font-size: 12px; color: #8A5A32; background: #FFF1DC; border: 1px dashed #E0A87A; border-radius: 6px; padding: 2px 7px; display: inline-block; }
@media (max-width: 720px) { .svc-row { flex-wrap: wrap; } .svc-chk { flex-direction: row; gap: 5px; } }

/* R170：AI 依赖标记 —— 「标上」不是「焊死」，门店在「必填项设定」里随时可取消 */
.ci-ai-tag { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.5; border-radius: 20px; padding: 0 7px; margin-left: 5px; cursor: help; vertical-align: middle; }
.ci-ai-tag.lv1 { background: #EEF6FF; border: 1px solid #C7DDF5; color: #2F6392; }
.ci-ai-tag.lv2 { background: #F4F1FF; border: 1px solid #DCD3F7; color: #6B57B8; }
.ci-aiwhy { font-size: 12px; color: #2F6392; background: #F7FAFF; border-left: 3px solid #C7DDF5; border-radius: 0 6px 6px 0; padding: 3px 8px; margin-top: 3px; line-height: 1.7; }
.ci-miss-note { font-size: 12px; color: #2F6392; background: #F7FAFF; border: 1px solid #CFE0FA; border-radius: 6px; padding: 4px 8px; margin-top: 4px; line-height: 1.75; }

/* R171：智能汇总「已固定」—— AI 润色过 / 手改过就不再被自动整理覆盖（但仍可一键恢复） */
.sum-locked { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.5; border-radius: 20px; padding: 0 8px; background: #FFF1F5; border: 1px solid #F0C4D4; color: #A64B6E; vertical-align: middle; }
.sum-keep { font-size: 12px; color: #7A4A5C; background: #FFF8FB; border: 1px dashed #EDC4D4; border-radius: 0 6px 6px 0; border-left: 3px solid #E0A8BF; padding: 4px 9px; margin: 0 0 8px; line-height: 1.75; }
.sum-keep b { color: #A64B6E; }

/* ============ R118：销售质检看板（能力画像 + 门店共性问题 + 通话质检） ============ */
.q-wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.q-radar-box { flex: 0 0 300px; max-width: 100%; }
.q-radar-note { font-size: 12px; color: var(--text-light); line-height: 1.9; }
.q-dims { flex: 1; min-width: 260px; }
.q-dim-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.q-dim-row:last-child { border-bottom: 0; }
.q-dim-row .lab { flex: 0 0 84px; font-size: 13px; font-weight: 600; }
.q-bar { flex: 1; height: 8px; background: #eceff5; border-radius: 5px; overflow: hidden; min-width: 60px; }
.q-bar i { display: block; height: 100%; border-radius: 5px; }
.q-dim-row .sc { flex: 0 0 46px; text-align: right; font-weight: 700; font-size: 13.5px; }
.q-hit { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 20px; padding: 0 8px; border-radius: 11px; background: #fff2f0; color: var(--danger); font-size: 12px; font-weight: 700; }
.q-issue { border: 1px solid var(--border); border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; padding: 10px 13px; margin-bottom: 10px; background: #fffaf9; }
.q-issue .t { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-issue .d { font-size: 13px; color: var(--text-light); line-height: 1.85; margin-top: 5px; }
.q-issue .f { font-size: 13px; line-height: 1.85; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.q-issue .f b { color: var(--primary); }
.q-who { display: inline-block; background: #f3ece4; color: var(--primary-dark); border-radius: 12px; padding: 1px 9px; font-size: 12px; margin-right: 5px; }
.q-strength { border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: 0 8px 8px 0; padding: 9px 13px; margin-bottom: 9px; background: #f9fdfa; font-size: 13.5px; line-height: 1.85; }
.q-person { border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; margin-bottom: 10px; background: #fffdf8; }
.q-person .nm { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.q-person .dg { font-size: 13.5px; line-height: 1.85; color: var(--text); }
.q-person ol { margin: 6px 0 0 18px; }
.q-person ol li { font-size: 13.5px; line-height: 1.9; }
.q-plan { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; line-height: 1.85; }
.q-plan:last-child { border-bottom: 0; }
.q-plan .no { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.q-plan .tx { flex: 1; }
.q-person-cards td { background: #fbf8f4; }
.q-card-line { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--border); font-size: 13px; }
.q-card-line:first-child { border-top: 0; }
.q-card-line .dt { flex: 0 0 92px; color: var(--text-light); font-size: 12.5px; }
.q-card-line .sm { flex: 1; line-height: 1.8; }
.q-offline { display: inline-block; background: #f1f1f1; color: #8b8681; border-radius: 10px; padding: 1px 8px; font-size: 11.5px; }
.q-tip-red { color: var(--danger); font-weight: 600; }
/* R118b：质检看板空态引导 —— 三步操作清单 */
.q-guide-steps { margin: 0 0 0 20px; padding: 0; }
.q-guide-steps li { font-size: 13.5px; line-height: 2; color: var(--text); }
.q-guide-steps li b { color: var(--primary-dark); }
@media (max-width: 720px) { .q-radar-box { flex: 1 1 100%; } .q-dim-row .lab { flex: 0 0 68px; } .q-card-line { flex-wrap: wrap; } .q-card-line .dt { flex: none; } }

/* ===== R142：使用说明中心 ===== */
.help-wrap { display: flex; gap: 16px; align-items: flex-start; }
.help-side { flex: 0 0 260px; position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow: auto;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 10px; }
.help-search { margin-bottom: 10px; }
.help-search input { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.help-books { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.help-booksub { font-size: 13.5px; font-weight: 600; color: var(--text); padding: 2px 4px 8px; border-bottom: 1px dashed var(--border); margin-bottom: 6px; }
.help-group { margin-bottom: 4px; }
.help-group-t { font-size: 12.5px; font-weight: 600; color: var(--text-light); padding: 6px; cursor: pointer; user-select: none; }
.help-caret { display: inline-block; width: 14px; color: var(--text-light); }
.help-nav-item { font-size: 13.5px; padding: 7px 10px 7px 22px; border-radius: 6px; cursor: pointer; color: var(--text); line-height: 1.5; }
.help-nav-item:hover { background: #f5f6f8; }
.help-nav-item.on { background: var(--primary); color: #fff; font-weight: 600; }
.help-hit { padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 8px; }
.help-hit-t { font-size: 13.5px; font-weight: 600; }
.help-hit-s { font-size: 12px; color: var(--text-light); margin: 3px 0; line-height: 1.6; }
.help-hit mark { background: #fff3c4; color: #a35b00; padding: 0 1px; }
.help-result-t { font-size: 12px; color: var(--text-light); padding: 2px 4px 8px; }
.help-empty { font-size: 13px; color: var(--text-light); padding: 20px 8px; text-align: center; line-height: 1.9; }
.help-main { flex: 1 1 auto; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 18px 20px; }
.help-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 14px; }
.help-doc-title { font-size: 19px; font-weight: 700; }
.help-doc-sub { margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.help-tag { display: inline-block; background: #eef1fb; color: var(--primary-dark); border-radius: 10px; padding: 2px 9px; font-size: 11.5px; }
.help-oneline { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.help-block { margin-bottom: 18px; }
.help-block-t { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; padding-left: 9px; border-left: 3px solid var(--primary); }
.help-entry { font-size: 13.5px; color: var(--text); background: #f7f8fa; border-radius: 8px; padding: 9px 12px; line-height: 1.8; }
.help-steps { margin: 0; padding-left: 20px; }
.help-steps li { font-size: 13.8px; line-height: 2; color: var(--text); }
.help-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.help-table th, .help-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; line-height: 1.7; }
.help-table th { background: #f7f8fa; font-weight: 600; white-space: nowrap; }
.help-dim { color: var(--text-light); }
.help-notes { background: #fff8ec; border: 1px solid #f5e3c0; border-radius: 8px; padding: 10px 14px 10px 10px; }
.help-notes ul { margin: 0; padding-left: 20px; }
.help-notes li { font-size: 13.5px; line-height: 1.95; color: #8a6a2f; }
.help-qa { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; }
.help-q { font-size: 13.5px; font-weight: 600; }
.help-a { font-size: 13.2px; color: var(--text); margin-top: 4px; line-height: 1.85; }
.help-links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .help-wrap { flex-direction: column; }
  .help-side { flex: none; width: 100%; position: static; max-height: none; }
  .help-main { width: 100%; }
}

/* ---------- R143：使用说明 · 配图与视觉强化 ---------- */
.help-shot { margin: 0 0 16px; break-inside: avoid; }
.help-shot svg { display: block; width: 100%; height: auto; max-width: 680px; border-radius: 10px; }
.help-shot-cap { font-size: 13px; color: #a35b00; background: #fff8e6; border-radius: 6px; padding: 6px 10px; margin-top: 8px; line-height: 1.6; }
.help-shot-note { font-size: 11.5px; color: var(--text-light); text-align: right; margin-top: 4px; }
.help-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.help-path span { font-size: 12.5px; color: #6b6b6b; background: #f1efe8; border: 1px solid #dcd8cc; border-radius: 6px; padding: 3px 10px; }
.help-path span.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.help-path i { font-style: normal; color: #b0a99a; font-size: 13px; }
code.kbd { display: inline-block; font-family: inherit; font-size: 12.5px; color: var(--primary-dark); background: #eaf1fd;
  border: 1px solid #c2d6f5; border-radius: 5px; padding: 1px 7px; margin: 0 1px; line-height: 1.7; white-space: nowrap; }
.help-steps b.term { color: #b45309; }
.need { display: inline-block; font-size: 11.5px; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.need-must { background: #fdecec; color: #b02a2a; border: 1px solid #f3c4c4; font-weight: 600; }
.need-auto { background: #f1efe8; color: #6b6b6b; border: 1px solid #dcd8cc; }
.need-opt { background: #fff; color: #8a8a8a; border: 1px solid #e3e3e3; }
.help-inline { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.help-inline-btn { color: var(--primary-dark); border-color: #c2d6f5; background: #f4f8ff; }
@media print {
  .help-shot, .help-block { break-inside: avoid; }
  .help-inline { display: none; }
}

/* R124：AI 结果刚生成时闪一下，别让销售以为点了没反应 */
@keyframes cqAiFlash { 0% { box-shadow: 0 0 0 0 rgba(47,111,237,.45); } 100% { box-shadow: 0 0 0 14px rgba(47,111,237,0); } }
.ai-flash { animation: cqAiFlash 1.2s ease-out 2; border-radius: 10px; }

/* R178：登录页底部备案信息（工信部 ICP + 公安网安），未配置时整条不显示 */
.site-beian{margin-top:16px;text-align:center;font-size:12px;color:#8a94a6;line-height:1.9;letter-spacing:.2px;max-width:92vw;padding:0 12px;box-sizing:border-box}
.site-beian a{color:#8a94a6;text-decoration:none}
.site-beian a:hover{color:#2563eb;text-decoration:underline}
.beian-sep{margin:0 8px;color:#c8cfda}
