/* ============================================================
   无忧传媒 · 校园主播招募管理系统  —  视觉与动效系统 v31
   设计语言：玻璃拟态 + 极光渐变 + 精致动效
   说明：纯展示层重写，不改动任何业务逻辑 / 登录 / 数据读写 / 规则
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 主色板 */
  --primary: #2b5aed;
  --primary-light: #5b82ff;
  --primary-dark: #1b3aa8;
  --brand: #ff3a5e;
  --brand-light: #ff6b88;
  --brand-dark: #e11d48;
  --success: #16b364;
  --success-light: #34d399;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #ef4444;
  --danger-light: #fb7185;
  --info: #06b6d4;

  /* 中性 / 表面 */
  --bg: #eef2fb;
  --bg-card: #ffffff;
  --bg-hover: #f5f8ff;
  --bg-soft: #f3f6fc;
  --border: #e6ebf5;
  --border-strong: #cdd6e8;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;

  /* 阴影体系（更柔和、分层） */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px -6px rgba(20, 40, 110, 0.12);
  --shadow-md: 0 18px 48px -12px rgba(20, 40, 110, 0.20);
  --shadow-glow: 0 12px 36px -8px rgba(43, 90, 237, 0.35);
  --shadow-brand: 0 12px 36px -8px rgba(255, 58, 94, 0.35);

  /* 圆角 */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  /* 动效曲线 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body { height: 100%; }

/* ===== 极光背景（固定层，置于内容之后） ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f7f6f3 !important;
  color: #1c1917;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0; padding: 0;
  overflow: hidden;
}
html { background: #f7f6f3 !important; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; }

/* ===== 定制滚动条 ===== */
* { scrollbar-width: thin; scrollbar-color: #c3cde0 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c3cde0, #aab6d4);
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #9aa8cf, #8492bd); background-clip: padding-box; }

/* ===== 布局 ===== */
.app { display: flex; height: 100vh; overflow: hidden; background: transparent; }

/* ===== 侧边栏（玻璃深空） ===== */
.sidebar {
  width: 248px; position: relative; flex-shrink: 0;
  background:
    linear-gradient(180deg, #0b1224 0%, #131c33 48%, #0f1830 100%) !important;
  color: #cbd5e1; display: flex; flex-direction: column;
  box-shadow: 8px 0 40px -18px rgba(8, 15, 35, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 50% -10%, rgba(43, 90, 237, 0.28), transparent 70%);
}
.sidebar-header { position: relative; z-index: 1; padding: 24px 22px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.logo {
  font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.3px;
}
.logo .dot {
  width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: 0 0 0 4px rgba(255, 58, 94, 0.18), 0 0 14px rgba(255, 58, 94, 0.65);
  animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 58, 94, 0.18), 0 0 12px rgba(255, 58, 94, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 58, 94, 0.10), 0 0 20px rgba(255, 58, 94, 0.85); }
}
.subtitle { font-size: 12px; color: #93a0bb; margin-top: 6px; letter-spacing: 0.4px; }

.nav { position: relative; z-index: 1; flex: 1; padding: 16px 14px; overflow-y: auto; }
.nav-item {
  position: relative; padding: 11px 14px; border-radius: 11px;
  display: flex; align-items: center; gap: 11px;
  cursor: pointer; color: #aeb9d4; font-size: 14px; font-weight: 500;
  margin-bottom: 5px; transition: color .2s, background .2s, transform .2s;
  overflow: hidden;
}
.nav-item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  transition: transform .25s var(--ease-out);
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; transform: translateX(2px); }
.nav-item:hover .nav-icon { transform: scale(1.18) rotate(-4deg); }
.nav-item .nav-icon { font-size: 17px; width: 22px; text-align: center; transition: transform .25s var(--ease-spring); }
.nav-item.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(100deg, rgba(43, 90, 237, 0.95), rgba(91, 130, 255, 0.85));
  box-shadow: 0 10px 26px -10px rgba(43, 90, 237, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nav-item.active::before { transform: translateY(-50%) scaleY(1); }
.nav-item.user-mgmt { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 16px; }
.sidebar-footer {
  position: relative; z-index: 1; padding: 16px 22px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px; color: #8b97b3;
}
.sidebar-user {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.user-badge { display: flex; align-items: center; gap: 6px; }
.role-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.role-super { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 4px 12px -4px rgba(255, 58, 94, 0.6); }
.role-admin { background: rgba(255, 255, 255, 0.15); color: #cbd5e1; }
.user-name { color: #fff; font-size: 13px; font-weight: 600; }

/* ===== 主内容区 ===== */
.main-content {
  flex: 1; overflow-y: auto; padding: 26px 30px 40px;
  background: transparent !important; position: relative;
}
.view-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px;
  flex-wrap: wrap; gap: 14px; position: relative;
  animation: fadeUp .55s var(--ease-out) both;
}
.view-title {
  font-size: 25px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: #0f172a;
  position: relative; padding-bottom: 8px;
}
.view-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 64px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--brand));
  transform: scaleX(0); transform-origin: left; animation: slideGrow .6s var(--ease-out) .15s both;
}
@keyframes slideGrow { to { transform: scaleX(1); } }
.view-subtitle { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }

/* ===== 卡片（玻璃 + 渐变光泽 + 悬浮） ===== */
.card {
  position: relative; background: #ffffff;
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s;
  animation: fadeUp .6s var(--ease-out) both;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--brand));
  opacity: 0; transition: opacity .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(43, 90, 237, 0.07), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d4ddee; }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card-title {
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title .sub { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 > .card:nth-child(2) { animation-delay: .05s; }
.grid-3 > .card:nth-child(2) { animation-delay: .05s; }
.grid-3 > .card:nth-child(3) { animation-delay: .1s; }
.grid-4 > .card:nth-child(2) { animation-delay: .04s; }
.grid-4 > .card:nth-child(3) { animation-delay: .08s; }
.grid-4 > .card:nth-child(4) { animation-delay: .12s; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ===== KPI ===== */
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi-label { font-size: 12px; color: var(--text-tertiary); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.kpi-value { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; line-height: 1.1; }
.kpi-value .unit { font-size: 14px; color: var(--text-tertiary); margin-left: 4px; font-weight: 600; }
.kpi-trend { font-size: 12px; color: var(--text-secondary); }
.kpi-trend .up { color: var(--danger); font-weight: 700; }
.kpi-trend .down { color: var(--success); font-weight: 700; }
.kpi-trend.biweekly { color: #16a34a; font-weight: 700; margin-top: 3px; }
.kpi-trend.biweekly.neg { color: #dc2626; }
.kpi-trend.biweekly.flat { color: #64748b; font-weight: 500; }

.kpi-card {
  position: relative; overflow: hidden;
  background: #ffffff; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  animation: fadeUp .6s var(--ease-out) both;
}
.kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
}
.kpi-card.brand::before   { background: linear-gradient(180deg, var(--brand-light), var(--brand)); }
.kpi-card.success::before { background: linear-gradient(180deg, var(--success-light), var(--success)); }
.kpi-card.warning::before { background: linear-gradient(180deg, var(--warning-light), var(--warning)); }
.kpi-card.info::before    { background: linear-gradient(180deg, #38d6ec, var(--info)); }
.kpi-card:hover { transform: translateY(-6px) scale(1.012); box-shadow: var(--shadow-glow); }
/* 鼠标聚光 */
.kpi-card > * { position: relative; z-index: 1; }

/* ===== 按钮（渐变 + 弹簧） ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; transition: transform .15s var(--ease-spring), box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid var(--border); background: #fff; color: var(--text); box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(43, 90, 237, 0.6); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light), #6f95ff); box-shadow: 0 12px 26px -8px rgba(43, 90, 237, 0.7); }
.btn-brand { background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255, 58, 94, 0.6); }
.btn-brand:hover { background: linear-gradient(135deg, var(--brand-light), #ff87a0); box-shadow: 0 12px 26px -8px rgba(255, 58, 94, 0.7); }
.btn-danger { background: linear-gradient(135deg, #f05252, var(--danger)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(239, 68, 68, 0.55); }
.btn-danger:hover { background: linear-gradient(135deg, var(--danger), #f87171); }
.btn-success { background: linear-gradient(135deg, var(--success-light), var(--success)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(22, 179, 100, 0.55); }
.btn-success:hover { background: linear-gradient(135deg, var(--success), #4ade80); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; }
.btn-icon { padding: 7px 9px; }

.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* ===== 表格（玻璃表头 + 行悬浮光条） ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow-xs); animation: fadeUp .6s var(--ease-out) both; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--bg-card); }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  position: sticky; top: 0; z-index: 2;
  background: rgba(243, 246, 252, 0.92) !important; backdrop-filter: blur(8px);
  font-weight: 700; color: #334155; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
  box-shadow: inset 0 -1px 0 var(--border);
}
td .text-muted { color: var(--text-secondary); }
tbody tr { transition: background .18s, box-shadow .18s; position: relative; }
tbody tr:hover { background: linear-gradient(90deg, rgba(43, 90, 237, 0.06), rgba(43, 90, 237, 0.02)); }
tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
tbody tr:last-child td { border-bottom: none; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--text-tertiary); animation: fadeUp .5s var(--ease-out) both; }

/* ===== 徽章（柔光渐变药丸） ===== */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--bg-hover); color: var(--text-secondary);
  animation: popIn .35s var(--ease-spring) both;
}
.badge-primary { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.badge-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.badge-warning { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.badge-danger  { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.badge-info    { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #155e75; }
.badge-brand   { background: linear-gradient(135deg, #ffe4ec, #fbcfe0); color: #be185d; }
.badge-gray    { background: #e2e8f0; color: #475569; }

/* ===== 工作台：跟进登记 ===== */
.card-title-sm { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-title-sm .sub { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.mb-8 { margin-bottom: 8px; }
.link { color: #1e40af; cursor: pointer; text-decoration: underline; font-weight: 600; }
.link:hover { color: #1e3a8a; }
.empty-cell { text-align: center; color: var(--text-tertiary); padding: 20px 12px; font-size: 12px; }

.wb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.wb-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border);
  animation: popIn .35s var(--ease-spring) both;
}
.wb-chip b { color: var(--text); font-size: 13px; }
.wb-chip.ok { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; border-color: #a7f3d0; }
.wb-chip.ok b { color: #065f46; }
.wb-chip.info { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #155e75; border-color: #a5f3fc; }
.wb-chip.info b { color: #155e75; }
.wb-chip.warn { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border-color: #fde68a; }
.wb-chip.warn b { color: #92400e; }

.wb-summary { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.wb-summary-grid { display: grid; gap: 10px; font-size: 12px; line-height: 1.6; }
.wb-summary-grid > div { color: var(--text-secondary); }
.wb-summary-grid .lbl { display: inline-block; min-width: 64px; color: var(--text-tertiary); font-weight: 600; margin-right: 4px; }
.wb-counts { color: var(--text-secondary); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 9px; margin: 2px 4px 2px 0;
  border-radius: 7px; background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border);
  animation: popIn .35s var(--ease-spring) both;
}
.tag.done { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; border-color: #a7f3d0; }

/* ===== 表单 ===== */
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.form-field label .req { color: var(--danger); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 90, 237, 0.13);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field .hint { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== 模态框（弹簧 + 背景模糊） ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 90vh; overflow: hidden;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transform: translateY(18px) scale(.96); opacity: 0;
  transition: transform .32s var(--ease-spring), opacity .25s ease;
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal.modal-lg { max-width: 960px; }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { font-size: 18px; color: var(--text-tertiary); padding: 4px 8px; border-radius: 8px; transition: all .2s; }
.modal-close:hover { color: var(--danger); background: #fef2f2; transform: rotate(90deg); }
.modal-body { padding: 20px 24px 48px; overflow-y: auto; }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ===== 登录（玻璃霓虹） ===== */
.login-overlay {
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(43, 90, 237, 0.5), transparent 60%),
    radial-gradient(800px 600px at 80% 30%, rgba(255, 58, 94, 0.42), transparent 60%),
    linear-gradient(135deg, #0b1224 0%, #131c33 60%, #1e2a52 100%);
  display: flex; align-items: center; justify-content: center; z-index: 200; overflow: hidden;
}
.login-overlay::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 50% 110%, rgba(91, 130, 255, 0.35), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
}
.login-card {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.96); border-radius: 22px; padding: 42px 38px; width: 384px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.5);
  animation: floatY 5s ease-in-out infinite, fadeUp .6s var(--ease-out) both;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.login-brand { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.login-brand .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-light), var(--brand)); box-shadow: 0 0 0 4px rgba(255, 58, 94, 0.18); }
.login-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 5px; margin-bottom: 28px; }
.login-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.login-input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; font-size: 14px;
  transition: border-color .2s, box-shadow .2s; background: #fff;
}
.login-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 90, 237, 0.13); }
.login-error { color: var(--danger); font-size: 12px; min-height: 18px; margin-bottom: 4px; }
.login-btn {
  width: 100%; padding: 13px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
  border-radius: 10px; font-weight: 700; margin-top: 6px; font-size: 15px; letter-spacing: 2px;
  box-shadow: 0 12px 28px -10px rgba(43, 90, 237, 0.7); transition: transform .15s var(--ease-spring), box-shadow .2s;
}
.login-btn:hover { box-shadow: 0 16px 34px -10px rgba(43, 90, 237, 0.85); transform: translateY(-2px); }
.login-btn:active { transform: translateY(0) scale(.98); }
.login-foot { text-align: center; font-size: 11px; color: var(--text-tertiary); margin-top: 18px; }

/* ===== 工具栏 ===== */
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; animation: fadeUp .5s var(--ease-out) both; }
.toolbar .spacer { flex: 1; }
.search-input {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 240px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 90, 237, 0.13); }
.filter-select { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 90, 237, 0.13); }

/* ===== Toast（弹簧） ===== */
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(24px) scale(.9);
  background: var(--text); color: #fff; padding: 11px 22px; border-radius: 12px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md); opacity: 0; transition: all .35s var(--ease-spring); pointer-events: none; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.toast.error { background: linear-gradient(135deg, #f05252, var(--danger)); }
.toast.success { background: linear-gradient(135deg, var(--success-light), var(--success)); }

/* ===== 渠道卡 ===== */
.channel-card {
  display: flex; align-items: center; justify-content: space-between; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, 0.92);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
  animation: fadeUp .55s var(--ease-out) both;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4ddee; }
.channel-icon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px;
  flex-shrink: 0; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.25);
  background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff;
}
.channel-name { font-size: 14px; font-weight: 700; }
.channel-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.channel-stat { text-align: right; }
.channel-stat-num { font-size: 22px; font-weight: 800; }
.channel-stat-label { font-size: 11px; color: var(--text-tertiary); }

/* ===== 进度条（动画填充 + 流光） ===== */
.progress { height: 7px; background: var(--bg-hover); border-radius: 999px; overflow: hidden; margin-top: 6px; box-shadow: inset 0 1px 2px rgba(15,23,42,.06); }
.progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  background-size: 200% 100%; animation: flowGrad 2.5s linear infinite; transition: width .6s var(--ease-out);
}
.progress-bar.warn { background: linear-gradient(90deg, var(--warning), #fbbf24); background-size: 200% 100%; animation: flowGrad 2.5s linear infinite; }
.progress-bar.success { background: linear-gradient(90deg, var(--success), #4ade80); background-size: 200% 100%; animation: flowGrad 2.5s linear infinite; }
@keyframes flowGrad { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* ===== 排行榜 ===== */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 13px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid transparent;
  animation: fadeUp .5s var(--ease-out) both; transition: transform .18s var(--ease-out), box-shadow .18s, background .18s, border-color .18s;
}
.rank-item:nth-child(2) { animation-delay: .04s; }
.rank-item:nth-child(3) { animation-delay: .08s; }
.rank-item:nth-child(4) { animation-delay: .12s; }
.rank-item:nth-child(5) { animation-delay: .16s; }
.rank-item:nth-child(6) { animation-delay: .2s; }
.rank-item:nth-child(n+7) { animation-delay: .24s; }
.rank-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-hover); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.rank-num.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 6px 14px -4px rgba(245, 158, 11, 0.6); }
.rank-num.silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; box-shadow: 0 6px 14px -4px rgba(148, 163, 184, 0.6); }
.rank-num.bronze { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; box-shadow: 0 6px 14px -4px rgba(234, 88, 12, 0.6); }
.rank-name { font-weight: 600; color: var(--text); font-size: 14px; line-height: 1.4; }
.rank-name .empty { color: var(--text-tertiary); font-size: 12px; }
.rank-val { margin-left: auto; font-weight: 700; color: var(--primary); }
.rank-val.brand { color: var(--brand); }

/* ===== Loading / 错误 ===== */
.loading { padding: 60px 20px; text-align: center; color: var(--text-tertiary); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner { padding: 20px; background: #fff; color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow-sm); }
.entry-guide { max-width: 520px; margin: 80px auto; padding: 44px 40px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; animation: fadeUp .5s var(--ease-out) both; }

/* ===== 工作台 ===== */
.intern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .intern-grid { grid-template-columns: 1fr; } }
.intern-card { background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); animation: fadeUp .55s var(--ease-out) both; }
.intern-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.intern-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(43, 90, 237, 0.6);
}
.intern-name { font-size: 16px; font-weight: 700; }
.intern-role { font-size: 12px; color: var(--text-tertiary); }
.daily-section { margin-bottom: 18px; }
.daily-section-title {
  font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: space-between;
}
.daily-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 8px; background: var(--bg-soft);
  margin-bottom: 4px; font-size: 13px; transition: background .18s, transform .15s; animation: fadeUp .45s var(--ease-out) both;
}
.daily-item:hover { background: #eef2ff; transform: translateX(2px); }
.daily-item .check { color: var(--text-tertiary); flex-shrink: 0; margin-top: 1px; }
.daily-item.done .check { color: var(--success); }
.daily-item.done .text { color: var(--text-tertiary); text-decoration: line-through; }
.daily-item .text { flex: 1; }
.daily-empty { font-size: 12px; color: var(--text-tertiary); padding: 12px; text-align: center; background: var(--bg-soft); border-radius: 6px; border: 1px dashed var(--border); }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
  padding: 9px 16px; cursor: pointer; color: var(--text-secondary); font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent; transition: all .2s; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--primary); background: var(--bg-hover); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(43, 90, 237, 0.06); }
.rank-tabs { display: flex; gap: 2px; }
.rank-tabs .tab { padding: 4px 12px; font-size: 12px; border-radius: 6px 6px 0 0; background: var(--bg-soft); }
.rank-tabs .tab.active { background: transparent; }
.rank-tabs-many { flex-wrap: wrap; max-width: 100%; }
.rank-tabs-many .tab { border-radius: 6px; margin: 0 2px 2px 0; }
.rank-sub { font-size: 11px; color: var(--text-tertiary); line-height: 1.4; margin-top: 1px; }
.rank-sub-sep { margin: 0 4px; color: var(--border); }
.rank-sub-extra { color: var(--text-secondary); }
.rank-list-2col { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.rank-grid-wrap { padding: 0 4px 4px; }

/* ===== 排行榜行可点击 → 展开详情 ===== */
.rank-item-clickable { cursor: pointer; transition: background .15s, transform .1s; }
.rank-item-clickable:hover { background: #fff; box-shadow: var(--shadow-sm); transform: translateX(2px); }
.rank-item-clickable:hover .rank-expand-icon { color: var(--primary); transform: translateX(2px); }
.rank-item-clickable:active { transform: translateX(0); }
.rank-expand-icon { color: var(--text-tertiary); font-size: 18px; font-weight: 700; margin-left: 4px; transition: all .15s; }
.rank-detail { animation: fadeInUp .3s ease-out; }
.rank-detail-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.rank-detail-header h3 { margin: 0; font-size: 18px; color: var(--text); }
.rank-detail-meta { color: var(--text-tertiary); font-weight: 400; font-size: 13px; margin-left: 6px; }
.rank-detail-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.rank-detail-kpis .kpi-value { font-size: 22px; }
.rank-detail-table { max-height: 520px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.rank-detail-table th, .rank-detail-table td { font-size: 13px; }
.rank-detail-table th { position: sticky; top: 0; background: var(--bg-soft); z-index: 1; }
.rank-detail-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-cell-num { color: var(--text-tertiary); font-weight: 700; width: 30px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) { .rank-detail-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ===== 切换器 / 隐藏 ===== */
body.readonly .hide-readonly { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-tertiary); }
.text-mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ===== 奖励档位表 ===== */
.tier-table th { background: linear-gradient(180deg, #f8fafc, #f1f5f9); }
.tier-amount { font-weight: 800; color: var(--brand); font-size: 15px; }

.tier-grid { display: flex; flex-direction: column; gap: 8px; }
.tier-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 11px 13px;
  background: linear-gradient(180deg, #f8fafc, #fff); border-radius: 10px; border: 1px solid #eef2f7;
  animation: fadeUp .5s var(--ease-out) both; transition: transform .18s, box-shadow .18s;
}
.tier-row:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.tier-row.total { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.tier-badge { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.tier-badge.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.tier-info { min-width: 0; }
.tier-main { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.4; word-break: break-word; }
.tier-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.tier-amt { font-size: 15px; font-weight: 800; color: #ff3a5e; white-space: nowrap; }

/* ===== Funnel ===== */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-step { display: flex; align-items: center; gap: 12px; animation: fadeUp .5s var(--ease-out) both; }
.funnel-bar {
  flex: 1; height: 36px; border-radius: 8px; display: flex; align-items: center; padding: 0 14px; color: #fff;
  font-size: 12px; font-weight: 700; min-width: 60px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  box-shadow: 0 6px 16px -8px rgba(43, 90, 237, 0.6);
  transform-origin: left; animation: scaleXIn .7s var(--ease-out) both;
}
@keyframes scaleXIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.funnel-label { width: 80px; font-size: 12px; color: var(--text-secondary); text-align: right; font-weight: 600; }

/* ===== 主播档案详情 ===== */
.source-note { font-size: 12px; color: var(--text-tertiary); background: var(--bg-hover); border-radius: 8px; padding: 8px 12px; margin-top: 10px; line-height: 1.6; border-left: 3px solid var(--info); }
.anchor-detail { font-size: 13px; }
.ad-head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.ad-name { font-size: 18px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.ad-gender { font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-hover); border-radius: 10px; padding: 1px 9px; }
.ad-sub { margin-top: 4px; }
.dl { margin-bottom: 14px; }
.dl-section { font-size: 12px; font-weight: 800; color: var(--primary); margin-bottom: 6px; padding-left: 8px; border-left: 3px solid var(--primary); }
.dl-row { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #eef2f7; }
.dl-label { width: 84px; flex: none; color: var(--text-tertiary); }
.dl-value { flex: 1; color: #0f172a; word-break: break-all; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12px; }
table.mini th { background: #f8fafc; color: var(--text-secondary); font-weight: 700; text-align: left; padding: 6px 10px; position: sticky; top: 0; }
table.mini td { padding: 5px 10px; border-bottom: 1px solid #f1f5f9; }
.ad-notes { margin-top: 10px; padding: 10px 12px; background: var(--bg-hover); border-radius: 8px; font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.funnel-val { font-weight: 700; }

/* ===== 工作台 · 招募管线看板 ===== */
.wb-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); gap: 14px; margin-top: 14px; }
.wb-col {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; min-height: 200px; transition: opacity .15s, box-shadow .25s, border-color .25s, transform .25s;
  box-shadow: var(--shadow-sm); animation: fadeUp .55s var(--ease-out) both;
}
.wb-col:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wb-col.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 90, 237, .14); }
.wb-col.dim { opacity: .5; }
.wb-col-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.wb-col-count { font-size: 18px; font-weight: 800; color: var(--text); }
.wb-col-recruiters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.wb-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg-hover); color: var(--text-secondary); cursor: pointer; border: 1px solid transparent; user-select: none; transition: all .18s; }
.wb-pill:hover { background: #eef2ff; color: var(--primary); }
.wb-pill.on { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; box-shadow: 0 6px 14px -6px rgba(43, 90, 237, 0.6); }
.wb-col-cards { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.wb-empty { font-size: 12px; color: var(--text-tertiary); text-align: center; padding: 16px 0; }

.recruit-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fff; transition: transform .18s, box-shadow .18s; animation: fadeUp .5s var(--ease-out) both; }
.recruit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.recruit-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.recruit-name { font-weight: 700; color: var(--text); font-size: 14px; }
.recruit-card-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.recruit-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; font-weight: 700; }
.tag-type { background: #ede9fe; color: #6d28d9; }
.tag-rating { background: #e0f2fe; color: #0369a1; }
.rating-A { background: #fef3c7; color: #b45309; }
.rating-B { background: #dcfce7; color: #15803d; }
.rating-C { background: #e0f2fe; color: #0369a1; }
.rating-D { background: #f1f5f9; color: #475569; }

.wb-reminder { margin-top: 14px; border: 1px solid #fde68a; background: linear-gradient(180deg, #fffdf5, #fffbeb); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-xs); }
.wb-reminder-head { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.wb-reminder-list { display: flex; flex-direction: column; gap: 6px; }
.wb-reminder-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; cursor: pointer; background: #fff;
  border: 1px solid #fde68a; transition: transform .18s, box-shadow .18s; animation: fadeUp .45s var(--ease-out) both;
}
.wb-reminder-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.wb-reminder-item.soon { border-color: #fcd34d; }
.wb-reminder-item.overdue { border-color: #fca5a5; background: #fff5f5; }
.wb-reminder-name { font-weight: 700; color: var(--text); }
.wb-reminder-meta { font-size: 12px; color: var(--text-secondary); flex: 1; }
.wb-reminder-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.wb-reminder-item.soon .wb-reminder-badge { background: #fef3c7; color: #b45309; }
.wb-reminder-item.overdue .wb-reminder-badge { background: #fee2e2; color: #b91c1c; }

.wb-filter-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.wb-filter-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; }

/* ===== 渠道来源构成（渠道管理卡片） ===== */
.ch-card { padding: 18px 18px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); box-shadow: var(--shadow-sm); animation: fadeUp .55s var(--ease-out) both; transition: transform .25s var(--ease-out), box-shadow .25s; overflow: hidden; }
.ch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ch-head-left { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; }
.ch-head-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ch-name { font-size: 17px; font-weight: 800; color: #0f172a; line-height: 1.25; letter-spacing: -0.2px; }
.ch-owner { font-size: 12.5px; color: #475569; line-height: 1.4; display: flex; align-items: center; gap: 6px; }
.ch-owner::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #94a3b8; }
.ch-kpis { gap: 12px; margin-top: 10px; }
.ch-src-title { font-size: 13px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.ch-src-title .sub { font-size: 11px; font-weight: 500; color: #475569; margin-left: 4px; }
.ch-src-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.ch-src-list.ch-src-inline { margin-top: 6px; gap: 6px; min-height: 0; align-items: center; }
.ch-src-list.ch-src-inline .ch-src-label { font-size: 11px; font-weight: 700; color: #475569; margin-right: 2px; letter-spacing: 0.3px; }
.ch-src-list.ch-src-inline .ch-src-empty { font-size: 12px; padding: 0; }
.ch-src-chip {
  font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 10px;
  background: #ffffff; color: #0f172a; border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); line-height: 1.2;
  animation: popIn .4s var(--ease-spring) both; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ch-src-chip:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.ch-src-chip.ch-src-chip-sm { font-size: 12px; font-weight: 700; padding: 4px 10px 4px 12px; border-radius: 8px; border-width: 1px; box-shadow: none; background: #f8fafc; }
.ch-src-chip.ch-src-chip-sm b { margin-left: 6px; padding: 1px 7px; font-size: 12px; min-width: 22px; }
.ch-src-chip b {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; font-weight: 800; font-size: 14px; min-width: 28px; text-align: center;
}
.ch-src-empty { font-size: 13px; color: #64748b; padding: 6px 0; }

/* 总览渠道分布底部说明 */
.ch-dist-foot { margin-top: 8px; font-size: 12px; color: #334155; text-align: center; border-top: 1px dashed #e2e8f0; padding-top: 8px; }
.ch-dist-foot strong { color: #0f172a; }

/* ===== 资料库（上传 / 列表 / 预览 / 下载） ===== */
.res-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.res-tab {
  font-size: 13px; padding: 8px 15px; border-radius: 999px;
  background: #eef2f9; color: #334155; cursor: pointer; user-select: none;
  border: 1px solid transparent; font-weight: 600; transition: all .2s;
}
.res-tab:hover { background: #e2e8f0; transform: translateY(-1px); }
.res-tab.active { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(43, 90, 237, 0.6); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 16px; }
.res-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  animation: fadeUp .55s var(--ease-out) both;
}
.res-card:hover { box-shadow: 0 14px 34px -12px rgba(15, 23, 42, .22); transform: translateY(-5px); border-color: #d4ddee; }
.res-thumb { height: 120px; background: linear-gradient(135deg, #f1f5ff, #fef2f9); display: flex; align-items: center; justify-content: center; cursor: pointer; border-bottom: 1px solid #eef2f7; overflow: hidden; }
.res-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.res-card:hover .res-thumb-img { transform: scale(1.06); }
.res-thumb-icon { font-size: 46px; line-height: 1; }
.res-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.res-name { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-meta { font-size: 11px; color: #64748b; }
.res-note { font-size: 12px; color: #475569; background: #f8fafc; padding: 6px 8px; border-radius: 6px; }
.res-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 4px; }

/* ===== 每日工作日志（工作台） ===== */
.daily-log {
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px 18px; margin-bottom: 4px; box-shadow: var(--shadow-sm);
  animation: fadeUp .55s var(--ease-out) both;
}
.dl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dl-title { font-size: 16px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.dl-date-label { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary-light), var(--primary)); padding: 2px 11px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(43, 90, 237, 0.6); }
.dl-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dl-date { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; color: var(--text); background: #fff; }
.dl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.dl-cols > .dl-col:nth-child(2) { animation-delay: .05s; }
.dl-cols > .dl-col:nth-child(3) { animation-delay: .1s; }
.dl-cols > .dl-col:nth-child(4) { animation-delay: .15s; }
.dl-col {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-xs);
  animation: fadeUp .55s var(--ease-out) both; transition: box-shadow .2s, transform .2s;
}
.dl-col:hover { box-shadow: var(--shadow-sm); }
.dl-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.dl-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--brand)); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dl-name { font-size: 15px; font-weight: 700; color: var(--text); }
.dl-sum { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
.dl-sum b { color: var(--text); font-size: 13px; }
.dl-sum b.ok { color: var(--success); }
.dl-pct { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--text-secondary); }
.dl-pct.full, .dl-pct.ok { background: #dcfce7; color: #166534; }
.dl-pct.mid { background: #fef9c3; color: #854d0e; }
.dl-pct.low { background: #ffedd5; color: #9a3412; }
.dl-rows { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dl-empty { font-size: 13px; color: var(--text-tertiary); text-align: center; padding: 18px 0; }
.dl-row { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg-soft); animation: fadeUp .45s var(--ease-out) both; transition: transform .15s; }
.dl-row:hover { transform: translateX(2px); }
.dl-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dl-item { font-size: 14px; font-weight: 700; color: var(--text); }
.dl-who-tag { font-size: 11px; color: var(--primary-dark); background: #eaf0ff; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dl-nums { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.dl-nums b { color: var(--text); font-size: 14px; }
.dl-nums b.over { color: var(--brand); }
.dl-arrow { color: var(--text-tertiary); }
.dl-target b { color: var(--text-secondary); }
.dl-actual b { color: var(--primary); }
.dl-bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 8px 0 2px; box-shadow: inset 0 1px 2px rgba(15,23,42,.06); }
.dl-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary-light), var(--primary)); transition: width .6s var(--ease-out); }
.dl-bar-fill.full { background: linear-gradient(90deg, var(--success-light), var(--success)); }
.dl-bar-fill.mid { background: linear-gradient(90deg, #fbbf24, var(--warning)); }
.dl-bar-fill.low { background: linear-gradient(90deg, #38d6ec, var(--info)); }
.dl-note { font-size: 12px; color: var(--text-tertiary); background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 6px 8px; margin-top: 6px; line-height: 1.45; }
.dl-ops { display: flex; gap: 12px; margin-top: 8px; }
.dl-add { margin: 0 12px 12px; width: calc(100% - 24px); }
.dl-preview { font-size: 14px; font-weight: 700; color: var(--primary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--bg-soft); }

/* ===========================================================
   通用搜索：可搜索下拉（ss）+ 关键字高亮 + 各视图搜索条
   =========================================================== */
.ss { position: relative; width: 100%; }
.ss-input {
  width: 100%; padding: 9px 30px 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); background: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.ss-input::placeholder { color: #94a3b8; }
.ss-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 90, 237, .13); }
.ss-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-tertiary); cursor: pointer; user-select: none; transition: transform .15s; }
.ss.open .ss-caret { transform: translateY(-50%) rotate(180deg); }
.ss-panel {
  display: none; position: absolute; z-index: 3000; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 268px; overflow-y: auto; background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.ss.open .ss-panel { display: block; animation: popIn .2s var(--ease-spring) both; }
.ss-opt { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; font-size: 13px; color: var(--text); cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.ss-opt:last-child { border-bottom: none; }
.ss-opt:hover, .ss-opt.hi { background: #eef2ff; }
.ss-opt.sel { background: #e0e7ff; font-weight: 700; }
.ss-opt-label { flex: 0 0 auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-opt-sub { flex: 1; min-width: 0; font-size: 11px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ss-empty { padding: 12px; font-size: 12px; color: var(--text-tertiary); text-align: center; }

mark.hl { background: linear-gradient(135deg, #fde68a, #fcd34d); color: #713f12; padding: 0 2px; border-radius: 3px; font-weight: 700; }

.rank-search, .dl-search, .wb-search, .res-search, .ch-anchor-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rank-search .search-input, .dl-search .search-input, .wb-search .search-input, .res-search .search-input, .ch-anchor-search .search-input { width: min(460px, 100%); }
.rank-search .hint, .dl-search .hint, .wb-search .hint, .res-search .hint, .ch-anchor-search .hint { font-size: 12px; color: var(--text-tertiary); }
.search-input { font-size: 13px; color: var(--text); }
.search-input::placeholder { color: #94a3b8; }

.dl-date-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 4px; padding: 0 5px; margin-right: 4px; vertical-align: 1px; }

/* ===== 流水分析视图 ===== */
.flow-view .cards { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:20px }
.flow-view .card { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:16px 20px; min-width:150px; animation: fadeUp .55s var(--ease-out) both; }
.flow-view .card .v { font-size:26px; font-weight:800; color:#1e40af; letter-spacing:-.5px; }
.flow-view .card .l { font-size:12px; color:#64748b; margin-top:4px }
.flow-view .card.lost .v { color:#dc2626 }
.flow-view .card.pot .v { color:#d97706 }
.flow-view section { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:18px; margin-bottom:24px; box-shadow: var(--shadow-xs); animation: fadeUp .55s var(--ease-out) both; }
.flow-view section h2 { font-size:16px; margin-bottom:12px; display:flex; align-items:center; gap:8px; font-weight:700 }
.flow-view section h2 .cnt { font-size:12px; font-weight:600; color:#64748b; background:#f1f5f9; padding:2px 8px; border-radius:10px }
.flow-view .filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; align-items:center }
.flow-view .filters label { font-size:12px; color:#475569; font-weight:600 }
.flow-view .filters select { height:32px; border:1px solid #cbd5e1; border-radius:6px; padding:0 8px; font-size:13px; background:#fff; color:#0f172a; min-width:120px }
.flow-view .filters select:focus { outline:none; border-color:#1e40af; box-shadow:0 0 0 3px rgba(30,64,175,.18) }
.flow-view .filters .btn { height:32px; border:1px solid #cbd5e1; border-radius:6px; padding:0 12px; font-size:13px; background:#fff; color:#475569; cursor:pointer }
.flow-view .filters .btn:hover { background:#f1f5f9 }
.flow-view .filters .stat { margin-left:auto; font-size:12px; color:#64748b }
.flow-view .filters .stat b { color:#1e40af; font-weight:700 }
.flow-view table { width:100%; border-collapse:collapse; font-size:13px }
.flow-view th, .flow-view td { padding:8px 10px; text-align:left; border-bottom:1px solid #f1f5f9; white-space:nowrap }
.flow-view th { background:#f8fafc; color:#475569; font-weight:600; font-size:12px }
.flow-view td.num, .flow-view th.num { text-align:right; font-variant-numeric:tabular-nums }
.flow-view td.rk { width:36px }
.flow-view td.nm { font-weight:600 }
.flow-view tr.pos td.num { color:#16a34a }
.flow-view tr.neg td.num { color:#dc2626 }
.flow-view .rate { font-weight:600 } .flow-view .rate.up { color:#16a34a } .flow-view .rate.down { color:#dc2626 } .flow-view .rate.new { color:#d97706 }
.flow-view .tablewrap { max-height:560px; overflow:auto; border:1px solid #f1f5f9; border-radius:8px }
.flow-view .badge { font-size:11px; padding:2px 8px; border-radius:10px; font-weight:600; display:inline-block }
.flow-view .badge.lost { background:#fee2e2; color:#dc2626 }
.flow-view .badge.pot { background:#fef3c7; color:#d97706 }
.flow-view .badge.ever { font-size:11px; color:#64748b; margin-left:6px }
.flow-view .note { background:#fffbeb; border:1px solid #fde68a; border-radius:10px; padding:14px; font-size:13px; color:#92400e; margin-bottom:20px }
.flow-view .note b { color:#b45309 }

/* ===== 任务达成监测 ===== */
.task-view .cards { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:20px }
.task-view .card { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:16px 20px; min-width:130px; animation: fadeUp .55s var(--ease-out) both; }
.task-view .card .v { font-size:26px; font-weight:800; color:#1e40af; letter-spacing:-.5px; }
.task-view .card .l { font-size:12px; color:#64748b; margin-top:4px }
.task-view .card.done .v { color:#059669 }
.task-view .card.met .v { color:#d97706 }
.task-view .card.active .v { color:#1e40af }
.task-view .card.expired .v { color:#dc2626 }

.task-view section { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:18px; margin-bottom:24px; box-shadow: var(--shadow-xs); animation: fadeUp .55s var(--ease-out) both; }
.task-view section h2 { font-size:16px; margin-bottom:12px; display:flex; align-items:center; gap:8px; font-weight:700 }
.task-view section h2 .cnt { font-size:12px; font-weight:600; color:#64748b; background:#f1f5f9; padding:2px 8px; border-radius:10px }

.task-view .filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; align-items:center }
.task-view .filters label { font-size:12px; color:#475569; font-weight:600 }
.task-view .filters select { height:32px; border:1px solid #cbd5e1; border-radius:6px; padding:0 8px; font-size:13px; background:#fff; color:#0f172a; min-width:100px }
.task-view .filters select:focus { outline:none; border-color:#1e40af; box-shadow:0 0 0 3px rgba(30,64,175,.18) }
.task-view .filters .btn { height:32px; border:1px solid #cbd5e1; border-radius:6px; padding:0 12px; font-size:13px; background:#fff; color:#475569; cursor:pointer }
.task-view .filters .btn:hover { background:#f1f5f9 }
.task-view .filters .stat { font-size:12px; color:#64748b }
.task-view .filters .stat b { color:#1e40af }
.tm-search { height:32px; border:1px solid #cbd5e1; border-radius:6px; padding:0 10px; font-size:13px; min-width:180px; background:#fff; color:#0f172a }
.tm-search:focus { outline:none; border-color:#1e40af; box-shadow:0 0 0 3px rgba(30,64,175,.18) }

.tm-legend { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; padding:10px 14px; background:#f8fafc; border-radius:8px; border:1px solid #eef2f7; }
.tm-tier-tag { font-size:11px; font-weight:700; color:#475569; background:#e2e8f0; padding:3px 8px; border-radius:10px; cursor:help; }

.task-view .tablewrap { overflow-x:auto; border:1px solid #e2e8f0; border-radius:8px }
.task-view table { width:100%; border-collapse:collapse; font-size:13px }
.task-view th { background:#f1f5f9; padding:8px 10px; text-align:left; font-weight:600; color:#334155; border-bottom:1px solid #e2e8f0; white-space:nowrap }
.task-view td { padding:8px 10px; border-bottom:1px solid #f1f5f9; color:#0f172a; vertical-align:middle }
.task-view th.num, .task-view td.num { text-align:right; font-variant-numeric:tabular-nums }
.task-view .rk { color:#94a3b8; font-weight:600; text-align:center; width:36px }
.task-view .nm { font-weight:600; white-space:nowrap }
.task-view tr.tm-row { cursor:pointer; transition:background .15s }
.task-view tr.tm-row:hover { background:#f8fafc }

.task-prog { display:flex; gap:3px; flex-wrap:wrap }
.task-prog .tp { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:22px; padding:0 4px; border-radius:4px; font-size:11px; font-weight:700; cursor:help; white-space:nowrap }
.task-prog .tp.done { background:#d1fae5; color:#065f46 }
.task-prog .tp.active { background:#dbeafe; color:#1e40af }
.task-prog .tp.expired { background:#fee2e2; color:#991b1b }
.task-prog .tp.met { background:#fef3c7; color:#92400e }
.task-prog .tp.unknown { background:#e2e8f0; color:#64748b }

.tm-detail td { padding:0 !important; background:#f8fafc }
.tm-detail-inner { padding:16px 20px; animation: fadeInUp .3s ease-out; }
.tm-tier-table { width:100%; border-collapse:collapse; font-size:12px }
.tm-tier-table th { background:#e2e8f0; padding:6px 8px; text-align:left; font-weight:600; color:#475569; font-size:11px; white-space:nowrap }
.tm-tier-table td { padding:6px 8px; border-bottom:1px solid #e2e8f0; color:#334155 }
.tm-tier-table .num { text-align:right }
.tm-dl-expired { color:#dc2626; font-weight:700 }
.tm-dl-urgent { color:#dc2626; font-weight:800; background:#fef2f2; padding:2px 6px; border-radius:4px; display:inline-flex; align-items:center; gap:4px; animation: pulseUrgent 1.4s ease-in-out infinite; }
.tm-dl-urgent::before { content:"🚨"; font-size:12px }
@keyframes pulseUrgent { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.0); } 50% { box-shadow: 0 0 0 4px rgba(220,38,38,.18); } }
.urgent-badge { display:inline-block; background:linear-gradient(135deg,#f05252,#dc2626); color:#fff; padding:2px 7px; border-radius:10px; font-size:11px; font-weight:800; letter-spacing:.3px; box-shadow:0 4px 12px -4px rgba(220,38,38,.6); animation: popIn .35s var(--ease-spring) both; }
.urgent-badge::before { content:"!"; margin-right:2px; font-weight:900 }
.tm-detail-summary { display:flex; gap:20px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid #e2e8f0; font-size:12px; color:#475569 }
.tm-detail-summary b { color:#0f172a }
.tm-pos { color:#059669; font-weight:700 }

/* ===========================================================
   关键帧汇总
   =========================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* ===========================================================
   无障碍：尊重系统“减少动态效果”设置
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::before { animation: none; }
}

/* ===========================================================
   招募管线：跟进后未入会（第 5 归类）+ 联系方式展示
   =========================================================== */
.badge-exit { background: linear-gradient(135deg, #efe3d5, #e0cbb0); color: #6f5236; }
.btn-exit { color: #a16207; border-color: #d9b46a; background: transparent; }
.btn-exit:hover { background: #fdf3e0; color: #854d0e; }
/* 点击卡片可查看/登记详情 */
.recruit-card { cursor: pointer; }
.recruit-card:hover { box-shadow: 0 6px 18px rgba(80, 60, 30, .10); transform: translateY(-1px); }
/* 未入会原因展示块 */
.recruit-drop {
  margin: 8px 0 2px; padding: 6px 8px; border-radius: 6px; font-size: 12px; line-height: 1.5;
  background: #fef2e8; border: 1px solid #f5d7b8; color: #8a4b12;
}
.recruit-drop .recruit-drop-at { opacity: .65; }
.recruit-drop-empty { cursor: pointer; font-weight: 600; }
.recruit-drop-empty:hover { background: #fde9d4; border-color: #eebc8d; }
