/* ===========================================================
   客户跟进管理系统 · 样式表
   =========================================================== */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: #12141f;
  --text-2: #4b5163;
  --muted: #737a8e;
  --line: #e7e9f1;
  --line-2: #f0f1f6;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #eef0ff;
  --danger: #e11d48;
  --danger-soft: #ffe8ee;
  --warn: #f59e0b;
  --warn-soft: #fff5e3;
  --ok: #10b981;
  --ok-soft: #e6f9f1;
  --sky: #0ea5e9;
  --sky-soft: #e4f5ff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 31, .04), 0 1px 3px rgba(18, 20, 31, .03);
  --shadow-md: 0 10px 30px rgba(18, 20, 31, .08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

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

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 20;
}

.main { margin-left: 250px; flex: 1; min-width: 0; }

.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 18px;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #4338ca);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(79, 70, 229, .28);
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15.5px; letter-spacing: .3px; }
.brand-text span { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  color: #a9aec1; text-transform: uppercase;
  padding: 16px 10px 8px;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 40px; padding: 0 11px; margin-bottom: 3px;
  border-radius: 10px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; opacity: .75; }
.nav-item:hover { background: #f5f6fb; color: var(--text); }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active svg { opacity: 1; }
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 11px; bottom: 11px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

.sidebar-foot { border-top: 1px solid var(--line-2); padding: 12px; }
.user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.user:hover { background: #f7f8fc; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-meta strong { font-size: 13px; }
.user-meta span { font-size: 11px; color: var(--muted); }
.logout { margin-left: auto; color: var(--muted); padding: 6px; border-radius: 8px; }
.logout:hover { color: var(--danger); background: var(--danger-soft); }
.logout svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 32px;
  background: rgba(245, 246, 250, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(231, 233, 241, .8);
}
.page-title h1 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.page-title p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.content { padding: 24px 32px 64px; }

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #5b52f0, #4f46e5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, .25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(79, 70, 229, .3); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: #c8ccdd; color: var(--text); background: #fcfcff; }
.btn-danger { background: var(--danger-soft); color: #be123c; }
.btn-danger:hover { background: #ffd9e3; }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 34px; padding: 0; }

/* ---------------------------------------------------------- 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.card-head h2 { font-size: 14.5px; font-weight: 650; }
.card-head .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 18px 20px; }
.card-body.tight { padding: 8px 0 0; }

/* ---------------------------------------------------------- KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 20px 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.kpi-value {
  font-size: 30px; font-weight: 700; letter-spacing: -.8px;
  margin-top: 9px; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline;
}
.kpi-value small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.kpi-value small.tight { margin-left: 1px; }
.kpi-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.kpi-hint b { color: var(--text-2); font-weight: 600; }
.kpi::after {
  content: ''; position: absolute; right: -34px; top: -34px;
  width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, .14), rgba(99, 102, 241, 0) 70%);
}
.kpi.warn::after { background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, .18), rgba(245, 158, 11, 0) 70%); }
.kpi.danger::after { background: radial-gradient(circle at 30% 30%, rgba(225, 29, 72, .15), rgba(225, 29, 72, 0) 70%); }
.kpi.ok::after { background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, .16), rgba(16, 185, 129, 0) 70%); }
.kpi.warn .dot { background: var(--warn); }
.kpi.danger .dot { background: var(--danger); }
.kpi.ok .dot { background: var(--ok); }

/* ---------------------------------------------------------- 表格 */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
thead th {
  font-size: 11.5px; font-weight: 650; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase;
  text-align: left; white-space: nowrap;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafbff; }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
td.right, th.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .2px; }

.cust-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cust-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.cust-avatar.a { background: #ffe8ee; color: #be123c; }
.cust-avatar.b { background: #fff1da; color: #b45309; }
.cust-avatar.c { background: var(--sky-soft); color: #0369a1; }
.cust-avatar.d { background: #eef0f5; color: #475569; }
.cust-name { font-weight: 600; font-size: 13.8px; }
.cust-phone { font-size: 11.8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sub-text { font-size: 12px; color: var(--muted); }

/* 等级徽标 */
.grade {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  font-size: 12px; font-weight: 800;
}
.grade-A { background: #ffe4ea; color: #be123c; }
.grade-B { background: #fff2dc; color: #b45309; }
.grade-C { background: #e2f4ff; color: #0369a1; }
.grade-D { background: #eef0f5; color: #475569; }
.grade-lg { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }

/* 状态药丸 */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.8px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.overdue { background: var(--danger-soft); color: #be123c; }
.pill.today { background: var(--warn-soft); color: #b45309; }
.pill.upcoming { background: #f1f2f7; color: #5b6172; }
.pill.ok { background: var(--ok-soft); color: #047857; }
.pill.plain { background: #f1f2f7; color: #5b6172; }
.pill.pending { background: #f1f2f7; color: #5b6172; }
.pill.plain::before { display: none; }
.pill.sky { background: var(--sky-soft); color: #0369a1; }
.pill.indigo { background: var(--primary-soft); color: var(--primary); }
.pill.done { background: var(--ok-soft); color: #047857; }
.pill.lost { background: #f1f2f7; color: #7c8296; }

/* ---------------------------------------------------------- 工具条 */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-box input { padding-left: 36px; height: 38px; background-color: var(--surface-2); border-color: transparent; }
.search-box input:focus { background-color: #fff; border-color: #b9bcf5; }
.toolbar select { height: 38px; width: auto; min-width: 108px; background-color: var(--surface-2); border-color: transparent; }
.toolbar select:focus { background-color: #fff; }
.toolbar .spacer { flex: 1; }

/* ---------------------------------------------------------- 表单 */
input, select, textarea {
  font-family: inherit; font-size: 13.8px; color: var(--text);
  background: #fff; border: 1px solid #dfe2ee; border-radius: 10px;
  height: 40px; padding: 0 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { height: auto; padding: 10px 12px; line-height: 1.65; resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #a9acf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}
input::placeholder, textarea::placeholder { color: #b3b8c8; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%238b91a3' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.4px; font-weight: 600; color: var(--text-2); }
.field > label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }
.form-section { margin-bottom: 18px; }
.form-section-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}

/* 等级选择器 */
.grade-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grade-picker label { position: relative; }
.grade-picker input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.grade-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer; transition: .15s; background: #fff;
}
.grade-opt .g { font-size: 13px; font-weight: 800; }
.grade-opt .t { font-size: 11.5px; color: var(--muted); }
.grade-opt:hover { border-color: #cfd3e8; background: #fcfcff; }
.grade-picker input:checked + .grade-opt { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.grade-picker input:checked + .grade-opt .t { color: var(--primary); }
.grade-picker input:checked + .grade-opt .g { color: var(--primary); }

/* ---------------------------------------------------------- 模态框 */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: flex-start; justify-content: center;
  padding: 56px 24px; overflow-y: auto;
  background: rgba(16, 18, 30, .42);
  backdrop-filter: blur(3px);
}
.modal.open { display: flex; }
.modal-panel {
  width: 760px; max-width: 100%;
  background: #fff; border-radius: 18px;
  box-shadow: 0 28px 70px rgba(16, 18, 30, .24);
  animation: pop .18s ease-out;
}
.modal-panel.narrow { width: 480px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-close { border: none; background: #f4f5fa; color: var(--muted); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 16px; line-height: 1; }
.modal-close:hover { background: #eceef6; color: var(--text); }
.modal-body { padding: 20px 24px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 18px 18px; }

/* ---------------------------------------------------------- 提示 */
.toasts { position: fixed; right: 26px; bottom: 26px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 460px;
  padding: 12px 16px; border-radius: 12px;
  background: #171a28; color: #fff; font-size: 13px;
  box-shadow: 0 14px 34px rgba(16, 18, 30, .28);
  animation: slide-in .2s ease-out;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.toast-icon {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .16);
}
.toast-success .toast-icon { background: var(--ok); }
.toast-error .toast-icon { background: var(--danger); }
.toast-info .toast-icon { background: var(--primary-2); }

/* ---------------------------------------------------------- 工作台 */
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.dist-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #f1f2f7; margin-bottom: 16px; }
.dist-bar > i { display: block; height: 100%; }
.dist-bar > i + i { border-left: 2px solid #fff; }
.seg-a { background: linear-gradient(90deg, #fb7185, #e11d48); }
.seg-b { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.seg-c { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.seg-d { background: linear-gradient(90deg, #94a3b8, #64748b); }
.dist-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.legend-item .lg-name { color: var(--text-2); }
.legend-item .lg-val { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

.spark { display: flex; align-items: flex-end; gap: 10px; }
.spark .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spark .col .v { font-size: 11.5px; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.spark .col .track { width: 100%; height: 76px; background: #f7f8fc; border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.spark .col .track > i { display: block; width: 100%; border-radius: 8px; background: linear-gradient(180deg, #a5b4fc, #6366f1); transition: height .4s; }
.spark .col .lbl { font-size: 11px; color: var(--muted); }

/* 时间线 */
.timeline { position: relative; padding: 4px 0 0 20px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 4px; width: 2px; background: linear-gradient(180deg, #e6e8f5, #f4f5fa); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -20px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary-2);
  box-shadow: 0 0 0 3px #fff;
}
.tl-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tl-head b { font-weight: 650; }
.tl-time { font-size: 11.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.tl-body { font-size: 12.6px; color: var(--text-2); margin-top: 3px; line-height: 1.6; word-break: break-word; }
.tl-item.followed::before { border-color: var(--ok); }
.tl-item.created::before { border-color: var(--warn); }

/* 详情页 */
.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 18px; align-items: start; }
.profile { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line-2); }
.profile-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700;
  background: linear-gradient(135deg, #eef0ff, #dfe2ff); color: var(--primary);
}
.profile h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.profile .meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.profile .meta .phone { font-variant-numeric: tabular-nums; color: var(--text-2); }

.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.info-item { padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.info-item:nth-child(odd) { border-right: 1px solid var(--line-2); }
.info-item .k { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.info-item .v { font-size: 13.6px; font-weight: 550; word-break: break-word; }
.info-item.full { grid-column: span 2; border-right: none; }
.info-item.full .v { font-weight: 400; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }

.cycle-box {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: linear-gradient(180deg, #fbfbff, #f7f8ff);
  border-bottom: 1px solid var(--line-2);
}
.cycle-box .big { font-size: 22px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.cycle-box .lbl { font-size: 11.5px; color: var(--muted); }
.cycle-split { flex: 1; display: flex; gap: 24px; }
.cycle-split > div { display: flex; flex-direction: column; gap: 1px; }

.follow-form .field { margin-bottom: 12px; }
.follow-form textarea { min-height: 96px; }

/* 进度 */
.progress { height: 6px; border-radius: 99px; background: #e8eaf3; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #818cf8, #4f46e5); }
.progress.warn > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress.danger > i { background: linear-gradient(90deg, #fb7185, #e11d48); }
.progress.ok > i { background: linear-gradient(90deg, #34d399, #10b981); }

/* 空状态 */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 12px; color: #cdd1e0; }
.empty strong { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.empty p { font-size: 12.5px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-2); background: #fcfcfe; }
.pager .info { font-size: 12.5px; color: var(--muted); }
.pager .pages { display: flex; align-items: center; gap: 6px; }
.pager a, .pager span {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--text-2); border: 1px solid transparent;
}
.pager a:hover { background: #f2f3f9; }
.pager .cur { background: var(--primary); color: #fff; font-weight: 600; }
.pager .disabled { color: #c6cad8; }

/* 登录 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(800px 500px at 88% 92%, rgba(14, 165, 233, .14), transparent 60%),
    #f5f6fa;
}
.login-card {
  width: 388px; background: #fff; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(18, 20, 31, .1);
  padding: 34px 32px 30px;
}
.login-logo {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .3);
}
.login-logo svg { width: 26px; height: 26px; }
.login-card h1 { font-size: 20px; font-weight: 700; }
.login-card .sub { font-size: 12.5px; color: var(--muted); margin: 5px 0 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; height: 42px; margin-top: 6px; }
.login-error {
  display: flex; align-items: center; gap: 8px;
  background: var(--danger-soft); color: #be123c;
  font-size: 12.5px; padding: 9px 12px; border-radius: 9px; margin-bottom: 14px;
}
.login-foot { text-align: center; font-size: 11.5px; color: #b3b8c8; margin-top: 22px; }

/* 错误页 */
.err-wrap { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.err-code { font-size: 64px; font-weight: 800; letter-spacing: -2px; color: #d9dce9; }

/* 杂项 */
.row { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 6px; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 7px; font-size: 11.5px;
  background: #f3f4fa; color: var(--text-2); font-weight: 500;
}
.warn-text { color: #b45309; }
.danger-text { color: var(--danger); }
.ok-text { color: #047857; }
