/* ═══════════════════════════════════════════════════
   墨迹天气客服管理系统 · 浅色专业主题
═══════════════════════════════════════════════════ */
:root {
  /* 背景层次 */
  --bg-base:       #f0f4f8;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f8fafc;
  --bg-hover:      #f1f5f9;
  --bg-active:     #e8f0fe;

  /* 边框 */
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;

  /* 文字 - 高对比度 */
  --text-primary:  #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;

  /* 主色：深蓝 */
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-light:  #eff6ff;
  --accent-glow:   rgba(37,99,235,0.15);

  /* 功能色 */
  --cyan:          #0ea5e9;
  --cyan-dim:      #f0f9ff;
  --green:         #16a34a;
  --green-dim:     #f0fdf4;
  --orange:        #ea580c;
  --orange-dim:    #fff7ed;
  --purple:        #7c3aed;
  --purple-dim:    #faf5ff;
  --yellow:        #d97706;
  --yellow-dim:    #fffbeb;
  --red:           #dc2626;
  --red-dim:       #fef2f2;

  /* 班次色 */
  --shift-morning:   #0284c7;
  --shift-afternoon: #16a34a;
  --shift-evening:   #d97706;

  /* 金色点缀 */
  --gold:          #f59e0b;
  --gold-dim:      #fffbeb;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08);
  --shadow:    0 4px 16px rgba(15,23,42,0.10);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.14);
  --shadow-card: 0 1px 3px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.08);

  --sidebar-w: 220px;
  --nav-h:     56px;
  --transition: 0.18s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── 滚动条 ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── 顶部导航 ───────────────────────────────────── */
.navbar {
  height: var(--nav-h);
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(37,99,235,0.25);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px; height: 36px;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text { line-height: 1.2; }
.brand-name { font-size: 14px; font-weight: 700; color: #ffffff; letter-spacing: 0.3px; }
.brand-sub  { font-size: 10px; color: rgba(255,255,255,0.65); letter-spacing: 1px; text-transform: uppercase; }

.nav-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.2); margin: 0 16px; }

.nav-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  white-space: nowrap;
}

