/* ============================================================
 * 智能电销 CRM 本地预览 —— 样式
 * 设计规范: 主色 #3377FF / 背景 #F3F4F8 / 正文 #0A1629
 * 白卡片 / 圆角 8px / Element UI 风格组件
 * ============================================================ */
:root {
  --primary: #3377FF;
  --primary-light: #EAF1FF;
  --primary-soft: #F5F8FF;
  --bg: #F3F4F8;
  --card: #FFFFFF;
  --text: #0A1629;
  --text-2: #4E5E71;
  --text-3: #8A94A6;
  --border: #E4E8EF;
  --danger: #F53F3F;
  --success: #2BB673;
  --warning: #F7A623;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(10,22,41,.04), 0 2px 8px rgba(10,22,41,.05);
  --shadow: 0 4px 16px rgba(10,22,41,.08);
  --shadow-lg: 0 12px 40px rgba(10,22,41,.16);
  --sidebar-w: 236px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 16px; height: 16px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CCD3DE; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= 登录页 ================= */
.login-page { display: flex; min-height: 100vh; }
.login-left {
  flex: 1.15; background: linear-gradient(135deg, #0A1629 0%, #12336F 55%, #1C4FD8 100%);
  color: #fff; padding: 56px 64px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.login-left::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(51,119,255,.32) 0%, rgba(51,119,255,0) 70%);
}
.login-left::after {
  content: ''; position: absolute; left: -80px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,182,165,.25) 0%, rgba(43,182,165,0) 70%);
}
.login-brand { position: relative; z-index: 1; }
.login-logo { font-size: 26px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.login-logo::before { content: ''; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #4C91FF, #1C5BEB); display: inline-block; box-shadow: 0 6px 18px rgba(51,119,255,.5); }
.login-brand-sub { margin-top: 10px; font-size: 12px; letter-spacing: 2.5px; color: rgba(255,255,255,.55); }
.login-hero { position: relative; z-index: 1; margin-top: auto; margin-bottom: 8vh; }
.login-hero h1 { font-size: 44px; line-height: 1.35; font-weight: 800; letter-spacing: 1px; }
.login-hero p { margin-top: 20px; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); }
.login-features { margin-top: 40px; display: grid; gap: 14px; }
.login-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.88); }
.lf-dot { width: 8px; height: 8px; border-radius: 50%; }
.lf-d1 { background: #4C91FF; box-shadow: 0 0 0 4px rgba(76,145,255,.18); }
.lf-d2 { background: #2BB6A5; box-shadow: 0 0 0 4px rgba(43,182,165,.18); }
.lf-d3 { background: #F7A623; box-shadow: 0 0 0 4px rgba(247,166,35,.18); }

.login-right { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 40px; }
.login-card { width: 420px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 40px 42px 28px; }
.login-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.login-tab { background: none; border: none; font-size: 15px; color: var(--text-2); padding: 0 2px 12px; cursor: pointer; position: relative; font-weight: 500; }
.login-tab.active { color: var(--text); font-weight: 700; }
.login-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.login-label { display: block; font-size: 13px; color: var(--text-2); margin: 18px 0 8px; }
.login-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 14px; height: 46px; background: #FBFCFE; transition: border-color .2s, box-shadow .2s; }
.login-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,119,255,.12); background: #fff; }
.login-input .licon { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.login-input input { flex: 1; border: none; outline: none; background: none; font-size: 14px; color: var(--text); height: 100%; }
.code-row { position: relative; }
.code-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--primary-light); color: var(--primary); border: none; border-radius: 6px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.code-btn:disabled { color: var(--text-3); background: #F0F2F6; }

.login-slider { margin-top: 24px; position: relative; height: 44px; background: #F0F3F8; border-radius: var(--radius); overflow: hidden; user-select: none; }
.slider-track { position: absolute; inset: 0; }
.slider-fill { position: absolute; inset: 0 50% 0 0; right: auto; width: 0; background: linear-gradient(90deg, #9DC1FF, var(--primary)); opacity: .9; border-radius: var(--radius); }
.slider-thumb {
  position: absolute; left: 2px; top: 2px; width: 40px; height: 40px; border-radius: 6px; background: #fff;
  box-shadow: 0 2px 8px rgba(10,22,41,.18), 0 0 0 1px rgba(10,22,41,.04);
  display: flex; align-items: center; justify-content: center; color: var(--primary); cursor: grab; z-index: 2; transition: box-shadow .15s;
}
.slider-thumb:active { cursor: grabbing; box-shadow: 0 4px 14px rgba(10,22,41,.28); }
.slider-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; letter-spacing: 2px; }
.login-submit { width: 100%; height: 46px; margin-top: 24px; background: linear-gradient(135deg, #4C91FF, #1C5BEB); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; letter-spacing: 6px; cursor: pointer; box-shadow: 0 8px 20px rgba(28,91,235,.28); transition: transform .15s, box-shadow .15s; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(28,91,235,.36); }
.login-submit:active { transform: translateY(0); }
.login-tips { margin-top: 22px; display: flex; justify-content: center; gap: 22px; }
.lt-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); }
.lt-item svg { width: 13px; height: 13px; color: var(--success); }
.login-meta { margin-top: 26px; text-align: center; font-size: 11px; color: #B6BFCE; }

/* ================= 主框架 ================= */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column;
  flex-shrink: 0; transition: width .25s ease, margin-left .25s ease; z-index: 20;
}
.app.collapsed .sidebar { margin-left: calc(-1 * var(--sidebar-w)); }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #4C91FF, #1C5BEB); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(28,91,235,.32); flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { line-height: 1.25; }
.brand-text b { font-size: 16px; letter-spacing: .5px; display: block; }
.brand-text span { font-size: 10px; color: var(--text-3); letter-spacing: 1.8px; }
.menu { flex: 1; overflow-y: auto; padding: 6px 10px 20px; }
.menu-item { position: relative; }
.menu-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); cursor: pointer;
  color: var(--text-2); font-size: 14px; text-decoration: none; transition: all .15s; user-select: none;
}
.menu-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.menu-link:hover { background: #F5F7FB; color: var(--text); }
.menu-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.menu-arrow { margin-left: auto; width: 14px; height: 14px; transition: transform .2s; color: var(--text-3); }
.menu-item.open > .menu-arrow { transform: rotate(180deg); }
.menu-item.open .menu-link { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.menu-sub { display: none; padding: 4px 0 6px; }
.menu-item.open .menu-sub { display: block; }
.menu-sub-link { display: block; padding: 8px 12px 8px 42px; border-radius: 6px; color: var(--text-2); font-size: 13.5px; cursor: pointer; text-decoration: none; transition: all .15s; }
.menu-sub-link:hover { color: var(--primary); background: var(--primary-soft); }
.menu-sub-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.menu-item.menu-gap { margin-top: 6px; border-top: 1px solid #F0F2F6; padding-top: 6px; }
.sidebar-foot { padding: 12px 10px; border-top: 1px solid var(--border); }
.sidebar-foot a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--text-2); text-decoration: none; font-size: 13px; }
.sidebar-foot a:hover { background: #F5F7FB; color: var(--primary); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; z-index: 10; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.collapse-btn { width: 34px; height: 34px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); transition: all .15s; }
.collapse-btn:hover { color: var(--primary); border-color: var(--primary); }
.crumb { font-size: 15px; font-weight: 600; }
.crumb .sep { margin: 0 8px; color: var(--text-3); font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.tb-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: var(--radius); cursor: pointer; color: var(--text-2); transition: background .15s; font-size: 13px; }
.tb-item:hover { background: #F5F7FB; color: var(--text); }
.tb-item svg { width: 18px; height: 18px; }
.tb-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.config-chip { background: var(--primary-soft); border: 1px solid #E3EDFF; color: var(--primary); font-weight: 500; }
.config-chip:hover { background: var(--primary-light); }
.config-pct { font-style: normal; background: var(--primary); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.avatar .avatar-badge { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #4C91FF, #1C5BEB); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.tb-user { font-weight: 500; color: var(--text); }
.caret { width: 13px; height: 13px; color: var(--text-3); }

/* 下拉菜单面板 */
.popper { position: fixed; z-index: 3000; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid #EEF1F6; min-width: 180px; padding: 6px; animation: popIn .14s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.popper-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.popper-item:hover { background: var(--primary-soft); color: var(--primary); }
.popper-item.danger:hover { background: #FFF1F1; color: var(--danger); }
.popper-item svg { width: 15px; height: 15px; }
.popper-title { padding: 8px 12px 6px; font-size: 11px; color: var(--text-3); letter-spacing: 1px; }

/* 用户下拉菜单头部 */
.user-menu-head { padding: 14px 14px 10px; }
.user-menu-head-top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.um-phone { font-size: 15px; letter-spacing: .3px; }
.um-badge { display: inline-flex; align-items: center; background: linear-gradient(135deg, #FFCF6B, #F5A623); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; line-height: 1; }
.user-menu-head-mid { display: flex; align-items: center; gap: 8px; }
.um-role { display: inline-flex; align-items: center; background: #F5F7FA; color: var(--text-2); font-size: 12px; padding: 3px 10px; border-radius: 4px; border: 1px solid #E8EBF0; }
.um-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: 12px; color: var(--text-2); cursor: pointer; border: 1px solid #E8EBF0; background: #F5F7FA; transition: all .15s; }
.um-status:hover { border-color: var(--primary); color: var(--primary); }
.um-status.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.user-menu-sep { height: 1px; background: #F0F2F7; margin: 2px 8px; }
.user-menu-corp { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--text); font-weight: 500; }
.user-menu-corp svg { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }

/* 用户菜单面板 */
.popper.user-menu { min-width: 280px; padding: 0; overflow: hidden; }
.popper.user-menu .popper-item { padding: 0; }
.um-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13.5px; color: var(--text); cursor: pointer; transition: background .12s; }
.um-item:hover { background: var(--primary-soft); color: var(--primary); }
.um-item.danger:hover { background: #FFF1F1; color: var(--danger); }
.um-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.um-item .um-arrow { width: 14px; height: 14px; color: var(--text-3); margin-left: auto; flex-shrink: 0; }
.um-item:hover .um-arrow { color: currentColor; }

/* ================= 内容区 ================= */
.content { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.page-sub { margin-top: 6px; font-size: 13px; color: var(--text-3); line-height: 1.6; max-width: 780px; }
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(51,119,255,.25); }
.btn.primary:hover { background: #2B6BF0; }
.btn.text { border-color: transparent; background: none; color: var(--primary); }
.btn.text:hover { background: var(--primary-light); }
.btn svg { width: 14px; height: 14px; }
.btn.danger { color: var(--danger); border-color: #FFD9D9; }

.card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #F1F3F8; }
.card-head h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.card-body { padding: 18px; }

/* 筛选区域 */
.filter-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; padding: 16px 18px; }
.filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-item label { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: .2px; }
.filter-control { display: flex; align-items: center; height: 36px; border: 1px solid #DDE4EF; border-radius: 6px; background: #FAFBFE; padding: 0 11px; font-size: 13px; color: var(--text); gap: 6px; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; position: relative; }
.filter-control:hover { border-color: #B9C6E0; background: #fff; }
.filter-control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,119,255,.1); background: #fff; }
.filter-control input { border: none; outline: none; flex: 1; font-size: 13px; color: var(--text); background: none; width: 100%; }
.filter-control input::placeholder { color: #A9B4C6; }
.filter-control .fc-icon { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.filter-tip { padding: 12px 18px 2px; font-size: 12.5px; color: var(--text-3); }
.filter-actions { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid #F0F2F7; justify-content: flex-start; }
.filter-actions .spacer { flex: 1; }

/* 状态卡 Tab */
.stage-tabs { display: flex; gap: 0; padding: 0 6px; overflow-x: auto; }
.stage-tab { padding: 13px 18px 12px; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; text-align: center; min-width: 88px; }
.stage-tab:hover { background: var(--primary-soft); }
.stage-tab.active { background: var(--primary); border-bottom-color: var(--primary); border-radius: 6px; }
.stage-tab .st-name { font-size: 13px; color: var(--text-2); }
.stage-tab.active .st-name { color: #fff; font-weight: 600; }
.stage-tab .st-num { font-size: 20px; font-weight: 700; margin-top: 3px; color: var(--text); }
.stage-tab.active .st-num { color: #fff; }

/* Element UI 风格 Tabs（水平，备用） */
.el-tabs { background: var(--card); border-radius: var(--radius); }
.el-tabs__bar { display: flex; border-bottom: 1px solid var(--border); padding: 0 8px; }
.el-tab { padding: 13px 18px 12px; cursor: pointer; font-size: 13.5px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; white-space: nowrap; }
.el-tab:hover { color: var(--text-2); }
.el-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.el-tab-panel { display: none; }
.el-tab-panel.active { display: block; animation: fadeIn .2s ease; }

/* 垂直侧边栏 Tabs */
.v-tabs-layout { display: flex; gap: 0; min-height: 400px; }
.v-tabs-sidebar { width: 180px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 12px 0; }
.v-tab { padding: 12px 18px; cursor: pointer; font-size: 14px; color: var(--text-2); border-left: 3px solid transparent; transition: all .15s; }
.v-tab:hover { background: var(--primary-soft); color: var(--text); }
.v-tab.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.v-tabs-content { flex: 1; padding: 20px 24px; }
.v-tab-panel { display: none; }
.v-tab-panel.active { display: block; animation: fadeIn .2s ease; }

/* el 风格表格 */
.el-table-wrap { overflow-x: auto; }
.el-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.el-table th { background: #FAFBFD; color: var(--text-2); font-weight: 500; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12.5px; }
.el-table td { padding: 12px 14px; border-bottom: 1px solid #F1F3F8; color: var(--text); white-space: nowrap; }
.el-table tbody tr { transition: background .12s; }
.el-table tbody tr:hover { background: #F7FAFF; }
.el-table .cell-phone { color: var(--primary); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.el-table .cell-phone:hover { text-decoration: underline; }
.el-table .cell-btn { color: var(--primary); cursor: pointer; }
.el-table .cell-btn:hover { text-decoration: underline; }

.td-more { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; color: var(--text-3); cursor: pointer; transition: all .15s; }
.td-more:hover { background: var(--primary-light); color: var(--primary); }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 5px; font-size: 12px; line-height: 1.6; }
.tag.blue { background: var(--primary-light); color: var(--primary); }
.tag.gray { background: #F2F4F8; color: var(--text-2); }
.tag.green { background: #E8F8F0; color: var(--success); }
.tag.orange { background: #FDF3E3; color: #D98A11; }
.tag.red { background: #FFEFEF; color: var(--danger); }

.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 14px 18px; }
.pg { min-width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 0 9px; }
.pg.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg.disabled { opacity: .45; cursor: not-allowed; }
.pg-info { margin-right: 10px; font-size: 13px; color: var(--text-2); }

/* KPI 统计卡 */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: var(--card); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi-card::after { content: ''; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(51,119,255,.09), transparent 70%); }
.kpi-card .k-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.kpi-card .k-label .k-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.kpi-card .k-label .k-ico svg { width: 16px; height: 16px; }
.k-ico.i-blue { background: var(--primary-light); color: var(--primary); }
.k-ico.i-green { background: #E8F8F0; color: var(--success); }
.k-ico.i-orange { background: #FDF3E3; color: #D98A11; }
.k-ico.i-purple { background: #F2EEFF; color: #7A5AF8; }
.kpi-card .k-value { font-size: 30px; font-weight: 800; margin-top: 12px; letter-spacing: -.5px; }
.kpi-card .k-unit { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.kpi-card .k-sub { margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* 双列统计 */
.stat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed #EEF1F6; font-size: 13.5px; }
.stat-row:last-child { border-bottom: none; }
.stat-row .sr-label { color: var(--text-2); }
.stat-row .sr-val { font-weight: 600; }

/* 占比条 */
.ratio-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 12px 0; }
.ratio-seg { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; }

/* 简单条形图 */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 60px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .bar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { height: 8px; background: #F0F3F8; border-radius: 4px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4C91FF, #1C5BEB); }

/* 对话卡片（沟通分析） */
.dialog-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #fff; transition: box-shadow .2s; }
.dialog-card:hover { box-shadow: var(--shadow); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #FAFBFD; border-bottom: 1px solid #F1F3F8; gap: 14px; flex-wrap: wrap; }
.dialog-cust { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dialog-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #4C91FF, #1C5BEB); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.dialog-cust b { font-size: 14px; display: block; }
.dialog-cust span { font-size: 12.5px; color: var(--text-3); }
.dialog-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.dialog-meta .dir { color: var(--primary); font-weight: 600; }
.dialog-body { padding: 18px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
@media (max-width: 1100px) { .dialog-body { grid-template-columns: 1fr; } }
.win-score { background: linear-gradient(160deg, #F5F8FF, #EEF4FF); border-radius: 10px; padding: 18px; text-align: center; }
.win-score .ws-title { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 5px; }
.win-ring { width: 120px; height: 120px; margin: 14px auto 6px; position: relative; }
.win-ring svg { width: 100%; height: 100%; }
.win-ring .ws-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.win-ring .ws-num b { font-size: 30px; font-weight: 800; color: var(--primary); }
.win-ring .ws-num span { font-size: 11px; color: var(--text-3); }
.win-rank { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.dialog-analy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.an-block { background: #FAFBFD; border-radius: 8px; padding: 12px 14px; }
.an-block h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.an-block h4 svg { width: 14px; height: 14px; }
.an-block p { font-size: 13px; line-height: 1.75; color: var(--text-2); }
.an-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.an-chip { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 4px 10px; border-radius: 14px; }
.an-chip.warn { background: #FDF3E3; color: #B97714; }
.an-stage { display: inline-flex; align-items: center; gap: 6px; background: #F2EEFF; color: #7A5AF8; font-size: 12.5px; padding: 5px 12px; border-radius: 16px; font-weight: 500; }

/* 集成导入拖拽区 */
.upload-zone { border: 2px dashed #C9D5EA; border-radius: 12px; padding: 40px 20px; text-align: center; background: #FAFCFE; transition: all .2s; cursor: pointer; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone .uz-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.upload-zone .uz-ico svg { width: 24px; height: 24px; }
.upload-zone b { font-size: 15px; }
.upload-zone p { margin-top: 6px; color: var(--text-3); font-size: 13px; }
.rule-list { margin-top: 14px; display: grid; gap: 8px; }
.rule-item { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.rule-item .ri-num { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* 任务包（外呼） */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pack-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; transition: all .2s; cursor: pointer; }
.pack-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.pack-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,119,255,.12); }
.pack-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pack-source { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.pack-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.pack-stat { text-align: center; background: #FAFBFD; border-radius: 8px; padding: 8px 4px; }
.pack-stat b { display: block; font-size: 17px; font-weight: 700; }
.pack-stat span { font-size: 11px; color: var(--text-3); }

/* 数据统计条（外呼） */
.summ-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.summ-item { background: #FAFBFD; border-radius: 10px; padding: 14px 16px; }
.summ-item .sm-label { font-size: 12px; color: var(--text-3); }
.summ-item .sm-val { font-size: 22px; font-weight: 700; margin-top: 6px; }
.summ-item .sm-val.green { color: var(--success); }

/* 三步流程（知识库/备案） */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { text-align: center; padding: 26px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; position: relative; transition: all .2s; }
.step-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.step-card .sc-num { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #4C91FF, #1C5BEB); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; box-shadow: 0 3px 8px rgba(28,91,235,.35); }
.step-icon { width: 54px; height: 54px; margin: 4px auto 14px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.step-icon svg { width: 26px; height: 26px; }
.step-card h4 { font-size: 15px; font-weight: 600; }
.step-card p { margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* 谈单助手 */
.talk-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media (max-width: 1200px) { .talk-wrap { grid-template-columns: 1fr; } }
.talk-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-group { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.btn-group button { border: none; background: #fff; padding: 0 14px; height: 34px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s; border-right: 1px solid var(--border); }
.btn-group button:last-child { border-right: none; }
.btn-group button:hover { color: var(--primary); }
.btn-group button.active { background: var(--primary); color: #fff; }
.talk-chat { background: #F7F9FC; border-radius: 12px; padding: 20px; min-height: 380px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.75; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg .msg-tag { display: block; font-size: 11px; color: var(--primary); margin-bottom: 5px; font-weight: 600; }
.talk-scenes { display: flex; flex-wrap: wrap; gap: 8px; }

/* 功能墙（查看报价） */
.wall-card { max-width: 640px; margin: 40px auto; text-align: center; padding: 48px 40px; }
.wall-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 22px; background: linear-gradient(135deg, #EAF1FF, #DCE9FF); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.wall-icon svg { width: 40px; height: 40px; }
.wall-card h2 { font-size: 22px; font-weight: 700; }
.wall-card p { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.wall-tag { display: inline-block; margin-top: 16px; background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.wall-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; }
.wall-benefits { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.wall-benefit { background: #FAFBFD; border-radius: 10px; padding: 14px; }
.wall-benefit h5 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.wall-benefit p { font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 0; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(10,22,41,.45); z-index: 2000; display: flex; align-items: center; justify-content: center; animation: fadeIn .15s ease; backdrop-filter: blur(2px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 14px; width: 480px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: popIn .18s ease; }
.modal.lg { width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-close { width: 28px; height: 28px; border-radius: 6px; border: none; background: #F4F6FA; color: var(--text-2); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #EDF0F5; color: var(--text); }
.modal-body { padding: 6px 22px; overflow-y: auto; }
.modal-foot { padding: 16px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.form-item { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 12.5px; color: var(--text-2); }
.form-item label .req { color: var(--danger); margin-left: 2px; }
.form-item input, .form-item textarea, .form-item select {
  height: 36px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; font-size: 13px; color: var(--text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-item textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; font-family: inherit; line-height: 1.7; }
.form-item input:focus, .form-item textarea:focus, .form-item select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,119,255,.12); }
.form-item .hint { font-size: 11.5px; color: var(--text-3); }
.form-item textarea + .counter { text-align: right; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn { padding: 5px 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff; font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: all .15s; }
.seg-btn:hover { color: var(--primary); border-color: var(--primary); }
.seg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #F2F4F8; }
.switch-row:last-child { border-bottom: none; }
.switch-row .sw-label { font-size: 13.5px; }
.switch-row .sw-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.switch { position: relative; width: 42px; height: 23px; background: #D3DAE6; border-radius: 12px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.switch.on { background: var(--primary); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on::after { left: 21px; }

/* Toast */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: #1E293B; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: popIn .2s ease; }
.toast .t-ico { color: #4ADE80; }
.toast.info .t-ico { color: #60A5FA; }
.toast.error .t-ico { color: #F87171; }

/* 进度环 */
.ring-bg { stroke: #E3EBFA; }
.ring-fg { stroke: var(--primary); transition: stroke-dashoffset .8s ease; }

/* 拨号盘 */
.dialer { position: fixed; right: 24px; bottom: 24px; width: 320px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(10,22,41,.28); z-index: 2600; overflow: hidden; animation: popIn .2s ease; border: 1px solid #EEF1F6; }
.dialer-head { background: linear-gradient(135deg, #0A1629, #1C3A75); color: #fff; padding: 18px 18px 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.dialer-num { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.dialer-name { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }
.dialer-close { background: rgba(255,255,255,.12); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.dialer-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.dialer-pad button { height: 58px; border: none; background: #F5F7FB; border-radius: 10px; font-size: 20px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .12s; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.dialer-pad button div { font-size: 10px; color: var(--text-3); font-weight: 400; }
.dialer-pad button:hover { background: var(--primary-light); color: var(--primary); }
.dialer-actions { padding: 0 14px 16px; display: flex; gap: 10px; }
.dialer-call { flex: 1; height: 42px; border: none; border-radius: 21px; background: linear-gradient(135deg, #2BB673, #1C9A5E); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.dialer-hangup { flex: 1; height: 42px; border: none; border-radius: 21px; background: var(--danger); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }

/* 员工卡片（人效） */
.emp-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 16px; }
.emp-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #F1F3F8; }
.wave { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-size: 12px; }
.wave i { width: 3px; height: 10px; background: var(--success); border-radius: 2px; animation: wave 1s ease infinite; }
.wave i:nth-child(2) { animation-delay: .15s; }
.wave i:nth-child(3) { animation-delay: .3s; }
@keyframes wave { 0%,100% { height: 7px; } 50% { height: 16px; } }

/* 沟通分析筛选双排 */
.filter-grid-2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 14px; padding: 14px 18px; }
@media (max-width: 1280px) { .filter-grid-2 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .filter-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* 详情抽屉式展示 */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.detail-item { display: flex; gap: 10px; font-size: 13px; }
.detail-item .di-label { color: var(--text-3); min-width: 80px; flex-shrink: 0; }
.detail-item .di-val { color: var(--text); font-weight: 500; }

.tip-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--primary-soft); border: 1px solid #E3EDFF; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.cfg-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--primary-soft); border: 1px solid #E3EDFF; border-radius: 10px; padding: 14px 10px; margin-bottom: 16px; }
.cfg-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.cfg-stat b { font-size: 18px; font-weight: 700; line-height: 1.1; }
.cfg-stat b i { font-style: normal; font-size: 11px; font-weight: 500; margin-left: 1px; }
.cfg-stat span { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.tip-banner svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.empty-line { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ============================================================
 * 移动端响应式适配 —— 全场景覆盖（max-width: 768px）
 * 保持主色 #3377FF 高级感，适配 iPhone/Android 主流视口
 * ============================================================ */

/* ---------- 根变量与触摸优化 ---------- */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
    --radius: 10px;
  }
  html { -webkit-tap-highlight-color: transparent; }
  body { font-size: 15px; overscroll-behavior-y: none; }

  /* ---------- 侧边栏：抽屉式折叠 ---------- */
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 280px;
    transform: translateX(-100%); margin-left: 0 !important;
    box-shadow: 4px 0 24px rgba(10,22,41,.18);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 2100;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed; inset: 0; background: rgba(10,22,41,.45);
    z-index: 2050; opacity: 0; pointer-events: none;
    transition: opacity .25s ease; backdrop-filter: blur(2px);
  }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }

  /* ---------- 顶部栏 ---------- */
  .topbar { height: 52px; padding: 0 14px; }
  .topbar-left { flex: 1; min-width: 0; }
  .crumb { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { flex-shrink: 0; }
  .tb-item { padding: 6px 8px; font-size: 12px; }
  .tb-item svg { width: 16px; height: 16px; }
  .tb-badge { top: 0; right: 0; min-width: 14px; height: 14px; font-size: 9px; }
  .tb-user { display: none; }
  .config-chip span, .config-chip .config-pct { display: none; }

  /* ---------- 内容区 ---------- */
  .content { padding: 14px 14px 24px; }
  .page-head { flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .page-title { font-size: 18px; }
  .page-sub { font-size: 12.5px; line-height: 1.5; }
  .page-actions { width: 100%; justify-content: flex-end; }

  /* ---------- 卡片通用 ---------- */
  .card { border-radius: 10px; margin-bottom: 12px; }
  .card-head { padding: 12px 14px; flex-wrap: wrap; gap: 8px 12px; }
  .card-body { padding: 14px; }

  /* ---------- 工具栏（客户管理等 card-head 双组布局） ---------- */
  .board-toolbar { width: 100%; }
  .board-toolbar .btn { flex: 0 1 auto; }
  .board-viewbar { width: 100%; flex-wrap: wrap; }

  /* ---------- 按钮 ---------- */
  .btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
  .btn svg { width: 16px; height: 16px; }
  .btn-group button { height: 36px; padding: 0 12px; font-size: 13px; }

  /* ---------- 筛选区：强制单列 ---------- */
  .filter-bar,
  .filter-grid-2 { grid-template-columns: 1fr !important; gap: 10px; padding: 12px 14px; }
  .filter-item { gap: 5px; }
  .filter-item label { font-size: 13px; }
  .filter-control { height: 42px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
  .filter-control input { font-size: 14px; }
  .filter-tip { padding: 10px 14px 0; font-size: 12px; }
  .filter-actions { padding: 12px 14px; flex-direction: column; gap: 8px; }
  .filter-actions .btn { width: 100%; justify-content: center; }

  /* ---------- 状态卡 Tab ---------- */
  .stage-tabs { padding: 0; gap: 4px; }
  .stage-tab { padding: 10px 12px 9px; min-width: 70px; }
  .stage-tab .st-name { font-size: 12px; }
  .stage-tab .st-num { font-size: 16px; }

  /* ---------- Element 风格 Tabs ---------- */
  .el-tabs__bar { padding: 0 6px; }
  .el-tab { padding: 11px 12px 10px; font-size: 13px; }

  /* ---------- 表格：横向滚动 + 紧凑 ---------- */
  .el-table-wrap { margin: 0; width: 100%; }
  .card-body .el-table-wrap { margin: 0 -14px; width: calc(100% + 28px); }
  .el-table { font-size: 13px; }
  .el-table th, .el-table td { padding: 10px 12px; white-space: nowrap; }
  .el-table th { font-size: 12px; }
  .pagination { padding: 10px 6px; gap: 3px; flex-wrap: nowrap; justify-content: center; }
  .pg { min-width: 24px; height: 27px; padding: 0 5px; font-size: 12px; border-radius: 5px; }
  .pg-info { font-size: 12px; margin-right: 2px; white-space: nowrap; }
  .pg-goto, .pg-more { display: none; }

  /* ---------- KPI 统计卡 ---------- */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
  .kpi-card { padding: 14px; border-radius: 10px; }
  .kpi-card .k-value { font-size: 24px; }
  .kpi-card .k-label { font-size: 12px; }

  /* ---------- 双列统计 ---------- */
  .stat-duo { grid-template-columns: 1fr; gap: 12px; }

  /* ---------- 条形图 ---------- */
  .bar-row { grid-template-columns: 70px 1fr 50px; gap: 8px; font-size: 12px; }

  /* ---------- 对话卡片（callAnalysis） ---------- */
  .dialog-card { border-radius: 10px; margin-bottom: 12px; }
  .dialog-head { padding: 12px 14px; gap: 10px; }
  .dialog-avatar { width: 32px; height: 32px; font-size: 13px; }
  .dialog-meta { gap: 8px; font-size: 12px; }
  .dialog-body { padding: 14px; grid-template-columns: 1fr; gap: 14px; }
  .win-ring { width: 100px; height: 100px; }
  .win-ring .ws-num b { font-size: 26px; }
  .an-block { padding: 10px 12px; }
  .an-block h4 { font-size: 12.5px; }
  .an-chip { font-size: 11.5px; padding: 3px 8px; }

  /* ---------- 任务包（外呼） ---------- */
  .pack-grid { grid-template-columns: 1fr; gap: 10px; }
  .pack-card { padding: 14px; }
  .pack-stats { grid-template-columns: repeat(2, 1fr); }

  /* ---------- 数据统计条 ---------- */
  .summ-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ---------- 三步流程 ---------- */
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step-card { padding: 20px 16px; }

  /* ---------- 谈单助手 ---------- */
  .talk-wrap { grid-template-columns: 1fr; gap: 12px; }
  .talk-chat { padding: 14px; min-height: 280px; }
  .msg { max-width: 88%; padding: 10px 13px; font-size: 14px; }

  /* ---------- 功能墙 ---------- */
  .wall-card { padding: 32px 20px; margin: 20px auto; }
  .wall-icon { width: 64px; height: 64px; border-radius: 18px; }
  .wall-icon svg { width: 30px; height: 30px; }
  .wall-card h2 { font-size: 18px; }
  .wall-benefits { grid-template-columns: 1fr; }

  /* ---------- 弹窗：接近全屏 ---------- */
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-width: 100%; max-height: 92vh;
    border-radius: 16px 16px 0 0; margin-top: auto;
    animation: slideUp .2s ease;
  }
  .modal.lg { width: 100%; }
  .modal-head { padding: 16px 18px 12px; }
  .modal-body { padding: 6px 18px; }
  .modal-foot { padding: 14px 18px 18px; }
  .modal-foot .btn { flex: 1; justify-content: center; }
  .cfg-stats { padding: 12px 4px; }
  .cfg-stat b { font-size: 16px; }
  .cfg-stat span { font-size: 10px; }
  @keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

  /* ---------- 表单 ---------- */
  .form-grid { grid-template-columns: 1fr; }
  .form-item { margin-bottom: 8px; }
  .form-item input, .form-item textarea, .form-item select { height: 42px; font-size: 14px; padding: 0 14px; }
  .form-item textarea { padding: 10px 14px; }

  /* ---------- 拨号盘 ---------- */
  .dialer { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 360px; border-radius: 14px; }
  .dialer-pad button { height: 52px; font-size: 18px; }

  /* ---------- 员工卡片 ---------- */
  .emp-head { padding: 12px 14px; flex-wrap: wrap; }

  /* ---------- 垂直侧边栏 Tabs ---------- */
  .v-tabs-layout { flex-direction: column; min-height: auto; }
  .v-tabs-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 8px 0; display: flex; overflow-x: auto; }
  .v-tab { padding: 10px 14px; border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13px; }
  .v-tab.active { border-left-color: transparent; border-bottom-color: var(--primary); }
  .v-tabs-content { padding: 14px; }

  /* ---------- Toast ---------- */
  .toast-wrap { top: 10px; width: calc(100% - 28px); left: 14px; right: 14px; transform: none; }
  .toast { width: 100%; justify-content: center; font-size: 13px; padding: 10px 14px; }

  /* ---------- 详情抽屉 ---------- */
  .detail-grid { grid-template-columns: 1fr; gap: 8px; }

  /* ---------- 占比条与图例 ---------- */
  .legend { gap: 8px 14px; }
  .legend-item { font-size: 12px; }

  /* ---------- 登录页：上下布局，登录框整屏居中骑跨蓝/白两色块 ---------- */
  .login-page { flex-direction: column; position: relative; }
  .login-left { flex: none; min-height: 50vh; padding: 44px 24px 20px; align-items: center; justify-content: flex-start; text-align: center; }
  .login-hero { display: none; }
  .login-brand { display: flex; flex-direction: column; align-items: center; }
  .login-logo { font-size: 24px; gap: 10px; }
  .login-brand-sub { margin-top: 8px; letter-spacing: 2px; }
  .login-right { position: absolute; inset: 0; background: transparent; padding: 0 18px; align-items: center; justify-content: center; }
  .login-card { position: relative; z-index: 2; width: 100%; max-width: 420px; padding: 20px 22px 14px; border-radius: 16px; }
  .login-tabs { margin-bottom: 12px; }
  .login-tab { padding: 0 2px 10px; }
  .login-label { margin: 10px 0 6px; }
  .login-input { height: 44px; }
  .login-slider { margin-top: 14px; height: 42px; }
  .login-submit { height: 44px; font-size: 14px; letter-spacing: 4px; }
  .login-tips { margin-top: 12px; }
  .login-meta { margin-top: 14px; }

  /* ---------- 底部安全区 ---------- */
  .filter-actions, .modal-foot, .dialer-actions {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .content { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* ---------- 超小屏（<= 375px）额外收紧 ---------- */
@media (max-width: 375px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .summ-bar { grid-template-columns: 1fr; }
  .pack-stats { grid-template-columns: repeat(2, 1fr); }
  .el-table th, .el-table td { padding: 8px 10px; font-size: 12px; }
  .stage-tab { padding: 8px 10px 7px; min-width: 60px; }
  .btn { height: 38px; padding: 0 12px; font-size: 13px; }
}
.sec-title { font-size: 14px; font-weight: 700; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }