/* ===================================================================
   CamelRPO 柯莱特招聘交付协作平台 — 可交互原型样式
   B 端 SaaS 专业风格 · 桌面优先响应式
   =================================================================== */

:root {
  /* 主色 — 柯莱特品牌蓝 */
  --primary: #2B6CF6;
  --primary-600: #1E54D8;
  --primary-50: #EEF3FF;
  --primary-100: #DCE6FF;

  /* 功能色 */
  --success: #16A34A;
  --success-bg: #E8F8EF;
  --warning: #F59E0B;
  --warning-bg: #FEF4E6;
  --danger: #DC2626;
  --danger-bg: #FEE9E9;
  --info: #0EA5E9;

  /* 优先级色 (对应5.11.4) */
  --pri-urgent: #DC2626;
  --pri-high: #F59E0B;
  --pri-medium: #EAB308;
  --pri-low: #3B82F6;

  /* 中性色 */
  --bg: #F4F6FA;
  --bg-2: #F8FAFC;
  --card: #FFFFFF;
  --border: #E8ECF1;
  --border-2: #F0F2F5;
  --text-1: #1A1F36;
  --text-2: #565E73;
  --text-3: #8A92A6;
  --text-4: #B0B7C4;

  /* 尺寸 */
  --sidebar-w: 232px;
  --sidebar-collapsed: 64px;
  --topbar-h: 56px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 6px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow: 0 2px 8px rgba(16,24,40,.08);
  --shadow-lg: 0 8px 28px rgba(16,24,40,.12);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 13px; outline: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D4D9E3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #BFC6D4; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: #0E1726;
  color: #C4CCDB;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  transition: width .2s;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar-logo {
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 18px;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap; overflow: hidden;
}
.sidebar-logo .logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), #5B8DEF);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.sidebar.collapsed .sidebar-logo span { display: none; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.nav-group { margin-top: 6px; }
.nav-group-title {
  padding: 8px 18px 4px;
  font-size: 11px;
  color: #6B7591;
  letter-spacing: .08em;
}
.sidebar.collapsed .nav-group-title { display: none; }
.nav-item {
  display: flex; align-items: center;
  padding: 9px 18px;
  gap: 11px;
  color: #AEB7CC;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(43,108,246,.18); color: #fff; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--primary); border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 9px; font-weight: 600;
}
.sidebar.collapsed .nav-item .nav-text,
.sidebar.collapsed .nav-item .nav-badge { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 11px 0; }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.main.expanded { margin-left: var(--sidebar-collapsed); }

/* ============ 顶栏 ============ */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-collapse {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.topbar-collapse:hover { background: var(--bg); color: var(--text-1); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.breadcrumb .bc-current { color: var(--text-1); font-weight: 500; }
.breadcrumb .sep { color: var(--text-4); }
.topbar-search {
  margin-left: 16px; flex: 1; max-width: 340px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 6px; padding: 6px 12px;
  color: var(--text-3);
}
.topbar-search input { border: none; background: transparent; flex: 1; color: var(--text-1); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-btn {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); position: relative;
}
.tb-btn:hover { background: var(--bg); }
.tb-btn .dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid #fff;
}
.role-switch {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--primary-50); color: var(--primary-600);
  font-size: 12px; font-weight: 600;
}
.role-switch select {
  border: none; background: transparent; color: var(--primary-600);
  font-weight: 600; cursor: pointer;
}
.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px 4px 4px; border-radius: 20px; cursor: pointer;
}
.user-chip:hover { background: var(--bg); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5B8DEF);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.user-chip .u-name { font-size: 13px; font-weight: 500; }
.user-chip .u-role { font-size: 11px; color: var(--text-3); }

/* ============ 内容区 ============ */
.content { flex: 1; padding: 18px 20px 40px; overflow-x: hidden; }
.page { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.page-title { font-size: 19px; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 10px; }
.page-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: #fff; color: var(--text-1);
  transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg); border-color: transparent; color: var(--text-1); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 9px 18px; font-size: 14px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { color: var(--success); border-color: var(--success); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ 卡片 ============ */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-2);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-2);
}
.card-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 18px; }
.card-body.no-pad { padding: 0; }

/* ============ 统计卡片 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 16px 18px; border: 1px solid var(--border-2);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.stat-card .stat-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--text-1); line-height: 1.1; }
.stat-card .stat-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.stat-card .stat-icon {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* ============ 表格 ============ */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 11px 14px;
  font-weight: 600; color: var(--text-3); font-size: 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-2); }
