/* ================================================================
   询盘派单 · 设计规范
   - 色彩：钢青蓝主色 + 琥珀色“待处理”强调；状态色成体系，红色只用于超时
   - 字号：12 / 13 / 15 / 17 / 20 / 26 六级；数字等宽
   - 间距：4 的倍数（4 8 12 16 20 24）
   - 动效：120~220ms，系统减少动态效果时全部关闭
   ================================================================ */
:root {
  /* 品牌与中性色 */
  --brand: #3554d1;
  --brand-600: #2a45b4;
  --brand-50: #eef1fd;
  --brand-100: #dde3fb;
  --ink: #1c2333;
  --ink-2: #4b5468;
  --ink-3: #8a92a6;
  --line: #e6e8ee;
  --line-2: #f0f1f5;
  --bg: #f3f4f7;
  --surface: #fff;
  /* 状态色 */
  --amber: #d97706;  --amber-50: #fff5e6;
  --green: #12a150;  --green-50: #e8f6ee;
  --red: #e5484d;    --red-50: #fdeced;
  --gray: #6b7280;   --gray-50: #f1f2f4;
  /* 字号、圆角、阴影、动效 */
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 26px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(28, 35, 51, .04), 0 1px 1px rgba(28, 35, 51, .02);
  --sh-2: 0 6px 20px rgba(28, 35, 51, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t-mid: 200ms;

  /* 兼容旧变量名 */
  --c-primary: var(--brand); --c-danger: var(--red); --c-warn: var(--amber); --c-ok: var(--green);
  --c-text: var(--ink); --c-sub: var(--ink-3); --c-bg: var(--bg); --c-line: var(--line);

  /* 覆盖 Vant 组件库的主题变量 */
  --van-primary-color: var(--brand);
  --van-success-color: var(--green);
  --van-danger-color: var(--red);
  --van-warning-color: var(--amber);
  --van-text-color: var(--ink);
  --van-text-color-2: var(--ink-3);
  --van-border-color: var(--line);
  --van-background: var(--bg);
  --van-radius-md: 10px;
  --van-button-radius: 10px;
  --van-button-default-height: 40px;
  --van-nav-bar-title-font-size: var(--fs-lg);
  --van-nav-bar-icon-color: var(--ink-2);
  --van-nav-bar-text-color: var(--ink-2);
  --van-tabbar-item-active-color: var(--brand);
  --van-tabbar-item-text-color: var(--ink-3);
  --van-tabbar-height: 56px;
  --van-tabs-bottom-bar-color: var(--brand);
  --van-tab-active-text-color: var(--ink);
  --van-tab-text-color: var(--ink-3);
  --van-cell-group-inset-radius: var(--r-md);
  --van-search-background: transparent;
  --van-search-content-background: var(--surface);
  --van-dialog-radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: var(--fs-md); line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.boot { padding: 96px 24px; text-align: center; color: var(--ink-3); line-height: 1.8; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------- 页面骨架 ---------------- */
.page { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.page.wide { max-width: 1200px; }
.page.no-tab { padding-bottom: 40px; }
.page.has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.pad { padding: 12px 16px; }
.card { background: var(--surface); border-radius: var(--r-md); margin: 12px; padding: 16px; box-shadow: var(--sh-1); }
.card-title { font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title .sub { font-weight: 400; font-size: var(--fs-sm); color: var(--ink-3); }
/* 标题不折行；右侧说明太长时自己换行（右对齐），不再把标题挤成两行 */
.card-title { white-space: nowrap; }
.card-title .sub { white-space: normal; text-align: right; min-width: 0; line-height: 1.4; }
.section-label { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .04em; margin: 20px 16px 8px; }
.muted { color: var(--ink-3); font-size: var(--fs-sm); }
.small { font-size: var(--fs-xs); }
.danger { color: var(--red); }
.warn { color: var(--amber); }
.ok { color: var(--green); }
.bold { font-weight: 600; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.flex1 { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-all; }

/* 顶部导航更轻 */
.van-nav-bar.top-bar { position: sticky; top: 0; z-index: 100; }
.van-nav-bar { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.van-nav-bar__title { font-weight: 600; }
.van-hairline--bottom::after { border-color: var(--line); }
.van-tabs__nav { background: transparent; }
.van-tabs--line .van-tabs__wrap { background: var(--bg); }
.van-tab--active { font-weight: 600; }
.van-button { font-weight: 500; transition: transform var(--t-fast) var(--ease), filter var(--t-fast); }
.van-button:active { transform: scale(.97); }
.van-button--primary { box-shadow: 0 4px 12px rgba(53, 84, 209, .22); }
.van-button--plain { box-shadow: none; }

/* ---------------- 状态胶囊 ---------------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pending { color: var(--amber); background: var(--amber-50); }
.s-following { color: var(--brand); background: var(--brand-50); }
.s-won { color: var(--green); background: var(--green-50); }
.s-lost, .s-cancelled, .s-none { color: var(--gray); background: var(--gray-50); }
.s-late { color: var(--red); background: var(--red-50); }
.pill.plain::before { display: none; }

/* 客户头像（取称呼首字） */
.avatar { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; color: #fff; flex-shrink: 0; letter-spacing: 0; }
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 21px; }
.av0 { background: #3554d1; } .av1 { background: #0e8f87; } .av2 { background: #b4632a; }
.av3 { background: #7a4cc2; } .av4 { background: #c0446a; } .av5 { background: #4a6a8a; }

/* ---------------- 选择按钮（能选择的不让用户输入） ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; line-height: 1.3;
  color: var(--ink-2); cursor: pointer; user-select: none; position: relative; min-height: 34px; display: inline-flex; align-items: center; gap: 4px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
.chip:active { transform: scale(.96); }
.chip.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.chip.disabled { opacity: .4; cursor: not-allowed; }
.chip .badge { font-size: 11px; color: #fff; background: var(--amber); border-radius: 8px; padding: 0 6px; line-height: 16px; }
.chip .cnt { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.chips.big .chip { padding: 9px 16px; font-size: var(--fs-md); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; -webkit-overflow-scrolling: touch; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }

/* ---------------- 表单 ---------------- */
.form-label { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.form-label .req { color: var(--red); }
.inp { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: var(--fs-md); color: var(--ink); background: var(--surface);
  outline: none; font-family: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.inp::placeholder { color: #b3b9c6; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
textarea.inp { resize: vertical; min-height: 72px; line-height: 1.55; }
select.inp { appearance: auto; }

/* ---------------- 首页顶部问候与概览 ---------------- */
.greet { padding: 18px 16px 4px; }
.greet .hi { font-size: var(--fs-xl); font-weight: 700; letter-spacing: .01em; }
.greet .date { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(var(--kc, 3), minmax(0, 1fr)); gap: 10px; padding: 12px 16px 4px; }
.kpi { background: var(--surface); border-radius: var(--r-md); padding: 12px; box-shadow: var(--sh-1); cursor: pointer; position: relative; overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.kpi:active { transform: scale(.97); }
.kpi .n { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 4px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; }
.kpi.zero .n { color: #c3c8d4; }  /* 0 淡一些，有数字的更显眼 */
.kpis[style*="--kc: 4"] { gap: 8px; }
.kpis[style*="--kc: 4"] .kpi { padding: 12px 9px; }
.kpi.on { box-shadow: inset 0 0 0 1.5px var(--brand), var(--sh-1); }
.kpi.hot .n { color: var(--amber); }
.kpi.alert .n { color: var(--red); }
.kpi.good .n { color: var(--green); }

/* ---------------- 询盘 / 客户列表卡片 ---------------- */
.inq-item { background: var(--surface); margin: 10px 12px; border-radius: var(--r-md); padding: 14px 14px 12px 16px; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: var(--sh-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.inq-item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line); }
.inq-item.st-pending::before { background: var(--amber); }
.inq-item.st-following::before { background: var(--brand); }
.inq-item.st-won::before { background: var(--green); }
.inq-item.st-late::before { background: var(--red); }
.inq-item:active { transform: scale(.985); box-shadow: none; }
.inq-item .head { display: flex; align-items: center; gap: 10px; }
.inq-item .t { font-size: var(--fs-md); font-weight: 600; display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.inq-item .d { color: var(--ink-2); margin-top: 2px; font-size: var(--fs-sm); }
.inq-item .m { color: var(--ink-3); margin-top: 10px; font-size: var(--fs-xs); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.inq-item .m .sep { width: 1px; height: 10px; background: var(--line); }
/* 列表卡片：标题行标签不被挤压、不换行；第三行固定一行 */
.min0 { min-width: 0; }
.inq-item .t > .ellipsis { min-width: 0; flex: 0 1 auto; }
.inq-item .t > :not(.ellipsis), .t .lvl, .t .key-tag, .t .src-tag, .t .fn-badge { flex: none; white-space: nowrap; }
.inq-item .m.one { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; gap: 0 12px; }
.inq-item .m.one > * { flex: none; }
.inq-item .m.one > .tm { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* 放不下时先压缩时间 */
.inq-item .m.one > .who { flex: 0 1 auto; min-width: 3.6em; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 3px; }
.inq-item .m.one > .who > span { overflow: hidden; text-overflow: ellipsis; }
.inq-item .m .ct { display: inline-flex; align-items: center; gap: 6px; }
.c-icons { display: inline-flex; align-items: center; gap: 4px; }
.c-icons .ci { width: 18px; height: 18px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--line-2); color: var(--ink-2); }
.c-icons .ci-wa { background: #dcfce7; color: #16a34a; }
.c-icons .ci-wechat { background: #dcfce7; color: #07c160; }
.c-icons .ci-phone { background: var(--brand-50); color: var(--brand); }
.c-icons .ci-mail { background: #fef3c7; color: #b45309; }
.c-icons .ci-wecom { background: #e0f2fe; color: #0369a1; }
.c-icons .wa { display: inline-flex; }
.src-chip { font-size: 10.5px; font-weight: 700; color: #0e7490; background: #cffafe; border-radius: 5px; padding: 0 5px; line-height: 17px; }
/* 头像右下角的客户等级 */
.avatar { position: relative; }
.av-lv { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; font-style: normal; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface); background: #eef0f4; color: var(--ink-2); }
.av-lv.lv-A { background: #fde8e8; color: #c0392b; }
.av-lv.lv-B { background: var(--amber-50); color: var(--amber); }
.av-lv.lv-C { background: var(--brand-50); color: var(--brand); }
.wide-only { display: none; }
@media (min-width: 900px) {
  .wide-only { display: inline; }
  .narrow-only { display: none; }
}
.urg { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border-radius: 6px; padding: 1px 6px; }
.urg.soon { color: var(--amber); background: var(--amber-50); }
.urg.late { color: var(--red); background: var(--red-50); }
.urg.calm { color: var(--ink-3); background: var(--line-2); font-weight: 500; }
/* 首页卡片：下一步 + 一键联系 */
.inq-item .d.need { color: var(--ink); }
.ic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; min-height: 30px; font-size: var(--fs-xs); }
.nx { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.nx-todo { color: var(--brand-600); background: var(--brand-50); }
.nx-today { color: #0b7a3b; background: var(--green-50); }
.nx-late { color: var(--red); background: var(--red-50); }
.nx-warn { color: #9a5300; background: var(--amber-50); }
.nx-plan { color: var(--ink-3); background: var(--line-2); font-weight: 500; }
.ic-row .urg { height: 24px; font-size: var(--fs-xs); }
.qa { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 15px;
  color: var(--brand); background: var(--brand-50); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.qa .van-icon { font-size: 15px; }
.qa:active { transform: scale(.92); background: var(--brand-100); }
.qa.wide { padding: 0 10px; }
.inq-item .m .lc { color: var(--ink-3); }
.inq-item .m .ok { color: var(--green); font-weight: 600; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.link-btn { font-size: var(--fs-xs); color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.link-btn.danger { color: var(--red); }
.link-btn.primary { color: var(--brand); font-weight: 600; }
.link-btn:active { background: var(--line-2); }

/* 骨架屏 */
.skel { background: var(--surface); margin: 10px 12px; border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh-1); }
.skel i { display: block; height: 12px; border-radius: 6px; margin: 8px 0; background: linear-gradient(90deg, #eef0f4 0%, #f7f8fa 50%, #eef0f4 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel i:first-child { width: 40%; height: 16px; } .skel i:nth-child(2) { width: 75%; } .skel i:nth-child(3) { width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------- 详情页 ---------------- */
.hero { background: radial-gradient(120% 140% at 100% 0%, #3a4f93 0%, #222c48 45%, #1c2333 100%); color: #fff; padding: 18px 16px 20px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .04); }
.hero .name { font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; }
.hero .demand { margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: var(--fs-sm); }
.hero .tip { margin-top: 14px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 10px 12px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .9); }
.hero .pill { background: rgba(255, 255, 255, .14); color: #fff; }
.hero .pill.s-pending { background: rgba(217, 119, 6, .9); }
.hero .pill.s-won { background: rgba(18, 161, 80, .9); }
.hero .pill.s-late { background: rgba(229, 72, 77, .95); }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown.soon { color: #ffd28a; }
.countdown.late { color: #ffb4b6; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; font-size: var(--fs-sm); align-items: center; }
.kv .k { color: var(--ink-3); }
.kv > span:nth-child(even) { color: var(--ink); min-width: 0; word-break: break-all; }
.step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step:first-child { padding-top: 0; }
.step .no { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: var(--fs-xs); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.copybox { margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 8px 8px 8px 12px; display: flex; align-items: center; gap: 8px; }
.copybox .txt { flex: 1; word-break: break-all; font-size: var(--fs-sm); color: var(--ink); }
.copy-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--brand); background: var(--surface); border: 1px solid var(--brand-100); cursor: pointer; transition: all var(--t-mid) var(--ease); }
.copy-btn:active { transform: scale(.94); }
.copy-btn.done { color: #fff; background: var(--green); border-color: var(--green); }
.copy-btn.mini { height: 24px; padding: 0 8px; border-radius: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--line-2); position: relative; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.thumb:active { transform: scale(.96); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; top: 3px; right: 3px; background: rgba(28, 35, 51, .6); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.thumb.file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; background: var(--brand-50); color: var(--brand); border: 1px solid rgba(53, 84, 209, .18); }
.thumb.file .fn { font-size: 10px; line-height: 1.25; color: var(--ink-2); text-align: center; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb.add { display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--ink-3); border: 1.5px dashed #cdd2dc; background: var(--bg); font-size: var(--fs-xs); gap: 4px; }
.big-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big-btns .van-button { height: 46px; font-size: var(--fs-md); }
.friend-btns .van-button { transition: background var(--t-fast, .15s), color var(--t-fast, .15s), border-color var(--t-fast, .15s); }
.friend-btns .van-button.cur { font-weight: 600; box-shadow: var(--sh-1); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline { position: relative; padding-left: 14px; }
.tl-item { position: relative; padding: 0 0 16px 14px; border-left: 2px solid var(--line-2); }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #c9ced8; box-shadow: 0 0 0 3px var(--surface); }
.tl-item.followup::before { background: var(--brand); }
.tl-item.friend::before { background: var(--green); }
.tl-item .h { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-item .b { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink); white-space: pre-wrap; word-break: break-all; }
/* 跟进批注 */
.fn-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fn-list > .fn { background: #fff8eb; border: 1px solid #f6e3bd; border-radius: 10px; padding: 8px 10px; }
.fn-list > .fn.new { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(245, 158, 11, .15); }
.fn-h { font-size: var(--fs-xs); color: var(--ink-3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fn-h b { color: #9a5b00; font-weight: 600; }
.fn-new { background: var(--red, #e5484d); color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px; padding: 0 6px; }
.fn-st { margin-left: auto; color: var(--ink-3); }
.fn-st.ok { color: var(--green); }
.fn-b { margin-top: 3px; font-size: var(--fs-sm); color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.fn-r { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #f0dcb3; font-size: var(--fs-sm); color: var(--ink-2); word-break: break-all; }
.fn-r .tm { margin-left: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.fn-ops { margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.fn-del { font-size: var(--fs-xs); color: var(--ink-3); margin-left: 8px; cursor: pointer; }
.fn-ops .fn-del { margin-left: auto; }
.fn-add { margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--brand); cursor: pointer; padding: 2px 0; }
.tl-edited { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 6px; font-size: 10px; line-height: 16px; color: var(--ink-3); background: var(--bg); vertical-align: 1px; }
.tl-ops { margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.tl-ops .fn-add { margin-top: 0; }
.tl-op { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--brand); cursor: pointer; padding: 2px 0; }
.tl-op.danger { color: var(--red, #e5484d); }
.tl-op:active { opacity: .65; }
.fn-quote { background: var(--bg, #f5f6f8); border-radius: 8px; padding: 8px 10px; font-size: var(--fs-sm); color: var(--ink-2); max-height: 80px; overflow: auto; white-space: pre-wrap; }
.fn-badge { flex: none; margin-left: 6px; background: var(--amber); color: #fff; border-radius: 8px; font-size: 11px; line-height: 18px; padding: 0 6px; font-weight: 500; }

.banner { margin: 12px; border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-sm); line-height: 1.6; }
.banner.blue { background: var(--brand-50); color: var(--brand-600); }
.banner.orange { background: var(--amber-50); color: #9a5300; }
.banner.red { background: var(--red-50); color: #b42318; }
.banner.green { background: var(--green-50); color: #0b7a3b; }

/* 详情页头部快捷操作 */
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; white-space: nowrap; flex: none; border-radius: 17px; font-size: var(--fs-sm); color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.hero-act:active { transform: scale(.95); background: rgba(255, 255, 255, .2); }

/* 底部固定操作条（详情页主要操作） */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); display: flex; gap: 10px; }
.action-bar .van-button { flex: 1; height: 46px; font-size: var(--fs-md); }
.action-bar .van-button.grow2 { flex: 2; }

/* ---------------- 弹出层 ---------------- */
.sheet { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 86vh; overflow-y: auto; }
.sheet-title { font-size: var(--fs-lg); font-weight: 600; text-align: center; margin-bottom: 12px; position: relative; padding-top: 4px; }
.sheet-title::before { content: ""; position: absolute; top: -12px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
.sheet .foot { margin-top: 20px; }
.van-popup--bottom.van-popup--round { border-radius: 20px 20px 0 0; }
.van-popup--bottom.van-popup--round::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #dcdfe6; }

/* ---------------- 看板 ---------------- */
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px; }
.hero-stat { background: var(--surface); border-radius: var(--r-md); padding: 14px; box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.hero-stat .v { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero-stat .l { font-size: var(--fs-xs); color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.hero-stat.brand { background: linear-gradient(135deg, var(--brand), #4b6bea); color: #fff; }
.hero-stat.brand .l { color: rgba(255, 255, 255, .75); }
.hero-stat.brand .help { border-color: rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .8); }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 12px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); }
.stat-card { background: var(--surface); padding: 12px 14px; box-shadow: 1px 0 0 var(--line-2), 0 1px 0 var(--line-2); }
.stat-card .v { font-size: var(--fs-lg); font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-card .l { font-size: var(--fs-xs); color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.chart { width: 100%; height: 280px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); background: var(--surface); font-variant-numeric: tabular-nums; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--line-2); padding: 10px 10px; text-align: left; white-space: nowrap; }
table.tbl th { background: var(--bg); font-weight: 600; color: var(--ink-2); font-size: var(--fs-xs); position: sticky; top: 0; }
table.tbl tr { transition: background var(--t-fast); }
table.tbl tbody tr:hover td { background: #f8f9fd; }
.help { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #c4c9d4; color: var(--ink-3); font-size: 10px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------------- 管理 ---------------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px; }
.menu-grid .it { background: var(--surface); border-radius: var(--r-md); padding: 18px 6px 14px; text-align: center; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2);
  box-shadow: var(--sh-1); transition: transform var(--t-fast) var(--ease); }
.menu-grid .it:active { transform: scale(.96); }
.menu-grid .it .ic { width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.profile { display: flex; align-items: center; gap: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); gap: 10px; }
.set-row:last-child { border-bottom: none; }
.set-row .lb { flex: 1; }
.set-row .lb .muted { margin-top: 2px; }
.num { width: 76px; text-align: center; }
.inline-inp { width: 128px; flex-shrink: 0; }
.row > .van-button { flex-shrink: 0; }
.chart-empty { height: 240px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }

/* ---------------- 登录 ---------------- */
.login-wrap { min-height: 100vh; background: radial-gradient(90% 60% at 100% 0%, #dfe5fb 0%, rgba(223, 229, 251, 0) 60%), radial-gradient(70% 50% at 0% 100%, #fbeedd 0%, rgba(251, 238, 221, 0) 60%), var(--bg); }
.brand-mark { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), #5a7af0); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; margin: 0 auto 14px; box-shadow: 0 10px 24px rgba(53, 84, 209, .28); }

/* ---------------- 开发工具 ---------------- */
.msg { background: var(--surface); border-radius: var(--r-md); margin: 8px 12px; padding: 12px; border-left: 3px solid #c9ced8; box-shadow: var(--sh-1); }
.msg.textcard { border-left-color: var(--brand); }
.msg.button_card { border-left-color: var(--amber); }
.msg .mh { font-size: var(--fs-xs); color: var(--ink-3); display: flex; justify-content: space-between; }
.msg .mt { font-weight: 600; margin: 6px 0; }
.msg .desc div { margin: 2px 0; font-size: var(--fs-sm); }
.msg .desc .gray { color: var(--ink-3); }
.msg .desc .highlight { color: var(--red); }
.msg .items { font-size: var(--fs-sm); color: var(--ink-2); margin: 6px 0; }
.dev-badge { position: fixed; right: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 100; background: rgba(28, 35, 51, .78); color: #fff; border-radius: 12px; font-size: 11px;
  padding: 3px 9px; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .8; }

/* ---------------- 页面切换动效 ---------------- */
.page-enter-active { transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.page-leave-active { transition: opacity 90ms linear; }
.page-enter-from { opacity: 0; transform: translateY(8px); }
.page-leave-to { opacity: 0; }
.list-enter-active { transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.list-enter-from { opacity: 0; transform: translateY(6px); }

/* 系统设置为“减少动态效果”时关闭所有动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------------- 电脑端：左侧导航栏 + 宽版布局 ---------------- */
@media (min-width: 1024px) {
  html, body { font-size: 14px; }
  .page { padding-left: 96px; max-width: 1180px; padding-bottom: 32px; }
  .page.no-tab { padding-left: 0; }
  .page.wide { max-width: 1300px; }
  .van-tabbar { position: fixed !important; left: 0 !important; top: 0; bottom: 0 !important; right: auto !important; width: 84px; height: auto !important; flex-direction: column;
    justify-content: flex-start; padding-top: 24px; gap: 4px; background: var(--ink); transform: none !important; max-width: none !important; }
  .van-tabbar::after { display: none; }
  .van-tabbar__placeholder { height: 0 !important; }
  .van-tabbar-item { flex: none; height: 68px; margin: 0 10px; border-radius: 12px; color: rgba(255, 255, 255, .55); background: transparent; transition: background var(--t-fast); }
  .van-tabbar-item:hover { background: rgba(255, 255, 255, .06); }
  .van-tabbar-item--active { color: #fff !important; background: rgba(255, 255, 255, .12) !important; }
  .stat-cards { grid-template-columns: repeat(5, 1fr); }
  .stat-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(6, 1fr); }
  .list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; align-items: start; }
  .detail-grid > .col-main, .detail-grid > .col-side { display: flex; flex-direction: column; }
  .more-btn { display: none !important; }
  .detail-grid .col-side { position: sticky; top: 56px; }
  .page.has-bar { padding-bottom: 32px; }
  .action-bar { position: static; margin: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .action-bar .van-button { height: 44px; }
  .kpis { max-width: none; grid-template-columns: repeat(var(--kc, 3), minmax(0, 220px)); }
  .hero { border-radius: var(--r-lg); margin: 12px; }
}
.van-search__content { box-shadow: var(--sh-1); transition: box-shadow var(--t-fast); }
.van-search__content:focus-within { box-shadow: 0 0 0 2px rgba(53, 84, 209, .25), var(--sh-1); }

/* ---------------- 分配链路 ---------------- */
.chain { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 2px; margin: 0 -4px; }
.chain::-webkit-scrollbar { display: none; }
.chain-node { flex: 1 1 0; min-width: 54px; max-width: 84px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: chainIn .35s var(--ease, ease) both; }
.chain-node .nm { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.chain-node .lb { font-size: 11px; color: var(--ink-3); }
.chain-node .tm { font-size: 10px; line-height: 1.3; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chain-node.cur .nm { color: var(--brand); }
.chain-node.cur .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.chain-arrow { flex: 1 1 24px; min-width: 14px; max-width: 64px; position: relative; height: 32px; display: flex; align-items: center; justify-content: center; }
.chain-arrow i { position: absolute; left: 2px; right: 2px; top: 16px; height: 1.5px; background: var(--line); }
.chain-arrow i::after { content: ""; position: absolute; right: -1px; top: -3.5px; border: 4px solid transparent; border-left: 6px solid var(--line); border-right: 0; }
.chain-arrow .gap { position: absolute; top: 0; font-size: 10px; color: var(--ink-3); background: var(--surface); padding: 0 3px; white-space: nowrap; z-index: 1; }
.chain-tail { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
.chain-line { font-size: var(--fs-xs); color: var(--ink-2); margin: 8px 0 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@keyframes chainIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 经理分配面板 */
.alloc-card { box-shadow: inset 0 0 0 1.5px var(--amber), var(--sh-1); }
.alloc-opt { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background var(--t-fast, .15s); }
.alloc-opt:first-of-type { border-top: 0; }
.alloc-opt:active, .alloc-opt:hover { background: var(--bg, #f3f4f7); }
.alloc-opt.self .bold { color: var(--brand); }
.delegate-box { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--amber-50); }

/* ---------------- 下拉选择（底部弹出面板） ---------------- */
.pick { min-width: 0; }
.pick-field { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; user-select: none; transition: border-color var(--t-fast, .15s), background var(--t-fast, .15s), box-shadow var(--t-fast, .15s); font-size: var(--fs-md); color: var(--ink); }
.pick-field:hover { border-color: #c9cfdc; }
.pick-field:active { transform: scale(.985); }
.pick-field:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(53, 84, 209, .18); }
.pick-field.set { border-color: rgba(53, 84, 209, .45); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.pick-val { flex: 1; min-width: 0; }
.pick-ic { color: var(--ink-3); font-size: 16px; }
.pick-field.set .pick-ic { color: var(--brand); }
.pick-arrow { color: var(--ink-3); font-size: 14px; transition: transform var(--t-fast, .15s); }
.pick-field.set .pick-arrow { color: var(--brand); }
.pick-pop { max-height: 72vh; display: flex; flex-direction: column; overflow: hidden; }
.pick-pop.wide { width: 420px; max-height: 70vh; border-radius: 16px; }
.pick-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 16px 48px 10px; font-size: var(--fs-lg); font-weight: 600; color: var(--ink); flex: none; }
.pick-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
.pick-pop.wide .pick-head::before { display: none; }
.pick-close { position: absolute; right: 14px; top: 50%; transform: translateY(-40%); font-size: 18px; color: var(--ink-3); padding: 6px; cursor: pointer; border-radius: 50%; }
.pick-close:hover { background: #f1f3f7; }
.pick-search { flex: none; padding: 0 4px; }
.pick-list { overflow-y: auto; padding: 4px 12px calc(14px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.pick-opt { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: background var(--t-fast, .15s); }
.pick-opt + .pick-opt { margin-top: 2px; }
.pick-opt:hover { background: #f5f6f9; }
.pick-opt:active { background: #eef0f5; }
.pick-opt.on { background: var(--brand-50); }
.pick-opt.on .pick-label { color: var(--brand); font-weight: 600; }
.pick-opt.all .pick-label { color: var(--ink-2); }
.pick-label { font-size: var(--fs-md); color: var(--ink); }
.pick-sub { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.pick-check { color: var(--brand); font-size: 18px; animation: pickIn .2s ease both; }
.pick-empty { text-align: center; color: var(--ink-3); padding: 28px 0; font-size: var(--fs-sm); }
@keyframes pickIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* 客户等级小标签 */
.lvl { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.lvl-A { background: #fde8e8; color: #c0392b; }
.lvl-B { background: var(--amber-50); color: var(--amber); }
.lvl-C { background: var(--brand-50); color: var(--brand); }
.lvl-D, .lvl-x { background: #eef0f4; color: var(--ink-3); }
.hero .lvl { margin-left: 6px; vertical-align: 2px; }


/* 客户详情 / 公海 / 导入 */
.cust-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 0; }
.cust-stats > div { text-align: center; min-width: 0; padding: 0 4px; }
.cust-stats > div + div { box-shadow: -1px 0 0 rgba(255, 255, 255, .1); }
.cust-stats b { display: block; font-size: var(--fs-md); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-stats span { display: block; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .62); }
.cust-inq { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; transition: background .15s; }
.cust-inq + .cust-inq { border-top: 1px solid var(--line-2, #f0f1f4); }
.cust-inq:active { background: var(--bg, #f5f6f8); }
.cust-inq .small { font-size: var(--fs-xs); margin-top: 3px; }
.imp-problems { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); }
.imp-row { display: grid; grid-template-columns: 64px minmax(60px, 120px) 1fr; gap: 8px; padding: 8px 10px; font-size: var(--fs-sm); align-items: baseline; }
.imp-row + .imp-row { border-top: 1px solid var(--line); }
.imp-row .danger { color: var(--red); }
.cust-tabs { padding: 4px 0 0; overflow: hidden; }
.cust-tabs .van-tabs__wrap, .cust-tabs .van-tabs__nav { background: transparent; }
.cust-tabs .van-tabs__wrap { border-bottom: 1px solid var(--line-2); }

/* AI 背调 */
.rs-card .rs-ic { color: var(--brand); font-size: 18px; }
.rs-running { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: var(--fs-sm); padding: 6px 0; }
.rs-summary { font-size: var(--fs-md); line-height: 1.75; color: var(--ink-1, #1a2033); }
.rs-summary.notfound { color: var(--ink-2); }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin: 0 1px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-size: 10px; font-weight: 600; vertical-align: 2px; text-decoration: none; }
.rs-risks { margin-top: 10px; background: var(--amber-50); border-radius: var(--r-sm); padding: 8px 12px; }
.rs-risk { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; color: #9a5300; }
.rs-risk .van-icon { margin-top: 3px; flex: none; }
.rs-level { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.rs-level .flex1 { min-width: 0; }
.rs-sources { display: flex; flex-direction: column; }
.rs-src { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-2); color: var(--ink-1, #1a2033); font-size: var(--fs-sm); text-decoration: none; }
.rs-src b { color: var(--ink-3); font-weight: 600; text-align: center; }
.rs-src.cited b { color: var(--brand); }
.rs-src .small { max-width: 140px; }
.rs-foot { margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-3); }
.sheet-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 700; color: var(--brand); letter-spacing: 1px; }
.sheet-sub.first { margin-top: 0; padding-top: 0; border-top: none; }
.hist-row { padding: 10px 0; line-height: 1.7; }
.hist-row + .hist-row { border-top: 1px solid var(--line-2); }

/* 沟通摘要 */
.sum-row { padding: 8px 0; }
.sum-row + .sum-row { border-top: 1px dashed var(--line-2); }
.sum-l { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.sum-l .van-icon { color: #d97706; font-size: 14px; }
.sum-row.next .sum-l .van-icon { color: var(--brand); }
.sum-tag { margin-left: 4px; font-weight: 400; font-size: 10px; padding: 0 6px; border-radius: 8px; background: var(--line-2); color: var(--ink-3); }
.sum-v { margin-top: 3px; font-size: var(--fs-md); line-height: 1.7; color: var(--ink-1, #1a2033); }
.sum-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-3); }
.sum-first { margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--r-sm); font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }

/* 统计：分布图（手机上一行一个，电脑上并排） */
.dist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin: 0 12px; }
.dist-legend { margin-top: 6px; display: flex; flex-direction: column; }
.dl-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 52px; align-items: center; gap: 8px; padding: 7px 0; font-size: var(--fs-sm); }
.dl-row + .dl-row { border-top: 1px solid var(--line-2); }
.dl-row i { width: 10px; height: 10px; border-radius: 3px; }
.dl-n { color: var(--ink-1, #1a2033); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-v { font-weight: 600; color: var(--ink-1, #1a2033); }
.dl-p { text-align: right; color: var(--ink-3); }

/* 放假时间段 */
.hp-row .lb b { color: var(--ink); }
.hp-add { margin-top: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }

/* 非工作时间处理 */
.oh-rank { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.oh-rank:last-child { border-bottom: 0; }
.oh-rank .no { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.oh-rank .n { font-weight: 600; color: var(--green); }
.oh-pend { font-size: 11px; color: #fff; background: var(--amber); border-radius: 8px; padding: 0 6px; line-height: 18px; }
.oh-item .row { gap: 8px; }
.oh-kind { flex: none; font-size: 12px; border-radius: 6px; padding: 1px 6px; }
.oh-kind.blue { background: var(--brand-50); color: var(--brand); }
.oh-kind.amber { background: var(--amber-50); color: var(--amber); }
.oh-kind.red { background: var(--red-50); color: var(--red); }
.oh-st { flex: none; font-size: 12px; color: var(--ink-3); }
.oh-st.ok, .oh-st.approved { color: var(--green); }
.oh-st.pending, .oh-st.check { color: var(--amber); }
.oh-st.rejected { color: var(--ink-3); text-decoration: line-through; }
.oh-item b.ok { color: var(--green); }
.oh-flags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.oh-flags span { font-size: 11px; background: var(--amber-50); color: var(--amber); border-radius: 6px; padding: 1px 6px; }
.oh-ops { gap: 6px; }
.mt4 { margin-top: 4px; }
.hp-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.hp-dates .inp { min-width: 0; width: 100%; padding-left: 8px; padding-right: 4px; }
.fest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fest { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.fest .nm { flex: 1; font-weight: 600; font-size: var(--fs-sm); min-width: 0; line-height: 1.35; }
.fest > .small { flex: none; }
.work-time > span { flex: none; white-space: nowrap; }
.work-time .inline-inp { flex: 1; min-width: 0; }
.fest .nm .small { font-weight: 400; font-size: 11px; }
.fest .inp.num { width: 52px; padding: 6px; text-align: center; }
.hp-adj { font-size: 11px; color: var(--amber); background: var(--amber-50); border-radius: 6px; padding: 0 5px; margin-left: 4px; }

/* 重点关注 */
/* 询盘详情：客户需求卡片 */
.need-card .card-title { margin-bottom: 6px; }
.need-origin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 10px; }
.need-origin .no-chip { font-weight: 600; color: var(--ink-2); background: var(--line-2); border-radius: 6px; padding: 1px 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need-origin .no-chip.o-report { color: var(--amber); background: var(--amber-50); }
.need-origin .no-chip.o-rocdesk { color: #0e7490; background: #cffafe; }
.need-origin .no-chip.o-dispatch { color: var(--brand); background: var(--brand-50); }
.need-text { font-size: var(--fs-md); line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.need-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; position: relative; }
.need-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; font-size: var(--fs-sm); color: var(--brand); cursor: pointer; padding: 4px 0; user-select: none; }
.need-kv { align-items: start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.need-kv .pre { white-space: pre-wrap; word-break: break-word; }
.need-hint { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-size: var(--fs-sm); line-height: 1.5; }
.need-hint .van-icon { margin-top: 2px; flex: none; }
.need-sub { margin: 14px 0 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; }
/* 询盘详情：手机上两栏合成一列，按询盘阶段排序（order 由页面按“刚派单/跟进中/已关闭”给出） */
@media (max-width: 1023px) {
  .detail-grid { display: flex; flex-direction: column; }
  .detail-grid > .col-main, .detail-grid > .col-side { display: contents; }
  .more-card.hide-m { display: none; }
  /* 弹性布局里上下外边距不会合并：只留下边距，间距和原来一致 */
  .detail-grid .card, .detail-grid .banner { margin-top: 0; }
  .detail-grid .hero { margin-bottom: 12px; }
}
.action-bar .more-btn { flex: 0 0 auto; padding: 0 16px; }
.hero-acts .watch-btn { margin-left: auto; align-self: center; }
.hero .tip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.hero .tip-row > span { display: inline-flex; align-items: center; gap: 4px; }
.hero .tip-row .late { color: #fca5a5; font-weight: 600; }
.hero .tip-flex { display: flex; align-items: center; gap: 10px; }
/* 进展条：已联系 → 已报价 → 验机 → 成交 */
.prog { margin-top: 14px; position: relative; z-index: 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 6px 0; }
.prog-steps { display: flex; }
.ps { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 2px; }
.ps::before { content: ""; position: absolute; top: 8px; left: calc(-50% + 12px); right: calc(50% + 12px); height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .16); }
.ps:first-child::before { display: none; }
.ps.done::before { background: linear-gradient(90deg, #8ea2ff, #b7c3ff); }
.ps.lost::before { background: repeating-linear-gradient(90deg, rgba(248, 113, 113, .75) 0 4px, transparent 4px 8px); }
.ps-dot { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .28); background: transparent; color: #1c2333; font-size: 11px; font-style: normal; transition: transform var(--t-mid) var(--ease); }
.ps.done .ps-dot { border-color: #b7c3ff; background: #b7c3ff; }
.ps.cur .ps-dot { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(183, 195, 255, .22); }
.ps.won .ps-dot { border-color: #4ade80; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .22); }
.ps.lost .ps-dot { border-color: #f87171; background: #f87171; color: #fff; box-shadow: 0 0 0 4px rgba(248, 113, 113, .2); }
.ps-l { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.3; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ps.done .ps-l { color: rgba(255, 255, 255, .92); }
.ps.cur .ps-l { color: #fff; font-weight: 700; }
.ps.lost .ps-l { color: #fca5a5; }
.ps-d { font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .5); min-height: 15px; }
.ps-a { font-size: 12px; font-weight: 700; line-height: 1.35; color: #fcd679; white-space: nowrap; }
.ps.won .ps-a { color: #86efac; }
.prog-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px -6px 0; padding: 9px 12px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .9); }
.prog-foot > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.prog-foot .pf-main { flex: 1 1 auto; }
.prog-foot .late { color: #fca5a5; font-weight: 600; }
.prog-foot .dim { color: rgba(255, 255, 255, .55); }
.prog-foot .pf-owner { color: rgba(255, 255, 255, .72); }
/* 提醒负责人 */
.nudge-btn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 14px; cursor: pointer; white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 600; color: #3b1d00; background: #fcd679; box-shadow: 0 2px 8px rgba(252, 214, 121, .25);
  transition: transform var(--t-fast, .12s) var(--ease), opacity var(--t-mid) var(--ease); -webkit-tap-highlight-color: transparent; }
.nudge-btn:active { transform: scale(.94); }
.nudge-btn.busy { opacity: .6; pointer-events: none; }
.nudge-btn.done { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78); box-shadow: none; font-weight: 500; }
.nudge-btn .van-icon { font-size: 13px; }
.nudge-btn:not(.done) .van-icon { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .nudge-btn .van-icon { animation: none !important; } }
.tl-item.system .b { color: var(--ink-3); font-size: var(--fs-xs); }
.tl-item.system .h { opacity: .8; }
.tl-more { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; padding: 10px 0 2px; border-top: 1px dashed var(--line); color: var(--brand); font-size: var(--fs-sm); cursor: pointer; }
.src-tag { flex: none; display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #0e7490; background: #cffafe; border: 1px solid #67e8f9; border-radius: 6px; padding: 0 5px; line-height: 16px; vertical-align: middle; }
.chain-node .origin-ic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #06b6d4, #0e7490); }
.chain-node.origin .nm { color: #0e7490; }
.rd-map { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px 10px; align-items: center; }
.rd-map .nm { font-size: 14px; }
.rd-map .nm small { color: var(--ink-3); margin-left: 4px; }
.rd-row { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.rd-row:last-child { border-bottom: 0; }
.rd-row .r1 { display: flex; gap: 8px; align-items: center; }
.rd-row .r2 { margin-top: 3px; color: var(--ink-3); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.rd-chip { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 5px; line-height: 17px; background: #f1f5f9; color: #475569; }
.rd-chip.ok { background: #dcfce7; color: #15803d; }
.ai-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #6d28d9; background: #ede9fe; border-radius: 4px; padding: 0 4px; line-height: 15px; vertical-align: 1px; cursor: help; }
.key-tag { flex: none; margin-left: 6px; font-size: 11px; font-weight: 600; color: #b45309; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 6px; padding: 0 5px; line-height: 17px; vertical-align: middle; }
.watch-row { position: relative; z-index: 1; margin-top: 8px; display: flex; justify-content: flex-end; }
.watch-row { margin-top: 4px; }
.watch-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.watch-btn.on { color: #fcd34d; border-color: rgba(252,211,77,.6); background: rgba(252,211,77,.12); }
.w-risks { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.w-risks span { font-size: 11px; color: var(--red); background: var(--red-50); border-radius: 6px; padding: 1px 6px; }
.w-line { margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.w-line b { color: var(--ink-3); font-weight: 500; margin-right: 4px; }

/* ================= 视觉细节优化（2026-10） ================= */
/* 管理界面：分组、两行文字，桌面多列 */
.menu-sec { margin: 14px 12px 4px; }
.menu-sec-t { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; letter-spacing: .04em; margin: 0 4px 8px; }
.menu-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.menu-list .mi { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--sh-1); color: var(--ink);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.menu-list .mi:active { transform: scale(.985); }
.menu-list .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.menu-list .tx { flex: 1; min-width: 0; }
.menu-list .t { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.menu-list .s { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-list .go { color: #c3c8d4; font-size: 14px; }
@media (min-width: 900px) {
  .menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-list .mi:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
  .menu-sec { margin: 18px 12px 4px; }
  /* 首页数字卡片和搜索框、列表对齐 */
  .kpis { grid-template-columns: repeat(var(--kc, 3), minmax(0, 1fr)); padding: 12px 12px 4px; }
  /* 列表卡片悬停反馈 */
  .inq-item { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
  .inq-item:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
}
/* 时间线：下次跟进日期不被拆行 */
.tl-item .b .nd { display: inline-block; white-space: nowrap; margin-left: 8px; }
/* 添加指引折叠 */
.guide-head { cursor: pointer; user-select: none; }
.fold-btn { font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }
.guide-folded .card-title { margin-bottom: 0; }
/* van-cell 没有右侧内容时不占位（避免说明文字被挤成两行） */
.van-cell__value:empty { display: none; }
/* 登录页标签栏背景透明，和渐变背景融为一体 */
.login-wrap .van-tabs__wrap, .login-wrap .van-tabs__nav { background: transparent !important; }
/* 关注按钮：点亮时星星轻弹一下 */
.watch-btn .van-icon { transition: transform var(--t-mid) var(--ease); }
.watch-btn.on .van-icon { animation: starPop .32s var(--ease); }
@keyframes starPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* 键盘操作时的焦点框（电脑端） */
a:focus-visible, button:focus-visible, .chip:focus-visible, .inq-item:focus-visible, .mi:focus-visible { outline: 2px solid rgba(53, 84, 209, .45); outline-offset: 2px; }
/* 上传：PDF 标识、拖拽高亮 */
.pdf-ic { font-size: 11px; font-weight: 700; color: #fff; background: #e5484d; border-radius: 4px; padding: 1px 5px; letter-spacing: .02em; }
.drop-on .thumbs { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 10px; background: var(--brand-50); }
/* 文件附件方块：加宽，文件名显示开头和结尾（能看到是什么文件） */
.thumb.file { width: 136px; }

/* ---------- 客户详情 v1.9.9 ---------- */
.cust-stats b.late { color: #fca5a5; }
.cur-card { cursor: pointer; transition: box-shadow var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
.cur-card:active { transform: scale(.995); }
.cur-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cur-lbl { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); background: var(--brand-50); border-radius: 6px; padding: 2px 7px; }
.cur-title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: var(--fs-md); }
.cur-owner { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-sm); color: var(--ink-3); }
.prog.light { background: none; border: 0; padding: 0; margin-top: 14px; }
.prog.light .ps::before { background: var(--line); }
.prog.light .ps.done::before { background: var(--brand); }
.prog.light .ps.lost::before { background: repeating-linear-gradient(90deg, rgba(229, 72, 77, .7) 0 4px, transparent 4px 8px); }
.prog.light .ps-dot { border-color: #cfd5e3; color: #fff; }
.prog.light .ps.done .ps-dot { border-color: var(--brand); background: var(--brand); }
.prog.light .ps.cur .ps-dot { box-shadow: 0 0 0 4px var(--brand-100); }
.prog.light .ps.won .ps-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(18, 161, 80, .16); }
.prog.light .ps.lost .ps-dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.prog.light .ps-l { color: var(--ink-3); }
.prog.light .ps.done .ps-l { color: var(--ink-2, #3b4256); }
.prog.light .ps.cur .ps-l { color: var(--ink, #1c2333); }
.prog.light .ps.lost .ps-l { color: var(--red); }
.prog.light .ps-d { color: var(--ink-3); }
.prog.light .ps-a { color: #b7791f; }
.prog.light .ps.won .ps-a { color: var(--green); }
.cur-wait { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg, #f5f6f8); font-size: var(--fs-sm); color: var(--ink-2, #3b4256); }
.cur-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2, #f0f1f4); font-size: var(--fs-sm); }
.cf-next { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2, #3b4256); }
.cf-next.late { color: var(--red); font-weight: 600; }
.cur-foot .nudge-btn { margin-left: 0; }
.cur-foot .nudge-btn.done { background: var(--bg, #f5f6f8); color: var(--ink-3); }
.cf-go { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); background: var(--brand-50); }
.cf-go.primary { color: #fff; background: var(--brand); box-shadow: 0 2px 8px rgba(53, 84, 209, .25); }
.ci-meta { margin: -4px 0 10px; font-size: var(--fs-xs); color: var(--ink-3); }
.fill-btn { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 10px; border-radius: 12px; border: 1px dashed var(--brand-100); color: var(--brand); font-size: var(--fs-xs); cursor: pointer; }
.fill-btn:active { background: var(--brand-50); }
.lv-pick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lv-opt { min-width: 30px; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.lv-opt:active { transform: scale(.94); }
.lv-opt.on { border-color: transparent; }
.prod-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.prod-tag { padding: 1px 8px; border-radius: 10px; background: var(--bg, #f5f6f8); color: var(--ink-2, #3b4256); font-size: var(--fs-xs); line-height: 20px; }
.tl-inq { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--brand-50); color: var(--brand); font-size: 11px; cursor: pointer; white-space: nowrap; }
.rs-mini { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.rs-mini .rs-ic { color: var(--ink-3); font-size: 16px; }
.rs-mini b { flex: none; font-size: var(--fs-sm); color: var(--ink-2, #3b4256); }
.cf-acts { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; }
.cur-foot.bare { border-top: 0; padding-top: 0; }
/* ---------- v1.9.10 两个详情页统一 ---------- */
/* 顶部客户名：整块可点进客户档案 */
.hero-id { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; border-radius: 14px; margin: -4px; padding: 4px; transition: background var(--t-mid) var(--ease); -webkit-tap-highlight-color: transparent; }
.hero-id:active { background: rgba(255, 255, 255, .06); }
.hero-go { flex: none; font-size: 14px; color: rgba(255, 255, 255, .45); transition: transform var(--t-mid) var(--ease), color var(--t-mid); }
@media (hover: hover) { .hero-id:hover .hero-go { transform: translateX(3px); color: rgba(255, 255, 255, .85); } .hero-id:hover .name { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; } }
.no-name { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: 11px; line-height: 16px; vertical-align: 1px; color: #fde68a; background: rgba(253, 230, 138, .14); }
.pill-fade-enter-active, .pill-fade-leave-active { transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.pill-fade-enter-from, .pill-fade-leave-to { opacity: 0; transform: scale(.9); }
/* 批注等你回复 */
.note-alert { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 11px 12px; border-radius: var(--r-md, 14px); cursor: pointer;
  background: linear-gradient(100deg, #fff7e6 0%, #fffbf2 100%); border: 1px solid #fde3a7; box-shadow: 0 2px 10px rgba(217, 119, 6, .08); transition: transform var(--t-fast) var(--ease); }
.note-alert:active { transform: scale(.985); }
.na-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fdecc8; color: #b45309; font-size: 17px; position: relative; }
.na-ic::after { content: ""; position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff7e6; animation: pulse 1.8s ease-in-out infinite; }
.na-t { font-size: var(--fs-sm); font-weight: 600; color: #7c4a03; }
.na-c { margin-top: 1px; font-size: var(--fs-xs); color: #a16207; }
.na-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-xs); font-weight: 600; color: #b45309; }
.slide-down-enter-active, .slide-down-leave-active { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.slide-down-enter-from, .slide-down-leave-to { opacity: 0; transform: translateY(-6px); }
.fn.flash { animation: fn-flash 1.6s var(--ease); }
@keyframes fn-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(217, 119, 6, .45); } 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); } }
/* 跟进记录标题旁的“生成沟通摘要” */
.ai-gen { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: var(--fs-xs); font-weight: 500; color: #b45309; background: #fef6e4; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.ai-gen:active { transform: scale(.95); }
/* 老板/经理的底部按钮：写批注 · 提醒 · 更多 */
.action-bar .nudge-bar { flex: 0 0 auto; padding: 0 14px; border: 0; color: #3b1d00; background: #fcd679; font-weight: 600; box-shadow: 0 3px 10px rgba(252, 214, 121, .35); }
.action-bar .nudge-bar.done { background: var(--bg); color: var(--ink-3); box-shadow: none; font-weight: 500; }
.action-bar .nudge-bar .nb-in { display: inline-flex; align-items: center; gap: 4px; }
.action-bar .nudge-bar:not(.done) .van-icon { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@media (prefers-reduced-motion: reduce) { .na-ic::after, .action-bar .nudge-bar .van-icon, .fn.flash { animation: none !important; } }
@media (min-width: 1024px) { .note-alert { margin: 0 12px 12px; } }
.hero-name { display: flex; align-items: center; min-width: 0; }
.hero-name > .ellipsis { min-width: 0; flex: 0 1 auto; }
.hero-name > .lvl, .hero-name > .key-tag, .hero-name > .src-tag { flex: none; margin-left: 6px; }
.hero-name .hero-go { margin-left: 4px; }
.hero-name { overflow: hidden; }
.hero-name > .ellipsis { min-width: 0; }
.ab-manage .van-button { white-space: nowrap; }
.ab-manage .van-button.grow2 { flex: 1 1 auto; min-width: 0; }
@media (max-width: 360px) {
  .ab-manage { gap: 8px; }
  .ab-manage .more-btn { padding: 0 12px; }
  .ab-manage .more-btn .van-button__text { display: none; }
  .action-bar .nudge-bar { padding: 0 12px; }
  .hero-name .key-tag { display: none; }
}
/* ---------- 进展卡（两页共用） ---------- */
.pcard.clickable { cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease); }
.pcard.clickable:active { transform: scale(.995); }
@media (hover: hover) { .pcard.clickable:hover { box-shadow: var(--sh-2, 0 6px 20px rgba(28, 35, 51, .08)); } }
.pc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-title { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.pcard .prog.light { margin-top: 16px; }
.pcard .cf-next.ok { color: var(--green); }
.pcard .cf-next.ok b { color: var(--green); }
.pcard .cf-next.dim { color: var(--ink-3); }
.pc-hint { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(100deg, #f3f1ff 0%, #f7f5ff 100%); border: 1px solid #e2dcff; transition: transform var(--t-fast) var(--ease); }
.pc-hint:active { transform: scale(.985); }
.pc-hint-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e7e2ff; color: #6d4ce0; font-size: 15px; }
.pc-hint-t { font-size: var(--fs-sm); font-weight: 600; color: #4a3699; }
.pc-hint-e { margin-top: 1px; font-size: var(--fs-xs); color: #7c6bc2; }
.pc-hint-go { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 600; color: #fff; background: #6d4ce0; box-shadow: 0 2px 8px rgba(109, 76, 224, .28); }
.pc-hint-ai { display: inline-block; margin-left: 6px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 15px; font-weight: 700; color: #6d4ce0; background: #e7e2ff; vertical-align: 1px; }
/* ---------- 客户页“询盘”列表：每条带迷你进展 ---------- */
.cinq { position: relative; padding: 12px 16px 12px 18px; cursor: pointer; transition: background var(--t-fast); }
.cinq + .cinq { border-top: 1px solid var(--line-2); }
.cinq:active { background: var(--bg); }
.cinq.locked { cursor: default; }
.cinq::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.cinq.late::before { background: var(--red); }
.cinq.closed::before { background: var(--line); }
.cinq-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cinq-num { flex: none; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.cinq-t { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ink); }
.cinq.closed .cinq-t { color: var(--ink-2); font-weight: 500; }
.cinq-owner { flex: none; font-size: var(--fs-xs); color: var(--ink-3); }
.cinq-go { flex: none; font-size: 12px; color: var(--ink-3); }
.cinq-mid { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cinq-st { font-size: var(--fs-sm); font-weight: 600; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cinq-st.won { color: var(--green); }
.cinq-st.lost { color: var(--ink-3); font-weight: 500; }
.cinq-st.late { color: var(--red); }
.cinq-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.cinq-foot > span:first-child { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.cinq-foot .late { color: var(--red); font-weight: 600; }
.cinq-date { flex: none; color: var(--ink-3); }
.mini-prog { flex: none; display: inline-flex; align-items: center; }
.mini-prog i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #d5dae6; flex: none; transition: background var(--t-mid); }
.mini-prog i + i { margin-left: 12px; }
.mini-prog i + i::before { content: ""; position: absolute; right: 100%; top: 3px; width: 12px; height: 2px; background: #e3e7ef; }
.mini-prog i.done { background: var(--brand); }
.mini-prog i.done::before { background: var(--brand); }
.mini-prog i.cur { box-shadow: 0 0 0 3px var(--brand-100); }
.mini-prog i.won { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 161, 80, .16); }
.mini-prog i.won::before { background: var(--green); }
.mini-prog i.lost { background: var(--red); box-shadow: none; }
.mini-prog i.lost::before { background: repeating-linear-gradient(90deg, rgba(229, 72, 77, .6) 0 3px, transparent 3px 5px); }
.cinq.closed .mini-prog { opacity: .75; }
/* ---------- 跟进记录：阶段推进 / 继续跟进；加好友记录淡化 ---------- */
.tl-st { font-weight: 600; color: var(--ink-2); }
.tl-st.up { color: var(--brand); }
.tl-st.keep { font-weight: 500; color: var(--ink-3); }
.tl-item.friend::before { background: #9fd8b6; }
.tl-item.friend .b { color: var(--ink-2); font-size: var(--fs-xs); }
.tl-item.friend .h { opacity: .85; }
/* 跟进表单 */
.fu-stage-tip { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); font-size: var(--fs-xs); line-height: 1.5; }
.fu-friend { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: var(--fs-sm); transition: border-color var(--t-fast), background var(--t-fast); }
.fu-friend input { display: none; }
.fu-friend .ff-box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c7cdd9; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; transition: all var(--t-fast); }
.fu-friend.on { border-color: #86d3a6; background: var(--green-50); }
.fu-friend.on .ff-box { background: var(--green); border-color: var(--green); color: #fff; }
.tl-item.keep::before { background: #a9b6ea; }
/* ---------- 首页搜索：快捷筛选、最近搜索、命中提示 ---------- */
.srch { position: relative; z-index: 30; }
.srch-panel { position: absolute; left: 12px; right: 12px; top: calc(100% - 4px); padding: 12px 14px 14px; border-radius: 14px; background: var(--surface);
  box-shadow: 0 12px 32px rgba(28, 35, 51, .14), 0 2px 6px rgba(28, 35, 51, .06); border: 1px solid var(--line-2); }
.sp-t { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); margin: 2px 0 8px; }
.sp-t + .sp-chips + .sp-t { margin-top: 14px; }
.sp-clear { color: var(--ink-3); cursor: pointer; padding: 2px 4px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: var(--fs-sm); color: var(--ink-2);
  background: var(--bg); cursor: pointer; transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast); -webkit-tap-highlight-color: transparent; }
.sp-chip .van-icon { font-size: 14px; color: var(--brand); }
.sp-chip:active { transform: scale(.95); }
.sp-chip.on { background: var(--brand); color: #fff; }
.sp-chip.on .van-icon { color: #fff; }
.sp-chip.plain { background: none; border: 1px solid var(--line); }
.sp-chip.plain .van-icon { color: var(--ink-3); }
.srch-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
.srch-tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 12px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--brand); background: var(--brand-50); cursor: pointer; animation: pickIn .2s var(--ease); }
.srch-tag .van-icon { font-size: 12px; opacity: .7; }
.m-hit { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fffbea; font-size: var(--fs-xs); color: var(--ink-2); min-width: 0; }
.m-hit .van-icon { flex: none; color: #b7791f; }
.mh-f { flex: none; font-weight: 600; color: #92610a; }
.mh-t { min-width: 0; }
.m-hit mark, .inq-item mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (min-width: 1024px) { .srch-panel { left: 16px; right: auto; width: 520px; } }
/* ---------- 客户需求卡片（v1.9.18）：一句话需求 + 关键信息 + 原文 ---------- */
.need-card .card-title { flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; }
.need-card .card-title .need-origin { margin: 0; font-weight: 400; flex: 1 1 auto; justify-content: flex-end; }
.need-sum { font-size: var(--fs-lg, 17px); font-weight: 600; line-height: 1.5; color: var(--ink); word-break: break-word; }
.need-sum.empty { color: var(--ink-3); font-weight: 500; }
.need-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nc { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: var(--fs-xs); color: var(--ink-2); background: var(--bg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc.long { white-space: normal; height: auto; min-height: 24px; padding: 3px 9px; line-height: 1.45; }
.nc.ctype-distributor { color: #6d28d9; background: #ede9fe; font-weight: 600; }
.nc.ctype-trader { color: #b45309; background: #fef3c7; font-weight: 600; }
.nc.ctype-chain { color: #0e7490; background: #cffafe; font-weight: 600; }
.nc.ctype-end { color: var(--green); background: var(--green-50); font-weight: 600; }
.nc.sm { height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; flex: none; }
.ct-cell { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ct-pick { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.ct-pick .nc { padding: 0 7px; }
.ct-o { position: relative; display: inline-flex; }
.ct-ai { position: absolute; top: -7px; right: -5px; font-style: normal; font-size: 9px; font-weight: 700; line-height: 13px; padding: 0 3px; border-radius: 4px; color: #fff; background: #7c3aed; box-shadow: 0 0 0 1.5px var(--surface); pointer-events: none; }
.ct-pick .nc { cursor: pointer; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.ct-pick .nc:active { transform: scale(.94); }
.nc.ct-off { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.need-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.nf { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); min-width: 0; }
.nf-k { font-size: 11px; color: var(--ink-3); }
.nf-v { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); line-height: 1.4; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nf-v.empty { color: #c3c8d4; font-weight: 500; }
.need-miss { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #fff7e6; color: #92610a; font-size: var(--fs-sm); }
.need-miss .van-icon { color: #d97706; }
.need-miss b { font-weight: 600; }
.need-miss .nm-tip { margin-left: auto; font-size: var(--fs-xs); color: #b7791f; }
.need-mats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.nm-l { font-size: var(--fs-xs); color: var(--ink-3); margin-right: 2px; }
.mat { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 15px; border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; transition: all var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.mat:active { transform: scale(.95); }
.mat.ro { cursor: default; }
.mat-box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c7cdd9; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: transparent; transition: all var(--t-fast); }
.mat.done { border-color: #a7e3bf; background: var(--green-50); color: var(--green); }
.mat.done .mat-box { background: var(--green); border-color: var(--green); color: #fff; animation: pickIn .2s var(--ease); }
.need-note { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--brand-100); background: #fafbfd; border-radius: 0 10px 10px 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.nn-l { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 2px; }
/* 原文 */
.src { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color var(--t-mid); }
.src.open { border-color: var(--brand-100); }
.src-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; background: #fafbfd; min-width: 0; -webkit-tap-highlight-color: transparent; }
.src-ic { flex: none; font-size: 16px; color: var(--brand); }
.src-t { flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.src-k { margin-left: 6px; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }
.src-peek { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.src-act { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: var(--fs-xs); color: var(--brand); background: var(--brand-50); }
.src-act.on { color: #fff; background: var(--brand); }
.src-fold { flex: none; color: var(--ink-3); font-size: 13px; }
.src-body { padding: 12px; border-top: 1px solid var(--line-2); }
.src-tr { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #f3f1ff; border: 1px solid #e2dcff; font-size: var(--fs-sm); line-height: 1.7; color: var(--ink); }
.src-tr-h { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 600; color: #6d4ce0; }
.src-tr-h .muted { margin-left: auto; font-weight: 400; }
.src a { color: var(--brand); word-break: break-all; }
.em-h { display: grid; gap: 4px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.em-h > div { display: flex; gap: 10px; min-width: 0; }
.em-k { flex: none; width: 3.2em; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.7; }
.em-v { min-width: 0; word-break: break-word; line-height: 1.55; }
.em-subj { font-weight: 600; color: var(--ink); }
.em-body { font-size: var(--fs-sm); line-height: 1.75; color: var(--ink); word-break: break-word; }
.em-body.clamp, .src-note.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.em-sig { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: var(--fs-xs); line-height: 1.65; color: var(--ink-2); }
.em-hist { margin-top: 10px; }
.em-hist-h { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--ink-3); cursor: pointer; padding: 2px 0; }
.em-hist-b { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--line); font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-3); max-height: 320px; overflow: auto; }
.src-note { font-size: var(--fs-sm); line-height: 1.75; color: var(--ink); word-break: break-word; }
.src-rows { font-size: var(--fs-sm); }
/* 聊天截图排成对话 */
.chat + .chat, .src-body > * + .chat { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.chat-top { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 10px; }
.chat-top .link-btn { margin-left: auto; font-size: var(--fs-xs); }
.chat-thumb { width: 34px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; flex: none; }
.chat-flow { display: flex; flex-direction: column; gap: 6px; }
.cb { max-width: 82%; padding: 7px 11px; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.55; word-break: break-word; white-space: pre-wrap; }
.cb-l { align-self: flex-start; background: #f1f2f6; color: var(--ink); border-top-left-radius: 4px; }
.cb-r { align-self: flex-end; background: #dcf8c6; color: #1f3d10; border-top-right-radius: 4px; }
.cb-c, .cb-title { align-self: center; max-width: 100%; padding: 0 6px; background: none; font-size: 11px; color: var(--ink-3); }
.cb-title { font-weight: 600; color: var(--ink-2); }
.chat-lines { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }
.cb-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 18px; vertical-align: 1px; background: rgba(0, 0, 0, .06); color: var(--ink-2); }
.cb-r .cb-tag { background: rgba(31, 61, 16, .1); color: #2d5418; }
.cb-trans { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(0, 0, 0, .12); color: var(--ink-2); }
.cb-trans b { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); margin-bottom: 1px; }
.chat-rows { padding: 8px 10px; border-radius: 10px; background: var(--line-2); }
/* 派单表单：AI 还识别到 */
.ai-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ae-l { font-size: var(--fs-xs); color: var(--ink-3); }
.ae-c { padding: 2px 8px; border-radius: 10px; font-size: var(--fs-xs); color: #6d28d9; background: #f3efff; }

/* ---------------- 建议箱 ---------------- */
.sg-page { --rd: #0e8f80; --rd-50: #e6f6f3; --sys: #6a55cc; --sys-50: #f0edfc; }
.avatar.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.sg-cell-new { color: var(--amber); font-weight: 600; font-size: var(--fs-sm); }
.sg-cells .van-cell__value { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.sg-cell-add { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 600; color: var(--brand);
  background: var(--brand-50); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.sg-cell-add:active { transform: scale(.94); background: var(--brand-100); }
.sg-mine { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #b45309; background: #fff3d6; }
.sg-only { display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; margin: 18px 16px 4px; }
.sg-only .muted { font-size: var(--fs-xs); font-weight: 400; }
.sg-viewers { display: flex; align-items: center; gap: 6px; margin: 10px 16px 0; padding: 9px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--sh-1);
  font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.sg-viewers:active { transform: scale(.98); }
.sg-viewers > .van-icon { color: var(--sys, #6a55cc); font-size: 16px; }
.sg-viewers b { min-width: 0; flex: 1; color: var(--ink); font-weight: 600; }
/* 提建议：顶部说明 */
.sg-intro { display: flex; align-items: center; gap: 12px; margin: 14px 12px 4px; padding: 14px 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fff7e6 0%, #fffdf7 60%); border: 1px solid #fbe7bf; }
.sg-intro-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #b45309;
  background: #fde9b8; box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .08); animation: sg-glow 2.6s ease-in-out infinite; }
@keyframes sg-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .0); } 50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, .16); } }
.sg-intro-t { font-weight: 700; font-size: var(--fs-md); color: #3b2a07; }
.sg-intro-s { margin-top: 2px; font-size: var(--fs-xs); color: #8a6a2b; display: flex; align-items: center; gap: 4px; }
/* 类型选择 */
.sg-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px; }
.sg-kind { position: relative; padding: 14px 14px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); cursor: pointer;
  border: 1.5px solid transparent; transition: border-color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-mid); }
.sg-kind:active { transform: scale(.97); }
.sg-kind .sk-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--bg); color: var(--ink-3); transition: background var(--t-mid), color var(--t-mid); }
.sg-kind .sk-t { margin-top: 10px; font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.sg-kind .sk-s { margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.sg-kind .sk-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff;
  transform: scale(0); transition: transform 260ms cubic-bezier(.3, 1.6, .5, 1); }
.sg-kind.on.k-rd { border-color: var(--rd); box-shadow: 0 6px 18px rgba(14, 143, 128, .14); }
.sg-kind.on.k-sys { border-color: var(--sys); box-shadow: 0 6px 18px rgba(106, 85, 204, .14); }
.sg-kind.on.k-rd .sk-ic { background: var(--rd-50); color: var(--rd); }
.sg-kind.on.k-sys .sk-ic { background: var(--sys-50); color: var(--sys); }
.sg-kind.on .sk-check { transform: scale(1); }
.sg-kind.k-rd .sk-check { background: var(--rd); }
.sg-kind.k-sys .sk-check { background: var(--sys); }
/* 关联客户 */
.sg-link { display: flex; align-items: center; gap: 6px; margin: 0 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--brand-50); font-size: var(--fs-sm); color: var(--ink-2); }
.sg-link .sl-ic { color: var(--brand); font-size: 16px; }
.sg-link b { color: var(--ink); min-width: 0; }
.sg-link .sl-cat { color: var(--brand-600); background: #fff; border-radius: 6px; padding: 0 6px; font-size: var(--fs-xs); line-height: 20px; flex: none; }
.sg-link .sl-x { margin-left: auto; padding: 4px; color: var(--ink-3); cursor: pointer; }
/* 输入 */
.sg-form { position: relative; padding-bottom: 14px; }
.sg-ta { width: 100%; min-height: 132px; border: 0; outline: 0; resize: none; padding: 0; font-size: var(--fs-md); line-height: 1.7; color: var(--ink); background: transparent; font-family: inherit; }
.sg-ta::placeholder { color: #b4bac8; }
.sg-hints, .sg-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sg-hint { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); color: var(--ink-2); background: var(--bg);
  cursor: pointer; transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.sg-hint:active { transform: scale(.94); background: var(--brand-50); color: var(--brand); }
.sg-form .sg-count { position: static; display: block; text-align: right; font-size: 11px; color: #b4bac8; margin-top: 6px; font-variant-numeric: tabular-nums; }
.sg-form .sg-count.warn { color: var(--amber); }
.sg-up-l { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; margin: 10px 0 8px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sg-page .action-bar .van-button { max-width: 560px; margin: 0 auto; }
/* 提交成功 */
.sg-done { text-align: center; padding: 64px 28px 40px; }
.sg-done-ic { width: 76px; height: 76px; }
.sg-done-ic circle { fill: var(--green-50); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 190; stroke-dashoffset: 190; animation: sg-draw 520ms var(--ease) forwards; }
.sg-done-ic path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; animation: sg-draw 360ms 380ms var(--ease) forwards; }
@keyframes sg-draw { to { stroke-dashoffset: 0; } }
.sg-done-t { margin-top: 18px; font-size: var(--fs-xl); font-weight: 700; animation: sg-rise 420ms 200ms var(--ease) both; }
.sg-done-s { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.7; animation: sg-rise 420ms 280ms var(--ease) both; }
.sg-done-acts { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin-left: auto; margin-right: auto; animation: sg-rise 420ms 360ms var(--ease) both; }
@keyframes sg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sg-swap-enter-active, .sg-swap-leave-active { transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.sg-swap-enter-from { opacity: 0; transform: translateY(10px); }
.sg-swap-leave-to { opacity: 0; transform: translateY(-6px); }
/* 列表卡片 */
.sg-privacy { display: flex; align-items: center; gap: 6px; margin: 12px 16px 4px; font-size: var(--fs-xs); color: var(--ink-3); }
.sg-list { padding-bottom: 8px; transition: opacity var(--t-mid); }
.sg-list.dim { opacity: .55; }
.sg-item { position: relative; margin: 10px 12px; padding: 14px 14px 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); cursor: pointer; overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid); }
.sg-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sc, var(--line)); }
.sg-item:active { transform: scale(.985); }
@media (hover: hover) { .sg-item:hover { box-shadow: var(--sh-2); } }
.sg-item.unread { background: linear-gradient(90deg, #f7f9ff 0%, #fff 40%); }
.si-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.si-t { margin-top: 8px; font-size: var(--fs-md); font-weight: 600; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.si-t.pending { font-weight: 500; color: var(--ink-2); }
.sg-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 3px; box-shadow: 0 0 0 3px rgba(229, 72, 77, .14); }
.si-ai { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--brand); }
.sg-shimmer { width: 28px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-100) 0%, var(--brand) 50%, var(--brand-100) 100%); background-size: 200% 100%; animation: sg-shim 1.2s linear infinite; }
@keyframes sg-shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.si-reply { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--green-50); color: #145a32; font-size: var(--fs-sm); line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.si-reply b { font-weight: 600; }
.si-m { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.si-m .who { color: var(--ink-2); margin-left: -6px; }
.si-m .sep { width: 1px; height: 10px; background: var(--line); }
.si-n, .si-cust { display: inline-flex; align-items: center; gap: 3px; }
.si-cust { color: var(--brand-600); }
/* 标签 */
.sg-kt { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.sg-kt.k-rd { color: var(--rd, #0e8f80); background: var(--rd-50, #e6f6f3); }
.sg-kt.k-sys { color: var(--sys, #6a55cc); background: var(--sys-50, #f0edfc); }
.sg-prod { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink); background: #eef0f4; }
.sg-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); }
.sg-st { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--sc); background: var(--sb); white-space: nowrap; }
.st-new { --sc: #3554d1; --sb: #eef1fd; }
.st-looking { --sc: #c26a05; --sb: #fff5e6; }
.st-adopted { --sc: #12a150; --sb: #e8f6ee; }
.st-done { --sc: #0b7a6c; --sb: #e2f4f1; }
.st-declined { --sc: #7a8193; --sb: #f1f2f4; }
/* 建议箱筛选 */
.sg-tabs { margin-top: 6px; }
.sg-tab-n { display: inline-block; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; color: #fff; background: var(--amber); vertical-align: 1px; }
.van-tab:not(.van-tab--active) .sg-tab-n { background: #f5c97a; }
.sg-tabs .van-tabs__nav { background: transparent; }
.sg-filter { padding: 10px 16px 2px; }
.sg-prods { margin-top: 8px !important; gap: 6px; }
.sg-pchip { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: var(--fs-xs); color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; transition: all var(--t-fast); }
.sg-pchip.on { color: var(--rd, #0e8f80); border-color: var(--rd, #0e8f80); background: var(--rd-50, #e6f6f3); font-weight: 600; }
/* 空状态 */
.sg-empty { text-align: center; padding: 56px 32px; }
.sg-empty .se-art { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; font-size: 30px; color: #c08a1e;
  background: linear-gradient(135deg, #fff3d6, #fffaf0); animation: sg-float 3.2s ease-in-out infinite; }
.sg-empty.small-art .se-art { color: var(--ink-3); background: var(--surface); box-shadow: var(--sh-1); }
@keyframes sg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.sg-empty .se-t { margin-top: 14px; font-weight: 600; color: var(--ink); }
.sg-empty .se-s { margin: 6px auto 16px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.65; max-width: 300px; }
/* 详情 */
.sg-hero { margin: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.sg-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: .5; pointer-events: none; }
.sg-hero.k-rd::after { background: radial-gradient(circle, var(--rd-50) 0%, transparent 70%); }
.sg-hero.k-sys::after { background: radial-gradient(circle, var(--sys-50) 0%, transparent 70%); }
.sh-top { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.sh-t { margin-top: 12px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.5; color: var(--ink); position: relative; z-index: 1; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sh-who { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sg-sec-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.sg-sec-h .muted { font-weight: 400; display: inline-flex; align-items: center; gap: 3px; }
.sg-text { font-size: var(--fs-md); line-height: 1.75; color: var(--ink); }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.sg-doc { margin-top: 14px; border-radius: 10px; background: var(--bg); padding: 10px 12px; }
.sg-doc-h { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-3); cursor: pointer; }
.sg-doc-b { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.sg-doc-b.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.sg-cust { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); font-size: var(--fs-sm); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.sg-cust:active { transform: scale(.98); }
.sg-cust > .van-icon:first-child { color: var(--brand); font-size: 16px; }
.sg-cust b { min-width: 0; }
.sg-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sg-step { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0 2px; font-family: inherit; white-space: nowrap;
  transition: background var(--t-mid) var(--ease), color var(--t-mid), border-color var(--t-mid), transform var(--t-fast) var(--ease); }
.sg-step:active { transform: scale(.94); }
.sg-step.on { background: var(--sb); color: var(--sc); border-color: var(--sc); font-weight: 600; }
.sg-step:disabled { cursor: default; }
.sg-reply-box { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.sg-reply-box .inp { flex: 1; resize: none; font-family: inherit; line-height: 1.6; font-size: var(--fs-sm); }
.sg-reply-box .van-button { flex: none; height: 36px; padding: 0 16px; }
.sg-note { resize: none; font-family: inherit; font-size: var(--fs-sm); line-height: 1.6; background: #fffdf5; border-color: #f3e6c4; }
.sg-saved { margin-left: auto; font-size: 11px; font-weight: 400; }
.sg-saved.saving { color: var(--ink-3); }
.sg-saved.saved { color: var(--green); }
.sg-tl { position: relative; padding-left: 18px; }
.sg-tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 1px; }
.sg-tl-i { position: relative; padding-bottom: 14px; }
.sg-tl-i:last-child { padding-bottom: 0; }
.sg-tl-dot { position: absolute; left: -18px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sc, #c3c8d4); }
.sg-tl-i:last-child .sg-tl-dot { background: var(--sc, var(--brand)); border-color: var(--sc, var(--brand)); box-shadow: 0 0 0 4px var(--sb, var(--brand-50)); }
.sg-tl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.sg-tl-h b { color: var(--ink); }
.sg-tl-at { margin-left: auto; font-variant-numeric: tabular-nums; }
.sg-tl-b { margin-top: 6px; padding: 8px 12px; border-radius: 4px 12px 12px 12px; background: var(--bg); font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.sg-tl-b.mine { background: var(--brand-50); }
@media (min-width: 1024px) {
  .sg-page .sg-kinds, .sg-page .sg-intro, .sg-page .sg-link, .sg-page .sg-form { max-width: 640px; }
  .sg-page .sg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
  .sg-detail .sg-hero, .sg-detail .card { max-width: 760px; }
}

/* 写跟进：常用说法 */
.fu-phrases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fu-ph { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 14px; font-size: var(--fs-xs); color: var(--ink-2); background: var(--bg);
  border: 1px solid transparent; cursor: pointer; transition: all var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.fu-ph:active { transform: scale(.94); }
.fu-ph.on { color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); font-weight: 600; }
/* 打完电话：接通了吗 */
.call-ask .sheet { text-align: center; padding-top: 26px; }
.ca-ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--green); background: var(--green-50);
  animation: ca-ring 1.6s ease-in-out 2; }
@keyframes ca-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } 50% { transform: rotate(0); } }
.ca-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ca-btns .van-button { height: 46px; }
.ca-later { border: 0; color: var(--ink-3); }

/* 客户列表排序 */
.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--line-2); margin-bottom: 10px; }
.seg > span { flex: 1; text-align: center; height: 32px; line-height: 32px; border-radius: 8px; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer;
  transition: background var(--t-mid) var(--ease), color var(--t-mid), box-shadow var(--t-mid); }
.seg > span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(28, 35, 51, .1); }
.pool-warn { color: #b42318; font-weight: 600; }
.inq-item .m .warn { color: #9a5300; }

/* 经理首页：组员一览 */
.team-card { margin: 12px 12px 4px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.tc-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tc-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--brand); background: var(--brand-50); }
.tc-tt { flex: 1; min-width: 0; }
.tc-t { font-weight: 600; font-size: var(--fs-md); color: var(--ink); white-space: nowrap; line-height: 1.3; }
.tc-fold { flex: none; color: var(--ink-3); transition: transform var(--t-mid) var(--ease); }
.tc-fold.open { transform: rotate(180deg); }
.tc-body { padding: 0 6px 8px; }
.tc-row { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); align-items: center; min-height: 40px; border-radius: 8px; padding: 0 8px;
  font-variant-numeric: tabular-nums; }
.tc-row + .tc-row { border-top: 1px solid var(--line-2); }
.tc-row.alert { background: linear-gradient(90deg, rgba(229, 72, 77, .05), transparent 70%); }
.tc-head { min-height: 28px; font-size: 11px; color: var(--ink-3); }
.tc-head > span:not(.tc-n), .tc-v { text-align: center; }
.tc-n { display: flex; align-items: center; gap: 6px; min-width: 0; cursor: pointer; }
.tc-n b { font-size: var(--fs-sm); min-width: 0; }
.tc-n small { flex: none; font-size: 10px; color: var(--ink-3); }
.tc-v { font-size: var(--fs-md); font-weight: 600; color: #c3c8d4; border-radius: 8px; padding: 4px 0; transition: background var(--t-fast); }
.tc-v.hot { color: var(--amber); cursor: pointer; }
.tc-v.bad { color: var(--red); cursor: pointer; }
.tc-v.ok { color: var(--green); cursor: pointer; }
.tc-v.won { color: var(--ink); }
.tc-v.hot:active, .tc-v.bad:active, .tc-v.ok:active { background: var(--bg); }
.tc-feed { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 10px; border-radius: 14px; white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 600; color: var(--brand); background: var(--brand-50); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.tc-feed:active { transform: scale(.94); background: var(--brand-100); }
/* 团队动态 */
.tf-filters { padding: 12px 16px 0; }
.tf-filters .chips-scroll { margin-top: 2px; }
.tf-item { margin: 0 12px 10px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.tf-top { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.tf-lb { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; color: var(--brand-600); background: var(--brand-50); white-space: nowrap; }
.tf-lb.keep { color: var(--ink-3); background: var(--line-2); }
.tf-lb.up { color: #0b7a3b; background: var(--green-50); }
.tf-lb.won { color: #fff; background: var(--green); }
.tf-lb.lost { color: var(--ink-3); background: var(--line-2); text-decoration: line-through; }
.tf-cust { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: var(--fs-sm); cursor: pointer; }
.tf-cust .ellipsis { flex: 1; min-width: 0; }
.tf-note { margin-top: 10px; font-size: var(--fs-md); line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.tf-meta { display: flex; gap: 12px; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.tf-notes { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--amber); background: var(--amber-50); border-radius: 0 8px 8px 0; font-size: var(--fs-sm); line-height: 1.6; }
.tf-n.just { animation: sg-rise 360ms var(--ease) both; }
.tf-act { display: flex; justify-content: flex-end; margin-top: 8px; }
.tf-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: var(--fs-xs); font-weight: 600; color: var(--brand);
  background: var(--brand-50); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.tf-btn:active { transform: scale(.94); }
.tf-btn.on { color: #fff; background: var(--brand); }
.tf-box { margin-top: 10px; }
.tf-quick { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1024px) { .tf-page .tf-item, .tf-page .tf-filters { max-width: 760px; } }

/* 统计：按角色调整顺序 */
.stats-flow { display: flex; flex-direction: column; }
.more-cards { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 2px 12px 4px; padding: 10px; font-size: var(--fs-sm); color: var(--brand); cursor: pointer; }

/* 派单：识别后的确认卡片 */
.qd-card .card-title .link-btn { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }
.qd-rows { display: grid; grid-template-columns: 44px 1fr; gap: 8px 10px; font-size: var(--fs-sm); line-height: 1.55; }
.qd-rows .k { color: var(--ink-3); }
.qd-rows .warn { color: var(--amber); }
.qd-miss { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--amber-50); color: #9a5300; font-size: var(--fs-sm); cursor: pointer; }
.call-ask .sheet-title::before { display: none; }
.tc-sum { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }
.tc-sum .hot { color: var(--amber); font-weight: 600; }
.tc-sum .bad { color: var(--red); font-weight: 600; }
.tc-sum .ok { color: var(--green); font-weight: 600; }
.tc-row.on { background: var(--brand-50); }
.tc-row.on .tc-n b { color: var(--brand); }
.tc-n:active b { opacity: .6; }
/* 手机上摘要独占一行：标题容器透明化，四个数字不再被挤到第二行（桌面保持原样） */
@media (max-width: 480px) {
  .tc-h { flex-wrap: wrap; row-gap: 2px; }
  .tc-tt { display: contents; }
  .tc-sum { order: 5; flex-basis: 100%; padding-left: 44px; margin-top: 2px; }
  .tc-feed { margin-left: auto; }
}
@media (max-width: 400px) { .tc-n small { display: none; } .tc-row { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } }
.ic-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
/* 首页列表：换标签时不跳回顶部 */
.home-list { min-height: calc(100vh - 60px); overflow-anchor: none; transition: opacity var(--t-mid) var(--ease); }
.home-list.dim { opacity: .45; pointer-events: none; }
/* 首页标签栏自己吸顶（vant 的 sticky 切标签时会把页面滚到别处） */
.home-tabs { position: sticky; top: 0; z-index: 9; background: var(--bg); }
.home-tabs .van-tabs__wrap { background: var(--bg); }
@media (min-width: 1024px) { .home-tabs { top: 0; } }

/* ================= 团队动态 v2 ================= */
.tf-page { --tl: #e3e6ee; }
.tf-filters { position: sticky; top: 0; z-index: 8; padding: 10px 16px 6px; background: var(--bg); }
.tf-filters .seg { margin-bottom: 8px; }
.tf-mem { gap: 6px; }
.tf-mem .chip { padding: 5px 12px; font-size: var(--fs-sm); }
.tf-mem .chip .cnt { margin-left: 4px; }
.tf-mem .chip.none { color: var(--ink-3); }
.tf-list { transition: opacity var(--t-mid); }
.tf-list.dim { opacity: .5; }
.tf-day { padding: 0 12px; }
.tf-dh { display: flex; align-items: center; gap: 8px; margin: 14px 4px 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.tf-dh i { flex: 1; height: 1px; background: var(--line); }
.tf-dh em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.tf-tl { position: relative; padding-left: 16px; }
.tf-tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--tl); }
.tf-item { position: relative; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1);
  transition: box-shadow var(--t-mid), transform var(--t-fast) var(--ease); }
.tf-dot { position: absolute; left: -15px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid #c3c8d4; }
.tf-item.c-up .tf-dot { border-color: var(--green); background: var(--green); }
.tf-item.c-won .tf-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.tf-item.c-lost .tf-dot { border-color: var(--ink-3); background: var(--ink-3); }
.tf-item.c-ct .tf-dot { border-color: var(--brand); }
.tf-top { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.tf-top b { font-weight: 600; }
.tf-tm { color: var(--ink-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.tf-lb.ct { color: var(--brand-600); background: var(--brand-50); }
.tf-cust { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg); cursor: pointer; transition: background var(--t-fast); }
.tf-cust:active { background: var(--line-2); }
.tf-cn { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-need { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.tf-go { color: var(--ink-3); font-size: 12px; }
.tf-note { margin-top: 8px; font-size: var(--fs-md); line-height: 1.6; }
.tf-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.tf-meta span { display: inline-flex; align-items: center; gap: 3px; }
.tf-meta .q { color: #0b7a3b; font-weight: 600; }
.tf-notes { margin-top: 8px; border-left-width: 2px; }
.tf-n b { font-weight: 600; margin-right: 4px; }
.tf-n b::after { content: '：'; }
.tf-act { margin-top: 6px; }
.tf-end { text-align: center; padding: 16px 0 8px; font-size: 11px; color: #b4bac8; letter-spacing: .1em; }

/* ---------- 老板 AI 早报 ---------- */
.bb { margin: 12px 12px 4px; border-radius: var(--r-lg); background: linear-gradient(135deg, #fff6e9 0%, #fffaf3 38%, #ffffff 75%); border: 1px solid #f7e3c3;
  box-shadow: 0 2px 10px rgba(217, 119, 6, .07); overflow: hidden; transition: box-shadow var(--t-mid); }
.bb.open { box-shadow: 0 6px 24px rgba(217, 119, 6, .1); }
.bb-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bb-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(140deg, #fbbf24 0%, #f97316 100%); box-shadow: 0 3px 10px rgba(249, 115, 22, .3); }
.bb-tt { flex: 1; min-width: 0; }
.bb-t { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: var(--fs-md); color: #3b2a07; white-space: nowrap; }
.bb-who { font-weight: 600; color: #9a5300; }
.bb-when { margin-left: auto; font-size: 11px; font-weight: 400; color: #a68a5b; }
.bb-hl { margin-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: #5b4521; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bb.open .bb-hl { -webkit-line-clamp: unset; font-weight: 600; color: #3b2a07; }
.bb-hl.muted { color: #a68a5b; }
.bb-vis { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 11px; font-weight: 700; color: #fff; background: #0e8f80;
  animation: bb-pulse 2.4s ease-in-out infinite; }
@keyframes bb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 143, 128, .35); } 50% { box-shadow: 0 0 0 5px rgba(14, 143, 128, 0); } }
.bb-fold { flex: none; color: #a68a5b; transition: transform var(--t-mid) var(--ease); }
.bb-fold.open { transform: rotate(180deg); }
.bb-body { padding: 0 14px 12px; }
.bb-busy { padding: 6px 0 12px; }
.bb-sk i { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: linear-gradient(90deg, #f6ead6 0%, #fff7ea 50%, #f6ead6 100%); background-size: 200% 100%; animation: sg-shim 1.3s linear infinite; }
.bb-sk i:nth-child(2) { width: 82%; } .bb-sk i:nth-child(3) { width: 60%; }
.bb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bb-st { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .85); border: 1px solid #f3e8d6; min-width: 0; }
.bb-st .v { font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.bb-st .k { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.bb-st .s { font-size: 11px; line-height: 1.35; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-all; }
.bb-st.zero .v { color: #c9cdd6; }
.bb-st.good .v { color: var(--green); }
.bb-st.bad .v { color: var(--red); }
.bb-pipe { display: block; margin-top: 8px; padding: 7px 10px; border-radius: 8px; font-size: var(--fs-xs); line-height: 1.6; color: #5b4521; background: rgba(251, 191, 36, .12); }
.bb-pipe .van-icon { margin-right: 4px; vertical-align: -2px; }
.bb-pipe b { font-weight: 700; color: #3b2a07; }
.bb-sh { display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.bb-sh .van-icon { font-size: 16px; }
.bb-sh .cnt { margin-left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; color: #fff; background: #0e8f80; }
/* 来访计划：单独一栏，日历小方块 */
.bb-visits { margin-top: 14px; padding: 4px 10px 6px; border-radius: 12px; background: #eaf7f4; border: 1px solid #cdebe4; }
.bb-sh.v { margin-top: 8px; color: #0b6b60; }
.vt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; cursor: pointer; }
.vt + .vt { border-top: 1px dashed #c4e4dc; }
.vt-day { flex: none; width: 46px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 1px 3px rgba(14, 143, 128, .18); }
.vt-day .m { display: block; font-size: 10px; line-height: 16px; color: #fff; background: #0e8f80; }
.vt-day .d { display: block; font-size: 18px; font-weight: 700; line-height: 22px; color: #0b4f47; }
.vt-day .w { display: block; font-size: 10px; line-height: 14px; padding-bottom: 3px; color: #4b7a73; }
.vt-day.today .m { background: #e5484d; }
.vt-day.today .w { color: #e5484d; font-weight: 700; }
.vt-day.soon .m { background: #f97316; }
.vt-day.tbd .m { background: #9aa3b2; }
.vt-day.tbd .d { font-size: 13px; line-height: 22px; color: var(--ink-3); }
.vt-b { flex: 1; min-width: 0; }
.vt-t { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.vt-t b { font-weight: 700; color: #0b4f47; }
.vt-tm { font-size: 11px; font-weight: 600; color: #0b6b60; background: #fff; border-radius: 6px; padding: 0 6px; line-height: 18px; }
.vt-s { margin-top: 2px; font-size: var(--fs-xs); color: #4b7a73; }
.vt-prep { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.vt-prep span { font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 5px; color: #0b6b60; background: #fff; border: 1px solid #bfe3da; }
.vt-n { margin-top: 4px; font-size: var(--fs-xs); color: #4b7a73; }
.vt-go { flex: none; margin-top: 16px; color: #8fbfb6; font-size: 12px; }
/* 其他各栏 */
.bb-sec .bb-sh .van-icon { color: var(--sc); }
.s-m { --sc: #12a150; } .s-r { --sc: #e5484d; } .s-d { --sc: #d97706; } .s-p { --sc: #3554d1; }
.bb-it { display: flex; align-items: flex-start; gap: 8px; padding: 6px 2px; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); border-radius: 8px; }
.bb-it.link { cursor: pointer; }
.bb-it.link:active { background: rgba(0, 0, 0, .03); }
.bb-it .dot { flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--sc); opacity: .55; }
.bb-it.hi .dot { opacity: 1; box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.s-p .bb-it .dot { background: var(--amber); }
.s-p .bb-it.good .dot { background: var(--green); }
.bb-it .tx { flex: 1; min-width: 0; }
.bb-it .nm { margin-right: 6px; font-weight: 700; }
.bb-it .go { flex: none; margin-top: 4px; font-size: 12px; color: #c3c8d4; }
/* 今天建议你做 */
.bb-todo { margin-top: 12px; padding: 2px 10px 8px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.bb-sh.t { color: var(--brand-600); }
.td { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: var(--fs-sm); line-height: 1.5; }
.td-n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); }
.td-t { flex: 1; min-width: 0; color: var(--ink); }
.td-a { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 11px; font-weight: 600; white-space: nowrap;
  color: #fff; background: var(--brand); cursor: pointer; transition: transform var(--t-fast) var(--ease), background var(--t-mid); }
.td-a:active { transform: scale(.93); }
.td-a.plain { color: var(--brand); background: #fff; }
.td-a.done { color: var(--green); background: var(--green-50); cursor: default; }
.bb-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #f0dfc3; }
.bb-foot .van-button { flex: none; }
@media (min-width: 1024px) {
  .tf-page .bb, .tf-page .tf-filters, .tf-page .tf-day { max-width: 760px; }
  .bb-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.vt-own { font-size: var(--fs-xs); color: #4b7a73; }
.vt-k { margin-left: auto; font-size: 11px; font-weight: 600; color: #0b6b60; background: #fff; border-radius: 6px; padding: 0 6px; line-height: 18px; white-space: nowrap; }
.vt-trip { margin-top: 6px; }
.vt-trip.multi { position: relative; padding-left: 12px; }
.vt-trip.multi::before { content: ''; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #0e8f80; }
.vt-trip.multi + .vt-trip.multi::after { content: ''; position: absolute; left: 4px; top: -10px; height: 16px; width: 2px; background: #bfe3da; }
.vt-w { font-size: var(--fs-xs); line-height: 1.55; color: #2f5f58; }
.vt-when { display: inline-block; margin-right: 6px; font-weight: 700; color: #0b4f47; }
.vt-day.approx .m { background: #f59e0b; }
.vt-day.approx .w { color: #b45309; font-weight: 600; }

/* ---------- 来访计划：早报里的勾选、待确认、提醒 ---------- */
.vt-tbc { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 16px; color: #b45309; background: #fef3c7; vertical-align: 1px; }
.vt-prep span.tap { cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.vt-prep span.tap:active { transform: scale(.95); }
.vt-prep span.done { color: #8fbfb6; background: #f2faf8; border-color: #dcefea; text-decoration: line-through; text-decoration-color: rgba(14, 143, 128, .35); }
.vt-prep span .van-icon { margin-right: 2px; font-size: 10px; color: #0e8f80; vertical-align: -1px; }
.vt-warn { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; font-size: var(--fs-xs); line-height: 1.45; color: #c2410c; }
.vt-warn .van-icon { flex: none; margin-top: 2px; }

/* ---------- 来访计划：询盘详情进展卡里的一行 ---------- */
.pv-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pc-visit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #eaf7f4; border: 1px solid #cdebe4; cursor: pointer; transition: transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.pc-visit:active { transform: scale(.985); }
.pc-visit.ai { background: #fffbeb; border-color: #fde68a; }
.pv-day { width: 38px; border-radius: 8px; }
.pv-day .m { font-size: 9px; line-height: 14px; }
.pv-day .d { font-size: 15px; line-height: 20px; padding-bottom: 2px; }
.pv-day.tbd .d { font-size: 11px; }
.pv-t { font-size: var(--fs-sm); font-weight: 600; color: #0b4f47; line-height: 1.4; }
.pc-visit.ai .pv-t { color: #92400e; }
.pv-k { margin-right: 6px; font-size: 11px; font-weight: 700; color: #0e8f80; }
.pc-visit.ai .pv-k { color: #b45309; }
.pv-ai { display: inline-block; margin-left: 6px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 15px; font-weight: 700; color: #6d4ce0; background: #e7e2ff; vertical-align: 1px; }
.pv-s { margin-top: 1px; font-size: var(--fs-xs); color: #4b7a73; }
.pv-s.warn { color: #c2410c; display: flex; align-items: center; gap: 3px; }
.pv-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-xs); font-weight: 600; color: #0b6b60; }
.pv-go.hot { height: 26px; padding: 0 10px; border-radius: 13px; color: #fff; background: #0e8f80; box-shadow: 0 2px 8px rgba(14, 143, 128, .25); }
.pc-visit.ai .pv-go.hot { background: #d97706; box-shadow: 0 2px 8px rgba(217, 119, 6, .25); }

/* ---------- 来访计划弹窗 ---------- */
.vs-st { margin-left: 8px; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 600; vertical-align: 2px; color: #0b6b60; background: #e3f4f0; }
.vs-st.proposed { color: #b45309; background: #fef3c7; }
.vs-st.cancelled, .vs-st.no_show { color: var(--ink-3); background: var(--bg); }
.vs-ai { display: flex; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-sm); line-height: 1.5; color: #4a3699; background: #f3f0ff; }
.vs-ai > .van-icon { flex: none; margin-top: 3px; color: #6d4ce0; }
.vs-ai-s { margin-top: 2px; font-size: var(--fs-xs); color: #7c6bc2; }
.vs-res { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; font-size: var(--fs-sm); color: var(--ink-2); background: var(--bg); }
.vs-warn { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; font-size: var(--fs-sm); line-height: 1.45; color: #9a3412; background: #fff4ed; }
.vs-warn .van-icon { flex: none; margin-top: 3px; }
.vs-approx { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.vs-prep { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-pi { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 10px; border-radius: 15px; font-size: var(--fs-sm); color: #0b4f47; background: #eaf7f4; border: 1px solid #cdebe4; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--t-fast) var(--ease); }
.vs-pi .van-icon { font-size: 15px; color: #0e8f80; }
.vs-pi .x { font-size: 12px; color: #8fbfb6; padding: 4px; }
.vs-pi.done { color: #6b8f89; background: #f4faf8; text-decoration: line-through; text-decoration-color: rgba(14, 143, 128, .35); }
.vs-pi.ro { padding-right: 10px; cursor: default; }
.vs-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vs-foot { display: flex; flex-direction: column; gap: 8px; }
.vs-two { display: flex; gap: 8px; }
.vs-cancel { color: var(--ink-3) !important; }
.vs-log { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.vs-log-h { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--ink-3); cursor: pointer; }
.vs-log-i { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
.pv-card .pv-list { margin-top: 0; }

/* ---------- 询盘详情自检（v1.13.2） ---------- */
.countdown { white-space: nowrap; }
.tl-item .h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.tl-item .h .h-m { min-width: 0; }
.tl-item .h .h-nd { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 0 7px; border-radius: 9px; line-height: 18px; font-size: 11px; color: var(--ink-2); background: var(--bg); }
.tl-item .h .h-nd .van-icon { font-size: 11px; color: var(--ink-3); }
.sum-v { font-size: var(--fs-sm); line-height: 1.72; }
.chain > :first-child { margin-left: auto; }
.chain > :last-child { margin-right: auto; }
@media (max-width: 360px) {
  .hero-acts .watch-btn { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 15px; }
  .hero-acts .watch-btn .wb-t { display: none; }
  .hero-act { padding: 0 12px; }
}
.kv { grid-template-columns: minmax(72px, max-content) 1fr; }
.friend-btns .van-button { white-space: nowrap; padding: 0 6px; }
.pv-t, .vt-w, .vt-when { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 通知公告 ---------- */
:root { --nt-imp: #d97706; --nt-imp-50: #fff6e8; --nt-urg: #e5484d; --nt-urg-50: #fdeeee; }
.nt-page { padding-bottom: 96px; }
.nt-tpls { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 2px; }
.nt-tpls::-webkit-scrollbar { display: none; }
.nt-tpls .fu-ph { flex: none; }
.nt-form { margin-top: 10px; }
.nt-title { width: 100%; border: 0; outline: 0; padding: 2px 0 10px; font-size: var(--fs-lg); font-weight: 700; color: var(--ink); background: transparent; border-bottom: 1px solid var(--line-2); font-family: inherit; }
.nt-title::placeholder { color: #b4bac8; font-weight: 500; }
.nt-ta { margin-top: 10px; min-height: 120px; }
.nt-tools { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.nt-tools .sg-count { position: static; font-size: 11px; color: #b4bac8; font-variant-numeric: tabular-nums; }
.nt-tools .sg-count.warn { color: var(--amber); }
.nt-ai { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border-radius: 14px; font-size: var(--fs-xs); font-weight: 600; color: #6d4ce0; background: #f1edff; cursor: pointer; transition: transform var(--t-fast) var(--ease), background var(--t-mid); -webkit-tap-highlight-color: transparent; }
.nt-ai:active { transform: scale(.95); }
.nt-ai.busy { pointer-events: none; background: linear-gradient(90deg, #f1edff 0%, #e6dfff 50%, #f1edff 100%); background-size: 200% 100%; animation: nt-shine 1.2s linear infinite; }
@keyframes nt-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.nt-undo { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--ink-3); cursor: pointer; }
.nt-link { margin: 12px 0 0; }
.nt-link .sl-cat { max-width: 40%; }
.nt-sec { display: flex; align-items: baseline; gap: 8px; margin: 18px 16px 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.nt-sec-s { font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }
.nt-who .seg { margin-bottom: 12px; }
.nt-users { display: flex; flex-direction: column; gap: 12px; }
.nt-ug-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.nt-pv { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); font-size: var(--fs-sm); color: var(--brand-600); font-weight: 600; cursor: pointer; }
.nt-pv .muted { font-weight: 400; }
.nt-pv.empty { background: var(--bg); color: var(--ink-3); font-weight: 400; cursor: default; }
.nt-names { margin-top: 8px; font-size: var(--fs-xs); line-height: 1.7; color: var(--ink-2); }
.nt-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 12px; }
.nt-lv { position: relative; padding: 12px 10px 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); border: 1.5px solid transparent; cursor: pointer;
  transition: border-color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-mid); -webkit-tap-highlight-color: transparent; }
.nt-lv:active { transform: scale(.97); }
.nt-lv .nl-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: var(--bg); color: var(--ink-3); transition: background var(--t-mid), color var(--t-mid); }
.nt-lv .nl-t { margin-top: 8px; font-weight: 700; font-size: var(--fs-md); color: var(--ink); }
.nt-lv .nl-s { margin-top: 2px; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.nt-lv.on.l-normal { border-color: var(--brand); box-shadow: 0 6px 18px rgba(53, 84, 209, .12); }
.nt-lv.on.l-normal .nl-ic { background: var(--brand-50); color: var(--brand); }
.nt-lv.on.l-important { border-color: var(--nt-imp); box-shadow: 0 6px 18px rgba(217, 119, 6, .14); }
.nt-lv.on.l-important .nl-ic { background: var(--nt-imp-50); color: var(--nt-imp); }
.nt-lv.on.l-urgent { border-color: var(--nt-urg); box-shadow: 0 6px 18px rgba(229, 72, 77, .14); }
.nt-lv.on.l-urgent .nl-ic { background: var(--nt-urg-50); color: var(--nt-urg); }
.nt-opt { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.nt-opt.bare { margin: 0; }
.nt-opt input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.nt-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-xs); line-height: 1.55; color: #5b4bb0; background: #f3f0ff; }
.nt-hint .van-icon { margin-top: 2px; }
.nt-pin { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.nt-pin .chips { align-items: center; }
.nt-pin-d { width: auto; flex: 1 1 130px; min-width: 120px; height: 34px; padding: 0 10px; }
/* 预览：模仿企业微信卡片 */
.nt-mock { margin-top: 4px; padding: 14px 16px 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(28, 35, 51, .08); border: 1px solid var(--line); overflow: hidden; }
.nm-src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.nm-logo { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #4f6ef7, #2a45b4); }
.nt-mock.l-urgent .nm-src { color: var(--nt-urg); }
.nm-t { margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); word-break: break-all; }
.nm-lv { color: var(--nt-imp); }
.nt-mock.l-urgent .nm-lv { color: var(--nt-urg); }
.nm-d { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.nm-q { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: #f6f7f9; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.nm-btns { display: flex; gap: 8px; margin: 12px 0 14px; }
.nm-btns span { flex: 1; text-align: center; height: 36px; line-height: 36px; border-radius: 6px; font-size: 14px; color: var(--ink-2); background: #f2f3f5; }
.nm-btns span.p { color: #fff; background: #1677ff; }
.nm-more { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
/* 列表 */
.nt-head { padding: 12px 12px 0; }
.nt-head .seg { margin: 0; }
.nt-todo-tip { display: flex; align-items: center; gap: 6px; margin: 12px 12px 0; padding: 9px 12px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: #9a5b0a; background: var(--nt-imp-50); }
.nt-items { padding-bottom: 84px; }
.nt-item { position: relative; margin: 10px 12px; padding: 13px 14px 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); cursor: pointer; overflow: hidden;
  transition: transform var(--t-fast) var(--ease); animation: sg-rise 320ms var(--ease) both; }
.nt-item:active { transform: scale(.985); }
.nt-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.nt-item.l-important.s-unread::before, .nt-item.l-important.s-read::before { background: var(--nt-imp); }
.nt-item.l-urgent.s-unread::before, .nt-item.l-urgent.s-read::before { background: var(--nt-urg); }
.nt-item.recalled { opacity: .6; }
.ni-top { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.ni-top:empty { display: none; }
.nt-lvt { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.nt-lvt.l-important { color: #b45309; background: var(--nt-imp-50); }
.nt-lvt.l-urgent { color: #fff; background: var(--nt-urg); }
.nt-pinned, .nt-sch { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--brand-600); }
.nt-sch { color: #6d4ce0; }
.nt-rc { font-size: 11px; color: var(--ink-3); background: var(--bg); border-radius: 5px; padding: 0 6px; line-height: 18px; }
.ni-todo { font-size: 11px; font-weight: 700; color: #b45309; }
.nt-item.l-urgent .ni-todo { color: var(--nt-urg); }
.ni-ok { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--green); }
.ni-t { margin-top: 6px; font-size: var(--fs-md); font-weight: 600; line-height: 1.45; color: var(--ink); }
.nt-item.s-acked .ni-t, .nt-item.s-read.l-normal .ni-t { font-weight: 500; }
.ni-x { margin-top: 3px; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-m { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-3); flex-wrap: wrap; }
.ni-m .sep { width: 3px; height: 3px; border-radius: 50%; background: #c7ccd6; }
.ni-st { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ni-bar { width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.ni-bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); transition: width .5s var(--ease); }
.nt-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 72px 20px; color: var(--ink-3); font-size: var(--fs-sm); }
.nt-empty > .van-icon { font-size: 40px; color: #c7ccd6; }
.nt-fab { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 18px; border-radius: 22px;
  font-size: var(--fs-md); font-weight: 600; color: #fff; background: var(--brand); box-shadow: 0 8px 22px rgba(53, 84, 209, .35); cursor: pointer; z-index: 20; transition: transform var(--t-fast) var(--ease); }
.nt-fab:active { transform: scale(.94); }
/* 详情 */
.nt-detail { padding-bottom: 24px; }
.nt-detail.has-bar { padding-bottom: 96px; }
.nt-doc { position: relative; overflow: hidden; }
.nt-doc.l-important { box-shadow: inset 0 3px 0 var(--nt-imp), var(--sh-1); }
.nt-doc.l-urgent { box-shadow: inset 0 3px 0 var(--nt-urg), var(--sh-1); }
.nd-top { display: flex; align-items: center; gap: 8px; min-height: 0; }
.nd-top:empty { display: none; }
.nd-t { margin: 8px 0 0; font-size: var(--fs-xl); font-weight: 700; line-height: 1.4; color: var(--ink); word-break: break-word; }
.nd-m { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-3); }
.nd-m b { color: var(--ink-2); font-weight: 600; }
.nd-m .sep { width: 3px; height: 3px; border-radius: 50%; background: #c7ccd6; }
.nd-b { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: var(--fs-md); line-height: 1.85; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.nd-recalled { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-sm); color: var(--ink-2); background: var(--bg); }
.nd-inq { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); }
.nd-inq.link { cursor: pointer; }
.nd-inq .ic { font-size: 22px; color: var(--brand); }
.nd-inq .t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.nd-inq .s { font-size: var(--fs-xs); color: var(--ink-3); }
.nd-acked { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding: 10px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--green); background: var(--green-50); }
.nd-acked.pop .van-icon { animation: starPop .4s var(--ease); }
.nt-ackbar .van-button { flex: 1; height: 46px; font-size: var(--fs-md); }
.nt-rcpt .nr-h { display: flex; align-items: center; gap: 14px; }
.nr-ring { --p: 0; flex: none; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 19px;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--green) calc(var(--p) * 1%), var(--line-2) 0); font-variant-numeric: tabular-nums; }
.nr-ring b { font-size: 19px; line-height: 1; color: var(--ink); }
.nr-ring span { font-size: 12px; color: var(--ink-3); }
.nr-t { font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.nr-s { margin-top: 3px; font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-3); }
.nr-list { margin-top: 4px; }
.nr-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); animation: sg-rise 260ms var(--ease) both; }
.nr-row:last-child { border-bottom: 0; }
.nr-n { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.nr-st { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nr-row.s-acked .nr-st { color: var(--green); }
.nr-row.s-unread .nr-st { color: #b45309; font-weight: 600; }
.nr-rm { font-size: 10px; color: var(--ink-3); background: var(--bg); border-radius: 5px; padding: 0 5px; line-height: 16px; }
.nr-none { padding: 16px 0 6px; text-align: center; }
.nr-last { margin-top: 6px; text-align: center; }
.nd-ops { display: flex; justify-content: center; margin: 4px 0 20px; }
.nd-recall { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: var(--fs-sm); color: var(--ink-3); cursor: pointer; }
.nd-recall:active { color: var(--red); }
/* 首页顶部通知条 */
.ntb { margin: 10px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.ntb-i { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r-md); cursor: pointer; transition: transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.ntb-i:active { transform: scale(.985); }
.ntb-i.l-important { background: var(--nt-imp-50); border: 1px solid #f8deb3; }
.ntb-i.l-urgent { background: var(--nt-urg-50); border: 1px solid #f6c7c8; }
.ntb-i.pin { padding: 8px 6px 8px 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ntb-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.ntb-i.l-important .ntb-ic { color: var(--nt-imp); background: #ffe9c7; }
.ntb-i.l-urgent .ntb-ic { color: #fff; background: var(--nt-urg); animation: ntb-pulse 2s ease-out infinite; }
.ntb-i.pin .ntb-ic { width: 24px; height: 24px; font-size: 14px; color: var(--brand); background: var(--brand-50); }
@keyframes ntb-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .35); } 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.ntb-t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.ntb-s { margin-top: 1px; font-size: var(--fs-xs); color: var(--ink-3); }
.ntb-lv { margin-right: 6px; font-size: 11px; font-weight: 700; }
.ntb-i.l-important .ntb-lv { color: #b45309; }
.ntb-i.l-urgent .ntb-lv { color: var(--nt-urg); }
.ntb-i.pin .ntb-lv { color: var(--brand-600); }
.ntb-ok { flex: none; min-width: 56px; }
.ntb-x { flex: none; padding: 6px; font-size: 14px; color: var(--ink-3); }
.ntb-i-enter-from, .ntb-i-leave-to { opacity: 0; transform: translateY(-6px); }
.ntb-i-leave-active { transition: opacity .25s var(--ease), transform .25s var(--ease); position: absolute; width: calc(100% - 24px); }
.ntb-i-enter-active { transition: opacity .3s var(--ease), transform .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .ntb-i.l-urgent .ntb-ic, .nt-ai.busy { animation: none; } }
@media (min-width: 1024px) { .nt-page > div, .nt-list-page .nt-items, .nt-detail .card { max-width: 720px; margin-left: auto; margin-right: auto; } }
.nt-tpls > .muted { flex: none; }
.nt-tpls .fu-ph { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }

/* ---------- 派单：识别结果卡上直接选来源（必选）和产品 ---------- */
.qd-edit { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); background: var(--brand-50); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.qd-edit:active { transform: scale(.95); }
.qd-pick { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.qd-pk { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: var(--fs-sm); }
.qd-pk .k { color: var(--ink-3); }
.qd-pk .ai-tag { margin-left: 0; }
.qd-pk .req { font-style: normal; color: var(--red); margin-left: 1px; }
.qd-opt { font-size: var(--fs-xs); color: var(--ink-3); }
.qd-need { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 600; color: #b45309; }
.qd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qd-chips .chip { padding: 5px 12px; font-size: var(--fs-sm); }
.qd-pick.qd-src.miss { margin-left: -10px; margin-right: -10px; padding: 10px 10px 8px; border-top-style: solid; border-radius: 10px; background: var(--amber-50); border-top-color: transparent; }
.qd-pick.qd-src.miss .chip { background: var(--surface); }
.qd-pick.flash, .src-flash { animation: qd-shake .45s var(--ease); }
.src-flash { color: var(--red); }
@keyframes qd-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .qd-pick.flash, .src-flash { animation: none; } }

/* ---------- 客户需求：编辑、AI 提示需求变化、原文补充 ---------- */
.need-card .card-title .need-edit { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); background: var(--brand-50); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.need-card .card-title .need-edit:active { transform: scale(.94); }
.need-edited { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-3); }
.need-edited .link-btn { font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 2px; }
.need-first { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }
.need-first .nf-h { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.need-hints { display: flex; flex-direction: column; gap: 8px; }
.need-hints:not(:empty) { margin-top: 12px; }
.need-hint-ai { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 10px; background: #f3f0ff; }
.nha-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e7e2ff; color: #6d4ce0; font-size: 15px; }
.nha-t { font-size: var(--fs-sm); color: #4a3699; }
.nha-t b { font-weight: 700; }
.nha-ai { display: inline-block; margin-left: 6px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 15px; font-weight: 700; color: #6d4ce0; background: #e7e2ff; vertical-align: 1px; }
.nha-s { margin-top: 1px; font-size: var(--fs-xs); color: #7c6bc2; }
.nha-x { flex: none; padding: 4px 2px; font-size: var(--fs-xs); color: #8b7fc7; cursor: pointer; }
.nha-go { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; font-size: var(--fs-xs); font-weight: 600; color: #fff; background: #6d4ce0; box-shadow: 0 2px 8px rgba(109, 76, 224, .28); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.nha-go:active { transform: scale(.94); }
.nh-enter-from, .nh-leave-to { opacity: 0; transform: translateY(-4px); }
.nh-enter-active, .nh-leave-active { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nf.tap { cursor: pointer; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.nf.tap:active { transform: scale(.97); background: var(--brand-50); }
.need-miss.tap { cursor: pointer; }
.need-miss.tap .nm-tip { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.src-more-n { margin-left: 6px; font-weight: 600; font-size: var(--fs-xs); color: var(--brand-600); }
.src-more { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sm-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fs-xs); }
.sm-no { flex: none; padding: 0 7px; border-radius: 6px; line-height: 20px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); }
.sm-m { color: var(--ink-3); min-width: 0; }
.sm-del { flex: none; color: var(--ink-3); cursor: pointer; padding: 2px 4px; }
.sm-del:active { color: var(--red); }
.src-add { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--brand-100); font-size: var(--fs-sm); font-weight: 600; color: var(--brand); cursor: pointer; transition: background var(--t-fast); }
.src-add:active { background: var(--brand-50); }
.src-add .sa-s { margin-left: 6px; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-add.in { justify-content: center; margin-top: 14px; }
.nf-tip { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-2); background: var(--bg); }
.nf-tip .van-icon { margin-top: 2px; color: var(--ink-3); }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 340px) { .nf-grid { grid-template-columns: 1fr; } }
.src-body > .src-more:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.need-facts.n2, .need-facts.n4 { grid-template-columns: 1fr 1fr; }
.need-facts.n3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 长期跟进（v1.16.0） ---------- */
:root { --teal: #0f766e; --teal-50: #e8f5f3; --teal-100: #cdebe6; }
.nx-long { color: var(--teal); background: var(--teal-50); }
.pcard .cf-next.long { color: var(--teal); font-weight: 500; }
.cf-next .cf-why { margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: var(--teal-50); font-size: var(--fs-xs); color: var(--teal); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 跟进表单：放长期开关 */
.fu-long { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: border-color var(--t-mid), background var(--t-mid); }
.fu-long.on { border-color: var(--teal-100); background: linear-gradient(180deg, var(--teal-50) 0%, #f6fbfa 100%); }
.fl-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fl-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--ink-3); font-size: 16px; transition: background var(--t-mid), color var(--t-mid); }
.fu-long.on .fl-ic { background: var(--teal-100); color: var(--teal); }
.fl-t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.fl-s { margin-top: 1px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.fu-long .van-switch--on { background: var(--teal); }
.fl-lbl { margin: 12px 0 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.fu-long .chip.on { border-color: var(--teal); background: #fff; color: var(--teal); }
/* 从一句话说明里认出的日期 */
.fu-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2);
  background: var(--brand-50); border: 1px solid var(--brand-100); transition: transform var(--t-fast) var(--ease); }
.fu-hint:active { transform: scale(.985); }
.fu-hint > .van-icon { color: var(--brand); font-size: 16px; flex: none; }
.fu-hint b { color: var(--ink); }
.fu-hint .fh-s { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 1px; }
.fu-hint .fh-go { flex: none; height: 26px; line-height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 600; color: #fff; background: var(--brand); }
/* 详情：叫醒那天的开场白 */
.pc-wake { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.pw-h { display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: 600; color: var(--teal); }
.pw-ai { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 8px; background: #fff; color: var(--teal); }
.pw-t { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.pw-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pw-r { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 跟进表单：AI 帮你填（v1.17.0） */
.fu-ai { margin: 2px 0 6px; border-radius: 12px; border: 1px solid #e2dcff; background: linear-gradient(100deg, #f5f3ff 0%, #faf9ff 100%); transition: border-color var(--t-mid), background var(--t-mid); }
.fu-ai.done { border-color: var(--green-50); background: var(--green-50); }
.fa-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.fa-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e7e2ff; color: #6d4ce0; font-size: 16px; }
.fu-ai.done .fa-ic { background: #fff; color: var(--green); }
.fa-t { font-size: var(--fs-sm); font-weight: 600; color: #4a3699; }
.fu-ai.done .fa-t { color: #0b7a3b; }
.fa-s { margin-top: 1px; font-size: var(--fs-xs); color: #7c6bc2; line-height: 1.45; }
.fu-ai.done .fa-s { color: var(--ink-3); }
.fa-fold { color: #9d8fd6; transition: transform var(--t-mid) var(--ease); }
.fa-fold.open { transform: rotate(180deg); }
.fa-b { padding: 0 12px 12px; }
.fa-b .van-button--primary { background: #6d4ce0; border-color: #6d4ce0; }
/* 月度复盘（v1.17.0）：和 AI 早报同一套卡片，换成蓝紫色调 */
.bb.rv { margin-top: 10px; background: linear-gradient(135deg, #eef1fd 0%, #f6f7fe 40%, #ffffff 78%); border-color: var(--brand-100); }
.bb.rv .rv-ic { background: linear-gradient(135deg, #5b74e6, #3554d1); box-shadow: 0 4px 12px rgba(53, 84, 209, .25); }
.bb.rv .bb-st { border-color: #e3e7f8; }
.bb.rv .bb-foot { border-top-color: var(--brand-100); flex-wrap: wrap; }
.rv-sub { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.rv-lost { padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: #fff; border: 1px solid #f6e1df; }
.rv-lh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink); }
.rv-n { font-size: var(--fs-xs); font-weight: 600; color: var(--red); background: #fdeceb; padding: 0 7px; border-radius: 9px; line-height: 18px; }
.rv-pk { font-size: 11px; color: var(--ink-3); }
.rv-lt { margin-top: 3px; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.rv-cs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rv-cs span { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); cursor: pointer; }
.rv-cs span:active { background: var(--line); }
.rv-bars { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.rv-bt { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.rv-bar { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 22px; }
.rv-bar .l { flex: none; width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-bar .b { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.rv-bar .b i { display: block; height: 100%; border-radius: 3px; background: #e8908a; }
.rv-bar .n { flex: none; width: 2em; text-align: right; font-variant-numeric: tabular-nums; }
.rv-own { margin-left: 6px; font-size: 11px; color: var(--ink-3); }
.bb.rv .bb-t { color: var(--ink); }
.bb.rv .bb-who { color: var(--brand); }
.bb.rv .bb-hl { color: var(--ink-2); }
.bb.rv .bb-hl.muted { color: var(--ink-3); }
.bb.rv.open { box-shadow: 0 6px 24px rgba(53, 84, 209, .1); }
.bb.rv .bb-when { color: var(--ink-3); }
/* ---------- 跟进详细记录（v1.18.0） ---------- */
.fn-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.fu-note .fn-more { display: inline-block; margin-top: 2px; font-size: var(--fs-xs); color: var(--brand); cursor: pointer; }
.fn-chip { display: flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 6px; padding: 6px 10px; border-radius: 9px; cursor: pointer;
  background: var(--line-2); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.fn-chip:active { transform: scale(.985); background: var(--line); }
.fn-chip > .van-icon:first-child { font-size: 15px; color: var(--ink-3); flex: none; }
.fn-chip b { flex: none; font-weight: 600; color: var(--ink); }
.fn-chip .fc-s { flex: 1; min-width: 0; color: var(--ink-3); }
.fn-chip .fc-n { flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fn-chip .fc-go { flex: none; color: var(--ink-3); font-size: 12px; }
.fn-chip.k-email { background: #f2f6ff; border-color: #dfe7fb; }
.fn-chip.k-email > .van-icon:first-child { color: var(--brand); }
/* 阅读页 */
.fd-pop { display: flex; flex-direction: column; }
.fd-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.fd-head { flex: none; padding: 18px 48px 12px 16px; border-bottom: 1px solid var(--line-2); }
.fd-t { display: flex; align-items: center; gap: 6px; font-size: var(--fs-lg); font-weight: 700; color: var(--ink); }
.fd-t .van-icon { color: var(--brand); }
.fd-c { margin-left: 4px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-m { margin-top: 3px; font-size: var(--fs-xs); color: var(--ink-3); }
.fd-sum { margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: var(--brand-50); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }
.fd-sl { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; font-size: 11px; line-height: 18px; color: var(--brand); background: #fff; vertical-align: 1px; }
.fd-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px 20px; }
.fd-text { font-size: var(--fs-md); line-height: 1.75; color: var(--ink); word-break: break-word; }
.fd-text .fd-k { color: var(--ink); background: linear-gradient(transparent 60%, var(--brand-100) 60%); }
.fd-tr { font-size: var(--fs-md); line-height: 1.75; color: var(--ink); }
.fd-trh { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 600; color: #6d4ce0; }
.fd-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); background: var(--surface); }
.fd-sk i { display: block; height: 14px; margin: 10px 0; border-radius: 7px; background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; animation: fdsk 1.2s infinite; }
@keyframes fdsk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.fd-sk i:nth-child(2) { width: 85%; } .fd-sk i:nth-child(3) { width: 92%; } .fd-sk i:nth-child(4) { width: 60%; }
@media (min-width: 900px) { .van-popup.fd-pop { left: 0; right: 0; width: 680px; margin: 0 auto; } }
/* 写跟进：详细记录 */
.fu-long-tip { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 10px; border-radius: 9px; background: var(--amber-50); font-size: var(--fs-xs); color: #8a5300; }
.fu-long-tip .flt-go { flex: none; font-weight: 600; color: var(--brand); cursor: pointer; }
.fu-dt { margin-top: 8px; border-radius: 12px; border: 1px dashed var(--line); transition: border-color var(--t-mid), background var(--t-mid); }
.fu-dt.on { border-style: solid; border-color: var(--brand-100); background: #fafbff; padding: 10px 12px 12px; }
.fdt-add { display: flex; align-items: center; gap: 6px; padding: 10px 12px; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-3); }
.fdt-add b { color: var(--ink-2); font-weight: 600; }
.fdt-add > .van-icon:last-child { color: var(--brand); }
.fdt-h { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink); }
.fdt-h .fdt-x { flex: none; font-size: var(--fs-xs); color: var(--ink-3); cursor: pointer; }
.fdt-heads { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fdt-heads span { height: 26px; line-height: 24px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line); background: #fff; font-size: var(--fs-xs); color: var(--ink-2); cursor: pointer; }
.fdt-heads span:active { border-color: var(--brand); color: var(--brand); }
.fu-dt textarea { min-height: 128px; font-size: var(--fs-sm); line-height: 1.6; }
.fdt-tip { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--fs-xs); color: var(--brand-600); }
/* ---------- 提交跟进表单自检（v1.18.1） ---------- */
.fu-sheet { padding-bottom: 0; }
.fu-sheet .sheet-title { margin-bottom: 14px; }
.fu-for { margin-top: 2px; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); max-width: 80%; margin-left: auto; margin-right: auto; }
.fu-sheet .form-label { margin: 0 0 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.fu-sheet .form-label .req { margin-left: -3px; }
.fl-aside { margin-left: auto; min-width: 0; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-aside.warn { color: var(--amber); }
.fl-when { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-when.long { color: var(--teal); }
.fu-sec { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line-2); }
.fu-ai + .fu-sec { margin-top: 14px; border-top: none; padding-top: 0; }
/* 状态：三列等宽 */
.fu-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fst { display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 6px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-sm); color: var(--ink-2); text-align: center; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.fst:active { transform: scale(.96); }
.fst.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; box-shadow: 0 0 0 1px var(--brand) inset; }
.fst.c-won.on { border-color: var(--green); background: var(--green-50); color: #0b7a3b; box-shadow: 0 0 0 1px var(--green) inset; }
.fst.c-lost.on { border-color: #9aa1b2; background: var(--line-2); color: var(--ink-2); box-shadow: 0 0 0 1px #9aa1b2 inset; }
.fu-sheet .fu-stage-tip { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; padding: 0; background: none; color: var(--ink-3); }
.fu-sheet .fu-stage-tip .van-icon { margin-top: 2px; flex: none; }
.fu-sheet .fu-stage-tip b { color: var(--brand); }
/* 一句话说明：常用说法放在输入框下面 */
.fu-sheet .fu-phrases { margin: 8px 0 0; align-items: center; }
.fph-k { font-size: 11px; color: var(--ink-3); margin-right: 2px; }
.fu-sheet .fu-ph { height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); }
.fu-sheet .fu-dt { margin-top: 10px; }
/* 金额 */
.fu-money { display: flex; align-items: center; gap: 8px; }
.fu-money .chips { flex: none; flex-wrap: nowrap; gap: 6px; }
.fu-money .chip { padding: 6px 10px; font-size: var(--fs-xs); }
.fu-money-t { margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* 日期：四列等宽，最后一格“选日期”打开系统日历 */
.fu-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fdc { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
.fdc:active { transform: scale(.96); }
.fdc.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.fdc.other { color: var(--ink-3); }
.fdc.other.on { color: var(--brand); }
.fdc.other .van-icon { font-size: 14px; }
.fdc input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.fdc input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.fu-long .fdc.on { border-color: var(--teal); background: #fff; color: var(--teal); }
.fu-sheet .fu-long { margin-top: 10px; padding: 8px 12px; }
.fu-sheet .fu-long.on { padding: 10px 12px 12px; }
.fu-sheet .fl-ic { width: 26px; height: 26px; font-size: 14px; }
.fu-sheet .fu-long:not(.on) .fl-t { display: inline; }
.fu-sheet .fu-hint { margin-bottom: 10px; }
/* 底部按钮：一直在底部，长表单不用滑到最后 */
.fu-foot { position: sticky; bottom: 0; z-index: 3; margin: 20px -16px 0 !important; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7), #fff 30%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--line-2); }
.fu-foot .van-button { height: 46px; font-size: var(--fs-md); font-weight: 600; letter-spacing: .5px; box-shadow: 0 6px 16px rgba(53, 84, 209, .22); }
/* AI 填好后：填上的地方闪一下 */
@keyframes aiflash { 0% { box-shadow: 0 0 0 0 rgba(109, 76, 224, .0); background-color: rgba(109, 76, 224, .10); } 100% { box-shadow: 0 0 0 0 rgba(109, 76, 224, 0); background-color: transparent; } }
.fu-sheet.flash .ai-f { animation: aiflash 1.3s var(--ease); border-radius: 10px; }
/* 校验没过：滚到那一项并抖一下 */
@keyframes fushake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fu-sec.shake { animation: fushake .45s var(--ease); }
.fu-sec.shake .form-label { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .fu-sheet.flash .ai-f, .fu-sec.shake { animation: none; } }
/* 电脑：居中、限制宽度 */
@media (min-width: 900px) {
  .van-popup.fu-pop { left: 0; right: 0; width: 600px; margin: 0 auto; border-radius: 20px 20px 0 0; }
  .fu-pop .sheet { max-height: 88vh; padding-left: 24px; padding-right: 24px; }
  .fu-pop .fu-foot { margin-left: -24px !important; margin-right: -24px !important; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 360px) {
  .fst { height: 40px; font-size: var(--fs-xs); }
  .fu-dates { gap: 6px; }
  .fdc { font-size: var(--fs-xs); }
}

.fu-sheet .thumb { width: 68px; height: 68px; }
.fu-sheet .fu-stage-tip b { white-space: nowrap; }
/* 邮件归档设置页（v1.19.0） */
.ma-it { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.ma-it.open { border-color: var(--brand-100); }
.ma-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; }
.ma-s { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.ma-m { margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-3); }
.ma-b { padding: 0 12px 12px; border-top: 1px solid var(--line-2); }
.ma-b .kv { margin-top: 10px; font-size: var(--fs-xs); }
.ma-id { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.ma-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ma-att span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 9px; background: var(--line-2); font-size: 11px; color: var(--ink-2); }
.ma-t { margin-top: 10px; max-height: 320px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); word-break: break-word; }
/* ---------- 邮件归档：跟进记录里的邮件、待认领、设置（v1.19.0） ---------- */
.tl-item.email .h-m::before { content: ""; }
.mt-wrap { margin-top: 6px; border: 1px solid #dfe7fb; border-radius: 12px; background: #f7f9ff; overflow: hidden; }
.mt-subj { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); border-bottom: 1px solid #e6ecfb; }
.mt-subj > .van-icon { color: var(--brand); flex: none; }
.mt-n { flex: none; font-size: 11px; font-weight: 600; color: var(--brand); background: #fff; padding: 0 7px; border-radius: 9px; line-height: 18px; }
.mt-a { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.mt-more { padding: 6px 12px; font-size: var(--fs-xs); color: var(--brand); cursor: pointer; border-bottom: 1px solid #e6ecfb; }
.mt-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; cursor: pointer; transition: background var(--t-fast); -webkit-tap-highlight-color: transparent; }
.mt-row + .mt-row { border-top: 1px dashed #e3e9f8; }
.mt-row:active { background: rgba(53, 84, 209, .05); }
.mt-dir { flex: none; margin-top: 1px; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 6px; font-weight: 600; }
.mt-row.d-in .mt-dir, .mu-dir.d-in { color: #0b7a3b; background: var(--green-50); }
.mt-row.d-out .mt-dir, .mu-dir.d-out { color: var(--brand); background: var(--brand-50); }
.mt-h { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.mt-h b { min-width: 0; font-weight: 600; }
.mt-t { flex: none; color: var(--ink-3); }
.mt-pc { flex: none; color: var(--ink-3); font-size: 12px; }
.mt-s { margin-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mt-go { flex: none; align-self: center; color: var(--ink-3); font-size: 12px; }
.fd-atts { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.fd-ah { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.fd-skip { margin-top: 10px; display: flex; gap: 4px; font-size: var(--fs-xs); color: var(--amber); }
/* 待认领 */
.mu-card { padding: 14px; }
.mu-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.mu-dir { flex: none; font-size: 11px; line-height: 20px; padding: 0 7px; border-radius: 6px; font-weight: 600; }
.mu-s { margin-top: 6px; font-weight: 600; color: var(--ink); }
.mu-sum { margin-top: 6px; padding: 7px 10px; border-radius: 9px; background: var(--brand-50); font-size: var(--fs-sm); line-height: 1.55; }
.mu-m { margin-top: 6px; }
.mu-pre { margin-top: 8px; max-height: 260px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); }
.mu-sug { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: linear-gradient(100deg, #f3f1ff 0%, #f7f5ff 100%); border: 1px solid #e2dcff; cursor: pointer; font-size: var(--fs-sm); }
.mu-sug > .van-icon { color: #6d4ce0; }
.mu-go { flex: none; height: 26px; line-height: 26px; padding: 0 10px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 600; color: #fff; background: #6d4ce0; }
.mu-acts { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.mu-ig { font-size: var(--fs-xs); color: var(--ink-3); cursor: pointer; }
.mu-list { margin-top: 10px; max-height: 55vh; overflow-y: auto; }
.mu-li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.mu-li:active { background: var(--line-2); }
/* 设置页 */
.ma-cnt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ma-cnt span { font-size: var(--fs-xs); padding: 2px 9px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); }
.ma-cnt b { color: var(--ink); }
.ma-map { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ma-map .pick-select, .ma-map > div:nth-child(2) { flex: none; width: 110px; }
.ma-x { color: var(--ink-3); padding: 6px; cursor: pointer; }
.ma-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ma-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 400px) { .ma-grid { grid-template-columns: 1fr; } }
.ma-rc { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); cursor: pointer; }
.ma-st { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 8px; background: var(--line-2); color: var(--ink-3); }
.ma-st.matched { background: var(--green-50); color: #0b7a3b; }
.ma-st.unmatched, .ma-st.suggest { background: var(--amber-50); color: #8a5300; }
.ma-st.lead { background: var(--brand-50); color: var(--brand); }
.mu-bar { display: flex; align-items: center; gap: 14px; margin: 0 16px 4px; }
.mu-card.picked { box-shadow: inset 0 0 0 1.5px var(--red), var(--sh-1); }
.mu-ck { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c7cdd9; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; flex: none; }
.mu-ck.on { background: var(--red); border-color: var(--red); color: #fff; }
.mu-foot { position: sticky; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(242, 243, 247, 0), var(--bg) 30%); }
.banner.row .link-btn { flex: none; white-space: nowrap; margin-left: 10px; }

/* 询盘详情：该客户的其他询盘（记录按询盘分开，点开看） */
.oi-card .card-title .sub { font-weight: 400; }
.oi { border-top: 1px solid var(--line-2); }
.oi:first-of-type { border-top: 0; }
.oi-h { display: flex; align-items: flex-start; gap: 8px; padding: 12px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oi-m { flex: 1; min-width: 0; }
.oi-t { display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 600; color: var(--ink); line-height: 1.4; }
.oi-no { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); }
.oi-st { margin-left: auto; flex: none; padding: 1px 8px; border-radius: 10px; font-size: var(--fs-xs); font-weight: 500; background: var(--brand-50); color: var(--brand-600); }
.oi-st.won { background: var(--green-50); color: var(--green); }
.oi-st.lost, .oi-st.cancelled { background: var(--line-2); color: var(--ink-3); }
.oi-s { margin-top: 3px; font-size: var(--fs-xs); color: var(--ink-3); }
.oi-last { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oi-arrow { flex: none; margin-top: 4px; color: var(--ink-3); transition: transform var(--t-mid) var(--ease); }
.oi.open .oi-arrow { transform: rotate(180deg); }
.oi.cancelled .oi-t { color: var(--ink-3); font-weight: 500; }
.oi-b { padding: 4px 0 12px 4px; animation: oiIn var(--t-mid) var(--ease); }
.oi-go { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; padding: 9px 0; border-radius: 8px; background: var(--bg); color: var(--brand); font-size: var(--fs-sm); cursor: pointer; }
@keyframes oiIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