.nav-tab:hover { background: rgba(255,255,255,0.12); color: #ffffff; }
.nav-tab.active { background: rgba(255,255,255,0.18); color: #ffffff; font-weight: 500; }
.nav-tab-icon { font-size: 15px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.nav-user:hover { background: rgba(255,255,255,0.12); }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.avatar-name { font-size: 13px; color: #ffffff; }
.avatar-role { font-size: 11px; color: rgba(255,255,255,0.65); }

.badge-count {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
}

/* ── 页面布局 ───────────────────────────────────── */
.app-body {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  position: fixed;
  top: var(--nav-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-group { margin-bottom: 20px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 8px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-item:hover  { background: var(--bg-hover);  color: var(--text-primary); }
.sidebar-item.active { background: var(--bg-active);  color: var(--accent-hover); font-weight: 500; }

.sidebar-icon { font-size: 15px; width: 18px; text-align: center; }
.sidebar-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
}

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.main-nosidebar {
  flex: 1;
  padding: 24px;
}

.site-footer {
  padding: 18px 24px 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── 容器 ───────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; }

.page-header { margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.page-sub   { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ── 卡片 ───────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card-body { padding: 20px; }

/* ── 统计卡 ─────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent));
}
.stat-card:hover { border-color: #bfdbfe; transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-val   { font-size: 28px; font-weight: 700; line-height: 1; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ── 网格 ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── 按钮 ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  background: none;
  color: var(--text-primary);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 0 12px var(--accent-glow); }

.btn-ghost  { color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: #94a3b8; }

.btn-danger { background: var(--red-dim); color: var(--red); border-color: rgba(220,38,38,0.25); }
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-success { background: var(--green-dim); color: var(--green); border-color: rgba(22,163,74,0.25); }
.btn-success:hover { background: var(--green); color: #fff; }

.btn-warning { background: var(--yellow-dim); color: var(--yellow); border-color: rgba(217,119,6,0.25); }
.btn-warning:hover { background: var(--yellow); color: #fff; }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 11px; }
.btn-icon { padding: 6px; width: 32px; height: 32px; justify-content: center; border-radius: var(--radius-sm); }

/* ── 表单 ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-control {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

select.form-control option { background: var(--bg-elevated); color: var(--text-primary); }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ── 表格 ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border); }
th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--bg-base);
  white-space: nowrap;
}
td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

/* ── 徽章 ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-blue    { background: var(--accent-glow);   color: var(--accent-hover); }
.badge-cyan    { background: var(--cyan-dim);       color: var(--cyan); }
.badge-green   { background: var(--green-dim);      color: var(--green); }
.badge-orange  { background: var(--orange-dim);     color: var(--orange); }
.badge-purple  { background: var(--purple-dim);     color: var(--purple); }
.badge-yellow  { background: var(--yellow-dim);     color: var(--yellow); }
.badge-red     { background: var(--red-dim);        color: var(--red); }
.badge-muted   { background: #f1f5f9; color: var(--text-muted); }

.badge-morning   { background: #e0f2fe; color: #0369a1; }
.badge-afternoon { background: #dcfce7; color: #15803d; }
.badge-evening   { background: #fef3c7; color: #b45309; }

/* ── 状态点 ─────────────────────────────────────── */
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.dot-orange { background: var(--orange); }
.dot-red    { background: var(--red); }
.dot-muted  { background: var(--text-muted); }

/* ── 模态框 ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s ease;
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 680px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close {
  width: 28px; height: 28px;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red-dim); color: var(--red); }

.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Alert ──────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-info    { background: var(--accent-glow); border-left: 3px solid var(--accent); color: var(--accent-hover); }
.alert-success { background: var(--green-dim);   border-left: 3px solid var(--green);  color: var(--green); }
.alert-warning { background: var(--yellow-dim);  border-left: 3px solid var(--yellow); color: var(--yellow); }
.alert-danger  { background: var(--red-dim);     border-left: 3px solid var(--red);   color: var(--red); }

/* ── Toast ──────────────────────────────────────── */
#toast-wrap {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
  pointer-events: all;
  border-left: 3px solid var(--accent);
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--yellow); }
@keyframes toastIn { from { transform: translateX(20px); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* ── 日历 ───────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cal-nav h3 { font-size: 16px; font-weight: 600; min-width: 120px; text-align: center; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-head {
  background: var(--bg-base);
  padding: 10px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cal-day {
  background: var(--bg-surface);
  padding: 8px 6px;
  min-height: 100px;
  cursor: default;
  transition: background var(--transition);
  position: relative;
}
.cal-day.clickable { cursor: pointer; }
.cal-day:hover.clickable { background: var(--bg-hover); }
.cal-day.other { background: var(--bg-base); opacity: 0.5; }
.cal-day.today { background: var(--bg-active); }
.cal-day.weekend .day-num { color: var(--orange); }

.day-num {
  font-size: 12px;
  font-weight: 600;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.today .day-num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── 排班槽 ─────────────────────────────────────── */
.slot-group { margin-bottom: 3px; }
.slot-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1px; }

.slot {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.slot:hover { filter: brightness(1.15); }
.slot.morning   { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.slot.afternoon { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.slot.evening   { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.slot.empty     { background: #f8fafc; color: #94a3b8; border: 1px dashed #cbd5e1; }
.slot.empty:hover { border-color: var(--accent); color: var(--accent); background: #eff6ff; }
.slot.disabled  { opacity: 0.3; cursor: not-allowed; }
.slot.disabled:hover { filter: none; }

.slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.slot-tag  { font-size: 9px; opacity: 0.7; flex-shrink: 0; }

/* ── 总览表格 ────────────────────────────────────── */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.overview-table th {
  background: var(--bg-base);
  padding: 10px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.overview-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  text-align: center;
  vertical-align: top;
}
.overview-table tr:hover td { background: var(--bg-hover); }

.ov-cell { display: flex; flex-direction: column; gap: 3px; min-width: 60px; }
.ov-item {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}
.ov-item.morning   { background: #e0f2fe; color: #0369a1; }
.ov-item.afternoon { background: #dcfce7; color: #15803d; }
.ov-item.evening   { background: #fef3c7; color: #b45309; }
.ov-empty { color: var(--text-muted); font-size: 11px; }
.ov-holiday { color: var(--text-muted); font-size: 11px; font-style: italic; }
.ov-noshift { background: #f8fafc; color: #cbd5e1; font-size: 10px; border-radius: 4px; padding: 3px; }

/* ── 渠道标签 ────────────────────────────────────── */
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* ── 打卡面板 ────────────────────────────────────── */
.checkin-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.checkin-shift { font-weight: 600; font-size: 13px; min-width: 60px; }
.checkin-time  { font-size: 12px; color: var(--text-secondary); flex: 1; }
.checkin-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── 今日看板 ────────────────────────────────────── */
.today-board {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #0ea5e9 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(37,99,235,0.25);
}
.today-board::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.today-board::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.today-date-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.today-date-big { font-size: 28px; font-weight: 700; color: #ffffff; }
.today-date-sub { font-size: 13px; color: rgba(255,255,255,0.75); }
.today-badge-wd {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.today-badge-wd.workday { background: rgba(255,255,255,0.2); color: #ffffff; }
.today-badge-wd.weekend { background: rgba(251,191,36,0.3); color: #fbbf24; }

.today-channels { display: flex; flex-direction: column; gap: 10px; }
.today-ch-row {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  backdrop-filter: blur(4px);
}
.today-ch-name { font-size: 13px; font-weight: 600; min-width: 80px; color: #ffffff; }
.today-ch-shifts { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.today-shift-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.today-shift-pill.morning   { background: rgba(255,255,255,0.15); color: #bfdbfe; }
.today-shift-pill.afternoon { background: rgba(255,255,255,0.15); color: #bbf7d0; }
.today-shift-pill.evening   { background: rgba(255,255,255,0.15); color: #fde68a; }
.today-ch-holiday { font-size: 12px; color: rgba(255,255,255,0.5); font-style: italic; }
.today-ch-empty   { font-size: 12px; color: #fca5a5; font-weight: 500; }
.today-ch-holiday { font-size: 12px; color: var(--text-muted); font-style: italic; }
.today-ch-empty   { font-size: 12px; color: var(--red); }

/* ── 登录页 ──────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  padding: 20px 20px 64px;
}

.login-site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  padding: 0 20px;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(14,165,233,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(124,58,237,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.login-top {
  padding: 36px 32px 28px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.login-logo {
  width: 64px; height: 64px;
  background: #000;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-logo-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.login-title { font-size: 20px; font-weight: 700; color: #0f172a; }
.login-sub   { font-size: 12px; color: #64748b; margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

.login-body { padding: 28px 32px; }

.login-tabs {
  display: flex;
  gap: 0;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 22px;
}
.login-tab {
  flex: 1;
  padding: 7px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #64748b;
  transition: all var(--transition);
  border: none;
  background: none;
}
.login-tab.active { background: #ffffff; color: #2563eb; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

/* ── 分隔线 ─────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── 空状态 ─────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.empty-sub  { font-size: 12px; margin-top: 4px; }

/* ── 加载 ───────────────────────────────────────── */
.spin {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 筛选栏 ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
}
.filter-bar .form-control { width: auto; }

/* ── 颜色选择器 ─────────────────────────────────── */
input[type="color"] {
  width: 40px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  cursor: pointer;
}

/* ── 响应式 ─────────────────────────────────────── */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 72px; }
  .navbar { padding: 0 12px; }
}

/* ── 渐变文字 ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow效果 ────────────────────────────────────── */
.glow-blue   { box-shadow: 0 0 16px rgba(37,99,235,0.2); }
.glow-cyan   { box-shadow: 0 0 16px rgba(14,165,233,0.2); }
.glow-green  { box-shadow: 0 0 16px rgba(22,163,74,0.2); }

/* ── 侧边栏优化 ─────────────────────────────────── */
.sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}
.sidebar-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}
.sidebar-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* ── 卡片增强阴影 ────────────────────────────────── */
.card {
  box-shadow: var(--shadow-card);
}
.card-header {
  background: #fafbff;
}

/* ── 表格增强 ────────────────────────────────────── */
th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}
tbody tr:hover td {
  background: #f8faff;
}

/* ── 按钮导航栏适配 ─────────────────────────────── */
.navbar .btn-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.navbar .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

/* ── 筛选栏优化 ─────────────────────────────────── */
.filter-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* ── 打卡卡片 ───────────────────────────────────── */
.checkin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #2563eb;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}

/* ── 管理后台侧边栏标题 ─────────────────────────── */
.sidebar-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 10px 4px;
}

/* ── 页面标题区 ─────────────────────────────────── */
.page-title {
  font-size: 22px;
  font-weight: 700;
}
.page-sub {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}
