/* ============================================================
   法拍房 H5 端  - 精致化设计系统
   ============================================================ */
:root {
  --primary: #1f4d38;        /* 墨绿（主题色） */
  --primary-d: #0e2419;      /* 墨绿 - 最深档，渐变末端 */
  --primary-bg: #e7f0ea;     /* 墨绿 - 浅底，标签/选中态 */
  --primary-soft: #35795a;   /* 松绿，备用强调色 */
  --gold: #d9b779;           /* 金，只点关键数字（可提现金额 / 邀请码） */
  /* 墨绿同款：上深下浅 + 色相微偏 */
  --grad-primary: linear-gradient(180deg, #0e2419 0%, #17382a 55%, #1f4d38 100%);
  --grad-bar: linear-gradient(110deg, #1f4d38 0%, #17382a 50%, #0e2419 100%);
  --bg: #f4f6f9;
  --bg-2: #eef0f4;
  --card: #ffffff;
  --text: #1f2330;
  --text-2: #4a5568;
  --text-3: #6b7488;
  --muted: #7c8598;
  --muted-2: #a3abb9;
  --line: #ecedf2;
  --line-2: #f1f2f6;
  /* 语义色：统一降到 700 级并降饱和，色相收敛到 4 个，避免花 */
  --ok: #0f766e;      --ok-bg: #edf7f5;     /* 青绿：成交 / 达标 / 邀约 */
  --warn: #a16207;    --warn-bg: #fdf6ea;   /* 琥珀：待审 / 提醒 / 签约 */
  --bad: #b91c1c;     --bad-bg: #fdf1f1;    /* 深红：驳回 / 禁用 / 敏感 */
  --info: #1e40af;    --info-bg: #eff3fb;   /* 靛蓝：信息 / 跟进 */
  --care: #4338ca;    --care-bg: #eff0fc;   /* 靛紫：协护状态 */
  --cyan: #0e9aa8;    --cyan-bg: #e6f6f8;   /* 青：查看联系方式 */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-2: 0 4px 14px rgba(15, 23, 42, .08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }

/* App 外壳 */
#app { max-width: 480px; margin: 0 auto; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 0 90px; background: var(--bg); scrollbar-width: none; -ms-overflow-style: none; }
#app::-webkit-scrollbar { display: none; }
/* 隐藏滚动条但保留滚动（微信式：可上下滑动查看，不显示滚动条） */
.chat-messages, .ai-msg-list, .ann-body { scrollbar-width: none; -ms-overflow-style: none; }
.chat-messages::-webkit-scrollbar, .ai-msg-list::-webkit-scrollbar, .ann-body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ============================================================
   顶栏（紧凑）
   ============================================================ */
.topbar { position: sticky; top: 0; z-index: 50; display:flex; align-items:center; justify-content:center;
  background: radial-gradient(150px 90px at 88% -30%, rgba(255,255,255,.10), transparent 64%),
              radial-gradient(240px 130px at 12% 130%, rgba(45,140,100,.24), transparent 62%),
              var(--grad-bar);
  color: #fff; padding: 0 18px; height: 46px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.3px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.topbar small { display:block; font-weight: 400; opacity:.85; font-size: 12px; margin-top: 1px; }
.topbar .back { position:absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 20px; line-height: 1; cursor: pointer; flex: 0 0 auto; user-select: none; padding: 6px 8px; }
.topbar .back:active { opacity: 0.6; }
.topbar .tb-center { text-align: center; }
.topbar .tb-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }

/* 顶部圆形 i 按钮 */
.tb-info-btn { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; background: transparent;
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; }
.tb-info-btn:active { background: rgba(255,255,255,.2); }
.tb-info-btn-sm { display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--primary);
  background: transparent; color: var(--primary); font-size: 11px; font-weight: 700;
  cursor: pointer; padding: 0; line-height: 1; margin-left: 6px; vertical-align: middle; }
.tb-info-btn-sm:active { background: var(--primary-bg); }

/* ============================================================
   卡片（精致小巧）
   ============================================================ */
.card { background: var(--card); border-radius: var(--radius); padding: 14px 14px;
  margin: 10px 12px; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); overflow-wrap: break-word; word-break: break-word; }
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--text); }
/* 我的推荐人卡片（昵称/电话/开通时间只读，备注可自行编辑） */
.reporter-row { display: block; padding: 12px 14px; margin-top: 10px; }
.reporter-row .rr-edit { flex: 0 0 auto; width: 30px; height: 30px; border: none; background: transparent; color: var(--primary); font-size: 16px; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.reporter-row .rr-edit:active { background: rgba(0,0,0,.05); }
.reporter-row .rr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.reporter-row .rr-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.reporter-row .rr-name { font-size: 15px; font-weight: 600; color: var(--text); }
.reporter-row .rr-phone { display: inline-block; font-size: 15px; color: var(--primary); font-weight: 600; text-decoration: none; margin-bottom: 4px; }
.reporter-row .rr-phone::before { content: '📞 '; font-size: 13px; }
.reporter-row .rr-time { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.reporter-row .rr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.reporter-row .rr-note { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.row:last-child { border-bottom: none; }
.row span { color: var(--text-2); }
.row b { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row b.val-ellipsis { cursor: pointer; }
.row b.expanded { white-space: normal; overflow: visible; word-break: break-word; align-self: flex-start; }
.row .muted.remark-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.row .muted.remark-clamp.expanded { -webkit-line-clamp: unset; }
/* 查看后的电话：整号可点，直接调起拨号 */
.phone-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary);
  text-decoration: none; font-weight: 600; letter-spacing: .3px; }
.phone-link:active { opacity: .6; }
.phone-ic { font-size: 14px; line-height: 1; }
.muted { color: var(--muted); font-size: 13px; overflow-wrap: break-word; word-break: break-word; }
/* 个人资料 - 紧凑精致 */
.profile-sec { font-size: 12px; color: var(--muted); padding: 14px 16px 5px; letter-spacing: .6px; font-weight: 500; }
.profile-card { margin: 0 12px; background: var(--card); border-radius: var(--radius);
  padding: 2px 14px; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); }
.profile-row { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.profile-row:last-child { border-bottom: none; }
.profile-row span { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.profile-row b { font-size: 13.5px; color: var(--text); font-weight: 500;
  text-align: right; word-break: break-all; padding-left: 12px; }
.profile-tip { font-size: 12px; color: var(--muted-2); padding: 10px 16px; line-height: 1.6; }
.idc-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.idc-wrap b { text-align: right; padding-left: 0; }
.eye-btn { background: transparent; border: 0; cursor: pointer; padding: 0; margin-left: 2px; color: var(--muted-2); font-size: 14px; line-height: 1; }
.eye-btn:hover { color: var(--primary); }
.profile-card .field { margin: 9px 0; }
.profile-card .field label { font-size: 12.5px; margin-bottom: 4px; }
.profile-card .field input { font-size: 14px; padding: 8px 10px; }
.profile-btn { display: block; margin: 6px 12px 18px; width: calc(100% - 24px); font-size: 14px; }
.notice-badge { display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; padding:0 5px; margin-left:6px; border-radius:9px; background:var(--bad); color:#fff; font-size:11px; line-height:16px; font-weight:600; vertical-align:middle; box-sizing:border-box; }

/* 标签 tag */
.tag { display: inline-block; font-size: 12px; line-height: 1.4; padding: 2px 7px;
  border-radius: var(--radius-xs); background: var(--primary-bg); color: var(--primary); font-weight: 500; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.muted { background: #ececec; color: #8a8a8a; }
.tag.info { background: var(--info-bg); color: var(--info); }

/* ============================================================
   分组菜单
   ============================================================ */
.menu { background: var(--card); border-radius: var(--radius); margin: 0 12px;
  overflow: hidden; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); }
.menu-item { position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 13px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg); }
.menu-item .mi-label { font-size: 15px; }
.menu-item .mi-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.menu-item .mi-arrow { color: var(--muted-2); font-size: 16px; line-height: 1; flex: 0 0 auto; margin-left: 12px; font-weight: 300; }

/* ============================================================
   我的 - 个人中心头部
   ============================================================ */
.mine-header { background: radial-gradient(230px 150px at 90% -20%, rgba(255,255,255,.09), transparent 62%),
    radial-gradient(320px 200px at 8% 118%, rgba(45,140,100,.22), transparent 62%),
    var(--grad-primary); color: #fff;
  padding: 26px 16px; position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 8px rgba(14,36,25,.22); display: flex; align-items: center; gap: 14px; }
.mine-header:active { filter: brightness(0.96); }
.mine-avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600;
  flex-shrink: 0; color: #fff; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,0.4); }
.mine-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-avatar-txt { line-height: 1; }
.avatar-edit { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; opacity: 0; transition: opacity 0.12s; }
.mine-avatar:hover .avatar-edit { opacity: 1; }
.mine-info { flex: 1; min-width: 0; }
.mine-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
  cursor: pointer; min-width: 0; }
.mine-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-edit { font-size: 13px; opacity: 0.7; flex-shrink: 0; }
.ico-pencil { width: 13px; height: 13px; display: inline-block; vertical-align: middle; transform: rotate(-90deg); }
.name-edit-input { font-size: 16px; font-weight: 600; color: var(--text); background: #fff;
  border: 1px solid var(--primary); border-radius: 6px; padding: 2px 8px; width: 70%; max-width: 220px; outline: none; }
.mine-meta { font-size: 13px; opacity: 0.9; display: flex; align-items: center; gap: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-role { background: rgba(230,196,140,.18); color: var(--gold); padding: 2px 7px; border-radius: 10px; }
.mine-meta .eye-toggle { background: transparent; border: 0; padding: 0; margin-left: 1px; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.82); cursor: pointer; line-height: 1; }
.mine-meta .eye-toggle:hover { color: #fff; }
.mine-meta .eye-toggle svg { width: 16px; height: 16px; display: block; }
.mine-meta .eye-toggle.hidden-state { color: var(--gold); }
.mine-arrow { font-size: 24px; opacity: 0.85; flex-shrink: 0; cursor: pointer; padding: 0 4px; }
.mine-header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: 4px; }
.mine-settings-icon { font-size: 20px; opacity: 0.9; flex-shrink: 0; cursor: pointer; padding: 0 4px; line-height: 1; position: relative; }
.mine-settings-icon .notice-badge { position: absolute; top: -4px; right: -6px; margin-left: 0; }
.mine-settings-icon:active { filter: brightness(0.9); }

/* ============================================================
   按钮（小巧精致）
   ============================================================ */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; border: none; border-radius: var(--radius-sm);
  padding: 0 16px; min-height: 38px; font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff; cursor: pointer; margin-top: 10px; text-align: center; transition: filter 0.12s; }
.btn:active { filter: brightness(0.92); }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost:active { background: var(--primary-bg); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.sm { display: inline-block; width: auto; padding: 0 12px; height: 28px; line-height: 28px;
  font-size: 13px; font-weight: 500; margin: 0 0 0 8px; border-radius: 6px; }
/* 客户详情-查看电话/复制按钮：高度收到 2/3（28px → 19px），与同行文字更协调 */
#showPhoneBtn, #copyPhoneBtn { height: 19px; line-height: 19px; font-size: 12px; padding: 0 10px; margin-left: 8px; }
/* 客户详情-联系方式复制按钮：高度减半（28px → 14px），小巧精致 */
#copyPhoneDetailBtn { min-height: 0; height: 22px; line-height: 22px; font-size: 12px; padding: 0 10px; margin-left: 8px; border-radius: 8px; }

/* ============================================================
   表单（精致小巧）
   ============================================================ */
.field { margin: 10px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.req { color: var(--bad); font-weight: 700; }
.opt { color: var(--muted-2); font-size: 11px; font-weight: 500; margin-left: 4px; }
/* 括号位数字输入框（户型/梯户/车库） */
.bracket-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.field .bracket-input { width: 48px; text-align: center; height: 36px; padding: 0 4px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); flex: none; }
.field .bracket-input:focus { border-color: var(--primary); }
.bracket-row > span { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 12px; height: 36px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px; outline: none; background: #fff; line-height: 36px; transition: border-color 0.12s; }
.field textarea { padding: 8px 12px; line-height: 1.5; min-height: 60px; height: auto; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

/* 预览次数锁定提示（未接收客户限看 3 次） */
.preview-lock { margin: 10px 0 2px; padding: 16px 12px; background: #fdf3e7; border: 1px solid #f0dcc0; border-radius: 8px; color: #a2681a; font-size: 13.5px; line-height: 1.7; text-align: center; }

/* 红点引导：引导用户点到「客户跟进日志」折叠及对应的那条跟进记录 */
.fold-new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-left: 6px; vertical-align: middle; }
.log-new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: middle; flex: 0 0 auto; }

/* ============================================================
   底部 Tab
   ============================================================ */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: flex; justify-content: center; align-items: center;
  background: var(--grad-bar); border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -2px 12px rgba(14,36,25,.20); height: 43.5px; z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0); }
.fab-add { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 44.8px; height: 44.8px; border-radius: 50%; background: #fff;
  color: var(--primary); border: none; font-size: 30px; font-weight: 300; line-height: 1;
  display: flex; align-items: center; justify-content: center; z-index: 61;
  box-shadow: 0 4px 12px rgba(14,36,25,.30); cursor: pointer; transition: transform .12s ease; }
.fab-add:active { transform: translate(-50%, -50%) scale(.92); }
.tab { flex: 1 1 0; max-width: 160px; margin: 0 auto; border: none; background: none; padding: 6px 0 8px; font-size: 12px;
  color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: relative; }
.tab span { display: block; }
.tab-badge { position: absolute; top: 3px; left: 50%; transform: translateX(10px);
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 9px; background: var(--bad);
  color: #fff; font-size: 11px; line-height: 15px; font-weight: 600; text-align: center;
  box-sizing: border-box; box-shadow: 0 0 0 2px #fff; }
.tab.active { color: var(--primary); }
.tab:active { background: var(--bg); }

/* ============================================================
   网格统计
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 12px 0; }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border-radius: var(--radius-sm); padding: 6px 4px;
  text-align: center; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); }
.stat b { display: block; font-size: 16px; color: var(--primary); white-space: nowrap; font-weight: 600; }
.stat b small { font-size: 12px; color: var(--muted); font-weight: 400; }
.stat span { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }
.stat.clickable:active { background: var(--bg); }

/* 业绩排名 */
.rk-line { display: flex; align-items: center; gap: 8px; }
.rk-rank { font-size: 15px; width: 22px; text-align: center; flex: 0 0 auto; font-weight: 600; }
.rk-comm { margin-left: auto; color: var(--primary); font-weight: 600; }

/* 图片墙 */
.img-wall { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.img-thumb { position: relative; width: 78px; height: 78px; border-radius: 6px;
  overflow: hidden; border: 1px solid var(--line); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-wall > img { width: 78px; height: 78px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.img-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px;
  text-align: center; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; font-size: 12px; cursor: pointer; }

/* 推广素材回传 */
.ret-details { margin-top: 6px; border-top: 1px solid var(--line-2); padding-top: 6px; }
.ret-details summary { font-size: 13px; color: var(--primary); cursor: pointer; }
.ret-row { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
.ret-row a { color: var(--primary); word-break: break-all; }

/* ============================================================
   首页公告 + 资讯列表
   ============================================================ */
.ann-bar { display: flex; align-items: center; background: #fff; border-radius: var(--radius-sm);
  margin: 8px 12px 0; padding: 5px 12px; box-shadow: var(--shadow-1); overflow: hidden; cursor: pointer;
  border: 0.5px solid rgba(15,23,42,.03); }
.ann-icon { flex: 0 0 auto; margin-right: 8px; font-size: 13px; }
.ann-track { flex: 1; overflow: hidden; white-space: nowrap; }
.ann-items { display: inline-block; padding-left: 100%; animation: ann-marquee 18s linear infinite;
  font-size: 12px; font-weight: 400; color: var(--text); }
@keyframes ann-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.ann-more { flex: 0 0 auto; margin-left: 8px; color: var(--muted-2); font-size: 15px; font-weight: 300; line-height: 1; }
.ann-detail-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.55; word-break: break-all; }

.consult-list { background: #fff; border-radius: var(--radius); margin: 6px 12px;
  padding: 2px 0; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); }
.consult-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-bottom: 1px solid var(--line-2); cursor: pointer; }
.consult-item:last-child { border-bottom: none; }
.consult-item:active { background: var(--bg); }
.c-idx { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.c-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.consult-more { text-align: center; padding: 8px; color: var(--primary);
  font-size: 13px; cursor: pointer; border-top: 1px solid var(--line-2); }

/* 资讯「更多」列表页：每条是独立卡片，收紧间距与内边距、去掉多余分隔线
   （首页 .consult-item 是连体卡片，靠 border-bottom 分隔，保持不变） */
.consult-item.consult-card-item { background: #fff; border-radius: 10px; margin-bottom: 3px;
  padding: 7px 12px; border-bottom: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.consult-item.consult-card-item:last-child { margin-bottom: 0; }

/* 资讯正文富文本（业务端渲染） */
.consult-rich { font-size: 15px; line-height: 1.75; color: var(--text); word-break: break-word; overflow-wrap: break-word; }
.consult-rich img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }
.consult-rich video { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; background: #000; }
.consult-rich a { color: var(--primary); word-break: break-all; }
.consult-rich h1 { font-size: 21px; margin: 14px 0 8px; font-weight: 700; }
.consult-rich h2 { font-size: 18px; margin: 12px 0 7px; font-weight: 700; }
.consult-rich h3 { font-size: 16px; margin: 10px 0 6px; font-weight: 600; }
.consult-rich p { margin: 8px 0; }
.consult-rich ul, .consult-rich ol { margin: 8px 0; padding-left: 22px; }
.consult-rich li { margin: 4px 0; }
.consult-rich blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--primary);
  background: var(--primary-bg); color: var(--text-2); border-radius: 0 8px 8px 0; }
.consult-rich hr { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }
.consult-rich iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; margin: 8px 0; display: block; }

/* ============================================================
   通用
   ============================================================ */
.empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: 14px; }
.list-item { background: #fff; border-radius: var(--radius); padding: 12px 14px;
  margin: 8px 12px; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); }
