/* 轻客 CRM 全局样式 */
:root {
  --primary: #3b6ef6;
  --primary-rgb: 59,110,246;
  --primary-light: #4f7cf7;
  --primary-strong: #2f5be0;
  --on-primary: #ffffff;
  --bg-soft: #fbfcff;
  --shadow-primary: rgba(59,110,246,.28);
  --primary-dark: #2b55d6;
  --primary-soft: #eef3ff;
  --accent: #12b3a0;
  --bg: #f6f8fd;
  --panel: #ffffff;
  --text: #1b2333;
  --muted: #6b7688;
  --line: #e7ebf3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 37, 84, .04), 0 10px 28px rgba(23, 37, 84, .055);
  --shadow-hover: 0 2px 6px rgba(23, 37, 84, .06), 0 18px 40px rgba(23, 37, 84, .12);
  --grad-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%);
  --grad-teal: linear-gradient(135deg, #2dd4bf, #12b3a0);
  --grad-warm: linear-gradient(135deg, #fbbf24, #f97316);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

.sidebar {
  width: 218px;
  flex: 0 0 218px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 20;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 600; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .5px; }

.nav-group { padding: 4px 10px 10px; }
.nav-group-title {
  font-size: 11px; color: #9aa3af; letter-spacing: 1px;
  padding: 10px 8px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 7px;
  color: #374151; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: #f5f7fb; color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; opacity: .75; flex: 0 0 16px; }
.nav-item.active svg { opacity: 1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
}
.page-title { font-size: 17px; font-weight: 600; margin: 0; }
.page-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.topbar-search { margin-left: auto; }
.topbar-search input {
  width: 210px; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 20px; font-size: 13px; background: #fff; outline: none;
}
.topbar-search input:focus { border-color: var(--primary); }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.user-meta { line-height: 1.25; }
.user-meta b { display: block; font-size: 13px; }
.user-meta span { font-size: 11px; color: var(--muted); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 34px rgba(23,37,84,.14); min-width: 178px; padding: 6px; z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; }
/* 触发器与菜单之间留 8px 视觉缝，用透明垫片补上，鼠标移过去不会"掉"出去 */
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  border: 0; background: none; font-size: 13px; color: var(--text);
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: #f5f7fb; }

.content { padding: 20px 22px 40px; max-width: 1500px; width: 100%; }

/* ---------------- 通用组件 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: all .15s;
}
.btn:hover { border-color: #cfd6e4; background: #fbfcfe; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }
.btn-danger { color: #b91c1c; border-color: #fecaca; background: #fff5f5; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px; }
.card-body.p0 { padding: 0; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-value {
  font-size: 23px; font-weight: 600; margin-top: 6px; letter-spacing: -.4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-value small { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 4px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe;
  white-space: nowrap;
}
.table td {
  padding: 11px 14px; border-bottom: 1px solid #f1f3f7;
  font-size: 13px; vertical-align: middle;
}
.table tbody tr:hover { background: #fafbfe; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.act-col { white-space: nowrap; }
.table td a { font-weight: 500; }

.muted { color: #a0a7b4; }
.num { font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 12px; line-height: 1.6; white-space: nowrap;
}
.b-blue { background: color-mix(in srgb, #0F7B6C 10%, #fff); color: #0F7B6C; }
.b-green { background: #ecfdf5; color: #047857; }
.b-amber { background: #fffbeb; color: #b45309; }
.b-red { background: #fef2f2; color: #b91c1c; }
.b-gray { background: #f3f4f6; color: var(--text-2); }
.b-violet { background: #f3f0ff; color: #6d28d9; }

.chip {
  display: inline-block; background: #f1f5f9; color: #475569;
  border-radius: 5px; padding: 1px 7px; font-size: 12px; margin-right: 4px;
}
.yes { color: #047857; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff;
}
.toolbar input[type=search], .toolbar select, .toolbar input[type=text] {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 13px; background: #fff; font-family: inherit; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); }
.toolbar .grow { flex: 1; }

.pager {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
}
.pager .pbtn {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--text); font-size: 12.5px;
}
.pager .pbtn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty .big { font-size: 15px; color: #9aa3af; margin-bottom: 10px; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.field label .req { color: #dc2626; margin-left: 2px; }
.field label .opt { color: #9a8a63; font-size: 10.5px; font-weight: 400; margin-left: 5px;
  background: #fbf6e9; border: 1px solid #efe2c2; border-radius: 5px; padding: 0 5px; }
.field input, .field select, .field textarea {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; font-family: inherit; color: var(--text); background: #fff; outline: none;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.14);
}
.field textarea { min-height: 88px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.form-actions {
  display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line);
  background: #fbfcfe;
}

/* ---------------- 详情 ---------------- */
.detail-head {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.detail-title { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.detail-sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.detail-head .actions { margin-left: auto; display: flex; gap: 8px; }

.summary-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.summary-item .k { font-size: 12px; color: var(--muted); }
.summary-item .v { font-size: 18px; font-weight: 600; margin-top: 2px; }

.detail-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.dfield { padding: 13px 16px; border-bottom: 1px solid #f1f3f7; }
.dfield.full { grid-column: 1 / -1; }
.dfield .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dfield .v { font-size: 13.5px; word-break: break-word; }
.pre { margin: 0; font-family: inherit; white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; }

.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; }
.tab {
  padding: 12px 14px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent;
  cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tabpane { display: none; }
.tabpane.active { display: block; }

.timeline { padding: 6px 18px 18px; }
.tl-item { position: relative; padding: 12px 0 12px 22px; border-left: 2px solid #eef1f6; }
.tl-item:before {
  content: ""; position: absolute; left: -6px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
}
.tl-head { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.tl-type {
  background: var(--primary-soft); color: var(--primary); border-radius: 5px;
  padding: 1px 7px; font-size: 11.5px;
}
.tl-content { margin-top: 6px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.tl-next { margin-top: 6px; font-size: 12.5px; color: var(--accent); }

/* ---------------- 看板 ---------------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col {
  flex: 0 0 232px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; max-height: 74vh;
  min-height: 300px;
}
.kanban-head { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.kanban-head .t { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.kanban-head .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.kcard {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  background: #fdfdff; font-size: 12.5px;
}
.kcard .n { font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--text); }
.kcard .m { color: var(--muted); font-size: 11.5px; margin-bottom: 6px; }
.kcard .a { color: #b45309; font-weight: 600; }

/* ---------------- 条形图 ---------------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-row .k { width: 110px; flex: 0 0 110px; color: var(--text-2); }
.bar-row .bar { flex: 1; height: 20px; background: #f1f4f9; border-radius: 5px; overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.bar-row .v { width: 62px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- 提示 ---------------- */
.flash-wrap { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  border: 1px solid transparent;
}
.flash.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.flash.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.flash.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.flash.info { background: color-mix(in srgb, #0F7B6C 8%, #fff); color: #0F7B6C; border-color: color-mix(in srgb, #0F7B6C 20%, #fff); }

/* ---------------- 登录页 ---------------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #e8efff 0%, #f4f6fa 45%, #f4f6fa 100%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .1); padding: 30px 30px 26px;
}
.login-card .brand { padding: 0 0 18px; }
.login-card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.login-card p.sub { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; padding: 10px; margin-top: 6px; }
.login-foot { margin-top: 18px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------------- 布局工具类 ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.grid-2 > .card { margin-top: 0; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  align-items: start;
}
.detail-layout > div > .card { margin-top: 0; }
.detail-layout > div > .card + .card { margin-top: 16px; }

/* ---------------- 响应式 ---------------- */
.menu-toggle { display: none; }
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .2s; box-shadow: 0 10px 40px rgba(0,0,0,.12);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-search input { width: 140px; }
  .content { padding: 14px; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media print {
  .sidebar, .topbar, .actions, .toolbar, .pager { display: none !important; }
  .content { padding: 0; }
  .card, .detail-head { box-shadow: none; }
}

/* ---------------- 进度条 ---------------- */
.progress { background: #eef2f7; border-radius: 999px; height: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary-dark)); border-radius: 999px; transition: width .3s; }

/* ---------------- 今日作战 ---------------- */
.act-row { display: flex; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: 0; }
.act-row:hover { background: #fafbfd; }
.act-flag { flex: 0 0 46px; text-align: center; font-size: 11.5px; padding: 3px 0; border-radius: 6px; font-weight: 600; }
.act-red { background: #fef2f2; color: #b91c1c; }
.act-amber { background: #fffbeb; color: #b45309; }
.act-blue { background: color-mix(in srgb, #0F7B6C 10%, #fff); color: #0F7B6C; }
.act-main { flex: 1; min-width: 0; }
.act-title { font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.act-side { display: flex; align-items: center; gap: 10px; }

/* ---------------- 周报 / 统计格 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-cell { background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.stat-cell .k { font-size: 12px; color: var(--muted); }
.stat-cell .v { font-size: 18px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------------- 月度趋势 ---------------- */
.trend-wrap { display: flex; align-items: flex-end; gap: 18px; height: 190px; padding: 8px 6px 0; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend-bars { display: flex; gap: 6px; align-items: flex-end; height: 100%; }
.trend-bar { width: 14px; border-radius: 4px 4px 0 0; transition: height .2s; }
.trend-bar.won { background: linear-gradient(180deg, #F6C33E, #E8A200); }
.trend-bar.rec { background: linear-gradient(180deg, #2dd4bf, #0d9488); }
.trend-label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .act-row { flex-wrap: wrap; }
  .trend-wrap { gap: 8px; }
}

/* ============================================================
   2.0 视觉升级层：柔和渐变、玻璃质感、微动效
   ============================================================ */
body {
  background:
    radial-gradient(900px 520px at 8% -6%, #e9f0ff 0%, rgba(233,240,255,0) 60%),
    radial-gradient(760px 460px at 98% 0%, #e6fbf7 0%, rgba(230,251,247,0) 55%),
    var(--bg);
  background-attachment: fixed;
  font-feature-settings: "tnum" 1;
}

/* 侧栏：玻璃 + 渐变 */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 60%, #f7f9ff 100%);
  border-right: 1px solid #e8edf7;
  box-shadow: 1px 0 0 rgba(255,255,255,.6);
}
.sidebar::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb),.05), rgba(var(--primary-rgb),0));
  pointer-events: none;
}
.brand { position: relative; z-index: 1; }
.brand-logo {
  background: linear-gradient(140deg, var(--primary-light) 0%, var(--primary) 55%, var(--accent) 100%);
  box-shadow: 0 6px 16px rgba(59, 110, 246, .30), inset 0 1px 0 rgba(255,255,255,.45);
  border-radius: 10px;
}
.brand-name { letter-spacing: .2px; }
.nav-group-title { color: #9aa6bd; font-weight: 600; }
.nav-item {
  border-radius: 10px; color: var(--text-2); position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { background: #f2f5fd; color: var(--text); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(100deg, var(--primary-soft), #f6f9ff);
  color: var(--primary); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb),.10);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: var(--grad-primary);
}

/* 顶栏：毛玻璃 */
.topbar {
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231,235,243,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 6px 18px rgba(23,37,84,.035);
}
.page-title {
  font-size: 18px; font-weight: 650; letter-spacing: -.2px;
  background: linear-gradient(92deg, var(--text) 0%, #33456b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.topbar-search input {
  border-radius: 999px; border-color: #e3e9f6; background: #f7f9fe;
  transition: box-shadow .18s, background .18s, border-color .18s;
}
.topbar-search input:focus {
  background: #fff; border-color: #b9caf9;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.10);
}
.avatar {
  background: linear-gradient(140deg, var(--primary-soft), #e4f7f4);
  color: var(--primary); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb),.12);
}

/* 卡片 */
.card {
  border-radius: var(--radius);
  border-color: #e8edf7;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-hover); }
}
.card-head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #fdfefe, #fff);
  border-bottom: 1px solid #eef2f9;
}
.card-head h3 { font-size: 14.5px; font-weight: 650; letter-spacing: -.1px; }

/* KPI：渐变数字 + 微光斑 */
.kpi {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border-color: #e8edf7; box-shadow: var(--shadow);
  background: linear-gradient(168deg, #ffffff 0%, #fbfdff 70%, #f6f9ff 100%);
}
.kpi::after {
  content: ""; position: absolute; right: -26px; top: -32px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb),.10), rgba(var(--primary-rgb),0) 70%);
}
.kpi-label { font-weight: 500; color: #78839a; }
.kpi-value {
  font-size: 24px; font-weight: 680; letter-spacing: -.6px;
  background: none; color: var(--text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi-value small {
  -webkit-text-fill-color: #7d8798; font-size: 12px; font-weight: 500;
}

/* 按钮 */
.btn {
  border-radius: 9px; border-color: #e2e8f5; background: #fff;
  box-shadow: 0 1px 2px rgba(23,37,84,.04);
  transition: all .18s ease;
}
.btn:hover { border-color: #cfd9ee; background: #fbfcff; box-shadow: 0 3px 10px rgba(23,37,84,.07); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-primary); border-color: transparent; color: var(--on-primary);
  box-shadow: 0 4px 14px var(--shadow-primary), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5b86ff, var(--primary) 50%, #2a58e0);
  box-shadow: 0 8px 22px var(--shadow-primary), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff;
}
.btn-danger { background: #fff6f6; border-color: #fbd5d5; }
.btn-danger:hover { background: #ffecec; }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { background: #f2f5fd; border-color: transparent; box-shadow: none; }

/* 表格：表头渐变 + 行左侧高亮 */
.table th {
  background: linear-gradient(180deg, #f8fafd, #f3f6fc);
  color: #76829a; font-weight: 600; letter-spacing: .1px;
  border-bottom: 1px solid #e9eefa;
  position: sticky; top: 0; z-index: 1;
}
.table td { border-bottom: 1px solid #f2f5fb; }
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: linear-gradient(90deg, var(--primary-soft), #fffdf8); }
.table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 #c9daff; }
.table td a { color: var(--primary-dark); }
.table td a:hover { color: #1e46c4; }

/* 徽标：更柔和的浅底 */
.badge { font-weight: 500; letter-spacing: .1px; }
.b-blue { background: var(--primary-soft); color: var(--primary-dark); }
.b-green { background: #e9fbf4; color: #0b8a68; }
.b-amber { background: #fff7e8; color: #b06a08; }
.b-red { background: #fef1f1; color: #c02b2b; }
.b-violet { background: #f4f0ff; color: #6b3fd4; }
.chip { background: #f2f5fb; color: #55617a; }

/* 进度条：渐变 + 内高光 */
.progress { background: #edf1f9; box-shadow: inset 0 1px 2px rgba(23,37,84,.05); height: 9px; }
.progress-bar {
  background: linear-gradient(90deg, var(--primary-light), var(--primary) 62%, var(--primary-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transition: width .45s cubic-bezier(.22,.9,.3,1);
}

/* 筛选工具栏 */
.toolbar { background: linear-gradient(180deg, #fdfefe, #fff); border-bottom-color: #eef2f9; }
.toolbar input[type=search], .toolbar select, .toolbar input[type=text] {
  border-radius: 9px; border-color: #e3e9f6; background: #fbfcff;
  transition: box-shadow .18s, border-color .18s, background .18s;
}
.toolbar input:focus, .toolbar select:focus {
  background: #fff; border-color: #b9caf9; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.10);
}

/* 表单控件 */
.field input, .field select, .field textarea {
  border-radius: 10px; border-color: #e3e9f6; background: #fff;
  transition: box-shadow .18s, border-color .18s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d3ddf0; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #93b0fb; box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.10);
}
.field label { color: #4a5670; }

/* 详情页头部 */
.detail-head {
  background: linear-gradient(160deg, #ffffff 0%, #fbfdff 65%, #f4f9ff 100%);
  border-color: #e8edf7; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-title { font-size: 20px; letter-spacing: -.3px; }
.summary-item .v { font-variant-numeric: tabular-nums; letter-spacing: -.2px; }

/* 空状态 */
.empty { padding: 56px 16px; }
.empty .big { font-size: 14.5px; color: var(--muted-2); }

/* 登陆页 */
.login-page {
  background:
    radial-gradient(900px 620px at 12% 4%, rgba(var(--primary-rgb),.10) 0%, rgba(var(--primary-rgb),0) 62%),
    radial-gradient(720px 480px at 92% 96%, rgba(var(--primary-rgb),.06) 0%, rgba(var(--primary-rgb),0) 60%),
    var(--bg);
}
.login-card {
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(23,37,84,.12), 0 2px 6px rgba(23,37,84,.05);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}

/* 页面进入微动效 */
@keyframes qk-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.content > * { animation: qk-rise .34s cubic-bezier(.22,.9,.3,1) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .07s; }
.content > *:nth-child(4) { animation-delay: .10s; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: #d8e0f0 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #dbe3f2; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #c6d2e8; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* 看板卡片 */
.kcard {
  border-radius: 11px; background: #fff; border-color: #e9eef8;
  box-shadow: 0 1px 2px rgba(23,37,84,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) { .kcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,37,84,.10); } }
.kanban-col { border-radius: var(--radius); border-color: #e8edf7; box-shadow: var(--shadow); }

/* 条形图 */
.bar-row .bar { background: #eef2f9; border-radius: 999px; height: 18px; }
.bar-row .bar span { background: linear-gradient(90deg, var(--primary-light), var(--primary) 70%, var(--primary-dark)); border-radius: 999px; }

/* 时间线 */
.tl-item { border-left-color: #e8eefb; }
.tl-item:before { border-color: #6f97ff; box-shadow: 0 0 0 3px rgba(111,151,255,.12); }
.tl-type { background: var(--primary-soft); color: var(--primary-dark); }

/* 提示条 */
.flash { border-radius: 10px; box-shadow: 0 2px 10px rgba(23,37,84,.05); }
.flash.ok { background: linear-gradient(100deg, #eafaf2, #f2fdf8); }
.flash.error { background: linear-gradient(100deg, #fdeeee, #fff6f6); }
.flash.info { background: linear-gradient(100deg, var(--primary-soft), var(--primary-soft)); }

/* 分页按钮 */
.pager .pbtn { border-radius: 8px; transition: all .16s; }
.pager .pbtn:hover { border-color: #c9d7f5; background: var(--primary-soft); }
.pager .pbtn.active {
  background: var(--grad-primary); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb),.25);
}

/* ============================================================
   命令面板（Ctrl+K 全局快搜）
   ============================================================ */
.search-trigger {
  display: flex; align-items: center; gap: 8px;
  min-width: 268px; padding: 7px 10px 7px 12px;
  border: 1px solid #e3e9f6; border-radius: 999px;
  background: #f7f9fe; color: var(--muted-2); font-size: 13px;
  font-family: inherit; cursor: pointer;
  transition: all .18s ease;
}
.search-trigger:hover { background: #fff; border-color: #cdd9f2; color: #59647c; box-shadow: 0 2px 10px rgba(23,37,84,.06); }
.search-trigger svg { width: 15px; height: 15px; flex: 0 0 15px; }
.search-trigger span { flex: 1; text-align: left; white-space: nowrap; }
.search-trigger kbd {
  font-family: inherit; font-size: 11px; color: #7c8799;
  background: #fff; border: 1px solid #e2e8f4; border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; letter-spacing: .3px;
}
@media (max-width: 900px) {
  .search-trigger { min-width: 0; width: 38px; padding: 7px 10px; }
  .search-trigger span, .search-trigger kbd { display: none; }
}

.cmdk-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(19, 28, 48, .34);
  backdrop-filter: blur(6px) saturate(120%);
  display: none; align-items: flex-start; justify-content: center;
  padding: 9vh 16px 16px;
}
.cmdk-overlay.open { display: flex; animation: cmdk-fade .18s ease both; }
@keyframes cmdk-fade { from { opacity: 0 } to { opacity: 1 } }
.cmdk {
  width: 100%; max-width: 640px; background: #fff;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(12, 22, 44, .28), 0 2px 8px rgba(12,22,44,.1);
  border: 1px solid rgba(255,255,255,.8);
  animation: cmdk-in .2s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.985) } to { opacity: 1; transform: none } }
.cmdk-top { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #eff3fa; }
.cmdk-top svg { width: 17px; height: 17px; color: #6f8ec9; flex: 0 0 17px; }
.cmdk-top input {
  flex: 1; border: 0; outline: 0; font-size: 15px; font-family: inherit; color: var(--text); background: transparent;
}
.cmdk-top input::placeholder { color: #a4adbd; }
.cmdk-top .esc { font-size: 11px; color: var(--muted-2); background: #f4f7fd; border-radius: 5px; padding: 2px 6px; cursor: pointer; }
.cmdk-body { max-height: 62vh; overflow-y: auto; padding: 8px; }
.cmdk-group-title {
  font-size: 11.5px; color: #93a0b6; font-weight: 600; letter-spacing: .5px;
  padding: 9px 10px 6px; text-transform: uppercase;
}
.cmdk-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border-radius: 10px; border: 0; background: none;
  text-align: left; cursor: pointer; font-family: inherit;
}
.cmdk-item .ic {
  flex: 0 0 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700;
}
.cmdk-item .tx { flex: 1; min-width: 0; }
.cmdk-item .t1 { display: block; font-size: 13.5px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .t2 { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .go { font-size: 11px; color: #a4adbd; }
.cmdk-item.sel, .cmdk-item:hover { background: linear-gradient(100deg, var(--primary-soft), var(--primary-soft)); }
.cmdk-item.sel .t1 { color: var(--primary-dark); }
.cmdk-empty { padding: 34px 16px 30px; text-align: center; color: var(--muted-2); font-size: 13px; }
.cmdk-empty b { display: block; font-size: 14.5px; color: #4a5670; margin-bottom: 6px; font-weight: 600; }
.cmdk-foot {
  display: flex; align-items: center; gap: 14px; padding: 9px 14px;
  border-top: 1px solid #eff3fa; background: #fbfcff;
  font-size: 11.5px; color: #97a2b4;
}
.cmdk-foot kbd {
  font-family: inherit; background: #fff; border: 1px solid #e4eaf5; border-bottom-width: 2px;
  border-radius: 4px; padding: 0 4px; margin-right: 3px; color: var(--muted);
}

/* ============================================================
   列表页：筛选折叠 / 表头排序 / 悬浮批量条 / 密度
   ============================================================ */
.list-card { overflow: visible; }
.list-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid #eef2f9;
  background: linear-gradient(180deg, #fdfefe, #fff);
  border-radius: var(--radius) var(--radius) 0 0;
}
.list-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.search-box {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid #e3e9f6; background: #fbfcff; border-radius: 999px;
  padding: 6px 13px; min-width: 240px; transition: all .18s ease;
}
.search-box:focus-within { background: #fff; border-color: #b9caf9; box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.10); }
.search-box svg { width: 14px; height: 14px; color: #8f9bb0; flex: 0 0 14px; }
.search-box input { border: 0; outline: 0; background: transparent; font-size: 13px; flex: 1; font-family: inherit; min-width: 120px; }
.filter-toggle { position: relative; }
.filter-toggle .fdot { width: 6px; height: 6px; border-radius: 50%; background: #c4cddf; display: inline-block; }
.filter-toggle.active .fdot { background: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.16); }
.filter-toggle .fcount {
  background: var(--primary); color: #fff; border-radius: 999px; font-size: 10.5px;
  padding: 0 5px; margin-left: 2px;
}
.filter-row {
  display: none; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--primary-soft); border-bottom: 1px solid #eef2f9;
}
.filter-row.is-open, .filter-row.force-open { display: flex; }
.filter-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #5b667c; }
.filter-item select {
  padding: 6px 10px; border: 1px solid #e0e7f5; border-radius: 8px;
  background: #fff; font-size: 12.5px; font-family: inherit; color: #2a3448;
  outline: none; min-width: 96px;
}
.filter-item select:focus { border-color: #a9bdf5; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.10); }
.list-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.sort-th { display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: 600; }
.sort-th:hover { color: var(--primary-dark); }
.sort-th.on { color: var(--primary-dark); }
.sort-ic { display: inline-flex; flex-direction: column; width: 8px; }
.sort-ic i { display: block; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.sort-ic i.up { border-bottom: 5px solid var(--primary); }
.sort-ic i.down { border-top: 5px solid var(--primary); }
.sort-ic i.idle { border-bottom: 4px solid #d7deeb; margin-bottom: 1px; }
.col-check { width: 38px; }
.col-check input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.col-act { width: 76px; }

.table.dense td { padding: 6px 14px; font-size: 12.5px; }
.table.dense th { padding: 7px 14px; }

.bulkbar {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 130%);
  z-index: 40; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid #e3eaf8; border-radius: 999px;
  padding: 9px 12px 9px 18px;
  box-shadow: 0 16px 44px rgba(20, 35, 70, .18), 0 2px 6px rgba(20,35,70,.06);
  transition: transform .26s cubic-bezier(.2,.9,.3,1), opacity .2s;
  opacity: 0; pointer-events: none;
}
.bulkbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bulk-count { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.bulk-count b { color: var(--primary-dark); font-size: 15px; }
.bulk-select {
  padding: 6px 10px; border: 1px solid #e1e8f6; border-radius: 8px;
  background: #fff; font-size: 12.5px; font-family: inherit; color: #2a3448; outline: none;
}
.sla-banner { border-left: 3px solid #dc2626; margin-bottom: 16px; }
.sla-banner .card-body { padding: 12px 16px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sla-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.empty-art { font-size: 34px; line-height: 1; margin-bottom: 10px; opacity: .55; }
.pager-total { font-size: 12.5px; color: var(--muted-2); }
.pager-page { font-size: 12.5px; }

/* ============================================================
   报价单
   ============================================================ */
.quote-sum {
  margin-left: auto; width: 320px; padding: 14px 18px 18px;
  border-top: 1px solid #eef2f9;
}
.qs-line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: #5b667c; }
.qs-line b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.qs-line.total { border-top: 1px dashed #dfe6f4; margin-top: 4px; padding-top: 10px; }
.qs-line.total span { font-weight: 600; color: var(--text); }
.qs-line.total b { font-size: 20px; color: var(--primary-dark); letter-spacing: -.5px; }
.quote-table input {
  width: 100%; border: 1px solid transparent; background: transparent;
  padding: 5px 7px; font-size: 13px; font-family: inherit; border-radius: 7px; outline: none;
  color: var(--text);
}
.quote-table input:hover { border-color: #e3e9f6; background: #fbfcff; }
.quote-table input:focus { border-color: #a9bdf5; background: #fff; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.10); }
.quote-table input.num { text-align: right; font-variant-numeric: tabular-nums; }
.quote-table td { padding: 6px 10px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select {
  padding: 7px 10px; border: 1px solid #e1e8f6; border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 13px; outline: none;
}
.quote-kpis .kpi-value { font-size: 22px; }

/* ============================================================
   消息偏好 / 顶栏待办 / 移动端
   ============================================================ */
.notif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid #e8edf7; border-radius: 11px; padding: 11px 13px;
  background: #fbfcff; cursor: pointer; transition: all .16s ease;
}
.notif-item:hover { border-color: #cfdcf8; background: #f6f9ff; }
.notif-item:has(input:checked) { border-color: #b9caf9; background: linear-gradient(100deg, #f1f6ff, #fbfdff); }
.notif-item input { width: 15px; height: 15px; accent-color: var(--primary); margin-top: 2px; }
.notif-item b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.notif-item em { display: block; font-style: normal; font-size: 12px; color: var(--muted-2); margin-top: 3px; }

.todo-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; background: #fff5f5;
  border: 1px solid #ffe0e0; color: #c02b2b; font-size: 12px; font-weight: 500;
  transition: all .16s ease;
}
.todo-pill:hover { background: #ffecec; color: #a51f1f; box-shadow: 0 3px 10px rgba(192,43,43,.12); }
.todo-pill svg { width: 14px; height: 14px; }
.todo-pill b {
  background: #e03434; color: #fff; border-radius: 999px; font-size: 10.5px;
  min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 4px;
}

/* 移动端：紧凑、可滚动、第一列吸附 */
@media (max-width: 768px) {
  .content { padding: 12px 12px 28px; }
  .topbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .page-title { font-size: 16px; }
  .page-sub { font-size: 11px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 11px 12px; }
  .kpi-value { font-size: 19px; }
  .card-head { padding: 12px 13px; }
  .card-body { padding: 13px; }
  .list-head { padding: 10px 12px; }
  .search-box { min-width: 0; flex: 1; }
  .list-actions { margin-left: 0; width: 100%; }
  .list-actions .btn { flex: 1; justify-content: center; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 720px; }
  .table th, .table td { padding: 9px 10px; font-size: 12.5px; }
  .table th.col-check, .table td.col-check { position: sticky; left: 0; background: #fff; z-index: 2; }
  .table th.col-check { background: #f3f6fc; }
  .bulkbar { left: 10px; right: 10px; transform: translate(0, 130%); width: auto; border-radius: 14px; flex-wrap: wrap; padding: 10px 12px; }
  .bulkbar.show { transform: translate(0, 0); }
  .detail-head { flex-direction: column; gap: 10px; }
  .detail-head .actions { margin-left: 0; flex-wrap: wrap; }
  .summary-strip { gap: 18px; }
  .notif-grid { grid-template-columns: 1fr; }
  .quote-sum { width: 100%; }
  .form-actions { flex-wrap: wrap; }
  .topbar .todo-pill span { display: none; }
}

/* ============================================================
   经营驾驶舱
   ============================================================ */
.cockpit-kpis .kpi-foot { margin-top: 6px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.delta { font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: #0b8a68; background: #e9fbf4; }
.delta.down { color: #c02b2b; background: #fef1f1; }
.legend span { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; font-size: 12px; color: #7c8799; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-blue { background: var(--primary); }
.lg-teal { background: #12b3a0; }
.chart-box { padding: 0 4px; }
.line-chart { width: 100%; height: 232px; display: block; }
.chart-labels { display: flex; justify-content: space-between; padding: 0 22px; margin-top: -8px; }
.chart-labels span { font-size: 12px; color: var(--muted-2); }
.chart-sum { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #eef2f9; }
.cs-col { text-align: center; }
.cs-col .cs-m { display: block; font-size: 11px; color: #a2abbd; }
.cs-col b { display: block; font-size: 12.5px; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cs-col em { display: block; font-style: normal; font-size: 11px; color: #12a08f; }
.rate-pill { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.rate-pill.good { background: #e9fbf4; color: #0b8a68; }
.rate-pill.mid { background: #fff7e8; color: #b06a08; }
.rate-pill.low { background: #fef1f1; color: #c02b2b; }
.risk-list { display: flex; flex-direction: column; gap: 8px; }
.risk-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid #eef2f9; background: #fbfcff;
  color: var(--text-2); font-size: 13px; transition: all .16s ease;
}
.risk-item:hover { background: #fff; border-color: #dde6f7; box-shadow: 0 4px 14px rgba(23,37,84,.07); color: var(--text); }
.risk-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.risk-item.red .risk-dot { background: #e03434; box-shadow: 0 0 0 4px rgba(224,52,52,.12); }
.risk-item.amber .risk-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
.risk-k { flex: 1; }
.risk-n { font-size: 17px; font-weight: 680; color: var(--text); font-variant-numeric: tabular-nums; }
.risk-s { font-size: 12px; color: #c02b2b; }
.team-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 13px; }
.team-name { width: 104px; flex: 0 0 104px; color: #2a3448; }
.team-name em { display: block; font-style: normal; font-size: 11px; color: #a2abbd; }
.team-bar { flex: 1; height: 12px; background: #eef2f9; border-radius: 999px; overflow: hidden; }
.team-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 999px; }
.team-v { width: 92px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.team-f { width: 62px; text-align: right; font-size: 11.5px; color: var(--muted-2); }
.stage-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.stage-k { width: 62px; flex: 0 0 62px; color: var(--text-2); }
.stage-bar { flex: 1; height: 12px; background: #eef2f9; border-radius: 999px; overflow: hidden; }
.stage-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8fe3d6, #12b3a0); border-radius: 999px; }
.stage-c { width: 46px; text-align: right; color: var(--muted-2); font-size: 12px; }
.stage-s { width: 92px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 900px) {
  .chart-sum { grid-template-columns: repeat(3, 1fr); }
  .team-name { width: 78px; flex: 0 0 78px; }
  .team-f { display: none; }
}

@media (max-width: 768px) {
  .topbar { flex-wrap: nowrap; }
  .topbar > div:not(.topbar-search):not(.dropdown) { min-width: 0; flex: 1 1 auto; }
  .page-title, .page-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .user-meta { display: none; }
  .topbar .dropdown > div { gap: 0 !important; }
  .topbar .todo-pill { padding: 5px 8px; }
}

/* ============================================================
   登录页 v2：品牌 + 表单双栏
   ============================================================ */
.login-page.v2 { padding: 34px 22px; }
.login-shell {
  display: grid; grid-template-columns: 1.05fr .95fr;
  width: min(1040px, 100%); min-height: 600px;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(20, 35, 70, .16), 0 2px 8px rgba(20,35,70,.05);
  border: 1px solid rgba(255,255,255,.9);
}
.login-hero {
  position: relative; overflow: hidden; padding: 34px 38px;
  background: linear-gradient(150deg, #1479CE 0%, #2E9BF0 46%, #62C7FB 100%);
  color: #fff; display: flex; flex-direction: column;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.hero-glow.a { width: 320px; height: 320px; right: -90px; top: -120px; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.hero-glow.b { width: 260px; height: 260px; left: -80px; bottom: -110px; background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0) 70%); }
.hero-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-logo.lg { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); font-size: 17px; }
.hero-brand { font-size: 16px; font-weight: 650; letter-spacing: .4px; }
.hero-sub { font-size: 11px; color: rgba(255,255,255,.72); letter-spacing: 1.2px; margin-top: 2px; }
.hero-title { font-size: 36px; line-height: 1.35; margin: 46px 0 14px; letter-spacing: -1px; font-weight: 700; position: relative; z-index: 1; }
.hero-desc { font-size: 13.5px; line-height: 1.95; color: rgba(255,255,255,.94); margin: 0 0 30px; position: relative; z-index: 1; }
.hero-points { display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 1; }
.hp { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(4px); box-shadow: 0 6px 18px rgba(6,58,108,.18); }
.hp-dot { width: 7px; height: 7px; border-radius: 50%; background: #FFD34D; margin-top: 5px; box-shadow: 0 0 0 3px rgba(255,211,77,.32); flex: 0 0 7px; }
.hp b { display: block; font-size: 13px; font-weight: 600; }
.hp em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.92); margin-top: 3px; line-height: 1.6; }
.hero-foot { margin-top: auto; padding-top: 24px; font-size: 11.5px; color: rgba(255,255,255,.80); position: relative; z-index: 1; }
.login-card.v2 {
  padding: 46px 42px; max-width: none; width: auto; box-shadow: none; border: 0;
  border-radius: 0; display: flex; flex-direction: column; justify-content: center;
}
/* 3.7.10 登录卡右上角：创恒工业云 / 官网 小入口 */
.login-card.v2 { position: relative; }
.login-ext {
  position: absolute; top: 22px; right: 30px; z-index: 1;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted-2); letter-spacing: .2px;
}
.login-ext a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.login-ext a:hover { color: var(--primary-strong); border-color: var(--line); background: var(--bg-soft); }
.login-ext .ext-arrow { font-size: 10px; opacity: .55; }
.login-ext .ext-sep { color: var(--line); }
@media (max-width: 900px) {
  .login-ext { top: 14px; right: 14px; font-size: 11.5px; }
  .login-ext a { padding: 3px 6px; }
}

/* 3.7.9 登录页：公司主标志（取自官网透明底 logo），放在「欢迎回来」上方 */
.login-card .login-logo { margin: 0 0 26px; }
.login-card .login-logo img { height: 62px; width: auto; display: block; }
@media (max-width: 900px) {
  .login-card .login-logo { margin-bottom: 18px; }
  .login-card .login-logo img { height: 50px; }
}
.login-card.v2 h2 { font-size: 24px; letter-spacing: -.5px; }
.login-card.v2 p.sub { margin-bottom: 24px; }
.login-btn { padding: 11px; font-size: 14px; margin-top: 8px; }
.login-card.v2 .field { margin-bottom: 15px; }
.login-card.v2 .field input { padding: 11px 13px; font-size: 14px; }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-hero { padding: 26px 24px 22px; }
  .hero-title { font-size: 26px; margin: 24px 0 10px; }
  .hero-desc, .hero-points { display: none; }
  .hero-foot { padding-top: 14px; }
  .login-card.v2 { padding: 30px 24px 34px; }
}
.login-hero .brand-logo.lg { color: #fff; font-weight: 700; }

/* ============================================================
   关联对象可搜索选择器
   ============================================================ */
.refpick { position: relative; }
.refpick .ref-input { width: 100%; padding: 9px 34px 9px 12px; }
.refpick .ref-input.ref-invalid { border-color: #e03434; box-shadow: 0 0 0 3px rgba(224,52,52,.12); }
.ref-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #eff2f8; color: var(--muted-2); font-size: 13px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ref-clear:hover { background: #e4e9f4; color: var(--text-2); }
.ref-menu {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #e3e9f5; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(23,37,84,.16); padding: 6px; max-height: 280px; overflow: auto;
}
.ref-item {
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.ref-item:hover, .ref-item.on { background: var(--primary-soft); }
.ref-item b { font-size: 13px; color: var(--text); font-weight: 600; }
.ref-item em { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.ref-empty { padding: 12px 10px; font-size: 12.5px; color: var(--muted-2); }
.ref-hint { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.rh-ok { color: #12a08f; font-weight: 600; }
.rh-bad { color: #c02b2b; }
.rh-chip { background: var(--primary-soft); border: 1px solid #e3e9f5; border-radius: 999px; padding: 1px 8px; }

/* ============================================================
   快捷记录（顶栏按钮 + 移动 FAB + 浮层）
   ============================================================ */
.quick-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-soft), #e9fbf7);
  border: 1px solid #dbe6fb; color: var(--primary-dark); font-size: 12.5px; font-weight: 600;
  transition: all .16s ease;
}
.quick-btn svg { width: 15px; height: 15px; }
.quick-btn:hover { box-shadow: 0 6px 16px rgba(var(--primary-rgb),.18); transform: translateY(-1px); }
.quick-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #4d7df8, var(--primary-dark)); color: #fff;
  box-shadow: 0 12px 28px rgba(43,85,214,.34); display: none;
  align-items: center; justify-content: center;
}
.quick-fab svg { width: 22px; height: 22px; }
.ql-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 28, 52, .42); backdrop-filter: blur(6px); padding: 20px;
  animation: ql-fade .16s ease;
}
@keyframes ql-fade { from { opacity: 0 } to { opacity: 1 } }
.ql-card {
  width: min(520px, 100%); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 28, 61, .3); animation: ql-up .2s ease;
}
@keyframes ql-up { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }
.ql-head { position: relative; padding: 16px 20px 12px; border-bottom: 1px solid #eef2f9; }
.ql-head h3 { margin: 0; font-size: 16px; }
.ql-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted-2); }
.ql-close {
  position: absolute; right: 12px; top: 12px; width: 26px; height: 26px;
  border: 0; border-radius: 8px; background: #f3f5fa; color: var(--muted-2);
  font-size: 16px; cursor: pointer; line-height: 1;
}
.ql-close:hover { background: #e6ebf5; color: var(--text-2); }
#qlForm { padding: 14px 20px 18px; }
.ql-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ql-tab {
  flex: 1; text-align: center; padding: 7px; border-radius: 10px; cursor: pointer;
  border: 1px solid #e3e9f5; font-size: 13px; color: var(--muted); background: #fbfcff;
}
.ql-tab input { display: none; }
.ql-tab:has(input:checked) {
  background: var(--primary-soft); border-color: #c8dafc; color: var(--primary-dark); font-weight: 600;
}
.ql-field { margin-bottom: 11px; }
.ql-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.ql-field .req { color: #e03434; margin-left: 3px; }
.ql-field input, .ql-field select, .ql-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #dfe5f1; border-radius: 9px;
  font-size: 13px; color: var(--text); background: #fff; font-family: inherit;
}
.ql-field textarea { resize: vertical; }
.ql-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ql-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); margin: 2px 0 12px; }
.ql-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ql-msg { margin-right: auto; font-size: 12.5px; }
.ql-msg.ok { color: #0b8a68; }
.ql-msg.bad { color: #c02b2b; }
body.ql-open { overflow: hidden; }
@media (max-width: 768px) {
  .quick-btn { display: none; }
  .quick-fab { display: flex; }
  .ql-overlay { padding: 0; align-items: flex-end; }
  .ql-card { border-radius: 16px 16px 0 0; width: 100%; max-height: 92vh; overflow: auto; }
  .ql-row { grid-template-columns: 1fr; }
}
.ql-overlay[hidden] { display: none; }
.quick-fab[hidden] { display: none; }

/* ============================================================
   经营洞察
   ============================================================ */
.insight-top { display: grid; grid-template-columns: repeat(3, 150px) 1fr; gap: 12px; margin-bottom: 16px; }
.it-stat {
  background: #fff; border-radius: 14px; padding: 14px 16px;
  border: 1px solid #eef2f9; box-shadow: 0 2px 10px rgba(23,37,84,.04);
  display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
}
.it-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.it-stat.red::before { background: linear-gradient(180deg,#ff7a7a,#e03434); }
.it-stat.amber::before { background: linear-gradient(180deg,#ffc466,#f59e0b); }
.it-stat.blue::before { background: linear-gradient(180deg,#8bb0ff,var(--primary)); }
.it-stat b { font-size: 24px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.it-stat span { font-size: 12px; color: var(--muted-2); }
.it-note {
  background: linear-gradient(135deg, #f7f9ff, #f2fbf9); border: 1px solid #e6edfb;
  border-radius: 14px; padding: 14px 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.8;
}
.it-note b { color: var(--primary-dark); }

.insight-card {
  display: flex; background: #fff; border-radius: 14px; overflow: hidden;
  margin-bottom: 12px; border: 1px solid #eef2f9; box-shadow: 0 2px 10px rgba(23,37,84,.04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.insight-card:hover { box-shadow: 0 10px 26px rgba(23,37,84,.09); transform: translateY(-1px); }
.ic-bar { width: 5px; flex: 0 0 5px; }
.insight-card.red .ic-bar { background: linear-gradient(180deg,#ff8181,#e03434); }
.insight-card.amber .ic-bar { background: linear-gradient(180deg,#ffcb73,#f59e0b); }
.insight-card.blue .ic-bar { background: linear-gradient(180deg,#8db2ff,var(--primary)); }
.ic-body { padding: 15px 18px 14px; flex: 1; }
.ic-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.ic-kind {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #e0e9fd;
}
.insight-card.red .ic-kind { background: #fef1f1; color: #c02b2b; border-color: #f8dcdc; }
.insight-card.amber .ic-kind { background: #fff7e8; color: #b06a08; border-color: #f6e4c6; }
.ic-head h3 { margin: 0; font-size: 14.5px; color: var(--text); letter-spacing: -.2px; }
.ic-detail { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.ic-action {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600;
  color: var(--primary-dark); text-decoration: none; padding: 5px 11px; border-radius: 8px;
  background: var(--primary-soft); border: 1px solid #e0e9fd; transition: all .16s ease;
}
.ic-action:hover { background: #e8efff; box-shadow: 0 4px 12px rgba(43,85,214,.14); }
@media (max-width: 900px) {
  .insight-top { grid-template-columns: repeat(3, 1fr); }
  .it-note { grid-column: 1 / -1; }
  .ic-head { flex-wrap: wrap; }
}

/* 工作台上的经营提醒 */
.tip-list { display: flex; flex-direction: column; gap: 8px; }
.tip-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid #eef2f9; background: #fbfcff;
  text-decoration: none; color: var(--text-2); font-size: 13px; transition: all .16s ease;
}
.tip-item:hover { background: #fff; border-color: #dde6f7; box-shadow: 0 4px 14px rgba(23,37,84,.07); }
.tip-kind { font-size: 11px; padding: 2px 8px; border-radius: 999px; flex: 0 0 auto; background: var(--primary-soft); color: var(--primary-dark); }
.tip-item.red .tip-kind { background: #fef1f1; color: #c02b2b; }
.tip-item.amber .tip-kind { background: #fff7e8; color: #b06a08; }
.tip-title { flex: 1; color: var(--text); }
.tip-go { font-size: 12px; color: var(--primary-dark); font-weight: 600; flex: 0 0 auto; }
@media (max-width: 768px) { .tip-go { display: none } }
/* 批量操作条是 .content 的直接子元素，会被 qk-rise 入场动画的 fill-mode 覆盖掉
   opacity:0 / transform，导致"已选 0 条"常驻屏幕。这里把它排除在入场动画之外。 */
.content > .bulkbar { animation: none; }

/* 标签云：点一下就筛，不用记标签叫什么 */
.tag-cloud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 18px; border-bottom: 1px solid #f1f5fb; background: linear-gradient(180deg,#fcfdff,var(--primary-soft));
}
.tc-label { font-size: 12px; color: var(--muted-2); flex: 0 0 auto; }
.tc-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; text-decoration: none;
  padding: 3px 10px; border-radius: 999px; color: var(--text-2); background: #fff;
  border: 1px solid #e6ecf8; transition: all .16s ease;
}
.tc-chip i { font-style: normal; font-size: 11px; color: #9aa4b6; }
.tc-chip:hover { border-color: #b9cdf6; color: var(--primary-dark); box-shadow: 0 3px 10px rgba(43,85,214,.10); transform: translateY(-1px); }
.tc-chip.on { background: var(--primary-soft); border-color: #b9cdf6; color: var(--primary-dark); font-weight: 600; }
.tc-chip.on b { color: #8fa4cf; }
.btn-quick {
  background: #f1f6ff; border: 1px solid #dde8ff; color: var(--primary-dark); font-weight: 600;
}
.btn-quick:hover { background: #e5edff; border-color: #c7d8fb; }

/* 洞察卡上的"处理了/本月忽略" */
.ic-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic-mute {
  font-size: 12px; padding: 5px 11px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid #e6ecf8; color: var(--muted); font-family: inherit;
  transition: all .16s ease;
}
.ic-mute:hover { color: var(--primary-dark); border-color: #c7d8fb; background: var(--primary-soft); }
.ic-mute.ghost { color: #9aa4b6; }
.acked-card { margin-top: 16px; }
.acked-item { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #eef2f9; font-size: 12.5px; }
.acked-item:last-child { border-bottom: 0; }
.acked-key { font-weight: 600; color: var(--text-2); min-width: 92px; }
.acked-item .muted { flex: 1; }

/* 列表里的标签：单行不折字，多了折叠成 +N */
.chips { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chips .chip { white-space: nowrap; }
.chips .chip.more { background: #eef2f9; color: var(--muted-2); }
.col-act { width: 132px; }
.table .act-col { white-space: nowrap; }

/* 移动端：表格改成卡片列表，不用左右滑 */
.m-cards { display: none; }
@media (max-width: 768px) {
  .m-cards { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .m-card {
    background: #fff; border: 1px solid #eef2f9; border-radius: 12px; padding: 12px 13px;
    box-shadow: 0 2px 8px rgba(23,37,84,.04);
  }
  .m-card .mc-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
  .m-card .mc-title a { color: var(--text); text-decoration: none; }
  .m-card .mc-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 7px; font-size: 12px; color: var(--muted-2); align-items: center; }
  .m-card .mc-act { display: flex; gap: 8px; margin-top: 10px; }
  .table-wrap { display: none; }
  .list-actions .btn { white-space: nowrap; }
  .list-head .list-actions { flex-wrap: wrap; }
}

/* 标签 chip 可点击 → 直接按标签筛 */
.chips .chip-link { text-decoration: none; cursor: pointer; transition: all .14s ease; }
.chips .chip-link:hover { background: #e8efff; color: var(--primary-dark); border-color: #c7d8fb; }

/* 移动端：筛选改成底部抽屉，列表头只留「筛选 + 新建」两个主入口 */
@media (max-width: 768px) {
  .list-actions .density-btn,
  .list-actions a[href*="/export"],
  .list-actions a[href*="/import"] { display: none; }
  .list-actions { gap: 6px; }
  .list-head .list-search { flex-wrap: nowrap; }

  .filter-row {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: none; flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-radius: 18px 18px 0 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(15, 28, 61, .22);
    max-height: 78vh; overflow-y: auto;
  }
  .filter-row.is-open, .filter-row.force-open { display: flex; }
  .filter-row::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 999px; background: #dbe3f1;
  }
  .filter-item { justify-content: space-between; width: 100%; }
  .filter-item select { flex: 1; margin-left: 10px; }
  .filter-row .btn { width: 100%; }
  .filter-row .filter-close { display: block; }
}
.filter-close {
  display: none; position: absolute; right: 12px; top: 12px;
  border: 0; background: #f2f5fb; color: var(--muted); border-radius: 50%;
  width: 28px; height: 28px; font-size: 15px; line-height: 1; cursor: pointer;
}

/* 抽屉打开时隐掉右下角悬浮球，避免遮挡"应用筛选" */
body.filter-open .quick-fab { display: none !important; }
@media (max-width: 768px) {
  .filter-row { z-index: 70; }
  .filter-row .frow-actions { position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
}

/* ============================================================
   2.0 视觉柔顺化：阴影分层、统一缓动、数字对齐、细部过渡
   （整段追加在最后，只覆盖表现、不动布局）
   ============================================================ */
:root {
  --line-soft: #eef2f9;
  --line-hair: #f3f6fb;
  --shadow-sm: 0 1px 2px rgba(23, 37, 84, .035), 0 4px 12px rgba(23, 37, 84, .035);
  --shadow-md: 0 1px 2px rgba(23, 37, 84, .04), 0 10px 30px rgba(23, 37, 84, .05);
  --shadow-lg: 0 2px 8px rgba(23, 37, 84, .05), 0 20px 48px rgba(23, 37, 84, .09);
  --ease: cubic-bezier(.22, .8, .26, 1);
  --tab: cubic-bezier(.2, .7, .3, 1);
}

body {
  background: linear-gradient(180deg, #f8fafd 0%, #f4f7fd 42%, #f2f5fb 100%);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* 卡片：更轻的描边 + 分层阴影，hover 只抬一点，不"跳" */
.card, .detail-head, .auth-card {
  border-color: var(--line-soft);
  box-shadow: var(--shadow-md);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover, .detail-head:hover {
  box-shadow: var(--shadow-lg);
  border-color: #e9effa;
  transform: translateY(-1px);
}

/* 表格：行悬停淡入，分隔线更淡 */
table tbody tr { transition: background-color .16s var(--ease); }
table tbody tr:hover { background: var(--primary-soft); }
table thead th { letter-spacing: .02em; }
table td, table th { border-color: var(--line-hair); }
tbody tr td { border-bottom-color: var(--line-hair); }

/* 按钮 / 输入：统一缓动，颜色渐变而不是瞬变 */
.btn, button, .pbtn, select, input, textarea, .chip, .tab, .nav-item, .menu-item {
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .2s var(--ease), transform .16s var(--ease);
}
.btn:active, button:active, .pbtn:active { transform: translateY(.5px) scale(.995); }
input:focus, select:focus, textarea:focus {
  border-color: #b9cbf8 !important;
  box-shadow: 0 0 0 3px rgba(59, 110, 246, .09) !important;
}

/* 侧栏：选中态用微渐变，未选中 hover 只提亮一点 */
.sidebar { border-right-color: var(--line-soft); }
.sidebar a, .sidebar .nav-link { transition: background-color .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease); }
.sidebar a:hover, .sidebar .nav-link:hover { background: #f7f9ff; }
.sidebar .active, .sidebar a.active, .nav-item.active {
  background: linear-gradient(90deg, var(--primary-soft) 0%, var(--primary-soft) 100%);
}

/* 页面入场：位移更小、缓动更软，减少"弹"的感觉 */
.content > * { animation: qk-soft-in .5s var(--tab) both; }
.content > .bulkbar, .content > .filter-row { animation: none; }
@keyframes qk-soft-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

/* 金额与计数：等宽数字 + 轻微字重，看起来更"稳" */
.money, .amount, .kpi-value, .it-stat b, .pager-total, .summary-item .v,
td.num, .val-money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* 标签 chip 更柔和的状态过渡 */
.chip { border-color: #e9eefb; }
.chip:hover { background: #f4f7ff; border-color: #dbe6fd; }

/* 滚动条统一细柔 */
* { scrollbar-width: thin; scrollbar-color: #dfe6f2 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #e2e8f4; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #cfd9ea; }
::-webkit-scrollbar-track { background: transparent; }

/* 打印时不要动效，也不要阴影 */
@media print {
  * { animation: none !important; transition: none !important; box-shadow: none !important; }
}

/* 空态装饰：柔和的同心圆环，替代 emoji，风格与系统一致 */
.empty-art {
  width: 64px; height: 64px; margin: 0 auto 14px; display: flex;
  align-items: center; justify-content: center; font-size: 0; color: transparent;
}
.empty-art .ea-ring {
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f2f6fd 62%, #eaf1fc 100%);
  box-shadow: inset 0 0 0 1px #e6edf9, 0 6px 16px rgba(23, 37, 84, .05);
  position: relative; display: block;
}
.empty-art .ea-ring::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: linear-gradient(135deg, #cfe0ff, #b9cdfb);
  box-shadow: 0 2px 6px rgba(59, 110, 246, .18);
}

/* 可点标签：默认就给一点"可点"的颜色暗示，悬停再加深 */
.chips .chip-link { color: var(--primary-strong); background: #f4f7ff; }
.chips .chip-link:hover { color: #2447c4; background: #e9efff; }

/* 离职移交：内容多选卡片 + 客户勾选列表 */
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hk-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: #fbfcff;
  cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.hk-item:hover { border-color: #dfe8fb; background: var(--primary-soft); }
.hk-item input { margin-top: 2px; width: auto; }
.hk-item.hk-off { opacity: .55; background: #fafbfe; }
.hk-body { display: flex; flex-direction: column; gap: 3px; }
.hk-body b { font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hk-count {
  font-style: normal; font-size: 11.5px; color: var(--primary-strong); background: var(--primary-soft);
  border-radius: 999px; padding: 1px 8px; font-weight: 500;
}
.hk-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.hk-cust {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line-soft);
  border-radius: 12px; background: #fbfcff;
}
.hk-cust-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line-hair); font-size: 13px; cursor: pointer;
}
.hk-cust-item:last-child { border-bottom: 0; }
.hk-cust-item:hover { background: #f6f9ff; }
.hk-cust-item input { width: auto; }
.ci-name { font-weight: 600; color: var(--text); min-width: 180px; }
.ci-meta { color: var(--muted); font-size: 12.5px; }
.ci-time { margin-left: auto; color: #98a2b3; font-size: 12px; white-space: nowrap; }

.hk-steps { margin: 0; padding-left: 20px; color: #3b4658; line-height: 1.9; font-size: 13.5px; }
.hk-steps b { color: var(--text); }

/* 客户跟进进度（2.1）：阶段轨道 + 关键节奏指标 */
.prog-card { overflow: hidden; }
.prog-rhythm { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.prog-good { color: #0d7a5b; background: #e7f8f1; }
.prog-slow { color: #a16207; background: #fdf4e3; }
.prog-stop { color: #b91c1c; background: #fdeeee; }
.prog-rail {
  position: relative; height: 9px; border-radius: 999px; margin: 6px 0 0;
  background: #eef2f9;
}
.prog-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary) 60%, var(--primary-dark));
  transition: width .5s var(--ease);
}
.prog-dot {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb),.25);
}
.prog-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; margin-top: 8px; font-size: 12px; color: #a5adbb; }
.prog-legend span.on { color: var(--primary-strong); font-weight: 600; }
.prog-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.prog-stats .ps { background: var(--primary-soft); border-radius: 10px; padding: 9px 12px; }
.prog-stats .k { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.prog-stats .v { font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.prog-stats .v-bad, .prog-stats .v-bad { color: #b91c1c; }
.prog-stats .v-warn { color: #b45309; }
.prog-stats .v-ok { color: #0d7a5b; }
.prog-stats .v-muted { color: #98a2b3; font-weight: 500; }
@media (max-width: 640px) { .prog-stats { grid-template-columns: repeat(2, 1fr); } }

/* 客户列表：跟进提醒快捷筛选（2.1） */
.due-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.due-bar .tc-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.due-chip {
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
  background: #f4f7fe; color: #4c5a72; border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.due-chip:hover { background: #e9efff; color: var(--primary-strong); }
.due-chip.on { background: var(--primary-strong); color: #fff; border-color: var(--primary-strong); }
.due-clear { font-size: 12px; color: #98a2b3; }

/* 五级成员：汇报线缩进与权限说明（2.2） */
.org-line {
  width: 12px; height: 1px; background: #dbe3f1; margin-right: 4px; flex: none;
}
.org-depth { font-size: 11px; color: #98a2b3; margin-left: 6px; white-space: nowrap; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.role-item {
  background: var(--primary-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px;
}
.role-item b { display: block; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.role-item span { font-size: 12.3px; color: var(--muted); line-height: 1.6; }

/* 跨部门项目（2.2） */
.cross-stats { margin-bottom: 14px; }
.cross-item { padding: 14px 18px; border-bottom: 1px solid var(--line-hair); }
.cross-item:last-child { border-bottom: 0; }
.cross-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cross-name { font-weight: 600; font-size: 14px; color: var(--text); }
.cross-name:hover { color: var(--primary-strong); }
.cross-tag { font-size: 11.5px; color: #5b667a; background: #f1f4fb; border-radius: 6px; padding: 1px 8px; }
.cross-owner { font-size: 12.5px; color: var(--muted); }
.cross-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.cross-meta b { color: var(--text); }
.cross-note { margin-top: 6px; font-size: 12.5px; color: #7a6a3a; background: #fffaf0; border-radius: 8px; padding: 5px 10px; display: inline-block; }
.cross-acts { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.cross-act { display: flex; gap: 8px; font-size: 12.3px; color: #5b667a; }
.ca-type { color: var(--primary-strong); background: var(--primary-soft); border-radius: 5px; padding: 0 6px; flex: none; }
.ca-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-time { margin-left: auto; color: #98a2b3; flex: none; }
.cross-empty { text-align: center; padding: 34px 10px 16px; }
.cross-empty-ring {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  background: radial-gradient(circle at center, #fff 42%, #eaf0ff 43%, #eaf0ff 58%, #fff 59%);
  border: 1px solid #e3eaf8;
}
.cross-empty h3 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.cross-empty p { margin: 0 0 16px; font-size: 13px; line-height: 1.8; }

/* 跨部门：跨出→跨到 与业绩归属条（2.3） */
.cross-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.flow-side { font-size: 12.5px; color: var(--text-2); background: #f3f6fd; border-radius: 8px; padding: 4px 10px; }
.flow-side em { font-style: normal; color: #8894a8; margin-right: 6px; font-size: 11.5px; }
.flow-to { background: #f0f8f5; color: #0d6b53; }
.flow-arrow { color: #b7c2d4; font-weight: 600; }
.flow-attr { font-size: 12.5px; color: #5b667a; margin-left: auto; }
.flow-attr b { color: var(--primary-strong); }

.share-wrap { margin-top: 8px; max-width: 420px; }
.share-bar { height: 6px; border-radius: 999px; background: #ecf1fb; overflow: hidden; }
.share-exec { height: 100%; background: linear-gradient(90deg, #12b3a0, var(--primary)); border-radius: 999px; }
.share-legend { display: flex; justify-content: space-between; font-size: 11px; margin-top: 3px; }
.share-legend .se { color: #0d7a5b; }
.share-legend .sd { color: #6b7a92; }
.cross-meta .own { font-style: normal; color: var(--primary-strong); font-size: 11.5px; margin-left: 2px; }

/* 跨部门业绩结算（2.5） */
.settle-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.settle-month { display: flex; align-items: center; gap: 8px; }
.settle-month select { padding: 7px 10px; border: 1px solid #e3e9f4; border-radius: 8px;
  font-size: 13px; color: #374151; background: #fff; }
.summary-item .sub { font-size: 11.5px; color: #8894a8; margin-top: 2px; }
.cell-main { font-weight: 600; color: #1f2a37; }
.cell-sub { font-size: 11.5px; color: #8894a8; margin-top: 1px; }
.table tfoot td { font-weight: 600; background: #f8fafd; border-top: 1px solid #e3e9f4; }
.num.strong { font-weight: 600; color: #22409a; }

/* 提成核算（2.6） */
.cmt-details { border: 1px solid #eef2f9; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.cmt-details summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.cmt-details summary::-webkit-details-marker { display: none; }
.cmt-name { font-weight: 600; color: #1f2a37; }
.cmt-sum { font-size: 12.5px; color: var(--primary-strong); }
.cmt-details[open] { background: #fbfcff; }
.table-compact td, .table-compact th { padding: 6px 10px; font-size: 12.5px; }
.inp-sm { width: 118px; padding: 5px 8px; border: 1px solid #e3e9f4; border-radius: 7px; font-size: 12.5px; }
.num.up { color: #0d7a5b; }
.formula-list > div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #f0f3f9; font-size: 12.5px; line-height: 1.7; }
.formula-list > div:last-child { border-bottom: none; }
.formula-list b { flex: 0 0 88px; color: #1f2a37; }
.formula-list span { color: #5b667a; }

/* 合同详情·提成测算卡（2.6） */
.comm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comm-grid > div { background: #f7f9ff; border: 1px solid #eef2fb; border-radius: 9px; padding: 9px 11px; }
.comm-grid .k { display: block; font-size: 11.5px; color: #78849a; margin-bottom: 3px; }
.comm-grid .v { font-size: 16px; font-weight: 600; color: #1f2a37; }
.comm-grid .v.strong { color: var(--primary-strong); }
.comm-tier { font-size: 12.5px; color: var(--primary-strong); background: var(--primary-soft); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; }
.comm-warn { font-size: 12.5px; color: #a35a00; background: #fff7e8; border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; }
.comm-tip { font-size: 11.5px; color: var(--muted-2); line-height: 1.75; }

/* 提成：变频分组小计与口径开关（2.6.1） */
.vf-split { margin-top: 8px; background: #f7f9ff; border: 1px dashed #dfe7fb; border-radius: 9px; padding: 8px 10px; }
.vf-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #5b667a; padding: 3px 0; }
.vf-name { font-weight: 600; color: var(--primary-strong); }
.vf-total { color: #1f2a37; font-weight: 600; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 6px 16px; font-size: 12.5px; }
.switch-row label { display: flex; align-items: center; gap: 6px; }

/* 品牌标志（2.6.1） */
.brand-img { height: 26px; width: auto; display: block; }
.brand-img.lg { height: 40px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.18)); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text .brand-sub { letter-spacing: 1px; }
.login-hero .hero-top { align-items: center; }

/* 外观设置（2.6.1） */
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.swatch { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.swatch .sw { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); display: inline-block; }
.swatch .sw-custom { background: conic-gradient(#e70012, #f1af00, #12b3a0, var(--primary), #e70012); }
.swatch .inp-sm { width: 40px; height: 26px; padding: 1px; }
.swatch input[type="radio"] { accent-color: var(--primary); }

/* 2.6.1 观感修正 */
.brand-img { height: 34px; }
.brand { padding: 16px 16px 12px; gap: 8px; }
.vf-split { background: var(--bg-soft); border-color: var(--line); }
.vf-name { color: var(--primary-strong); }
.sidebar { background: #fff; }

/* 提成页部门汇总（2.6.1） */
.dept-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.dept-item { flex: 1 1 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.dept-name { font-size: 12.5px; color: var(--muted); }
.dept-val { display: block; font-size: 19px; font-weight: 600; color: var(--primary-strong); margin: 3px 0 2px; }
.dept-sub { font-size: 11.5px; color: var(--muted-2); }
.num.zero { color: var(--muted-2); }

/* 2.6.1 收口：侧栏标志、汇总数字 */
.brand { padding: 18px 18px 14px; }
.brand-img { height: 38px; }
.brand-text { display: none; }
.summary-item .v { font-size: 19px; color: var(--primary-strong); }
.btn-light, .btn-soft { background: var(--primary-soft); color: var(--primary-strong); border-color: var(--primary-soft); }

/* 2.6.1 登录页：天蓝渐变 + 白字（右侧表单不动） */
.login-hero { background: linear-gradient(150deg, #0F6FC4 0%, #1E8FE4 52%, #49B5F5 100%) !important; }
.login-hero .hero-glow.a { background: radial-gradient(circle, rgba(255,255,255,.45), rgba(255,255,255,0) 70%); }
.login-hero .hero-glow.b { background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 70%); }

/* 2.6.1 天蓝底上的小字加一点投影，亮端也读得清 */
.login-hero .hero-desc, .login-hero .hp em, .login-hero .hero-foot, .login-hero .hero-sub {
  text-shadow: 0 1px 2px rgba(4, 45, 84, .26);
}
.login-hero .hero-foot { color: rgba(255,255,255,.88); }

/* 2.6.1 登录页文案：Truhigh CRM，欢迎回来用创恒红 */
.login-card h2.welcome-title { color: #E70012; letter-spacing: .5px; }

/* 销售排名（2.6.2） */
.rank-toolbar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.rank-toolbar .rt-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rank-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rank-toolbar select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
.rank-toolbar .rt-right { margin-left: auto; font-size: 12px; }
.rank-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.rk { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.rk-label { font-size: 12px; color: var(--muted-2); }
.rk-name { font-size: 20px; font-weight: 650; color: var(--primary-strong); margin: 6px 0 2px; }
.rk-val { font-size: 15px; font-weight: 600; color: var(--text); }
.rk-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.rank-badge.r1 { background: #F1AF00; color: #fff; }
.rank-badge.r2 { background: #B9C2D0; color: #fff; }
.rank-badge.r3 { background: #C98A4B; color: #fff; }
.rank-badge.rn { background: #F1F3F7; color: var(--muted); }
.role-chip { font-size: 11px; color: var(--muted); background: #F4F6FA; border-radius: 6px; padding: 2px 6px; }
.share-bar { height: 6px; background: #F1F3F7; border-radius: 999px; overflow: hidden; }
.share-bar span { display: block; height: 100%; border-radius: 999px; }
.share-txt { font-size: 11px; color: var(--muted-2); }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 260px; padding: 8px 4px 0; }
.cb-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.cb-val { font-size: 10.5px; color: var(--muted-2); margin-bottom: 4px; white-space: nowrap; }
.cb-track { flex: 1; width: 100%; max-width: 46px; background: #F6F8FC; border-radius: 8px 8px 0 0; display: flex; align-items: flex-end; }
.cb-fill { width: 100%; border-radius: 8px 8px 0 0; transition: height .3s; }
.cb-name { font-size: 11.5px; color: var(--text-2); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pie-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pie { position: relative; width: 190px; height: 190px; border-radius: 50%; flex: 0 0 190px; box-shadow: 0 8px 24px rgba(23,37,84,.10); }
.pie-hole { position: absolute; inset: 34px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pie-sum { font-size: 15px; font-weight: 650; color: var(--primary-strong); }
.pie-cap { font-size: 11px; color: var(--muted-2); }
.pie-legend { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.pl-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.pl-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.pl-name { flex: 0 0 56px; color: var(--text); }
.pl-amt { flex: 1; color: var(--text-2); }
.pl-pct { color: var(--muted-2); font-size: 11.5px; }
@media (max-width: 720px) { .rank-kpis { grid-template-columns: repeat(2, 1fr); } .pie { width: 150px; height: 150px; flex-basis: 150px; } }

/* 排名页收口（2.6.2） */
.rank-table th:nth-child(10), .rank-table td:nth-child(10) { min-width: 150px; }
.share-bar { min-width: 110px; }

/* 个人驾驶舱（2.6.3） */
.my-top { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 14px; margin-bottom: 14px; }
.my-goal-body { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring { position: relative; width: 170px; height: 170px; border-radius: 50%; flex: 0 0 170px; box-shadow: 0 10px 26px rgba(23,37,84,.10); }
.ring-hole { position: absolute; inset: 22px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-pct { font-size: 26px; font-weight: 700; color: var(--primary-strong); line-height: 1.1; }
.ring-cap { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.my-facts { flex: 1 1 220px; display: flex; flex-direction: column; gap: 9px; }
.fact { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.fact-k { color: var(--muted); }
.fact-v { font-weight: 600; color: var(--text); }
.fact-v.strong { color: var(--primary-strong); font-size: 15px; }
.fact-v.warn { color: #c02b2b; }
.fact-line { margin-top: 6px; }
.fl-bar { position: relative; height: 8px; background: #EEF1F6; border-radius: 999px; overflow: hidden; }
.fl-done { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 999px; }
.fl-time { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .55; z-index: 2; }
.fl-cap { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }
.ok-txt { color: #0f8b6f; }
.warn-txt { color: #c02b2b; }
.my-bars { height: 200px; gap: 6px; }
.my-bars .cb-val { font-size: 9.5px; }
.my-bars .cb-name { font-size: 10px; }
.my-bars .cb-col.fut { opacity: .38; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mini span { display: block; font-size: 11.5px; color: var(--muted-2); }
.mini b { font-size: 15px; color: var(--text); }
.my-rank { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rank-pos b { font-size: 18px; color: var(--primary-strong); }
.pol-list { display: flex; flex-direction: column; gap: 8px; }
.pol-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pol-item:last-child { border-bottom: 0; }
.pol-cat { font-size: 11px; background: var(--primary-soft); color: var(--primary-strong); border-radius: 6px; padding: 2px 7px; flex: 0 0 auto; }
.pol-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pol-size { color: var(--muted-2); font-size: 11.5px; }
.pol-up { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.pol-up summary { cursor: pointer; font-size: 12.5px; color: var(--primary-strong); }
.pol-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.pol-form input[type="text"], .pol-form input:not([type]), .pol-form select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: #fff;
}
.pol-form input[name="title"] { flex: 1 1 180px; }
.pol-form input[type="file"] { font-size: 12px; }
@media (max-width: 980px) { .my-top { grid-template-columns: 1fr; } .mini-grid { grid-template-columns: repeat(2, 1fr); } }

/* 我的驾驶舱收口（2.6.3） */
.ring { width: 184px; height: 184px; flex-basis: 184px; }
.ring-pct { font-size: 30px; }
.mini { background: #fff; }
.my-goal-body { gap: 30px; }

/* 我的驾驶舱（第二轮打磨） */
.yr-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-2); }
.yr-switch select { padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12px; color: #45505f; }
.my-bars { position: relative; }
.ref-line { position: absolute; left: 2px; right: 2px; border-top: 1.5px dashed #C9CFDA; z-index: 3; pointer-events: none; }
.ref-line span { position: absolute; right: 0; top: -9px; background: #fff; padding: 0 6px; font-size: 10.5px; color: var(--muted-2); }
.rank-diff { display: flex; gap: 14px; margin-top: 4px; font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; }
.rank-diff b { color: var(--primary-strong); }
.mini-note { display: block; font-size: 10.5px; color: var(--muted-2); font-style: normal; margin-top: 2px; }
.link { color: var(--primary-strong); text-decoration: none; font-size: 12.5px; }
.link:hover { text-decoration: underline; }

/* 参照线标签左移，避开柱子 */
.ref-line span { right: auto; left: 0; }
.ref-line { border-top-color: #BFC6D2; }

/* 公共政策（2.6.3 第二轮） */
.pol-tools { margin-bottom: 8px; }
.pol-search { display: flex; gap: 8px; align-items: center; }
.pol-search input { flex: 0 1 300px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: #fff; }
.new-dot { display: inline-block; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 5px; background: #FFF1C9; color: #A0670A; margin-left: 6px; vertical-align: 1px; }

/* 政策表与表单对齐（2.6.3 收尾） */
.pol-table { table-layout: fixed; width: 100%; }
.pol-table col, .pol-table th:nth-child(1) { width: auto; }
.pol-table td:nth-child(1) { overflow: hidden; }
.pol-table td:nth-child(1) div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pol-title-input { flex: 0 1 340px; }
.ring-pct { font-size: 30px; }
.ring-pct.small { font-size: 20px; letter-spacing: 1px; }

/* 客户池健康（2.6.5） */
.cust-health { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ch-head { font-size: 12px; font-weight: 600; color: #45505f; margin-bottom: 8px; }
.ch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ch-cell { flex: 1 1 160px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ch-k { display: block; font-size: 11.5px; color: var(--muted-2); }
.ch-v { font-size: 19px; font-weight: 700; color: var(--text); margin: 3px 0 2px; }
.ch-v small { font-size: 11.5px; font-weight: 400; color: var(--muted-2); }
.ch-v b { font-size: 11.5px; font-weight: 600; margin-left: 6px; }
.ch-sub { font-size: 11px; color: var(--muted-2); }
.muted-txt { color: var(--muted-2); }
.stale-list { margin-top: 10px; display: flex; flex-direction: column; }
.stale-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--line); }
.stale-item:last-child { border-bottom: 0; }
.stale-item:hover .stale-name { color: var(--primary-strong); }
.stale-name { font-weight: 600; flex: 0 1 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stale-tag { font-size: 11px; color: var(--muted-2); background: var(--bg-soft); border-radius: 5px; padding: 2px 6px; }
.stale-last { flex: 1; color: var(--muted-2); font-size: 11.5px; }
.stale-days { font-size: 11.5px; color: #C02B2B; background: #FFF1F1; border-radius: 5px; padding: 2px 7px; }
.stale-more { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; }

/* 客户池健康与下方文案的间距（2.6.5 收尾） */
.stale-list + div { margin-top: 14px !important; }

/* ------------------------------------------------------------------
   2.6.6 视觉柔和度：把冷硬的白/灰/蓝边换成跟随主题的暖调层次
   （只调整观感，不动任何功能与信息）
   ------------------------------------------------------------------ */
.table th {
  background: color-mix(in srgb, var(--bg-soft) 55%, #fff);
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.table td { border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, #fff); }
.table tr:hover td { background: color-mix(in srgb, var(--bg-soft) 42%, #fff); }
.btn {
  border-radius: 9px;
  border-color: color-mix(in srgb, var(--line) 82%, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
  transition: background .16s ease, border-color .16s ease, box-shadow .18s ease, transform .16s ease;
}
.btn:hover {
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
  background: color-mix(in srgb, var(--primary-soft) 34%, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}
.btn-primary {
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 22%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 26%, transparent); }
.card {
  border-color: color-mix(in srgb, var(--line) 78%, #fff);
  transition: box-shadow .22s ease, border-color .22s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-head h3 { font-weight: 600; letter-spacing: .2px; }
.mini, .ch-cell { border-color: color-mix(in srgb, var(--line) 70%, #fff); box-shadow: 0 1px 2px rgba(0,0,0,.02); }

/* 2.6.6 修正：标签与卡片边界不要淡到看不见 */
.mini, .ch-cell { border-color: color-mix(in srgb, var(--line) 84%, #fff); }
.mini span, .ch-k, .ch-sub { color: var(--muted-2); }

/* 2.6.6：小标签用主灰，不用最浅灰 */
.mini span, .ch-k, .ch-sub { color: var(--muted); }

/* =====================================================================
   2.6.6 美学层：暖底、柔光、清晰层级
   —— 只调观感（底色/字色/间距/圆角/焦点），不改布局与任何功能
   ===================================================================== */
:root {
  --radius: 16px;
  --radius-sm: 10px;
  --gap: 18px;
  --font-num: "SF Mono", "SFMono-Regular", ui-monospace, "Menlo", monospace;
}

/* 1. 底与面：暖米底上叠一层极淡主色光晕，避免整页死板 */
body {
  background:
    radial-gradient(1080px 440px at 6% -14%, color-mix(in srgb, var(--primary) 3.5%, transparent), transparent 60%),
    radial-gradient(760px 360px at 100% -4%, color-mix(in srgb, var(--primary) 2%, transparent), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.44), rgba(255,255,255,.44)),
    var(--bg);
  background-attachment: fixed;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: .01em;
}
.sidebar {
  background: color-mix(in srgb, #fff 64%, var(--bg-soft));
  border-right: 1px solid color-mix(in srgb, var(--line) 72%, #fff);
}
.topbar {
  background: color-mix(in srgb, #fff 93%, var(--bg-soft));
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, #fff);
  box-shadow: 0 8px 20px -18px color-mix(in srgb, var(--text) 40%, transparent);
}

/* 2. 标题：去掉冷蓝渐变字，用实色深色，安静但有分量 */
.page-title {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: 18.5px; font-weight: 600; letter-spacing: .01em;
}
.page-sub { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }

/* 3. 卡片：面比底亮一点点，边界轻，阴影散 */
.card {
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--line) 68%, #fff);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
              0 12px 30px color-mix(in srgb, var(--primary) 7%, transparent);
}
.card-head {
  padding: 14px 18px 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, #fff);
  background: none;
}
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: .015em; }
.card-body { padding: 18px; }

/* 4. 文字层级：正文 / 次要 / 微型，三档就够 */
.table td, .card-body, p, li { font-size: 13.5px; }
.muted { color: var(--muted); }
.fact-k, .ch-k, .mini span { color: var(--muted); }
strong, b, .fact-v.strong, .mini b { font-variant-numeric: tabular-nums; }

/* 5. 表格：行距松一点，斑马纹只做暗示 */
.table th { padding: 11px 16px; font-size: 12px; letter-spacing: .03em; font-weight: 500; }
.table td { padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 52%, #fff); }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-soft) 26%, #fff); }
.table tbody tr:hover td { background: color-mix(in srgb, var(--primary) 5%, #fff); }

/* 6. 表单：统一高度、圆角、柔和焦点环 */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select, textarea { min-height: 36px; border-radius: var(--radius-sm); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* 7. 按钮：统一节奏 */
.btn { min-height: 34px; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.btn-sm { min-height: 28px; padding: 4px 10px; font-size: 12px; border-radius: 8px; }

/* 8. 徽章与标签：小、圆、轻 */
.badge, .tag, .chip, .pol-cat {
  border-radius: 8px; font-size: 11px; padding: 3px 8px; letter-spacing: .02em;
}

/* 9. 空态：留白与呼吸 */
.empty, .muted[style*="padding:26px"], .muted[style*="text-align:center"] { line-height: 1.8; }

/* 10. 滚动与选中：细节处见质感 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 18%, #d8dde8); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--primary) 32%, #cdd4e2); }
::selection { background: color-mix(in srgb, var(--primary) 22%, #fff); }

/* 2.6.6 收口：等高、字距、表格不折行 */
.grid-2 { align-items: stretch; }
.fl-cap b, .fl-cap .ok-txt, .fl-cap .warn-txt { margin-left: 8px; }
.my-rank .btn { white-space: nowrap; }
.table td { word-break: normal; }

/* 2.6.6 政策卡：内容可伸缩、空态居中、分类常驻底部 */
.card.my-pol { display: flex; flex-direction: column; }
.my-pol .card-body.pol-wrap { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.pol-list { flex: 0 0 auto; }
.pol-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 0; text-align: center; }
.pol-empty-title { font-size: 13px; color: var(--muted); }
.pol-empty-sub { font-size: 11.5px; color: var(--muted-2); }
.pol-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--line) 70%, #fff); }
.pol-chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 60%, #fff);
  color: var(--primary-strong); border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff);
  text-decoration: none; transition: background .16s, border-color .16s;
}
.pol-chip:hover { background: color-mix(in srgb, var(--primary) 14%, #fff); border-color: color-mix(in srgb, var(--primary) 34%, #fff); }

/* 2.6.6 KPI 归一：去掉冷蓝渐变，跟品牌暖色走 */
.kpi {
  background: linear-gradient(170deg, #fff 0%, color-mix(in srgb, var(--primary) 2.5%, #fff) 100%);
  border-color: color-mix(in srgb, var(--line) 66%, #fff);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent),
              0 10px 24px color-mix(in srgb, var(--primary) 6%, transparent);
}
.kpi::after { right: -30px; top: -36px; width: 104px; height: 104px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%); }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-value {
  background: none; -webkit-text-fill-color: currentColor; color: var(--text);
  font-size: 23px; font-weight: 650; letter-spacing: -.3px; font-variant-numeric: tabular-nums;
}
.kpi-value small { -webkit-text-fill-color: var(--muted); }

/* 卡片脚注 */
.card-foot {
  padding: 10px 16px 12px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 62%, #fff);
  font-size: 11.5px; color: var(--muted-2);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* 2.6.6 卡片脚注贴底，矮卡不悬空 */
.card-body.p0 { display: flex; flex-direction: column; min-height: 0; }
.card-body.p0 .card-foot { margin-top: auto; }

/* 卡片撑满时，内容区一起长，脚注自然贴底 */
.fill-card { display: flex; flex-direction: column; }
.fill-card > .card-body { flex: 1 1 auto; }

/* 同排卡片按内容高，避免矮内容被拉成大片空洞 */
.grid-2.grid-start { align-items: start; }

/* 政策空态：给说明，不留白洞 */
.pol-empty-cell { text-align: center; padding: 46px 16px 50px; }
.pol-empty-title { font-size: 13px; color: var(--muted); }
.pol-empty-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }

/* 跟进进度：节点式（替代细条压在文字上） */
.prog-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 2px; }
.prog-steps::before {
  content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 7px; height: 3px;
  background: color-mix(in srgb, var(--line) 70%, #fff); border-radius: 2px;
}
.pstep { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; z-index: 1; }
.pdot {
  width: 15px; height: 15px; border-radius: 50%; box-sizing: border-box;
  background: #fff; border: 2px solid color-mix(in srgb, var(--line) 62%, #fff);
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.pstep.on .pdot { background: var(--primary); border-color: var(--primary); }
.pstep.cur .pdot { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.plabel { font-size: 12px; color: var(--muted-2); }
.pstep.on .plabel { color: var(--primary-strong); font-weight: 600; }

/* 2.6.6 详情/表单：字段分组，长表单分段读 */
.fgroup {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 8px; font-size: 12px; color: var(--muted); letter-spacing: .03em;
}
.fgroup:first-child { margin-top: 2px; }
.fgroup::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--line) 55%, #fff); }

/* 分组标题看得清，但比正文轻一档 */
.fgroup { color: var(--text-2); font-size: 12.5px; font-weight: 600; }

/* 2.6.6 侧栏：分组更清楚、选中更柔和 */
.nav-group { padding: 2px 10px 10px; }
.nav-group + .nav-group { border-top: 1px solid color-mix(in srgb, var(--line) 46%, #fff); margin-top: 4px; padding-top: 4px; }
.nav-group-title {
  font-size: 11.5px; color: var(--muted-2); font-weight: 500;
  letter-spacing: .1em; text-transform: none; padding: 14px 10px 6px;
}
.nav-item {
  position: relative; border-radius: 9px; padding: 8px 10px; gap: 10px;
  color: var(--text-2); font-size: 13.5px; letter-spacing: .01em;
}
.nav-item:hover { background: color-mix(in srgb, var(--bg-soft) 46%, #fff); color: var(--text); }
.nav-item.active {
  background: color-mix(in srgb, var(--primary-soft) 62%, #fff);
  color: var(--primary-strong);
}
.nav-item.active::before {
  left: -10px; width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--primary);
  box-shadow: 0 0 0 0 transparent;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .7; }
.nav-item.active svg { opacity: 1; }

/* 2.6.6 窄屏节奏：手机上一行放不下的东西，改成两行而不是挤扁 */
@media (max-width: 768px) {
  .topbar { padding: 10px 12px; gap: 10px; }
  .topbar-title { min-width: 0; }
  .page-title { font-size: 15.5px; }
  .yr-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.5; }
  .yr-switch select { max-width: 108px; padding: 3px 6px; font-size: 11.5px; border-radius: 7px; }
  .form-grid { gap: 12px 16px; }
  .fgroup { margin: 12px 0 4px; }
  .detail-grid .dfield { padding: 11px 13px; }
  .stale-item { flex-wrap: wrap; row-gap: 3px; }
  .stale-name { flex: 1 1 100%; }
  .stale-last { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .cb-val { display: none; }
  .my-pol .pol-cats { gap: 6px; }
  .progress-stats, .prog-stats { grid-template-columns: 1fr 1fr; }
}

/* 2.6.6 窄屏兜底：表格不再把整页撑宽，页头改上下排 */
@media (max-width: 900px) {
  .main, .content, .detail-layout, .card { min-width: 0; }
  .detail-head { flex-wrap: wrap; }
  .detail-head .actions { margin-left: 0; }
}
@media (max-width: 768px) {
  .table { min-width: 0; }
  .table-wrap .table, .table { min-width: 640px; }
  .table-wrap { max-width: 100%; }
  .detail-head { padding: 14px; }
  .summary-strip { gap: 18px 22px; margin-top: 10px; }
  .summary-item .v { font-size: 16.5px; }
  .prog-steps::before { left: 16.6%; right: 16.6%; }
  .plabel { font-size: 11px; }
}

/* 窄屏：网格轨道改成 minmax(0,1fr)，别让宽表格把整页顶出去 */
@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .table, .table-wrap .table { min-width: 0; }
}

/* ---------- 2.6.7 第 1 轮：列表页读表更顺 ---------- */
/* 号码、日期这类短值不再折行；超长名称才截断，鼠标悬停给完整值 */
.table td { white-space: nowrap; }
.table td:nth-child(2) { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.table th { background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, #fff); }
.table td.act-col .btn { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.table-wrap { border-radius: 0 0 12px 12px; }

/* ---------- 2.6.7 第 2 轮：详情右栏——关联一览更好用 ---------- */
.side-card .side-body { padding: 6px 16px 14px; }
.side-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; font-size: 13px; color: var(--text-2); text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--line) 60%, #fff);
}
.side-link:hover { color: var(--primary-strong); }
.side-link b { font-weight: 600; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.side-link b.zero { color: var(--muted-2); font-weight: 500; }
.side-empty { padding: 14px 0 10px; font-size: 12.5px; color: var(--muted-2); }
.side-meta { margin-top: 12px; font-size: 11.5px; color: var(--muted-2); line-height: 1.9; }

/* 右栏跟随滚动，最近一条跟进直接摆在手边 */
@media (min-width: 1101px) {
  .side-col { position: sticky; top: 76px; align-self: start; }
}
.side-col .side-card + .side-card { margin-top: 14px; }
.side-type { font-size: 11.5px; color: var(--primary-strong); font-weight: 600; letter-spacing: .02em; }
.side-text { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.side-next { margin-top: 8px; font-size: 11.5px; color: var(--muted); background: color-mix(in srgb, var(--bg-soft) 55%, #fff); border-radius: 8px; padding: 7px 10px; }

/* ---------- 2.6.7 第 3 轮：手感统一（焦点、悬停、提示、空态） ---------- */
:root { --ease: cubic-bezier(.2, .7, .3, 1); }

/* 键盘走到哪，焦点就在哪 */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, .nav-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 70%, #fff);
  outline-offset: 2px; border-radius: 8px;
}

/* 按钮按下有回应，但不乱跳 */
.btn { transition: background .16s var(--ease), border-color .16s var(--ease),
                    color .16s var(--ease), box-shadow .16s var(--ease), transform .12s var(--ease);
       box-shadow: 0 1px 2px rgba(23, 37, 84, .04); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 10%, transparent); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(23, 37, 84, .06); }
.btn-ghost, .btn-sm { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 26%, transparent); }

/* 输入框悬停就给出可编辑的暗示 */
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }

/* 提示条：柔一点，别像告警灯 */
.flash { border-radius: 10px; padding: 10px 14px; font-size: 12.5px; box-shadow: 0 1px 2px rgba(23,37,84,.04); }
.flash.ok { background: #f0fbf6; color: #0b7a5e; border-color: #cbeadb; }
.flash.error { background: #fdf3f3; color: #a82727; border-color: #f2d4d4; }
.flash.warn { background: #fff9ec; color: #a2620a; border-color: #f4e3bf; }

/* 空态：一句话 + 一个动作，不要空白 */
.empty { padding: 44px 16px; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 14.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }

/* sticky 要有个够高的父容器：右栏列拉伸到整行高度 */
@media (min-width: 1101px) {
  .detail-layout > div:nth-child(2) { align-self: stretch; }
  .side-col { position: sticky; top: 76px; }
}

/* ---------- 2.6.8 管道看板：拖着走就是推进 ---------- */
.kb-hint { font-size: 12px; color: var(--muted-2); margin: -2px 0 10px; }
.kb-hint::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 7px; vertical-align: 1px; }
.kanban-col { transition: border-color .16s var(--ease), background .16s var(--ease); }
.kanban-col.over { border-color: color-mix(in srgb, var(--primary) 60%, #fff); background: color-mix(in srgb, var(--primary) 3.5%, #fff); }
.kanban-head .kn { font-size: 11.5px; font-weight: 500; color: var(--muted); background: var(--bg-soft); border-radius: 20px; padding: 1px 8px; }
.kcard { cursor: grab; position: relative; }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .42; transform: scale(.98); box-shadow: none; }
.kcard.saving { opacity: .6; }
.kcard.leaving { animation: kbOut .3s var(--ease) forwards; }
@keyframes kbOut { to { opacity: 0; transform: translateY(-6px) scale(.96); height: 0; padding: 0; margin: 0; border-width: 0; } }
.kcard .k-grip { position: absolute; right: 8px; top: 9px; width: 12px; height: 12px; opacity: .28;
  background-image: radial-gradient(var(--muted-2) 1px, transparent 1px);
  background-size: 4px 4px; border-radius: 2px; }
.k-empty { font-size: 12px; color: var(--muted-2); padding: 14px 4px; text-align: center; border: 1px dashed color-mix(in srgb, var(--line) 70%, #fff); border-radius: 9px; }
.kb-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  background: color-mix(in srgb, var(--text) 92%, #fff); color: #fff; font-size: 12.5px;
  padding: 9px 16px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 200;
  box-shadow: 0 10px 26px rgba(20, 30, 50, .22);
}
.kb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.kb-toast.bad { background: #a82727; }

/* 卡片右上角"停留天数"：看哪单该推一推 */
.k-age { float: right; font-size: 10.5px; font-weight: 500; color: var(--muted-2);
  background: var(--bg-soft); border-radius: 20px; padding: 1px 7px; margin-top: 1px; }
.k-age.slow { color: #a2620a; background: #fff8ea; }
.k-age.very { color: #b54242; background: #fdf0f0; }
.kanban-head .s b { color: var(--text); font-weight: 600; }

/* ---------- 2.6.8 表单查重：先提醒，再决定 ---------- */
.dup-slot { margin-bottom: 14px; }
.dup-slot[hidden] { display: none; }
.dup-head { font-size: 12.5px; font-weight: 600; color: #a2620a;
  background: #fff9ec; border: 1px solid #f4e3bf; border-radius: 10px 10px 0 0; padding: 9px 13px; }
.dup-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 13px; font-size: 12.5px; color: var(--text-2); text-decoration: none;
  background: #fffdf7; border: 1px solid #f4e3bf; border-top: 0; }
.dup-item:last-child { border-radius: 0 0 10px 10px; }
.dup-item:hover { background: #fff8ea; }
.dup-item b { color: var(--text); font-weight: 600; }
.dup-item span { color: var(--muted); font-size: 11.5px; text-align: right; }

/* ---------- 2.6.8 手机底部四格：一只手就够用 ---------- */
.mobile-tabs { display: none; }
@media (max-width: 900px) {
  .mobile-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
    border-top: 1px solid color-mix(in srgb, var(--line) 80%, #fff);
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(23, 37, 84, .05);
  }
  .mobile-tabs a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 0 4px; font-size: 11px; color: var(--muted); text-decoration: none;
    border-radius: 10px; transition: color .15s var(--ease), background .15s var(--ease);
  }
  .mobile-tabs a svg { width: 19px; height: 19px; opacity: .8; }
  .mobile-tabs a.on { color: var(--primary-strong); font-weight: 600; background: color-mix(in srgb, var(--primary) 8%, transparent); }
  .mobile-tabs a.on svg { opacity: 1; }
  .content { padding-bottom: 92px; }
  .quick-fab { bottom: 86px; }
}

/* ---------- 2.6.9 驾驶舱未维护预警：一键确认，计时归零 ---------- */
.stale-item .stale-name { text-decoration: none; }
.stale-ok { margin-left: auto; }
.stale-ok button {
  border: 1px solid color-mix(in srgb, var(--primary) 40%, #fff);
  background: color-mix(in srgb, var(--primary) 9%, #fff);
  color: var(--primary-strong); font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.stale-ok button:hover { background: color-mix(in srgb, var(--primary) 18%, #fff); transform: translateY(-1px); }
.stale-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
@media (max-width: 768px) {
  .stale-ok { margin-left: 0; }
  .stale-item .stale-last { flex: 1; }
}

/* ---------- 2.7.0 客户经营：评分、星级、关注 ---------- */
.stars { color: #F1AF00; font-style: normal; letter-spacing: 1px; font-size: 12px; }
.stars .off { color: #e6e2d8; }
.score-cell { display: inline-flex; align-items: center; gap: 5px; }
.score-cell b { font-size: 12.5px; color: var(--text); font-weight: 600; min-width: 18px; }
.imp { font-size: 11.5px; }
.fav { font-size: 15px; color: #d8d2c4; line-height: 1; }
.fav.on { color: #F1AF00; }
.ago { font-size: 12px; }
.ago-ok { color: var(--muted); }
.ago-warm { color: #c98a10; }
.ago-hot { color: #d64545; font-weight: 600; }

/* ---------- 2.7.0 客户列表版式（对齐销帮帮） ---------- */
.cust-bar { gap: 6px; }
.cust-bar .due-chip { border-radius: 4px; padding: 4px 11px; font-size: 12px; }
.cust-bar .due-chip.on { background: #F1AF00; border-color: #F1AF00; color: #fff; font-weight: 600; }
.cust-bar .spacer { flex: 1; }
.col-fav { width: 46px; text-align: center; }
.col-fresh { width: 74px; }
.fresh-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d8d2c4; margin-right: 5px; vertical-align: 1px; }
.fresh-dot.on { background: #12b76a; }
.fresh-txt { font-size: 11.5px; color: var(--text-2); }
.fresh-txt.muted { color: var(--muted); }

/* ---------- 2.7.0 工作台（客户经营视角） ---------- */
.kpi-grid.kpi-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .kpi-grid.kpi-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .kpi-grid.kpi-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-row, .src-row, .ind-row, .fb-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.lv-tag { width: 34px; text-align: center; font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 2px 0; }
.lv-a { background: #FFF3D6; color: #A26A00; }
.lv-b { background: #E8F1FF; color: #2456A6; }
.lv-c { background: #EFF2F0; color: #4A5A52; }
.lv-d { background: #F3F4F6; color: #6B7280; }
.lv-x { background: #FDEBEB; color: #B42318; }
.lv-bar, .src-bar, .ind-bar, .fb-track { flex: 1; height: 7px; background: #F2EFE6; border-radius: 4px; overflow: hidden; }
.lv-bar i, .src-bar i, .ind-bar i, .fb-track i { display: block; height: 100%; background: #F1AF00; border-radius: 4px; }
.src-bar i, .ind-bar i { background: #E7B84A; }
.fb-track i { background: linear-gradient(90deg, #F1AF00, #F7C948); }
.lv-n, .src-n, .ind-n, .fb-n { width: 42px; text-align: right; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.src-name, .ind-name { width: 84px; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-stage { width: 72px; font-size: 12.5px; color: var(--text-2); }
.fb-amt { width: 74px; text-align: right; font-size: 12px; color: var(--muted); }
.todo-row, .feed-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12.5px; color: var(--text-2); text-decoration: none; border-bottom: 1px dashed var(--line-soft); }
.todo-row:last-child, .feed-row:last-child { border-bottom: 0; }
.todo-dot { width: 6px; height: 6px; border-radius: 50%; background: #d8d2c4; }
.todo-dot.late { background: #D64545; }
.todo-title { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-date { color: var(--muted); font-size: 11.5px; }
.feed-type { font-size: 11px; color: #A26A00; background: #FFF6E0; border-radius: 4px; padding: 1px 6px; }
.feed-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta { color: var(--muted); font-size: 11px; }

/* ---------- 2.7.1 客户列表：跟进记录 / 提醒 / 关注（对齐销帮帮版式） ---------- */
.col-follow { width: 92px; }
.col-bell { width: 44px; text-align: center; }
.follow-view { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 4px;
  font-size: 12px; color: var(--text-2); cursor: pointer; border-radius: 4px; }
.follow-view:hover { background: #FFF6E0; color: #A26A00; }
.follow-view.empty { color: var(--muted); }
.follow-view i { font-style: normal; font-size: 11px; color: #fff; background: #F1AF00; border-radius: 8px;
  padding: 0 5px; line-height: 15px; }
.fv-ic { width: 13px; height: 13px; border-radius: 3px; background: #F3EFE4; display: inline-block; position: relative; }
.fv-ic::after { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 1px;
  background: #B9B09B; box-shadow: 0 3px 0 #B9B09B; }
.bell { display: inline-block; width: 12px; height: 14px; position: relative; opacity: .28; }
.bell::before { content: ""; position: absolute; left: 2px; top: 1px; width: 8px; height: 9px;
  border: 1.5px solid #B88700; border-radius: 6px 6px 2px 2px; border-bottom: 0; }
.bell::after { content: ""; position: absolute; left: 1px; bottom: 2px; width: 10px; height: 1.5px; background: #B88700; }
.bell.on { opacity: 1; }
.bell.on::before { background: #FFF1C9; }

/* 客户列表「更多」下拉（销帮帮工具条同款） */
.due-more { position: relative; }
.due-more summary { list-style: none; cursor: pointer; }
.due-more summary::-webkit-details-marker { display: none; }
.dm-panel { position: absolute; top: 32px; left: 0; z-index: 30; min-width: 132px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(30,24,10,.10); padding: 4px; }
.dm-panel a { display: block; padding: 7px 10px; font-size: 12.5px; color: var(--text-2); border-radius: 6px; text-decoration: none; }
.dm-panel a:hover { background: #FFF8E8; color: #A26A00; }

/* 高级筛选折叠（客户列表） */
.frow-more { position: relative; }
.frow-more summary { list-style: none; cursor: pointer; font-size: 12.5px; color: var(--text-2);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.frow-more summary::-webkit-details-marker { display: none; }
.frow-more i { font-style: normal; background: #F1AF00; color: #fff; border-radius: 8px; padding: 0 5px; margin-left: 4px; font-size: 11px; }
.frow-adv { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; padding: 10px 12px;
  background: #FFFDF7; border: 1px dashed var(--line); border-radius: 8px; }

/* 2.7.1 七阶段漏斗：列宽自适应，一屏能看全 7 列 */
.kanban { padding-bottom: 14px; scrollbar-width: thin; }
.kanban-col { flex: 1 0 176px; min-width: 176px; }
@media (min-width: 1400px) { .kanban-col { flex: 1 1 0; min-width: 0; } }
.kanban-head .t { font-size: 12.5px; gap: 6px; }
.kanban-head .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 2.7.1 作战地图（联系人层级卡片树） ---------- */
.map-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; }
.mh-left { flex: 1 1 320px; min-width: 260px; }
.mh-name { font-size: 17px; font-weight: 700; color: var(--text); }
.mh-meta { margin-top: 5px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mh-meta a { color: #8A6100; text-decoration: none; }
.mh-dot { color: #D8D0BB; }
.mh-tally { display: flex; gap: 8px; flex-wrap: wrap; }
.tl { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: #F7F3E8; color: var(--text-2); }
.tl b { font-weight: 700; margin-left: 2px; }
.tl.sup { background: #EAF7EF; color: #1E7A46; }
.tl.neu { background: #F1F2F5; color: #5A6272; }
.tl.opp { background: #FDECEC; color: #B02A2A; }
.tl.unk { background: #FBF4E2; color: #96700F; }
.tl.deep { background: #EEF4FF; color: #2A5BA8; }
.mh-act { display: flex; gap: 8px; }

.map-grid { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
@media (max-width: 1180px) { .map-grid { grid-template-columns: 1fr; } }
.map-canvas .card-body { padding: 14px 16px 4px; overflow-x: auto; }
.map-node { position: relative; }
.mn-card { position: relative; width: 218px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid #E3DCC8; border-radius: 9px; padding: 9px 11px 10px; margin: 0 0 10px;
  box-shadow: 0 1px 2px rgba(35,28,10,.04); transition: box-shadow .16s var(--ease); }
.mn-card:hover { box-shadow: 0 4px 14px rgba(35,28,10,.09); }
.mn-card.st-支持 { border-left-color: #35A05F; }
.mn-card.st-中立 { border-left-color: #98A1B3; }
.mn-card.st-反对 { border-left-color: #D8504E; }
.mn-card.st-未表态 { border-left-color: #E0B24A; }
.mn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mn-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.mn-prime { font-style: normal; font-size: 10px; background: #F1AF00; color: #fff; border-radius: 3px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }
.mn-edit { font-size: 11.5px; color: var(--muted); text-decoration: none; }
.mn-edit:hover { color: #8A6100; }
.mn-title { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.mn-tags { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.mt { font-size: 11px; padding: 1px 7px; border-radius: 20px; background: #F6F4EE; color: #6B6553; }
.mt.st-tag { background: #F1F2F5; color: #5A6272; }
.mn-card.st-支持 .mt.st-tag { background: #EAF7EF; color: #1E7A46; }
.mn-card.st-反对 .mt.st-tag { background: #FDECEC; color: #B02A2A; }
.mn-card.st-中立 .mt.st-tag { background: #F1F2F5; color: #5A6272; }
.mn-kids { margin-left: 28px; padding-left: 14px; border-left: 1px dashed #E5DFCE; }
.map-legend { display: flex; gap: 14px; padding: 10px 16px 14px; font-size: 11.5px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-sup { background: #35A05F; } .lg-neu { background: #98A1B3; } .lg-opp { background: #D8504E; } .lg-unk { background: #E0B24A; }
.map-side .card-body { padding: 8px 16px 16px; }
.tip-row { padding: 9px 0; border-bottom: 1px dashed #F0EADA; font-size: 12.5px; color: var(--text-2); }
.tip-row b { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 3px; }
.tip-row:last-of-type { border-bottom: 0; }
.btn-map { border-color: #E8DCAF; color: #8A6100; }
.btn-map:hover { background: #FFF9EA; }

/* 客户分层卡：红绿灯 + 分层策略（销帮帮分层差异化管理） */
.lv-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed #F0EADA; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.lvt { display: inline-flex; align-items: center; gap: 5px; }
.lvt b { color: var(--text); font-weight: 600; }
.lg { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lg.g { background: #35A05F; } .lg.y { background: #E0A82A; } .lg.r { background: #D8504E; }
.lvt-more { margin-left: auto; font-size: 12px; color: #8A6100; text-decoration: none; }
.lv-strategy { margin-top: 8px; }
.lv-strategy summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--muted); }
.lv-strategy summary::-webkit-details-marker { display: none; }
.lv-strategy summary:hover { color: #8A6100; }
.lvst { margin-top: 8px; background: #FFFDF7; border: 1px dashed #EFE6CF; border-radius: 8px; padding: 8px 12px; }
.lvst p { margin: 5px 0; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.lvst b { color: var(--text); }

/* 七阶段后阶段名变长：漏斗左侧名称列加宽，避免折行 */
.fb-stage { width: 96px; flex: 0 0 96px; white-space: nowrap; }

/* 本周跟进量 PK */
.pk-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.pk-no { width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 5px;
  font-size: 11px; background: #F3EFE4; color: #8B8264; }
.pk-no.top { background: #FFF1C9; color: #96690A; font-weight: 700; }
.pk-name { width: 68px; font-size: 12.5px; color: var(--text); }
.pk-bar { flex: 1; height: 7px; background: #F2EFE6; border-radius: 4px; overflow: hidden; }
.pk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #F1AF00, #F8CC5C); border-radius: 4px; }
.pk-n { width: 34px; text-align: right; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }

/* 客户列表筛选行更紧凑：7 个下拉 + 高级筛选 + 按钮尽量一行 */
.filter-item select { min-width: 104px; padding-top: 5px; padding-bottom: 5px; font-size: 12.5px; }
.filter-item span { font-size: 12px; }
.frow-actions .btn { padding: 5px 12px; }

/* ---------- 2.7.2 彩色标签（销帮帮标签体系） ---------- */
.chip.c0 { background: #FFF1D6; color: #91650B; }
.chip.c1 { background: #E8F1FF; color: #29579E; }
.chip.c2 { background: #E6F7EC; color: #1E7A46; }
.chip.c3 { background: #FDECEF; color: #A63A4C; }
.chip.c4 { background: #F1ECFF; color: #5B3FA0; }
.chip.c5 { background: #E4F7F6; color: #1B7370; }
.chip.c6 { background: #FDF0E2; color: #A05A1E; }
.chip.c7 { background: #F0F1F5; color: #5A6272; }
.chip-link:hover { filter: brightness(.96); }

/* 评分分档颜色 */
.score-cell.hi b { color: #1E7A46; }
.score-cell.mid b { color: #96700F; }
.score-cell.lo b { color: #8B8371; }

/* ---------- 2.7.2 客户 360 业务全景 ---------- */
.pano { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pano-item { flex: 1 1 0; min-width: 118px; background: #FFFCF3; border: 1px solid #F1E8D2;
  border-radius: 10px; padding: 9px 12px; }
.pano-item.hot { background: #FFF4F2; border-color: #F6DAD5; }
.pano-v { font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pano-item.hot .pano-v { color: #B02A2A; }
.pano-k { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.pano-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kin-row { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.kin-t { color: var(--muted); }
.kin-a { color: #8A6100; text-decoration: none; background: #FFF7E6; border-radius: 20px; padding: 1px 9px; }
.kin-a:hover { background: #FFEFA8; }

/* ---------- 2.7.2 标杆客户红绿灯卡片墙 ---------- */
.tl-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.tl-zone { margin-bottom: 0; min-width: 0; }
.tl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.tl-head b { font-size: 13px; }
.tl-head span { font-size: 11.5px; color: var(--muted); }
.tl-red .tl-head b { color: #B02A2A; }
.tl-amber .tl-head b { color: #96700F; }
.tl-green .tl-head b { color: #1E7A46; }
.tl-grid { display: flex; flex-direction: column; gap: 7px; }
.tl-card { border-radius: 9px; padding: 9px 11px; border: 1px solid transparent; }
.tl-red .tl-card { background: #FDF0EF; border-color: #F6D8D4; }
.tl-amber .tl-card { background: #FDF7E6; border-color: #F3E6C2; }
.tl-green .tl-card { background: #EDF8F0; border-color: #D5EBDC; }
.tl-name { font-size: 13px; font-weight: 600; color: #26303F; text-decoration: none; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name:hover { text-decoration: underline; }
.tl-why { font-size: 11.5px; color: #6B5B4B; margin-top: 2px; }
.tl-red .tl-why { color: #9B3A34; }
.tl-meta { font-size: 10.5px; color: #9AA1AE; margin-top: 2px; }
.tl-empty { font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) { .tl-wrap { grid-template-columns: 1fr; } }

/* ---------- 2.7.2 跟进质量分级（绿/黄/红） ---------- */
.fq { font-size: 10.5px; padding: 1px 7px; border-radius: 20px; font-weight: 600; }
.fq-good { background: #E6F7EC; color: #1E7A46; }
.fq-ok { background: #FDF7E6; color: #96700F; }
.fq-weak { background: #FDECEF; color: #A63A4C; }

/* ---------- 2.7.2 下一步建议 ---------- */
.advice { margin-top: 11px; display: flex; flex-direction: column; gap: 5px; }
.advice-i { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: #6B5B3E;
  background: #FFFCF2; border-left: 3px solid #E9C46A; border-radius: 0 6px 6px 0; padding: 6px 10px; }
.advice-dot { width: 5px; height: 5px; border-radius: 50%; background: #D9A63A; margin-top: 6px; flex: none; }

/* ---------- 2.7.2 近 14 天跟进热度 ---------- */
.heat { margin-top: 12px; }
.heat-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.heat-bars { display: flex; gap: 4px; }
.heat-b { flex: 1; text-align: center; }
.heat-b i { display: block; height: 26px; border-radius: 4px; background: #F3F5F9; }
.heat-b.lv1 i { background: #FDE9C8; }
.heat-b.lv2 i { background: #F6CE8A; }
.heat-b.lv3 i { background: #E3A44C; }
.heat-b span { font-size: 10px; color: var(--muted); }

/* ---------- 2.7.2 阶段门禁 ---------- */
.gate { background: #FFFBF0; border: 1px solid #F0E3C6; border-radius: 9px; padding: 9px 12px; margin-bottom: 12px; }
.gate-h { font-size: 12.5px; font-weight: 600; color: #8A6100; margin-bottom: 4px; }
.gate ul { margin: 0 0 6px; padding-left: 16px; }
.gate li { font-size: 12px; color: #6B5B3E; line-height: 1.75; }
.gate li b { color: #4A3F2E; }
.gate li span { color: #9A8B6E; margin-left: 6px; }
.gate-skip { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

/* ---------- 2.7.4 预实差 ---------- */
.pre-gap { font-style: normal; font-size: 11.5px; margin-left: 5px; }

/* ---------- 2.7.4 部门目标 / 跟进方式 ---------- */
.dept-row { margin-bottom: 12px; }
.dept-row:last-of-type { margin-bottom: 0; }
.dept-top { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; margin-bottom: 5px; }
.dept-num { font-size: 12px; }
.dept-num em { font-style: normal; color: var(--muted); }
.dept-num b { margin-left: 8px; }
.dept-bar { height: 6px; background: #EEF1F6; border-radius: 999px; overflow: hidden; }
.dept-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #7CC7BC); border-radius: 999px; }

/* ---------- 2.7.5 跨部门协作 ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--card, #fff); border: 1px solid var(--line, #E8ECF2); border-radius: 10px; padding: 13px 16px; }
.kpi-k { font-size: 12px; color: var(--muted, #7A8699); margin-bottom: 6px; }
.kpi-v { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.kpi-v em { font-style: normal; font-size: 12px; color: var(--muted, #7A8699); margin-left: 3px; font-weight: 400; }
.x-note { font-size: 12px; color: #5A6478; background: #F3F6FB; border-radius: 7px; padding: 7px 10px; margin-bottom: 10px; line-height: 1.7; }
.x-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.x-h { font-size: 11.5px; color: var(--muted, #7A8699); margin-bottom: 6px; letter-spacing: .3px; }
.x-line { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 2.1; }
.x-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.eng-chip { font-size: 12px; background: #F3F6FB; border-radius: 999px; padding: 4px 11px; }
.eng-chip em { font-style: normal; color: var(--muted, #7A8699); font-size: 11px; margin-left: 5px; }

/* 折叠行：默认隐藏，点「展开」才显示 */
.hide { display: none !important; }
.show { display: table-row !important; }

/* 接话提纲（客户详情） */
.brief{margin-top:14px;background:#fffdf7;border:1px solid #f2e6c8;border-radius:12px;padding:12px 14px}
.brief-h{font-size:12.5px;font-weight:600;color:#8a6a12;margin-bottom:2px}
.brief-sub{font-weight:400;font-size:11px;color:#a99a72;margin-left:8px}
.brief-r{display:flex;gap:8px;align-items:flex-start;padding:7px 0;border-bottom:1px dashed #f3ead4}
.brief-r:last-child{border-bottom:none;padding-bottom:2px}
.brief-tag{flex:0 0 44px;font-size:11px;text-align:center;padding:2px 0;border-radius:6px;background:#f6ecd4;color:#8a6a12;line-height:1.5}
.bt-2{background:#eaf1fb;color:#42608c}
.bt-3{background:#fdeceb;color:#a1493e}
.bt-4{background:#eaf5ee;color:#3f7256}
.brief-txt{font-size:12px;line-height:1.75;color:#3d4351}

/* 未来 7 天排期（今日待办） */
.wk-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.wk-col{background:#fdfbf5;border:1px solid #efe7d6;border-radius:10px;padding:8px 9px;min-height:92px}
.wk-col.wk-today{background:#fef7e6;border-color:#f0d79a}
.wk-d{display:flex;align-items:baseline;gap:5px;margin-bottom:6px}
.wk-d b{font-size:12px;color:var(--text)}
.wk-d span{font-size:10.5px;color:var(--muted)}
.wk-i{display:block;font-size:11.5px;color:var(--text-2);text-decoration:none;line-height:1.5;padding:2px 0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-i:hover{color:var(--primary-strong)}
.wk-k{font-size:10px;background:#efe9db;color:#7d7052;border-radius:4px;padding:0 3px;margin-right:4px}
.wk-none{font-size:11px;color:#c2bba9}
.wk-more{font-size:10.5px;color:var(--muted);margin-top:2px}

/* 客户页「记一笔」：最高频的动作，两步完成 */
.mini-log{display:flex;align-items:center;gap:8px;background:#fdfbf5;border:1px solid #f0e7d6;
  border-radius:10px;padding:8px 10px;margin-bottom:14px}
.mini-hint{font-size:11.5px;color:#8a7a52;white-space:nowrap}
.mini-type{border:1px solid var(--line);background:#fff;border-radius:8px;font-size:12px;
  padding:5px 6px;color:var(--text-2);outline:none}
.mini-input{flex:1;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:12.5px;
  padding:7px 10px;color:var(--text);outline:none}
.mini-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(241,175,0,.12)}
.mini-date{border:1px solid var(--line);background:#fff;border-radius:8px;font-size:11.5px;
  padding:5px 6px;color:var(--text-2);outline:none;width:132px}
.wk-empty{font-size:12.5px;color:var(--muted);line-height:1.9;padding:10px 2px 4px}
.dm-sep{height:1px;background:var(--line);margin:4px 0}
.dm-panel a.on{color:var(--primary-strong);font-weight:600}

/* 跟进结果徽章：推进 / 原地 / 受阻 */
.tl-res{font-size:10.5px;padding:1px 6px;border-radius:5px;font-weight:600}
.tl-res.r-go{background:#e8f6ec;color:#1c7c43}
.tl-res.r-stay{background:#fdf4e3;color:#8a6a1f}
.tl-res.r-block{background:#fdecea;color:#b3372f}

/* 合并重复客户 */
.merge-src{font-size:13px;background:#fdfaf3;border:1px solid #f0e6d2;border-radius:8px;padding:10px 12px;margin-bottom:12px}
.merge-search{display:flex;gap:8px}
.merge-search input{flex:1;max-width:420px;padding:7px 10px;border:1px solid #e3dbc9;border-radius:7px;background:#fff;font:inherit;font-size:13px}

/* 客户分布页 */
.geo-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:14px}
.geo-warn{background:#fdfaf3;border-left:2px solid #e8c886;border-radius:6px;padding:9px 12px;margin-bottom:8px}
.geo-stale{color:#b3372f;font-weight:600}
@media (max-width:1100px){.geo-grid{grid-template-columns:1fr}}

/* 客户分布页条形数值不折行 */
.geo-grid .bar-row .v{min-width:102px;text-align:right;white-space:nowrap}

/* 区域筛选提示 */
.region-note{display:flex;align-items:center;gap:8px;margin:2px 0 10px}
.rn-label{font-size:12px;color:#8b8272}
.rn-chip{display:inline-flex;align-items:center;gap:5px;background:#fdf6e6;border:1px solid #efdfbd;
  color:#8a6a1f;border-radius:14px;padding:3px 10px;font-size:12.5px;text-decoration:none}
.rn-chip b{font-weight:400;color:#b4a382}

/* 客户详情：按等级节奏的判断行 */
.prog-rhythm-line{margin:2px 0 10px;font-size:12.5px;line-height:1.6}
.prog-rhythm-line .rl-hot{color:#b3372f}
.prog-rhythm-line .rl-ok{color:#1c7c43}

/* 待办清单筛选条 */
.act-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:12px}
.act-bar .ab-sep{width:1px;height:18px;background:#e6dcc6;margin:0 4px}

/* 同名二次确认块 */
.dup-block{margin-bottom:14px;padding:12px 14px;border:1px solid #f0c98a;background:#fff9ee;border-radius:10px}
.dup-block .db-h{font-size:13px;font-weight:600;color:#a2620a;margin-bottom:6px}
.dup-block .db-row{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;padding:6px 0}
.dup-block .db-row b{color:var(--text)}
.dup-block .db-row span{color:var(--muted)}
.dup-block .db-ack{display:flex;gap:8px;align-items:center;font-size:13px;margin-top:6px;cursor:pointer}
.dup-block .db-tip{font-size:11.5px;color:var(--muted);margin-top:6px}

/* 批量条：按动作只显示配套的那一个输入框 */
.bulkbar .bulk-extra[hidden]{display:none!important}

/* 客户名下面的集团归属：一行小字，不占列宽 */
.sub-parent{display:block;font-size:11px;color:#9a8a63;margin-top:1px;font-weight:400}

/* 自动建成的集团档案：缺资料时给一条能动手的提示，不占版面 */
.dossier-tip{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px;
  background:#fdf9ef;border:1px solid #f0dcaa;border-radius:10px;padding:9px 14px;
  font-size:12.5px;line-height:1.7;color:#7a6420}
.dossier-tip b{color:#6b5417}
.dossier-tip a{margin-left:auto;color:#a2620a;text-decoration:none;white-space:nowrap}
.dossier-tip a:hover{text-decoration:underline}

/* 经营驾驶舱：风险项里的小字说明换行，别和标题挤在一起 */
.risk-k em { display: block; font-style: normal; font-size: 11.5px; color: #8a8f99;
  margin-top: 2px; line-height: 1.35; }
.risk-item { align-items: flex-start; }
.risk-item .risk-dot { margin-top: 4px; }

/* 右上角用户菜单：点击展开（原来只有 hover，鼠标一移动菜单就消失，点不到） */
.user-trigger {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid transparent; background: none; padding: 4px 8px 4px 4px;
  border-radius: 10px; font-family: inherit; color: inherit; transition: background .15s, border-color .15s;
}
.user-trigger:hover, .user-drop.open .user-trigger { background: #fff; border-color: var(--line); }
.user-caret { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.user-drop.open .user-caret { transform: rotate(180deg); }
.dm-head { padding: 8px 10px 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.dm-head em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 9px; }
.dropdown-menu a svg, .dropdown-menu button svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.dm-sub { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }

/* 表单里的"系统自动"字段：灰底只读，别让人以为改了会生效 */
.field input.is-auto { background: #f7f8fb; color: var(--muted); cursor: not-allowed; }


/* 系统设置：销售总经理只读模式（可看不可改，导出可用） */
.ro-mode form input,
.ro-mode form select,
.ro-mode form textarea,
.ro-mode form button { pointer-events: none; opacity: .55; }
.ro-mode form { position: relative; }
.ro-mode form input, .ro-mode form select, .ro-mode form textarea,
.ro-mode form button { cursor: not-allowed; }


/* 商机阶段 SOP 清单 */
.sop-list { display: flex; flex-direction: column; gap: 2px; }
.sop-row { margin: 0; padding: 6px 2px; border-bottom: 1px dashed #eceef3; }
.sop-row:last-child { border-bottom: 0; }
.sop-row label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 12.5px; line-height: 1.7; }
.sop-row input[type=checkbox] { margin-top: 3px; }
.sop-row .sop-done { color: #9aa1ac; text-decoration: line-through; }
.sop-row em { font-style: normal; color: #9aa1ac; font-size: 11px; margin-left: 22px; }

/* 客户服务标准卡 */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 10px; }
.svc-grid .k { font-size: 11.5px; color: #8a8f99; }
.svc-grid .v { font-size: 13px; color: #1a1a1a; margin-top: 2px; }
.svc-line { font-size: 12.5px; line-height: 1.9; color: #33363b; }

/* 系统设置：服务标准编辑 */
.svc-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-edit-box { border: 1px solid #eceef3; border-radius: 8px; padding: 10px 12px; background: #fdfdfc; }
.svc-edit-h { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.svc-edit-h input { font-size: 13px; font-weight: 600; border: 1px solid #e2e5ea; border-radius: 6px; padding: 4px 6px; }
.svc-edit-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 6px; }
.svc-edit-row.col { flex-direction: column; align-items: stretch; gap: 3px; }
.svc-edit-row label { color: #8a8f99; white-space: nowrap; }
.svc-edit-row input { border: 1px solid #e2e5ea; border-radius: 6px; padding: 5px 8px; font-size: 12.5px; }
@media (max-width: 900px) { .svc-edit { grid-template-columns: 1fr; } }

/* 跟进 PK 榜 */
.pk-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.pk-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.pk-card { border: 1px solid #eceef3; border-radius: 8px; padding: 8px 14px; background: #fdfdfc; min-width: 110px; }
.pk-card-t { font-size: 12px; color: #8a8f99; }
.pk-card-v { font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
.pk-card-s { font-size: 11.5px; color: #9aa1ac; }
.pk-rank { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 11px; font-size: 12px; font-weight: 700; background: #f2f3f5; color: #6b7280; }
.pk-rank-1 { background: #F1AF00; color: #fff; }
.pk-rank-2 { background: #ffe9a8; color: #8a6a00; }
.pk-rank-3 { background: #fff6d8; color: #8a7200; }

/* 客户简报 */
.brief-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.brief-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.brief-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.brief-open { font-size: 13px; line-height: 1.9; color: #1a1a1a; background: #FEF8E7; border-left: 3px solid #F1AF00; padding: 10px 12px; border-radius: 0 6px 6px 0; }
.brief-steps { margin: 4px 0 0 18px; padding: 0; font-size: 12.5px; line-height: 2; color: #33363b; }
.brief-risks { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 2; color: #b91c1c; }
.brief-text { width: 100%; min-height: 210px; border: 1px solid #eceef3; border-radius: 8px; padding: 12px; font-size: 12.5px; line-height: 1.9; color: #1a1a1a; background: #fcfcfb; font-family: "Microsoft YaHei", Arial, sans-serif; resize: vertical; }

/* 问数 */
.ask-box { display: flex; gap: 10px; margin-bottom: 10px; }
.ask-box input { flex: 1; border: 1px solid #e2e5ea; border-radius: 8px; padding: 11px 14px; font-size: 14px; font-family: inherit; }
.ask-samples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ask-chip { font-size: 12px; padding: 4px 10px; border: 1px solid #eceef3; border-radius: 14px; color: #6b7280; background: #fdfdfc; }
.ask-chip:hover { border-color: #F1AF00; color: #8a6a00; }
.ask-q { font-size: 12.5px; color: #8a8f99; margin-bottom: 6px; }
.ask-a { font-size: 26px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.ask-u { font-size: 13px; font-weight: 400; color: #6b7280; margin-left: 10px; }
.ask-t { font-size: 13px; color: #33363b; margin-top: 4px; }
.ask-sub { font-size: 12px; color: #8a8f99; line-height: 1.9; margin-top: 8px; }
.ask-rows { margin-top: 12px; font-size: 12.5px; }
.ask-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 今日行动 */
.visit-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.visit-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 8px 14px; border-radius: 8px; border: 1px solid #eceef3; background: #fdfdfc; }
.visit-pill .vp-n { font-size: 20px; font-weight: 700; line-height: 1.3; color: #1a1a1a; }
.visit-pill .vp-t { font-size: 11.5px; color: #8a8f99; }
.v-overdue { border-color: #f6d5d5; background: #fdf5f5; } .v-overdue .vp-n { color: #b91c1c; }
.v-today { border-color: #f5dfa8; background: #fef9ec; } .v-today .vp-n { color: #8a6a00; }
.visit-range { display: flex; gap: 6px; align-items: center; margin-left: auto; white-space: nowrap; }
.visit-range select { border: 1px solid #e2e5ea; border-radius: 6px; padding: 4px 6px; min-width: 62px; }
.vrow { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px dashed #eceef3; align-items: flex-start; }
.vrow:last-child { border-bottom: 0; }
.vrow-main { flex: 1; min-width: 0; }
.vrow-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.vrow-meta { font-size: 11.5px; color: #8a8f99; margin-top: 3px; }
.vrow-last { font-size: 12px; color: #33363b; margin-top: 5px; line-height: 1.7; }
.vrow-plan { font-size: 12px; color: #8a6a00; background: #fef9ec; border-radius: 4px; padding: 3px 8px; margin-top: 5px; display: inline-block; }
/* 桌面宽屏：拨号/记结果/简报横排，一行更矮，一屏能多看几家；窄屏仍竖排 */
.vrow-act { display: flex; flex-direction: column; gap: 6px; width: 140px; flex: 0 0 140px; align-items: stretch; }
@media (min-width: 1100px) {
  .vrow-act { flex-direction: row; width: auto; flex: 0 0 auto; align-items: center; gap: 6px; }
  .vrow-act .btn { white-space: nowrap; }
}
.vlog summary { list-style: none; text-align: center; cursor: pointer; }
.vlog summary::-webkit-details-marker { display: none; }
.vform { margin: -2px 16px 12px; border: 1px solid #f5dfa8; border-radius: 8px; padding: 10px 12px; background: #fffdf6; display: flex; flex-direction: column; gap: 8px; }
.vform[hidden] { display: none; }
.vform-row { display: flex; gap: 6px; align-items: center; }
.vform-row select, .vform-row input { flex: 0 0 auto; min-width: 92px; border: 1px solid #e2e5ea; border-radius: 5px; padding: 4px 6px; font-size: 12px; }
.vform textarea { border: 1px solid #e2e5ea; border-radius: 5px; padding: 6px 8px; font-size: 12px; line-height: 1.7; resize: vertical; font-family: inherit; }

/* 客户详情一键条 */
.quickbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 2px 0 10px; }
.qb { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 6px 12px; border: 1px solid #eceef3; border-radius: 16px; background: #fdfdfc; color: #33363b; cursor: pointer; }
.qb:hover { border-color: #F1AF00; color: #8a6a00; }
.qb-tel { background: #fef9ec; border-color: #f5dfa8; color: #8a6a00; font-weight: 600; }
.qb-form { padding: 4px 10px; gap: 6px; }
.qb-lab { color: #8a8f99; font-size: 12px; }
.qb-form input { border: 1px solid #e2e5ea; border-radius: 5px; padding: 3px 6px; font-size: 12px; }
.qb-btn { border: 0; background: #F1AF00; color: #fff; border-radius: 12px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

/* 问数：现在最该问 */
.ask-tips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ask-tips-h { font-size: 12px; color: #8a6a00; background: #fef9ec; border-radius: 12px; padding: 3px 10px; }
.ask-tip { display: inline-flex; flex-direction: column; gap: 2px; padding: 7px 12px; border: 1px solid #f5dfa8; border-radius: 8px; background: #fffdf6; }
.ask-tip b { font-size: 13px; color: #1a1a1a; font-weight: 600; }
.ask-tip em { font-style: normal; font-size: 11.5px; color: #8a6a00; }
.ask-tip:hover { border-color: #F1AF00; }

/* 今日行动：记结果按钮（固定浅黄，不跟随主按钮 hover 变蓝） */
.vbtn-log { background: #FEF8E7; border-color: #f5dfa8; color: #8a6a00; font-weight: 600; }
.vbtn-log:hover { background: #FDF1CE; border-color: #efcf7a; color: #7a5c00; }

/* 经营钻取 */
.pivot-dims { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pivot-chip { font-size: 12.5px; padding: 5px 12px; border: 1px solid #eceef3; border-radius: 15px; background: #fdfdfc; color: #33363b; }
.pivot-chip:hover { border-color: #F1AF00; color: #8a6a00; }
.pivot-chip.on { background: #FEF8E7; border-color: #f5dfa8; color: #8a6a00; font-weight: 600; }
.pivot-go { font-size: 12px; color: #8a6a00; }
.pivot-sum td { background: #fdfcf6; border-top: 2px solid #f5dfa8; }

/* 今日行动 · 日历视图 */
.visit-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.vt { font-size: 12.5px; padding: 5px 14px; border: 1px solid #eceef3; border-radius: 6px; background: #fff; color: #33363b; }
.vt:hover { border-color: #F1AF00; }
.vt.on { background: #FEF8E7; border-color: #f5dfa8; color: #8a6a00; font-weight: 600; }
.cal-wrap { background: #fff; border: 1px solid #eceef3; border-radius: 8px; padding: 14px; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cal-title { font-size: 15px; font-weight: 700; color: #16181c; }
.cal-nav { font-size: 12.5px; color: #8a6a00; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wk { margin-bottom: 6px; }
.cal-wd { text-align: center; font-size: 11.5px; color: #8b8f97; padding: 3px 0; }
.cal-cell { min-height: 74px; border: 1px solid #f0f1f4; border-radius: 6px; padding: 5px 6px; background: #fdfdfc; display: block; color: inherit; }
.cal-cell:hover { border-color: #F1AF00; background: #fffdf6; }
.cal-blank { border: none; background: transparent; }
.cal-top { display: flex; align-items: center; justify-content: space-between; }
.cal-d { font-size: 12.5px; font-weight: 600; color: #16181c; }
.cal-n { font-size: 10.5px; background: #F1AF00; color: #fff; border-radius: 9px; padding: 1px 6px; }
.cal-names { margin-top: 4px; display: flex; flex-direction: column; gap: 1px; }
.cal-names span { font-size: 10.5px; color: #555a63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { color: #8b8f97; }
.cal-today { border-color: #F1AF00; box-shadow: inset 0 0 0 1px #f5dfa8; background: #FFFDF3; }
.cal-past .cal-d { color: #a8adb6; }
.cal-past.cal-has { background: #fdf5f5; border-color: #f3dede; }
.cal-legend { margin-top: 10px; display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: #8b8f97; }
.lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.lg-today { background: #FFFDF3; border: 1px solid #F1AF00; }
.lg-has { background: #fdfcf6; border: 1px solid #e7e2d3; }
.lg-past { background: #fdf5f5; border: 1px solid #f3dede; }

/* AI 助手 */
.agent-box .card-body { padding: 14px 16px 12px; }
.agent-form { display: flex; gap: 10px; align-items: stretch; }
.agent-input { flex: 1; border: 1px solid #e6e8ee; border-radius: 8px; padding: 10px 12px;
  font-family: inherit; font-size: 13px; line-height: 1.6; resize: vertical; color: #16181c; background: #fff; }
.agent-input:focus { outline: none; border-color: #F1AF00; box-shadow: 0 0 0 3px #FEF8E7; }
.agent-go { white-space: nowrap; align-self: flex-end; height: 38px; }
.agent-ex { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.agent-chip { font-size: 11.5px; color: #555a63; background: #fafaf8; border: 1px solid #eceef3;
  border-radius: 12px; padding: 3px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-chip:hover { border-color: #F1AF00; color: #8a6a00; background: #FFFDF3; }
.agent-plan { border-left: 3px solid #F1AF00; }
.agent-line { font-size: 14px; line-height: 1.8; color: #16181c; }
.agent-meta { margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #555a63; }
.agent-confirm { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.agent-miss { border-left-color: #b91c1c; background: #fdf7f7; }
.agent-cap div { font-size: 12.5px; line-height: 1.95; color: #33363b; }

/* 工作台 · 主线流程条 + 今日四件事 */
.flow-bar { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #eceef3;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; overflow-x: auto; }
.flow-step { flex: 1; min-width: 92px; text-align: center; padding: 4px 6px; border-radius: 6px; }
.flow-step:hover { background: #FFFDF3; }
.fs-n { font-size: 19px; font-weight: 700; color: #16181c; line-height: 1.25; }
.fs-u { font-size: 11px; font-weight: 400; color: #8b8f97; margin-left: 2px; }
.fs-l { font-size: 12px; color: #555a63; margin-top: 2px; }
.fs-sub { font-size: 11px; color: #8a6a00; }
.flow-arrow { color: #E5A400; font-size: 17px; align-self: center; padding: 0 3px; font-weight: 600; }
.today4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.t4 { background: #fff; border: 1px solid #eceef3; border-left-width: 3px; border-radius: 8px;
  padding: 10px 14px; }
.t4:hover { box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.t4-red { border-left-color: #d9534f; }
.t4-amber { border-left-color: #F1AF00; }
.t4-gray { border-left-color: #c7cbd3; }
.t4-n { font-size: 20px; font-weight: 700; color: #16181c; }
.t4-k { font-size: 12.5px; color: #33363b; margin-top: 2px; }
.t4-h { font-size: 11.5px; color: #8b8f97; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t4-h { color: #8b8f97; }
@media (max-width: 760px) { .today4 { grid-template-columns: repeat(2, 1fr); } }

/* 客户查重 */
.dedupe-sum { font-size: 13px; color: #33363b; margin-bottom: 10px; }
.dedupe-sum b { color: #8a6a00; }
.dedupe-card { margin-bottom: 12px; }
.dedupe-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-top: 1px solid #f0f1f4; background: #fdfcf8; }

/* AI 话术 */
.talk-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.talk-item { border: 1px solid #f0ead9; background: #FFFDF3; border-radius: 8px; padding: 10px 12px; position: relative; }
.talk-lab { font-size: 11.5px; color: #8a6a00; font-weight: 600; margin-bottom: 4px; }
.talk-txt { font-size: 13.5px; line-height: 1.8; color: #16181c; padding-right: 44px; }
.talk-copy { position: absolute; right: 10px; top: 10px; font-size: 11.5px; color: #8a6a00;
  background: #fff; border: 1px solid #f5dfa8; border-radius: 5px; padding: 2px 8px; cursor: pointer; }
.talk-copy:hover { background: #FEF8E7; }

/* 权限矩阵 */
.roles-table th.num { text-align: center; font-weight: 600; }
.roles-table td.num { text-align: center; font-size: 12.5px; }
.ro-no { color: #b9bdc6; }

/* 客户详情：下一步（只给一个动作） */
.next-step { display: flex; align-items: center; gap: 16px; background: #FFFDF3;
  border: 1px solid #f3e6bd; border-left: 3px solid #F1AF00; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 12px; }
.ns-main { flex: 1; min-width: 0; }
.ns-lab { font-size: 11px; color: #8a6a00; letter-spacing: .5px; }
.ns-title { font-size: 15px; font-weight: 700; color: #16181c; margin-top: 2px; }
.ns-why { font-size: 12px; color: #6b6f78; margin-top: 3px; line-height: 1.6; }
.ns-go { white-space: nowrap; }
.ns-call { border-left-color: #d9534f; background: #fdf7f7; }
.ns-call .ns-lab { color: #b91c1c; }

/* 详情页操作按钮不换行 */
.detail-head .actions .btn, .detail-head .actions form { white-space: nowrap; flex: 0 0 auto; }
.detail-head .actions { flex-wrap: wrap; }

/* AI 诊断 */
.diag-sum { font-size: 12.5px; color: #6b6f78; margin: 8px 0 12px; }
.diag-list { display: flex; flex-direction: column; gap: 8px; }
.diag-item { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #f0f1f4;
  border-radius: 8px; background: #fdfdfc; }
.diag-red { border-color: #f3dede; background: #fdf7f7; }
.diag-amber { border-color: #f5e6c8; background: #fffdf6; }
.diag-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: #c7cbd3; }
.diag-red .diag-dot { background: #d9534f; }
.diag-amber .diag-dot { background: #F1AF00; }
.diag-main { flex: 1; min-width: 0; }
.diag-title { font-size: 13.5px; font-weight: 600; color: #16181c; }
.diag-why { font-size: 12px; color: #6b6f78; line-height: 1.7; margin-top: 3px; }
.diag-act { font-size: 12px; color: #8a6a00; margin-top: 4px; }
.diag-foot { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 日期后紧跟相对时间，列表里不用心算 */
.cell-ago { margin-left: 5px; font-size: 11px; color: #9aa0aa; }
.cell-ago.ago-late { color: #d9534f; }
.cell-ago.ago-soon { color: #8a6a00; }

.ex-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sub-note { margin-left: 8px; font-size: 11.5px; color: #9aa0aa; font-weight: 400; }
.ex-row { width: 100%; }

/* AI 批量排期 */
.bulk-list { margin: 10px 0 12px; border: 1px solid #f0f1f4; border-radius: 8px; overflow: hidden; }
.bulk-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid #f4f5f7; font-size: 12.5px; }
.bulk-item:first-child { border-top: 0; }
.bulk-name { flex: 1; min-width: 0; color: #16181c; }
.bulk-meta { color: #8a8f99; font-size: 11.5px; }
.bulk-date { color: #9aa0aa; font-size: 11.5px; min-width: 92px; text-align: right; }
.bulk-more { padding: 7px 12px; font-size: 11.5px; color: #8a6a00; background: #fffdf6; border-top: 1px solid #f4f5f7; }

/* 长表单：底部保存条加一条轻阴影，顶部另有常驻保存按钮 */
.form-actions { border-radius: 0 0 10px 10px; box-shadow: 0 -6px 14px rgba(15,23,42,.04); }
.form-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.form-top .muted { font-size: 12px; flex: 1; }


/* 今日行动：一组只列前 40 家，其余给一行提示 */
.vmore { padding: 10px 16px; font-size: 12.5px; color: #6b6f78; background: #fbfcfe;
  border-top: 1px solid #f0f1f4; }
.vmore a { margin-left: 6px; }

/* 运行状况 */
.rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rt { border: 1px solid #f0f1f4; border-radius: 8px; padding: 10px 12px; background: #fcfcfd; }
.rt-k { font-size: 12px; color: #6b6f78; }
.rt-v { font-size: 20px; font-weight: 700; margin: 2px 0; color: #16181c; }
.rt-h { font-size: 11px; color: #9aa0aa; line-height: 1.5; }
.rt-note { margin-top: 10px; font-size: 12px; color: #6b6f78; }
