/* =========================================================
   众盛达 CRM · 全站样式
   主色：#FF7A1A（官网橙）/ #1E7FFF（CRM 蓝）/ #F5576C（我的客户红）
   ========================================================= */
:root {
  --brand-orange: #ff7a1a;
  --brand-orange-dark: #e5670a;
  --brand-orange-light: #fff2e6;
  --brand-blue: #1e7fff;
  --brand-blue-dark: #1668d6;
  --brand-blue-light: #e8f2ff;
  --brand-red: #f5576c;
  --brand-red-dark: #d9435a;
  --brand-green: #22c55e;
  --ink-1: #1a1f2c;
  --ink-2: #3d4657;
  --ink-3: #6b7383;
  --ink-4: #9aa2b1;
  --line: #e5e8ee;
  --bg-page: #f5f7fb;
  --bg-side: #47505c;
  --bg-side-hover: #525d6c;
  --shadow-card: 0 2px 12px rgba(20, 40, 80, .06);
  --shadow-pop: 0 12px 40px rgba(20, 40, 80, .18);
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink-1);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: var(--radius);
  font-size: 14px; transition: all .18s; white-space: nowrap;
}
.btn-orange { background: var(--brand-orange); color: #fff; }
.btn-orange:hover { background: var(--brand-orange-dark); }
.btn-blue { background: var(--brand-blue); color: #fff; }
.btn-blue:hover { background: var(--brand-blue-dark); }
.btn-red { background: var(--brand-red); color: #fff; }
.btn-red:hover { background: var(--brand-red-dark); }
.btn-ghost {
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-lg { height: 44px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 表单 ============ */
.input, .select {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink-1); transition: border-color .18s;
}
.input:focus, .select:focus { border-color: var(--brand-blue); }
.input::placeholder { color: var(--ink-4); }
.form-item { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 13px; color: var(--ink-2);
}
.form-label .req { color: var(--brand-red); margin-right: 3px; }

/* ==========================================================
   一、官网（首页 / 产品页）
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: 64px; background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 700; color: var(--brand-orange);
  letter-spacing: 1px;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-orange), #ffb26b);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 15px; color: var(--ink-2); padding: 6px 0;
  border-bottom: 2px solid transparent; transition: all .18s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--brand-orange); border-color: var(--brand-orange);
}
.site-nav .btn { margin-left: 8px; }

/* Banner */
.hero {
  position: relative; height: 520px;
  background:
    radial-gradient(900px 420px at 15% 30%, rgba(150, 20, 40, .55), transparent 62%),
    radial-gradient(900px 460px at 85% 70%, rgba(30, 70, 180, .55), transparent 62%),
    linear-gradient(120deg, #3a0d1c 0%, #241430 45%, #14264f 100%);
  color: #fff; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .35; pointer-events: none;
}
.hero::before {
  width: 340px; height: 340px; left: -80px; top: -80px;
  background: #a01830;
}
.hero::after {
  width: 420px; height: 420px; right: -100px; bottom: -120px;
  background: #1e46b4;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-title {
  font-size: 46px; font-weight: 700; margin: 0 0 14px;
  letter-spacing: 2px;
}
.hero-title em {
  color: var(--brand-orange); font-style: normal; margin: 0 4px;
}
.hero-sub {
  font-size: 18px; color: rgba(255, 255, 255, .78); margin: 0 0 40px;
}
.hero-form {
  display: flex; align-items: center; gap: 0;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: 6px 6px 6px 24px;
  width: min(560px, 92vw);
}
.hero-form input {
  flex: 1; height: 44px; background: transparent; border: 0;
  color: #fff; font-size: 16px;
}
.hero-form input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-tip {
  margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* Feature 板块 */
.section { padding: 72px 24px; background: #fff; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 30px; font-weight: 700;
  color: var(--ink-1); margin: 0 0 10px; letter-spacing: 2px;
}
.section-title span { color: var(--brand-orange); margin: 0 8px; }
.section-desc {
  text-align: center; color: var(--ink-3); margin: 0 auto 48px;
  max-width: 640px; font-size: 15px;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card {
  padding: 40px 28px; border-radius: 14px; text-align: center;
  background: #fff; border: 1px solid var(--line);
  transition: all .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 122, 26, .12);
  border-color: var(--brand-orange);
}
.feature-icon {
  width: 88px; height: 88px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), #ffab5e);
  color: #fff; font-size: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 122, 26, .3);
}
.feature-card h3 { font-size: 20px; margin: 0 0 10px; color: var(--ink-1); }
.feature-card p { color: var(--ink-3); margin: 0; font-size: 14px; }

/* Footer */
.site-footer {
  background: #141b2b; color: rgba(255, 255, 255, .6);
  padding: 32px 24px; text-align: center; font-size: 13px;
}
.site-footer a { color: rgba(255, 255, 255, .8); margin: 0 8px; }
.site-footer a:hover { color: var(--brand-orange); }

/* 产品页 */
.product-carousel {
  position: relative; height: 380px; border-radius: 14px; overflow: hidden;
  background: #1a2540; margin-bottom: 40px;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .5s ease;
}
.carousel-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; letter-spacing: 2px;
}
.carousel-slide:nth-child(1) { background: linear-gradient(135deg, #ff9a44, #ff6a00); }
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, #4facfe, #1e7fff); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, #667eea, #764ba2); }
.carousel-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); transition: all .2s;
}
.carousel-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 2; transition: background .2s;
}
.carousel-arrow:hover { background: rgba(0, 0, 0, .5); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-item {
  display: flex; gap: 20px; padding: 24px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
  transition: all .25s;
}
.product-item:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-card);
}
.product-thumb {
  width: 120px; height: 120px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffd8b1, #ffab5e);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: #fff;
}
.product-item:nth-child(2n) .product-thumb {
  background: linear-gradient(135deg, #b1d4ff, #5fa0ff);
}
.product-item:nth-child(3n) .product-thumb {
  background: linear-gradient(135deg, #d0b1ff, #9c6bff);
}
.product-info h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink-1); }
.product-info p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.7; }

/* ==========================================================
   二、登录页
   ========================================================== */
.login-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, #f5f7fb, #e8f0ff);
}
.login-brand {
  flex: 1.1; padding: 60px;
  background:
    radial-gradient(600px 300px at 20% 80%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, #6db3ec 0%, #58a3e4 50%, #4a97dd 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.login-brand h1 { font-size: 42px; margin: 0 0 20px; letter-spacing: 3px; }
.login-brand p { font-size: 16px; color: rgba(255, 255, 255, .82); line-height: 1.9; margin: 0 0 12px; }
.login-brand ul { margin-top: 30px; }
.login-brand li {
  padding: 8px 0; font-size: 15px; color: rgba(255, 255, 255, .9);
  display: flex; align-items: center; gap: 10px;
}
.login-brand li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px;
}
.login-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%; max-width: 400px; padding: 40px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-pop);
}
.login-card h2 {
  margin: 0 0 6px; font-size: 24px; color: var(--ink-1); text-align: center;
}
.login-card .sub {
  margin: 0 0 28px; text-align: center; color: var(--ink-3); font-size: 13px;
}
.login-card .form-item { margin-bottom: 18px; }
.login-card .input { height: 44px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-btn {
  width: 120px; height: 44px; border-radius: var(--radius);
  background: var(--brand-blue-light); color: var(--brand-blue);
  font-size: 13px; transition: all .18s;
}
.code-btn:hover:not(:disabled) { background: #d5e5ff; }
.code-btn:disabled { color: var(--ink-4); background: #f0f2f6; cursor: not-allowed; }
.login-btn {
  width: 100%; height: 46px; border-radius: var(--radius);
  background: var(--brand-blue); color: #fff; font-size: 16px;
  margin-top: 8px; transition: background .18s;
}
.login-btn:hover { background: var(--brand-blue-dark); }
.login-footer {
  margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink-3);
}
.login-footer a { color: var(--brand-blue); }

/* ==========================================================
   三、工作台（CRM）
   ========================================================== */
.crm-layout { display: flex; min-height: 100vh; background: var(--bg-page); }

/* 侧边栏 */
.crm-side {
  width: 220px; flex-shrink: 0;
  background: var(--bg-side); color: rgba(255, 255, 255, .82);
  display: flex; flex-direction: column;
}
.crm-side .side-logo {
  height: 60px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.crm-side .side-logo .logo-mark { width: 28px; height: 28px; font-size: 14px; }
.crm-side .side-logo span { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.side-menu { flex: 1; overflow-y: auto; padding: 12px 0; }
.side-menu .group-title {
  padding: 12px 20px 6px; font-size: 12px;
  color: rgba(255, 255, 255, .35); letter-spacing: 1px;
}
.side-menu a {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px; color: rgba(255, 255, 255, .78);
  font-size: 14px; transition: all .18s; cursor: pointer;
  border-left: 3px solid transparent;
}
.side-menu a:hover { background: var(--bg-side-hover); color: #fff; }
.side-menu a.active {
  background: var(--bg-side-hover); color: #fff;
  border-left-color: var(--brand-blue);
}
.side-menu a .ico {
  width: 18px; text-align: center; font-size: 15px;
  opacity: .85;
}
.side-menu .badge {
  margin-left: auto; padding: 1px 7px; border-radius: 10px;
  background: var(--brand-red); color: #fff; font-size: 11px;
}
.side-footer {
  padding: 14px 20px; font-size: 12px;
  color: rgba(255, 255, 255, .35); border-top: 1px solid rgba(255, 255, 255, .08);
}

/* 主体 */
.crm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crm-topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.crumb { color: var(--ink-3); font-size: 14px; }
.crumb strong { color: var(--ink-1); margin: 0 4px; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--bg-page); cursor: pointer;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), #6fb0ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.user-name { font-size: 13px; color: var(--ink-2); }
.crm-content { flex: 1; padding: 20px 24px 40px; overflow-x: auto; }

/* 页面标题 */
.page-title {
  display: flex; align-items: center; margin-bottom: 16px;
}
.page-title h2 {
  margin: 0; font-size: 20px; color: var(--ink-1); font-weight: 600;
}
.page-title .actions { margin-left: auto; display: flex; gap: 10px; }

/* 统计卡片 */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 20px;
}
.stat-card {
  padding: 20px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--brand-blue);
}
.stat-card.orange::before { background: var(--brand-orange); }
.stat-card.green::before { background: #22c55e; }
.stat-card.purple::before { background: #8b5cf6; }
.stat-card .label { color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }
.stat-card .value {
  font-size: 28px; font-weight: 700; color: var(--ink-1);
  font-family: "DIN Alternate", -apple-system, sans-serif;
}
.stat-card .trend {
  margin-top: 6px; font-size: 12px; color: var(--ink-4);
}
.stat-card .trend.up { color: #22c55e; }

/* 通用面板 */
.panel {
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-card); padding: 20px; margin-bottom: 20px;
}
.panel-head {
  display: flex; align-items: center; margin-bottom: 16px;
}
.panel-head h3 { margin: 0; font-size: 16px; color: var(--ink-1); font-weight: 600; }
.panel-head .extra { margin-left: auto; display: flex; gap: 8px; }

/* 筛选栏 */
.filter-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px; align-items: end;
  padding: 16px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-card); margin-bottom: 16px;
}
.filter-bar .form-item { margin-bottom: 0; }
.filter-bar .form-label { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.filter-actions { display: flex; gap: 8px; }

/* 表格 */
.table-wrap {
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-card); overflow: hidden;
}
/* 全信息宽表：横向滚动 + 分组表头 */
.table-wrap.wide { overflow-x: auto; }
.table-wrap.wide table.data-table { width: max-content; min-width: 100%; }
.table-wrap.wide thead th.grp {
  background: #f2f5fa; color: var(--ink-2); font-weight: 600;
  text-align: center; border-bottom: 1px solid var(--line);
}
.table-toolbar {
  display: flex; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--line); gap: 12px;
}
.table-toolbar h3 { margin: 0; font-size: 15px; font-weight: 600; }
.table-toolbar .count { color: var(--ink-3); font-size: 13px; }
.table-toolbar .right { margin-left: auto; display: flex; gap: 8px; }
table.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
table.data-table th, table.data-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table th {
  background: #fafbfd; color: var(--ink-3); font-weight: 500;
  font-size: 12px; letter-spacing: .5px;
}
table.data-table tbody tr:hover { background: #f8faff; }
table.data-table td.link { color: var(--brand-blue); cursor: pointer; }
table.data-table td.link:hover { text-decoration: underline; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; background: var(--brand-blue-light); color: var(--brand-blue);
}
.tag.orange { background: var(--brand-orange-light); color: var(--brand-orange); }
.tag.green { background: #e6f9ee; color: #17a34a; }
.tag.gray { background: #f0f2f6; color: var(--ink-3); }
.tag.red { background: #ffecef; color: var(--brand-red); }

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.pagination button {
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink-2); font-size: 13px;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--brand-blue); color: var(--brand-blue);
}
.pagination button.active {
  background: var(--brand-blue); border-color: var(--brand-blue); color: #fff;
}
.pagination button:disabled { color: var(--ink-4); cursor: not-allowed; }

/* 空态 */
.empty {
  padding: 60px 20px; text-align: center; color: var(--ink-4);
}
.empty .ico { font-size: 42px; margin-bottom: 10px; opacity: .5; }

/* 行业级联下拉 */
.cascader { position: relative; }
.cascader-panel {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-pop);
  display: flex; min-width: 420px; overflow: hidden;
  border: 1px solid var(--line);
}
.cascader-col {
  width: 210px; max-height: 300px; overflow-y: auto;
  border-right: 1px solid var(--line);
}
.cascader-col:last-child { border-right: 0; }
.cascader-col li {
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; color: var(--ink-2);
}
.cascader-col li:hover { background: var(--brand-blue-light); color: var(--brand-blue); }
.cascader-col li.active { background: var(--brand-blue-light); color: var(--brand-blue); font-weight: 500; }
.cascader-col li .arrow { margin-left: auto; font-size: 11px; color: var(--ink-4); }

/* 已选标签 */
.chosen-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
.chosen-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: var(--brand-blue-light); color: var(--brand-blue);
  border-radius: 4px; font-size: 12px;
}
.chosen-tag .x { cursor: pointer; opacity: .7; }
.chosen-tag .x:hover { opacity: 1; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 25, 45, .48);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; animation: fadeIn .18s;
}
.modal {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-pop);
  width: 420px; max-width: calc(100vw - 32px); overflow: hidden;
  animation: popUp .22s;
}
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 6px;
  color: var(--ink-3); font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--bg-page); color: var(--ink-1); }