.section-title { margin: 16px 12px 6px; font-size: 14px; font-weight: 600; color: var(--text-2);
  display: flex; align-items: center; letter-spacing: 0.3px; }
.section-title.collapsible { cursor: pointer; user-select: none; justify-content: space-between; }
.section-title.collapsible .chev { font-size: 13px; color: var(--muted); transition: transform .15s; }

/* 设置页 - 字体小巧精致（仅作用于设置页，不影响其他页面） */
.settings-page .section-title { font-size: 13px; font-weight: 500; letter-spacing: .4px; color: var(--muted); }
.settings-page .menu-item { padding: 11px 14px; }
.settings-page .menu-item .notice-badge { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; right: 26px !important; margin-right: 0 !important; }
.settings-page .mi-label { font-size: 14px; font-weight: 400; }
.settings-page .mi-sub { font-size: 12px; line-height: 1.45; margin-top: 3px; }
.settings-page .mi-arrow { font-size: 15px; }
.settings-page .btn { font-size: 14px; padding: 9px 0; }

/* 首页资讯 / 知识库 / 我的 - 字体小巧精致（作用域 .slim-ui，不影响其他页面） */
.slim-ui .section-title { font-size: 13px; font-weight: 500; letter-spacing: .3px; }
.slim-ui .mi-label { font-size: 14px; font-weight: 400; }
.slim-ui .mi-sub { font-size: 12.5px; line-height: 1.4; margin-top: 3px; }
.slim-ui .mi-arrow { font-size: 15px; font-weight: 300; }
.slim-ui .c-title { font-size: 13.5px; }
.slim-ui .mine-name { font-size: 16px; font-weight: 550; margin-bottom: 4px; }

/* ============================================================
   我的客户
   ============================================================ */
.client-toolbar { display: flex; gap: 8px; padding: 12px 12px 0; }
.client-search { flex: 1; display: flex; align-items: center; background: #fff;
  border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 0 12px;
  height: 36px; transition: border-color 0.12s; }
.client-search:focus-within { border-color: var(--primary); }
.client-search-icon { font-size: 14px; color: var(--muted); margin-right: 6px; }
.client-search input { flex: 1; border: none; background: transparent; padding: 0;
  font-size: 15px; outline: none; height: 100%; }
.client-sort { flex: 0 0 auto; border: 0; background: var(--primary); color: #fff;
  border-radius: 50%; width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; transition: filter 0.12s; }
.client-sort:active { filter: brightness(0.92); }
.client-sort svg { display: block; }
.client-row { background: #fff; border-radius: var(--radius); padding: 8px 12px;
  margin: 4px 12px; box-shadow: var(--shadow-1); cursor: pointer;
  border: 0.5px solid rgba(15,23,42,.03); transition: filter 0.12s;
  display: flex; flex-direction: column; gap: 5px; font-size: 14px; overflow: hidden; position: relative; }
.client-row:active { filter: brightness(0.97); }
/* 第一行：业主名称(左) 联系方式(中) 状态(右)，间距相等 */
.client-row .cr-line1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.client-row .cr-line1 .client-name { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-row .cr-line1 .client-phone { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.client-row .cr-line1 .client-time { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.client-row .cr-line1 .cr-follow { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.client-row .cr-line1 .client-status { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.client-row .cr-line1 .client-status .tag { margin: 0; white-space: nowrap; }
.client-row .notice-badge { position: absolute; top: 6px; right: 8px; }
/* 第二行：标的物名称(左) 距上次跟进(中) 报备时间(右)，间距相等 */
.client-row .cr-line2 { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.client-row .cr-line2 > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-row .cr-line2 .client-prop { flex: 1 1 auto; }
.client-row .cr-line2 .cr-follow { flex: 0 0 auto; }
.client-row .cr-line2 .client-time { flex: 0 0 auto; }
.client-row .cr-line2 .cr-follow.overdue { color: var(--warn); font-weight: 500; }
.client-row .cr-line2 .cr-follow.overdue-gray { color: var(--muted); font-weight: 400; }
.client-row .cr-line2 .hide-btn { flex: 0 0 auto; margin: 0; }
.client-row .cr-line2 .client-area { flex: 0 0 auto; color: var(--muted); white-space: nowrap; }
.hide-btn { font-size: 12px; line-height: 1; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; cursor: pointer; opacity: .7; white-space: nowrap; }
.hide-btn:hover { opacity: 1; border-color: var(--primary); color: var(--primary); }
.hide-btn:active { background: var(--primary-bg); }
.cf-warn { width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; cursor: pointer; box-shadow: 0 0 0 2px rgba(220,38,38,.18); }
.cf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); cursor: pointer; box-shadow: 0 0 0 3px rgba(220,38,38,.22); animation: cfPulse 1.5s ease-in-out infinite; }
.cr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px rgba(36,52,108,.18); }
@keyframes cfPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(220,38,38,.22); } 50% { box-shadow: 0 0 0 5px rgba(220,38,38,.04); } }
.log-item.log-flash { animation: logFlash 1.6s ease; }
@keyframes logFlash { 0% { background: rgba(220,38,38,.16); } 100% { background: transparent; } }
.client-row .tag { margin: 0; white-space: nowrap; }
/* 提现明细：与「我的客户」列表同款紧凑单行行样式（一个提现记录 = 一行） */
.wd-row { background:#fff; border-radius:var(--radius); padding:9px 11px; margin-bottom:8px; box-shadow:var(--shadow-1); border:0.5px solid rgba(15,23,42,.03); }
.wd-row:last-child { margin-bottom:0; }
.wd-row .wd-top { display:flex; align-items:center; gap:0; font-size:12px; }   /* 字号与「申请/到账」日期行一致 */
.wd-row .wd-status { font-size:1em; font-weight:600; white-space:nowrap; margin-right:0.6em; }
/* 提现/实到数字：占位 4 位、超长省略、永不换行（已去掉点击展开交互）；外层 overflow 兜底：空间不足时自身截断，绝不重叠压到相邻元素 */
/* 提现/实到金额行与「申请/到账」日期行同款：标签灰(muted) + 数值深色 weight:500，不再加粗强调 */
.wd-row .wd-amt { font-size:1em; font-weight:400; color:var(--muted); white-space:nowrap; flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.wd-row .wd-amt-sub { color:var(--muted); font-weight:400; font-size:1em; white-space:nowrap; flex:0 1 auto; min-width:0; margin-left:0.6em; overflow:hidden; text-overflow:ellipsis; }
/* 数字必须是纯行内文本：一旦加 display:inline-block + overflow:hidden，inline-block 的 baseline 会变成「盒子底边」而非文字基线，数字被顶高约 3px（看着比「提现」高半截）。截断交给父级 .wd-amt 的 overflow:hidden + ellipsis 负责 */
.wd-row .wd-amt-num { color:var(--text); font-weight:500; }
/* 窄屏兜底样式统一放在基础规则之后（放在前面会被同优先级的基础规则覆盖而失效） */
.wd-row .wd-method { font-size:12px; color:var(--muted); white-space:nowrap; display:inline; padding:0; margin:0 1em 0 0; border:0; background:none; }
.wd-row .wd-spacer { flex:1; }
.wd-row .wd-proof-wrap { position:relative; display:inline-flex; flex:0 0 auto; }
.wd-row .wd-proof-btn { display:inline-flex; align-items:center; justify-content:center; height:20px; padding:0 8px; border-radius:7px; font-size:11px; line-height:1; color:var(--primary); background:var(--primary-bg); border:1px solid var(--primary); cursor:pointer; white-space:nowrap; }
.wd-row .wd-proof { width:28px; height:28px; border-radius:6px; object-fit:cover; cursor:pointer; flex:0 0 auto; border:1px solid var(--line); }
.wd-row .wd-proof-none { display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:11px; border:1px dashed var(--line); cursor:default; }
.wd-row .wd-bottom { display:flex; flex-wrap:wrap; gap:5px 14px; margin-top:3px; font-size:12px; color:var(--muted); }
.wd-row .wd-bottom b { color:var(--text); font-weight:500; }
.wd-row .wd-reject { color:#c0392b; }
/* 窄屏兜底：收紧间距与凭证尺寸，避免挤压错乱（必须放在基础规则之后才生效） */
@media (max-width: 360px) {
  .wd-row { padding:8px 9px; }
  .wd-row .wd-status { margin-right:0.35em; }
  .wd-row .wd-amt-sub { margin-left:0.35em; }
  .wd-row .wd-method { margin-right:0.35em; }
  .wd-row .wd-proof { width:24px; height:24px; }
  .wd-row .wd-proof-btn { height:18px; padding:0 6px; font-size:10.5px; border-radius:6px; }
}
.seq { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; margin-right:6px; border-radius:9px; background:var(--primary); color:#fff; font-size:12px; font-weight:600; vertical-align:middle; }
/* 卡片双状态标签配色 */
.tag.own { background: var(--info-bg); color: var(--info); }
.tag.care { background: var(--care-bg); color: var(--care); }
.tag.care-pending { background: var(--warn-bg); color: var(--warn); }
/* 转跟进客户未读红点 */
.cr-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 0 3px rgba(239,68,68,.18); }

/* 团队（邀请人 / 我邀请的人）行 */
.team-row { padding: 12px 14px; }
.team-row .tr-rel { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.team-row .tr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.team-row .tr-name { font-weight: 600; font-size: 15px; color: var(--text); }
.team-row .tr-phone { color: var(--muted); font-size: 13px; }
.team-row .tr-join { color: var(--muted); font-size: 13px; }
.team-row .tr-grade { margin-left: auto; flex: 0 0 auto; font-size: 12px; font-weight: 600; color: #fff; background: var(--primary); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.team-row .tr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.team-row .tr-tags .tag { margin: 0; position: relative; }
.team-row .tr-tags .tag .tnew { position: absolute; top: -7px; right: -7px; background: var(--bad); color: #fff; font-size: 10px; line-height: 1.1; padding: 2px 4px; border-radius: 999px; font-style: normal; font-weight: 700; box-shadow: 0 0 0 1.5px #fff; z-index: 2; }

/* ============================================================
   折叠卡（提成 / 职级 / 团队信息）
   ============================================================ */
.collapsible { cursor: pointer; }
.coll-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; }
.coll-head .rate-val { color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.coll-head .chev { font-size: 14px; transition: transform .15s; color: var(--muted); }
.coll-body { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 10px; cursor: default; font-size: 13px; }

/* ============================================================
   提现方式
   ============================================================ */
.wd-methods { display: flex; gap: 8px; margin-top: 6px; }
.wd-method { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 13px 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; user-select: none; }
.wd-method.on { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 0 0 1px var(--primary) inset; }
.wd-check { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; color: #fff; }
.wd-method.on .wd-check { background: var(--primary); border-color: var(--primary); }
.wd-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.wd-ic svg { width: 21px; height: 21px; display: block; }
.wd-ic-bank { background: #eef1f4; }
.wd-ic-wx { background: #eef1f4; }
.wd-ic-ali { background: #eef1f4; }
.wd-method.on .wd-ic-bank { background: #e2e7ee; }
.wd-method.on .wd-ic-wx { background: #e2e7ee; }
.wd-method.on .wd-ic-ali { background: #e2e7ee; }
.wd-ml { font-size: 14px; font-weight: 500; color: var(--text); }
.wd-ms { font-size: 12px; color: var(--muted); }
.wd-entry { width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2);
  font-size: 12.5px; font-weight: 300; color: var(--muted); text-align: center; cursor: pointer; }
.wd-entry:active { opacity: .6; }

/* ============================================================
   客户详情折叠区块
   ============================================================ */
.fold-title { font-size: 15px; font-weight: 600; padding: 4px 0; cursor: pointer;
  user-select: none; display: flex; align-items: center; justify-content: space-between; }
.fold-title::before { content: '▼'; font-size: 12px; flex: 0 0 auto; margin-right: 8px;
  color: var(--muted); transition: transform .15s; }
.fold-title:not(.on)::before { content: '▶'; }
.fold-title.on { color: var(--text); }
.fold-title .fh-left { flex: 1; }
.fold-title .fh-right { display: flex; align-items: center; gap: 6px; }
.fh-edit-btn { background: transparent; border: 0; color: var(--muted-2); font-size: 15px; cursor: pointer; padding: 0 4px; line-height: 1; }
.fh-edit-btn:hover { color: var(--primary); }
.fh-edit-btn.primary { background: transparent; border: 0; color: var(--primary);
  font-size: 14px; font-weight: 500; cursor: pointer; padding: 0 4px; line-height: 1; }
.fh-edit-btn.primary:active { opacity: 0.7; }
.fh-chip { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary);
  border-radius: 14px; font-size: 13px; font-weight: 500; padding: 4px 10px; cursor: pointer; line-height: 1; position: relative; }
.fh-chip:active { opacity: 0.7; }
.fh-chip-dot { position: absolute; top: -3px; right: -3px; min-width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.fold-body { margin-top: 4px; display: none; }
.fold-title.on + .fold-body { display: block; }
/* 标的物详情：字号更小、间距更紧凑，整体更精致 */
#fold-info .fold-body { margin-top: 3px; }
#fold-info .fold-body .row { padding: 3px 0; font-size: 13.5px; line-height: 1.45; }
#fold-info .fold-body .row span { font-size: 13px; color: var(--text-2); }
#fold-info .fold-body .row b { font-size: 13.5px; font-weight: 500; color: var(--text); }
#fold-info .fold-body .muted { font-size: 13px; line-height: 1.6; }
#fold-info .fold-body .img-wall { gap: 5px; }

/* ============================================================
   跟进日志（清新小巧，区分跟进 vs 邀约）
   ============================================================ */
.log-item { padding: 7px 11px; margin-bottom: 6px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.5; border-left: 2px solid transparent;
  background: var(--bg); border: 0.5px solid var(--line); }
.log-item-follow { border-left: 2px solid var(--info); background: var(--info-bg); }
.log-item-invite { border-left: 2px solid var(--ok); background: var(--ok-bg); }
.log-item .log-type-icon { display: inline-block; font-size: 12px; padding: 1px 6px;
  border-radius: 3px; margin-right: 6px; font-weight: 500; flex-shrink: 0; }
.log-item-follow .log-type-icon { background: var(--info-bg); color: var(--info); }
.log-item-invite .log-type-icon { background: var(--ok-bg); color: var(--ok); }
/* 可折叠跟进卡片：默认仅显示标题（高度约原来的 2/3），点击展开详情 */
.log-collapsible { cursor: pointer; }
.log-head { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.log-head-static { cursor: default; }
.log-title { flex: 1; min-width: 0; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-caret { display: inline-block; flex-shrink: 0; font-size: 11px; color: var(--text-3); margin-left: 4px; transition: transform .15s; transform: rotate(0deg); }
.log-collapsible.open .log-caret { transform: rotate(180deg); }
.log-detail { display: none; margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--line-2);
  font-size: 12px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.log-collapsible.open .log-detail { display: block; }
/* 跟进日志单行格式：类型 · 时间 · 人物昵称 · 行为 */
.log-line { font-size: 13px; line-height: 1.5; color: var(--text); word-break: break-word; }
.log-line .log-type { font-weight: 600; }
.log-line .log-time { color: var(--text-3); }
.log-line .log-person { color: var(--text-2); }
/* 兼容其它页面（成交明细 / 发放 / 提现）仍使用 log-meta / log-note */
.log-item .log-meta { color: var(--text-2); font-size: 13px; }
.log-item .log-meta b { color: var(--text); }
.log-item .log-note { color: var(--text-2); margin-top: 3px; font-size: 13.5px; }
/* 日志分类：查看信息黄、联系方式红、签约橙、转跟进灰 */
.log-item-view-info { border-left: 2px solid #a3abb9; background: #f1f3f7; }
.log-item-view-phone { border-left: 2px solid var(--cyan); background: var(--cyan-bg); }
.log-item-sign { border-left: 2px solid var(--warn); background: var(--warn-bg); }
.log-item-care { border-left: 2px solid var(--muted); background: #f1f3f7; }
.log-item-view-info .log-type-icon { background: #e8ecf2; color: var(--muted); }
.log-item-view-phone .log-type-icon { background: var(--cyan-bg); color: var(--cyan); }
.log-item-sign .log-type-icon { background: var(--warn-bg); color: var(--warn); }
.log-item-sign-rejected { border-left: 2px solid var(--bad); background: var(--bad-bg); }
.log-item-sign-rejected .log-type-icon { background: var(--bad-bg); color: var(--bad); }
.log-item-reject { border-left: 2px solid var(--bad); background: var(--bad-bg); }
.log-item-reject .log-type-icon { background: var(--bad-bg); color: var(--bad); }
.log-item-reject .log-title, .log-item-reject .log-detail { color: var(--bad); }
/* 驳回日志行右侧「重新提交」按钮 */
.log-resubmit-btn { float: right; margin-left: 10px; padding: 4px 12px; font-size: 12.5px; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 14px; font-weight: 600; }
.log-resubmit-btn:active { background: var(--primary); color: #fff; }
/* 驳回日志后的「查看图片」文字链接：点击弹窗查看，保持单行对齐 */
.log-view-img { display: inline; margin-left: 6px; color: var(--cyan); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.log-view-img:active { opacity: .7; }
/* 全屏图片放大遮罩 */
.img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.img-lightbox img { max-width: 92%; max-height: 88%; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
/* 多图放大：纵向排列、可滚动 */
.img-lightbox-box { display: flex; flex-direction: column; gap: 12px; max-width: 92vw; max-height: 88vh; overflow: auto; padding: 6px; align-items: center; }
.img-lightbox-box img { max-width: 90vw; max-height: 80vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.log-item-care .log-type-icon { background: #e6eaef; color: var(--text-2); }

/* 客户转跟进沟通 */
.chat-page { height: calc(100vh - 108px); display: flex; flex-direction: column; background: #ededed; position: relative; }
.chat-room-head { padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.chat-room-head span { color: var(--muted); font-size: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px 12px 14px; }
.chat-msg { display: flex; gap: 7px; align-items: flex-start; margin-bottom: 12px; justify-content: flex-start; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-avatar { width: 34px; height: 34px; border-radius: 6px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; background: #9aa3ad; overflow: hidden; position: relative; z-index: 2; }
.chat-msg.mine .chat-avatar { background: var(--primary); }
.chat-body { max-width: 68%; min-width: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.chat-msg.mine .chat-body { align-items: flex-end; }
.chat-bubble { position: relative; padding: 7px 10px; border-radius: 8px; background: #fff; color: #1a1a1a; font-size: 15px; line-height: 1.45; word-break: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.04); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chat-msg.mine .chat-bubble { background: #95ec69; color: #1a1a1a; font-size: 14px; line-height: 1.4; }
.chat-bubble::before { content: ''; position: absolute; top: 10px; width: 0; height: 0; border: 6px solid transparent; }
.chat-msg.peer .chat-bubble::before { left: -11px; border-right-color: #fff; }
.chat-msg.mine .chat-bubble::before { right: -11px; border-left-color: #95ec69; }
.chat-bubble-quote { border-left: 2px solid #c7ccd3; background: rgba(0,0,0,.04); padding: 4px 6px; margin-bottom: 5px; font-size: 12px; color: #6b7280; border-radius: 3px; }
.chat-time { font-size: 11px; color: #b2b2b2; margin: 3px 2px 0; }
.chat-reply { align-self: flex-start; border: 0; background: transparent; color: #b2b2b2; font-size: 11px; padding: 2px 0 0; }
.chat-msg.mine .chat-reply { align-self: flex-end; }
.chat-image { display: block; max-width: 140px; max-height: 180px; border-radius: 4px; object-fit: contain; }
.chat-file { min-width: 140px; display: flex; flex-direction: column; color: #1a1a1a; text-decoration: none; background: rgba(0,0,0,.03); padding: 6px 8px; border-radius: 4px; font-size: 14px; }
.chat-file span { color: #6b7280; font-size: 11px; margin-top: 3px; }
.chat-bottom-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f7f7f7; border-top: 1px solid #e5e5e5; position: relative; }
.chat-tool-btn { width: 28px; height: 28px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: #1a1a1a; cursor: pointer; padding: 0; }
.chat-tool-btn svg { width: 26px; height: 26px; }
.chat-input-wrap { flex: 1; position: relative; background: #fff; border-radius: 6px; min-height: 36px; display: flex; align-items: center; border: 1px solid #e5e5e5; }
.chat-input-wrap textarea { flex: 1; min-height: 34px; max-height: 86px; resize: none; border: 0; background: transparent; padding: 8px 10px; font-size: 15px; line-height: 1.3; outline: none; }
.chat-send-btn { color: #fff; font-size: 14px; font-weight: 500; width: auto; padding: 5px 14px; background: #07c160; border-radius: 6px; }
.chat-more-panel { position: absolute; bottom: 100%; left: 0; right: 0; background: #f7f7f7; border-top: 1px solid #e5e5e5; padding: 16px 12px 22px; display: none; grid-template-columns: repeat(4, 1fr); row-gap: 18px; column-gap: 10px; z-index: 10; }
.chat-more-panel.show { display: grid; }
.chat-emoji-panel { position: absolute; bottom: 100%; left: 0; right: 0; background: #f7f7f7; border-top: 1px solid #e5e5e5; padding: 10px 10px 14px; display: none; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 216px; overflow-y: auto; z-index: 10; }
.chat-emoji-panel.show { display: grid; }
.chat-emoji-item { font-size: 22px; line-height: 1; text-align: center; padding: 5px 0; cursor: pointer; border-radius: 6px; user-select: none; }
.chat-emoji-item:active { background: #e7e7e7; }
.chat-more-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #666; cursor: pointer; }
.chat-more-item .cm-icon { width: 54px; height: 54px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-more-item .cm-icon svg { width: 28px; height: 28px; color: #1a1a1a; }
.chat-quote { background: #f7f7f7; padding: 6px 12px; color: #888; font-size: 12px; display: flex; justify-content: space-between; border-top: 1px solid #e5e5e5; }
.chat-quote button { border: 0; background: transparent; font-size: 18px; color: #888; }
.chat-system { text-align: center; font-size: 12px; color: #fff; background: #cecece; border-radius: 4px; padding: 4px 8px; margin: 8px auto; max-width: 88%; line-height: 1.5; }
/* 长按消息操作菜单 */
.msg-menu-wrap { position: fixed; inset: 0; z-index: 9999; }
.msg-menu-mask { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.msg-menu { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 14px 14px 0 0; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); animation: msgMenuUp .16s ease; }
@keyframes msgMenuUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.msg-menu-item { padding: 14px 16px; font-size: 16px; text-align: center; color: var(--text); border-bottom: 1px solid var(--line); cursor: pointer; }
.msg-menu-item:active { background: #f2f5f3; }
.msg-menu-item.danger { color: var(--bad); }
.msg-menu-item.cancel { border-bottom: 0; color: var(--muted); }

/* 连续同类型日志折叠 */
.log-fold-group { margin-bottom: 6px; }
.log-fold-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px;
  border-radius: var(--radius-sm); font-size: 13px; cursor: pointer;
  border-left-width: 2px; border-left-style: solid; border-top: 0.5px solid var(--line);
  border-right: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line);
  -webkit-user-select: none; user-select: none; }
.log-fold-bar:active { filter: brightness(0.97); }
.log-fold-txt { color: var(--text); font-weight: 500; }
.log-fold-count { color: var(--text-3); font-size: 12px; background: var(--bg);
  padding: 1px 6px; border-radius: 8px; }
.log-fold-arrow { margin-left: auto; font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.log-fold-body { padding-top: 6px; }
.log-fold-body .log-item { margin-bottom: 6px; }
/* 客户跟进日志：卡片高度收到 3/4、间距减半
   （.log-item 也被成交明细 / 提现记录复用，所以限定在 #logList 内生效） */
#logList .log-item { padding: 4px 9px; margin-bottom: 3px; line-height: 1.35; }
#logList .log-head { min-height: 16px; }
#logList .log-detail { margin-top: 3px; padding-top: 3px; }
#logList .log-fold-group { margin-bottom: 3px; }
#logList .log-fold-bar { padding: 4px 9px; }
#logList .log-fold-body { padding-top: 3px; }
#logList .log-fold-body .log-item { margin-bottom: 3px; }

/* ============================================================
   推广素材
   ============================================================ */
.promo-list { margin: 0 12px; }
.promo-head-bar { display: flex; align-items: center; gap: 8px; padding: 14px 12px 0; }
.promo-row { display: grid; grid-template-columns: 36px 1fr 76px 76px; gap: 6px;
  align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--line-2);
  font-size: 14px; background: #fff; border-radius: var(--radius-sm);
  margin: 8px 12px; box-shadow: var(--shadow-1); }
.promo-row.promo-head { color: var(--muted); font-size: 12px; background: transparent;
  box-shadow: none; padding: 0 6px; margin: 0 12px 6px; }
.promo-row .pr-num { text-align: center; color: var(--muted); font-weight: 600; }
.promo-row .pr-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-row .pr-play { width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: var(--primary); color: #fff; font-size: 14px; cursor: pointer; margin: 0 auto; }
.promo-row .pr-btn { height: 26px; border-radius: 13px; border: 0; font-size: 12px;
  font-weight: 500; cursor: pointer; padding: 0; display: flex;
  align-items: center; justify-content: center; }
.promo-row .pr-btn.dl-on { background: var(--bg-2); color: var(--muted); }
.promo-row .pr-btn.dl-off { background: var(--ok); color: #fff; }
.promo-row .pr-btn.pr-toggle { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.promo-row .pr-btn.pr-toggle.on { background: var(--primary); color: #fff; }

.btn-sm-primary { padding: 0 12px; height: 28px; line-height: 28px; border: 0;
  border-radius: 14px; background: var(--primary); color: #fff; font-size: 13px;
  font-weight: 500; cursor: pointer; }
.btn-sm-primary:active { filter: brightness(0.92); }

/* ============================================================
   视频 / 通用弹窗
   ============================================================ */
.promo-modal { position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; }
.promo-modal.show { display: flex; }
.promo-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.promo-modal-body { position: relative; z-index: 1; width: 92vw; max-width: 480px; }
.promo-modal-close { position: absolute; top: -36px; right: 0; width: 30px; height: 30px;
  border-radius: 50%; border: 0; background: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; color: #111; }

/* 精致小巧确认弹窗（查看电话等敏感操作） */
.mini-confirm { position: fixed; inset: 0; z-index: 10000; display: flex;
  align-items: center; justify-content: center; }
.mini-confirm .mc-mask { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.mini-confirm .mc-box { position: relative; z-index: 1; width: 76vw; max-width: 300px;
  background: #fff; border-radius: 14px; padding: 22px 18px 14px; box-shadow: var(--shadow-2);
  text-align: center; animation: mc-pop .16s ease-out; }
@keyframes mc-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mini-confirm .mc-msg { font-size: 15px; color: var(--text); line-height: 1.6; padding: 2px 6px 0; }
.mini-confirm .mc-btns { display: flex; gap: 10px; margin-top: 20px; }
.mini-confirm .mc-btn { flex: 1; height: 38px; border: 0; border-radius: 10px; font-size: 15px;
  font-weight: 500; cursor: pointer; }
.mini-confirm .mc-cancel { background: var(--bg-2); color: var(--text-2); }
.mini-confirm .mc-ok { background: var(--primary); color: #fff; }
.mini-confirm .mc-btn:active { filter: brightness(0.94); }

/* ============================================================
   回传表单紧凑
   ============================================================ */
.rt-form .field input, .rt-form .field select { font-size: 14px; }
.rt-other-row { display: flex; gap: 6px; margin-top: 6px; }
.rt-other-row input { flex: 1; padding: 0 10px; height: 32px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 14px; outline: none; background: #fff; min-width: 0; }
.rt-other-row input:focus { border-color: var(--primary); }
.rt-other-row button { flex: 0 0 auto; padding: 0 12px; height: 32px; line-height: 32px;
  border: 0; border-radius: 6px; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer; margin: 0; }
.rt-other-row button:active { filter: brightness(0.92); }
.rt-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ============================================================
   回传平台列表
   ============================================================ */
.return-box { background: var(--bg); border-radius: var(--radius-sm);
  margin: 4px 12px 8px; padding: 8px 10px; border: 0.5px solid var(--line); }
.rb-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.rt-platform-row { display: flex; align-items: center; justify-content: space-between;
  padding: 7px 4px; border-bottom: 1px solid var(--line-2); }
.rt-platform-row:last-child { border-bottom: none; }
.rt-platform-name { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rt-del { width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: var(--bad); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.rt-state { min-width: 60px; height: 24px; border-radius: 12px; border: 0;
  font-size: 12px; font-weight: 500; cursor: pointer; padding: 0 10px; }
.rt-state.rt-on { background: var(--ok); color: #fff; cursor: default; }
.rt-state.rt-off { background: var(--bad); color: #fff; }
.rt-add-row { margin-top: 8px; padding: 8px 4px; text-align: center; font-size: 13px;
  color: var(--primary); cursor: pointer; border-top: 1px dashed var(--line); }
.rt-add-row:active { background: var(--bg); }

/* ============================================================
   实时信息流（清新小巧）
   ============================================================ */
.feed-card { padding: 4px 14px 10px; }
.feed-list { position: relative; overflow: hidden; height: 116px; }
.feed-track { animation: feed-up 18s linear infinite; will-change: transform; }
.feed-track:hover { animation-play-state: paused; }
@keyframes feed-up { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.feed-item { display: flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-type { padding: 1px 6px; border-radius: 3px; font-size: 12px; font-weight: 500; flex: 0 0 auto; }
.feed-type.report { background: var(--info-bg); color: var(--info); }
.feed-type.sign { background: var(--warn-bg); color: var(--warn); }
.feed-type.sold { background: var(--ok-bg); color: var(--ok); }
.feed-user { color: var(--text); font-weight: 500; flex: 0 0 auto; }
.feed-meta { color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-cum { color: var(--muted); font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.feed-time { color: var(--muted-2); font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.feed-more { text-align: center; padding: 6px 0 0; font-size: 13px;
  color: var(--primary); cursor: pointer; border-top: 1px dashed var(--line-2); }

/* ============================================================
   客服小助手聊天窗
   ============================================================ */
.ai-msg-list { flex: 1; padding: 12px; overflow-y: auto; background: var(--bg); }
.ai-msg { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.ai-msg.ai-user { flex-direction: row-reverse; }
.ai-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex: 0 0 auto; }
.ai-bubble { max-width: 80%; padding: 8px 11px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-1); font-size: 14px; line-height: 1.6;
  border: 0.5px solid var(--line); }
.ai-user .ai-bubble { background: var(--primary); color: #fff; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px 38px; }
.ai-chip { display: inline-block; padding: 3px 9px; background: #f1f3f7; border: 1px solid #eef1f4;
  border-radius: 12px; font-size: 12px; color: var(--muted); cursor: pointer; transition: all 0.12s; }
.ai-chip:hover { background: #eef1f4; color: #6b7688; border-color: #dde1e6; }
.ai-suggest-box { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 12px 10px; }

/* ============================================================
   邀约到访时间触发按钮 + 日历
   ============================================================ */
.iv-trigger { width: 100%; padding: 0 12px; height: 36px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; font-size: 15px; color: var(--muted);
  cursor: pointer; text-align: left; line-height: 36px; }
.iv-trigger[data-val] { color: var(--text); }
.iv-trigger:active { background: var(--bg); }

.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.tp-title { font-size: 15px; font-weight: 600; }
.tp-nav { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 14px; cursor: pointer; }
.tp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tp-cell { height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 50%; cursor: pointer; }
.tp-cell.empty { cursor: default; }
.tp-cell:hover:not(.empty) { background: var(--bg-2); }
.tp-cell.tp-today { color: var(--primary); font-weight: 600; }
.tp-cell.tp-sel { background: var(--primary); color: #fff; font-weight: 600; }
.tp-shortcuts { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tp-shortcuts button { padding: 0 10px; height: 26px; line-height: 26px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; color: var(--text-2); }
.tp-time { display: flex; align-items: center; gap: 6px; padding: 10px 0 0;
  border-top: 1px solid var(--line); margin-top: 8px; font-size: 14px; }
.tp-time select { padding: 0 8px; height: 28px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 14px; background: #fff; }

/* ============================================================
   提现页：申请金额行
   ============================================================ */
.wd-apply-row { align-items: center; }
.wd-apply-input { display: flex; align-items: center; gap: 4px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  min-width: 140px; height: 32px; }
.wd-apply-input input { border: 0; outline: none; font-size: 15px; padding: 0;
  background: transparent; width: 110px; text-align: right; height: 100%; }
.wd-apply-input .wd-yen { color: var(--muted); font-size: 14px; }
.wd-edit-icon { background: transparent; border: 0; color: var(--muted-2);
  font-size: 13px; cursor: pointer; padding: 0 4px; line-height: 1; }
.wd-edit-icon:hover { color: var(--primary); }

/* ============================================================
   我的邀请弹窗
   ============================================================ */
.iv-block { background: var(--bg); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 10px; border: 0.5px solid var(--line); }
.iv-block-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.3px; }
.iv-row { display: flex; gap: 12px; align-items: flex-start; }
.iv-qr { width: 100px; height: 100px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line); flex: 0 0 auto; }
.iv-qr-info { flex: 1; min-width: 0; }
.iv-code { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.iv-link { font-size: 12px; color: var(--muted); word-break: break-all;
  background: #fff; padding: 4px 6px; border-radius: 4px; margin-bottom: 6px;
  border: 0.5px solid var(--line); }
.iv-copy { padding: 0 10px; height: 24px; line-height: 24px; border: 0;
  border-radius: 4px; background: var(--primary); color: #fff; font-size: 12px; cursor: pointer; }
.iv-copy:active { filter: brightness(0.92); }
.iv-posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.iv-poster { background: #fff; border-radius: 6px; overflow: hidden;
  cursor: pointer; border: 0.5px solid var(--line); }
.iv-poster img { width: 100%; height: 120px; object-fit: cover; display: block; }
.iv-poster-meta { font-size: 12px; color: var(--muted); padding: 4px 6px; line-height: 1.4; }
.iv-poster-tag { display: inline-block; padding: 1px 5px; border-radius: 3px;
  background: var(--info-bg); color: var(--info); font-size: 11px; font-weight: 500; }
.iv-poster-tag.mine { background: var(--ok-bg); color: var(--ok); }

/* ============================================================
   发布数据页
   ============================================================ */
.stats-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px; }
.ss-cell { background: #fff; border-radius: var(--radius-sm); padding: 10px 4px;
  text-align: center; box-shadow: var(--shadow-1); border: 0.5px solid rgba(15,23,42,.03); }
.ss-num { font-size: 18px; font-weight: 600; color: var(--primary); }
.ss-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stats-item { background: #fff; border-radius: var(--radius); padding: 11px 14px;
  margin: 0 12px 8px; box-shadow: var(--shadow-1); cursor: pointer;
  border: 0.5px solid rgba(15,23,42,.03); }
.stats-item.overdue { border-left: 2px solid var(--bad); background: var(--bad-bg); }
.si-title { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.si-tag { font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--bg); padding: 1px 6px; border-radius: 6px; }
.si-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.si-stats { font-size: 13px; color: var(--text); margin-top: 6px; }
.stats-item.overdue .si-meta { color: var(--bad); }
.si-meta .si-warn { display: inline-block; background: var(--bad); color: #fff;
  padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; }

/* ============================================================
   协议勾选
   ============================================================ */
.agreement-row { display: flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; color: var(--muted); }
.agreement-row input { width: 16px; height: 16px; cursor: pointer; }
.agreement-row a { color: var(--primary); cursor: pointer; text-decoration: underline; }
/* ============================================================
   报备去重提示卡片（脱敏展示）
   ============================================================ */
.dup-card { background: var(--warn-bg); border: 1px solid rgba(161,98,7,.34); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: var(--warn); }
.dup-card .dup-title { font-weight: 600; margin-bottom: 6px; }
.dup-card .dup-row { color: var(--text-2); margin: 2px 0; }
.dup-card .dup-actions { display: flex; gap: 8px; margin-top: 8px; }
.dup-card.dup-block { background: var(--bad-bg); border-color: rgba(185,28,28,.38); color: var(--bad); font-weight: 600; }
.dup-card.dup-ok { background: var(--ok-bg); border-color: rgba(15,118,110,.36); color: var(--ok); }

/* ============================================================
   图片放大查看遮罩（合同照片 / 缩略图）
   ============================================================ */
.img-enlarge-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.img-enlarge-overlay img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.img-enlarge-overlay .img-enlarge-tip { color: #fff; opacity: .7; font-size: 13px; margin-top: 12px; }

/* ============================================================
   职级说明弹窗
   ============================================================ */
.gi-card { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; background: #fff; }
.gi-card.cur { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(43,63,125,.18); }
.gi-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; }
.gi-name { font-weight: 600; font-size: 15px; color: var(--text); }
.gi-meta { margin-left: auto; font-size: 12px; color: var(--text-2); }
.gi-arrow { color: var(--muted); font-size: 13px; transition: transform .15s; }
.gi-card.cur .gi-arrow { color: var(--primary); }
.gi-body { padding: 0 12px 12px; border-top: 1px dashed var(--line); }
.gi-desc { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.7; color: var(--text-2); margin-top: 10px; }

/* 我的页职级名（可点击，无箭头） */
.grade-link { cursor: pointer; color: var(--primary); text-decoration: underline dotted; text-underline-offset: 3px; }
.grade-link:active { opacity: .7; }

/* 当前职级卡片统计 */
.gi-head2 { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.gi-stats { display: flex; gap: 10px; padding: 0 12px 12px; }
.gi-stat { flex: 1; background: #f5f7fb; border-radius: 8px; padding: 8px 10px; text-align: center; }
.gi-stat-v { font-weight: 700; font-size: 15px; color: var(--primary); }
.gi-stat-l { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* 晋升条件区块 */
.gi-sec { margin-top: 12px; }
.gi-sec-title { font-weight: 600; font-size: 14.5px; color: var(--text); margin-bottom: 6px; padding-left: 8px; border-left: 3px solid var(--primary); }
.gi-cond { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; font-size: 13.5px; }
.gi-cond-dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px; text-align: center; line-height: 16px; font-size: 12px; background: var(--bad-bg); color: var(--bad); }
.gi-cond.met .gi-cond-dot { background: var(--ok-bg); color: var(--ok); }
.gi-cond-txt { color: var(--text-2); }
.gi-cond.met .gi-cond-txt { color: var(--ok); }
.gi-cond-cur { color: var(--text-2); font-size: 12px; }
.gi-tip { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.gi-tip.ok { background: var(--ok-bg); color: var(--ok); }

/* 我的邀请：海报/二维码 切换标签 */
.iv-tab { cursor: pointer; font-size: 14px; padding: 3px 12px; border-radius: 14px;
  background: #f0f0f3; color: #666; user-select: none; transition: all .12s; }
.iv-tab.cur { background: var(--primary); color: #fff; }
.iv-view { animation: iv-fade .15s ease-out; }
@keyframes iv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 我的报告：周期切换 + 指标行 */
.seg { display: flex; gap: 6px; }
.seg-item { flex: 1; text-align: center; font-size: 14px; padding: 8px 0; border-radius: 9px;
  background: var(--bg); color: var(--text-2); cursor: pointer; user-select: none; transition: all .12s; }
.seg-item.on { background: var(--primary); color: #fff; font-weight: 600; }
/* 我的报告：顶部 3 张紧凑小卡（高度对齐资讯卡片） */
.rep-summary { display: flex; gap: 6px; margin-bottom: 12px; }
.rep-mini { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.rep-mini-label { font-size: 12px; color: var(--muted); }
.rep-mini b { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.2; }
/* 指标卡：精致小巧 */
.rep-card { padding: 4px 14px; }
.rep-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.rep-row:last-child { border-bottom: none; }
.rep-label { flex: 0 0 64px; font-size: 13.5px; color: var(--text); padding-top: 2px; }
.rep-cmp-block { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; align-items: start; }
/* 横向对比：一列一个人，列内竖排「姓名 / 数据 / 入驻时间」 */
.rc-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rc-col .rc-who { text-align: left; font-size: 12px; color: var(--text-2); }
.rc-col .rc-val { text-align: left; font-size: 14.5px; }
.rc-col .rc-join { text-align: left; font-size: 11.5px; color: var(--muted-2); }
.rc-col.rc-mine .rc-who { color: var(--primary); font-weight: 600; }
.rc-col.rc-mine .rc-val { color: var(--primary); }
.rc-who { text-align: left; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-who.rc-me { color: var(--primary); font-weight: 600; }
.rc-val { text-align: left; font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; }
.rc-val.muted { color: var(--muted); font-weight: 400; }
.rc-join { text-align: left; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.rc-gap { font-style: normal; font-size: 11px; color: var(--warn); margin-left: 4px; }

/* 可提现金额来源：左右分栏 */
.sal-split { display: flex; gap: 10px; }
.sal-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.sal-col-h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.sal-col-b { display: flex; flex-direction: column; gap: 6px; }
.sal-item { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; cursor: pointer; }
.sal-item:active { background: #eef1f4; }
.sal-item-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sal-item-top b { font-size: 13.5px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 知识库：面包屑 / 文件夹导航 / 仅在线标记 / 水印浮层 */
.kb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 12px; font-size: 14px; }
.kb-crumb-sep { color: var(--muted-2); margin: 0 2px; }
.kb-crumb-item { color: var(--text-2); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.kb-crumb-item.on { color: var(--primary); font-weight: 600; }
.kb-crumb-item:active { background: var(--bg); }
.kb-ficon { font-size: 16px; margin-right: 4px; }
.kb-nodl { font-size: 12px; color: var(--warn); background: var(--warn-bg); padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.kb-body { position: relative; overflow: hidden; border-radius: 8px; }
.kb-wm { position: absolute; inset: 0; pointer-events: none; z-index: 5;
  overflow: hidden; }
.kb-wm span { position: absolute; transform: rotate(-24deg); white-space: nowrap;
  font-size: 14px; font-weight: 600; color: rgba(0,0,0,.16); letter-spacing: .5px;
  text-shadow: 0 1px 1px rgba(255,255,255,.35); }

/* 提现记录展开箭头 */
.wd-item { position: relative; }
.wd-chev { flex: 0 0 auto; color: var(--muted); font-size: 14px; transition: transform .15s ease; transform: rotate(0deg); }

/* 公告列表（单行 + 未读红点 + 展开） */
.ann-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 3px; padding: 6px 12px; transition: border-color .15s; box-shadow: 0 1px 2px rgba(0,0,0,.04); position: relative; }
.ann-row.unread { border-color: rgba(185,28,28,.30); }
.ann-row-head { display: flex; align-items: center; gap: 7px; position: sticky; top: 0; background: #fff; z-index: 3; cursor: pointer; padding-bottom: 1px; }
.ann-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 400; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-time { flex: 0 0 auto; font-size: 11.5px; color: var(--muted-2); }
.ann-chev { flex: 0 0 auto; color: var(--muted-2); font-size: 12px; transition: transform .15s ease; }
.ann-body { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; word-break: break-word; max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ann-badge { flex: 0 0 auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 11px; line-height: 16px; text-align: center; position: absolute; top: 8px; right: 10px; }
.ann-pin { flex: 0 0 auto; font-size: 13px; }

/* 佣金 / 提现记录：同一行 tab 切换（等宽、不换行、字体略小） */
.ledger-tabs { display: flex; gap: 6px; padding: 4px 12px 8px; flex-wrap: nowrap; }
.ledger-tab { flex: 1 1 0; min-width: 0; text-align: center; font-size: 13px; padding: 7px 6px; border-radius: 8px; background: #f1f5f9; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ledger-tab.on { background: var(--primary); color: #fff; font-weight: 600; }
.ledger-panel { animation: fadein .15s ease; }

/* 提现明细：单行卡片（高度/间距对齐资讯列表卡片） */
.wd-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 3px; padding: 8px 14px; cursor: pointer; }
.wd-card:active { background: var(--bg); }
.wd-single { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.wd-amt { font-size: 15px; color: #0f172a; }
.wd-time { font-size: 13px; color: var(--muted); flex: 1; text-align: left; }
.wd-chev { color: var(--muted); transition: transform .15s; font-size: 13px; }
.wd-card .wd-detail { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.wd-card .wd-detail .muted { font-size: 13px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* 联系客服：系统自动回复居中提示 */
.chat-system { text-align: center; font-size: 12px; color: var(--muted); background: #eef1f4; border-radius: 10px; padding: 5px 10px; margin: 8px auto; max-width: 88%; line-height: 1.5; }

/* 我的建议 */
.sg-item { margin-bottom: 10px; }
.sg-content { font-size: 14px; color: var(--text); white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.sg-reply { margin-top: 8px; padding: 8px 10px; background: #e7f0ea; border-left: 3px solid var(--primary); border-radius: 5px; font-size: 13px; color: #2f5a45; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.sg-reply-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); margin-right: 6px; }

/* 已隐藏的客户卡片（员工端/报备员端共用字段） */
.hidden-card { display: block; padding: 10px 12px; }
.hidden-card .hc-row1,
.hidden-card .hc-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hidden-card .hc-row2 { margin-top: 6px; }
.hidden-card .hc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; }
.hidden-card .hc-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; max-width: 56%; font-size: 12px; color: var(--muted); }
.hidden-card .hc-phone { flex: 0 0 auto; white-space: nowrap; }
.hidden-card .hc-rep { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden-card .hc-prop { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-3); }
.hidden-card .hc-restore { flex: 0 0 auto; margin-left: 8px; height: 22px; line-height: 20px; padding: 0 10px; font-size: 12px; border: 1px solid var(--primary); color: var(--primary); background: transparent; border-radius: 11px; cursor: pointer; }
.hidden-card .hc-restore:active { background: var(--primary); color: #fff; }

/* 提现明细标题右侧统计：提现次数 + 提现总额 */
.wd-stat { font-size: 13px; font-weight: 500; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.wd-stat b { color: var(--primary); font-weight: 600; }
.wd-proof-dot {
  position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #fff;
}

/* ===== 功能2/3/4：意向价格记录 / 跟进备注 / 其他联系人 ===== */
.price-link { color: var(--primary); cursor: pointer; text-decoration: none; }
.price-link:active { opacity: .7; }
.fh-add-btn { margin-left: auto; font-size: 12px; color: var(--primary); background: transparent; border: 1px solid var(--primary); border-radius: 10px; padding: 1px 9px; cursor: pointer; }
.fh-add-btn:active { background: var(--primary); color: #fff; }
.sm { font-size: 12px; }
.contact-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.contact-item { border: 1px solid #eee; border-radius: 8px; padding: 7px 9px; background: #fafbfc; }
.contact-item .ci-top { display: flex; align-items: center; gap: 8px; }
.contact-item .ci-label { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-item .ci-bottom { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.ci-del { padding: 2px 8px; font-size: 12px; }
.note-list { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.note-item { border: 1px solid #eee; border-radius: 8px; padding: 7px 9px; background: #fafbfc; cursor: pointer; }
.note-item:active { background: #f0f2f4; }
.note-item .ni-time { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.note-item .ni-text { font-size: 13px; color: var(--text); white-space: pre-wrap; word-break: break-word; line-height: 1.5; max-height: 2.9em; overflow: hidden; }
.pl-item { padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.pl-item:last-child { border-bottom: none; }
.pl-time { font-size: 12px; color: var(--text-3); }
.pl-main { font-size: 15px; margin: 2px 0; }
.pl-main b { color: var(--primary); }
.pl-sub { font-size: 12px; color: var(--text-3); }

/* ===== 登录：卡片左右居中、上下偏上 ===== */
.login-wrap { display: flex; align-items: flex-start; justify-content: center; padding: 18vh 16px 24px; }
.login-card { width: 100%; max-width: 340px; background: var(--card); border-radius: var(--radius); padding: 20px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