.table tbody tr:hover { background: var(--bg-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table .col-ops { text-align: right; white-space: nowrap; }
.table .row-clickable { cursor: pointer; }

/* ============ 标签/徽章 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500; line-height: 18px;
  background: var(--bg); color: var(--text-2);
}
.tag-primary { background: var(--primary-50); color: var(--primary-600); }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-warning { background: var(--warning-bg); color: #B45309; }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-info { background: #E6F4FE; color: var(--info); }
.tag-neutral { background: #EEF1F6; color: var(--text-2); }
.tag.pri-urgent { background: var(--danger-bg); color: var(--danger); }
.tag.pri-high { background: var(--warning-bg); color: #B45309; }
.tag.pri-medium { background: #FEF9C3; color: #A16207; }
.tag.pri-low { background: #DBEAFE; color: #1D4ED8; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.urgent { background: var(--pri-urgent); }
.dot.high { background: var(--pri-high); }
.dot.medium { background: var(--pri-medium); }
.dot.low { background: var(--pri-low); }

/* ============ 状态点 ============ */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 11px;
  font-size: 11px; font-weight: 500;
}
.status-pill .s-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ============ 筛选栏 ============ */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.toolbar .spacer { flex: 1; }
.filter-input, .filter-select {
  height: 32px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--text-1);
  min-width: 130px;
}
.filter-input:focus, .filter-select:focus { border-color: var(--primary); }
.search-box {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; min-width: 220px;
}
.search-box input { border: none; flex: 1; min-width: 0; }
.search-box:focus-within { border-color: var(--primary); }

/* ============ Tab ============ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-item {
  padding: 9px 16px; font-size: 13px; color: var(--text-2);
  cursor: pointer; border-bottom: 2px solid transparent;
  font-weight: 500; position: relative; bottom: -1px;
}
.tab-item:hover { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-item .tab-count { font-size: 11px; color: var(--text-4); margin-left: 4px; }

/* ============ 看板 ============ */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col {
  flex: 1; min-width: 260px; background: var(--bg);
  border-radius: var(--radius); padding: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.kanban-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 8px; font-size: 13px; font-weight: 600;
}
.kanban-col-head .col-count {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 0 8px; font-size: 11px; color: var(--text-3);
}
.kanban-card {
  background: #fff; border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-2); cursor: pointer;
  transition: all .15s; display: flex; flex-direction: column; gap: 8px;
}
.kanban-card:hover { box-shadow: var(--shadow); border-color: var(--primary-100); }
.kanban-card.dragging { opacity: .5; }
.kanban-col.drop-target { background: var(--primary-50); }

/* ============ 抽屉/弹窗 ============ */
.overlay {
  position: fixed; inset: 0; background: rgba(16,24,40,.4);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 560px; max-width: 92vw; background: #fff;
  z-index: 210; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s;
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer.lg { width: 760px; }
.drawer-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.drawer-head h3 { font-size: 16px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0;
  background: var(--bg-2);
}
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  background: #fff; border-radius: var(--radius-lg);
  z-index: 210; box-shadow: var(--shadow-lg);
  width: 520px; max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: all .2s;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.close-btn {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 18px;
}
.close-btn:hover { background: var(--bg); color: var(--text-1); }

/* ============ 表单 ============ */
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.form-row > .field { flex: 1; }
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field-label .req { color: var(--danger); }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--text-1);
  transition: border .15s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--primary); }
.field-textarea { resize: vertical; min-height: 76px; }
.field-hint { font-size: 11px; color: var(--text-4); margin-top: 4px; }

/* ============ 描述列表 ============ */
.desc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.desc-item { display: flex; flex-direction: column; gap: 3px; }
.desc-item .desc-label { font-size: 12px; color: var(--text-3); }
.desc-item .desc-value { font-size: 13px; color: var(--text-1); font-weight: 500; }
.desc-item.full { grid-column: 1 / -1; }

/* ============ 步骤条 ============ */
.steps { display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--text-3);
  border: 1.5px solid var(--border); flex-shrink: 0;
}
.step.done .step-circle { background: var(--success); color: #fff; border-color: var(--success); }
.step.active .step-circle { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px; }
.step.done + .step-line, .step-line.done { background: var(--success); }
.step-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.step.active .step-label, .step.done .step-label { color: var(--text-1); font-weight: 500; }

/* ============ 进度条 ============ */
.progress { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width .3s; }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }

