[v-cloak] { display: none; }
:root {
  --primary: #3370ff;
  --primary-soft: #e8efff;
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #8f959e;
  --line: #e8eaed;
  --line-soft: #f2f3f5;
  --bg: #f4f6f9;
  --card: #ffffff;
  --danger: #f54a45;
  --warn: #ff8800;
  --success: #1f9d55;
  --nav-bg: #1b2232;
  --nav-hover: #263047;
  --nav-text: #a9b2c3;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 35, 41, .04), 0 2px 8px rgba(31, 35, 41, .04);
  --el-color-primary: #3370ff;
  --el-border-radius-base: 6px;
}
html, body { margin: 0; background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--text); font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
* { box-sizing: border-box; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, #dfe8ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e3f5ea 0%, transparent 60%), var(--bg); }
.login-card { background: #fff; padding: 36px 32px; border-radius: 14px; width: 360px; max-width: 100%; box-shadow: 0 10px 40px rgba(31,35,41,.08); }
.login-card h2 { margin: 0 0 24px; text-align: center; font-size: 22px; }

/* ---------- 外框 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidenav { width: 216px; flex: 0 0 216px; background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; transition: width .18s, flex-basis .18s; z-index: 30; }
.sidenav-brand { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 18px; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.logo { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: linear-gradient(135deg, #4f86ff, #2557e0); display: grid; place-items: center; font-weight: 800; }
.sidenav-list { flex: 1; overflow-y: auto; padding: 6px 10px; }
.nav-group { font-size: 11px; letter-spacing: .08em; color: #6b7690; padding: 14px 10px 6px; white-space: nowrap; }
.nav-item, .nav-collapse { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--nav-text); cursor: pointer; white-space: nowrap; overflow: hidden; margin-bottom: 2px; user-select: none; }
.nav-item:hover, .nav-collapse:hover { background: var(--nav-hover); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-icon { display: inline-flex; width: 18px; flex: 0 0 18px; }
.nav-badge { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.12); color: #cfd6e4; }
.nav-collapse { margin: 8px 10px 12px; }
.shell.collapsed .sidenav { width: 64px; flex-basis: 64px; }
.shell.collapsed .brand-text, .shell.collapsed .nav-label, .shell.collapsed .nav-badge, .shell.collapsed .nav-group { display: none; }
.shell.collapsed .nav-item, .shell.collapsed .nav-collapse { justify-content: center; padding: 0; }
.nav-mask { display: none; }

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.menu-btn { display: none; color: var(--text); cursor: pointer; }
.page-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.global-search { display: flex; align-items: center; gap: 6px; background: var(--line-soft); border-radius: 8px; padding: 0 10px; height: 34px; width: 340px; max-width: 40vw; border: 1px solid transparent; transition: .15s; }
.global-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.global-search input { border: none; background: transparent; outline: none; flex: 1; font-size: 13px; color: var(--text); min-width: 0; }
.gs-icon { color: var(--text-3); display: inline-flex; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 8px; outline: none; }
.user-chip:hover { background: var(--line-soft); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #3370ff); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.xs { width: 18px; height: 18px; font-size: 10px; margin-right: 5px; }
.user-name { font-weight: 500; white-space: nowrap; }
.role-tag { font-size: 11px; color: var(--text-3); background: var(--line-soft); padding: 1px 6px; border-radius: 4px; }
.main { padding: 20px; flex: 1; }

/* ---------- 通用 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.card-body { padding: 8px 18px 16px; }
.el-card { border-radius: var(--radius) !important; border-color: var(--line) !important; box-shadow: var(--shadow) !important; }
.el-card__header { padding: 14px 18px !important; border-bottom-color: var(--line-soft) !important; }
.list-card { padding: 16px 18px; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list-title { font-size: 15px; }
.block { margin-bottom: 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.spacer { flex: 1; }
.toolbar .el-button + .el-button, .head-actions .el-button + .el-button { margin-left: 0; }
.pager { margin-top: 14px; justify-content: flex-end; }
.clickable { cursor: pointer; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { color: var(--primary); cursor: pointer; }
.overdue { color: var(--danger); font-weight: 600; }
.c-danger { color: var(--danger); }
.c-warn { color: var(--warn); }
.narrow { max-width: 920px; }
.pre { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }

.stage-tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.pool-tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 10px; color: var(--text-2); background: var(--line-soft); border: 1px dashed #d0d3d8; }
.owner { display: inline-flex; align-items: center; }
.co-name { font-weight: 500; color: var(--text); }
.wa { color: #25a244; font-weight: 600; margin-right: 4px; }
.wa-mini { display: inline-flex; vertical-align: -3px; color: #25a244; margin-right: 6px; }
.wa-mini:hover { color: #128c3e; }

/* Element 表格 */
.el-table { --el-table-header-bg-color: #f7f8fa; --el-table-row-hover-bg-color: #f5f8ff; --el-table-border-color: var(--line-soft); font-size: 13px; border-radius: 8px; }
.el-table th.el-table__cell { color: var(--text-2); font-weight: 500; height: 40px; }
.el-table td.el-table__cell { height: 44px; }
.el-table--border { border-radius: 8px; overflow: hidden; }

/* ---------- 工作台 ---------- */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 18px 22px;
  border-radius: var(--radius); background: linear-gradient(120deg, #eef3ff 0%, #f6f9ff 60%, #eefaf3 100%); border: 1px solid #e1e8fb; }
.welcome h2 { margin: 0 0 4px; font-size: 19px; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 16px; cursor: pointer;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31,35,41,.08); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 44px; }
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tone-blue .stat-icon { background: #e8efff; color: #3370ff; }
.tone-cyan .stat-icon { background: #e2f6fa; color: #0fa5c4; }
.tone-red .stat-icon { background: #feeceb; color: #f54a45; }
.tone-red .num { color: #f54a45; }
.tone-purple .stat-icon { background: #efebff; color: #7b61ff; }
.tone-orange .stat-icon { background: #fef1e4; color: #f5871f; }

.todo-group { margin-top: 8px; }
.grp-title { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 12px 0 8px; font-size: 13px; }
.grp-count { font-size: 12px; color: var(--text-3); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-danger { background: var(--danger); } .dot-warning { background: var(--warn); } .dot-info { background: var(--primary); }
.empty-line { font-size: 12px; color: var(--text-3); padding: 10px 12px; background: #fafbfc; border-radius: 8px; border: 1px dashed var(--line); }
.todo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); border-left: 3px solid var(--primary); margin-bottom: 8px; background: #fff; transition: .12s; }
.todo:hover { background: #f8faff; box-shadow: var(--shadow); }
.todo-danger { border-left-color: var(--danger); } .todo-warning { border-left-color: var(--warn); }
.todo-main { flex: 1; min-width: 0; }
.todo-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 4px; flex-wrap: wrap; }
.wa-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #1f9d55; background: #e3f5ea; padding: 4px 10px; border-radius: 14px; font-weight: 500; white-space: nowrap; }
.wa-btn:hover { background: #cdeedb; }
.recent { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.recent:last-child { border-bottom: none; }
.recent:hover { background: #fafbfc; }
.recent-body { min-width: 0; flex: 1; font-size: 13px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13px; }
.bar-label { width: 70px; color: var(--text-2); }
.bar { flex: 1; background: var(--line-soft); height: 8px; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width .3s; }
.bar-num { width: 36px; text-align: right; font-weight: 600; }

/* ---------- 客户详情 ---------- */
.detail { padding: 0 0 24px; }
.detail-card { position: relative; margin: -20px -20px 12px; padding: 20px 22px 14px; background: linear-gradient(180deg, #f3f6ff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.detail-close { position: absolute; top: 14px; right: 14px; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.detail-close:hover { background: var(--line-soft); color: var(--text); }
.detail-top { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.co-avatar { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 28px; flex: 0 0 52px; box-shadow: var(--shadow); color: var(--primary); font-weight: 700; }
.detail-title { min-width: 0; }
.detail-title h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; word-break: break-word; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.fact-k { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.fact-v { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.quick:hover { border-color: var(--primary); color: var(--primary); }
.quick.wa-q { background: #25a244; border-color: #25a244; color: #fff; }
.quick.wa-q:hover { background: #1e8f3b; color: #fff; }
.dup-alert { margin-bottom: 10px; }
.act-form { background: #f7f8fa; padding: 12px; border-radius: 8px; border: 1px solid var(--line-soft); }
.act-form .el-select { width: 100%; }
.info-form .el-select { width: 100%; }
.links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin-top: 4px; }
.items .el-input__wrapper { box-shadow: none; }

/* ---------- 占位页 ---------- */
.placeholder-page { display: flex; justify-content: center; padding-top: 60px; }
.ph-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 36px; max-width: 520px; box-shadow: var(--shadow); }
.ph-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: #e3f5ea; color: #25a244; display: grid; place-items: center; }
.ph-icon svg { width: 32px; height: 32px; }
.ph-card h3 { margin: 4px 0 12px; }
.ph-card p { line-height: 1.7; margin: 6px 0; }
.ph-card .el-button { margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sidenav { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; width: 230px !important; flex-basis: 230px !important; }
  .shell.nav-open .sidenav { transform: none; }
  .shell.nav-open .nav-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .shell.collapsed .brand-text, .shell.collapsed .nav-label, .shell.collapsed .nav-badge, .shell.collapsed .nav-group { display: initial; }
  .shell.collapsed .nav-item { justify-content: flex-start; padding: 0 10px; }
  .nav-collapse { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 12px; gap: 10px; }
  .page-title { display: none; }
  .global-search { flex: 1; max-width: none; width: auto; }
  .topbar > .spacer { display: none; }
  .act-form .el-col { margin-bottom: 8px; }
  .user-name, .role-tag { display: none; }
  .main { padding: 12px; }
  .list-card { padding: 12px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .stat .num { font-size: 22px; }
  .welcome { padding: 14px 16px; }
  .welcome h2 { font-size: 17px; }
  .toolbar > .el-input { width: 100% !important; }
  .toolbar > .el-select { width: calc(50% - 4px) !important; }
  .detail-card { margin: -20px -20px 12px; padding: 16px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 二期：提醒 / 聊天 / 话术 / 导入 / 报表 ---------- */
.nav-badge.unread { background: var(--danger); color: #fff; font-weight: 600; }
.shell.collapsed .nav-badge.unread { display: block; position: absolute; margin: -18px 0 0 18px; }
.inline-icon { display: inline-flex; vertical-align: -3px; }
.inline-icon svg { width: 15px; height: 15px; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.alert-row:hover { background: var(--line-soft); }
.al-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--primary); }
.al-danger .al-dot { background: var(--danger); }
.al-warning .al-dot { background: var(--warn); }
.al-name { font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-text { color: var(--text-2); }
.setup-steps { text-align: left; line-height: 1.8; color: var(--text-2); padding-left: 20px; }
.form-hint { margin-left: 10px; }

.prod-thumb { width: 44px; height: 44px; border-radius: 6px; background: #fff; display: block; }
.prod-opt { display: flex !important; align-items: center; gap: 8px; height: 44px !important; line-height: 1.2 !important; }
.opt-thumb { width: 34px; height: 34px; object-fit: contain; border-radius: 4px; }
.opt-model { font-weight: 600; min-width: 90px; }
.opt-price { margin-left: auto; color: var(--primary); }

.chat-shell { display: grid; grid-template-columns: 320px 1fr; gap: 12px; height: calc(100vh - 56px - 32px); min-height: 480px; }
.chat-list, .chat-main { display: flex; flex-direction: column; overflow: hidden; padding: 0 !important; }
.chat-list-head { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.chat-items { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.chat-item:hover { background: #f7f8fa; }
.chat-item.active { background: var(--primary-soft); }
.ci-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #e3f5ea; color: #1f7a45; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.ci-body { flex: 1; min-width: 0; }
.ci-top, .ci-bottom { display: flex; justify-content: space-between; gap: 6px; }
.ci-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-time { color: var(--text-3); font-size: 11px; flex: 0 0 auto; }
.ci-text { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-unread { background: #25a244; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; min-width: 18px; text-align: center; }
.ci-meta { display: flex; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--text-3); align-items: center; }
.win-open, .win-closed { font-size: 11px; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.win-open { background: #e3f5ea; color: #1f9d55; }
.win-closed { background: #fef1e4; color: #c26a00; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-back { display: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-2); }
.ch-title { flex: 1; min-width: 0; }
.ch-name { font-weight: 600; font-size: 15px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #efeae2; }
.msg { display: flex; margin-bottom: 8px; }
.msg.out { justify-content: flex-end; }
.bubble { max-width: 70%; background: #fff; border-radius: 10px; padding: 7px 10px 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); word-break: break-word; }
.msg.out .bubble { background: #d9fdd3; }
.msg-text { white-space: pre-wrap; line-height: 1.5; }
.msg-tr { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #d5d9de; color: #3a5f8f; font-size: 13px; white-space: pre-wrap; }
.msg.out .msg-tr { color: #4b6b48; border-top-color: #b7dfb0; }
.msg-tr-btn { font-size: 12px; margin-top: 3px; }
.msg-tr-btn a { cursor: pointer; }
.msg-meta { text-align: right; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.msg-status { margin-left: 3px; }
.msg-status.read { color: #53bdeb; }
.msg-status.failed { color: var(--danger); font-weight: 700; }
.msg-err { color: var(--danger); font-size: 12px; }
.msg-img { width: 220px; max-width: 100%; height: 160px; border-radius: 6px; display: block; }
.msg-file a { font-weight: 500; }
.composer { border-top: 1px solid var(--line); padding: 10px 12px; background: #fff; }
.composer-tools, .composer-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.composer-actions { margin: 8px 0 0; }
.draft-tr { margin-top: 8px; }
.file-btn { cursor: pointer; }
.window-closed-box { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.chat-empty { align-items: center; justify-content: center; gap: 8px; }
.snip-pop { max-height: 360px; overflow-y: auto; }
.snip-cat { font-size: 11px; color: var(--text-3); margin: 8px 0 2px; }
.snip-item { padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.snip-item:hover { background: var(--primary-soft); }
.snip-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.snip-main { flex: 1; min-width: 0; }
.snip-title { font-weight: 600; margin-bottom: 4px; }
.snip-actions { flex: 0 0 auto; }
.tpl-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.tpl-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.tpl-item.active { border-color: var(--primary); background: var(--primary-soft); }
.tpl-preview { margin-top: 10px; background: #d9fdd3; border-radius: 8px; padding: 10px; }

.map-table-wrap { overflow-x: auto; }
.map-table { border-collapse: collapse; font-size: 12px; }
.map-table th, .map-table td { border: 1px solid var(--line); padding: 5px 6px; max-width: 160px; text-align: left; }
.map-table th { background: #f7f8fa; white-space: nowrap; }
.c-danger { color: var(--danger); }
.c-warn { color: var(--warn); }
.day-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; }
.day-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 8px; }
.day-fill { width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; }
.day-label { font-size: 10px; color: var(--text-3); margin-top: 3px; }

@media (max-width: 767px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 56px - 20px); }
  .chat-shell.has-chat .chat-list { display: none; }
  .chat-shell:not(.has-chat) .chat-main { display: none; }
  .chat-back { display: block; }
  .chat-head { gap: 6px; padding: 8px 10px; }
  .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .bubble { max-width: 85%; }
  .window-closed-box { flex-direction: column; align-items: flex-start; }
}

/* ---------- 社媒中心 ---------- */
.tone-green .stat-icon { background: #e3f5ea; color: #1f9d55; }
.stat-row.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mock-banner { background: #fdf4dc; color: #8a6100; border: 1px solid #f3dfa6; border-radius: 8px; padding: 8px 14px; font-size: 13px; margin-bottom: 12px; }
.plat-pill { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 700;
  color: #fff; vertical-align: 1px; margin-right: 4px; letter-spacing: .02em; }
.pf-facebook { background: #1877f2; }
.pf-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.pf-youtube { background: #ff0000; }
.pf-tiktok { background: #111; }
.pf-linkedin { background: #0a66c2; }
.pf-meta { background: linear-gradient(90deg, #1877f2 50%, #dc2743 50%); }
.plat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.plat-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.plat-top { display: flex; align-items: center; gap: 6px; width: 100%; }
.plat-state { margin-left: auto; white-space: nowrap; font-size: 11px; padding: 1px 7px; border-radius: 6px; }
.plat-state.ok { background: #e3f5ea; color: #1f9d55; }
.plat-state.wait { background: var(--line-soft); color: var(--text-2); }
.plat-note { line-height: 1.6; flex: 1; }
.copy-list { border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 6px; }
.copy-row { display: grid; grid-template-columns: 1fr; gap: 2px; }
.copy-row code { background: #f6f7f9; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12px; word-break: break-all; }
.copy-row .link { justify-self: start; }

.post-card { display: flex; gap: 14px; padding: 14px; }
.post-media { width: 96px; height: 128px; flex: 0 0 96px; border-radius: 8px; overflow: hidden; background: #0f1115; display: grid; place-items: center; }
.post-media video, .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-text-ph { color: #8f959e; font-size: 12px; }
.post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-caption { white-space: pre-wrap; line-height: 1.6; max-height: 4.8em; overflow: hidden; }
.post-status { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--line-soft); color: var(--text-2); }
.ps-已发布 { background: #e3f5ea; color: #1f9d55; }
.ps-发布中, .ps-定时 { background: #e8efff; color: #3370ff; }
.ps-部分失败, .ps-失败 { background: #fdecec; color: #d83931; }
.post-targets { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pt { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pt-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.thread { padding: 12px 16px; border-left: 3px solid transparent; }
.thread.inquiry { border-left-color: var(--danger); }
.thread.done { opacity: .78; }
.th-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-kind { font-size: 11px; padding: 0 6px; border-radius: 5px; background: var(--line-soft); color: var(--text-2); }
.inq-tag { font-size: 11px; padding: 0 6px; border-radius: 5px; background: #fdecec; color: #d83931; font-weight: 600; }
.th-post { margin: 6px 0 0; }
.th-msgs { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.th-msgs .msg { display: flex; margin-bottom: 0; }
.th-msgs .msg.in .bubble { background: #f4f6f9; box-shadow: none; }
.th-msgs .msg.out { justify-content: flex-end; }
.th-msgs .bubble { max-width: 75%; }
.th-reply { border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 8px; }
.th-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.th-actions .el-button + .el-button { margin-left: 0; }

.compose { display: grid; gap: 12px; }
.cp-row { display: flex; gap: 14px; }
.cp-drop { width: 150px; height: 200px; flex: 0 0 150px; border: 1px dashed #c9cdd4; border-radius: 10px; display: grid; place-items: center; text-align: center;
  cursor: pointer; background: #fafbfc; overflow: hidden; padding: 8px; line-height: 1.6; }
.cp-drop.has { padding: 0; background: #0f1115; border-style: solid; }
.cp-drop video, .cp-drop img { width: 100%; height: 100%; object-fit: contain; }
.cp-media { flex: 0 0 210px; width: 210px; display: grid; gap: 6px; align-content: start; }
.cp-media .cp-drop { width: 100%; }
.cp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cp-thumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #0f1115; }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-no { position: absolute; left: 3px; top: 3px; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; padding: 0 4px; }
.cp-x { position: absolute; right: 3px; top: 2px; color: #fff; background: rgba(0,0,0,.55); border-radius: 50%; width: 18px; height: 18px; line-height: 17px; text-align: center; cursor: pointer; }
.cp-add { display: grid; place-items: center; font-size: 26px; color: #8a8f99; background: #fafbfc; border: 1px dashed #c9cdd4; cursor: pointer; }
.cp-media-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.post-media { position: relative; }
.post-multi { position: absolute; right: 4px; top: 4px; font-size: 11px; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 0 5px; }
.cp-main { flex: 1; display: grid; gap: 6px; align-content: start; }
.cp-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cp-acc { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px; }
.cp-acc .ellipsis { flex: 1; }
.cp-acc.on { border-color: var(--primary); background: var(--primary-soft); }
.cp-acc.off { opacity: .5; }
.cp-tools, .cp-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-cap { display: grid; gap: 4px; }

@media (max-width: 1100px) {
  .stat-row.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .stat-row.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat-grid { grid-template-columns: 1fr; }
  .cp-row { flex-direction: column; }
  .cp-drop { width: 100%; flex-basis: auto; height: 180px; }
  .cp-media { width: 100%; flex-basis: auto; }
  .post-media { width: 64px; height: 86px; flex-basis: 64px; }
  .pt { flex-wrap: wrap; row-gap: 2px; }
  .pt-name { max-width: 120px; }
  .th-msgs .bubble { max-width: 90%; }
}

/* 评论私信：头像、图片、客户资料卡 */
.th-person { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.th-person:hover b { color: var(--el-color-primary); }
.sp-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.sp-initial { display: inline-flex; align-items: center; justify-content: center; background: #e3e8ef; color: #556; font-weight: 600; font-size: 13px; }
.msg-media { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.mm-img { width: 180px; max-height: 240px; border-radius: 8px; cursor: zoom-in; }
.mm-video { width: 240px; max-height: 320px; border-radius: 8px; background: #000; }
.mm-audio { width: 240px; }
.mm-gone { width: 180px; height: 60px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; background: #f2f2f2; }
.sp-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sp-big { width: 64px; height: 64px; border-radius: 50%; flex: none; font-size: 26px; }
.sp-name { font-size: 17px; font-weight: 600; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; }
.sp-grid > div { display: flex; flex-direction: column; }
.sp-grid .muted { font-size: 12px; }
.sp-posts { margin-top: 12px; }
.sp-note { margin-top: 12px; }
.mm-link { display: inline-block; max-width: 260px; white-space: pre-wrap; }

/* 社媒会话（按人合并） */
.sc-list-head { flex-direction: column; align-items: stretch; }
.sc-filter { display: flex; gap: 6px; align-items: center; }
.sc-av-wrap { position: relative; flex: 0 0 38px; }
.sc-av-img { object-fit: cover; display: block; }
.sc-av-txt { background: #e3e8ef; color: #556; }
.chat-head .ci-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
.sc-av-pf { position: absolute; right: -3px; bottom: -3px; font-size: 9px; line-height: 14px; padding: 0 3px; border-radius: 4px; color: #fff; border: 1.5px solid #fff; font-weight: 700; }
.sc-av-pf.pf-facebook { background: #1877f2; }
.sc-av-pf.pf-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.bubble.sc-comment { border-left: 3px solid #f0a020; }
.msg.out .bubble.sc-comment { border-left-color: #6bbf5a; }
.bubble.sc-target { box-shadow: 0 0 0 2px #f0a02066; }
.sc-ctag { font-size: 11px; color: #b06d00; margin-bottom: 3px; }
.msg.out .sc-ctag { color: #3f7d34; }
.sc-reply-link { margin-right: 8px; font-size: 11px; cursor: pointer; }

.sc-group { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f4f6f9; border-bottom: 1px solid var(--line); cursor: pointer; position: sticky; top: 0; z-index: 1; font-size: 13px; }
.sc-fold { width: 10px; color: var(--text-3); }
.sc-targets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.sc-tchip { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 12px; cursor: pointer; background: #fff; color: var(--text-2); }
.sc-tchip:hover { border-color: #f0a020; }
.sc-tchip.dm:hover { border-color: var(--primary); }
.sc-tchip.on { border-color: #f0a020; background: #fff6e8; color: #8a5200; font-weight: 600; }
.sc-tchip.dm.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.sc-tchip.off { opacity: .55; }
.sc-tic { font-size: 12px; }
.sc-warn { display: block; margin-bottom: 8px; }

/* 社媒数据：作品表 */
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.c-up { color: var(--danger); }
.click-rows .el-table__row { cursor: pointer; }
.si-cell { display: flex; gap: 10px; align-items: center; }
.si-thumb { position: relative; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #eef1f5; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); }
.si-thumb img { width: 100%; height: 100%; object-fit: cover; }
.si-play { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 10px; color: #fff; text-shadow: 0 0 3px #000; }
.si-body { min-width: 0; }
.si-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; font-size: 12px; margin-bottom: 3px; }

/* 社媒数据：平台标签 + 指标卡 + 曲线（参考 TikTok 数据分析） */
.an-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.an-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; }
.an-tab.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.an-tab.off { color: var(--text-3); cursor: default; font-weight: 400; }
.an-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.an-card { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s; }
.an-card:hover { border-color: #b8c8f5; }
.an-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.an-label { font-size: 12px; color: var(--text-2); }
.an-num { font-size: 22px; font-weight: 700; margin: 4px 0 2px; color: var(--text); }
.an-delta { font-size: 11px; color: var(--text-3); }
.an-delta.up { color: var(--danger); }   /* 国内习惯：红涨绿跌 */
.an-delta.down { color: #1f9d55; }
.an-chart { position: relative; height: 280px; margin: 4px 0 0 44px; touch-action: pan-y; }
.an-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.an-grid { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.an-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-area { fill: var(--primary); opacity: .08; }
.an-cross { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.an-ylab { position: absolute; left: -44px; width: 38px; text-align: right; transform: translateY(-50%); font-size: 11px; color: var(--text-3); }
.an-xlab { position: absolute; bottom: -2px; transform: translateX(-50%); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.an-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--primary); pointer-events: none; }
.an-tip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); pointer-events: none; white-space: nowrap; font-size: 13px; }
.an-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; }
.an-note { margin-top: 10px; }
@media (max-width: 1100px) { .an-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .an-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-chart { height: 220px; } .an-num { font-size: 19px; } }

/* 单条作品弹窗 */
.it-top { display: flex; gap: 16px; margin-bottom: 14px; }
.it-media { flex: 0 0 200px; }
.it-media video, .it-media img { width: 200px; max-height: 300px; border-radius: 8px; background: #000; object-fit: contain; display: block; }
.it-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.it-cap { white-space: pre-wrap; font-size: 13px; line-height: 1.55; max-height: 150px; overflow-y: auto; }
.it-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.it-badge { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #f2f4f7; color: var(--text-2); }
.it-badge.up { background: #fdecec; color: var(--danger); }
.it-badge.down { background: #e7f6ec; color: #1f9d55; }
.it-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.it-m { background: #f7f8fa; border-radius: 8px; padding: 10px 12px; }
.it-v { font-size: 20px; font-weight: 700; margin: 2px 0; }
.it-chart { margin-bottom: 12px; }
.mini-chart { position: relative; height: 170px; margin: 0 6px 16px 40px; }
.it-note { margin: 0 0 12px; }
.it-cmt { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.it-cmt.out { padding-left: 20px; color: var(--text-2); }
@media (max-width: 767px) { .it-top { flex-direction: column; } .it-media, .it-media video, .it-media img { width: 100%; flex: none; } .it-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 曲线：上一周期灰线、跟随鼠标的坐标轴标签、图例 */
.an-prev { fill: none; stroke: #b4bac3; stroke-width: 1.5; stroke-dasharray: 4 3; }
.an-dot.prev { background: #b4bac3; box-shadow: 0 0 0 1px #b4bac3; width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.an-axis-x { position: absolute; bottom: -4px; transform: translateX(-50%); background: #1f2329; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; z-index: 2; }
.an-axis-y { position: absolute; left: -46px; width: 42px; text-align: center; transform: translateY(-50%); background: var(--primary); color: #fff; font-size: 11px; padding: 1px 0; border-radius: 4px; pointer-events: none; z-index: 2; }
.an-legend { margin-left: auto; font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.an-legend i, .tip-row i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--primary); margin: 0 2px 0 8px; vertical-align: middle; }
.an-legend i.lg-prev, .tip-row i.lg-prev { border-top: 2px dashed #b4bac3; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row i { margin: 0; }
.c-down { color: #1f9d55; }
/* 数据分析 */
.an-find { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; line-height: 1.5; }
.an-find:last-of-type { border-bottom: 0; }
.af-ic { flex: 0 0 18px; text-align: center; font-size: 11px; line-height: 20px; }
.an-find.up .af-ic { color: var(--danger); }
.an-find.down .af-ic { color: #1f9d55; }
.an-ai { margin-top: 12px; background: linear-gradient(135deg, #f4f0ff, #eef4ff); border-radius: 10px; padding: 12px 14px; }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-text { white-space: pre-wrap; font-size: 13px; line-height: 1.75; }
.an-ai-err { margin-top: 10px; font-size: 13px; color: var(--danger); }
.card-head .an-legend + *, .card-head b + .muted { margin-left: 8px; }

.an-sub { margin: 12px 0 2px; }
/* 作品卡片墙（参考 TikTok 作品管理） */
.ig-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ig-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.ig-chip { padding: 3px 12px; border-radius: 14px; background: #f2f4f7; font-size: 12px; cursor: pointer; color: var(--text-2); }
.ig-chip.on { background: var(--text); color: #fff; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.ig-card { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.ig-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ig-cover { position: relative; aspect-ratio: 3 / 4; background: #eef1f5; overflow: hidden; }
.ig-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-text { padding: 14px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ig-kind { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.ig-hot { position: absolute; right: 6px; top: 6px; background: #ff4d4f; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.ig-views { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.ig-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ig-cap { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.ig-stats { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); }
.ig-rate { margin-left: auto; color: var(--primary); font-weight: 600; }
.ig-meta { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--text-3); }
.ig-meta .ellipsis { flex: 1; min-width: 0; }
.ig-more { text-align: center; margin-top: 14px; }
@media (max-width: 767px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* 账号横向卡片 */
.acc-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: thin; }
.acc-card { flex: 0 0 136px; width: 136px; min-width: 0; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 10px 12px; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.acc-card:hover { border-color: #b8c8f5; }
.acc-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.acc-av { position: relative; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: #e3e8ef; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #556; }
.acc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acc-all .plat-pill { transform: scale(1.4); }
.acc-pf { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: 9px; line-height: 15px; padding: 0 3px; border-radius: 4px; color: #fff; border: 1.5px solid #fff; font-weight: 700; }
.acc-pf.pf-facebook { background: #1877f2; }
.acc-pf.pf-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.acc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.it-cmt-top { display: flex; align-items: center; gap: 6px; }
.it-reply { margin-top: 8px; background: #f7f8fa; border-radius: 8px; padding: 8px; }
.it-reply .th-actions { margin-top: 6px; display: flex; align-items: center; gap: 6px; }

/* 发布：更多设置 */
.cp-more-head { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
.cp-more-head .muted { font-weight: 400; }
.cp-more { background: #f7f8fa; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.cp-opt { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.cp-opt:last-child { border-bottom: 0; }
.cp-opt-l { flex: 0 0 110px; font-size: 13px; color: var(--text-2); padding-top: 4px; }
.cp-opt-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cp-tag { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--text-2); }
.cp-tag.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.cp-cover { flex-direction: row; align-items: center; gap: 10px; }
.cp-cover-box { width: 54px; height: 96px; border: 1.5px dashed var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); cursor: pointer; overflow: hidden; background: #fff; text-align: center; flex: none; }
.cp-cover-box img { width: 100%; height: 100%; object-fit: cover; }
.cp-checks { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
@media (max-width: 767px) { .cp-opt { flex-direction: column; gap: 4px; } .cp-opt-l { flex: none; padding: 0; } }

/* 后台上传进度 */
.up-bar { position: sticky; top: 0; z-index: 20; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.up-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.06); flex-wrap: wrap; font-size: 13px; }
.up-item.fail { border-color: var(--danger); }
.up-name { max-width: 220px; font-weight: 600; }
.up-track { flex: 1; min-width: 120px; height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; }
.up-fill { height: 100%; background: var(--primary); transition: width .3s; }
.up-item.fail .up-fill { background: var(--danger); }
.up-st { font-variant-numeric: tabular-nums; }
.up-err { width: 100%; color: var(--danger); font-size: 12px; }

.login-foot { margin-top: 20px; text-align: center; font-size: 12px; line-height: 1.8; color: #8f959e; }
.login-foot a { color: #3370ff; text-decoration: none; }
.cp-yt { margin-top: 12px; padding: 10px 12px 2px; border: 1px solid #ffd6d6; border-radius: 10px; background: #fff8f8; }
.cp-yt-h { font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* 客户详情：AI 分析 / 写邮件 / WhatsApp 弹窗 */
.quick.ai-q { background: linear-gradient(90deg, #6d5dfc, #3b82f6); border-color: transparent; color: #fff; cursor: pointer; }
.quick.ai-q:hover { color: #fff; opacity: .9; }
.quick { cursor: pointer; }
.ai-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6d5dfc; margin-left: 5px; vertical-align: middle; animation: aiblink 1s infinite; }
@keyframes aiblink { 50% { opacity: .2; } }
.ai-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-report { white-space: pre-wrap; line-height: 1.75; font-size: 13.5px; background: #f8f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px 14px; word-break: break-word; }
.ai-report .ai-h { font-weight: 600; color: #4f46e5; margin: 12px 0 2px; }
.ai-report a { color: var(--primary); }
.mail-ai { display: flex; gap: 8px; width: 100%; }
.mail-ai .el-input { flex: 1; }
.mail-zh { white-space: pre-wrap; font-size: 12.5px; line-height: 1.6; color: #666; background: #f6f7f9; border-radius: 6px; padding: 8px 10px; max-height: 160px; overflow: auto; width: 100%; }
.mail-tip { margin-right: 10px; }
.wa-pop .el-dialog__body { padding: 0 !important; }
.wa-pop .chat-main { height: 70vh; min-height: 420px; border: none; box-shadow: none; }
.wa-pop.is-fullscreen .chat-main { height: calc(100vh - 60px); }
.wa-pop-off { text-align: center; padding: 30px 20px 36px; }
.wa-pop-off .ph-icon { color: #25a244; margin-bottom: 6px; }
@media (max-width: 768px) { .mail-ai { flex-wrap: wrap; } .mail-tip { display: block; margin: 0 0 8px; text-align: left; } }

/* ---------- 邮件 ---------- */
.chip { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 9px; background: var(--line-soft); color: var(--text-2); margin-left: 6px; white-space: nowrap; }
.chip.good { background: #e3f5ea; color: var(--success); }
.chip.bad { background: #feeceb; color: var(--danger); }
.chip.link { cursor: pointer; background: var(--primary-soft); color: var(--primary); margin: 0 4px 0 0; }
.c-good { color: var(--success); }
.card-head-row { display: flex; align-items: center; }
.local-time { font-size: 12px; color: var(--success); background: #e3f5ea; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.local-time.off { color: var(--text-2); background: var(--line-soft); }
.mail-page .list-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mail-kpi b { color: var(--text); }
.mail-inbox { display: grid; grid-template-columns: 380px 1fr; border: 1px solid var(--line); border-radius: var(--radius); min-height: 560px; overflow: hidden; }
.mail-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 210px); }
.mail-filter { padding: 10px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: #fff; z-index: 1; }
.mail-row { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.mail-row:hover { background: #f7f9fc; }
.mail-row.active { background: var(--primary-soft); }
.mail-row.unread .mail-from::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: middle; }
.mail-row-top { display: flex; align-items: center; }
.mail-from { font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-subj { font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-snip { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row:not(.unread) .mail-from { font-weight: 500; color: var(--text-2); }
.mail-view { padding: 18px 22px; overflow-y: auto; max-height: calc(100vh - 210px); }
.mail-view-subj { margin: 0 0 6px; font-size: 17px; }
.mail-view-co { margin: 10px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.mail-view-body { white-space: pre-wrap; word-break: break-word; line-height: 1.65; font-size: 13.5px; background: #fafbfc; border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.mail-orig { margin-top: 10px; }
.mail-reply { margin-top: 16px; }
.mail-reply-bar { display: flex; margin-top: 8px; }
.mail-back { display: none; margin-bottom: 8px; }
.co-mail-head { display: flex; align-items: center; margin-bottom: 10px; }
.mail-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; border-left: 3px solid var(--primary); }
.mail-item.in { border-left-color: var(--success); }
.mail-item-head { display: flex; align-items: center; gap: 8px; }
.mail-dir { font-size: 11px; color: #fff; background: var(--primary); border-radius: 4px; padding: 0 6px; line-height: 18px; }
.mail-item.in .mail-dir { background: var(--success); }
.mail-subj { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item-meta { margin: 4px 0 6px; }
.mail-item-meta .chip:first-of-type { margin-left: 8px; }
.mail-item-body { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.6; max-height: 180px; overflow: auto; color: var(--text); }
.mail-item-act { margin-top: 6px; text-align: right; }
.bulk-grid { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.bulk-side { display: flex; flex-direction: column; gap: 12px; }
.bulk-sum { background: #f7f9fc; border-radius: 8px; padding: 12px 14px; }
.bulk-big { font-size: 26px; font-weight: 700; color: var(--primary); }
.bulk-sample { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.bulk-sample .mail-view-body { max-height: 330px; overflow: auto; background: #fff; border: 0; padding: 6px 0; }
.var-chips { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
@media (max-width: 768px) {
  .mail-inbox { grid-template-columns: 1fr; }
  .mail-inbox .mail-view { display: none; }
  .mail-inbox.has-cur .mail-list { display: none; }
  .mail-inbox.has-cur .mail-view { display: block; }
  .mail-back { display: inline-block; }
  .bulk-grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   主题「晨白」（2026-10-30，参考 Goodjob）：浅色侧栏 + 可折叠分组 + 靛紫主色 + 深色工作台横幅
   外框 .shell 带 theme-paper 时生效；用户菜单可切回「经典」（深色侧栏）
   ====================================================================== */
.theme-paper {
  --primary: #5b5bd6; --primary-soft: #eef0ff;
  --bg: #f3f5f7; --line: #e6e9ef; --line-soft: #f0f2f6;
  --text: #161a26; --text-2: #5b6274; --text-3: #8a91a3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22,26,38,.04), 0 4px 16px rgba(22,26,38,.04);
  --el-color-primary: #5b5bd6;
  --el-color-primary-light-3: #8c8ce2; --el-color-primary-light-5: #adadeb; --el-color-primary-light-7: #cecef3;
  --el-color-primary-light-8: #dedef7; --el-color-primary-light-9: #efeffb; --el-color-primary-dark-2: #4949ab;
  background: var(--bg);
}
.theme-paper .sidenav { background: #fbfcfe; color: var(--text-2); border-right: 1px solid var(--line); width: 228px; flex-basis: 228px; }
.theme-paper .sidenav-brand { height: 72px; color: var(--text); border-bottom: 1px solid var(--line-soft); margin: 0 14px; padding: 0 4px; }
.theme-paper .logo { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; background: linear-gradient(135deg, #7b7bf0, #4a4ac9); color: #fff; box-shadow: 0 4px 12px rgba(91,91,214,.3); }
.brand-sub { display: none; }
.theme-paper .brand-sub { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.theme-paper .brand-text { line-height: 1.25; }
.theme-paper .sidenav-list { padding: 10px 12px; }
.theme-paper .nav-group { color: var(--text-2); font-size: 13px; letter-spacing: 0; padding: 0 10px; height: 36px; display: flex; align-items: center; gap: 10px;
  margin-top: 6px; border-radius: 8px; cursor: pointer; user-select: none; font-weight: 500; }
.theme-paper .nav-group:hover { background: var(--line-soft); }
.nav-chev { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; transition: transform .2s; color: var(--text-3); }
.theme-paper .nav-chev { display: grid; background: var(--line-soft); }
.theme-paper .nav-group.open .nav-chev { transform: rotate(180deg); background: var(--primary); color: #fff; }
.nav-gicon { display: none; }
.theme-paper .nav-gicon { display: inline-flex; width: 18px; color: var(--text-2); }
.theme-paper .nav-item { color: var(--text-2); height: 36px; position: relative; }
.theme-paper .nav-item.sub { padding-left: 22px; font-size: 13.5px; }
.theme-paper .nav-item.sub .nav-icon { opacity: .75; }
.theme-paper .nav-item:hover { background: var(--line-soft); color: var(--text); }
.theme-paper .nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.theme-paper .nav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--primary); }
.theme-paper .nav-badge { background: var(--line-soft); color: var(--text-2); }
.theme-paper .nav-badge.unread { background: #f04a5d; color: #fff; }
.theme-paper .nav-collapse { color: var(--text-3); }
.theme-paper .nav-collapse:hover { background: var(--line-soft); color: var(--text); }
.theme-paper.collapsed .sidenav { width: 64px; flex-basis: 64px; }
.theme-paper.collapsed .sidenav-brand { margin: 0 8px; justify-content: center; }
.theme-paper.collapsed .nav-group { justify-content: center; padding: 0; }
.theme-paper.collapsed .nav-group .nav-chev, .theme-paper.collapsed .brand-sub { display: none; }
.theme-paper.collapsed .nav-group { display: flex; }
.theme-paper.collapsed .nav-group span:not(.nav-gicon) { display: none; }
.theme-paper.collapsed .nav-item.sub { padding-left: 0; }

.theme-paper .topbar { height: 64px; background: rgba(255,255,255,.9); }
.theme-paper .page-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.theme-paper .global-search { height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(22,26,38,.04); }
.theme-paper .avatar { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.theme-paper .main { padding: 24px; }
.theme-paper .card, .theme-paper .el-card { border-radius: 12px !important; }
.theme-paper .list-card { padding: 20px 22px; }
.theme-paper .list-title { font-size: 18px; font-weight: 700; }
.theme-paper .el-table { --el-table-header-bg-color: #f6f7fb; --el-table-row-hover-bg-color: #f6f6fe; }
.theme-paper .el-table th.el-table__cell { color: var(--text); font-weight: 600; font-size: 12.5px; }
.theme-paper .el-button { border-radius: 8px; }
.theme-paper .el-button--primary { box-shadow: 0 4px 12px rgba(91,91,214,.25); }
.theme-paper .stat { border-radius: 12px; }
.theme-paper .stat .num { font-size: 28px; letter-spacing: -.02em; }

/* 工作台深色横幅 */
.hero { display: none; }
.theme-paper .welcome { display: none; }
.theme-paper .hero { display: block; position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 18px; background: #0d0f14; color: #fff; padding: 26px 30px 0; }
.hero-tag { font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: #e4e94b; }
.hero h1 { margin: 14px 0 6px; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #e4e94b; display: block; }
.hero-sub { color: #a3a8b8; font-size: 13.5px; }
.hero-actions { position: absolute; right: 30px; top: 26px; display: flex; gap: 8px; }
.hero-actions .el-button { border-radius: 8px; }
.hero-actions .el-button:not(.el-button--primary) { background: #fff; color: #111; border-color: #fff; }
.hero-strip { margin: 22px -30px 0; background: #e4e94b; color: #111; display: flex; gap: 28px; padding: 9px 30px; font: 700 12.5px/1.2 -apple-system, "PingFang SC", sans-serif; overflow-x: auto; white-space: nowrap; }
.hero-strip b { font-size: 15px; margin: 0 3px; }
.hero-strip .sep { opacity: .45; letter-spacing: .2em; }
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero-actions { position: static; margin-top: 14px; }
  .theme-paper .page-title { font-size: 16px; }
}
.theme-paper .sidenav .nav-mask { display: none; }

/* ---------- 知识库 / 陪练 ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.2; }
.page-head p { margin: 6px 0 0 16px; color: var(--text-2); font-size: 13px; }
.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kb-drop { border: 1.5px dashed #c9cbf2; background: #f7f7fe; border-radius: 10px; padding: 22px; text-align: center; cursor: pointer; transition: .15s; }
.kb-drop:hover, .kb-drop.over { background: #efeffd; border-color: var(--primary); }
.kb-drop b { display: block; margin: 6px 0 4px; }
.kb-doc { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.kb-doc:last-child { border-bottom: 0; }
.kb-doc-title { font-weight: 600; font-size: 13.5px; }
.kb-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.kb-item.sel { border-color: var(--primary); background: #fafaff; }
.kb-item-q { font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.kb-item-a { margin: 6px 0 0 24px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; line-height: 1.6; }
.kb-ask { background: linear-gradient(135deg, #f4f4ff, #f6fbfa); border: 1px solid #e3e4fb; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.kb-answer { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kb-answer > div { background: #fff; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); white-space: pre-wrap; font-size: 13px; line-height: 1.6; }
.kb-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.train-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.train-list .train-row { padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 6px; }
.train-list .train-row:hover { background: var(--line-soft); }
.train-list .train-row.active { background: var(--primary-soft); border-color: #dcdcf8; }
.train-score { font-weight: 800; color: var(--primary); }
.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.scen { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; transition: .12s; }
.scen:hover { border-color: var(--primary); }
.scen.on { border-color: var(--primary); background: var(--primary-soft); }
.scen b { display: block; margin-bottom: 4px; }
.train-chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 480px; }
.train-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f7f8fb; border-radius: 10px; }
.tmsg { max-width: 72%; margin-bottom: 12px; }
.tmsg .bubble { padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.tmsg .zh { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.tmsg.buyer .bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.tmsg.me { margin-left: auto; text-align: right; }
.tmsg.me .bubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; text-align: left; display: inline-block; }
.tmsg .who { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.train-input { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.train-input .el-textarea { flex: 1; }
.train-hint { background: #fffbea; border: 1px solid #f5e6a8; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 13px; }
.fb-scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.fb-scores > div { background: var(--primary-soft); border-radius: 10px; padding: 10px; text-align: center; }
.fb-scores b { display: block; font-size: 22px; color: var(--primary); }
.tr-bar { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .kb-grid, .kb-answer, .train-wrap { grid-template-columns: 1fr; }
  .scen-grid { grid-template-columns: 1fr 1fr; }
  .fb-scores { grid-template-columns: repeat(3, 1fr); }
}
.theme-paper .tone-blue .stat-icon { background: var(--primary-soft); color: var(--primary); }

/* ---------- 交互细节（参考 Goodjob：悬停右移、图标微动、左侧光条、选中滑入、分组配色） ---------- */
.theme-paper .nav-item, .theme-paper .nav-group { transition: background .22s ease, color .2s ease, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.theme-paper .nav-item .nav-icon, .theme-paper .nav-gicon { transition: transform .32s cubic-bezier(.16,1,.3,1), color .2s ease; }
.theme-paper .nav-item:hover, .theme-paper .nav-group:hover { transform: translateX(3px); }
.theme-paper .nav-item:hover .nav-icon, .theme-paper .nav-group:hover .nav-gicon { transform: scale(1.14) rotate(-4deg); }
.theme-paper .nav-item:active { transform: translateX(2px) scale(.985); }
.theme-paper .nav-item::before { content: ''; position: absolute; left: 0; top: 50%; bottom: 50%; width: 3px; border-radius: 2px; background: var(--gc, var(--primary)); transition: top .24s ease, bottom .24s ease; }
.theme-paper .nav-item:hover::before { top: 10px; bottom: 10px; }
.theme-paper .nav-item.active::before { top: 7px; bottom: 7px; }
.theme-paper .nav-item.active { animation: navIn .34s cubic-bezier(.16,1,.3,1) both; background: var(--gs, var(--primary-soft)); color: var(--gc, var(--primary)); }
.theme-paper .nav-item.active .nav-icon { transform: scale(1.08); }
@keyframes navIn { from { opacity: .7; transform: translateX(-5px) scale(.985); } to { opacity: 1; transform: none; } }
/* 子菜单：左边一条目录线 + 下拉动画 */
.theme-paper .nav-item.sub { margin-left: 18px; padding-left: 12px; border-radius: 0 8px 8px 0; animation: navDrop .28s cubic-bezier(.16,1,.3,1) both; }
.theme-paper .nav-item.sub::after { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 1px; background: var(--line); }
.theme-paper .nav-item.sub::before { left: -2px; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 分组配色：大类图标是彩色小方块，子项选中/悬停用同色 */
.theme-paper .nav-gicon { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--gs); color: var(--gc); flex: 0 0 26px; }
.theme-paper .nav-gicon svg { width: 15px; height: 15px; }
.theme-paper .nav-group.open .nav-chev { background: var(--gc); }
.theme-paper .nav-group:has(+ .nav-item.active), .theme-paper .nav-group.has-active { color: var(--text); }
.theme-paper .nav-item.sub:hover { background: var(--gs); color: var(--gc); }
.g-客户管理 { --gc: #5b5bd6; --gs: #eef0ff; }
.g-业务工具 { --gc: #c2410c; --gs: #fff1e6; }
.g-知识协作 { --gc: #0f766e; --gs: #e3f6f3; }
.g-社媒运营 { --gc: #be185d; --gs: #fdeaf3; }
.g-系统配置 { --gc: #475569; --gs: #eef1f5; }
/* 卡片、统计块、按钮的悬停反馈 */
.theme-paper .card, .theme-paper .el-card { transition: box-shadow .25s ease, transform .25s cubic-bezier(.16,1,.3,1), border-color .2s; }
.theme-paper .list-card:hover, .theme-paper .el-card:hover { box-shadow: 0 8px 26px rgba(22,26,38,.07) !important; }
.theme-paper .stat { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.theme-paper .stat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,26,38,.09); }
.theme-paper .stat:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }
.theme-paper .stat-icon { transition: transform .32s cubic-bezier(.16,1,.3,1); }
.theme-paper .el-button { transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.theme-paper .el-button:active { transform: scale(.97); }
.theme-paper .el-button--primary:hover { box-shadow: 0 6px 16px rgba(91,91,214,.32); transform: translateY(-1px); }
.theme-paper .el-table__row { transition: background .15s; }
.theme-paper .todo, .theme-paper .alert-row, .theme-paper .mail-row, .theme-paper .kb-item, .theme-paper .scen { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .15s; }
.theme-paper .todo:hover, .theme-paper .kb-item:hover, .theme-paper .scen:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(22,26,38,.06); }
.theme-paper .main > div { animation: pageIn .32s cubic-bezier(.16,1,.3,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 商机看板 ---------- */
.deal-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.deal-kpis > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.deal-kpis > div:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,26,38,.07); }
.deal-kpis span { display: block; font-size: 12px; color: var(--text-2); }
.deal-kpis b { display: block; font-size: 20px; margin-top: 4px; letter-spacing: -.01em; }
.deal-kpis .warn b { color: var(--danger); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kb-col { background: #eef0f4; border-radius: 12px; padding: 10px; min-height: 420px; border: 2px dashed transparent; transition: border-color .15s, background .15s; --kc: #5b5bd6; }
.kb-col.over { border-color: var(--kc); background: #e7e9f6; }
.kb-col.kc0 { --kc: #64748b; } .kb-col.kc1 { --kc: #5b5bd6; } .kb-col.kc2 { --kc: #0e7490; } .kb-col.kc3 { --kc: #c2410c; } .kb-col.kc4 { --kc: #15803d; }
.kb-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-top: 3px solid var(--kc); padding-top: 8px; }
.kb-col-head b { font-size: 14px; }
.kb-n { background: var(--kc); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.kb-col-head .muted { margin-left: auto; }
.kb-col-sum { font-size: 12px; color: var(--text-2); padding: 4px 4px 10px; font-weight: 600; }
.deal-card { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; border: 1px solid var(--line); border-left: 3px solid var(--kc, var(--primary));
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,26,38,.09); }
.deal-card:active { cursor: grabbing; }
.deal-card.flat { cursor: pointer; }
.deal-top b { font-size: 13.5px; line-height: 1.35; }
.deal-top { display: flex; gap: 8px; justify-content: space-between; }
.deal-co { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.deal-amt { font-weight: 800; font-size: 15px; margin-top: 6px; color: var(--text); }
.deal-next { font-size: 12px; margin-top: 6px; color: var(--text-2); background: var(--line-soft); border-radius: 6px; padding: 3px 7px; }
.deal-next.due-over, .due-over { color: var(--danger); background: #feeceb; }
.deal-next.due-today, .due-today { color: #b45309; background: #fdf1dc; }
.deal-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; }
.deal-meta .chip { margin-left: 0; }
.deal-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.kb-empty { text-align: center; color: var(--text-3); font-size: 12px; padding: 20px 0; border: 1px dashed #d5d8e0; border-radius: 10px; }

/* ---------- 发货跟踪 ---------- */
.ship-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ship-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: .2s; }
.ship-tabs a:hover { transform: translateY(-1px); border-color: var(--primary); }
.ship-tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.ship-tabs a b { margin-left: 4px; }
.ship-row { border-bottom: 1px solid var(--line-soft); }
.ship-row:last-child { border-bottom: 0; }
.ship-main { display: grid; grid-template-columns: 70px 1.4fr 1.6fr 1fr 1fr 0.9fr auto; gap: 12px; align-items: center; padding: 12px 6px; cursor: pointer; border-radius: 8px; transition: background .15s; }
.ship-main:hover { background: #f7f8fc; }
.ship-co b { display: block; font-size: 13.5px; }
.ship-route { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.ship-line { flex: 1; height: 4px; background: var(--line); border-radius: 2px; position: relative; min-width: 40px; }
.ship-line em { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 2px; transition: width .6s cubic-bezier(.16,1,.3,1); }
.ship-no { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.ship-ops { display: flex; gap: 2px; align-items: center; white-space: nowrap; }
.ship-events { padding: 4px 14px 14px 92px; }
.ship-ev { display: flex; gap: 10px; align-items: baseline; font-size: 13px; padding: 4px 0; position: relative; }
.ship-ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; flex: 0 0 8px; }
.ship-ev:first-child i { box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- AI 搜客 ---------- */
.ps-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.run-row { padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 4px; transition: background .15s, transform .25s cubic-bezier(.16,1,.3,1); }
.run-row:hover { background: var(--line-soft); transform: translateX(3px); }
.run-row.active { background: var(--primary-soft); border-color: #dcdcf8; }
.run-brief { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; margin-right: 4px; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.ps-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: #fff;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .15s; }
.ps-item:hover { transform: translateX(3px); box-shadow: 0 6px 18px rgba(22,26,38,.06); }
.ps-item.sel { border-color: var(--primary); background: #fafaff; }
.ps-grade { flex: 0 0 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: #94a3b8; }
.ps-grade.gA { background: #15803d; } .ps-grade.gB { background: #5b5bd6; } .ps-grade.gCp { background: #c2410c; }
.ps-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-name b { font-size: 14px; }
.ps-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text); }
@media (max-width: 900px) {
  .deal-kpis { grid-template-columns: repeat(2, 1fr); }
  .ps-wrap { grid-template-columns: 1fr; }
  .ship-main { grid-template-columns: 1fr 1fr; }
  .ship-events { padding-left: 14px; }
}

/* ---------- 邮件中心（参考 Goodjob：二级导航 + 自动发信批次卡 + 多步序列） ---------- */
.msn { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.msn-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, transform .25s cubic-bezier(.16,1,.3,1); }
.msn-tab:hover { background: var(--line-soft); color: var(--text); transform: translateY(-1px); }
.msn-tab.on { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(91,91,214,.25); }
.msn-tab em { font-style: normal; font-size: 10.5px; font-weight: 700; background: #f04a5d; color: #fff; border-radius: 9px; padding: 0 6px; line-height: 17px; }
.msn-tab em.run { background: #16a34a; }
.msn-tab.on em { background: #fff; color: var(--primary); }
.msn .mail-kpi { margin-right: 8px; }
.mail-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.mail-empty b { font-size: 16px; }
.ob-batch { border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; overflow: hidden; transition: border-color .18s, box-shadow .2s; }
.ob-batch.open { border-color: #cfd3ef; box-shadow: 0 14px 28px -24px rgba(23,35,61,.6); }
.ob-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; flex-wrap: wrap; transition: background .15s; }
.ob-head:hover { background: #f8f9fc; }
.ob-caret { font-size: 18px; color: var(--text-3); transition: transform .26s cubic-bezier(.16,1,.3,1), color .2s; width: 12px; }
.ob-batch.open .ob-caret { transform: rotate(90deg); color: var(--primary); }
.ob-seq { min-width: 22px; height: 20px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.ob-title { flex: 1 1 200px; min-width: 0; }
.ob-title b { font-size: 13.5px; } .ob-title small { color: var(--text-3); font-size: 11.5px; margin-left: 8px; }
.ob-prog { width: 110px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ob-prog i { display: block; height: 100%; background: linear-gradient(90deg, #7b7bf0, #5b5bd6); border-radius: 3px; transition: width .6s cubic-bezier(.16,1,.3,1); }
.ob-stats { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.ob-ops { display: flex; gap: 4px; }
.ob-body { border-top: 1px solid var(--line); background: #fbfcfe; padding: 12px 14px 14px 40px; animation: navDrop .3s cubic-bezier(.16,1,.3,1) both; }
.ob-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ob-chip { font-size: 11.5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-2); }
.ob-chip.good { color: var(--success); border-color: #bfe5cd; background: #effaf3; } .ob-chip.warn { color: #b45309; border-color: #f3d9a6; background: #fff8eb; }
.ob-steps { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ob-step { flex: 1 1 200px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; position: relative; }
.ob-step + .ob-step::before { content: '→'; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 11px; }
.ob-step-n { display: block; font-size: 11px; color: var(--primary); font-weight: 700; } .ob-step-n small { color: var(--text-3); font-weight: 400; }
.ob-step b { display: block; font-weight: 500; }
.step-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; margin-right: 4px; color: #fff; background: #cbd5e1; }
.step-dot.pend { background: #93c5fd; } .step-dot.sent { background: #16a34a; } .step-dot.open { background: #7c3aed; }
.step-dot.bad { background: #ef4444; } .step-dot.stop { background: #e5e7eb; color: #94a3b8; text-decoration: line-through; }
.journey { position: relative; padding-left: 22px; }
.journey::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.jn { position: relative; margin-bottom: 12px; }
.jn-dot { position: absolute; left: -20px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #fff; }
.jn.in .jn-dot { background: var(--success); }
.jn-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.jn-card:hover { transform: translateX(3px); box-shadow: 0 6px 18px rgba(22,26,38,.06); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.tool-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; transition: box-shadow .25s, transform .25s cubic-bezier(.16,1,.3,1); }
.tool-card:hover { box-shadow: 0 10px 24px rgba(22,26,38,.06); transform: translateY(-2px); }
.tool-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tool-head b { font-size: 15px; }
.dh { margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.dh-dom { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dh-score { font-weight: 800; color: var(--danger); } .dh-score.ok { color: var(--success); }
.dh-row { display: grid; grid-template-columns: 18px 52px 1fr; gap: 2px 6px; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.dh-row code { grid-column: 2 / 4; color: var(--text-2); word-break: break-all; background: var(--line-soft); border-radius: 4px; padding: 1px 5px; }
.dh-ok { color: var(--success); font-weight: 800; } .dh-ok.no { color: var(--danger); }
.chk-list { margin-top: 10px; max-height: 300px; overflow: auto; }
.chk-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 0; }
.tpl-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.bk-sec { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; }
.bk-sec:first-child { margin-top: 0; }
.bk-sec b { font-size: 14.5px; }
.bk-n { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.bk-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #f7f8fc; border-radius: 10px; padding: 10px; }
.step-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.step-tabs a { position: relative; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; background: #fff; transition: .2s; }
.step-tabs a:hover { border-color: var(--primary); }
.step-tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-tabs a small { margin-left: 4px; opacity: .75; font-size: 11px; }
.step-tabs a i { font-style: normal; margin-left: 6px; opacity: .6; }
.step-tabs a i:hover { opacity: 1; }
.step-tabs a.add { border-style: dashed; color: var(--primary); }
.step-delay { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; background: #fff8eb; border-radius: 8px; padding: 6px 10px; }
.bk-send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: #f7f8fc; border-radius: 10px; padding: 12px; font-size: 13px; }
.bk-send > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-names { margin-top: 8px; font-size: 11.5px; color: var(--text-2); max-height: 120px; overflow: auto; line-height: 1.6; }
.bulk-dlg .bulk-grid { grid-template-columns: 1fr 300px; }
@media (max-width: 900px) { .tools-grid, .bk-rules, .bk-send { grid-template-columns: 1fr; } .ob-body { padding-left: 14px; } }