.modal-body { padding: 24px 20px; }
.modal-wide { width: 560px; max-height: 86vh; display: flex; flex-direction: column; }
.modal-wide .modal-body { overflow-y: auto; }
.modal-foot {
  padding: 12px 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* 抽屉（添加客户） */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15, 25, 45, .48);
  z-index: 100; animation: fadeIn .18s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px;
  max-width: 100vw; background: #fff; z-index: 101;
  box-shadow: -8px 0 32px rgba(15, 25, 45, .18);
  display: flex; flex-direction: column;
  animation: slideInRight .25s;
}
.drawer-head {
  height: 56px; padding: 0 20px;
  display: flex; align-items: center; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot {
  padding: 12px 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-item {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; cursor: pointer; color: var(--ink-2);
  transition: all .18s; background: #fff;
}
.radio-item:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.radio-item.active {
  border-color: var(--brand-blue); background: var(--brand-blue-light); color: var(--brand-blue);
}

/* 二维码 */
.qr-box { text-align: center; padding: 12px 0 4px; }
.qr-img {
  width: 180px; height: 180px; margin: 0 auto 14px;
  background:
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%) 0 0/12px 12px,
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%) 6px 6px/12px 12px,
    #fff;
  border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line);
  position: relative;
}
.qr-img::after {
  content: "客服"; position: absolute; inset: 0; margin: auto;
  width: 44px; height: 44px; background: var(--brand-orange); color: #fff;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.qr-tip { color: var(--ink-3); font-size: 13px; margin: 0; }

/* 导入弹窗 */
.import-body { text-align: center; padding: 12px 0; }
.import-steps {
  display: flex; justify-content: space-between;
  margin: 20px 0 24px; text-align: center;
}
.import-step { flex: 1; position: relative; color: var(--ink-3); font-size: 12px; }
.import-step .num {
  width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%;
  background: var(--bg-page); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; position: relative; z-index: 2;
}
.import-step.active .num { background: var(--brand-blue); color: #fff; }
.import-step.done .num { background: #22c55e; color: #fff; }
.import-step::before {
  content: ""; position: absolute; top: 14px; left: -50%; right: 50%;
  height: 2px; background: var(--line); z-index: 1;
}
.import-step:first-child::before { display: none; }
.import-step.done::before, .import-step.active::before { background: var(--brand-blue); }
.upload-box {
  border: 2px dashed var(--line); border-radius: 10px;
  padding: 30px 20px; transition: all .18s; cursor: pointer;
}
.upload-box:hover { border-color: var(--brand-blue); background: #f7faff; }
.upload-box .ico { font-size: 32px; color: var(--brand-blue); margin-bottom: 8px; }
.upload-box p { margin: 4px 0; color: var(--ink-3); font-size: 13px; }
.upload-box .file-name { color: var(--brand-blue); font-weight: 500; }

/* Toast */
.toast-wrap {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 18px; background: rgba(30, 40, 60, .92); color: #fff;
  border-radius: 6px; font-size: 13px; box-shadow: var(--shadow-pop);
  animation: toastIn .25s;
}
.toast.success { background: #22c55e; }
.toast.error { background: var(--brand-red); }
.toast.info { background: var(--brand-blue); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 隐藏工具类 */
.hidden { display: none !important; }

/* ==========================================================
   V2 优化（参考竞品 FOXSAAS / Figma 线框）
   ========================================================== */
/* Hero：实拍风背景 + 居中白字 + 白色输入条 */
.hero {
  height: 560px;
  background:
    linear-gradient(rgba(24, 30, 40, .42), rgba(24, 30, 40, .55)),
    url('../img/hero.svg') center 60% / cover no-repeat,
    #2b3644;
}
.hero::before, .hero::after { display: none; }
.hero-form {
  background: #fff; border: 0; border-radius: 4px; padding: 0;
  width: min(520px, 92vw); box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
  backdrop-filter: none;
}
.hero-form input { color: #333; height: 48px; padding: 0 16px; font-size: 15px; }
.hero-form input::placeholder { color: #9aa2b1; }
.hero-form .btn { border-radius: 0; height: 48px; padding: 0 26px; }
.hero-tip { color: rgba(255, 255, 255, .72); }

/* 功能区：浅色卡片 + 灰色盾牌图标 */
.feature-card { background: #f7f9ff; border: 1px solid #e3e9f7; border-radius: 10px; }
.feature-icon {
  background: #e8ecf3; color: #8a93a3; box-shadow: none;
  border-radius: 14px; width: 76px; height: 76px; font-size: 34px;
}
.feature-card:hover { border-color: #c9d6f2; box-shadow: 0 10px 26px rgba(60, 90, 180, .10); transform: translateY(-3px); }

/* 登录页 V2：居中两步式 */
.login-v2 {
  min-height: 100vh; background: #f4f6f9;
  display: flex; flex-direction: column; align-items: center; padding: 56px 20px;
}
.login-v2 .brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login-v2 .brand-row .logo { font-size: 26px; }
.login-v2 .brand-row .divider { width: 1px; height: 26px; background: #d5dae3; }
.login-v2 .brand-row .word { font-size: 16px; color: #666; }
.login-v2 .tips {
  width: min(560px, 92vw); background: #fdf3e7; border: 1px solid #f3ddc0;
  color: #b06f24; font-size: 13px; padding: 8px 14px; border-radius: 3px; margin-bottom: 22px;
}
.login-v2 .tips b { color: #e07b1f; margin-right: 6px; font-style: italic; }
.login-v2 .card {
  width: min(460px, 92vw); background: #f0f2f5; border: 1px solid #e2e6ec;
  border-radius: 4px; padding: 36px 40px 40px; text-align: center;
}
.login-v2 .avatar {
  width: 84px; height: 84px; border-radius: 50%; background: #d9dde3;
  margin: 0 auto 22px; display: flex; align-items: center; justify-content: center;
  color: #aeb4bd; font-size: 40px;
}
.login-v2 .hint { color: #555; font-size: 14px; margin: 0 0 22px; }
.login-v2 .phone-row { display: flex; gap: 10px; margin-bottom: 22px; }
.login-v2 .phone-row .prefix { width: 88px; }
.login-v2 .phone-row .input { flex: 1; }
.login-v2 .next-btn {
  width: 100%; height: 44px; background: var(--brand-orange); color: #fff;
  border-radius: 3px; font-size: 16px; transition: background .18s;
}
.login-v2 .next-btn:hover { background: var(--brand-orange-dark); }
.login-v2 .back-link { display: inline-block; margin-top: 16px; color: #888; font-size: 13px; }
.login-v2 .back-link:hover { color: var(--brand-orange); }

/* 工作台 V2：navy 侧边栏 + 橙色 logo */
.crm-side { background: #2b3644; width: 200px; }
.crm-side .side-logo { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.crm-side .side-logo .logo-mark { background: linear-gradient(135deg, #ff7a1a, #ff9a4d); }
.side-menu a:hover { background: #232c3a; }
.side-menu a.active { background: #20293a; color: #fff; border-left-color: var(--brand-orange); }
.side-menu .group-toggle .caret { margin-left: auto; font-size: 10px; color: rgba(255,255,255,.5); transition: transform .2s; }
.side-menu .group-toggle.open .caret { transform: rotate(90deg); }
.side-menu .sublist { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.side-menu .sublist.open { max-height: 320px; }
.side-menu .sublist a { padding-left: 46px; height: 38px; font-size: 13px; }

/* 顶栏多页签 */
.crm-tabs {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 4px 0; margin-bottom: 14px; flex-wrap: wrap;
}
.crm-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 13px; color: #555;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.crm-tab .x { color: #98a0ad; font-size: 12px; line-height: 1; }
.crm-tab .x:hover { color: var(--brand-red); }
.crm-tab.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.crm-tab.active .x { color: rgba(255, 255, 255, .85); }

/* 行内筛选条 */
.filter-inline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  padding: 14px 16px; background: #fff; border-radius: 8px;
  box-shadow: var(--shadow-card); margin-bottom: 12px;
}
.filter-inline .fi { display: flex; align-items: center; gap: 8px; }
.filter-inline .fi > label { color: #666; font-size: 13px; white-space: nowrap; }
.filter-inline .fi .input, .filter-inline .fi .select { width: 170px; }
.filter-inline .fi .input.kw { width: 230px; }
.result-bar { display: flex; align-items: center; gap: 14px; padding: 0 4px 12px; }
.result-bar .found { color: #666; font-size: 13px; }
.result-bar .found b { color: var(--brand-orange); font-weight: 600; margin: 0 4px; }
.result-bar .right { margin-left: auto; }

/* 行内解锁描边按钮 */
.cell-contact { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-unlock {
  padding: 2px 8px; font-size: 12px; color: var(--brand-blue);
  background: #eaf3ff; border: 1px solid #bcd8ff; border-radius: 3px;
  cursor: pointer; white-space: nowrap;
}
.btn-unlock:hover { background: #dcebff; }

/* 分页尺寸选择 */
.pagination .size-select {
  height: 32px; margin: 0 8px; border: 1px solid var(--line);
  border-radius: 6px; padding: 0 6px; color: #555; background: #fff;
}

/* 透明筛选条（直接落在页面灰底上，同参考图） */
.filter-inline.flat {
  background: transparent; box-shadow: none; border-radius: 0;
  padding: 14px 4px; margin-bottom: 0;
}

/* 备案页脚 */
.icp-footer {
  text-align: center; padding: 20px 0 10px;
  color: var(--ink-4); font-size: 12px;
}
.icp-footer a { color: var(--ink-4); text-decoration: underline; }
.icp-footer a:hover { color: var(--brand-blue); }

/* 视图切换 */
.view { display: none; }
.view.active { display: block; }

/* 响应式 */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .login-brand { display: none; }
  /* 窄窗口：抽屉式侧边栏（同若依）——完整文字 + 遮罩，汉堡呼出 */
  .crm-layout .crm-side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001;
    width: 200px; transform: translateX(-100%); transition: transform .28s;
    box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
  }
  .crm-layout.drawer-open .crm-side { transform: translateX(0); }
  .crm-layout .drawer-bg {
    display: block; position: fixed; inset: 0; z-index: 1000;
    background: #000; opacity: 0; pointer-events: none; transition: opacity .28s;
  }
  .crm-layout.drawer-open .drawer-bg { opacity: .3; pointer-events: auto; }
}

/* ==========================================================
   V3 统一规范（参照海德资产 / Element Plus 基准）
   主色 #409EFF · 侧边栏 #304156 · 控件 32px/圆角4px
   表头 #f8f8f9 · 行 hover #f5f7fa · 顶栏白底+浅阴影
   ========================================================== */
:root {
  --brand-blue: #409eff;
  --brand-blue-dark: #3a8ee6;
  --brand-blue-light: #ecf5ff;
  --bg-side: #304156;
  --bg-side-hover: #263445;
  --bg-side-sub: #1f2d3d;
  --radius: 4px;
}

/* 控件：高 32px / 圆角 4px / 点击反馈 */
.btn { height: 32px; padding: 0 15px; border-radius: 4px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-lg { height: 40px; padding: 0 24px; }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.input, .select { height: 32px; padding: 0 11px; border-radius: 4px; }
.input:focus, .select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, .15);
}

/* 顶栏：50px 白底 + 浅阴影 */
.crm-topbar {
  height: 50px; border-bottom: 0;
  box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
}
.hamburger {
  width: 42px; height: 50px; margin-left: -8px;
  font-size: 18px; color: var(--ink-2); transition: background .18s;
}
.hamburger:hover { background: rgba(0, 0, 0, .04); }

/* 侧边栏：#304156 / 子菜单 #1f2d3d */
.crm-side { width: 200px; background: var(--bg-side); transition: width .28s; }
.side-menu a { height: 46px; }
.side-menu a:hover { background: var(--bg-side-hover); }
.side-menu a.active { background: var(--bg-side-hover); border-left-color: var(--brand-blue); }
.side-menu .sublist { background: var(--bg-side-sub); }
.side-menu .sublist a { height: 40px; }

/* 侧边栏折叠 */
.crm-layout.collapsed .crm-side { width: 54px; }
.crm-layout.collapsed .side-logo { justify-content: center; padding: 0; }
.crm-layout.collapsed .side-logo > span:not(.logo-mark) { display: none; }
.crm-layout.collapsed .side-menu a > span:not(.ico) { display: none; }
.crm-layout.collapsed .side-menu a { justify-content: center; padding: 0; border-left-width: 0; }
.crm-layout.collapsed .side-menu .sublist,
.crm-layout.collapsed .side-footer { display: none; }

/* 页签栏：标签 26px */
.crm-tab { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 3px; }

/* 表格：表头 #f8f8f9 / 行 hover #f5f7fa */
.table-wrap { border-radius: 4px; }
table.data-table th {
  background: #f8f8f9; color: #515a6e;
  font-size: 13px; font-weight: 600; letter-spacing: 0;
}
table.data-table tbody tr:hover { background: #f5f7fa; }

/* 分页：is-background 风格 + 跳页器 */
.pagination button {
  min-width: 28px; height: 28px; border: 0; border-radius: 2px;
  background: #f5f7fa; color: var(--ink-2);
}
.pagination button:hover:not(:disabled) { background: #f5f7fa; color: var(--brand-blue); }
.pagination button.active { background: var(--brand-blue); color: #fff; }
.pagination .size-select { height: 28px; border-radius: 2px; }
.pagination .jump-input {
  width: 50px; height: 28px; margin: 0 6px;
  border: 1px solid var(--line); border-radius: 2px;
  text-align: center; color: var(--ink-2); background: #fff;
}
.pagination .jump-input:focus { border-color: var(--brand-blue); }

/* 弹窗圆角统一 */
.modal { border-radius: 6px; }

/* 内容区间距 20px */
.crm-content { padding: 20px; }

/* 全屏防泄密水印 */
.watermark {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none; opacity: .06;
}

/* 抽屉遮罩默认隐藏（仅窄窗口媒体查询内启用） */
.drawer-bg { display: none; }

/* 侧边栏细滚动条 */
.side-menu { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.side-menu::-webkit-scrollbar { width: 4px; }
.side-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 2px; }
.side-menu::-webkit-scrollbar-track { background: transparent; }

/* 图标模式下的激活提示（内嵌蓝条） */
.crm-layout.collapsed .side-menu a.active { box-shadow: inset 3px 0 0 var(--brand-blue); }

/* 折叠态悬浮飞出标签（fixed 定位不被侧栏 overflow 裁剪） */
.side-fly {
  position: fixed; transform: translateY(-50%); display: none;
  padding: 6px 12px; white-space: nowrap; z-index: 1200; pointer-events: none;
  background: #304156; color: #fff; font-size: 12px; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* 用户下拉菜单 */
.user-chip { position: relative; }
.user-chip .caret { font-size: 10px; color: var(--ink-3); transition: transform .18s; }
.user-chip.open .caret { transform: rotate(180deg); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  display: none; overflow: hidden; animation: popUp .18s;
}
.user-chip.open .user-dropdown { display: block; }
.ud-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ud-name { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.ud-phone { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ud-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.ud-item:hover { background: #f5f7fa; color: var(--brand-blue); }
.ud-item.danger { color: var(--brand-red); }
.ud-item.danger:hover { background: #fff1f3; }
.ud-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* 个人中心卡片 */
.profile-card {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0 14px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.user-avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.pf-name { font-size: 16px; font-weight: 600; color: var(--ink-1); }
.pf-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.profile-list li {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 13px; color: var(--ink-3); border-bottom: 1px dashed var(--line);
}
.profile-list li:last-child { border-bottom: 0; }
.profile-list li strong { color: var(--ink-1); font-weight: 500; }
.profile-list li strong.ok { color: #17a34a; }

/* ========== 角色权限卡片 ========== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 4px 0;
}
.role-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .18s, transform .18s;
}
.role-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.role-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
}
.role-count {
  font-size: 12px;
  color: var(--ink-4);
  background: #f0f2f6;
  border-radius: 10px;
  padding: 2px 8px;
}
.role-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.5;
}
.role-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ========== 匹配度进度条 ========== */
.score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}
.score-bar .score-track {
  flex: 1;
  height: 6px;
  background: #ebeef5;
  border-radius: 3px;
  overflow: hidden;
}
.score-bar .score-fill {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #409eff, #67c23a);
}
.score-num {
  font-size: 12px;
  font-weight: 600;
  color: #409eff;
  min-width: 28px;
  text-align: right;
}

/* ========== 案件管理（不良资产） ========== */
.stat-card.red::before { background: var(--brand-red); }
.stat-card.cyan::before { background: #06b6d4; }
.panel-body { padding: 4px 0; }
.board-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 1100px) { .board-cols { grid-template-columns: 1fr; } }
/* ---------- 司法处置进度（业务主线） ---------- */
.case-st.st-lit { background: #e8f2ff; color: #1668d6; }
.case-st.st-exec { background: #e0f7fa; color: #0891b2; }
.jn-list { margin: 4px 0 12px; padding-left: 4px; }
.jn-item { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--line); margin-left: 6px; }
.jn-item:last-child { border-left-color: transparent; padding-bottom: 2px; }
.jn-dot { position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-blue); box-shadow: 0 0 0 3px rgba(30, 127, 255, .15); }
.jn-head { display: flex; align-items: center; gap: 8px; }
.jn-type { font-weight: 600; color: var(--ink-1); }
.jn-date { font-size: 12px; color: var(--ink-3); }
.jn-result { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.jn-handler { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.jn-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px;
  padding: 10px; background: #f7f8fa; border: 1px dashed var(--line); border-radius: 8px; }
.jn-add .select, .jn-add .input { width: auto; flex: 1; min-width: 140px; }
table .jn-type, .mini-table .jn-type { display: inline-block; padding: 2px 8px; border-radius: 10px;
  background: #e8f2ff; color: #1668d6; font-size: 12px; font-weight: 500; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.mono, .mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px; color: var(--ink-2);
}
.data-table td.ops { white-space: nowrap; }
.data-table td.ops .btn { margin-right: 4px; }
.btn-ghost.danger:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* 案件状态标签 */
.case-st {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap;
}
.case-st.st-pending { background: #fff4e6; color: #e08e0b; }
.case-st.st-doing   { background: #e8f2ff; color: var(--brand-blue); }
.case-st.st-part    { background: #f3e8ff; color: #8b5cf6; }
.case-st.st-done    { background: #e6f9ee; color: #17a34a; }
.case-st.st-end     { background: #f0f2f6; color: var(--ink-3); }
.case-stage {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  font-size: 12px; background: #eef1f6; color: var(--ink-2); font-weight: 600;
}

/* 回收率进度条 */
.rec-bar { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.rec-bar .rec-track { flex: 1; height: 6px; background: #ebeef5; border-radius: 3px; overflow: hidden; }
.rec-bar .rec-fill { height: 6px; border-radius: 3px; }
.rec-fill.rec-lo  { background: #f0a020; }
.rec-fill.rec-mid { background: #409eff; }
.rec-fill.rec-hi  { background: #22c55e; }
.rec-num { font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 42px; text-align: right; }

/* 看板：状态分布 */
.dist-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.dist-name { width: 76px; flex-shrink: 0; }
.dist-track { flex: 1; height: 14px; background: #f0f2f6; border-radius: 7px; overflow: hidden; }
.dist-fill { height: 14px; border-radius: 7px; background: var(--brand-blue); transition: width .4s; }
.dist-fill.st-pending { background: #f0a020; }
.dist-fill.st-doing   { background: var(--brand-blue); }
.dist-fill.st-part    { background: #8b5cf6; }
.dist-fill.st-done    { background: #22c55e; }
.dist-fill.st-end     { background: #b0b6c3; }
.dist-val { width: 52px; text-align: right; font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* 看板：机构排行 */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-no {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: #eef1f6; color: var(--ink-3); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rank-no.r1 { background: #ffd700; color: #7a5c00; }
.rank-no.r2 { background: #d7dde6; color: #5a6270; }
.rank-no.r3 { background: #f0c9a0; color: #7a4a1a; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; color: var(--ink-1); font-weight: 500; display: flex; align-items: baseline; gap: 8px; }
.rank-sub { font-size: 12px; color: var(--ink-4); font-weight: 400; }
.rank-track { height: 6px; background: #f0f2f6; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.rank-fill { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #409eff, #22c55e); }
.rank-amt { width: 110px; text-align: right; font-size: 13px; color: var(--brand-green); font-weight: 600; flex-shrink: 0; }

/* 机构等级徽章 */
.lv { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; }
.lv-a { background: #f0a020; }
.lv-b { background: #409eff; }
.lv-c { background: #9aa2b1; }

/* 派单 / 回款弹窗案件提示条 */
.assign-case-tip {
  background: var(--brand-blue-light); border: 1px solid #cfe2ff; border-radius: 6px;
  padding: 10px 12px; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.6;
}

/* 案件详情弹窗 */
.detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; margin-bottom: 8px;
}
@media (max-width: 720px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item .dk { font-size: 12px; color: var(--ink-4); }
.detail-item .dv { font-size: 14px; color: var(--ink-1); font-weight: 500; }
.detail-sub {
  margin: 20px 0 10px; padding-left: 10px; font-size: 14px; color: var(--ink-1);
  border-left: 3px solid var(--brand-blue);
}
.detail-empty { color: var(--ink-4); font-size: 13px; margin: 4px 0; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th, .mini-table td {
  border: 1px solid var(--line); padding: 7px 10px; text-align: left;
}
.mini-table th { background: #f7f9fc; color: var(--ink-3); font-weight: 600; }
.mini-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