/* ============ 空状态 ============ */
.empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }

/* ============ 工具类 ============ */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .text-4 { color: var(--text-4); }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.fs-12 { font-size: 12px; } .fs-16 { font-size: 16px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mr-2 { margin-right: 8px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; top: 70px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; border-left: 3px solid var(--primary);
  animation: toastIn .25s; min-width: 240px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger { border-left-color: var(--danger); }

/* ============ 进度环 (SVG用) ============ */
.ring-track { stroke: var(--bg); }
.ring-fill { stroke: var(--primary); transition: stroke-dashoffset .4s; }

/* ============ 漏斗 ============ */
.funnel { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; }
.funnel-stage {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #fff; font-weight: 600; border-radius: 4px;
  padding: 14px 0; transition: all .2s; cursor: default;
}
.funnel-stage:hover { transform: scale(1.02); }
.funnel-stage .fs-label { font-size: 13px; }
.funnel-stage .fs-value { font-size: 18px; }
.funnel-stage .fs-rate { font-size: 11px; opacity: .85; }

/* ============ 登录页 ============ */
.login-wrap { position: fixed; inset: 0; display: flex; z-index: 1000; background: #fff; }
.login-bg {
  flex: 1.2; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0E1726 0%, #1A2851 55%, #2B4FA0 100%);
  color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center;
}
.login-bg-grid {
  position: absolute; inset: 0; opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.login-blob.b1 { width: 320px; height: 320px; background: #2B6CF6; top: -80px; right: -60px; }
.login-blob.b2 { width: 280px; height: 280px; background: #5B8DEF; bottom: -80px; left: 40px; }
.login-slogan { position: relative; z-index: 2; max-width: 460px; }
.login-slogan .ls-1 { font-size: 30px; font-weight: 800; line-height: 1.3; }
.login-slogan .ls-2 { font-size: 15px; opacity: .7; margin-top: 10px; }
.login-slogan .ls-feats { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.login-slogan .ls-feats > div { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .85; }
.lf-dot { width: 6px; height: 6px; border-radius: 50%; background: #5B8DEF; flex-shrink: 0; }
.login-card {
  width: 420px; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: -20px 0 60px rgba(14,23,38,.1);
}
.login-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--text-1); margin-bottom: 24px; }
.login-title { font-size: 22px; font-weight: 700; }
.login-sub { font-size: 13px; color: var(--text-3); margin: 4px 0 28px; }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--text-4); font-size: 12px; margin: 24px 0 16px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-foot { margin-top: 28px; font-size: 11px; color: var(--text-4); text-align: center; line-height: 1.7; }

/* ============ 工作台小组件 ============ */
.todo-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border-2); cursor: pointer; }
.todo-row:hover { background: var(--bg-2); }
.todo-row:last-child { border-bottom: none; }
.todo-row .dot { flex-shrink: 0; }
.todo-row .todo-main { flex: 1; min-width: 0; }
.todo-row .todo-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.todo-row .todo-d { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 8px; border: 1px solid var(--border-2); cursor: pointer; color: var(--text-2); transition: all .15s; }
.quick-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.quick-link svg { color: var(--primary); }
.ring-wrap { flex-shrink: 0; }
.dist-label { width: 50px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }

/* ============ 待办日历 ============ */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal-head, .cal-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 96px; padding: 6px; }
.cal-head { min-height: 36px; text-align: center; font-weight: 600; color: var(--text-2); background: var(--bg-2); display: flex; align-items: center; justify-content: center; }
.cal-cell.empty { background: var(--bg); }
.cal-cell.today { background: var(--primary-50); }
.cal-date { font-size: 12px; color: var(--text-3); margin-bottom: 4px; font-weight: 600; }
.cal-today { color: #fff; background: var(--primary); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cal-event { font-size: 11px; padding: 3px 6px; border-radius: 4px; background: var(--bg); margin-bottom: 3px; cursor: pointer; display: flex; align-items: center; gap: 4px; border-left: 3px solid var(--primary); }
.cal-event:hover { background: var(--primary-50); }
.cal-event.pri-urgent { border-left-color: var(--pri-urgent); }
.cal-event.pri-high { border-left-color: var(--pri-high); }
.cal-event.pri-medium { border-left-color: var(--pri-medium); }
.cal-event.pri-low { border-left-color: var(--pri-low); }

/* ============ 批量操作栏 ============ */
.batch-bar { position: sticky; bottom: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; z-index: 5; }

/* ============ 工具补充 ============ */
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.ml-2 { margin-left: 8px; }
.text-success { color: var(--success); }

/* ============ 上传框 / 时间线 / 间距 ============ */
.upload-box { border: 2px dashed var(--border); border-radius: 10px; padding: 28px; text-align: center; color: var(--text-3); cursor: pointer; transition: all .15s; }
.upload-box:hover { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-dot { position: absolute; left: -18px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary-100); }
.tl-content { padding-left: 6px; }
.space-y > * + * { margin-top: 10px; }

/* ============ 面试周历 ============ */
.weekcal { display: grid; grid-template-columns: 56px repeat(7, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.wc-gutter { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-3); text-align: right; padding: 8px 6px; min-height: 56px; }
.wc-head { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 10px; font-weight: 600; font-size: 12px; color: var(--text-2); background: var(--bg-2); }
.wc-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 56px; padding: 4px; }
.wc-event { padding: 6px 8px; border-radius: 6px; cursor: pointer; margin-bottom: 4px; }
.opacity-7 { opacity: .75; }

/* ============ 沟通中心 ============ */
.msg-wrap { display: grid; grid-template-columns: 320px 1fr; min-height: 600px; overflow: hidden; }
.msg-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.msg-list-head { padding: 10px 12px 0; border-bottom: 1px solid var(--border); }
.msg-list-body { flex: 1; overflow-y: auto; }
.msg-thread { display: flex; gap: 10px; padding: 12px; cursor: pointer; position: relative; border-bottom: 1px solid var(--border-2); }
.msg-thread:hover { background: var(--bg-2); }
.msg-thread.active { background: var(--primary-50); }
.msg-thread .mt-av { flex-shrink: 0; }
.msg-thread .mt-main { flex: 1; min-width: 0; }
.msg-thread .mt-badge { position: absolute; top: 14px; right: 12px; background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 9px; }
.msg-chat { display: flex; flex-direction: column; min-width: 0; }
.msg-chat-head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.msg-chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-2); }
.msg-bubble { display: flex; gap: 10px; margin-bottom: 16px; }
.msg-bubble.me { flex-direction: row-reverse; }
.mb-content { max-width: 70%; }
.mb-meta { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.msg-bubble.me .mb-meta { text-align: right; }
.mb-text { background: #fff; padding: 10px 14px; border-radius: 4px 12px 12px 12px; font-size: 13px; line-height: 1.6; box-shadow: var(--shadow-sm); }
.msg-bubble.me .mb-text { background: var(--primary); color: #fff; border-radius: 12px 4px 12px 12px; }
.msg-chat-input { padding: 12px 16px; border-top: 1px solid var(--border); }
.msg-input-bar { display: flex; gap: 6px; margin-bottom: 10px; }

/* ============ 组织权限 ============ */
.org-node { }
.role-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; cursor: pointer; margin-bottom: 4px; }
.role-item:hover { background: var(--bg); }
.role-item.active { background: var(--primary-50); }
.dict-item { padding: 10px; border-radius: 6px; cursor: pointer; margin-bottom: 4px; }
.dict-item:hover, .dict-item.active { background: var(--primary-50); }
.perm-item { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 8px 0; font-size: 13px; color: var(--text-2); }

/* ============ 开关 ============ */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #C4CCDB; border-radius: 20px; transition: .2s; }
.slider::before { content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--success); }
.switch input:checked + .slider::before { transform: translateX(16px); }

/* ============ 审批画布 ============ */
.approval-canvas { display: flex; align-items: center; gap: 6px; padding: 24px; background: var(--bg); border-radius: 8px; overflow-x: auto; }
.ap-node { text-align: center; flex-shrink: 0; }
.ap-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--bg); border: 2px solid var(--border); color: var(--text-2); margin: 0 auto; }
.ap-node.start .ap-circle { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.ap-node.end .ap-circle { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.ap-circle.approve { background: var(--warning-bg); border-color: var(--warning); color: #B45309; }
.ap-circle.cc { background: #E6F4FE; border-color: var(--info); color: var(--info); }
.ap-label { font-size: 11px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.ap-arrow { color: var(--text-4); font-size: 18px; }

/* ============ 报表设计器项 ============ */
.report-item { padding: 7px 10px; border-radius: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; margin-bottom: 4px; }
.report-item:hover { background: #fff; color: var(--primary); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .desc-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: none; width: var(--sidebar-w); --sidebar-w: 232px; }
  .main { margin-left: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
  .role-switch { display: none; }
}
