/* ===== 客服培训管理系统 · v4 设计系统（对齐参考稿） ===== */
:root {
  --sidebar-bg: #1A2235;
  --sidebar-hover: #243049;
  --sidebar-active: #6366F1;
  --sidebar-active-border: #6366F1;
  --sidebar-text: #A0ABC0;
  --sidebar-text-active: #FFFFFF;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-light: rgba(99,102,241,.08);
  --bg: #F0F2F5;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
  --border: #E5E6EB;
  --text: #1D2129;
  --text-secondary: #4E5969;
  /* 渐变（v4 靛蓝紫系） */
  --grad-cust: linear-gradient(135deg, #6366F1, #7C3AED);
  --grad-agent: linear-gradient(135deg, var(--accent), #818CF8);
  --grad-sys: linear-gradient(135deg, #06B6D4, #5DDDD9);
  --grad-brand: linear-gradient(135deg, #6366F1, #7C3AED 55%, #06B6D4);
  /* 圆角 / 阴影（v4 8px 栅格） */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --topbar-flow: linear-gradient(90deg, #6366F1, #7C3AED, #059669, #6366F1);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --border-hover: var(--accent);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.55;
}

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }

/* ===== 侧边栏（深色） ===== */
.sidebar {
  width: 220px; background: var(--sidebar-bg); color: var(--sidebar-text);
  padding: 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto;
  overflow-x: hidden; font-size: 15px;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

/* 品牌 */
.brand {
  color: #fff; font-size: 17px; font-weight: 700;
  padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px; position: relative;
}
.brand::before {
  content: ""; flex-shrink: 0;
}
.brand .brand-mark { flex-shrink: 0; }
.brand .brand-text { flex: 1; min-width: 0; }
.brand .brand-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.brand small { display: block; font-size: 12px; color: var(--sidebar-text); font-weight: 400; margin-top: 2px; }
.brand-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  background: var(--accent);
  color: #fff; letter-spacing: .04em;
  box-shadow: none;
}

/* 导航分组 */
.nav-group { margin-bottom: 4px; padding-bottom: 0; border-bottom: none; }
.nav-group[data-group="admin"] { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 6px; }
.nav-group-title {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(148,163,184,.55); padding: 14px 18px 8px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: transparent; border-radius: 0;
  box-shadow: none; cursor: pointer; user-select: none;
}
.nav-group-title:hover { color: rgba(148,163,184,.8); }
.nav-group-title .ngt-text { font-size: 12px; }
.nav-caret { font-size: 11px; transition: transform .2s ease; opacity: .6; }
.nav-group.collapsed .nav-caret { transform: rotate(-90deg); }
.nav-group.collapsed .nav-group-items { display: none; }
.nav-group-items { overflow: hidden; padding: 2px 0; }

/* 导航分区（四分组 · 可折叠） */
.nav-section { margin-bottom: 2px; }
.nav-section[data-role="manager"] { /* 由 JS 按角色控制显隐 */ }

/* 分组标题（可点击折叠） */
.ns-label {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: rgba(148,163,184,.45); padding: 13px 18px 9px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
  transition: color .15s ease;
  text-transform: none;
  -webkit-tap-highlight-color: transparent;
}
.ns-label:hover { color: rgba(148,163,184,.75); }
.ns-label .nav-caret { margin-left: auto; opacity: .55; transition: transform .2s ease; }
.nav-section.collapsed .ns-label .nav-caret { transform: rotate(-90deg); }

/* 分组内容区（可折叠隐藏） */
.nav-items {
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}
.nav-section.collapsed .nav-items { display: none; }

/* 分组标签（仅管理端） */
.ns-hint {
  font-size: 11px; font-weight: 600; color: rgba(99,102,241,.65);
  border: 1px solid rgba(99,102,241,.18); border-radius: 4px;
  padding: 0 5px; line-height: 1.6;
  background: rgba(99,102,241,.08);
}

/* 导航角标 */
.nav-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 2px 8px; border-radius: 8px;
  white-space: nowrap; pointer-events: none;
}
/* 角标色系 */
.nb-wait    { background: linear-gradient(135deg,#D4A540,#C4881A); color: #fff; box-shadow: 0 1px 6px rgba(249,115,22,.35); }  /* 橙 — 待办 */
.nb-count   { background: linear-gradient(135deg,#D4A540,#ea580c); color: #fff; }                         /* 橙 — 计数 */
.nb-error   { background: linear-gradient(135deg,#D9877A,#C45C4A); color: #fff; }                         /* 红 — 错题/警告 */
.nb-action  { background: linear-gradient(135deg,#D4A540,#C4881A); color: #fff; }                         /* 橙 — 操作按钮 */
.nb-info    { background: linear-gradient(135deg,#22d3ee,#06b6d4); color: #fff; }                        /* 青 — 进行中 */
.nb-teal    { background: linear-gradient(135deg,#22d3ee,#06b6d4); color: #fff; }                        /* 青 — 知识库计数 */
.nb-purple  { background: linear-gradient(135deg,#c084fc,#a855f7); color: #fff; box-shadow: 0 1px 6px rgba(168,85,247,.3); } /* 紫 — 管理 */

/* 导航项 —— 字体贴近参考图：14px / 中等字重 / 清晰间距 */
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; margin: 1px 8px; border-radius: 8px;
  color: var(--sidebar-text); text-decoration: none;
  font-size: 15px; font-weight: 400; line-height: 1.35;
  transition: all .15s ease; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.nav-item.active {
  background: var(--sidebar-active); color: #fff; font-weight: 500;
  box-shadow: none;
}
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* 底部用户区 */
.user-box { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* ===== 顶部栏（v4 对齐：64px 高） ===== */
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-size: 16px; font-weight: 600; color: var(--text); }
.topbar-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: #EEF2FF; color: #6366F1; font-weight: 600;
}
.topbar-center { flex: 1; max-width: 400px; margin: 0 24px; }
.topbar-search {
  width: 100%; padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; background: #F7F8FA;
  color: var(--text-secondary); outline: none;
}
.topbar-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,107,255,.08); }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-secondary); }
.topbar-ver { font-size: 11px; color: var(--text-secondary); }
.topbar-date { color: var(--text-secondary); }
.topbar-icon { cursor: pointer; font-size: 17px; opacity: .55; transition: opacity .15s; }
.topbar-icon:hover { opacity: 1; }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #7C3AED);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ===== 主区域（工作画布 + 内容面板） ===== */
.main-wrap {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: var(--bg);
}
.main {
  flex: 1; padding: 36px 40px; max-width: none; margin: 0; width: 100%; min-width: 0;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.page-head h2 { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ===== 卡片（现代圆角+柔和阴影） ===== */
.card {
  background: #fff; border-radius: 12px; padding: 22px; margin-bottom: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226,232,240,.7);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card.narrow { max-width: 560px; }
.card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.card h4 { font-size: 14px; margin: 14px 0 8px; color: var(--text); }
.sub-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin: 14px 0;
}

/* 统计卡片行 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  box-shadow: var(--card-shadow); border: 1px solid rgba(226,232,240,.7);
  display: flex; align-items: center; gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue { background: #eff6ff; }
.stat-icon.green { background: #EBF5F3; }
.stat-icon.purple { background: #f5f3ff; }
.stat-icon.orange { background: #FBF3E8; }
.stat-icon.red { background: #FDF0ED; }
.stat-info {}
.stat-num { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

/* 标签页 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs + .tabs { margin-top: 10px; }
.tab-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  padding: 7px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;
  transition: all .15s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;
  transition: all .15s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.25); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: 0 4px 14px rgba(99,102,241,.32); transform: translateY(-1px); }
.btn.danger { background: #fff; border-color: #F0D9D4; color: #C45C4A; }
.btn.danger:hover { background: #C45C4A; color: #fff; border-color: #C45C4A; }
.btn.ghost { border-color: transparent; color: var(--text-secondary); background: transparent; }
.btn.ghost:hover { background: var(--bg); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn.big { padding: 11px 26px; font-size: 15px; border-radius: 10px; margin-top: 14px; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* 表单 */
.input {
  width: 100%; border: 1px solid #d4dce6; border-radius: 8px; padding: 9px 12px;
  font-size: 14px; background: #fff; color: #1f2937;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.textarea { resize: vertical; font-family: inherit; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.w80 { width: 80px; }
.w120 { width: 120px; }
.w160 { width: 160px; }
.check-row { display: flex; gap: 16px; padding: 8px 0; }
.check-row label { display: flex; align-items: center; gap: 4px; }

.dyna-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; flex-wrap: wrap; }
.dyna-row .input { flex: 1; }
.dyna-row textarea.input { flex: 2; }

/* 学习地图阶段：视频 / 考试题目来源 */
.stage-files { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; width: 100%; margin-top: 4px; padding-top: 6px; border-top: 1px dashed rgba(124,58,237,.25); }
.file-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4338ca; font-weight: 600; cursor: pointer; background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.25); border-radius: 8px; padding: 5px 10px; }
.file-label input[type=file] { display: none; }
.file-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 4px 8px; }
.btn.xs { padding: 2px 8px; font-size: 11px; border-radius: 6px; line-height: 1.6; }
.stage-video { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.stage-video .muted { font-size: 13px; font-weight: 600; }
.stage-video video { max-width: 360px; max-height: 220px; border-radius: 10px; border: 1px solid rgba(15,23,42,.1); background: #000; }
.stage-video-list { width: 100%; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.stage-video-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.stage-video-item .input { flex: 1 1 160px; font-size: 13px; padding: 4px 8px; }
.stage-video-item .file-ok { margin-right: auto; }
.video-wrap { margin-top: 4px; }
.video-title { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 3px; }
.stage-examfile { margin-top: 6px; font-size: 13px; }
.dl-link { color: #6366f1; font-weight: 600; text-decoration: underline; }
.stage-attachments { width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(124,58,237,.25); }
.stage-attach-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stage-attach-label { font-size: 13px; font-weight: 600; color: #4338ca; }
.file-label-attach { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.3); color: #2563eb; }
.stage-attach-list { width: 100%; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.stage-attach-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.stage-attach-item .attach-icon { font-size: 16px; }
.stage-attach-item .input { flex: 1 1 160px; font-size: 13px; padding: 4px 8px; }
.stage-attach-item .file-ok { margin-right: auto; }
.stage-attach-files { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.stage-attach-files .text-muted { font-size: 13px; font-weight: 600; }
.attach-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #2563eb; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: 8px; padding: 5px 10px; text-decoration: none; }
.attach-link:hover { background: rgba(59,130,246,.14); }

.stage-exam-source { width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(124,58,237,.25); }
.exam-mode-label { font-size: 13px; font-weight: 600; color: #4338ca; margin-bottom: 6px; }
.exam-mode-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #334155; cursor: pointer; margin-right: 14px; }
.exam-mode-radio input { margin: 0; }
.ai-config, .upload-config { margin-top: 8px; padding: 10px 12px; background: #faf8ff; border: 1px solid #c7d2fe; border-radius: 10px; }
.ai-config-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 8px; }
.ai-config-line:last-child { margin-bottom: 0; }
.ai-config-line label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; }
.ai-config-line .input { width: auto; min-width: 70px; }
.upload-config { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* 小场景区块（大场景下的细分练习单元） */
.sub-rows {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px dashed #c7d2fe; border-radius: 10px;
  padding: 12px; margin: 4px 0 12px;
}
.sub-row {
  border-left: 3px solid #818cf8; background: #faf7ff; padding: 8px;
  border-radius: 0 8px 8px 0;
}
.tag-sub {
  background: #eef2ff; color: #6366f1; border: 1px solid #c7d2fe;
}

/* ═══════════════════════════════════════════════════════
   新人上岗跟踪表 — Premium SaaS 卡片风格
   ═══════════════════════════════════════════════════════ */
.ob-list { display: flex; flex-direction: column; gap: 16px; }

/* ── 卡片主体 ── */
.ob-card {
  cursor: default;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
  overflow: hidden;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.ob-card:hover {
  box-shadow: 0 4px 12px rgba(99,102,241,.10), 0 8px 24px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.ob-card.open {
  box-shadow: 0 4px 16px rgba(99,102,241,.12), 0 8px 32px rgba(0,0,0,.08);
  border-color: #c7d2fe;
}

/* 左侧状态色条 */
.ob-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6366f1, #818cf8);
  border-radius: 4px 0 0 4px;
  pointer-events: none;
}
.ob-card.status-graduated::before {
  background: linear-gradient(180deg, #3B9B8F, #5BBFAA);
}
.ob-card.status-ready::before {
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

/* ── 卡片头部（可点击展开）── */
.ob-head {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 14px 22px;
  transition: background .2s;
}
.ob-head:hover { background: #fafbff; }
.ob-card.open .ob-head { background: #f5f7ff; }

/* 头像圆 */
.ob-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.5px;
}
.ob-avatar.bg-a { background: linear-gradient(135deg, #6366f1, #818cf8); }
.ob-avatar.bg-b { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ob-avatar.bg-c { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.ob-avatar.bg-d { background: linear-gradient(135deg, #ec4899, #f472b6); }
.ob-avatar.bg-e { background: linear-gradient(135deg, #3B9B8F, #5BBFAA); }
.ob-avatar.bg-f { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

/* 信息区 */
.ob-info { flex: 1; min-width: 0; }
.ob-title-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.ob-title {
  font-size: 16px; font-weight: 700; color: #1e293b;
  letter-spacing: -0.01em;
}
.ob-title .badge {
  margin-left: 0;
  vertical-align: middle;
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  font-weight: 600;
}
.ob-meta {
  font-size: 13px; color: #64748b;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.ob-meta .meta-dot {
  width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1;
}

/* 右侧操作列 */
.ob-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0; padding-top: 2px;
}

/* 展开按钮 */
.ob-toggle-btn {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #94a3b8;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.ob-toggle-btn:hover {
  background: #f1f5f9; border-color: #c7d2fe; color: #6366f1;
}
.ob-card.open .ob-toggle-btn {
  background: #eef2ff; border-color: #a5b4fc; color: #4f46e5;
  transform: rotate(180deg);
}

/* ── 进度指标行 ── */
.ob-progress {
  display: flex; gap: 10px; margin: 12px 18px 16px 22px;
  flex-wrap: wrap;
}
.ob-stat-pill {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #f1f5f9;
  border-radius: 10px; padding: 8px 12px;
  min-width: 120px; flex: 1;
  transition: all .2s;
}
.ob-stat-pill:hover { background: #f1f5f9; border-color: #e2e8f0; }
.ob-stat-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ob-stat-icon.si-meet   { background: #ede9fe; }
.ob-stat-icon.si-fu     { background: #dbeafe; }
.ob-stat-icon.si-mentor { background: #fef3c7; }
.ob-stat-data { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-stat-label {
  font-size: 11px; color: #94a3b8; font-weight: 500;
  text-transform: uppercase; letter-spacing: .02em;
}
.ob-stat-bar-wrap {
  height: 5px; background: #e2e8f0; border-radius: 3px;
  overflow: hidden; width: 100%;
}
.ob-stat-bar {
  height: 100%; border-radius: 3px;
  transition: width .4s cubic-bezier(.16,1,.3,1);
}
.ob-stat-bar.bar-meet   { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ob-stat-bar.bar-fu     { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ob-stat-bar.bar-mentor { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ob-stat-bar.bar-full   { background: linear-gradient(90deg, #3B9B8F, #5BBFAA); }
.ob-stat-num {
  font-size: 13px; font-weight: 700; color: #334155;
}
.ob-stat-num.num-warn { color: #C45C4A; }
.ob-stat-num.num-ok { color: #3B9B8F; }

/* ── 展开内容区 ── */
.ob-body {
  margin: 0; padding: 0 22px 20px 22px;
  border-top: 1px solid #f1f5f9;
  background: #fafbff;
  animation: obSlideIn .25s ease;
}
@keyframes obSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ob-section { margin-bottom: 18px; }
.meeting-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.meeting-block { background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; padding: 8px; }
.meeting-row .meeting-check { width: 18px; height: 18px; margin-top: 9px; flex: none; }
.meeting-row .meeting-title { flex: 2; }
.meeting-row .meeting-note { flex: 2; }
.fu-add { margin-bottom: 10px; }
.fu-list { display: flex; flex-direction: column; gap: 6px; }
.fu-item { display: flex; gap: 8px; align-items: baseline; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 8px; padding: 8px 10px; font-size: 13px; flex-wrap: wrap; }
.fu-date { color: #6366f1; font-weight: 600; white-space: nowrap; }
.album-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.album-block { background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; padding: 10px; }
.album-head { margin-bottom: 8px; }
.album-head .album-title { flex: 1; font-weight: 600; }
.section-title-row { display: flex; align-items: center; gap: 6px; }
.section-title-row .section-title { width: auto; min-width: 160px; max-width: 320px; font-size: 14px; font-weight: 600; color: #0f172a; background: transparent; border-color: transparent; padding: 2px 6px; }
.section-title-row .section-title:hover, .section-title-row .section-title:focus { background: #fff; border-color: #a5b4fc; }
.album-add { margin: 8px 0 10px; }
.album-items { display: flex; flex-direction: column; gap: 6px; }
.album-item { display: flex; gap: 8px; align-items: baseline; background: #fff; border: 1px solid #eef1f6; border-radius: 8px; padding: 8px 10px; font-size: 13px; flex-wrap: wrap; }
.mentor-row { align-items: center; background: #f5f3ff; border: 1px solid #e0e7ff; border-radius: 10px; padding: 10px 12px; }
.mentor-label { font-size: 13px; font-weight: 600; color: #4338ca; white-space: nowrap; }
.mentor-pct { font-size: 13px; color: #64748b; }
.mentor-tasks-head { font-size: 13px; font-weight: 600; color: #475569; margin: 12px 0 6px; }
.mentor-tasks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.mentor-task { background: #fff; border: 1px solid #eef1f6; border-radius: 8px; padding: 6px 8px; }
.mentor-task .mentor-task-check { width: 18px; height: 18px; margin-top: 7px; flex: none; }
.mentor-task .mentor-task-title { flex: 1; }
.mentor-comment-head { font-size: 13px; font-weight: 600; color: #475569; margin: 12px 0 6px; }
.mentor-comment { width: 100%; resize: vertical; }
.album-item .fu-content { flex: 1; min-width: 200px; color: #334155; }
.album-item .btn { margin-left: auto; }
.fu-by { color: #64748b; white-space: nowrap; }
.fu-content { flex: 1; min-width: 200px; color: #334155; }
.fu-item .btn { margin-left: auto; }
/* 照片缩略图（开会/跟进） */
.fu-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fu-photo { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; background: #f1f5f9; }
.fu-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.fu-photo-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(15,23,42,.6); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.handoff-card { background: linear-gradient(135deg, #f5f3ff, #e0e7ff); border: 1px solid #d6bcfa; border-radius: 12px; padding: 16px; margin-top: 8px; }
.handoff-head { font-weight: 700; color: #4f46e5; margin-bottom: 8px; }
.handoff-body { color: #374151; line-height: 1.7; font-size: 14px; }
.handoff-meta { margin-top: 6px; font-size: 12px; }
.danger-text { color: #C45C4A; }
.danger-text:hover { background: #F5E0DB; }
.progress-bar.sm { height: 6px; }
.progress-inner.half { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ===== 上岗后能力总览（替代已上岗人员的带教计划） ===== */
.ob-ability-grid { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.ob-ability-item { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ob-ability-label { color: #64748b; }
.ob-ability-val { font-weight: 700; font-size: 14px; }
.ob-ability-val.ob-ok { color: #16a34a; }
.ob-ability-val.ob-warn { color: #d97706; }
.ob-ability-val.ob-bad { color: #dc2626; }
.ob-ability-val.ob-bold { font-size: 16px; }

/* 展开详情：能力总览 */
.ob-ab-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 14px; background: linear-gradient(135deg,#f5f3ff,#ede9fe); border-radius: 12px; }
.ob-ab-score b { font-size: 32px; color: #4f46e5; display: block; line-height: 1.1; }
.ob-ab-score span { font-size: 12px; color: #6b7280; }
.ob-ab-level { font-size: 15px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; height: fit-content; }
.ob-ab-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ab-metric { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; padding: 10px 12px; }
.ab-metric-icon { font-size: 16px; }
.ab-metric-value { font-size: 18px; font-weight: 700; color: #1e293b; }
.ab-metric-label { font-size: 11px; color: #64748b; }
.ab-metric.ab-warn { background: #fffbeb; border-color: #fde68a; }
.ob-ab-sub { font-size: 13px; font-weight: 600; color: #374151; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #eef1f6; }
.ob-ab-list { display: flex; flex-direction: column; gap: 4px; }
.ob-ab-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fafbff; border-radius: 8px; font-size: 12px; }
.ob-ab-date { color: #94a3b8; white-space: nowrap; min-width: 100px; }
.ob-ab-score-td { font-weight: 700; font-size: 14px; min-width: 42px; text-align: center; }

/* ── 学习地图页面布局（对齐截图） ── */

/* 页面标题：紫色竖条 + 标题文字 */
.map-page-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.map-page-title h2 { margin: 0; font-size: 20px; font-weight: 700; color: #1e293b; }
.map-title-bar { width: 4px; height: 22px; background: #4f46e5; border-radius: 2px; flex-shrink: 0; }

/* Tab栏 + 分配按钮（同行） */
.map-tab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.map-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.map-tab-row .tab-item { padding: 7px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; background: #f1f5f9; color: #475569; transition: all .15s; border: none; white-space: nowrap; }
.map-tab-row .tab-item:hover { background: #e2e8f0; }
.map-tab-row .tab-item.active { background: #4f46e5; color: #fff; font-weight: 600; }
.map-assign-btn { flex-shrink: 0; }

/* 副标题 */
.map-subtitle { margin: 0 0 18px; font-size: 14px; color: #6b7280; }

/* 学员卡片：极简一行式 */
.map-stu-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: box-shadow .15s, border-color .15s; }
.map-stu-card:hover { border-color: #c7d2fe; box-shadow: 0 2px 8px rgba(79,70,229,.08); }
.map-stu-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.map-stu-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.map-stu-name { font-size: 15px; font-weight: 700; color: #1e293b; white-space: nowrap; }
.map-stu-desc { font-size: 13px; color: #94a3b8; white-space: nowrap; }
.map-stu-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* 状态文字 */
.map-status { font-size: 13px; font-weight: 600; white-space: nowrap; }
.map-status-doing { color: #4f46e5; }
.map-status-done { color: #16a34a; }
.map-status-delayed { color: #dc2626; }

/* 进度文字 */
.map-progress-text { font-size: 13px; color: #64748b; white-space: nowrap; }

/* 详情链接 */
.map-detail-link { font-size: 13px; color: #4f46e5; cursor: pointer; text-decoration: none; white-space: nowrap; font-weight: 500; }
.map-detail-link:hover { text-decoration: underline; color: #4338ca; }

/* 删除按钮 */
.map-del-btn { flex-shrink: 0; }

/* 展开详情区 */
.map-stu-detail {
  margin-top: 14px; padding: 16px;
  background: #fafbff; border: 1px solid #ede9fe; border-radius: 10px;
}
.map-stage-detail { display: flex; flex-direction: column; gap: 12px; }

/* 展开详情：阶段项 */
.stage-item { background: #fafbff; border: 1px solid #ede9fe; border-radius: 10px; padding: 12px; }
.stage-item.delayed { border-color: #fecaca; background: #fffafaf; }
.stage-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stage-status { font-size: 12px; margin-top: 6px; }
.stage-video { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.video-wrap { margin-top: 6px; }
.video-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.video-wrap video { max-width: 100%; max-height: 240px; border-radius: 8px; }
.stage-examfile { margin-top: 6px; font-size: 12px; }

/* 分配表单 */
.map-assign-form { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.map-assign-form h3 { margin: 0 0 12px; }

/* 模板库 */
.map-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.map-tpl-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.map-tpl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.map-tpl-icon { font-size: 24px; }
.map-tpl-title { font-size: 15px; font-weight: 700; }
.map-tpl-meta { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.map-tpl-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.map-tpl-actions { display: flex; gap: 8px; }

/* 学员进度列表 */
.map-progress-list { display: flex; flex-direction: column; gap: 12px; }
.ob-ab-score-td.ob-pass { color: #16a34a; }
.ob-ab-score-td.ob-fail { color: #dc2626; }
.ob-ab-score-td.ob-warn-txt { color: #d97706; }
.ob-ab-bank { color: #64748b; font-size: 11px; }
.ob-ab-grade { margin-left: auto; font-size: 11px; }
.ob-ab-cat { color: #94a3b8; font-size: 11px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.table th { color: #64748b; font-weight: 600; background: #f8fafc; }
.table.inner th { background: #f1f5f9; }
.table .empty, .empty { text-align: center; color: #94a3b8; padding: 22px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toolbar .input { max-width: 320px; }

/* 徽标/标签 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #e2e8f0; color: #475569; }
.badge-a { background: #dcfce7; color: #15803d; }
.badge-b { background: #e0e7ff; color: #4f46e5; }
.badge-c { background: #fef9c3; color: #a16207; }
.badge-d { background: #F5E0DB; color: #A84838; }
.badge-w { background: #ffedd5; color: #c2410c; }
.badge-x { background: #e5e7eb; color: #374151; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; background: #EEF3FB; color: #315FC5; }
.tag-easy { background: #dcfce7; color: #15803d; }
.tag-mid { background: #fef9c3; color: #a16207; }
.tag-hard { background: #F5E0DB; color: #A84838; }
.tag-row { display: flex; gap: 8px; margin-bottom: 10px; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .07);
  border: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 14px;
}
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 23, 42, .12); border-color: #e2e8f0; }
.stat-card.warn { border-left: 4px solid #C45C4A; }
.stat-card.red, .stat-card.warn .stat-value { color: #C45C4A; }
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, #f5f3ff, #e0e7ff); color: #6366f1;
}
.stat-card.warn .stat-icon { background: #FDF0ED; color: #C45C4A; }
.stat-value { font-size: 16px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }

/* 总览快捷入口 */
.dash-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.dash-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0;
  color: #475569; font-size: 14px; text-decoration: none;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.dash-pill:hover { border-color: #c4b5fd; color: #6366f1; transform: translateY(-1px); }
.dash-pill.primary { background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; border-color: transparent; }
.dash-pill.primary:hover { filter: brightness(1.08); color: #fff; }

/* 能力短板分析 */
.weakness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.weakness-item {
  background: #f8fafc; border-radius: 10px; padding: 14px 16px;
  border: 1px solid #eef1f6;
}
.weakness-item .weakness-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.weakness-item .weakness-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.weakness-item .weakness-meta { font-size: 13px; color: #64748b; }
.weakness-item .weakness-bar { height: 8px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.weakness-item .weakness-inner { height: 100%; border-radius: 999px; }
.weakness-hint { font-size: 12px; color: #64748b; margin-top: 14px; }

/* 场景卡片 */
.scene-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin: 12px 0; }
.scene-box p { color: #475569; line-height: 1.7; }

/* 聊天 */
.chat-card { max-width: 760px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; margin-bottom: 12px; }
.chat-box { height: 420px; overflow-y: auto; padding: 8px 4px; background: #f8fafc; border-radius: 10px; }
.chat-msg { display: flex; flex-direction: column; margin: 10px 12px; max-width: 78%; }
.chat-msg.customer { align-items: flex-start; }
.chat-msg.staff { align-items: flex-end; margin-left: auto; }
.chat-msg.mini { margin: 6px 0; max-width: 92%; }
.chat-who { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.bubble { padding: 10px 14px; border-radius: 12px; line-height: 1.6; word-break: break-word; }
.chat-msg.customer .bubble { background: #fff; border: 1px solid #e2e8f0; border-top-left-radius: 4px; }
.chat-msg.staff .bubble { background: #6366f1; color: #fff; border-top-right-radius: 4px; }
.chat-sys { text-align: center; color: #a16207; font-size: 12px; margin: 10px 0; }
/* 顾客不满消息（系统自动触发，红色高亮警示） */
.chat-msg.customer.dissatisfaction .bubble {
  background: #fef2f2; border: 1.5px solid #fca5a5; border-left: 3px solid #ef4444;
  position: relative;
}
.chat-msg.customer.dissatisfaction .bubble::before {
  content: "⚠️ 顾客不满";
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.chat-input { display: flex; gap: 10px; margin-top: 12px; }

/* 评分 */
.score-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.score-num { font-size: 30px; font-weight: 700; color: #6366f1; }
.kp-list { list-style: none; margin: 8px 0; }
.kp-list li { padding: 6px 0; }
.kp-list li.ok { color: #15803d; }
.kp-list li.miss { color: #A84838; }
.tips { margin: 6px 0 6px 18px; color: #475569; }
.tips li { padding: 3px 0; }
.red { color: #C45C4A; }
.ok { color: #15803d; }
.muted { color: #64748b; font-size: 13px; }

/* 考试 */
.exam-head { padding-bottom: 12px; border-bottom: 1px solid #eef1f6; margin-bottom: 12px; font-size: 15px; }
.q-item { padding: 14px; border: 1px solid #eef1f6; border-radius: 10px; margin-bottom: 12px; background: #fff; }
.q-item.right { border-color: #bbf7d0; background: #f0fdf4; }
.q-item.wrong { border-color: #F0D9D4; background: #FDF0ED; }
.q-title { font-weight: 600; margin-bottom: 10px; line-height: 1.6; }
.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opts label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.5; }
.q-opts input { margin-top: 3px; }

/* 考试倒计时 + 补训提示 */
.exam-timer-wrap {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
  font-size: 13px; padding: 3px 10px; border-radius: 999px;
  background: rgba(124, 58, 237, .1); color: #4f46e5; font-weight: 600;
}
.exam-timer { font-variant-numeric: tabular-nums; }
.exam-timer.warn {
  color: #C45C4A; animation: timerPulse 1s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.retrain-note {
  margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #FBF3E8, #ffedd5);
  border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; line-height: 1.6;
}

/* 手机考试进度条：桌面隐藏，仅手机吸顶显示 */
.exam-progress { display: none; }

/* ===== 手机考试响应式（≤480px）：大点击区 + 吸底交卷 ===== */
@media (max-width: 480px) {
  .q-item { padding: 12px; margin-bottom: 10px; }
  .q-title { font-size: 15px; line-height: 1.55; }
  /* 选项变全宽可点卡片：大触摸目标，避免只能点文字 */
  .q-opts { gap: 10px; }
  .q-opts label {
    display: flex; align-items: center; gap: 10px;
    min-height: 46px; padding: 10px 12px;
    border: 1px solid #eef1f6; border-radius: 10px;
    background: #fff; line-height: 1.45;
    transition: border-color .15s, background .15s;
  }
  .q-opts label:active { background: #f5f3ff; }
  .q-opts input[type="radio"], .q-opts input[type="checkbox"] {
    width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: #6366f1;
  }
  /* 题头窄屏换行，计时器不挤压 */
  .exam-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    font-size: 14px; line-height: 1.5;
  }
  .exam-timer-wrap { margin-left: 0; flex: 0 0 auto; }
  /* 交卷按钮吸底固定：长卷随时可提交，不必滚到底 */
  .card > .btn.primary.big:last-child {
    position: sticky; bottom: 8px; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin-top: 16px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .35);
  }
  /* 结果页分数缩放防溢出 */
  .score-hero { flex-wrap: wrap; gap: 10px 14px; }
  .score-num { font-size: 38px; }
  /* 开始考试卡片再收紧 */
  .start-card { padding: 22px 16px; }
  .start-form .input { padding: 13px 14px; font-size: 16px; }
  .start-form .btn.big { padding: 15px 22px; font-size: 16px; }
  /* 进度条吸顶：长卷随时可见已答进度 */
  .exam-progress {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    position: sticky; top: 0; z-index: 15;
    margin: 0 0 12px; padding: 9px 12px;
    background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: #4f46e5;
  }
  .exam-progress b { font-size: 16px; }
}


/* 学习地图 */
.asg-card { border-left: 4px solid #6366f1; }
.asg-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.big-name { font-size: 16px; }
.progress-bar { height: 8px; background: #eef1f6; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.progress-inner { height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa); border-radius: 999px; }
.progress-bar.sm { height: 6px; margin-top: 6px; max-width: 180px; }
.progress-inner.half { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stage-list { margin-top: 16px; border-top: 1px dashed #e2e8f0; padding-top: 8px; }
.stage-item { padding: 12px 14px; border-radius: 10px; background: #f8fafc; margin: 10px 0; border: 1px solid #eef1f6; }
.stage-item.delayed { background: #FDF0ED; border-color: #F0D9D4; }
.stage-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.stage-status { margin-top: 6px; font-size: 13px; }
.map-item { border-top: 1px solid #eef1f6; padding: 14px 0; }
.tip-box { background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px; padding: 14px; margin-top: 16px; }
.tip-box p { color: #475569; line-height: 1.7; margin-top: 6px; }

.rec-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; background: #f8fafc; border-radius: 10px; padding: 14px; }

/* 登录与权限 */
.hidden { display: none !important; }
.login-wrap { display: flex; justify-content: center; padding-top: 8vh; }
.login-card { width: 380px; }
.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card > .muted { text-align: center; margin-bottom: 18px; }
.login-links { display: flex; gap: 18px; justify-content: center; margin-top: 16px; }
.login-links a { color: #6366f1; font-size: 13px; cursor: pointer; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.wx-qr { width: 200px; height: 200px; margin: 6px auto 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.wx-qr svg { display: block; width: 100%; height: 100%; }
.wx-url { font-size: 11px; word-break: break-all; white-space: pre-wrap; color: #334155; }
.user-box {
  position: absolute; bottom: 16px; left: 12px; right: 12px;
  background: #0f172a; border-radius: 10px; padding: 12px 14px;
}
.ub-name { color: #fff; font-weight: 600; margin-bottom: 6px; }
.ub-actions { font-size: 13px; }
.ub-actions a { color: #94a3b8; text-decoration: none; }
.ub-actions a:hover { color: #fff; }

/* 训练舱 */
.cockpit-header {
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  color: #fff; border-radius: 12px; padding: 16px 22px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.cockpit-title { font-size: 15px; font-weight: 700; }
.cockpit-nav { display: flex; gap: 8px; }
.cockpit-nav span {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff;
}
.cockpit-nav span.active { background: #fff; color: #6366f1; font-weight: 600; }
.cockpit-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px;
}
.cockpit-stats .stat-card {
  background: #fff; border-radius: 12px; padding: 16px; text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .07);
}
.cockpit-stats .stat-card .num { font-size: 18px; font-weight: 700; color: #6366f1; }
.cockpit-stats .stat-card .label { font-size: 12px; color: #64748b; margin-top: 4px; }
.cockpit-body { display: table !important; width: 100% !important; border-collapse: separate; border-spacing: 18px 0; margin-bottom: 18px; }
.cockpit-body > tbody > tr > td { vertical-align: top; }
.cockpit-left, .cockpit-right, .cockpit-center { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(15,23,42,.07); }
.cockpit-center { text-align: center; }
.panel-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: #1e293b; }
.tip-card {
  background: #FBF3E8; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px; font-size: 13px; color: #7c2d12; line-height: 1.6;
}
.three-p { font-size: 13px; color: #475569; line-height: 1.8; }
.three-p div { margin-bottom: 6px; }
.diff-options { display: flex; flex-direction: row; gap: 8px; }
.diff-card {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; position: relative;
}
.diff-card:hover { border-color: #a78bfa; }
.diff-card.selected { border-color: #6366f1; background: #eef2ff; }
.diff-card input { position: absolute; right: 10px; top: 10px; }
.diff-icon { font-size: 22px; line-height: 1; }
.diff-title { font-weight: 700; color: #1e293b; font-size: 14px; white-space: nowrap; }
.diff-desc { font-size: 11px; color: #94a3b8; margin-left: auto; }

/* 客户情绪选择 */
.emotion-options { display: flex; flex-wrap: wrap; gap: 6px; }
.emotion-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 20px;
  font-size: 12px; cursor: pointer; background: #fff; color: #475569;
  transition: all .15s ease; white-space: nowrap;
}
.emotion-chip:hover { border-color: #a78bfa; background: #faf5ff; }
.emotion-chip.selected { border-color: #6366f1; background: #eef2ff; color: #6366f1; font-weight: 600; }

/* AI 实时评分面板 */
.ai-score-panel {
  background: linear-gradient(135deg, #eef2ff 0%, #fff 50%); border: 1.5px solid #c7d2fe; border-radius: 12px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}
.ai-score-head { font-size: 14px; font-weight: 700; color: #4338ca; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.ai-score-total { text-align: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.ai-score-num { font-size: 28px; font-weight: 800; color: #6366f1; line-height: 1.2; }
.ai-score-label { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.ai-score-items { display: flex; flex-direction: column; gap: 0; }
.ai-score-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed #f1f5f9;
}
.ai-score-row:last-child { border-bottom: none; }
.ai-score-name { font-size: 13px; color: #475569; }
.ai-score-val { font-size: 13px; font-weight: 600; color: #94a3b8; }

/* 规则速查 & AI 建议 */
.quick-rules { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-bottom: 14px; font-size: 12px; }
.quick-rules b { display: block; font-size: 13px; color: #1e293b; margin-bottom: 8px; }
.quick-rules div { color: #64748b; padding: 4px 0; line-height: 1.5; }
.ai-suggest-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.ai-suggest-box b { display: block; font-size: 13px; color: #1e293b; margin-bottom: 6px; }
.ai-suggest-box p { font-size: 12px; color: #94a3b8; margin: 0; line-height: 1.5; }
.workbench-icon { font-size: 44px; margin: 10px 0; }
.workbench-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.workbench-sub { font-size: 13px; color: #64748b; max-width: 400px; margin: 0 auto 20px; line-height: 1.6; }
.type-btns { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.type-btn {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 10px 16px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.type-btn:hover { border-color: #a78bfa; }
.type-btn.selected { background: #6366f1; color: #fff; border-color: #6366f1; }
.current-type { font-size: 12px; color: #6366f1; background: #eef2ff; display: inline-block; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.workbench-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.diff-note { font-size: 12px; color: #64748b; margin-top: 14px; line-height: 1.5; }
.score-list { display: flex; flex-direction: column; gap: 10px; }
.score-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.score-item .score-name { font-size: 13px; color: #1e293b; }
.score-item .score-weight { font-size: 12px; color: #64748b; }
.score-bar { height: 6px; background: #eef1f6; border-radius: 999px; grid-column: 1 / -1; overflow: hidden; }
.score-inner { height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa); border-radius: 999px; }
.grade-legend { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.grade-legend span { font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.grade-a { background: #dcfce7; color: #15803d; }
.grade-b { background: #e0e7ff; color: #4f46e5; }
.grade-c { background: #fef9c3; color: #a16207; }
.grade-d { background: #F5E0DB; color: #A84838; }
.grade-e { background: #F5E0DB; color: #A84838; border: 1px solid #F0D9D4; }
.quick-rules { font-size: 12px; color: #475569; line-height: 1.8; margin-top: 16px; border-top: 1px solid #eef1f6; padding-top: 12px; }
.quick-rules div { margin-top: 4px; }
.cockpit-bottom { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(15,23,42,.07); }
.quick-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* 右侧客服三要素卡片 */
.three-p-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-top: 14px; }
.three-p-card b { display: block; font-size: 13px; color: #1e293b; margin-bottom: 8px; }
.three-p-card .three-p { font-size: 12.5px; color: #475569; line-height: 1.8; }

/* 右侧面板：客户情绪（从左侧移入，与参考区归并） */
.right-emotion { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-top: 14px; }
.right-emotion b { display: block; font-size: 13px; color: #1e293b; margin-bottom: 8px; }

/* 训练舱版本切换（基础版 / 智能体版） */
.mode-switch { display: flex; gap: 8px; }
.mode-btn {
  flex: 1; padding: 9px 10px; border: 1px solid #e2e8f0; background: #f8fafc;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: #475569; font-weight: 600;
  transition: all .15s;
}
.mode-btn:hover { border-color: #a78bfa; background: #faf5ff; }
.mode-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 2px 6px rgba(99,102,241,.25); }
.mode-note { font-size: 12px; color: #64748b; line-height: 1.6; margin-top: 6px; }

/* 智能体版：右侧话术建议面板 */
.agent-panel {
  background: linear-gradient(180deg, #eef2ff 0%, #faf5ff 100%);
  border: 1px solid #c7d2fe; border-radius: 12px; padding: 14px; margin-top: 14px;
  box-shadow: 0 2px 8px rgba(99,102,241,.12);
}
.agent-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: #4338ca; margin-bottom: 8px; }
.agent-intent { font-size: 11px; font-weight: 600; color: #6366f1; background: #fff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 2px 8px; }
.agent-customer { font-size: 12px; color: #64748b; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; border: 1px dashed #c7d2fe; }
.agent-script {
  font-size: 13px; line-height: 1.75; color: #1e293b; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word;
}
.agent-hints { margin-top: 10px; font-size: 12px; color: #475569; background: #fff; border-radius: 8px; padding: 8px 12px; border: 1px solid #e2e8f0; }
.agent-hints b { color: #be185d; }
.agent-hints ul { margin: 6px 0 0; padding-left: 18px; }
.agent-hints li { margin-bottom: 4px; line-height: 1.6; }
.agent-actions { display: flex; gap: 8px; margin-top: 12px; }
.agent-send { flex: 1; background: #6366f1; border-color: #6366f1; }
.agent-send:hover { background: #4f46e5; }
.agent-regen { background: #fff; border-color: #c7d2fe; color: #6366f1; }
.agent-regen:hover { background: #f5f3ff; }
.agent-loading { font-size: 13px; color: #6366f1; padding: 8px 4px; }
.agent-loading::after { content: "···"; animation: agentdots 1s steps(4) infinite; }
@keyframes agentdots { 0% { content: ""; } 25% { content: "·"; } 50% { content: "··"; } 75% { content: "···"; } }
/* 来源标签：AI/本地/兜底 */
.agent-src { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.agent-src.ai { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.agent-src.local { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.agent-src.fallback { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* AI 错误提示 */
.agent-err { background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; font-size: 12px; color: #dc2626; line-height: 1.45; word-break: break-all; }

/* 来源切换按钮 */
.agent-switch-btn { font-size: 12px; padding: 4px 10px; margin-right: 6px; border-radius: 6px; }
.agent-switch-btn:hover { background: #f5f3ff !important; border-color: #a78bfa !important; }

/* 淘系智能体：参照千牛“智能服务”，每条建议以卡片呈现，小飞机直接发送。 */
.agent-panel.tb-agent-panel {
  padding: 0; margin: 0; overflow: hidden; background: #fff; border: 0;
  border-radius: 0; box-shadow: none;
}

.tb-smart-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; color: #0f172a; }
.tb-smart-head b { font-size: 15px; }
.tb-smart-status { display: inline-flex; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 600; }
.tb-smart-refresh { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #64748b; font-size: 19px; cursor: pointer; }
.tb-smart-refresh:hover { background: #f1f5f9; color: #2563eb; }
.tb-smart-tabs { display: flex; gap: 18px; padding: 0 12px; border-bottom: 1px solid #e5e7eb; color: #64748b; font-size: 12px; white-space: nowrap; }
.tb-smart-tabs span { padding: 7px 0 8px; }
.tb-smart-tabs .active { color: #2563eb; border-bottom: 2px solid #2563eb; font-weight: 700; }
.tb-smart-thread { max-height: 390px; overflow-y: auto; scroll-behavior: smooth; padding: 2px 0; }
.tb-smart-turn { padding-top: 1px; border-bottom: 1px solid #edf0f5; }
.tb-smart-question { display: flex; align-items: flex-start; gap: 7px; margin: 10px 10px 7px; color: #64748b; font-size: 12px; line-height: 1.45; }
.tb-smart-question-text { flex: 1; min-width: 0; color: #475569; word-break: break-word; }
.tb-smart-question .tb-smart-plane { flex: 0 0 40px; width: 40px; height: 28px; margin-top: -3px; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; color: #2563eb; cursor: pointer; transform: rotate(-16deg); font-size: 17px; }
.tb-smart-question .tb-smart-plane:hover { border-color: #60a5fa; background: #dbeafe; }
.tb-smart-card { margin: 0 9px 10px; padding: 11px 10px 9px; border: 1px solid #dce5f2; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.tb-smart-answer { display: flex; gap: 8px; color: #1e293b; font-size: 13px; line-height: 1.65; word-break: break-word; }
.tb-smart-answer-text { flex: 1; min-width: 0; padding: 5px 7px; margin: -5px -2px -5px 0; border: 1px solid transparent; border-radius: 6px; outline: none; white-space: pre-wrap; cursor: text; transition: border-color .15s, background .15s, box-shadow .15s; }
.tb-smart-answer-text:hover { border-color: #dbeafe; background: #f8fbff; }
.tb-smart-answer-text:focus { border-color: #60a5fa; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.tb-smart-answer-text:focus::after { content: ""; }
.tb-smart-shield { flex: 0 0 18px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 800; }
.tb-smart-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 8px; }
.tb-smart-actions .agent-src { margin-right: auto; margin-left: 0; }
.tb-smart-actions button { width: 30px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: #475569; cursor: pointer; font-size: 15px; }
.tb-smart-actions button:hover, .tb-smart-actions button.active { background: #eff6ff; color: #2563eb; }
.tb-smart-actions .tb-smart-plane { width: 42px; border: 1px solid #cbd5e1; background: #f8fafc; color: #2563eb; transform: rotate(-18deg); font-size: 17px; }
.tb-smart-actions .tb-smart-plane:hover { border-color: #60a5fa; background: #eff6ff; }
.tb-smart-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px 10px; color: #94a3b8; font-size: 10px; }
.tb-smart-foot .agent-src { margin-left: 0; white-space: nowrap; }
.tb-agent-live-loading { margin: 8px 10px 10px; border-radius: 7px; background: #eff6ff; }

/* 淘系智能体右栏：智能服务成为主面板，不再追加在订单信息的最底部。 */
.tb-right-panel.tb-agent-service-panel { padding: 0; gap: 0; background: #f7f8fa; overflow-y: auto; }
.tb-service-top { padding: 0 10px 10px; background: #fff; border-bottom: 8px solid #f3f4f6; }
.tb-service-nav { height: 42px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #e5e7eb; font-size: 12px; }
.tb-service-nav span { padding: 10px 12px; color: #475569; border-radius: 6px 6px 0 0; }
.tb-service-nav span.active { background: #3b82f6; color: #fff; font-weight: 700; }
.tb-service-nav b { margin-left: auto; color: #475569; font-size: 16px; font-weight: 400; }
.tb-service-order-tabs { display: flex; gap: 9px; padding: 8px 2px 5px; color: #94a3b8; font-size: 11px; white-space: nowrap; }
.tb-service-order-tabs .active { color: #475569; font-weight: 700; }
.tb-service-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0 9px; }
.tb-service-shortcuts button { padding: 5px 9px; border: 0; border-radius: 14px; background: #f4f6fb; color: #334155; font-size: 11px; cursor: pointer; }
.tb-service-shortcuts button:hover { background: #e8efff; color: #2563eb; }
.tb-service-closed { display: flex; align-items: center; padding: 8px 10px; border-radius: 7px; background: #effbf1; color: #166534; font-size: 12px; }
.tb-service-closed span { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 10px; }
.tb-service-closed b { margin-left: auto; font-size: 18px; font-weight: 400; }
.tb-agent-slot { background: #fff; min-height: 280px; }

/* 淘宝智能体版：截图式顾客信息、足迹与订单区，智能体卡片位于其下方。 */
.tb-agent-context { background: #f5f7fb; color: #263445; font-size: 11px; }
.tb-ac-main-tabs { height: 43px; display: flex; align-items: flex-end; gap: 4px; padding: 0 8px; background: #fff; border-bottom: 2px solid #ff2f68; }
.tb-ac-main-tabs span { min-width: 108px; padding: 11px 16px 9px; text-align: center; font-size: 13px; }
.tb-ac-main-tabs span.active { border-radius: 7px 7px 0 0; background: #ff2f68; color: #fff; }
.tb-ac-main-tabs b { margin: auto 4px 10px auto; font-size: 18px; font-weight: 400; color: #475569; }
.tb-ac-upgrade { margin: 10px 10px 8px; padding: 9px 10px; border-radius: 7px; background: #eaf1ff; color: #64748b; }
.tb-ac-upgrade a { margin-left: 6px; color: #2563eb; }
.tb-ac-card, .tb-ac-section { margin: 0 10px 10px; padding: 11px; border-radius: 12px; background: #fff; }
.tb-ac-name { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; }
.tb-ac-name b { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #111827; }
.tb-ac-name span { color: #f59e0b; }
.tb-ac-name button { margin-left: auto; border: 0; background: transparent; color: #2563eb; cursor: pointer; }
.tb-ac-tags { display: flex; flex-wrap: wrap; gap: 5px; color: #9ca3af; }
.tb-ac-tags span, .tb-ac-tags em { padding: 2px 6px; border-radius: 4px; background: #f3f4f6; font-style: normal; }
.tb-ac-tags em { background: #dbeafe; color: #2563eb; }
.tb-ac-consume { margin: 7px 0; color: #64748b; line-height: 1.55; }
.tb-ac-member { display: flex; padding: 7px 9px; border-radius: 7px; background: #fff5dc; color: #8a641a; }
.tb-ac-member b { margin-left: auto; font-weight: 500; }
.tb-ac-actions, .tb-ac-order-actions, .tb-ac-bottom-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tb-ac-actions button, .tb-ac-order-actions button, .tb-ac-bottom-actions button { padding: 5px 9px; border: 0; border-radius: 14px; background: #f2f4f8; color: #334155; font-size: 11px; cursor: pointer; }
.tb-ac-section-title { display: flex; align-items: center; gap: 16px; padding-bottom: 7px; font-size: 14px; }
.tb-ac-section-title b { padding-bottom: 5px; border-bottom: 2px solid #2563eb; color: #111827; }
.tb-ac-section-title span { color: #94a3b8; }
.tb-ac-section-title i { margin-left: auto; color: #2563eb; font-style: normal; }
.tb-ac-foot-tabs, .tb-ac-order-tabs { display: flex; align-items: center; gap: 8px; color: #94a3b8; white-space: nowrap; overflow: hidden; }
.tb-ac-foot-tabs b, .tb-ac-order-tabs b { color: #2563eb; }
.tb-ac-foot-tabs i, .tb-ac-order-tabs i { margin-left: auto; color: #94a3b8; font-style: normal; }
.tb-ac-goods { min-height: 105px; display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 9px; border-radius: 10px; background: #fafafa; }
.tb-ac-good-img { position: relative; width: 48px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #eef2f7; font-size: 28px; }
.tb-ac-good-img small { position: absolute; left: 0; bottom: 0; padding: 1px 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 9px; }
.tb-ac-goods div:nth-child(2) { flex: 1; min-width: 0; }
.tb-ac-goods div:nth-child(2) b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tb-ac-goods strong { display: block; margin-top: 6px; color: #ff4d00; }
.tb-ac-goods em { align-self: flex-end; color: #94a3b8; font-style: normal; }
.tb-ac-order-tabs { padding: 2px 0 8px; }
.tb-ac-order-card { padding: 9px; border-radius: 10px; background: #eef2ff; }
.tb-ac-order-head { color: #334155; word-break: break-all; }
.tb-ac-order-head em { padding: 2px 5px; background: #ef5da8; color: #fff; font-style: normal; }
.tb-ac-order-head a { color: #2563eb; }
.tb-ac-order-time, .tb-ac-logistics { margin-top: 6px; color: #94a3b8; line-height: 1.55; }
.tb-ac-order-summary { margin-top: 8px; }
.tb-ac-order-summary b { color: #ff4d00; }
.tb-ac-order-summary strong { float: right; color: #ff4d00; }
.tb-ac-order-product { display: flex; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #dbe2f0; }
.tb-ac-order-product > span { font-size: 30px; }
.tb-ac-order-product div { flex: 1; min-width: 0; }
.tb-ac-order-product b, .tb-ac-order-product strong, .tb-ac-order-product small { display: block; margin-bottom: 4px; }
.tb-ac-order-product b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-ac-order-product strong { color: #ff4d00; }
.tb-ac-order-product small { color: #94a3b8; }
.tb-ac-self-service { display: flex; justify-content: space-between; padding: 12px 14px; background: #fff; font-size: 15px; }
.tb-agent-service-panel > .tb-agent-slot { border-top: 8px solid #f3f4f6; }
@media (min-width: 1201px) {
  .wb-real-tb.tb-agent-mode { grid-template-columns: 56px 180px minmax(340px, 1fr) 360px; }
}

/* 工作台内 AI 评分区（各平台右侧面板共用） */
.cp-ai-section { margin-top: 14px; }
.cp-ai-section .ai-score-panel { background: #f8fafc; border-color: #e2e8f0; }
.cp-ai-section .ai-suggest-box { background: #f8fafc; border-color: #e2e8f0; }

/* 难度卡片图标 */
.diff-icon { font-size: 22px; line-height: 1; }

/* 小温暖 */
.warm-tip {
  background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 12px;
  padding: 14px; margin-bottom: 16px;
}
.warm-head { font-size: 14px; font-weight: 700; color: #be185d; margin-bottom: 8px; }
.warm-text { font-size: 13px; color: #831843; line-height: 1.7; margin-bottom: 10px; }
.warm-tag {
  display: inline-block; background: #fff; color: #db2777;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid #fbcfe8;
}

/* 动态行（知识库/聊天记录） */
.dynamic-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.dynamic-row .input { flex: 1; }
.faq-row { flex-wrap: wrap; }
.faq-row .input { min-width: 180px; }

/* 错题解析 */
.q-explain { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: 13px; line-height: 1.6; }

/* 知识库卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* 训练舱响应式：统计卡片和头部在小屏适配，cockpit-body 用 minmax 自然缩放不压栏 */
@media (max-width: 900px) {
  .cockpit-stats { grid-template-columns: repeat(2, 1fr); }
  .cockpit-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .cockpit-body, .cockpit-body > tbody, .cockpit-body > tbody > tr { display: block !important; width: 100% !important; }
  .cockpit-body td { display: block !important; width: 100% !important; margin-bottom: 14px; }
}


/* =========================================================
 * 训练舱 · 平台工作台（独立对练窗口）
 * ========================================================= */
.plat-options { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1.5px solid #e2e8f0; border-radius: 999px;
  cursor: pointer; font-size: 13px; background: #fff; transition: all .15s;
  font-family: inherit; line-height: 1.4;
}
.plat-chip .plat-logo { font-size: 16px; }
.plat-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.plat-chip.selected { font-weight: 600; }
.plat-chip:focus { outline: none; box-shadow: 0 0 0 2px rgba(37,99,235,.2); }

/* 工作台外壳 */
.wb {
  height: calc(100vh - 60px);
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .12);
  --wb: #ff5000;
}
.wb-top {
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px; height: 56px; flex-shrink: 0;
  background: var(--wb); color: #fff;
}
.wb-brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.wb-sub { font-weight: 400; font-size: 12px; opacity: .85; }
.wb-shop { font-size: 13px; opacity: .92; }
.wb-agent { font-size: 13px; opacity: .95; }
.wb-on { color: #b9f6ca; font-size: 12px; }
.wb-top-actions { margin-left: auto; display: flex; gap: 8px; }
.wb-timers { display: flex; align-items: center; gap: 10px; }
.wb-timer {
  font-size: 12px; background: rgba(255,255,255,.18); color: #fff;
  padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
}
.wb-timer b { font-size: 13px; letter-spacing: .5px; }
.cp-wait-bar {
  padding: 6px 14px; background: #f0fdf4; color: #15803d; font-size: 13px;
  border-bottom: 1px solid #bbf7d0; transition: background .2s, color .2s;
  flex-shrink: 0;
}
.cp-wait-bar.waiting { background: #FBF3E8; color: #c2410c; border-bottom-color: #ffedd5; }
.cp-wait-bar.waiting .cp-wait-num { color: #C45C4A; }
.wb-btn {
  border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12);
  color: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.wb-btn:hover { background: rgba(255,255,255,.24); }
.wb-btn.danger { background: #fff; color: var(--wb); border-color: #fff; font-weight: 600; }
.wb-btn.ghost { background: transparent; }

.wb-body { display: flex; flex: 1; min-height: 0; }
.wb-side {
  width: 140px; flex-shrink: 0; background: #f7f8fa; border-right: 1px solid #eceef2;
  padding: 14px 10px; display: flex; flex-direction: column; gap: 4px;
}
.wb-side-title { font-size: 12px; color: #94a3b8; margin-bottom: 6px; padding-left: 6px; }
.wb-nav {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #475569;
}
.wb-nav:hover { background: #eef1f6; }
.wb-nav.active { background: var(--wb); color: #fff; font-weight: 600; }
.wb-side-tip { margin-top: auto; font-size: 11px; color: #b6bfcc; padding: 8px 6px; line-height: 1.5; }

.wb-center { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wb-conv-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid #eceef2; background: #fff;
}
.wb-buyer-ava { width: 40px; height: 40px; border-radius: 50%; background: #eef1f6; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.wb-buyer-info { flex: 1; min-width: 0; }
.wb-buyer-name { font-weight: 600; font-size: 14px; }
.wb-tier { font-size: 11px; color: #b8860b; margin-left: 6px; font-weight: 400; }
.wb-buyer-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.wb-conv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wb-tag { font-size: 11px; background: #f5f3ff; color: #4f46e5; padding: 3px 8px; border-radius: 999px; }
.wb-tag.warn { background: #fff1f2; color: #e11d48; }

.wb-chat { flex: 1; overflow-y: auto; min-height: 0; padding: 16px; background: #f0f2f5; }
.wb-msg { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; animation: msgIn .3s ease; }
.wb-msg.right { flex-direction: row-reverse; }
.wb-msg-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-cust); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); color: #fff; }
.wb-msg.right .wb-msg-ava { background: var(--grad-agent); }
.wb-msg-body { max-width: 72%; }
.wb-msg-who { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.wb-msg.right .wb-msg-who { text-align: right; }
.wb-bubble {
  padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.6;
  background: #fff; color: #1f2937; word-break: break-word;
}
.wb-msg.right .wb-bubble { background: var(--wb); color: #fff; border-top-right-radius: 2px; }
.wb-msg.left .wb-bubble { border-top-left-radius: 2px; }
.wb-sys { text-align: center; font-size: 12px; color: #94a3b8; background: #e9eef5; padding: 6px 12px; border-radius: 999px; margin: 10px auto; width: fit-content; }

.wb-input { border-top: 1px solid #eceef2; background: #fff; padding: 10px 14px; }
.wb-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wb-quick-item {
  font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #f1f5f9;
  color: #475569; cursor: pointer; border: 1px solid #e2e8f0;
}
.wb-quick-item:hover { background: #e2e8f0; }
.wb-input-row { display: flex; gap: 8px; }
.wb-input-row .input { flex: 1; }
/* 所有平台、基础版与智能体版：输入栏只保留输入框和发送按钮。 */
.wb-input-row .btn.ghost,
.wb-input-row .wb-tag { display: none !important; }

.wb-right { width: 290px; flex-shrink: 0; border-left: 1px solid #eceef2; background: #fafbfc; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.wb-card { background: #fff; border: 1px solid #eceef2; border-radius: 10px; padding: 12px 14px; }
.wb-card-h { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.wb-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: #64748b; }
.wb-row b { color: #1f2937; font-weight: 600; text-align: right; max-width: 60%; }
.wb-row .wb-warn { color: #e11d48; }
.wb-req { font-weight: 500 !important; color: #334155 !important; }
.wb-hint { border: 1px dashed var(--grad-sys); border-left: 3px solid #22d3ee; border-radius: 10px; padding: 8px 12px; background: rgba(34,211,238,.06); margin: 6px 0; }
.wb-hint summary { cursor: pointer; font-weight: 600; font-size: 13px; color: #0e7490; }
.wb-hint summary::before { content: "🧑‍🏫 "; }
.wb-hint p { font-size: 13px; line-height: 1.7; color: #475569; margin-top: 8px; }
.wb-mt { margin-top: 10px !important; }
.wb-ul { margin: 4px 0 2px 18px; padding: 0; }
.wb-ul li { font-size: 13px; line-height: 1.6; color: #475569; margin: 3px 0; }
.wb-ul.wb-red li { color: #b42318; }
.wb-ul.wb-red li::marker { content: "⚠ "; }

.grade-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.grade-legend span { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.grade-a { background: #dcfce7; color: #15803d; }
.grade-b { background: #e0e7ff; color: #4f46e5; }
.grade-c { background: #fef9c3; color: #a16207; }
.grade-d { background: #F5E0DB; color: #A84838; }
.grade-e { background: #e0e7ff; color: #4f46e5; }

@media (max-width: 980px) {
  .wb-side { display: none; }
  .wb-right { width: 220px; }
}

/* =========================================================
 * AI 客户「正在输入」指示器
 * ========================================================= */
.chat-msg.typing .bubble,
.wb-msg.typing .wb-bubble {
  display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px;
}
.chat-msg.typing .dot,
.wb-msg.typing .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: cp-blink 1.2s infinite both;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes cp-blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* =========================================================
 * AI 评分 / 连接测试 全局遮罩
 * ========================================================= */
.cst-busy {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px);
}
.cst-busy-box {
  background: #fff; border-radius: 16px; padding: 20px 28px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); font-size: 15px; color: #334155;
}
.cst-busy .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #818cf8;
  animation: cp-blink 1.2s infinite both;
}
.cst-busy-txt { margin-left: 6px; }

/* AI 评分点评样式 */
.ai-summary {
  background: linear-gradient(135deg, #f5f3ff, #f5f3ff);
  border: 1px solid #e0e7ff; border-left: 4px solid #818cf8;
  border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; line-height: 1.65;
  font-size: 14px; color: #4338ca;
}
.ai-comment {
  margin-top: 5px; padding: 4px 9px; font-size: 13px; color: #475569;
  background: #f1f5f9; border-radius: 8px; display: inline-block; line-height: 1.5;
}

/* =========================================================
 * 登录页 · 左蓝右白分屏
 * ========================================================= */
.login-split {
  position: fixed; inset: 0; z-index: 100;
  display: flex; min-height: 100vh;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.login-left {
  flex: 0 0 45%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #4338ca 100%);
  color: #fff;
  padding: 60px 64px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.login-left::after {
  content: ""; position: absolute; bottom: -120px; left: -60px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.login-brand { position: relative; z-index: 1; margin-bottom: 40px; }
.login-brand-solo { text-align: center; margin-bottom: 28px; }
.login-logo-wrap {
  width: 96px; height: 96px; border-radius: 22px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
}
.login-logo-solo { margin: 0 auto 10px; }
.login-logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 22px; }
.login-brand-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-brand-sub { font-size: 14px; color: rgba(255,255,255,.75); }
.login-slogan {
  position: relative; z-index: 1;
  font-size: 28px; font-weight: 700; line-height: 1.35;
  margin-bottom: 18px; letter-spacing: .5px;
}
.login-desc {
  position: relative; z-index: 1;
  font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.8;
  max-width: 460px; margin-bottom: 38px;
}
.login-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.login-feature { display: flex; align-items: flex-start; gap: 14px; }
.login-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.login-feature b { display: block; font-size: 15px; margin-bottom: 2px; }
.login-feature span { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; }

.login-right {
  flex: 1;
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.login-right .login-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15,23,42,.08);
  padding: 36px 32px;
}
.login-card-head { margin-bottom: 22px; }
.login-card-head h2 { font-size: 20px; text-align: left; margin-bottom: 4px; }
.login-card-head > .muted { text-align: left; margin-bottom: 0; }
.login-tabs { display: flex; gap: 24px; border-bottom: 1px solid #e2e8f0; margin-bottom: 22px; }
.login-tab {
  position: relative; padding-bottom: 10px; color: #64748b; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: color .15s;
}
.login-tab:hover { color: #6366f1; }
.login-tab.active { color: #6366f1; font-weight: 600; }
.login-tab.active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: #6366f1; border-radius: 2px;
}
.login-tab-body .form-row label { font-size: 13px; color: #475569; margin-bottom: 6px; }
.login-tab-body .btn.big { margin-top: 8px; }

@media (max-width: 900px) {
  .login-split { flex-direction: column; }
  .login-left { flex: 0 0 auto; padding: 40px 28px; min-height: 40vh; }
  .login-slogan { font-size: 26px; }
  .login-right { padding: 28px 20px; }
  .login-logo-wrap { width: 150px; height: 150px; }
}

/* =========================================================
 * 部门架构页
 * ========================================================= */
.dept-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.dept-head h3 { margin: 0; }
.dept-table td { vertical-align: middle; }
.dept-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.dept-modal-mask { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.dept-modal-body {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px; padding: 28px;
  width: 90%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(15,23,42,.2);
}
.dept-modal-body h3 { margin-bottom: 18px; font-size: 18px; }
.dept-form .form-row { margin-bottom: 16px; }
.dept-form .form-row:last-child { margin-bottom: 0; }

/* =========================================================
 * 考试二维码弹窗
 * ========================================================= */
.qr-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.qr-modal-mask { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.qr-modal-body {
  position: relative; z-index: 1;
  background: #fff; border-radius: 16px; padding: 28px;
  width: 90%; max-width: 380px; text-align: center;
  box-shadow: 0 24px 80px rgba(15,23,42,.25);
}
.qr-modal-body h3 { margin-bottom: 8px; font-size: 18px; }
.qr-box { display: flex; justify-content: center; margin: 16px 0; }
.qr-box svg { border-radius: 10px; border: 1px solid #e2e8f0; }
.qr-url {
  word-break: break-all; font-size: 12px; color: #64748b;
  background: #f8fafc; border-radius: 8px; padding: 8px 10px; margin-bottom: 14px;
}

/* =========================================================
 * 知识库 · 文件上传区
 * ========================================================= */
.kb-upload-zone {
  border: 2px dashed #cbd5e1; border-radius: 12px;
  background: #f8fafc; padding: 26px 16px; text-align: center;
  cursor: pointer; transition: all .15s; margin-bottom: 12px;
}
.kb-upload-zone:hover, .kb-upload-zone.active {
  border-color: #6366f1; background: #f5f3ff;
}
.kb-upload-hint { font-size: 14px; color: #334155; font-weight: 600; }
.kb-upload-tip { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.kb-doc-list { display: flex; flex-direction: column; gap: 8px; }
.kb-doc-empty { color: #94a3b8; font-size: 13px; padding: 4px 2px; }
.kb-doc-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; transition: all .15s;
}
.kb-doc-item:hover { border-color: #6366f1; box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.kb-doc-icon { font-size: 22px; flex-shrink: 0; }
.kb-doc-info { flex: 1; min-width: 0; }
.kb-doc-name {
  font-size: 14px; color: #1f2937; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kb-doc-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.kb-doc-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

/* 聊天记录 · 截图缩略图 */
.ci-shot-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ci-shot-item {
  position: relative; width: 92px; height: 92px; border-radius: 10px;
  overflow: hidden; border: 1px solid #e2e8f0; background: #f8fafc; cursor: pointer;
  transition: all .15s;
}
.ci-shot-item:hover { border-color: #6366f1; box-shadow: 0 2px 8px rgba(37,99,235,.12); }
.ci-shot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-shot-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: rgba(15,23,42,.6); color: #fff;
  font-size: 14px; line-height: 18px; cursor: pointer; padding: 0;
}
.ci-shot-del:hover { background: #C45C4A; }
.ci-rec-text {
  font-size: 13px; color: #475569; margin-top: 6px; white-space: pre-wrap;
  line-height: 1.5; max-height: 96px; overflow: hidden;
}

/* =========================================================
 * 知识库 · 生成考题弹窗
 * ========================================================= */
.kb-gen-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 500; }
.kb-gen-modal {
  position: fixed; z-index: 501; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92%; max-width: 640px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15,23,42,.28);
  animation: kb-gen-in .18s ease-out;
}
@keyframes kb-gen-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.kb-gen-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #eef1f6;
}
.kb-gen-head b { font-size: 16px; }
.kb-gen-body { padding: 18px 20px 22px; }
.bank-quick { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bank-quick .btn { padding: 4px 10px; font-size: 12px; }
.gen-types { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.gen-types label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #334155; cursor: pointer; }
.gen-actions { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; flex-wrap: wrap; }
.gen-actions .gen-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.gen-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto; }
.gen-item {
  display: flex; gap: 10px; padding: 12px;
  border: 1px solid #eef1f6; border-radius: 10px; background: #fff;
  transition: border-color .15s;
}
.gen-item:hover { border-color: #ddd6fe; }
.gen-chk { flex-shrink: 0; padding-top: 2px; }
.gen-q { flex: 1; min-width: 0; }
.gen-q b { font-weight: 600; line-height: 1.6; }
.gen-opts { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 13px; color: #475569; }
.gen-opt.ok { color: #15803d; font-weight: 600; }
.gen-exp { margin-top: 6px; font-size: 12px; line-height: 1.5; }

/* =========================================================
 * 训练舱统一风格增强（全局紫罗兰 · 玻璃质感 · 悬浮微交互）
 * ========================================================= */
.score-num { color: #6366f1; }
.stat-value { color: #1e293b; }
.stat-card.warn { border-left: 4px solid #C45C4A; }
.cards .card, .asg-card, .scene-box, .kb-doc-item, .gen-item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cards .card:hover, .asg-card:hover, .kb-doc-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, .14);
  border-color: #ddd6fe;
}
/* 胶囊标签统一蓝灰调（2026-09-29 掌柜的：原紫调太花） */
.tag { background: #EEF3FB; color: #315FC5; }
/* 主区域已改为白色内容面板卡片（见 :root .main 定义），此处不再覆盖背景 */
/* 输入框聚焦环紫调 */
.input:focus, .textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); }
/* 顶部小徽标 */
.brand-grad { background: linear-gradient(135deg, #6366f1, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 响应式：窄屏下仪表盘与栅格保持规整 */
@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .main { padding: 16px 18px; margin: 12px 12px 16px; border-radius: 12px; }
  .sidebar { width: 184px; }
  .page-head h2 { font-size: 16px; }
}
@media (max-width: 520px) {
  .stat-cards { grid-template-columns: 1fr; }
  .stat-card { padding: 12px; gap: 12px; }
  .stat-icon { width: 40px; height: 40px; font-size: 16px; }
  .dash-pill { padding: 8px 12px; font-size: 13px; }
  .login-right .login-card { padding: 28px 20px; }
}

/* =========================================================
 * 入口表单页统一美化（对练 / 考试 / 全员考试）
 * ========================================================= */
.start-card {
  max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 18px;
  box-shadow: 0 16px 50px rgba(124, 58, 237, .12);
  padding: 36px 38px 32px;
  text-align: center;
  border: 1px solid #eef2ff;
}
.start-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f3ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 6px 20px rgba(124,58,237,.12);
}
.start-card h3 {
  font-size: 22px; margin-bottom: 8px; color: #1f2937;
}
.start-desc {
  font-size: 14px; color: #64748b; line-height: 1.7;
  margin-bottom: 26px; max-width: 440px; margin-left: auto; margin-right: auto;
}
.start-form { text-align: left; }
.start-form .form-row { margin-bottom: 18px; }
.start-form .form-row label {
  display: block; font-size: 13px; color: #475569; font-weight: 500; margin-bottom: 7px;
}
.start-form .input { font-size: 14px; padding: 11px 14px; border-radius: 10px; }
.start-form .btn.big {
  width: 100%; margin-top: 8px; padding: 13px 22px; font-size: 15px; border-radius: 11px;
}
.start-meta {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid #eef2ff;
}
.start-meta-item { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.start-progress {
  background: #f5f3ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.start-progress-info { font-size: 13px; color: #475569; }
.start-progress-bar { flex: 1; min-width: 120px; height: 8px; background: #c7d2fe; border-radius: 999px; overflow: hidden; }
.start-progress-inner { height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa); border-radius: 999px; transition: width .3s ease; }

@media (max-width: 620px) {
  .start-card { padding: 26px 22px; margin: 0 8px; }
  .start-icon { width: 60px; height: 60px; font-size: 30px; }
  .start-card h3 { font-size: 19px; }
}

/* ===== 知识库小场景 ===== */
.kb-scenario-row {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px; margin-bottom: 12px;
}
.kb-scenario-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.kb-scenario-head .sc-name { flex: 1 1 auto; min-width: 0; }
.kb-scenario-row .sc-content { width: 100%; margin-bottom: 10px; }
.kb-scenario-empty { padding: 12px 0; }
.kb-scenario-upload {
  border: 2px dashed #cbd5e1; border-radius: 10px;
  background: #fff; padding: 16px; text-align: center;
  cursor: pointer; transition: all .15s; margin-bottom: 10px;
}
.kb-scenario-upload:hover, .kb-scenario-upload.active, .kb-scenario-upload:focus {
  border-color: #6366f1; background: #f5f3ff; outline: none;
}
.kb-scenario-attach { display: flex; flex-direction: column; gap: 8px; }
.kb-attach-empty { font-size: 13px; padding: 4px 2px; }
.kb-attach-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 8px 10px;
}
.kb-attach-icon { font-size: 20px; flex-shrink: 0; }
.kb-attach-name { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-attach-size { font-size: 12px; color: #94a3b8; flex-shrink: 0; }

/* 平台徽标配色 */
.plat-tb { background: #ff5000; }
.plat-jd { background: #e1251b; }
.plat-dy { background: #161823; }
.plat-pdd { background: #e02e24; }
.plat-ks { background: #ff4906; }
.plat-wx { background: #07c160; }
.plat-def { background: #64748b; }

/* 聊天气泡内的商品卡片 */
.bubble .link-card {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  background: linear-gradient(135deg, #faf5ff, #eef2ff); border: 1px solid #a5b4fc;
  border-radius: 10px; padding: 8px 10px; max-width: 320px;
}
.link-card .link-plat { font-size: 11px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.link-card .link-title { font-size: 13px; font-weight: 600; color: #4338ca; }
.link-card .link-url { font-size: 11px; color: #6366f1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

/* 知识库话术行 */
.kb-script-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.kb-script-row .sc-content { grid-column: 1 / -1; margin-top: 4px; }
.kb-script-empty { padding: 12px 0; }

/* 对练工作台右侧知识库标签 */
.wb-kb-tabs { }
.wb-kb-head { font-weight: 700; color: #1f2937; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.wb-kb-section { margin-bottom: 10px; }
.wb-kb-section b { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.wb-kb-item {
  font-size: 12px; color: #334155;
  background: #f1f5f9; border-radius: 6px;
  padding: 5px 8px; margin-bottom: 4px;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .15s;
}
.wb-kb-item:hover { background: #e2e8f0; }
.wb-kb-item.warn { background: #FDF0ED; color: #991b1b; }
.wb-kb-item.warn:hover { background: #F5E0DB; }

/* 对练工作台底部话术搜索 */
.wb-script-search {
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  background: #f8fafc;
}
.wb-script-input-row {
  display: flex; align-items: center; gap: 10px;
}
.wb-script-icon { font-size: 13px; color: #64748b; white-space: nowrap; font-weight: 600; }
.wb-script-search .input { flex: 1; }
.wb-script-results {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px; max-height: 150px; overflow-y: auto;
}
.wb-script-item {
  display: flex; flex-direction: column;
  gap: 4px; min-width: 140px; max-width: 220px; flex: 1;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 8px 10px; cursor: pointer; transition: all .15s;
}
.wb-script-item:hover { border-color: #6366f1; box-shadow: 0 2px 10px rgba(124,58,237,.12); transform: translateY(-1px); }
.wb-script-item b { font-size: 13px; color: #1f2937; }
.wb-script-content { font-size: 12px; color: #475569; line-height: 1.4; }
.wb-script-tag { font-size: 11px; color: #6366f1; background: #eef2ff; border-radius: 4px; padding: 2px 6px; align-self: flex-start; }
.wb-script-empty { font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* 对练工作台聊天气泡商品卡片 */
.wb-link-card {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; background: linear-gradient(135deg, #faf5ff, #eef2ff);
  border: 1px solid #a5b4fc; border-radius: 10px;
  padding: 8px 10px; max-width: 280px;
}
.wb-link-plat { font-size: 11px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 7px; align-self: flex-start; }
.wb-link-title { font-size: 13px; font-weight: 600; color: #4338ca; }
.wb-link-url { font-size: 11px; color: #6366f1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 工作台右侧滚动 */
.wb-right { overflow-y: auto; }

/* =========================================================
 * 新增模块样式：聊天案例 / 培训→分配档案 / 全员档案 / 线上课程
 * ========================================================= */

/* 通用：动态行（章节编辑等） */
.dyn-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.dyn-row .input { flex: 1; min-width: 0; }

/* 聊天案例录入 */
.case-card { display: flex; flex-direction: column; }
.case-issue { margin-top: 8px; font-size: 13px; }
.case-excerpt {
  margin-top: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: #334155;
}
.case-line { padding: 2px 0; line-height: 1.5; }
.case-line:nth-child(odd) { color: #0f766e; }
.case-line:nth-child(even) { color: #9a3412; }

/* 培训→分配档案 */
.arch-card { display: flex; flex-direction: column; }
.arch-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: #475569; }
.arch-metrics span { background: #f1f5f9; border-radius: 6px; padding: 4px 8px; }
.assign-form { margin-top: 12px; border-top: 1px dashed #e2e8f0; padding-top: 10px; }
.path-steps { display: flex; align-items: center; margin: 12px 0 4px; }
.path-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.path-dot {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #e2e8f0; color: #64748b; font-size: 13px; font-weight: 700;
}
.path-step.done .path-dot { background: linear-gradient(135deg, #6366f1, #a78bfa); color: #fff; }
.path-label { font-size: 11px; color: #64748b; }
.path-step.done .path-label { color: #6366f1; font-weight: 600; }
.path-line { flex: 1; height: 3px; background: #e2e8f0; margin: 0 4px 16px; border-radius: 2px; }
.path-line.done { background: linear-gradient(90deg, #6366f1, #a78bfa); }

/* 全员人员档案 */
.people-card { display: flex; flex-direction: column; }
.people-head { display: flex; align-items: center; gap: 12px; }
.people-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #a78bfa); color: #fff; font-size: 20px; font-weight: 700;
}
.people-name { display: flex; align-items: center; gap: 6px; }
.people-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; flex: none; }

/* 线上课程 */
.course-card { display: flex; flex-direction: column; }
.course-cover {
  height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 10px; color: #fff;
}
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #f8fafc; }
.rank-item.rank-me { background: #eef2ff; border: 1px solid #a5b4fc; }
.rank-no { width: 24px; text-align: center; font-weight: 700; }
.rank-name { min-width: 90px; font-weight: 600; }
.rank-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.rank-fill { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.rank-score { font-weight: 700; color: #6366f1; }

/* 弹窗（课程章节 / 小测） */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 16px; }
.modal-card { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eef1f6; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.lesson-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.lesson-row.done .lesson-info b { color: #6366f1; }
.lesson-info { flex: 1; }
.lesson-doc { margin-top: 6px; font-size: 13px; color: #475569; background: #f8fafc; border-radius: 8px; padding: 8px 10px; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.quiz-opt { text-align: left; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; }
.quiz-opt:hover { border-color: #c4b5fd; }
.quiz-opt.chosen { background: #eef2ff; border-color: #6366f1; font-weight: 600; }

/* ===== 培训人员跟踪 ===== */
.tk-reason { max-width: 220px; word-break: break-word; line-height: 1.5; }
.tk-reason span[title] { cursor: help; color: #475569; }
.tk-drop-cat { display: inline-block; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.stat-card.warn .stat-value { color: #A84838; }

/* ===== 人员看板 (kanban) ===== */
.board { display: flex; gap: 14px; margin-top: 18px; overflow-x: auto; padding-bottom: 8px; }
.board-col { flex: 1 1 0; min-width: 232px; background: #f6f7fb; border: 1px solid rgba(15,23,42,.06); border-radius: 16px; padding: 12px; }
.board-col.col-a { border-top: 3px solid #3B9B8F; }
.board-col.col-b { border-top: 3px solid #3b82f6; }
.board-col.col-c { border-top: 3px solid #9E8A2C; }
.board-col.col-d { border-top: 3px solid #C45C4A; }
.board-col.col-e { border-top: 3px solid #C4881A; }
.board-col.col-f { border-top: 3px solid #6b7280; }
.board-col-head { font-weight: 700; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.board-count { margin-left: auto; background: rgba(15,23,42,.07); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.board-col-body { display: flex; flex-direction: column; gap: 10px; }
.board-card { position: relative; background: #fff; border: 1px solid rgba(15,23,42,.07); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.board-card-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; padding-right: 18px; }
.board-meta { font-size: 12.5px; color: #64748b; line-height: 1.55; }
.board-meta.board-reason { color: #A84838; }
.board-del { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border: none; background: transparent; color: #C45C4A; font-size: 18px; line-height: 1; cursor: pointer; opacity: .45; border-radius: 6px; }
.board-del:hover { opacity: 1; background: #F5E0DB; }
.board-empty { font-size: 12.5px; color: #94a3b8; text-align: center; padding: 18px 0; }

/* 人员看板 - 公司人数概况 */
.company-summary { margin-bottom: 18px; }
.cs-head { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cs-total { font-size: 14px; margin-bottom: 10px; }
.cs-total b { font-size: 20px; color: #2563eb; margin: 0 2px; }
.cs-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-dept { background: #f1f5f9; border: 1px solid rgba(15,23,42,.06); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: #475569; }
.cs-dept b { color: #0f172a; }

/* 周/月看板（聚合视图） */
.wm-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; }
.wm-card { box-shadow: 0 1px 3px rgba(15,23,42,.07); }
.wm-head { font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.wm-total { font-size: 13px; color: #64748b; font-weight: 500; }
.wm-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wm-stat { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; border-left: 3px solid #cbd5e1; }
.wm-stat.col-a { border-left-color: #3B9B8F; }
.wm-stat.col-b { border-left-color: #3b82f6; }
.wm-stat.col-c { border-left-color: #9E8A2C; }
.wm-stat.col-d { border-left-color: #C45C4A; }
.wm-stat.col-e { border-left-color: #C4881A; }
.wm-stat.col-f { border-left-color: #6b7280; }
.wm-names { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-name { display: inline-flex; align-items: center; gap: 5px; background: #f6f7fb; border: 1px solid rgba(15,23,42,.06); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.wm-sect-title { font-size: 12px; font-weight: 600; color: #64748b; margin: 14px 0 8px; padding-top: 10px; border-top: 1px dashed rgba(15,23,42,.08); }
.wm-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-dept { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; color: #334155; }
.wm-dept.high { background: #FDF0ED; border-color: #F0D9D4; color: #991b1b; }
.wm-dept b { font-weight: 600; color: #0f172a; }
.wm-dept.high b { color: #7f1d1d; }
.wm-dept-num { color: #64748b; }
.wm-turnover { font-weight: 700; color: #C45C4A; }
.wm-reasons { display: flex; flex-direction: column; gap: 6px; }
.wm-reason { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fafc; border: 1px solid rgba(15,23,42,.06); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: #334155; }
.wm-reason-text { flex: 1; word-break: break-all; }
.wm-reason-count { flex: none; background: #C45C4A; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 999px; padding: 0 5px; }

/* 培训风险看板：风险灯 / 能力快照 / 转化漏斗 */
.risk-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #334155; white-space: nowrap; }
.risk-dot-i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.tk-snap { font-size: 12px; color: #475569; white-space: nowrap; }
.tk-danger { color: #C45C4A; font-weight: 600; }

/* 题库清理提示横幅 */
.exam-clean-banner { background: #FBF3E8; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }

/* =========================================================
 * 真实电商客服工作台（平台A训练舱）
 * ========================================================= */
.wb-real-tb {
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  position: relative;
  display: grid;
  grid-template-columns: 56px 180px 1fr 300px;
  grid-template-rows: 56px 1fr;
  background: #f0f2f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .12);
  font-size: 13px;
  color: #1f2937;
  --wb: #ff5000;
}

/* 最左侧蓝色图标导航 */
.tb-leftbar {
  grid-row: 1 / 3;
  background: #2563eb;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
}
.tb-lb-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.tb-lb-item {
  width: 56px; padding: 8px 4px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; color: rgba(255,255,255,.85); transition: .15s;
  position: relative;
}
.tb-lb-item:hover, .tb-lb-item.active { background: rgba(255,255,255,.18); color: #fff; }
.tb-lb-icon { font-size: 18px; position: relative; }
.tb-lb-badge {
  position: absolute; top: -6px; right: -8px;
  background: #C45C4A; color: #fff; font-size: 10px;
  min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 999px; padding: 0 4px; font-weight: 700;
}
.tb-lb-text { font-size: 11px; }
.tb-lb-bottom { margin-top: auto; }

/* 顶栏 */
.tb-topbar {
  grid-column: 2 / 5;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; padding: 0 180px 0 16px; gap: 16px;
}
.tb-tb-agent { display: flex; align-items: center; gap: 8px; }
.tb-tb-ava { width: 34px; height: 34px; border-radius: 50%; background: #F5E0DB; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tb-tb-name { font-weight: 600; font-size: 14px; }
.tb-tb-status { font-size: 11px; color: #C45C4A; }
.tb-tb-stats { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.tb-tb-stat { text-align: center; }
.tb-tb-num { font-size: 18px; font-weight: 700; color: #1f2937; }
.tb-tb-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.tb-tb-actions { display: flex; align-items: center; gap: 8px; }
.tb-tb-ai {
  background: #3b82f6; color: #fff; border: none; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.tb-tb-ai:hover { background: #2563eb; }
.tb-tb-icon-btn {
  background: transparent; border: none; font-size: 16px; cursor: pointer;
  color: #6b7280; padding: 6px; border-radius: 6px;
}
.tb-tb-icon-btn:hover { background: #f3f4f6; }
.tb-tb-exit {
  background: linear-gradient(135deg, #ff4d4f, #f5222d); border: none; color: #fff;
  padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(245, 34, 45, 0.28); transition: all 0.18s ease;
}
.tb-tb-exit:hover {
  background: linear-gradient(135deg, #ff7875, #ff4d4f);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 34, 45, 0.4);
}
.tb-tb-exit:active { transform: translateY(0); }
.tb-tb-btn.ghost {
  background: #f0f0f0; color: #555; border: none; padding: 7px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px; transition: background 0.18s;
}
.tb-tb-btn.ghost:hover { background: #e0e0e0; }

/* 左侧会话列表面板 */
.tb-session-panel {
  grid-row: 2; grid-column: 2;
  background: #fff; border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column; min-width: 0;
}
.tb-sp-search {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-bottom: 1px solid #f3f4f6;
}
.tb-sp-search span { color: #9ca3af; }
.tb-sp-input {
  flex: 1; border: none; background: transparent; font-size: 13px; outline: none;
}
.tb-sp-tabs {
  display: flex; justify-content: space-around; padding: 8px 0; border-bottom: 1px solid #f3f4f6;
}
.tb-sp-tabs span { font-size: 16px; padding: 4px 8px; border-radius: 6px; cursor: pointer; color: #9ca3af; }
.tb-sp-tabs span.active, .tb-sp-tabs span:hover { background: #eff6ff; color: #2563eb; }
.tb-sp-group {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; font-size: 12px; color: #9ca3af;
}
.tb-sp-title {
  padding: 6px 12px; font-size: 12px; color: #6b7280;
}
.tb-sp-title b { color: #2563eb; }
.tb-sp-sub { padding: 0 12px 6px; font-size: 11px; color: #9ca3af; }
.tb-sp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer; border-left: 3px solid transparent;
}
.tb-sp-item:hover { background: #f9fafb; }
.tb-sp-item.active { background: #eff6ff; border-left-color: #2563eb; }
.tb-sp-ava { width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tb-sp-body { flex: 1; min-width: 0; }
.tb-sp-name { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; }
.tb-sp-time { font-size: 11px; color: #9ca3af; font-weight: 400; }
.tb-sp-msg { font-size: 12px; color: #6b7280; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 左侧知识面板（品类通用知识 / 客户画像 / 红线引导） */
.tb-knowledge-panel {
  grid-row: 2; grid-column: 2;
  background: #fff; border-right: 1px solid #e5e7eb;
  overflow-y: auto; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.tb-kp-section {
  background: #fafbfc; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 10px 12px;
}
.tb-kp-title {
  font-size: 13px; font-weight: 600; color: #1f2937;
  margin-bottom: 6px; display: flex; align-items: center; gap: 4px;
}
.tb-kp-body {
  font-size: 12px; line-height: 1.65; color: #374151;
}
.tb-kp-body ul { margin: 0; padding-left: 16px; }
.tb-kp-body li { margin-bottom: 3px; }
.tb-kp-body .redline-rule {
  color: #dc2626; font-weight: 600;
}
.tb-kp-body .guide-text {
  color: #059669;
}

/* 中间聊天区 */
.tb-chat-area {
  grid-row: 2; grid-column: 3;
  background: #fff;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  overflow: hidden;
}
.tb-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid #f3f4f6; background: #fff;
  flex-shrink: 0;
}
.tb-chat-buyer { display: flex; align-items: center; gap: 10px; }
.tb-ch-ava { width: 38px; height: 38px; border-radius: 50%; background: #fef3c7; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tb-ch-name { font-weight: 600; font-size: 14px; }
.tb-ch-tag { font-size: 11px; color: #9ca3af; font-weight: 400; }
.tb-ch-meta { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.tb-ch-tools { display: flex; gap: 10px; color: #6b7280; }
.tb-ch-tool { cursor: pointer; font-size: 15px; padding: 4px; border-radius: 4px; }
.tb-ch-tool:hover { background: #f3f4f6; }
.tb-chat-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  background: #f7f8fa;
}
.tb-chat-inner {
  flex: none;
  min-height: 0;
  overflow-y: visible;
  background: #f7f8fa;
  padding: 16px;
}

/* 订单地址确认卡片 */
.tb-order-card {
  background: #fff; margin: 12px 16px 0; border-radius: 10px;
  border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tb-oc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #f3f4f6; font-weight: 600;
}
.tb-oc-status { font-size: 12px; color: #C45C4A; font-weight: 500; }
.tb-oc-product { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f3f4f6; }
.tb-oc-img {
  width: 56px; height: 56px; border-radius: 8px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.tb-oc-info { flex: 1; min-width: 0; }
.tb-oc-title { font-size: 13px; font-weight: 500; line-height: 1.5; }
.tb-oc-spec { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.tb-oc-price { text-align: right; font-weight: 700; color: #1f2937; }
.tb-oc-qty { font-size: 11px; color: #9ca3af; font-weight: 400; }
.tb-oc-addr { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; }
.tb-oc-row { display: flex; font-size: 12px; padding: 3px 0; color: #6b7280; }
.tb-oc-row span { width: 70px; flex-shrink: 0; }
.tb-oc-row b { color: #1f2937; font-weight: 500; }
.tb-oc-express { padding: 8px 14px; font-size: 12px; color: #2563eb; background: #eff6ff; border-radius: 0 0 10px 10px; }

/* 聊天输入区 */
.tb-chat-input {
  border-top: 1px solid #e5e7eb; background: #fff; padding: 10px 14px 14px;
  flex-shrink: 0;
}
.tb-quick-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tb-quick-item {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #f3f4f6; color: #4b5563; cursor: pointer; border: 1px solid #e5e7eb;
}
.tb-quick-item:hover { background: #e5e7eb; }
.tb-input-tools { display: flex; gap: 14px; padding: 6px 0; color: #6b7280; font-size: 16px; }
.tb-input-tools span { cursor: pointer; }
.tb-input-tools span:hover { color: #2563eb; }
.tb-input-row { display: flex; gap: 8px; margin: 6px 0; }
.tb-textarea {
  flex: 1; height: 48px; border: 1px solid #d1d5db; border-radius: 8px;
  padding: 8px 12px; font-size: 14px; resize: none; outline: none; font-family: inherit;
}
.tb-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.tb-send-btn {
  background: #3b82f6; color: #fff; border: none; border-radius: 8px;
  padding: 0 18px; font-size: 14px; cursor: pointer; align-self: stretch;
}
.tb-send-btn:hover { background: #2563eb; }
.tb-input-foot { display: flex; justify-content: flex-end; align-items: center; margin-top: 8px; }
.tb-foot-btn {
  background: linear-gradient(135deg, #ff4d4f, #f5222d); border: none; color: #fff;
  padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(245, 34, 45, 0.28); transition: all 0.18s ease;
}
.tb-foot-btn:hover {
  background: linear-gradient(135deg, #ff7875, #ff4d4f);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 34, 45, 0.4);
}
.tb-foot-btn:active { transform: translateY(0); }
.tb-hint { font-size: 11px; color: #9ca3af; }

/* 右侧智能客服面板 */
.tb-right-panel {
  grid-row: 2; grid-column: 4;
  background: #f7f8fa; border-left: 1px solid #e5e7eb;
  overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.tb-rp-banner {
  background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af;
  border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5;
}
.tb-rp-banner a { color: #2563eb; text-decoration: underline; cursor: pointer; }
.tb-rp-card { background: #fff; border-radius: 10px; border: 1px solid #e5e7eb; padding: 12px; }
.tb-rp-user .tb-rp-name { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tb-rp-credit { color: #f59e0b; font-size: 12px; }
.tb-rp-level { font-size: 11px; color: #fff; background: #3B9B8F; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.tb-rp-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.tb-rp-tags span { font-size: 11px; color: #6b7280; background: #f3f4f6; border-radius: 4px; padding: 2px 6px; }
.tb-rp-row { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; padding: 3px 0; }
.tb-rp-row b { color: #1f2937; font-weight: 500; }
.tb-rp-follow {
  background: linear-gradient(90deg, #FBF3E8, #ffedd5); color: #9a3412;
  border-radius: 6px; padding: 8px 10px; font-size: 12px; margin: 8px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.tb-rp-follow button {
  background: #fff; border: 1px solid #fdba74; color: #ea580c;
  border-radius: 4px; padding: 3px 8px; font-size: 11px; cursor: pointer;
}
.tb-rp-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tb-rp-btns button {
  background: #f9fafb; border: 1px solid #e5e7eb; color: #4b5563;
  border-radius: 4px; padding: 4px 8px; font-size: 11px; cursor: pointer;
}
.tb-rp-btns button:hover { background: #f3f4f6; }
.tb-rp-h { font-weight: 600; font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.tb-rp-h span { font-size: 11px; color: #9ca3af; font-weight: 400; cursor: pointer; }
.tb-rp-kpi { display: flex; justify-content: space-around; text-align: center; }
.tb-rp-kpi b { display: block; font-size: 18px; color: #1f2937; }
.tb-rp-kpi span { font-size: 11px; color: #9ca3af; }
.tb-rp-tabs { display: flex; gap: 14px; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; margin-bottom: 8px; }
.tb-rp-tabs span { font-size: 13px; color: #6b7280; cursor: pointer; padding-bottom: 6px; }
.tb-rp-tabs span.active { color: #1f2937; font-weight: 600; border-bottom: 2px solid #2563eb; }
.tb-rp-search { display: flex; gap: 6px; margin-bottom: 10px; }
.tb-rp-search input { flex: 1; border: 1px solid #e5e7eb; border-radius: 4px; padding: 5px 8px; font-size: 12px; outline: none; }
.tb-rp-search button { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; cursor: pointer; }
.tb-rp-goods { display: flex; gap: 10px; }
.tb-rp-good {
  width: 80px; text-align: center; cursor: pointer;
}
.tb-rp-g-img {
  width: 80px; height: 80px; border-radius: 8px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 5px;
}
.tb-rp-g-title { font-size: 11px; color: #4b5563; line-height: 1.4; height: 32px; overflow: hidden; }
.tb-rp-g-price { font-size: 12px; color: #C45C4A; font-weight: 600; }
.tb-rp-g-tag { font-size: 10px; color: #9ca3af; }
.tb-rp-order-tabs { display: flex; gap: 10px; font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.tb-rp-order-tabs span { cursor: pointer; }
.tb-rp-order-tabs span.active { color: #1f2937; font-weight: 600; }
.tb-rp-order-item { border: 1px solid #f3f4f6; border-radius: 8px; padding: 10px; background: #fafafa; }
.tb-rp-oi-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.tb-rp-oi-status { color: #2563eb; background: #dbeafe; border-radius: 4px; padding: 1px 5px; }
.tb-rp-oi-no { color: #9ca3af; }
.tb-rp-oi-time { font-size: 11px; color: #9ca3af; margin-bottom: 6px; }
.tb-rp-oi-prod { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; margin-bottom: 8px; }
.tb-rp-oi-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.tb-rp-oi-actions button {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 4px;
  padding: 3px 7px; font-size: 11px; color: #4b5563; cursor: pointer;
}
.tb-rp-oi-more { font-size: 11px; color: #9ca3af; margin-top: 6px; }

@media (max-width: 1200px) {
  .wb-real-tb { grid-template-columns: 56px 160px 1fr 260px; }
  .tb-right-panel { padding: 8px; }
  .tb-rp-goods { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .wb-real-tb { grid-template-columns: 64px 1fr; grid-template-rows: 56px 1fr; }
  .tb-topbar { grid-column: 2 / 3; }
  .tb-session-panel { display: none; }
  .tb-right-panel { display: none; }
}

/* ============ 通用场景库（训练舱内练习入口） ============ */
.scn-entry { background: linear-gradient(135deg,#6366f1,#818cf8); color:#fff; border:none; }
.scn-entry:hover { filter:brightness(1.06); }
.scn-lib-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.45); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.scn-lib {
  width: min(1080px, 100%); background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.3);
  padding: 22px 24px 28px; max-height: 90vh; overflow-y: auto;
}
.scn-lib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.scn-lib-title { font-size: 18px; font-weight: 700; color: #1f2937; }
.scn-lib-sub { font-size: 13px; color: #6b7280; margin-top: 4px; max-width: 760px; line-height: 1.5; }
.scn-lib-close {
  flex: none; background: #F5E0DB; color: #A84838; border: 1px solid #F0D9D4;
  border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.scn-lib-close:hover { background: #F0D9D4; }
/* 场景库两栏 Tab：培训未上岗 / 上岗后 */
.scn-lib-tabs { display: flex; gap: 0; margin-top: 14px; border-bottom: 2px solid #e5e7eb; }
.scn-lib-tab {
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s; user-select: none;
}
.scn-lib-tab:hover { color: #4338ca; background: #f8f9fc; }
.scn-lib-tab.active { color: #4338ca; border-bottom-color: #6366f1; background: #eef2ff; }
.scn-lib-toolbar { margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.scn-search { flex: 1; padding: 12px 14px; font-size: 15px; border-radius: 10px; border: 1px solid #d1d5db; }
.scn-search:focus { outline: 2px solid #c7d2fe; border-color: #6366f1; }
.scn-rand-btn { white-space: nowrap; padding: 12px 20px; font-size: 15px; border-radius: 10px; font-weight: 600; }
.scn-lib-note { font-size: 12px; color: #6b7280; margin-top: 8px; }
.scn-lib-note b { color: #4338ca; }
.scn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scn-chip {
  background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; user-select: none;
}
.scn-chip:hover { background: #e0e7ff; }
.scn-results { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.scn-empty { color: #9ca3af; font-size: 14px; padding: 24px; text-align: center; }
.scn-big { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; background: #fafafa; }
.scn-big-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.scn-big-icon { font-size: 24px; }
.scn-big-label { font-size: 15px; font-weight: 700; color: #111827; }
.scn-big-desc { font-size: 12px; color: #6b7280; }
.scn-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.scn-sub { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.scn-sub-head { display: flex; justify-content: space-between; align-items: center; }
.scn-sub-name { font-weight: 700; color: #1f2937; font-size: 14px; }
.scn-sub-lv { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.scn-sub-lv.bronze { background: #EBF5F3; color: #047857; }
.scn-sub-lv.silver { background: #eff6ff; color: #1d4ed8; }
.scn-sub-lv.king { background: #FDF0ED; color: #A84838; }
.scn-sub-bg { font-size: 12.5px; color: #4b5563; line-height: 1.5; }
.scn-sub-goal { font-size: 12.5px; color: #4b5563; line-height: 1.5; }
.scn-sub-bg b, .scn-sub-goal b { color: #374151; }
.scn-sub-btn { margin-top: 4px; width: 100%; }

/* ================= 通用场景库管理（scenlib） ================= */
.sl-card-wrap { margin-top: 8px; }
.sl-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sl-toolbar .muted { font-size: 12.5px; }
.sl-body { display: flex; gap: 16px; height: calc(100vh - 200px); min-height: 420px; }
.sl-left { width: 220px; flex-shrink: 0; border-right: 1px solid #eef2f7; display: flex; flex-direction: column; min-height: 0; }
.sl-left-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; font-weight: 600; font-size: 13px; color: #475569; }
.sl-big-list { flex: 1; overflow-y: auto; min-height: 0; padding-right: 6px; }
.sl-big-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; transition: background .15s; }
.sl-big-item:hover { background: #f1f5f9; }
.sl-big-item.active { background: #eef2ff; box-shadow: inset 0 0 0 1px #c7d2fe; }
.sl-big-ic { font-size: 17px; }
.sl-big-name { flex: 1; font-size: 13.5px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-big-count { font-size: 11px; color: #94a3b8; background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.sl-right { flex: 1; overflow-y: auto; min-height: 0; padding-right: 6px; }
.sl-big-edit { }
.sl-big-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sl-big-bar-name { font-size: 15px; font-weight: 700; color: #111827; }
.sl-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.sl-card-title { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed #e2e8f0; }
.sl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sl-row label { width: 130px; flex-shrink: 0; font-size: 12.5px; color: #64748b; text-align: right; }
.sl-row .input { flex: 1; }
.sl-row.col { flex-direction: column; align-items: stretch; }
.sl-row.col label { width: auto; text-align: left; margin-bottom: 4px; }
.sl-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sl-sub-lab { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.sl-ta { width: 100%; min-height: 56px; resize: vertical; font-size: 13px; line-height: 1.5; }
.sl-ta-lines { min-height: 84px; }
.sl-subs { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.sl-sub { border: 1px solid #e2e8f0; border-radius: 14px; padding: 0; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.04); overflow: hidden; }
.sl-sub-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.sl-sub-idx { font-size: 12px; font-weight: 700; color: #94a3b8; width: 28px; text-align: center; flex-shrink: 0; }
.sl-sub-name-input { flex: 1; min-width: 140px; font-weight: 600; }
.sl-sub-level-select { width: 100px; flex-shrink: 0; }
.sl-sub-toggle { width: 30px; height: 30px; padding: 0; flex-shrink: 0; font-size: 14px; line-height: 1; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.sl-sub-toggle:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.sl-sub-collapsed-hint { font-size: 12px; color: #94a3b8; margin-left: auto; }
.sl-sub-body { padding: 14px; display: block; }
.sl-sub.collapsed .sl-sub-header { border-bottom-color: transparent; }
.sl-sub.collapsed .sl-sub-body { display: none; }
.sl-sub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sl-sub-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sl-sub-section { border: 1px solid #eef2f7; border-radius: 10px; padding: 12px; background: #fafbfc; }
.sl-sub-sec-title { font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 10px; padding-left: 6px; border-left: 3px solid #6366f1; }
.sl-sub-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sl-sub-row:last-child { margin-bottom: 0; }
.sl-sub-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.sl-sub-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sl-sub-lab { font-size: 12px; font-weight: 500; color: #475569; }
.sl-empty { color: #94a3b8; padding: 30px; text-align: center; }
/* 窄屏时小场景两列合并为单列 */
@media (max-width: 760px) {
  .sl-sub-cols { grid-template-columns: 1fr; }
  .sl-card-wrap .sl-body { max-width: 100% !important; }
}

/* 管理页细化按钮 */
.btn.tiny { padding: 2px 8px; font-size: 12px; line-height: 1.6; }
.btn.danger { background: #F5E0DB; color: #A84838; border-color: #F0D9D4; }
.btn.danger:hover { background: #F0D9D4; }

/* ===== 个人能力汇报 ===== */
.rp-card { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.rp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.14); }

/* ===== 个人能力汇报：风险与淘汰预警 ===== */
.rp-risk-alerts { margin: 16px 0; }
.rp-risk-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rp-risk-head h3 { margin: 0; font-size: 16px; color: #b91c1c; }
.rp-rule-btn { font-size: 12px; padding: 2px 10px; margin-left: auto; }

/* 规则编辑器 */
.rp-rule-editor { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px; margin: 14px 0; }
.rp-rule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rp-rule-head h4 { margin: 0; font-size: 16px; color: #334155; }
.rp-rule-section { margin-bottom: 16px; }
.rp-rule-section h5 { margin: 0 0 8px; font-size: 14px; color: #475569; }
.rp-rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.rp-rule-field { display: flex; align-items: center; gap: 6px; }
.rp-rule-field label { font-size: 13px; color: #64748b; white-space: nowrap; }
.rp-rule-input { width: 64px; text-align: center; font-size: 13px; padding: 4px 6px; }
.rp-rule-unit { font-size: 12px; color: #94a3b8; }
.rp-rule-actions { display: flex; gap: 8px; margin-top: 12px; }
.rp-section-hint { font-size: 12px; color: #94a3b8; }
.rp-risk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .rp-risk-cols { grid-template-columns: 1fr; } }
.rp-risk-col { border-radius: 12px; padding: 12px 14px; border: 1px solid #eef2f7; }
.rp-risk-col.elim { background: #fff5f5; border-color: #fecaca; }
.rp-risk-col.risk { background: #fffbeb; border-color: #fde68a; }
.rp-risk-col-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.rp-risk-col-title.elim-title { color: #dc2626; }
.rp-risk-col-title.risk-title { color: #475467; }
.rp-risk-list { display: flex; flex-direction: column; gap: 8px; }
.rp-risk-item { background: #fff; border-radius: 10px; padding: 9px 11px; border: 1px solid #f1f5f9; cursor: pointer; transition: box-shadow .15s; }
.rp-risk-item:hover { box-shadow: 0 6px 18px rgba(15,23,42,.10); }
.rp-risk-item.elim-item { border-left: 4px solid #ef4444; }
.rp-risk-item.risk-item { border-left: 4px solid #CBD5E1; }
.rp-risk-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rp-risk-score { font-size: 12px; color: #64748b; font-weight: 600; }
.rp-risk-reasons { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.rp-chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.rp-chip.elim-chip { background: #fee2e2; color: #b91c1c; }
.rp-chip.risk-chip { background: #f1f5f9; color: #475569; }
.rp-risk-empty { font-size: 13px; color: #16a34a; padding: 6px 2px; }
.rp-risk-banner { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14px; line-height: 1.6; }
.rp-risk-banner.elim { background: #fff5f5; border: 1px solid #fecaca; color: #b91c1c; }
.rp-risk-banner.risk { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.rp-risk-banner b { margin-right: 4px; }
.badge.rp-tag-elim { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge.rp-tag-risk { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.rp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rp-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#a78bfa,#6366f1); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; flex: 0 0 auto; }
.rp-avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.rp-name { font-size: 14px; }
.rp-metrics { display: flex; gap: 8px; }
.rp-m { flex: 1; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 8px; text-align: center; }
.rp-num { display: block; font-size: 20px; font-weight: 800; color: #4f46e5; }
.rp-lab { font-size: 11px; color: #94a3b8; }
.rp-verdict { margin-top: 10px; padding: 8px 10px; background: #fafafe; border-left: 3px solid #a78bfa; border-radius: 6px; font-size: 13px; color: #334155; }
.rp-foot { margin-top: 8px; text-align: right; font-size: 12px; }
.rp-detail-head { display: flex; align-items: center; gap: 16px; }
.rp-section { margin-top: 16px; }
.rp-section h3 { margin: 0 0 10px; font-size: 16px; }
.rp-line { color: #334155; margin-bottom: 8px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.rp-table th, .rp-table td { border: 1px solid #eef2f7; padding: 7px 10px; text-align: left; }
.rp-table th { background: #f8fafc; color: #64748b; font-weight: 600; }
.rp-grades { margin: 8px 0; }
.rp-sub { margin: 10px 0 6px; color: #64748b; font-size: 13px; }
.rp-retrain { margin: 10px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-retrain .btn.small { font-size: 12px; padding: 5px 10px; }
.rp-bars { display: flex; flex-direction: column; gap: 6px; }
.rp-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rp-bar-lab { flex: 0 0 200px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar-track { flex: 1; height: 10px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.rp-bar-fill { display: block; height: 100%; border-radius: 6px; }
.rp-bar-fill.ok { background: #3B9B8F; }
.rp-bar-fill.mid { background: #f59e0b; }
.rp-bar-fill.bad { background: #C45C4A; }
.rp-bar-num { flex: 0 0 44px; text-align: right; color: #64748b; }
.rp-strong { border-left: 4px solid #3B9B8F; }
.rp-weak { border-left: 4px solid #f59e0b; }
.rp-suggest { border-left: 4px solid #6366f1; }
.rp-list { margin: 0; padding-left: 20px; }
.rp-list li { margin: 6px 0; color: #334155; line-height: 1.55; }
.empty.sm { padding: 14px; }

/* 岗前/岗后对比表 */
.rp-compare-table th, .rp-compare-table td { text-align: center; }
.rp-compare-table td:first-child { text-align: left; font-weight: 500; }
.rp-col-pre { background: #f0f9ff; }
.rp-col-post { background: #f0fdf4; }
.rp-num-green { color: #16a34a; font-weight: 600; }
.rp-num-red { color: #dc2626; font-weight: 600; }
.rp-num-orange { color: #ea580c; font-weight: 600; }
.rp-num-gray { color: #94a3b8; }

/* ============ 今日任务（P0-1） ============ */
.today-empty { text-align: center; padding: 40px 20px; }
.today-empty-emoji { font-size: 42px; margin-bottom: 8px; }
.today-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.today-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid #eef1f6; border-radius: 12px;
  text-decoration: none; color: inherit; transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, border-color .18s;
}
.today-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.08); border-color: #c7d2fe; }
.today-item.overdue { border-color: #F0D9D4; background: #fff7f7; }
.today-item.done { opacity: .7; }
.today-icon { font-size: 22px; flex-shrink: 0; }
.today-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.today-title { font-weight: 600; font-size: 13px; color: #1e293b; }
.today-sub { font-size: 12px; color: #64748b; }
.today-due { font-size: 12px; font-weight: 600; color: #16a34a; flex-shrink: 0; }
.today-due.od { color: #C45C4A; }
.today-arrow { color: #cbd5e1; font-size: 20px; flex-shrink: 0; }
.today-improve { margin-bottom: 18px; }
.today-quick { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ 上线认证 + 八维雷达（P0-2 / P0-3） ============ */
.cert-card { border-left: 4px solid #6366f1; }
.cert-grid { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 6px 0 16px; }
.cert-radar { width: 240px; flex-shrink: 0; }
.cert-radar-svg { display: block; max-width: 240px; }
.cert-summary { flex: 1; min-width: 200px; }
.cert-score { display: flex; align-items: baseline; gap: 8px; }
.cert-score b { font-size: 40px; font-weight: 900; color: #4f46e5; line-height: 1; }
.cert-score span { color: #64748b; font-size: 13px; }
.cert-level {
  display: inline-block; margin: 10px 0 6px; padding: 4px 14px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: #fff; background: #6366f1;
}
.cert-level.l0 { background: #C45C4A; }
.cert-level.l1 { background: #f59e0b; }
.cert-level.l2 { background: #6366f1; }
.cert-level.l3 { background: #0ea5e9; }
.cert-level.l4 { background: #3B9B8F; }
.cert-level.l5 { background: #6366f1; }
.cert-advice { line-height: 1.6; }
.cert-gates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cert-gate { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.cert-gate.ok { background: #dcfce7; color: #15803d; }
.cert-gate.no { background: #F5E0DB; color: #A84838; }
.cert-dims { margin: 10px 0 16px; }
.cert-review { border-top: 1px dashed #e2e8f0; padding-top: 14px; }
.cert-review-head { font-weight: 600; font-size: 13px; margin-bottom: 10px; color: #334155; }
.cert-review-row { margin-bottom: 10px; }
.cert-review-row label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.cert-review-row .input, .cert-review-row textarea.input { width: 100%; }
.cert-saved { margin-top: 12px; }
.cert-paper {
  margin-top: 18px; border: 2px solid #6366f1; border-radius: 16px; padding: 26px;
  text-align: center; background: linear-gradient(160deg, #eef2ff, #fff);
}
.cert-paper-head { font-size: 17px; font-weight: 700; color: #4338ca; letter-spacing: 1px; }
.cert-paper-name { font-size: 28px; font-weight: 800; margin: 14px 0 4px; color: #1e293b; }
.cert-paper-level { font-size: 44px; font-weight: 900; color: #6366f1; margin: 4px 0; }
.cert-paper-meta { color: #64748b; font-size: 13px; }
.cert-paper-note { margin: 16px 0; color: #334155; line-height: 1.7; text-align: left; white-space: pre-wrap; }
.cert-paper-foot { margin-top: 22px; color: #64748b; text-align: left; font-size: 13px; }

/* ============ 错题本 + 专项复训 + 质检问题（P1） ============ */
.wb-stats { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.wb-stat {
  flex: 1; min-width: 120px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px;
  padding: 12px 14px; text-align: center;
}
.wb-stat.warn { background: #FBF3E8; border-color: #fed7aa; }
.wb-stat-num { display: block; font-size: 24px; font-weight: 800; color: #4f46e5; }
.wb-stat.warn .wb-stat-num { color: #ea580c; }
.wb-stat-label { font-size: 12px; color: #94a3b8; }

.wb-list { display: flex; flex-direction: column; gap: 12px; }
.wb-card, .task-card, .qc-card { border-left: 4px solid #a78bfa; }
.task-card { border-left-color: #6366f1; }
.qc-card { border-left-color: #f59e0b; }
.qc-card.major { border-left-color: #C45C4A; }

.wb-head { cursor: pointer; padding: 4px 2px; }
.wb-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.wb-meta { font-size: 12.5px; }
.wb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.wb-tag {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #475569;
  border: 1px solid #e2e8f0;
}
.wb-toggle { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.wb-body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.wb-readonly p { font-size: 13px; color: #334155; margin: 6px 0; line-height: 1.6; }
.wb-linked { margin-top: 8px; }
.wb-attach-list { margin-top: 4px; }
.wb-attach-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 6px; font-size: 13px; color: #334155;
}

.wb-reason-head { font-size: 13px; font-weight: 600; color: #475569; margin: 10px 0 6px; }
.wb-reason-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-reason {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; color: #64748b; transition: all .15s ease;
}
.wb-reason:hover { border-color: #c4b5fd; }
.wb-reason.on { background: #a78bfa; border-color: #a78bfa; color: #fff; font-weight: 600; }

/* 六维点评 */
.rating-summary { margin-left: auto; font-size: 13px; color: #64748b; }
.rating-summary b { color: #6366f1; font-size: 15px; }
.rating-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin: 8px 0 12px; }
.rating-dim { display: flex; flex-direction: column; gap: 4px; }
.rating-dim-label { font-size: 12.5px; color: #475569; font-weight: 600; }
.rating-select { width: 100%; }

/* 试岗数据 */
.trial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin: 8px 0 4px; }
.trial-input { width: 100%; }

/* 质检导入 */
.qc-file-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* 响应式 */
@media (max-width: 720px) {
  .rating-grid, .trial-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
 * 拼多多高保真工作台样式（参考真实拼多多商家客服工作台）
 * 三栏布局：左侧会话列表(260px) / 中间聊天区(flex) / 右侧订单面板(320px)
 * ============================================================ */
.pdd-workbench {
  display: flex;
  flex-direction: column;
  position: relative;
  height: calc(100vh - 60px);
  background: #f0f1f5;
  font-family: inherit;
  font-size: 13px;
  color: #333;
  overflow: hidden;
}

/* ---- 顶栏 ---- */
.pdd-topbar {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 180px 0 16px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}
.pdd-tb-left { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.pdd-tb-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #e02e24, #ff6b4a);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.pdd-tb-name { font-size: 15px; font-weight: 700; color: #222; }
.pdd-tb-tags { display: flex; gap: 5px; margin-top: 2px; }
.pdd-tag-green {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  background: #e7f7ee; color: #15803d; font-size: 11px; line-height: 18px;
}
.pdd-tag-gray {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  background: #f0f0f0; color: #666; font-size: 11px; line-height: 18px;
}
.pdd-tb-stats { display: flex; align-items: center; gap: 20px; flex: 1; }
.pdd-tb-stat { text-align: center; }
.pdd-tb-label { font-size: 11px; color: #999; margin-bottom: 2px; }
.pdd-tb-num { font-size: 16px; font-weight: 700; color: #222; }
.pdd-tb-expand {
  cursor: pointer; font-size: 12px; color: #999; padding: 3px 10px;
  border: 1px solid #ddd; border-radius: 4px;
}
.pdd-tb-expand:hover { background: #f5f5f5; }
.pdd-tb-right { display: flex; gap: 8px; }

.pdd-tb-btn {
  padding: 6px 14px; border-radius: 4px; font-size: 12px; cursor: pointer;
  border: none; color: #fff; background: #e02e24; font-weight: 500;
}
.pdd-tb-btn:hover { background: #c9251d; }
.pdd-tb-btn.ghost { background: #f0f0f0; color: #555; }
.pdd-tb-btn.ghost:hover { background: #e0e0e0; }

/* ---- 统一操作条：所有平台「结束 / 退出」按钮（固定在右上角，对齐拼多多风格）---- */
.cp-actions {
  position: absolute; top: 12px; right: 16px; z-index: 2500;
  display: flex; gap: 8px; align-items: center;
  pointer-events: auto;
}
.cp-btn {
  padding: 7px 16px; border-radius: 5px; font-size: 13px; cursor: pointer;
  border: none; color: #fff; background: #e02e24; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  position: relative; z-index: 1; pointer-events: auto;
}
.cp-btn:hover { background: #c9251d; }
.cp-btn.ghost { background: #f0f0f0; color: #555; box-shadow: none; }
.cp-btn.ghost:hover { background: #e0e0e0; }

/* ---- 搜索栏 ---- */
.pdd-search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: #fff; border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
.pdd-search-input-wrap {
  display: flex; align-items: center; flex: 1;
  border: 1px solid #ddd; border-radius: 20px; padding: 0 12px;
  background: #fafafa; transition: border-color .2s;
}
.pdd-search-input-wrap:focus-within { border-color: #e02e24; background: #fff; }
.pdd-search-icon { font-size: 14px; color: #999; margin-right: 6px; }
.pdd-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 7px 0; font-size: 13px; color: #333;
}
.pdd-search-input::placeholder { color: #bbb; }
.pdd-search-btn {
  padding: 4px 14px; border-radius: 14px; border: none;
  background: #e02e24; color: #fff; font-size: 12px; cursor: pointer;
}
.pdd-search-add {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #ddd; background: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #666; flex-shrink: 0;
}
.pdd-search-add:hover { border-color: #e02e24; color: #e02e24; }

/* ---- 主三栏布局 ---- */
.pdd-main { display: flex; flex: 1; overflow: hidden; }

/* ---- 左侧会话列表 ---- */
.pdd-sidebar {
  width: 240px; min-width: 240px;
  background: #fff; border-right: 1px solid #e8e8e8;
  display: flex; flex-direction: column; overflow: hidden;
}

/* 标签页 */
.pdd-sb-tabs {
  display: flex; padding: 0 12px; border-bottom: 1px solid #eee;
  background: #fafafa; flex-shrink: 0;
}
.pdd-sb-tab {
  padding: 10px 14px; font-size: 13px; color: #666; cursor: pointer;
  position: relative; transition: color .2s;
}
.pdd-sb-tab.active { color: #e02e24; font-weight: 600; }
.pdd-sb-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: #e02e24; border-radius: 1px;
}
.pdd-sb-tab:hover { color: #e02e24; }
.pdd-sb-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  background: #e02e24; color: #fff; border-radius: 8px;
  font-size: 10px; text-align: center; padding: 0 4px; margin-left: 4px;
}

/* 统计区 */
.pdd-sb-stats {
  padding: 8px 12px; border-bottom: 1px solid #eee; flex-shrink: 0;
  font-size: 12px; color: #666;
}
.pdd-sb-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; cursor: default;
}
.pdd-sb-icon { margin-right: 4px; }
.pdd-sb-icon.purple::before { content: "📋"; }
.pdd-sb-arrow { color: #ccc; font-size: 14px; }
.pdd-sb-highlight { color: #e02e24; font-weight: 700; }
.pdd-sb-detail { padding: 4px 0; cursor: pointer; color: #666; }
.pdd-sb-detail summary { list-style: none; outline: none; font-size: 12px; }
.pdd-sb-detail summary::-webkit-details-marker { display: none; }

/* 客户列表 */
.pdd-sb-list { flex: 1; overflow-y: auto; }
.pdd-sb-item {
  display: flex; align-items: center; padding: 10px 12px;
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.pdd-sb-item:hover { background: #f9f9f9; }
.pdd-sb-item.active { background: #fef3f1; border-left: 3px solid #e02e24; }
.pdd-sb-ava {
  width: 38px; height: 38px; border-radius: 50%;
  background: #f0f0f0; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; margin-right: 10px;
}
.pdd-sb-body { flex: 1; min-width: 0; }
.pdd-sb-name {
  font-size: 13px; font-weight: 500; color: #333;
  display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdd-sb-msg {
  font-size: 12px; color: #999; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdd-sb-time { font-size: 11px; color: #bbb; flex-shrink: 0; margin-left: 8px; }

/* 买家标签 */
.pdd-buyer-tag {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; line-height: 17px; white-space: nowrap;
}
.pdd-buyer-tag.blue   { background: #e8f4fd; color: #1677ff; }
.pdd-buyer-tag.orange { background: #fff7e6; color: #fa8c16; }
.pdd-buyer-tag.green  { background: #e7f7ee; color: #52c41a; }

/* ---- 中间聊天区域 ---- */
.pdd-chat-area {
  flex: 1; display: flex; flex-direction: column;
  background: #f0f1f5; min-width: 0; overflow: hidden;
}

/* 聊天头部 */
.pdd-chat-head {
  display: flex; align-items: center; padding: 10px 16px;
  background: #fff; border-bottom: 1px solid #e8e8e8; flex-shrink: 0; gap: 10px;
}
.pdd-ch-ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.pdd-ch-info { flex: 1; min-width: 0; }
.pdd-ch-name-row { display: flex; align-items: center; gap: 6px; }
.pdd-ch-name { font-size: 15px; font-weight: 600; color: #222; }
.pdd-ch-source {
  font-size: 12px; color: #999; margin-top: 2px; cursor: pointer;
}
.pdd-ch-tools { display: flex; gap: 12px; }
.pdd-ch-tool {
  font-size: 17px; cursor: pointer; color: #888; transition: color .2s;
}
.pdd-ch-tool:hover { color: #e02e24; }

/* 状态行 */
.pdd-chat-status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: #fafafa; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.pdd-status-label {
  font-size: 12px; color: #666; padding: 2px 10px;
  border: 1px solid #ddd; border-radius: 4px; background: #fff;
}
.pdd-status-dropdown {
  font-size: 12px; color: #999; cursor: pointer;
}

/* 等待计时条 */
.pdd-wait-bar { background: #fff8e6; border-color: #ffe58f; }

/* 聊天滚动区 */
.pdd-chat-scroll {
  flex: 1; overflow-y: auto; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.pdd-chat-inner { display: flex; flex-direction: column; gap: 8px; }

/* 消息气泡覆盖 */
.pdd-chat-inner .wb-bubble {
  max-width: 440px; padding: 11px 15px; border-radius: 8px;
  font-size: 14px; line-height: 1.6; word-break: break-word;
}
.pdd-chat-inner .wb-msg.left .wb-bubble {
  background: #fff; border: 1px solid #eee; color: #333;
  border-top-left-radius: 2px;
}
.pdd-chat-inner .wb-msg.right .wb-bubble {
  background: #e02e24; color: #fff; border: none;
  border-top-right-radius: 2px;
}
.pdd-chat-inner .wb-msg-who { font-size: 11px; color: #999; margin-bottom: 3px; }
.pdd-chat-inner .wb-msg-ava { width: 34px; height: 34px; font-size: 18px; }

/* 拼多多订单消息卡片 */
.pdd-order-msg {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
  padding: 12px 14px; flex-shrink: 0;
}
.pdd-om-title { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 10px; }
.pdd-om-product {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.pdd-om-img {
  width: 64px; height: 64px; border-radius: 6px;
  background: #f5f5f5; display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.pdd-om-info { flex: 1; min-width: 0; }
.pdd-om-shop { font-size: 11px; color: #999; }
.pdd-om-desc { font-size: 13px; color: #333; margin-top: 3px; line-height: 1.4; }
.pdd-om-price { font-size: 16px; font-weight: 700; color: #e02e24; flex-shrink: 0; }

.pdd-om-form { border-top: 1px dashed #eee; padding-top: 10px; }
.pdd-om-row { display: flex; align-items: baseline; padding: 4px 0; font-size: 12px; }
.pdd-om-lbl { color: #999; width: 70px; flex-shrink: 0; }
.pdd-om-val { color: #333; }
.pdd-om-val.red { color: #e02e24; }

.pdd-om-foot { margin-top: 8px; text-align: right; }
.pdd-om-waiting { font-size: 12px; color: #999; }

/* 输入区域 */
.pdd-chat-input {
  background: #fff; border-top: 1px solid #e8e8e8; flex-shrink: 0;
}
.pdd-input-tools {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px 4px; border-bottom: 1px solid #f5f5f5;
}
.pdd-tool-btn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; border-radius: 4px; color: #777;
  transition: background .15s;
}
.pdd-tool-btn:hover { background: #f0f0f0; }
.pdd-input-badge {
  margin-left: auto; width: 16px; height: 16px;
  background: #e02e24; color: #fff; border-radius: 8px;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}

.pdd-input-row { padding: 8px 14px; }
.pdd-textarea {
  width: 100%; height: 56px; border: none; outline: none; resize: none;
  font-size: 14px; line-height: 1.5; color: #333;
  font-family: inherit; background: transparent;
}
.pdd-textarea::placeholder { color: #bbb; }

.pdd-input-actions {
  display: flex; align-items: center; gap: 16px;
  padding: 6px 14px 10px;
}
.pdd-action-link {
  font-size: 12px; color: #1677ff; cursor: pointer; white-space: nowrap; margin-left: 4px;
}
.pdd-action-link.red { color: #e02e24; }
.pdd-action-link:hover { text-decoration: underline; }
.pdd-action-more { color: #999; cursor: pointer; font-size: 16px; }

.pdd-input-foot {
  padding: 4px 14px 8px; border-top: 1px solid #f5f5f5;
}
.pdd-hint-text { font-size: 12px; color: #bbb; }

/* ---- 右侧订单面板 ---- */
.pdd-right-panel {
  width: 300px; min-width: 300px;
  background: #fff; border-left: 1px solid #e8e8e8;
  display: flex; flex-direction: column; overflow: hidden;
}
.pdd-right-panel.has-agent-panel {
  width: 360px; min-width: 360px; overflow-y: auto;
}

/* 右侧标签页 */
.pdd-rp-tabs {
  display: flex; padding: 0 12px; border-bottom: 1px solid #eee;
  background: #fafafa; flex-shrink: 0; gap: 4px;
}
.pdd-rp-tab {
  padding: 10px 12px; font-size: 12px; color: #666; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.pdd-rp-tab.active { color: #e02e24; border-bottom-color: #e02e24; font-weight: 600; }
.pdd-rp-tab:hover { color: #e02e24; }

.pdd-rp-sub-tabs {
  display: flex; padding: 6px 12px; gap: 12px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.pdd-rp-sub {
  font-size: 12px; color: #888; cursor: pointer; padding: 3px 8px; border-radius: 4px;
}
.pdd-rp-sub.active { background: #e02e24; color: #fff; }

/* 订单状态筛选 */
.pdd-rp-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.pdd-rp-filter {
  font-size: 11px; color: #888; cursor: pointer; padding: 3px 8px;
  border-radius: 4px; transition: all .15s;
}
.pdd-rp-filter.active { background: #e02e24; color: #fff; }
.pdd-rp-filter:hover:not(.active) { background: #f0f0f0; }

/* 右侧内容滚动 */
.pdd-right-panel > div:nth-child(n+4) {
  overflow-y: auto; flex: 1;
}

/* 订单详情卡 */
.pdd-order-card { padding: 12px; }
.pdd-oc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.pdd-oc-status { font-size: 14px; font-weight: 600; color: #333; }
.pdd-oc-time { font-size: 11px; color: #999; }

.pdd-oc-product {
  display: flex; gap: 10px; padding: 10px;
  background: #fafafa; border-radius: 8px; margin-bottom: 10px;
}
.pdd-oc-img {
  width: 72px; height: 72px; border-radius: 6px;
  background: #f0f0f0; display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.pdd-oc-info { flex: 1; min-width: 0; }
.pdd-oc-title { font-size: 13px; color: #333; line-height: 1.4; }
.pdd-oc-specs { margin-top: 4px; }
.pdd-oc-spec { font-size: 11px; color: #888; display: block; margin-top: 2px; }
.pdd-oc-price-col { text-align: right; flex-shrink: 0; }
.pdd-oc-price { font-size: 18px; font-weight: 700; color: #e02e24; }
.pdd-oc-qty { font-size: 12px; color: #999; margin-top: 2px; }

.pdd-oc-detail { margin-bottom: 8px; }
.pdd-oc-row { display: flex; align-items: center; padding: 4px 0; font-size: 12px; gap: 6px; }
.pdd-oc-lbl { color: #999; width: 36px; flex-shrink: 0; }
.pdd-oc-val { color: #666; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-oc-copy { cursor: pointer; color: #bbb; flex-shrink: 0; }
.pdd-oc-copy:hover { color: #e02e24; }

.pdd-oc-price-breakdown {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-top: 1px dashed #eee; border-bottom: 1px dashed #eee;
  font-size: 12px; color: #666; margin-bottom: 8px;
}
.pdd-oc-price-breakdown b { color: #e02e24; }

.pdd-oc-shipping {
  display: flex; align-items: center; gap: 6px;
  padding: 8px; background: #f9f9f9; border-radius: 6px; margin-bottom: 8px;
  font-size: 12px; color: #666;
}
.pdd-oc-ship-icon { font-size: 16px; }
.pdd-oc-ship-info { flex: 1; }
.pdd-oc-deliver-time { font-size: 11px; color: #bbb; margin-bottom: 10px; }

.pdd-oc-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.pdd-oc-btn {
  padding: 5px 12px; border: 1px solid #ddd; border-radius: 4px;
  background: #fff; font-size: 12px; color: #555; cursor: pointer;
  transition: all .15s;
}
.pdd-oc-btn:hover { border-color: #e02e24; color: #e02e24; }

.pdd-oc-footer {
  font-size: 12px; color: #bbb; text-align: center; padding: 8px 0;
}

.pdd-rp-empty {
  padding: 24px; text-align: center; color: #bbb; font-size: 13px;
}

/* 知识库块 */
.pdd-kb-block { border-bottom: 1px solid #f0f0f0; }
.pdd-rp-card { padding: 12px; }
.pdd-rp-card-head { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; }
.pdd-kb-section { margin-bottom: 8px; }
.pdd-kb-section b { font-size: 12px; color: #666; display: block; margin-bottom: 4px; }
.pdd-kb-item {
  padding: 5px 8px; font-size: 12px; color: #444; cursor: pointer;
  border-radius: 4px; margin-bottom: 3px; background: #fafafa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdd-kb-item:hover { background: #fef3f1; color: #e02e24; }
.pdd-kb-item.warn { background: #FDF0ED; color: #991b1b; }
.pdd-kb-item.warn:hover { background: #F5E0DB; color: #991b1b; }

/* 训练提示块 */
.pdd-hint-block { border-top: 1px solid #f0f0f0; }
.pdd-hint-block summary {
  font-size: 13px; font-weight: 600; color: #333; cursor: pointer;
  padding: 8px 0; list-style: none; outline: none;
}
.pdd-hint-block summary::-webkit-details-marker { display: none; }
.pdd-hint-block p { font-size: 12px; color: #555; margin: 6px 0; line-height: 1.6; }
.pdd-mt { margin-top: 8px; }

/* 响应式：拼多多工作台 */
@media (max-width: 1100px) {
  .pdd-sidebar { width: 220px; min-width: 220px; }
  .pdd-right-panel { width: 280px; min-width: 280px; }
}
@media (max-width: 900px) {
  .pdd-sidebar { display: none; }
  .pdd-right-panel { width: 260px; min-width: 260px; }
}
@media (max-width: 680px) {
  .pdd-right-panel { display: none; }
  .pdd-tb-stats { display: none; }
  .pdd-search-bar { display: none; }
}

/* ============================================================
 * 京东（京麦）高保真工作台样式
 * 主色：京东红 #e33e33 / 背景：#f5f5f5 / 文字：#333
 * ============================================================ */
.jd-workbench { width:100%; height:calc(100vh - 60px); position:relative; background:#f5f5f5; font-family:inherit; font-size:13px; color:#333; overflow:hidden; border-radius:8px; display:flex; flex-direction:column; }

/* ---- 顶栏 ---- */
.jd-topbar { background:#fff; border-bottom:1px solid #e0e0e0; padding-right:180px; }
.jd-shops { display:flex; align-items:center; gap:4px; padding:4px 12px; background:#fafafa; border-bottom:1px solid #eee; flex-wrap:wrap; }
.jd-shop-tab { padding:3px 10px; border-radius:12px; font-size:12px; color:#666; cursor:pointer; white-space:nowrap; display:flex; align-items:center; gap:4px; }
.jd-shop-tab:hover { background:#e8e8e8; }
.jd-shop-active { background:#e33e33; color:#fff; }
.jd-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.jd-dot-on { background:#52c41a; }
.jd-shop-add { padding:3px 8px; color:#999; cursor:pointer; font-size:16px; }
.jd-shop-info { display:flex; align-items:center; gap:10px; padding:5px 12px; }
.jd-brand-tag { background:#e33e33; color:#fff; padding:1px 8px; border-radius:3px; font-size:11px; font-weight:700; }
.jd-shop-name { font-size:14px; }
.jd-status-list { display:flex; gap:8px; margin-left:auto; font-size:12px; color:#999; }
.jd-st.on { color:#52c41a; }
.jd-search-row { display:flex; align-items:center; padding:6px 12px; gap:12px; border-top:1px solid #eee; flex-wrap:wrap; }
.jd-search-box { display:flex; flex:1; max-width:360px; border:1px solid #ddd; border-radius:4px; overflow:hidden; }
.jd-search-box input { flex:1; border:none; outline:none; padding:5px 10px; font-size:12px; background:transparent; }
.jd-search-box button { border:none; background:#f5f5f5; padding:5px 12px; border-left:1px solid #ddd; cursor:pointer; }
.jd-stats-row { display:flex; gap:16px; font-size:12px; color:#666; white-space:nowrap; }
.jd-stats-row b { color:#e33e33; }
.jd-assist-panel { border-top:1px solid #eee; background:#fff; }
.jd-assist-head { display:flex; justify-content:space-between; padding:6px 12px; font-size:12px; border-bottom:1px solid #eee; }
.jd-assist-head span { color:#999; cursor:pointer; }
.jd-assist-tabs { display:flex; gap:4px; padding:6px 12px; flex-wrap:wrap; }
.jd-at { padding:3px 10px; border-radius:12px; font-size:12px; color:#666; cursor:pointer; }
.jd-at.active { background:#e33e33; color:#fff; }
.jd-at:hover:not(.active) { background:#f0f0f0; }

/* ---- 三栏主体布局 ---- */
.jd-main-body { display:flex; flex:1; min-height:0; overflow:hidden; }

/* ---- 左侧会话列表 ---- */
.jd-sidebar { width:200px; min-width:200px; background:#fff; border-right:1px solid #e0e0e0; display:flex; flex-direction:column; }
.jd-fn-icons { display:flex; gap:0; border-bottom:1px solid #eee; padding:6px 8px; }
.jd-fi { width:32px; height:28px; display:flex; align-items:center; justify-content:center; font-size:12px; cursor:pointer; color:#999; border-radius:4px; }
.jd-fi:hover { background:#f0f0f0; }
.jd-fi.active { color:#1890ff; background:#e6f7ff; font-weight:700; }
.jd-consult-type { display:flex; align-items:center; padding:8px 12px; gap:8px; font-size:12px; border-bottom:1px solid #eee; cursor:pointer; }
.jd-ct-label { font-weight:600; color:#333; }
.jd-ct-arrow { color:#999; }
.jd-ct-extra { color:#999; margin-left:auto; font-size:11px; }
.jd-cust-list { flex:1; overflow-y:auto; }
.jd-cust-item { display:flex; padding:8px 10px; gap:8px; cursor:pointer; border-bottom:1px solid #f5f5f5; transition:background .15s; }
.jd-cust-item:hover { background:#f9f9f9; }
.jd-cust-active { background:#e6f7ff; border-left:3px solid #1890ff; }
.jd-cust-avatar { width:36px; height:36px; border-radius:50%; background:#f0f0f0; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.jd-cust-body { flex:1; min-width:0; }
.jd-cust-name-row { display:flex; justify-content:space-between; margin-bottom:2px; }
.jd-cust-name { font-size:13px; font-weight:600; color:#333; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jd-cust-time { font-size:11px; color:#999; flex-shrink:0; }
.jd-cust-msg { font-size:12px; color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jd-cust-tag { color:#e33e33; }
.jd-sidebar-foot { padding:8px 12px; border-top:1px solid #eee; font-size:12px; color:#666; cursor:pointer; }

/* ---- 中间聊天区 ---- */
.jd-chat { flex:1; display:flex; flex-direction:column; background:#f5f5f5; min-width:0; overflow:hidden; }
.jd-buyer-header { display:flex; align-items:center; gap:8px; padding:6px 12px; background:#fff; border-bottom:1px solid #e0e0e0; }
.jd-bh-avatar { width:28px; height:28px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:14px; }
.jd-bh-name { font-size:13px; font-weight:600; }
.jd-bh-tags { display:flex; gap:6px; margin-left:auto; align-items:center; }
.jd-bh-rate { font-size:10px; color:#e33e33; background:#fff0f0; padding:1px 6px; border-radius:8px; }
.jd-bh-plus { font-size:9px; color:#f5a623; border:1px solid #f5a623; padding:0 4px; border-radius:8px; font-weight:700; }
.jd-bh-set { color:#999; cursor:pointer; }

/* 信息面板 — 紧凑模式 */
.jd-info-panel { background:#fff; margin:4px 10px; padding:6px 10px; border-radius:6px; border:1px solid #eee; font-size:11px; }
.jd-ip-row { display:flex; gap:10px; margin-bottom:2px; flex-wrap:wrap; }
.jd-ip-l { color:#999; white-space:nowrap; font-size:10px; }
.jd-ip-v { color:#333; font-size:11px; }

/* 操作按钮组 — 紧凑 */
.jd-action-btns { display:flex; gap:6px; padding:4px 10px; flex-wrap:wrap; }
.jd-ab { padding:3px 10px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; font-size:11px; cursor:pointer; color:#333; }
.jd-ab:hover:not(:disabled) { color:#e33e33; border-color:#e33e33; }
.jd-ab:disabled { opacity:.5; cursor:not-allowed; }

/* 订单卡 — 紧凑模式 */
.jd-order-card { margin:4px 10px; background:#fff; border:1px solid #e8e8e8; border-radius:6px; padding:6px 8px; display:flex; gap:8px; }
.jd-oc-left { display:flex; gap:8px; flex:1; min-width:0; }
.jd-oc-img { width:50px; height:50px; border-radius:6px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.jd-oc-detail { flex:1; min-width:0; }
.jd-oc-title { font-size:12px; color:#333; line-height:1.3; margin-bottom:2px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.jd-oc-sku { font-size:10px; color:#999; margin-bottom:2px; }
.jd-oc-price-row { margin-bottom:2px; }
.jd-oc-del { text-decoration:line-through; color:#999; font-size:10px; margin-right:6px; }
.jd-oc-off { color:#e33e33; font-size:10px; }
.jd-oc-final { color:#e33e33; font-size:14px; font-weight:700; margin:2px 0; }
.jd-oc-store { font-size:10px; color:#999; margin-bottom:2px; }
.jd-oc-tags { display:flex; gap:3px; flex-wrap:wrap; }
.jd-ot { font-size:9px; padding:1px 5px; border-radius:8px; background:#f0f0f0; color:#666; }
.jd-ot.blue { background:#e6f7ff; color:#1890ff; }
.jd-oc-right { display:flex; flex-direction:column; gap:3px; flex-shrink:0; justify-content:center; }
.jd-oc-btn { padding:3px 8px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; font-size:10px; cursor:pointer; white-space:nowrap; }
.jd-oc-btn:hover:not(:disabled) { color:#e33e33; border-color:#e33e33; }
.jd-oc-btn:disabled { opacity:.5; cursor:not-allowed; }

/* 消息区 — 保底高度，确保对话可见 */
.jd-msg-area { flex:1; min-height:220px; overflow-y:auto; padding:8px 12px; display:flex; flex-direction:column; gap:6px; }
.jd-msg { display:flex; gap:6px; max-width:85%; }
.jd-msg-cust { align-self:flex-start; }
.jd-msg-agent { align-self:flex-end; flex-direction:row-reverse; }
.jd-msg-avatar { width:26px; height:26px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.jd-msg-body { display:flex; flex-direction:column; }
.jd-msg-name { font-size:10px; color:#999; margin-bottom:1px; }
.jd-msg-agent .jd-msg-name { text-align:right; }
.jd-msg-bubble { padding:8px 12px; border-radius:8px; font-size:13px; line-height:1.5; word-break:break-word; }
.jd-msg-cust .jd-msg-bubble { background:#fff; border:1px solid #eee; border-top-left-radius:2px; }
.jd-msg-agent .jd-msg-bubble { background:#95ec69; border-top-right-radius:2px; }
.jd-msg-time { font-size:10px; color:#ccc; margin-top:2px; }
.jd-msg-agent .jd-msg-time { text-align:right; }

/* 表情工具栏 — 紧凑 */
.jd-emoji-bar { display:flex; gap:3px; padding:4px 12px; flex-wrap:wrap; border-top:1px solid #eee; background:#fff; }
.jd-emoji { font-size:16px; cursor:pointer; padding:1px 3px; border-radius:4px; }
.jd-emoji:hover { background:#f0f0f0; }
.jd-tool-btn { font-size:13px; color:#666; cursor:pointer; padding:2px 4px; border-radius:4px; }
.jd-tool-btn:hover { background:#f0f0f0; }

/* 输入区 — 紧凑 */
.jd-input-area { padding:5px 10px; background:#fff; border-top:1px solid #e0e0e0; }
.jd-input { width:100%; border:1px solid #ddd; border-radius:4px; padding:6px 10px; font-size:13px; resize:none; outline:none; box-sizing:border-box; font-family:inherit; }
.jd-input:focus { border-color:#e33e33; }
.jd-input-foot { display:flex; justify-content:space-between; align-items:center; margin-top:4px; }
.jd-send-btn { background:#e33e33; color:#fff; border:none; padding:4px 18px; border-radius:4px; cursor:pointer; font-size:12px; font-weight:600; }
.jd-send-btn:hover { background:#c92e24; }
.jd-input-tools { display:flex; gap:8px; }
.jd-it { font-size:16px; color:#999; cursor:pointer; padding:2px 4px; }
.jd-it:hover { color:#e33e33; }

/* ---- 右侧订单面板 ---- */
.jd-right-panel { width:300px; min-width:300px; background:#fff; border-left:1px solid #e0e0e0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:10px; font-size:13px; }
.jd-right-panel.has-agent-panel { width:360px; min-width:360px; }

/* 京东客服助手右栏：基础版与智能体版共用，智能服务追加在内容底部。 */
.jd-assistant-right { padding: 0; gap: 0; background: #f5f5f5; }
.jd-ar-title { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.jd-ar-title b { font-size: 14px; color: #111827; }
.jd-ar-title span { color: #94a3b8; }
.jd-ar-title i { margin-left: auto; color: #94a3b8; font-style: normal; font-size: 17px; }
.jd-ar-tabs { display: flex; gap: 18px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e5e7eb; white-space: nowrap; overflow: hidden; }
.jd-ar-tabs span { padding: 10px 0 8px; color: #374151; font-size: 12px; }
.jd-ar-tabs span.active { color: #2563eb; border-bottom: 2px solid #2563eb; font-weight: 700; }
.jd-ar-customer { margin: 10px; padding: 12px; border-radius: 8px; background: #fff; }
.jd-ar-name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.jd-ar-name b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.jd-ar-name span { color: #94a3b8; }
.jd-ar-name em { padding: 2px 5px; border-radius: 3px; background: #22c55e; color: #fff; font-size: 10px; font-style: normal; }
.jd-ar-name strong { padding: 2px 5px; border-radius: 3px; background: #f59e0b; color: #fff; font-size: 10px; }
.jd-ar-name a { margin-left: auto; color: #2563eb; font-size: 11px; }
.jd-ar-info { padding: 10px; border-radius: 6px; background: #fafafa; color: #475569; line-height: 1.8; }
.jd-ar-info span { color: #94a3b8; }
.jd-ar-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.jd-ar-actions button { padding: 5px 9px; border: 1px solid #3b82f6; border-radius: 3px; background: #fff; color: #2563eb; font-size: 11px; cursor: pointer; }
.jd-ar-orders { flex: 1 0 360px; padding: 0 10px 14px; background: #f5f5f5; }
.jd-ar-order-head { display: flex; align-items: center; gap: 20px; padding: 8px 0; }
.jd-ar-order-head b { padding-bottom: 5px; border-bottom: 2px solid #2563eb; font-size: 15px; }
.jd-ar-order-head span { color: #64748b; font-size: 14px; }
.jd-ar-order-filters { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 11px; white-space: nowrap; }
.jd-ar-order-filters b { color: #2563eb; }
.jd-ar-order-filters label { margin-left: auto; padding: 7px 9px; border-radius: 4px; background: #fff; color: #b0b7c3; }
.jd-ar-empty { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; }
.jd-ar-empty div { position: relative; font-size: 54px; filter: grayscale(.65); }
.jd-ar-empty div i { position: absolute; right: 0; bottom: 2px; color: #3b82f6; font-size: 20px; font-style: normal; }
.jd-ar-empty p { margin-top: 8px; }
.jd-assistant-right.has-agent-panel .tb-agent-panel { margin: 0 10px 12px; width: calc(100% - 20px); }

/* 客户概览卡 */
.jd-rp-card { border:1px solid #e8e8e8; border-radius:6px; overflow:hidden; }
.jd-rp-c-head { display:flex; align-items:center; gap:6px; padding:8px 10px; background:#fafafa; border-bottom:1px solid #eee; flex-wrap:wrap; }
.jd-rp-c-name { font-size:15px; font-weight:600; }
.jd-rp-c-badge { font-size:11px; color:#e33e33; background:#fff0f0; padding:2px 8px; border-radius:8px; }
.jd-rp-c-plus { font-size:11px; color:#f5a623; border:1px solid #f5a623; padding:0 4px; border-radius:8px; font-weight:700; }
.jd-rp-c-set { margin-left:auto; color:#999; cursor:pointer; font-size:12px; }
.jd-rp-c-body { padding:8px 10px; }
.jd-rp-row { display:flex; gap:8px; margin-bottom:4px; font-size:13px; flex-wrap:wrap; line-height:1.6; }
.jd-rp-row span:first-child { color:#999; }

/* 操作按钮 */
.jd-rp-actions { display:flex; gap:6px; flex-wrap:wrap; }
.jd-rp-btn { padding:5px 12px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; font-size:12px; cursor:pointer; }
.jd-rp-btn:hover:not(:disabled) { color:#e33e33; border-color:#e33e33; }
.jd-rp-btn:disabled { opacity:.5; cursor:not-allowed; }

/* 商品推荐 */
.jd-rp-rec { border:1px solid #e8e8e8; border-radius:6px; padding:8px; display:flex; gap:8px; }
.jd-rp-rec-img { width:60px; height:60px; border-radius:6px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
.jd-rp-rec-info { flex:1; min-width:0; }
.jd-rp-rec-title { font-size:13px; color:#333; line-height:1.4; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.jd-rp-rec-sku { font-size:11px; color:#999; margin-bottom:4px; }
.jd-rp-rec-price { margin-bottom:3px; }
.jd-rp-rec-del { text-decoration:line-through; color:#999; font-size:11px; margin-right:6px; }
.jd-rp-rec-off { color:#e33e33; font-size:11px; }
.jd-rp-rec-final { color:#e33e33; font-size:16px; font-weight:700; }
.jd-rp-rec-store { font-size:11px; color:#999; margin-bottom:4px; }
.jd-rp-rec-tags { display:flex; gap:3px; flex-wrap:wrap; margin-bottom:4px; }
.jd-rt { font-size:9px; padding:1px 5px; border-radius:6px; background:#f0f0f0; color:#666; }
.jd-rt.blue { background:#e6f7ff; color:#1890ff; }
.jd-rp-rec-actions { display:flex; gap:4px; flex-wrap:wrap; }
.jd-rp-rec-btn { padding:3px 8px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; font-size:10px; cursor:pointer; }
.jd-rp-rec-btn:disabled { opacity:.5; cursor:not-allowed; }

/* 订单历史 */
.jd-rp-orders { border:1px solid #e8e8e8; border-radius:6px; overflow:hidden; }
.jd-rp-o-tabs { display:flex; border-bottom:1px solid #eee; }
.jd-rp-ot { flex:1; text-align:center; padding:7px; font-size:13px; cursor:pointer; color:#666; }
.jd-rp-ot.active { color:#e33e33; font-weight:600; border-bottom:2px solid #e33e33; }
.jd-rp-o-filters { display:flex; gap:6px; padding:8px; flex-wrap:wrap; align-items:center; }
.jd-rp-of { font-size:12px; padding:3px 10px; border-radius:10px; cursor:pointer; color:#666; }
.jd-rp-of.active { background:#e33e33; color:#fff; }
.jd-rp-o-search { flex:1; min-width:0; border:1px solid #ddd; border-radius:12px; padding:3px 8px; font-size:11px; outline:none; }

/* 训练提示块覆盖 */
.jd-hint { margin:8px 10px; border-radius:6px; }

/* ---- 响应式 ---- */
@media (max-width: 1200px) {
  .jd-right-panel { width:250px; min-width:250px; }
}
@media (max-width: 1000px) {
  .jd-sidebar { display: none; }
}
@media (max-width: 768px) {
  .jd-right-panel { display: none; }
  .jd-stats-row { display: none; }
  .jd-assist-panel { display: none; }
}

/* ============================================================
 * 抖音（飞鸽）高保真工作台样式
 * 主色：抖音蓝 #1a73e8 / 背景：#f0f1f5 / 强调：橙 #ff6b00
 * ============================================================ */
.dy-workbench { width:100%; height:calc(100vh - 60px); position:relative; background:#f0f1f5; font-family:inherit; font-size:13px; color:#333; overflow:hidden; border-radius:8px; display:flex; flex-direction:column; }

/* ---- 顶栏 ---- */
.dy-topbar { background:#fff; border-bottom:1px solid #e0e0e0; flex-shrink:0; padding-right:180px; }
.dy-shop-row { display:flex; align-items:center; gap:8px; padding:5px 14px; }
.dy-shop-dot { width:8px; height:8px; border-radius:50%; background:#52c41a; }
.dy-shop-name { font-size:14px; font-weight:600; }
.dy-stats-row { display:flex; gap:20px; padding:2px 14px 0; font-size:11px; color:#999; }
.dy-stats-nums { display:flex; gap:24px; padding:2px 14px 4px; }
.dy-sn { font-size:16px; font-weight:700; color:#333; }
.dy-sn small { font-size:10px; color:#999; font-weight:400; margin-left:2px; }
.dy-search-bar { padding:4px 14px 8px; }
.dy-search-bar input { width:100%; max-width:480px; border:1px solid #ddd; border-radius:18px; padding:5px 16px; font-size:12px; outline:none; box-sizing:border-box; background:#fafafa; }
.dy-search-bar input:focus { border-color:#1a73e8; background:#fff; }
.dy-top-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:4px 14px 6px; border-top:1px solid #f0f0f0; font-size:13px; }
.dy-tt-help { color:#1a73e8; font-size:12px; cursor:pointer; }
.dy-tt-icon { cursor:pointer; color:#999; font-size:14px; }

/* ---- 三栏主体 ---- */
.dy-main-body { display:flex; flex:1; min-height:0; overflow:hidden; }

/* ---- 左侧导航 + 会话列表 ---- */
.dy-sidebar { width:190px; min-width:190px; background:#fff; border-right:1px solid #e0e0e0; display:flex; flex-direction:column; }
.dy-nav { display:flex; flex-direction:column; padding:8px 0; border-bottom:1px solid #eee; }
.dy-nav-item { display:flex; flex-direction:column; align-items:center; padding:8px 0; cursor:pointer; color:#666; font-size:11px; gap:3px; transition:all .15s; }
.dy-nav-item:hover { background:#f5f5f5; }
.dy-nav-item.active { color:#1a73e8; background:#e8f0fe; }
.dy-nav-item.active::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:#1a73e8; border-radius:0 2px 2px 0; }
.dy-nav-icon { font-size:20px; position:relative; }
.dy-nav-item.active .dy-nav-icon::after { content:''; position:absolute; top:-2px; right:-4px; width:6px; height:6px; background:#ff4d4f; border-radius:50%; }
.dy-ai-panel { padding:10px; text-align:center; border-bottom:1px solid #eee; }
.dy-ai-badge { display:inline-block; width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; font-weight:700; line-height:36px; font-size:14px; }
.dy-ai-body { margin-top:4px; }
.dy-ai-dot { display:inline-block; width:6px; height:6px; background:#52c41a; border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.dy-session-head { display:flex; justify-content:space-between; align-items:center; padding:8px 10px; font-size:12px; border-bottom:1px solid #eee; }
.dy-sh-filter { font-size:11px; color:#1a73e8; cursor:pointer; }
.dy-sess-filters { display:flex; gap:6px; padding:6px 10px; flex-wrap:wrap; }
.dy-sf { font-size:11px; padding:2px 8px; border-radius:10px; color:#666; cursor:pointer; }
.dy-sf:hover { background:#f0f0f0; }
.dy-pending-tag { margin:0 10px; padding:3px 10px; font-size:11px; color:#ff6b00; background:#fff7e6; border-radius:10px; }
.dy-cust-list { flex:1; overflow-y:auto; }
.dy-cust-item { display:flex; padding:8px 10px; gap:8px; cursor:pointer; border-bottom:1px solid #f5f5f5; transition:background .15s; }
.dy-cust-item:hover { background:#f9f9f9; }
.dy-cust-avatar { width:34px; height:34px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.dy-cust-body { flex:1; min-width:0; }
.dy-cust-name-row { display:flex; align-items:center; gap:6px; margin-bottom:2px; }
.dy-cust-name { font-size:13px; font-weight:600; }
.dy-cust-note { font-size:10px; color:#1a73e8; background:#e8f0fe; padding:0 5px; border-radius:8px; }
.dy-cust-time { font-size:11px; color:#999; margin-left:auto; }
.dy-cust-preview { font-size:12px; color:#888; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dy-sidebar-foot { padding:8px 10px; font-size:11px; color:#999; border-top:1px solid #eee; text-align:center; }

/* ---- 中间聊天区 ---- */
.dy-chat { flex:1; display:flex; flex-direction:column; background:#f0f1f5; min-width:0; }
.dy-buyer-header { display:flex; align-items:center; gap:8px; padding:10px 14px; background:#fff; border-bottom:1px solid #e0e0e0; flex-shrink:0; }
.dy-bh-avatar { width:32px; height:32px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:16px; }
.dy-bh-name { font-size:14px; font-weight:600; }
.dy-bh-note { font-size:11px; color:#1a73e8; cursor:pointer; margin-left:4px; }
.dy-bh-icons { display:flex; gap:8px; margin-left:auto; }
.dy-bhi { font-size:15px; color:#999; cursor:pointer; }
.dy-bhi:hover { color:#333; }
.dy-bhi.warning { color:#faad14; }
.dy-bhi.power { color:#ff4d4f; }

/* 订单信息条 */
.dy-order-bar { background:#fff; margin:0 10px; padding:6px 12px; border-radius:6px; font-size:11px; color:#666; display:flex; align-items:center; gap:8px; flex-wrap:wrap; flex-shrink:0; border:1px solid #eee; }
.dy-ob-label { color:#1a73e8; font-weight:600; }
.dy-ob-item b { color:#333; }
.dy-ob-more { color:#999; cursor:pointer; margin-left:auto; }

/* 消息区 */
.dy-msg-area { flex:1; overflow-y:auto; padding:10px 14px; display:flex; flex-direction:column; gap:8px; }
.dy-msg { display:flex; gap:8px; max-width:82%; }
.dy-msg-cust { align-self:flex-start; }
.dy-msg-agent { align-self:flex-end; flex-direction:row-reverse; }
.dy-m-avatar { width:30px; height:30px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.dy-m-body { display:flex; flex-direction:column; }
.dy-m-name { font-size:11px; color:#999; margin-bottom:2px; }
.dy-m-name.agent { color:#1a73e8; }
.dy-msg-agent .dy-m-name { text-align:right; }
.dy-m-bubble { padding:10px 14px; border-radius:8px; font-size:14px; line-height:1.6; word-break:break-word; }
.dy-msg-cust .dy-m-bubble { background:#fff; border:1px solid #eee; border-top-left-radius:2px; }
.dy-msg-agent .dy-m-bubble { background:#95ec69; border-top-right-radius:2px; }
.dy-m-bubble.sys { background:#f0f0f0; color:#666; font-size:12px; }
.dy-m-time { font-size:10px; color:#ccc; margin-top:2px; }
.dy-msg-agent .dy-m-time { text-align:right; }
.dy-msg-system { align-self:center; }
.dy-ms-tag { font-size:11px; color:#ff6b00; background:#fff7e6; padding:2px 10px; border-radius:10px; }

/* 快捷短语建议 */
.dy-quick-reply { padding:0 14px; flex-shrink:0; }
.dy-quick-reply span { display:inline-block; padding:4px 12px; background:#e8f0fe; color:#1a73e8; border-radius:14px; font-size:12px; cursor:pointer; }
.dy-quick-reply span:hover { background:#d2e3fc; }

/* 工具栏 */
.dy-toolbar { display:flex; gap:6px; padding:6px 14px; flex-wrap:wrap; border-top:1px solid #eee; background:#fff; flex-shrink:0; }
.dy-tool-btn { font-size:18px; cursor:pointer; padding:2px 5px; border-radius:4px; }
.dy-tool-btn:hover { background:#f0f0f0; }
.dy-tool-toggle { margin-left:auto; font-size:11px; color:#999; padding:4px 10px; border:1px solid #ddd; border-radius:12px; cursor:pointer; }

/* 输入区 */
.dy-input-area { display:flex; gap:8px; padding:8px 14px 10px; background:#fff; border-top:1px solid #e0e0e0; align-items:flex-end; flex-shrink:0; }
.dy-input-wrap { flex:1; position:relative; }
.dy-input { width:100%; border:1px solid #ddd; border-radius:8px; padding:8px 60px 8px 10px; font-size:13px; resize:none; outline:none; box-sizing:border-box; font-family:inherit; line-height:1.4; }
.dy-input:focus { border-color:#1a73e8; }
.dy-char-count { position:absolute; right:10px; bottom:6px; font-size:11px; color:#ccc; }
.dy-send-btn { background:#1a73e8; color:#fff; border:none; padding:7px 22px; border-radius:6px; cursor:pointer; font-size:13px; font-weight:600; white-space:nowrap; flex-shrink:0; }
.dy-send-btn:hover { background:#1557b0; }

/* 输入区 */
.dy-input-area { padding:6px 14px 10px; background:#fff; border-top:1px solid #e0e0e0; flex-shrink:0; }
.dy-input-box { width:100%; border:1px solid #ddd; border-radius:18px; padding:8px 14px; font-size:13px; resize:none; outline:none; font-family:inherit; box-sizing:border-box; }
.dy-input-box:focus { border-color:#1a73e8; }

/* ---- 右侧订单面板 ---- */
.dy-right-panel { width:280px; min-width:280px; background:#fff; border-left:1px solid #e0e0e0; overflow-y:auto; display:flex; flex-direction:column; flex-shrink:0; }
.dy-right-panel.has-agent-panel { width:360px; min-width:360px; }

/* 非淘宝平台的智能体固定显示在右侧栏顶部，并提供独立滚动区。 */
.pdd-right-panel.has-agent-panel > .tb-agent-panel,
.jd-right-panel.has-agent-panel > .tb-agent-panel,
.dy-right-panel.has-agent-panel > .tb-agent-panel {
  flex: 0 0 auto; width: 100%; min-height: 390px;
  box-sizing: border-box; margin: 10px 0 0; overflow: hidden;
  border: 1px solid #dbe5f3; border-radius: 8px; background: #fff;
}
.has-agent-panel .tb-smart-thread {
  height: 300px; max-height: 300px; overflow-y: scroll; scrollbar-gutter: stable;
}
.has-agent-panel .tb-smart-thread::-webkit-scrollbar { width: 7px; }
.has-agent-panel .tb-smart-thread::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.has-agent-panel .tb-smart-thread::-webkit-scrollbar-track { background: #f8fafc; }

/* Tab 栏 */
.dy-rp-tabs { display:flex; align-items:center; border-bottom:1px solid #eee; padding:0 10px; flex-shrink:0; }
.dy-rpt { padding:10px 14px; font-size:13px; cursor:pointer; color:#666; border-bottom:2px solid transparent; }
.dy-rpt.active { color:#1a73e8; font-weight:600; border-bottom-color:#1a73e8; }
.dy-rp-settings { margin-left:auto; color:#999; cursor:pointer; padding:10px 6px; }

/* 商品提示 */
.dy-rp-goods-hint { display:flex; justify-content:space-between; padding:8px 12px; font-size:12px; color:#999; border-bottom:1px solid #f5f5f5; }
.dy-rp-load { color:#1a73e8; cursor:pointer; font-size:11px; }

/* 状态筛选 */
.dy-rp-filters { display:flex; gap:6px; padding:8px 10px; flex-wrap:wrap; align-items:center; border-bottom:1px solid #eee; flex-shrink:0; }
.dy-rpf { font-size:12px; padding:3px 10px; border-radius:14px; cursor:pointer; color:#666; }
.dy-rpf:hover { background:#f5f5f5; }
.dy-rpf.active { background:#1a73e8; color:#fff; }
.dy-rpf-icon { margin-left:auto; color:#999; cursor:pointer; font-size:14px; }

/* 订单详情卡 */
.dy-order-card { padding:10px; display:flex; flex-direction:column; gap:8px; }
.dy-oc-status { display:flex; align-items:center; gap:8px; margin-bottom:2px; }
.dy-ocs { font-size:11px; padding:1px 8px; border-radius:10px; font-weight:600; }
.dy-ocs.shipped { background:#f6ffed; color:#52c41a; border:1px solid #b7eb8f; }
.dy-oc-no { font-size:12px; color:#333; font-family:monospace; }
.dy-oc-icons { margin-left:auto; color:#999; font-size:12px; cursor:pointer; }

/* 商品信息 */
.dy-oc-product { display:flex; gap:10px; }
.dy-oc-img { width:64px; height:64px; border-radius:6px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; }
.dy-oc-info { flex:1; min-width:0; }
.dy-oc-title { font-size:13px; color:#333; line-height:1.35; margin-bottom:4px; }
.dy-oc-tags { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:4px; }
.dy-oct { font-size:10px; padding:1px 6px; border-radius:8px; background:#f0f0f0; color:#666; }
.dy-oct.blue { background:#e6f7ff; color:#1890ff; }
.dy-oc-price-line { margin-bottom:3px; }
.dy-oc-del { font-size:13px; color:#333; margin-right:8px; }
.dy-oc-off { font-size:11px; color:#ff6b00; }
.dy-oc-spec, .dy-oc-shop, .dy-oc-gift { font-size:11px; color:#666; margin-bottom:2px; }

/* 操作按钮 */
.dy-oc-actions { display:flex; gap:8px; }
.dy-oca { padding:4px 12px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; font-size:12px; cursor:pointer; }
.dy-oca:hover:not(:disabled) { color:#1a73e8; border-color:#1a73e8; }
.dy-oca:disabled { opacity:.5; cursor:not-allowed; }

/* 支付信息 */
.dy-oc-pay { border-top:1px solid #f0f0f0; padding-top:8px; }
.dy-op-row { display:flex; gap:8px; font-size:11px; margin-bottom:3px; flex-wrap:wrap; }
.dy-op-row span:first-child { color:#999; white-space:nowrap; }
.dy-op-row b { color:#ff6b00; font-size:13px; }
.dy-op-row small { color:#999; }
.dy-op-row.addr { color:#666; }

/* 底部操作按钮 */
.dy-oc-bottom-btns { display:flex; gap:6px; flex-wrap:wrap; margin-top:4px; }
.dy-ocbb { padding:4px 10px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; font-size:11px; cursor:pointer; }
.dy-ocbb.primary { background:#e6f7ff; color:#1a73e8; border-color:#91d5ff; }
.dy-ocbb:hover:not(:disabled) { border-color:#1a73e8; }
.dy-ocbb:disabled { opacity:.5; cursor:not-allowed; }

/* 底部加载更多 */
.dy-rp-footer { text-align:center; padding:10px; font-size:11px; color:#1a73e8; border-top:1px solid #eee; cursor:pointer; }

/* 训练提示块覆盖 */
.dy-hint { margin:6px 10px; border-radius:6px; flex-shrink:0; max-height:180px; overflow-y:auto; }

/* ---- 响应式 ---- */
@media (max-width: 1200px) {
  .dy-right-panel { width:270px; min-width:270px; }
}
@media (max-width: 1000px) {
  .dy-sidebar { display: none; }
}
@media (max-width: 768px) {
  .dy-right-panel { display: none; }
  .dy-stats-nums { display: none; }
  .dy-top-tools { display: none; }
}

/* ================================================================
 * 快手高保真工作台（Kuaishou Workbench）
 * 主色：快手蓝 #1e80ff / 深蓝 #0d55b5
 * ================================================================ */
.ks-workbench { width:100%; height:calc(100vh - 60px); position:relative; background:#f4f5f7; font-family:inherit; font-size:13px; color:#333; border-radius:8px; overflow:hidden; display:flex; flex-direction:column; }

/* 标签栏 */
.ks-tab-bar { display:flex; align-items:center; background:#e8eaed; padding:4px 10px; gap:2px; border-bottom:1px solid #ddd; }
.ks-tab { display:flex; align-items:center; gap:6px; padding:5px 12px; background:#fff; border-radius:6px 6px 0 0; font-size:12px; cursor:pointer; max-width:200px; }
.ks-tab-active { background:#fff; box-shadow:0 -2px 4px rgba(0,0,0,0.06); position:relative; z-index:1; }
.ks-tab-inactive { background:#f0f0f0; color:#888; }
.ks-tab-dot { width:8px; height:8px; border-radius:50%; background:#52c41a; flex-shrink:0; }
.ks-tab-close { margin-left:auto; color:#999; cursor:pointer; font-size:14px; }
.ks-tab-add { color:#666; cursor:pointer; padding:2px 8px; font-size:16px; }
.ks-tab-win-btns { margin-left:auto; display:flex; gap:8px; }
.ks-wbtn { cursor:pointer; color:#555; font-size:13px; padding:2px 4px; }

/* 店铺信息栏 */
.ks-shop-header { display:flex; align-items:center; justify-content:space-between; padding:10px 180px 10px 16px; background:#fff; border-bottom:1px solid #eee; flex-wrap:wrap; gap:8px; }
.ks-shop-info { display:flex; align-items:center; gap:8px; }
.ks-shop-avatar { font-size:22px; }
.ks-shop-name { font-weight:700; font-size:14px; }
.ks-online-dot { width:8px; height:8px; border-radius:50%; background:#52c41a; }
.ks-online-text { color:#52c41a; font-size:11px; }
.ks-badge { display:inline-block; padding:1px 6px; border-radius:3px; font-size:11px; color:#fff; }
.ks-badge-orange { background:#fa8c16; }
.ks-shop-meta { color:#888; font-size:11px; }
.ks-shop-stats { display:flex; align-items:center; gap:14px; }
.ks-stat-item { font-size:12px; color:#555; }
.ks-stat-highlight { text-align:right; line-height:1.3; color:#333; }
.ks-stat-highlight small { color:#888; font-size:10px; }
.ks-stat-arrow { cursor:pointer; color:#888; }

/* 搜索栏 */
.ks-search-bar { display:flex; align-items:center; padding:8px 16px; background:#fff; border-bottom:1px solid #eee; gap:8px; }
.ks-search-icon { color:#999; }
.ks-search-input { flex:1; border:1px solid #ddd; border-radius:18px; padding:6px 14px; font-size:12px; outline:none; background:#fafafa; }

/* 三栏主体 */
.ks-body { display:flex; flex:1; min-height:0; overflow:hidden; }

/* ===== 左侧栏（蓝色导航 + 会话列表）===== */
.ks-sidebar { width:200px; background:#fff; border-right:1px solid #e8e8e8; display:flex; flex-direction:column; flex-shrink:0; }
.ks-nav-icons { display:flex; flex-direction:column; background:#1e80ff; padding:8px 0; gap:0; }
.ks-nav-item { display:flex; flex-direction:column; align-items:center; padding:10px 0; cursor:pointer; color:rgba(255,255,255,0.75); transition:background .2s; position:relative; }
.ks-nav-item:hover { background:rgba(255,255,255,0.12); color:#fff; }
.ks-nav-active { background:rgba(255,255,255,0.2); color:#fff; }
.ks-nav-icon { font-size:20px; }
.ks-nav-label { font-size:10px; margin-top:2px; }

.ks-conv-area { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.ks-conv-tabs { display:flex; border-bottom:1px solid #eee; }
.ks-conv-tab { flex:1; text-align:center; padding:9px 0; font-size:12px; cursor:pointer; color:#666; border-bottom:2px solid transparent; }
.ks-conv-tab-active { color:#1e80ff; border-bottom-color:#1e80ff; font-weight:600; }
.ks-conv-toolbar { display:flex; justify-content:space-between; padding:6px 10px; font-size:11px; color:#1e80ff; border-bottom:1px solid #f0f0f0; }
.ks-tool-link { cursor:pointer; }
.ks-status-list { padding:5px 10px; }
.ks-status-item { display:flex; align-items:center; gap:6px; padding:6px 4px; font-size:12px; color:#333; cursor:pointer; border-radius:4px; }
.ks-status-item:hover { background:#f5f5f5; }
.ks-status-bullet { width:6px; height:6px; border-radius:50%; background:#ccc; flex-shrink:0; }
.ks-status-warn .ks-status-bullet { background:#ff4d4f; }
.ks-status-count { color:#999; font-size:11px; margin-left:auto; }

.ks-customer-list { flex:1; overflow-y:auto; padding:4px 6px; }
.ks-cust-item { display:flex; align-items:center; gap:8px; padding:8px 6px; border-radius:6px; cursor:pointer; }
.ks-cust-item:hover { background:#f0f6ff; }
.ks-cust-active { background:#e6f0ff; }
.ks-cust-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.ks-cust-body { flex:1; min-width:0; }
.ks-cust-name { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ks-cust-preview { font-size:11px; color:#999; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.ks-cust-time { font-size:10px; color:#bbb; flex-shrink:0; }

/* ===== 中间聊天区 ===== */
.ks-chat-main { flex:1; display:flex; flex-direction:column; background:#f4f5f7; min-width:0; }
.ks-buyer-header { display:flex; align-items:center; gap:8px; padding:8px 16px; background:#fff; border-bottom:1px solid #eee; }
.ks-buyer-avatar { width:34px; height:34px; border-radius:50%; }
.ks-buyer-name { font-weight:600; font-size:14px; }
.ks-tag-blue { display:inline-block; padding:1px 8px; background:#e6f0ff; color:#1e80ff; border-radius:10px; font-size:11px; }
.ks-buyer-tools { margin-left:auto; display:flex; gap:8px; }
.ks-btool { cursor:pointer; font-size:15px; opacity:0.6; }
.ks-btool:hover { opacity:1; }

.ks-msg-list { flex:1; overflow-y:auto; padding:10px 16px; display:flex; flex-direction:column; gap:6px; background:#f4f5f7; }
.ks-msg-row { display:flex; align-items:flex-start; gap:6px; max-width:85%; position:relative; }
.ks-msg-row-right { align-self:flex-end; flex-direction:row-reverse; }
.ks-msg-row-left { align-self:flex-start; }
.ks-msg-avatar-small { width:28px; height:28px; border-radius:50%; flex-shrink:0; }
.ks-msg-sender { font-size:11px; color:#666; margin-top:4px; }
.ks-msg-time { font-size:10px; color:#bbb; margin-top:4px; white-space:nowrap; }
.ks-msg-bubble { padding:11px 15px; border-radius:12px; font-size:14px; line-height:1.6; word-break:break-word; max-width:460px; position:relative; }
.ks-msg-bubble-right { background:#1e80ff; color:#fff; border-bottom-right:2px solid #0d55b5; }
.ks-msg-bubble-left { background:#fff; color:#333; border:1px solid #eee; border-bottom-left:2px solid #ddd; }
.ks-new-msg-badge { display:inline-block; background:#ff6b00; color:#fff; font-size:10px; padding:1px 6px; border-radius:8px; margin-top:4px; white-space:nowrap; animation:pulse-ks 1.5s infinite; }
@keyframes pulse-ks { 0%,100%{opacity:1} 50%{opacity:.65} }

/* 输入工具栏 */
.ks-input-toolbar { display:flex; align-items:center; gap:10px; padding:5px 16px; background:#fff; border-top:1px solid #eee; }
.ks-itool { cursor:pointer; font-size:15px; opacity:0.6; }
.ks-itool:hover { opacity:1; }
.ks-smart-toggle { margin-left:auto; font-size:11px; color:#666; display:flex; align-items:center; gap:4px; cursor:pointer; }
.ks-toggle-off { display:inline-block;width:24px;height:14px;background:#ccc;border-radius:7px;position:relative;}
.ks-toggle-off::after{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#fff;}

/* 输入框 */
.ks-input-area { padding:4px 16px 6px; background:#fff; }
.ks-input-box { width:100%; border:1px solid #ddd; border-radius:8px; padding:7px 12px; font-size:13px; resize:none; outline:none; font-family:inherit; box-sizing:border-box; }
.ks-input-box:focus { border-color:#1e80ff; }

/* 底部按钮 */
.ks-chat-footer { display:flex; align-items:center; justify-content:space-between; padding:5px 16px 8px; background:#fff; }
.ks-close-hint { font-size:11px; color:#999; }
.ks-send-btn { background:#1e80ff; color:#fff; border:none; border-radius:6px; padding:7px 24px; font-size:13px; cursor:pointer; font-weight:500; }
.ks-send-btn:hover { background:#0d55b5; }

/* ===== 右侧订单面板 ===== */
.ks-right-panel { width:280px; background:#fff; border-left:1px solid #e8e8e8; display:flex; flex-direction:column; flex-shrink:0; overflow-y:auto; }
.ks-rp-tabs { display:flex; align-items:center; border-bottom:1px solid #eee; padding:0 8px; gap:0; }
.ks-rp-tab { padding:10px 10px; font-size:12px; cursor:pointer; color:#555; border-bottom:2px solid transparent; white-space:nowrap; }
.ks-rp-tab-active { color:#1e80ff; border-bottom-color:#1e80ff; font-weight:600; }
.ks-rp-search { margin-left:auto; cursor:pointer; padding:8px; color:#888; }

.ks-rp-summary { padding:12px; border-bottom:1px solid #f0f0f0; }
.ks-rp-summary-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.ks-rp-avatar { width:30px; height:30px; border-radius:50%; }
.ks-rp-summary-name { font-weight:600; font-size:13px; }
.ks-rp-expand { margin-left:auto; color:#999; cursor:pointer; font-size:12px; }
.ks-rp-stats-row { display:flex; flex-wrap:wrap; gap:6px; font-size:11px; color:#666; margin-bottom:6px; }
.ks-rp-note { font-size:11px; color:#999; }

.ks-rp-filters { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px; border-bottom:1px solid #f0f0f0; align-items:center; }
.ks-filter-chip { padding:4px 10px; border-radius:14px; font-size:11px; cursor:pointer; background:#f5f5f5; color:#666; }
.ks-filter-chip:hover { background:#e6f0ff; color:#1e80ff; }
.ks-filter-active { background:#1e80ff; color:#fff; }
.ks-filter-more { font-size:11px; color:#888; cursor:pointer; }
.ks-filter-search { margin-left:auto; cursor:pointer; }

/* 订单卡片 */
.ks-order-card { margin:8px 12px 12px; border:1px solid #eee; border-radius:8px; overflow:hidden; background:#fafafa; }
.ks-order-card:hover { box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.ks-order-check { padding:8px 0 0 10px; }
.ks-order-body { padding:0 10px 10px; }
.ks-order-head { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.ks-order-status { display:inline-block; padding:1px 8px; border-radius:4px; font-size:11px; color:#fff; }
.ks-status-shipped { background:#52c41a; }
.ks-order-no { font-size:12px; color:#333; font-family:monospace; }
.ks-order-copy { cursor:pointer; color:#999; font-size:14px; margin-left:auto; }
.ks-order-paytime { font-size:11px; color:#888; margin-bottom:8px; }

.ks-order-product { display:flex; gap:10px; margin-bottom:10px; }
.ks-prod-img { width:64px; height:64px; border-radius:6px; object-fit:cover; flex-shrink:0; background:#eee; }
.ks-prod-info { flex:1; min-width:0; }
.ks-prod-title { font-size:12px; font-weight:500; line-height:1.4; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ks-prod-price { color:#e33e33; font-weight:700; font-size:15px; }
.ks-prod-specs { font-size:11px; color:#888; margin:4px 0; }
.ks-prod-tags { display:flex; flex-wrap:wrap; gap:4px; margin:4px 0; }
.ks-pd-tag { font-size:10px; color:#1e80ff; background:#e6f0ff; padding:1px 6px; border-radius:3px; }
.ks-pd-tag-plus { font-size:10px; color:#fa8c16; font-weight:600; }
.ks-prod-price-row { display:flex; justify-content:space-between; font-size:12px; margin-top:4px; }

/* 收发货信息 */
.ks-shipping-info { border-top:1px dashed #eee; margin-top:8px; }
.ks-shipping-head { padding:8px 4px; font-size:12px; font-weight:600; cursor:pointer; color:#333; display:flex; align-items:center; gap:4px; user-select:none; }
.ks-shipping-icon { font-size:14px; }
.ks-shipping-arrow { margin-left:auto; color:#999; font-size:11px; }
.ks-shipping-body { padding:4px 0 8px 8px; }
.ks-ship-row { display:flex; gap:8px; padding:4px 0; font-size:11px; align-items:flex-start; }
.ks-ship-label { color:#888; min-width:60px; flex-shrink:0; }
.ks-ship-value { color:#333; }
.ks-ship-value-secondary { color:#999; font-size:11px; padding-left:68px; }
.ks-copy-blue { color:#1e80ff; cursor:pointer; font-size:11px; margin-left:4px; }

.ks-order-foot { display:flex; align-items:center; gap:12px; margin-top:8px; padding-top:8px; border-top:1px solid #f0f0f0; }
.ks-select-all { font-size:11px; color:#666; display:flex; align-items:center; gap:4px; cursor:pointer; }
.ks-batch-action { font-size:11px; color:#1e80ff; cursor:pointer; }

/* 训练提示适配 */
.wb-ks-hint { margin:8px 0 0; border-radius:0 0 8px 8px; }

/* 响应式 */
@media (max-width: 1200px) {
  .ks-right-panel { width:280px; }
  .ks-sidebar { width:190px; }
}
@media (max-width: 1000px) {
  .ks-sidebar { display:none; }
}
@media (max-width: 768px) {
  .ks-right-panel { display:none; }
  .ks-shop-header { flex-direction:column; align-items:flex-start; }
  .ks-search-bar { display:none; }
}

/* ================================================================
 * 小红书（薯店）高保真工作台
 * 主色：小红书红 #C45C4A
 * ================================================================ */
.xhs-workbench { width:100%; height:calc(100vh - 60px); position:relative; background:#f5f5f5; font-family:inherit; font-size:13px; color:#333; border-radius:8px; overflow:hidden; display:flex; flex-direction:column; }

/* 标签栏 */
.xhs-tab-bar { display:flex; align-items:center; background:#fff; padding:4px 12px; gap:4px; border-bottom:1px solid #eee; }
.xhs-brand { margin-right:8px; }
.xhs-logo-a { display:inline-block; width:26px; height:26px; line-height:26px; text-align:center; background:#C45C4A; color:#fff; border-radius:6px; font-weight:900; font-size:16px; font-family:Georgia,serif; }
.xhs-tab { display:flex; align-items:center; gap:5px; padding:5px 12px; background:#f7f7f7; border-radius:6px 6px 0 0; font-size:12px; cursor:pointer; max-width:180px; }
.xhs-tab-active { background:#fff; box-shadow:0 -1px 3px rgba(0,0,0,0.06); position:relative; z-index:1; }
.xhs-tab-icon { font-size:14px; }
.xhs-tab-text { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xhs-tab-close { color:#ccc; cursor:pointer; font-size:14px; margin-left:auto; }
.xhs-tab-add { color:#999; cursor:pointer; padding:2px 6px; font-size:16px; }
.xhs-win-btns { margin-left:auto; display:flex; gap:10px; color:#999; font-size:12px; }

/* 店铺信息栏 */
.xhs-shop-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 180px 10px 16px; background:#fff; border-bottom:1px solid #f0f0f0; flex-wrap:wrap; gap:8px; }
.xhs-shop-left { display:flex; align-items:center; gap:8px; }
.xhs-shop-avatar { font-size:22px; }
.xhs-shop-name-wrap { display:flex; flex-direction:column; gap:1px; }
.xhs-shop-name-row { display:flex; align-items:center; gap:4px; }
.xhs-shop-icon-badge { font-size:12px; }
.xhs-shop-name { font-weight:700; font-size:14px; }
.xhs-shop-sub { font-size:11px; color:#888; }
.xhs-online-row { display:flex; align-items:center; gap:3px; font-size:11px; color:#52c41a; cursor:pointer; }
.xhs-dot-green { width:7px; height:7px; border-radius:50%; background:#52c41a; display:inline-block; }
.xhs-stats-row { display:flex; align-items:center; gap:16px; }
.xhs-stat { text-align:center; min-width:48px; }
.xhs-stat b { font-size:15px; color:#333; }
.xhs-stat-label { font-size:10px; color:#999; margin-top:1px; }
.xhs-stat-label i { font-style:normal; opacity:0.6; }
.xhs-stat-highlight b { color:#C45C4A; }
.xhs-more-arrow { cursor:pointer; color:#bbb; font-size:12px; margin-left:4px; }

/* 搜索栏 */
.xhs-search-bar { display:flex; align-items:center; padding:8px 16px; background:#fff; border-bottom:1px solid #f0f0f0; gap:8px; }
.xhs-search-icon { color:#bbb; }
.xhs-search-input { flex:1; border:1px solid #eee; border-radius:18px; padding:6px 14px; font-size:12px; outline:none; background:#fafafa; }

/* 三栏主体 */
.xhs-body { display:flex; flex:1; height:500px; }

/* ===== 左侧窄导航 ===== */
.xhs-nav-rail { width:56px; background:#fff; border-right:1px solid #f0f0f0; display:flex; flex-direction:column; align-items:center; padding:8px 0; flex-shrink:0; }
.xhs-nav-item { display:flex; flex-direction:column; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; cursor:pointer; color:#666; transition:all .2s; position:relative; margin-bottom:2px; }
.xhs-nav-item:hover { background:#fef0f0; color:#C45C4A; }
.xhs-nav-active { background:#fff0f0; color:#C45C4A; }
.xhs-nav-ic { font-size:18px; }
.xhs-nav-lbl { font-size:9px; margin-top:1px; }
.xhs-new-badge { position:absolute; top:2px; right:2px; background:#C45C4A; color:#fff; font-size:8px; padding:0 3px; border-radius:6px; line-height:12px; font-weight:700; transform:scale(0.85); }
.xhs-nav-divider { width:28px; height:1px; background:#eee; margin:4px 0; }
.xhs-version { margin-top:auto; font-size:9px; color:#ccc; }

/* ===== 左侧会话列表 ===== */
.xhs-sidebar { width:200px; background:#fff; border-right:1px solid #f0f0f0; display:flex; flex-direction:column; flex-shrink:0; }
.xhs-conv-tabs { display:flex; border-bottom:1px solid #f0f0f0; }
.xhs-conv-tab { flex:1; text-align:center; padding:10px 0; font-size:12px; cursor:pointer; color:#666; border-bottom:2px solid transparent; }
.xhs-conv-active { color:#C45C4A; border-bottom-color:#C45C4A; font-weight:600; }
.xhs-cust-list { flex:1; overflow-y:auto; padding:6px; }
.xhs-cust-item { display:flex; align-items:center; gap:9px; padding:9px 6px; border-radius:8px; cursor:pointer; margin-bottom:2px; }
.xhs-cust-item:hover { background:#fef5f5; }
.xhs-cust-active { background:#fff0f0; }
.xhs-cust-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.xhs-cust-body { flex:1; min-width:0; }
.xhs-cust-name { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xhs-cust-preview { font-size:11px; color:#999; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }

/* ===== 中间聊天区 ===== */
.xhs-chat-main { flex:1; display:flex; flex-direction:column; background:#f5f5f5; min-width:0; position:relative; }
.xhs-buyer-header { display:flex; align-items:center; gap:8px; padding:10px 16px; background:#fff; border-bottom:1px solid #f0f0f0; }
.xhs-buyer-avatar { width:34px; height:34px; border-radius:50%; }
.xhs-buyer-name { font-weight:600; font-size:14px; }
.xhs-buyer-id { font-size:11px; color:#999; margin-left:6px; }
.xhs-buyer-tools { margin-left:auto; display:flex; gap:10px; }
.xhs-btool { cursor:pointer; font-size:15px; color:#999; }
.xhs-btool:hover { color:#333; }

.xhs-msg-list { flex:1; overflow-y:auto; padding:14px 18px; display:flex; flex-direction:column; gap:8px; background:#f5f5f5; }
.xhs-msg-row { display:flex; align-items:flex-start; gap:7px; max-width:82%; }
.xhs-msg-left { align-self:flex-start; }
.xhs-msg-right { align-self:flex-end; flex-direction:row-reverse; }
.xhs-msg-avatar-sm { width:28px; height:28px; border-radius:50%; flex-shrink:0; }
.xhs-bubble { padding:12px 16px; border-radius:14px; font-size:14px; line-height:1.6; word-break:break-word; max-width:440px; }
.xhs-bubble-right { background:#C45C4A; color:#fff; border-bottom-right:2px solid #A84838; }
.xhs-bubble-left { background:#fff; color:#333; border:1px solid #eee; border-bottom-left:2px solid #ddd; }

/* 输入工具栏 */
.xhs-input-toolbar { display:flex; align-items:center; gap:12px; padding:5px 16px; background:#fff; border-top:1px solid #f0f0f0; }
.xhs-itool { cursor:pointer; font-size:17px; opacity:0.55; }
.xhs-itool:hover { opacity:1; }
.xhs-auto-reply { margin-left:auto; font-size:11px; color:#888; display:flex; align-items:center; gap:4px; cursor:pointer; }
.xhs-toggle-off { display:inline-block;width:22px;height:13px;background:#ddd;border-radius:7px;position:relative;}
.xhs-toggle-off::after{content:'';position:absolute;left:2px;top:2px;width:9px;height:9px;border-radius:50%;background:#fff;}

/* 输入框 */
.xhs-input-area { padding:4px 16px 6px; background:#fff; }
.xhs-input-box { width:100%; border:1px solid #eee; border-radius:10px; padding:7px 12px; font-size:13px; resize:none; outline:none; font-family:inherit; box-sizing:border-box; }
.xhs-input-box:focus { border-color:#C45C4A; }

/* 底部按钮 */
.xhs-chat-footer { display:flex; justify-content:flex-end; padding:8px 16px 12px; background:#fff; }
.xhs-send-btn { background:#C45C4A; color:#fff; border:none; border-radius:20px; padding:7px 30px; font-size:13px; cursor:pointer; font-weight:600; }
.xhs-send-btn:hover { background:#A84838; }

/* 页面更新提示 */
.xhs-update-bar { display:flex; align-items:center; justify-content:space-between; padding:8px 16px; background:#e8f4fd; font-size:12px; color:#1890ff; border-top:1px solid #d6eefc; }
.xhs-update-bar a { color:#C45C4A; cursor:pointer; font-weight:500; }

/* ===== 右侧面板 ===== */
.xhs-right-panel { width:280px; background:#fff; border-left:1px solid #f0f0f0; display:flex; flex-direction:column; flex-shrink:0; overflow-y:auto; }
.xhs-rp-header { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #f0f0f0; }
.xhs-rp-title { font-weight:600; font-size:13px; }
.xhs-rp-close { cursor:pointer; color:#999; font-size:16px; }

/* 用户卡片 */
.xhs-user-card { display:flex; align-items:center; gap:10px; padding:14px; border-bottom:1px solid #f5f5f5; }
.xhs-user-avatar-lg { width:48px; height:48px; border-radius:50%; }
.xhs-user-info { flex:1; }
.xhs-user-name { font-weight:600; font-size:14px; }
.xhs-user-id { font-size:11px; color:#999; margin-top:2px; }
.xhs-user-tags { display:flex; gap:6px; margin-top:4px; }
.xhs-utag { font-size:10px; padding:1px 8px; border-radius:10px; background:#f0f0f0; color:#666; }
.xhs-utag-vip { background:#fff5e6; color:#fa8c16; }

/* 用户统计 */
.xhs-user-stats { display:flex; padding:10px 14px; border-bottom:1px solid #f5f5f5; gap:0; }
.xhs-us-item { flex:1; text-align:center; font-size:11px; color:#888; }
.xhs-us-item b { display:block; font-size:14px; color:#333; margin-bottom:2px; }
.xhs-us-item span { color:#999; }

/* 最近订单 */
.xhs-recent-orders { padding:12px 14px; }
.xhs-ro-title { font-size:12px; font-weight:600; margin-bottom:8px; color:#333; }
.xhs-ro-item { display:flex; gap:8px; padding:8px; background:#fafafa; border-radius:8px; }
.xhs-ro-img { width:50px; height:50px; border-radius:6px; object-fit:cover; flex-shrink:0; background:#eee; }
.xhs-ro-info { flex:1; min-width:0; }
.xhs-ro-name { font-size:12px; font-weight:500; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.xhs-ro-price { color:#C45C4A; font-weight:700; font-size:14px; margin:4px 0 2px; }
.xhs-ro-status { display:inline-block; font-size:10px; padding:1px 8px; border-radius:8px; }
.xhs-ro-paid { background:#e6fffb; color:#00b578; }

/* 快捷操作 */
.xhs-rp-actions { display:flex; gap:8px; padding:12px 14px; }
.xhs-rp-btn { flex:1; padding:7px 0; border:1px solid #eee; border-radius:6px; background:#fff; font-size:12px; cursor:pointer; color:#666; }
.xhs-rp-btn:hover { border-color:#C45C4A; color:#C45C4A; }
.xhs-rp-btn-red { background:#C45C4A; color:#fff; border-color:#C45C4A; }
.xhs-rp-btn-red:hover { background:#A84838; }

/* 训练提示适配 */
.wb-xhs-hint { margin:8px 0 0; border-radius:0 0 8px 8px; }

/* 响应式 */
@media (max-width: 1200px) {
  .xhs-right-panel { width:240px; }
  .xhs-sidebar { width:190px; }
}
@media (max-width: 1000px) {
  .xhs-nav-rail { display:none; }
  .xhs-sidebar { width:200px; }
}
@media (max-width: 768px) {
  .xhs-right-panel { display:none; }
  .xhs-sidebar { display:none; }
  .xhs-search-bar { display:none; }
  .xhs-update-bar { display:none; }
}

/* =========================================================
 * 主题配色系统（data-theme）：靛蓝/海洋/晚霞/森林/紫罗兰/石墨
 * 默认 indigo = 现有 #6366f1，切换不回退
 * ========================================================= */
html[data-theme="indigo"]   { --accent:#6366f1; --accent-hover:#4f46e5; --accent-light:rgba(99,102,241,.08); --sidebar-active-border:#6366f1; --sidebar-active:rgba(99,102,241,.2); }
html[data-theme="ocean"]    { --accent:#0891b2; --accent-hover:#0e7490; --accent-light:rgba(8,145,178,.08); --sidebar-active-border:#0891b2; --sidebar-active:rgba(8,145,178,.2); }
html[data-theme="sunset"]   { --accent:#ea580c; --accent-hover:#c2410c; --accent-light:rgba(234,88,12,.08); --sidebar-active-border:#ea580c; --sidebar-active:rgba(234,88,12,.2); }
html[data-theme="forest"]   { --accent:#059669; --accent-hover:#047857; --accent-light:rgba(5,150,105,.08); --sidebar-active-border:#059669; --sidebar-active:rgba(5,150,105,.2); }
html[data-theme="violet"]   { --accent:#7c3aed; --accent-hover:#6d28d9; --accent-light:rgba(124,58,237,.08); --sidebar-active-border:#7c3aed; --sidebar-active:rgba(124,58,237,.2); }
html[data-theme="graphite"] { --accent:#475569; --accent-hover:#334155; --accent-light:rgba(71,85,105,.08); --sidebar-active-border:#64748b; --sidebar-active:rgba(100,116,139,.2); }

/* 主题切换面板 */
.theme-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; font-size: 16px; cursor: pointer; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.theme-btn:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-panel {
  display: none; position: absolute; top: 130%; right: 0; z-index: 3000;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.16); padding: 14px; width: 240px;
}
.theme-panel.open { display: block; animation: msgIn .2s ease; }
.theme-panel h4 { font-size: 13px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-swatch {
  cursor: pointer; border-radius: 10px; padding: 8px 6px; border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .15s;
}
.theme-swatch:hover { background: var(--bg); }
.theme-swatch.active { border-color: var(--accent); background: var(--accent-light); }
.theme-swatch .dot {
  width: 26px; height: 26px; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.theme-swatch .nm { font-size: 11px; color: var(--text-secondary); }


/* =========================================================
 * 主题配色系统（data-theme）：靛蓝/海洋/晚霞/森林/紫罗兰/石墨
 * 默认 indigo = 现有 #6366f1，切换不回退
 * ========================================================= */
html[data-theme="indigo"]   { --accent:#6366f1; --accent-hover:#4f46e5; --accent-light:rgba(99,102,241,.08); --sidebar-active-border:#6366f1; --sidebar-active:rgba(99,102,241,.2); }
html[data-theme="ocean"]    { --accent:#0891b2; --accent-hover:#0e7490; --accent-light:rgba(8,145,178,.08); --sidebar-active-border:#0891b2; --sidebar-active:rgba(8,145,178,.2); }
html[data-theme="sunset"]   { --accent:#ea580c; --accent-hover:#c2410c; --accent-light:rgba(234,88,12,.08); --sidebar-active-border:#ea580c; --sidebar-active:rgba(234,88,12,.2); }
html[data-theme="forest"]   { --accent:#059669; --accent-hover:#047857; --accent-light:rgba(5,150,105,.08); --sidebar-active-border:#059669; --sidebar-active:rgba(5,150,105,.2); }
html[data-theme="violet"]   { --accent:#7c3aed; --accent-hover:#6d28d9; --accent-light:rgba(124,58,237,.08); --sidebar-active-border:#7c3aed; --sidebar-active:rgba(124,58,237,.2); }
html[data-theme="graphite"] { --accent:#475569; --accent-hover:#334155; --accent-light:rgba(71,85,105,.08); --sidebar-active-border:#64748b; --sidebar-active:rgba(100,116,139,.2); }

/* 主题切换面板 */
.theme-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; font-size: 16px; cursor: pointer; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.theme-btn:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-panel {
  display: none; position: absolute; top: 130%; right: 0; z-index: 3000;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.16); padding: 14px; width: 240px;
}
.theme-panel.open { display: block; animation: msgIn .2s ease; }
.theme-panel h4 { font-size: 13px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-swatch {
  cursor: pointer; border-radius: 10px; padding: 8px 6px; border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .15s;
}
.theme-swatch:hover { background: var(--bg); }
.theme-swatch.active { border-color: var(--accent); background: var(--accent-light); }
.theme-swatch .dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.theme-swatch .nm { font-size: 11px; color: var(--text-secondary); }

/* 品牌标记 + 主题按钮容器 */
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark svg { display: block; box-shadow: 0 4px 12px rgba(99,102,241,.4); border-radius: 8px; }
.theme-wrap { position: relative; display: inline-flex; }

/* ===== 高级视觉提升（参考「客服训练舱」桌面端 · 2026-08-10） ===== */
/* 顶栏底部流光线（随主题流动） */
.topbar { overflow: visible; }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--topbar-flow, linear-gradient(90deg,#6366f1,#22d3ee,#3B9B8F,#6366f1));
  background-size: 300% 100%;
  animation: topbarFlow 6s linear infinite;
  pointer-events: none; border-radius: 3px;
}
@keyframes topbarFlow { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }

/* 页面标题强调条（左侧渐变竖条，大气标题） */
.page-head h2 { position: relative; padding-left: 14px; font-size: 16px; line-height: 1.3; }
.page-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 21px; border-radius: 3px; background: var(--grad-brand);
  pointer-events: none;
}
.page-head .muted, .page-head .desc { color: var(--text-secondary); font-weight: 400; }

/* 统计卡片：左侧渐变竖条 + 悬浮上浮 + 图标 */
.stat-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, border-color .2s;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand); opacity: .85;
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.stat-card .stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; font-size: 17px; flex: none;
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(34,211,238,.14));
  color: var(--accent);
}

/* 页面内横向子导航（小项）精致化：渐变激活态 + 悬浮描边 */
.tabs { gap: 8px; }
.tab-btn { border-radius: var(--radius-sm); transition: all .18s cubic-bezier(.2,.8,.3,1); }
.tab-btn.active {
  background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(99,102,241,.30);
}
.tab-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* 卡片：柔和分层阴影 + 大圆角 + 悬浮提亮 */
.card { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-hover); }

/* 主按钮渐变（品牌色流光） */
.btn.primary {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(99,102,241,.25);
}
.btn.primary:hover { filter: brightness(1.05); }

/* 路由切换入场微动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.main > .page-head { animation: fadeUp .4s ease both; }

@media (prefers-reduced-motion: reduce) {
  .topbar::after { animation: none; }
  .main > .page-head { animation: none; }
}

/* ============================================================
 * SaaS 工作台组件库（参考管理工作台 UI · 2026-08-11）
 * 来源：5张参考截图（管理驾驶舱/快捷入口/任务跟进/消息中心/汇报中心）
 * ============================================================ */

/* --- 页面标题区增强：徽标药丸 + 副标题描述 --- */
.page-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.page-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head h2 {
  position: relative; padding-left: 14px; font-size: 16px;
  font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
}
.page-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 3px; background: var(--grad-brand);
}
.page-badge {
  display: inline-flex; align-items: center; padding: 3px 12px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff;
  font-size: 11.5px; font-weight: 600; border-radius: 20px;
  letter-spacing: .02em; vertical-align: middle;
}
.page-desc {
  font-size: 13px; color: var(--text-secondary); font-weight: 400;
  max-width: 520px; line-height: 1.5;
}

/* --- 统计卡片：彩色左边框变体（对齐参考截图1/4/5） --- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  border: 1px solid #eef2f7; display: flex; flex-direction: column; gap: 6px;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, border-color .22s;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-brand); opacity: .9; border-radius: 4px 0 0 4px;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
/* 颜色变体 */
.stat-card.blue::before   { background: linear-gradient(180deg, #3b82f6, #60a5fa); }
.stat-card.red::before    { background: linear-gradient(180deg, #C45C4A, #D9877A); }
.stat-card.green::before  { background: linear-gradient(180deg, #3B9B8F, #5BBFAA); }
.stat-card.yellow::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.stat-card.purple::before { background: linear-gradient(180deg, #8b5cf6, #a78bfa); }
.stat-card.orange::before { background: linear-gradient(180deg, #C4881A, #D4A540); }
.stat-card.gray::before   { background: linear-gradient(180deg, #94a3b8, #cbd5e1); }

.stat-card .stat-value {
  font-size: 20px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.02em;
}
.stat-card.blue .stat-value   { color: #2563eb; }
.stat-card.red .stat-value    { color: #C45C4A; }
.stat-card.green .stat-value  { color: #059669; }
.stat-card.yellow .stat-value { color: #d97706; }
.stat-card.purple .stat-value { color: #7c3aed; }
.stat-card.orange .stat-value { color: #ea580c; }
.stat-card.gray .stat-value   { color: #475569; }

.stat-card .stat-label {
  font-size: 12.5px; color: #94a3b8; font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em;
}
.stat-card .stat-sub {
  font-size: 11.5px; color: #cbd5e1; margin-top: 2px;
}
.stat-card .stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; font-size: 18px;
  flex-shrink: 0;
}
/* 图标背景色跟随左边框 */
.stat-card.blue .stat-icon   { background: #eff6ff; color: #3b82f6; }
.stat-card.red .stat-icon    { background: #FDF0ED; color: #C45C4A; }
.stat-card.green .stat-icon  { background: #EBF5F3; color: #3B9B8F; }
.stat-card.yellow .stat-icon { background: #fffbeb; color: #f59e0b; }
.stat-card.purple .stat-icon { background: #f5f3ff; color: #8b5cf6; }
.stat-card.orange .stat-icon { background: #FBF3E8; color: #C4881A; }
.stat-card.gray .stat-icon   { background: #f8fafc; color: #94a3b8; }

/* 横向统计卡片（图标在左，数字在右，一行多个） */
.stat-cards--horizontal .stat-card {
  flex-direction: row; align-items: center; padding: 18px 20px;
}
.stat-cards--horizontal .stat-value { font-size: 18px; }

/* 小型统计药丸（参考截图2的"0 快捷应用"风格） */
.stat-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px 20px; min-width: 120px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.stat-pill .sp-num { font-size: 16px; font-weight: 700; color: var(--text); }
.stat-pill .sp-label { font-size: 12.5px; color: #94a3b8; }

/* --- 分区标题块（参考截图各页面的 section header） --- */
.section-block { margin-bottom: 16px; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; gap: 12px;
}
.section-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.35; letter-spacing: -.01em;
}
.section-subtitle {
  font-size: 13px; color: #94a3b8; margin-top: 3px; line-height: 1.45;
}
.section-action {
  font-size: 13px; color: var(--accent); cursor: pointer;
  font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.section-action:hover { color: #6d28d9; text-decoration: underline; text-underline-offset: 3px; }

/* --- 标签筛选器（药丸形，参考截图3/4/5） --- */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 4px; background: #f8fafc; border-radius: 12px;
  width: fit-content;
}
.filter-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 9px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; background: transparent;
  color: #64748b; transition: all .18s cubic-bezier(.2,.8,.3,1);
  white-space: nowrap;
}
.filter-tab:hover { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.filter-tab.active {
  background: var(--accent, #6366f1); color: #fff;
  box-shadow: 0 3px 10px rgba(99,102,241,.25);
}
.filter-tab .ft-count {
  font-size: 11.5px; opacity: .8; font-weight: 600;
}
.filter-tab.active .ft-count { opacity: 1; }

/* 兼容旧 tab-btn 样式升级 */
.tab-btn {
  border-radius: 10px; padding: 8px 18px; font-size: 13px;
  font-weight: 500; border: 1px solid #e2e8f0; background: #fff;
  color: #64748b; cursor: pointer; transition: all .18s cubic-bezier(.2,.8,.3,1);
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); background: #faf5ff; }
.tab-btn.active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(124,58,237,.28);
}

/* --- 列表项卡片（参考截图1的人员列表、截图3的任务卡片） --- */
.list-group { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #eef2f7; border-radius: 12px;
  padding: 14px 18px; transition: all .18s ease;
}
.list-item:hover {
  border-color: #ddd6fe; box-shadow: 0 2px 8px rgba(99,102,241,.06);
  transform: translateX(3px);
}
.list-item-avatar {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
  color: #fff;
}
.list-item-avatar.bg-blue   { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.list-item-avatar.bg-green  { background: linear-gradient(135deg, #3B9B8F, #5BBFAA); }
.list-item-avatar.bg-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.list-item-avatar.bg-orange { background: linear-gradient(135deg, #C4881A, #D4A540); }
.list-item-avatar.bg-red    { background: linear-gradient(135deg, #C45C4A, #D9877A); }
.list-item-avatar.bg-gray   { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  line-height: 1.35;
}
.list-item-desc {
  font-size: 12.5px; color: #94a3b8; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-item-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px;
}
.list-item-action {
  flex-shrink: 0;
}
.list-item-action .btn {
  font-size: 12.5px; padding: 6px 14px; border-radius: 8px;
}

/* --- 状态标签（小色块标签，参考截图中的各种 tag） --- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 6px; font-size: 11.5px;
  font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.tag-red    { background: #FDF0ED; color: #C45C4A; }
.tag-orange  { background: #FBF3E8; color: #ea580c; }
.tag-yellow  { background: #fefce8; color: #ca8a04; }
.tag-green   { background: #EBF5F3; color: #059669; }
.tag-blue    { background: #eff6ff; color: #2563eb; }
.tag-purple  { background: #f5f3ff; color: #7c3aed; }
.tag-gray    { background: #f1f5f9; color: #475569; }
.tag-outline { background: transparent; border: 1px solid #e2e8f0; color: #64748b; }

/* 徽章（圆角数字角标） */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; font-size: 11.5px; font-weight: 700;
  color: #fff; background: #94a3b8;
}
.badge-primary { background: var(--accent, #6366f1); }
.badge-danger  { background: #C45C4A; }
.badge-success { background: #3B9B8F; }
.badge-warning { background: #f59e0b; color: #78350f; }

/* --- 提醒/告警卡片（参考截图1的"今日必须处理"区域） --- */
.alert-section {
  background: #fff; border-radius: 14px; padding: 18px 22px;
  border: 1px solid #eef2f7; margin-bottom: 16px;
}
.alert-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.alert-title { font-size: 15px; font-weight: 700; color: var(--text); }
.alert-desc { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }
.alert-link { font-size: 13px; color: var(--accent); cursor: pointer; font-weight: 500; }
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; background: #fefce8; border-radius: 10px;
  border: 1px solid #fde68a;
}
.alert-item.alert-danger { background: #FDF0ED; border-color: #F0D9D4; }
.alert-item.alert-info   { background: #eff6ff; border-color: #bfdbfe; }
.alert-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  color: #fff; background: #f59e0b;
}
.alert-danger .alert-badge { background: #C45C4A; }
.alert-info .alert-badge   { background: #3b82f6; }
.alert-body { flex: 1; min-width: 0; }
.alert-text { font-size: 13.5px; color: #334155; line-height: 1.5; }
.alert-action {
  font-size: 12.5px; color: var(--accent); cursor: pointer;
  font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.alert-action:hover { text-decoration: underline; }

/* --- 空状态（参考截图2/4/5 的空状态） --- */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; text-align: center;
}
.empty-state-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 16px;
  background: #f8fafc; color: #cbd5e1;
}
.empty-state-title {
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px;
}
.empty-state-desc {
  font-size: 13.5px; color: #94a3b8; max-width: 320px; line-height: 1.55; margin-bottom: 20px;
}
.empty-state .btn-primary-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff; border: none; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,58,237,.28);
  transition: all .18s;
}
.empty-state .btn-primary-action:hover {
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.35);
}

/* --- 操作按钮行（参考截图3底部的按钮组） --- */
.action-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
  align-items: center;
}
.action-bar .btn {
  font-size: 13px; padding: 8px 16px; border-radius: 10px;
  font-weight: 500;
}
.action-bar .btn-outline {
  background: #fff; border: 1px solid #e2e8f0; color: #64748b;
}
.action-bar .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- 信息网格卡片（参考截图1右下角、截图5的操作卡片区） --- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.info-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px;
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: all .18s; cursor: pointer;
}
.info-card:hover { border-color: #ddd6fe; box-shadow: 0 4px 14px rgba(99,102,241,.06); }
.info-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  background: #eff6ff; color: #3b82f6;
}
.info-card-icon.icon-purple { background: #f5f3ff; color: #8b5cf6; }
.info-card-icon.icon-green  { background: #EBF5F3; color: #3B9B8F; }
.info-card-icon.icon-orange { background: #FBF3E8; color: #C4881A; }
.info-card-body { flex: 1; min-width: 0; }
.info-card-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.info-card-desc { font-size: 12.5px; color: #94a3b8; margin-top: 4px; line-height: 1.45; }

/* --- 双列布局（左主右辅，参考截图4的消息列表+右侧面板） --- */
.split-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.split-layout .split-sidebar { position: sticky; top: 80px; align-self: start; }

/* --- 人员芯片行（参考截图5的未提交人员列表） --- */
.chip-row {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
}
.chip {
  display: inline-flex; align-items: center; padding: 5px 12px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text);
  transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* --- 平台图标标识（参考截图4消息列表的飞书/钉钉图标） --- */
.platform-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.platform-icon.feishu { background: linear-gradient(135deg, #3370ff, #00d6b9); }
.platform-icon.dingtalk { background: linear-gradient(135deg, #2f83ed, #1686fc); }
.platform-icon.wechat  { background: linear-gradient(135deg, #07c160, #06ae56); }
.platform-icon.email   { background: linear-gradient(135deg, #6366f1, #818cf8); }

/* --- 表格增强（更精致的表格行） --- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead th {
  background: #f8fafc; padding: 10px 14px; font-size: 12px;
  font-weight: 600; color: #64748b; text-transform: uppercase;
  letter-spacing: .03em; border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.data-table tbody td {
  padding: 12px 14px; font-size: 13.5px; color: var(--text);
  border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.data-table tbody tr:hover td { background: #F5F7FA; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* --- 响应式适配 --- */
@media (max-width: 1100px) {
  .stat-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout .split-sidebar { position: static; }
}
@media (max-width: 768px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-card .stat-value { font-size: 18px; }
  .page-head h2 { font-size: 16px; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .list-item { flex-wrap: wrap; }
  .list-item-action { width: 100%; margin-top: 8px; }
  .list-item-action .btn { width: 100%; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .stat-cards--horizontal .stat-card { flex-direction: column; align-items: flex-start; }
}

/* 漏斗图样式（确保无 v4 前缀也能生效） */
.funnel-chart { display:flex; flex-direction:column; gap:8px; }
.funnel-row { display:flex; align-items:center; gap:12px; }
.funnel-bar { flex:1; height:36px; border-radius:8px; display:flex; align-items:center; padding:0 12px; color:#fff; font-size:13px; font-weight:500; transition:width 0.6s ease; overflow:hidden; white-space:nowrap; }
.funnel-bar.blue   { background:linear-gradient(90deg, #4f46e5, #818cf8); }
.funnel-bar.green  { background:linear-gradient(90deg, #059669, #5BBFAA); }
.funnel-bar.orange { background:linear-gradient(90deg, #d97706, #D4A540); }
.funnel-bar.red    { background:linear-gradient(90deg, #b91c1c, #dc2626); color:#fff; text-shadow:0 1px 2px rgba(0,0,0,0.3); }
.funnel-count { font-size:15px; font-weight:700; width:48px; text-align:right; }

/* --- 培训总览·今日需关注（跨模块聚合） --- */
.dash-attn-urgent {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239,68,68,0.06), var(--bg-card) 40%);
}
.dash-attn-flag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.12);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 8px;
}

/* AI 操作日志 */
.ai-log-wrap { margin-top: var(--sp-4); }
.ai-log-table { overflow-x: auto; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; }
.ai-log-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ai-log-table thead { background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.ai-log-table th { padding: 8px 12px; text-align: left; font-weight: 600; color: #374151; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.ai-log-table td { padding: 6px 12px; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
.ai-log-table tbody tr:hover { background: #f9fafb; }

/* --- 系统操作日志（全系统审计） --- */
.oplog-card { padding: var(--sp-4, 16px); }
.oplog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.oplog-toolbar .input-sm { min-width: 160px; }
.oplog-total { font-size: 13px; color: #6b7280; margin-left: auto; font-weight: 600; }
.oplog-table { overflow-x: auto; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; }
.oplog-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.oplog-table thead { background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.oplog-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f9fafb;
}
.oplog-table td { padding: 9px 14px; border-bottom: 1px solid #f3f4f6; color: #4b5563; vertical-align: top; }
.oplog-table tbody tr:hover { background: #f9fafb; }
.oplog-table tbody tr:last-child td { border-bottom: none; }
.oplog-mod {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(67, 56, 205, 0.10);
  border: 1px solid rgba(67, 56, 205, 0.18);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* 考试指派区域 */
.exam-assign-area {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}
.exam-assign-toggle {
  cursor: pointer;
  color: #475569;
  font-size: 13px;
  padding: 4px 0;
  user-select: none;
}
.exam-assign-toggle:hover { color: #1e40af; }
.exam-assign-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.exam-assign-chk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.15s;
}
.exam-assign-chk:hover { background: #eff6ff; border-color: #93c5fd; }
.exam-assign-chk input[type="checkbox"] {
  accent-color: #4338ca;
  cursor: pointer;
}
.exam-assign-chk input:checked + * { font-weight: 600; color: #4338ca; }
/* 客服端：被指派的考试卡片高亮 */
.exam-card--assigned {
  border-left: 4px solid #4338ca;
  box-shadow: 0 0 0 1px rgba(67,56,205,0.15);
}

/* 智能体开启时优先保证右侧服务区可见；放在响应式规则之后避免被平台默认宽度覆盖。 */
@media (min-width: 769px) {
  .pdd-right-panel.has-agent-panel,
  .jd-right-panel.has-agent-panel,
  .dy-right-panel.has-agent-panel { width: 360px; min-width: 360px; display: flex; }
}
/* 金山打字通式测速面板 */
.typing-source-panel { font-size:20px; line-height:2; padding:22px; min-height:150px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; letter-spacing:.5px; user-select:none; }
.typing-source-panel span { display:inline-block; min-width:.55em; border-radius:3px; transition:color .1s,background .1s; }
.typing-char-pending { color:#334155; }
.typing-char-current { color:#1d4ed8; background:#dbeafe; box-shadow:inset 0 -2px #2563eb; }
.typing-char-ok { color:#15803d; background:#dcfce7; }
.typing-char-bad { color:#dc2626; background:#fee2e2; text-decoration:underline; }
.typing-progress { height:8px; margin:14px 0 10px; overflow:hidden; background:#e2e8f0; border-radius:999px; }
.typing-progress i { display:block; width:0; height:100%; background:linear-gradient(90deg,#2563eb,#22c55e); transition:width .15s; }
.typing-live { padding:10px 14px; background:#eff6ff; color:#475569; border-radius:9px; }
.typing-live b { color:#1d4ed8; font-size:19px; }
.typing-input-panel { margin-top:14px; font-size:20px; line-height:1.8; resize:vertical; }
