/* ============ 信诺同事工作台 · 设计系统 ============ */
:root {
  --primary: #2563eb;
  --primary-2: #38bdf8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --bg: #eef3fb;
  --bg-soft: #e4ecf9;
  --card: #ffffff;
  --card-2: #f5f9ff;
  --text: #0b1f3a;
  --text-2: #3d5a80;
  --muted: #7d96b5;
  --border: #d9e4f4;
  --border-2: #b8cce8;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --info: #0ea5e9;
  --info-soft: rgba(14, 165, 233, 0.12);
  --sidebar-w: 248px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 84, 0.05), 0 8px 24px -12px rgba(15, 42, 84, 0.14);
  --shadow-lg: 0 24px 60px -18px rgba(2, 40, 96, 0.35);
  --sidebar-bg: linear-gradient(180deg, #020b1a 0%, #06244f 55%, #0a3a77 100%);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.15), 0 0 24px -6px rgba(37, 99, 235, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #050d1d;
  --bg-soft: #0a1830;
  --card: #0c1c36;
  --card-2: #112542;
  --text: #dbeafe;
  --text-2: #9db8dd;
  --muted: #5e7ba3;
  --border: #1c3354;
  --border-2: #2a4a76;
  --primary-soft: rgba(56, 189, 248, 0.14);
  --success-soft: rgba(52, 211, 153, 0.14);
  --warning-soft: rgba(251, 191, 36, 0.14);
  --danger-soft: rgba(248, 113, 113, 0.14);
  --info-soft: rgba(56, 189, 248, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  --sidebar-bg: linear-gradient(180deg, #020815 0%, #061c3d 55%, #093061 100%);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 28px -6px rgba(37, 99, 235, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(700px 380px at -10% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(var(--bg), var(--bg));
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
  background-attachment: fixed;
}
a { color: var(--primary); text-decoration: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(37,99,235,.28); }

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

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 60;
  transition: transform .28s ease;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .4), 0 8px 24px -4px rgba(37, 99, 235, .65), 0 0 18px -2px rgba(56, 189, 248, .5);
  flex-shrink: 0;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: -3px; border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, .35);
  animation: brandPulse 2.6s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { display: block; color: #fff; font-size: 15px; letter-spacing: .5px; }
.brand-text small { display: block; color: #7c86a8; font-size: 10px; letter-spacing: .4px; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; }
.nav-group {
  font-size: 11px; letter-spacing: 1px; color: #6b7394;
  padding: 16px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: 10px; color: #aab3d0;
  font-size: 13.5px; position: relative;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; opacity: .9; }
.nav-item:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(37,99,235,.28), rgba(56,189,248,.126));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.35);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: linear-gradient(#3b82f6, #38bdf8);
}
.nav-badge {
  margin-left: auto; font-style: normal; font-size: 11px;
  background: rgba(148,163,184,.15); color: #cbd5e1;
  padding: 1px 7px; border-radius: 20px;
}
.nav-badge.hot {
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  font-weight: 700; padding: 1px 6px;
}
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(148,163,184,.12); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.14);
  padding: 8px 10px; border-radius: 12px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}
.user-meta { flex: 1; min-width: 0; }
.user-meta strong { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { display: block; color: #7c86a8; font-size: 11px; }
.icon-btn {
  background: transparent; border: none; color: var(--muted);
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; gap: 16px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.page-title h1 { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.page-title p { font-size: 12px; color: var(--muted); margin-top: -1px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.quick-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 12px; width: 280px;
  transition: border .15s, box-shadow .15s;
}
.quick-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.quick-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.quick-search input { border: none; outline: none; background: transparent; width: 100%; }
.quick-search input::placeholder { color: var(--muted); }
.bell em {
  position: absolute; top: 2px; right: 1px; font-style: normal;
  background: var(--danger); color: #fff; font-size: 10px;
  min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 10px; padding: 0 4px; font-weight: 700;
}
.bell svg { color: var(--text-2); }
.top-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#38bdf8); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.menu-btn { display: none; }

.content { padding: 22px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #38bdf8); color: #fff; box-shadow: 0 6px 16px -6px rgba(37,99,235,.55); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: var(--card-2); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.06); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.icon-text-btn { display:inline-flex; align-items:center; gap:5px; background:transparent; border:none; color:var(--muted); font-size:12.5px; padding:4px 6px; border-radius:7px; }
.icon-text-btn:hover { color: var(--primary); background: var(--primary-soft); }
.icon-text-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.icon-text-btn svg { width: 15px; height: 15px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card-title { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card-title h3 { font-size: 14.5px; font-weight: 700; display:flex; align-items:center; gap:8px; }
.card-title h3 svg { width: 17px; height: 17px; color: var(--primary); }
.card-title .sub { font-size: 12px; color: var(--muted); font-weight: 400; }

.field { display:block; margin-bottom: 14px; }
.field > span { display:block; font-size: 12.5px; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.input-wrap { position: relative; }
.input-wrap > svg { position:absolute; left:11px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--muted); pointer-events:none; }
.input-wrap input { padding-left: 34px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; padding: 8px 12px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 10px; outline: none;
  transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--card);
}
textarea { resize: vertical; min-height: 74px; }
select { appearance: auto; cursor: pointer; }

.badge {
  display:inline-flex; align-items:center; gap:4px;
  font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  white-space: nowrap;
}
.badge::before { content:""; width:5px; height:5px; border-radius:50%; background: currentColor; }
.badge.gray { background: var(--bg-soft); color: var(--muted); }
.badge.blue { background: var(--info-soft); color: var(--info); }
.badge.green { background: var(--success-soft); color: var(--success); }
.badge.orange { background: var(--warning-soft); color: var(--warning); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.purple { background: var(--primary-soft); color: var(--primary); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--card-2);
  white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--card-2); }
tbody tr.clickable { cursor: pointer; }
.table-empty { text-align:center; padding: 42px 10px; color: var(--muted); }
.table-empty svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity:.4; }

.page-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 19px; font-weight: 800; display:flex; align-items:center; gap:10px; }
.page-head h2 svg { width:22px; height:22px; color:var(--primary); }
.page-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
.filter-bar .search-box { position:relative; flex:1; min-width:220px; max-width:340px; }
.filter-bar .search-box svg { position:absolute; left:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--muted); }
.filter-bar .search-box input { padding-left:32px; }
.filter-bar select { width:auto; min-width:120px; }

.empty-state { text-align:center; padding: 56px 20px; color: var(--muted); }
.empty-state svg { width: 54px; height: 54px; margin: 0 auto 14px; opacity:.35; }
.empty-state h4 { color: var(--text-2); font-size: 15px; margin-bottom: 5px; }
.empty-state p { font-size: 13px; }

.pagination { display:flex; align-items:center; gap:8px; justify-content:flex-end; padding: 12px 16px; font-size:12.5px; color:var(--muted); }
.pagination button { background:var(--card-2); border:1px solid var(--border); border-radius:8px; padding:5px 11px; color:var(--text-2); }
.pagination button:disabled { opacity:.4; cursor:not-allowed; }
/* ---------- 弹窗 / 抽屉 / Toast ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
.modal {
  background: var(--card); border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); max-height: 90vh; display: flex; flex-direction: column;
  animation: slideUp .22s ease;
}
.modal.wide { max-width: 680px; }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding: 18px 20px 12px; }
.modal-head h3 { font-size: 16px; font-weight: 800; }
.modal-body { padding: 6px 20px 18px; overflow-y: auto; }
.modal-foot { display:flex; justify-content:flex-end; gap:10px; padding: 14px 20px 18px; border-top: 1px solid var(--border); }
.modal-close { background:transparent; border:none; color:var(--muted); width:30px; height:30px; border-radius:8px; font-size:18px; line-height:1; }
.modal-close:hover { background: var(--card-2); color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.drawer-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 95; animation: fadeIn .15s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 94vw;
  background: var(--card); z-index: 96; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slideLeft .22s ease;
}
@keyframes slideLeft { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display:flex; align-items:center; justify-content:space-between; padding: 18px 20px; border-bottom:1px solid var(--border); }
.drawer-head h3 { font-size: 15.5px; font-weight: 800; }
.drawer-body { flex:1; overflow-y:auto; padding: 18px 20px; }
.drawer-foot { padding: 14px 20px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }

.toast-wrap { position: fixed; top: 74px; right: 18px; z-index: 200; display:flex; flex-direction:column; gap:10px; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 11px 16px 11px 13px; min-width: 250px; max-width: 360px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: toastIn .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--danger); }
.toast.warning svg { color: var(--warning); }
.toast strong { display: block; font-size: 13.5px; }
.toast p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.toast .close { margin-left:auto; background:none; border:none; color:var(--muted); padding:2px 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }

/* ---------- 进度条 / 步骤 ---------- */
.progress { height: 8px; background: var(--bg-soft); border-radius: 8px; overflow: hidden; }
.progress > i { display:block; height:100%; border-radius:8px; background: linear-gradient(90deg, #2563eb, #38bdf8); transition: width .5s ease; }
.progress.green > i { background: linear-gradient(90deg, #10b981, #34d399); }
.progress.orange > i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress.red > i { background: linear-gradient(90deg, #ef4444, #f87171); }

.stage-steps { display: flex; gap: 0; margin: 14px 0 4px; }
.stage-step { flex: 1; text-align: center; position: relative; }
.stage-step .dot {
  width: 16px; height: 16px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--bg-soft); border: 2px solid var(--border-2);
  position: relative; z-index: 2; transition: all .25s;
}
.stage-step::before {
  content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px;
  background: var(--border); z-index: 1;
}
.stage-step:first-child::before { display: none; }
.stage-step.done .dot { background: var(--primary); border-color: var(--primary); }
.stage-step.done::before { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.stage-step.current .dot {
  background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
.stage-step.current .dot::after { content:""; position:absolute; inset:3px; border-radius:50%; background: var(--primary); }
.stage-step span { font-size: 11.5px; color: var(--muted); }
.stage-step.done span { color: var(--primary); font-weight: 600; }
.stage-step.current span { color: var(--text); font-weight: 700; }
.stage-step.rejected .dot { background: var(--danger); border-color: var(--danger); }
.stage-step.rejected span { color: var(--danger); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content:""; position:absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 20px 14px; }
.tl-item::before {
  content:""; position:absolute; left: -21px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--primary);
}
.tl-item.stage-approved::before { border-color: var(--success); }
.tl-item.stage-rejected::before { border-color: var(--danger); }
.tl-item .tl-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tl-item .tl-time { font-size: 11.5px; color: var(--muted); margin-left:auto; }
.tl-item .tl-author { font-size: 11.5px; color: var(--muted); }
.tl-item .tl-content { margin-top: 4px; font-size: 13px; color: var(--text-2); background: var(--card-2); border-radius: 8px; padding: 8px 12px; }
.tl-item .tl-content strong { color: var(--text); }

/* ---------- 加载 / 骨架 ---------- */
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--border-2); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 90px 0; color: var(--muted); gap: 12px; }
.skeleton { position:relative; overflow:hidden; background: var(--card-2); border-radius: 8px; }
.skeleton::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, transparent, rgba(148,163,184,.15), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* ---------- 登录页 ---------- */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(139,92,246,.26), transparent 55%),
    linear-gradient(160deg, #0b1120 0%, #111c3f 55%, #1e1b4b 100%);
  padding: 24px;
}
.login-wrap { display: flex; gap: 56px; align-items: center; max-width: 900px; width: 100%; flex-wrap: wrap; justify-content: center; }
.login-brand { color: #fff; max-width: 380px; }
.login-logo {
  width: 64px; height: 64px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -10px rgba(37,99,235,.65); margin-bottom: 22px;
}
.login-brand h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.login-brand > p { color: rgba(226,232,240,.6); font-size: 12.5px; letter-spacing: 1.5px; margin-top: 8px; }
.login-points { list-style: none; margin-top: 30px; display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 10px; color: rgba(226,232,240,.85); font-size: 14px; }
.login-points li span {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(16,185,129,.18);
  color: #34d399; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.login-card {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 34px 32px; width: 380px; max-width: 100%;
  border: 1px solid rgba(148,163,184,.14);
}
.login-card h2 { font-size: 22px; font-weight: 800; }
.login-sub { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.login-err {
  background: var(--danger-soft); color: var(--danger); font-size: 12.5px;
  padding: 9px 12px; border-radius: 9px; margin-bottom: 14px;
}
.login-foot { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 20px; }
.login-card .btn { height: 44px; font-size: 15px; letter-spacing: 4px; margin-top: 4px; }
/* ---------- 工作台 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.indigo { background: var(--primary-soft); color: var(--primary); }
.stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-icon.orange { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-num { font-size: 23px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat-sub { font-size: 11px; color: var(--primary); margin-top: 2px; font-weight: 600; }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-grid.wide { grid-template-columns: 1fr 1fr; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.quick-query {
  background: linear-gradient(120deg, #1e1b4b, #312e81 60%, #4338ca);
  border-radius: var(--radius); padding: 22px;
  color: #fff; position: relative; overflow: hidden;
  margin-bottom: 16px;
}
.quick-query::after {
  content:""; position:absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,.5), transparent 65%); border-radius: 50%;
}
.quick-query h2 { font-size: 18px; font-weight: 800; display:flex; align-items:center; gap:9px; }
.quick-query h2 svg { width: 22px; height: 22px; color:#a5b4fc; }
.quick-query p { color: rgba(226,232,240,.75); font-size: 12.5px; margin: 6px 0 16px; }
.q-query-input {
  display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 8px 10px;
  max-width: 560px; backdrop-filter: blur(6px);
}
.q-query-input svg { width: 18px; height: 18px; color: rgba(255,255,255,.7); flex-shrink:0; }
.q-query-input input { flex:1; background: transparent; border: none; outline: none; color: #fff; }
.q-query-input input::placeholder { color: rgba(255,255,255,.55); }
.q-query-input button {
  background: #fff; color: #4338ca; border: none; border-radius: 9px;
  padding: 7px 18px; font-weight: 700; font-size: 13px;
}
.q-query-input button:hover { filter: brightness(.96); }
.q-hints { display:flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.q-hints button {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85);
  border-radius: 20px; padding: 3px 12px; font-size: 12px;
}
.q-hints button:hover { background: rgba(255,255,255,.2); }

.query-result {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); margin-bottom: 16px; overflow: hidden;
  animation: slideUp .2s ease;
}
.qr-head { display:flex; align-items:center; gap: 12px; padding: 14px 18px; border-bottom:1px solid var(--border); }
.qr-head .avatar { width: 40px; height: 40px; font-size: 16px; }
.qr-head h3 { font-size: 16px; font-weight: 800; }
.qr-head .qr-meta { font-size: 12px; color: var(--muted); display:flex; gap: 14px; flex-wrap:wrap; margin-top: 2px; }
.qr-body { padding: 16px 18px 18px; }
.qr-close { margin-left:auto; }

.weather-widget { background: linear-gradient(135deg, #1e40af, #3b82f6 55%, #38bdf8); color:#fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.weather-widget::after { content:""; position:absolute; right:-40px; bottom:-50px; width:160px; height:160px; border-radius:50%; background: rgba(255,255,255,.14); }
.weather-city { display:flex; align-items:center; gap:7px; font-size: 13px; font-weight:700; }
.weather-city svg { width: 15px; height: 15px; }
.weather-now { display:flex; align-items:center; gap: 14px; margin: 10px 0 6px; }
.weather-now .temp { font-size: 42px; font-weight: 800; line-height: 1; }
.weather-now .w-emoji { font-size: 40px; line-height: 1; }
.weather-desc { font-size: 13px; opacity: .92; }
.weather-meta { display:flex; gap: 12px; font-size: 11.5px; opacity: .85; margin-top: 8px; flex-wrap: wrap; }
.weather-days { display:flex; gap: 6px; margin-top: 12px; }
.weather-day { flex:1; text-align:center; background: rgba(255,255,255,.14); border-radius: 10px; padding: 7px 2px; }
.weather-day .wd { font-size: 11px; opacity: .9; }
.weather-day .we { font-size: 16px; margin: 2px 0; }
.weather-day .wt { font-size: 11px; font-weight:700; }
.weather-foot { font-size: 10.5px; opacity:.7; margin-top: 10px; }

.act-item { display:flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.act-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.act-dot.create { background: var(--success); }
.act-dot.update { background: var(--info); }
.act-dot.delete { background: var(--danger); }
.act-dot.progress { background: var(--warning); }
.act-dot.other { background: var(--muted); }
.act-item .act-text { font-size: 12.5px; color: var(--text-2); flex:1; min-width:0; }
.act-item .act-text strong { color: var(--text); font-weight: 600; }
.act-item .act-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

.memo-quick { display:flex; gap: 10px; margin-bottom: 14px; }
.memo-quick input { flex:1; }

/* ---------- 备忘墙 ---------- */
.memo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.memo-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, box-shadow .15s; position: relative;
}
.memo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.memo-card.pinned { border-left: 4px solid var(--warning); background: linear-gradient(180deg, var(--warning-soft), transparent 60%), var(--card); }
.memo-card.done { opacity: .6; }
.memo-card .memo-text { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.memo-card .memo-text.done-text { text-decoration: line-through; color: var(--muted); }
.memo-foot { display:flex; align-items:center; gap: 6px; margin-top: auto; }
.memo-foot .who { font-size: 11.5px; color: var(--muted); display:flex; align-items:center; gap:6px; flex:1; min-width:0; }
.memo-foot .who .avatar { width: 20px; height: 20px; font-size: 10px; }

/* ---------- 提醒 ---------- */
.reminder-list { display: grid; gap: 12px; }
.reminder-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.reminder-card.overdue { border-left: 4px solid var(--danger); }
.reminder-card.today { border-left: 4px solid var(--warning); }
.reminder-card.done-item { opacity: .55; }
.reminder-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display:flex; align-items:center; justify-content:center; font-size: 17px;
}
.reminder-body { flex: 1; min-width: 0; }
.reminder-body h4 { font-size: 14px; font-weight: 700; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.reminder-body p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.reminder-body .rm-meta { display:flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 7px; flex-wrap: wrap; }
.reminder-actions { display:flex; gap: 4px; flex-shrink: 0; }

/* ---------- 客户卡片 / 详情 ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.client-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, box-shadow .15s, border .15s;
}
.client-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary-2); }
.client-card .cc-top { display:flex; align-items:center; gap: 12px; }
.client-card .cc-name { font-size: 15.5px; font-weight: 800; display:flex; align-items:center; gap:8px; }
.client-card .cc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; display:flex; gap: 12px; flex-wrap: wrap; }
.client-card .cc-body { margin-top: 12px; display:flex; flex-direction: column; gap: 7px; }
.client-card .cc-row { display:flex; justify-content:space-between; font-size: 12.5px; color: var(--text-2); }
.client-card .cc-row b { color: var(--text); font-weight: 600; }
.client-card .cc-foot { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border); display:flex; align-items:center; justify-content:space-between; font-size: 11.5px; color: var(--muted); }

.detail-hero { display:flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.detail-hero .avatar { width: 56px; height: 56px; font-size: 22px; }
.detail-hero h2 { font-size: 20px; font-weight: 800; }
.detail-hero .dh-meta { display:flex; gap: 16px; color: var(--muted); font-size: 12.5px; margin-top: 4px; flex-wrap: wrap; }
.detail-hero .dh-actions { margin-left: auto; display: flex; gap: 8px; }
.info-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.info-item { background: var(--card-2); border:1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.info-item .k { font-size: 11px; color: var(--muted); }
.info-item .v { font-size: 13.5px; font-weight: 600; margin-top: 2px; word-break: break-all; }

/* ---------- 工具 ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display:flex; flex-direction: column; }
.tool-card .tc-head { padding: 16px 18px; display:flex; gap: 13px; align-items:center; border-bottom: 1px solid var(--border); }
.tool-card .tc-icon { width: 42px; height: 42px; border-radius: 12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tool-card .tc-icon svg { width: 21px; height: 21px; }
.tool-card .tc-head h3 { font-size: 15px; font-weight: 800; }
.tool-card .tc-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tool-card .tc-body { padding: 16px 18px; flex:1; }
.tool-card .tc-foot { padding: 12px 18px; border-top: 1px dashed var(--border); }
.calc-row { display:flex; align-items:center; gap:10px; margin-bottom: 12px; flex-wrap: wrap; }
.calc-row .amount { flex:1; min-width: 150px; }
.rate-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.rate-cell { background: var(--card-2); border:1px solid var(--border); border-radius: 9px; padding: 7px 9px; text-align:center; }
.rate-cell .rc { font-size: 11px; color: var(--muted); font-weight:700; }
.rate-cell .rv { font-size: 13px; font-weight:700; }
.rate-cell .editable { cursor: pointer; }
.rate-cell .editable:hover { border-color: var(--primary); }

.checklist-group { margin-bottom: 16px; }
.checklist-group h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 8px; display:flex; align-items:center; gap:7px; color: var(--primary); }
.checklist-group h4 svg { width: 16px; height: 16px; }
.check-item { display:flex; gap: 9px; padding: 7px 0; font-size: 13px; color: var(--text-2); align-items:flex-start; }
.check-item input { margin-top: 3px; accent-color: var(--primary); }

/* ---------- 团队 / 设置 ---------- */
.member-row { display:flex; align-items:center; gap: 14px; }
.member-row .avatar { width: 40px; height: 40px; font-size: 16px; }
.member-row .mr-name { font-weight: 700; font-size: 14px; }
.member-row .mr-sub { font-size: 11.5px; color: var(--muted); }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-row .s-label { font-weight: 600; font-size: 13.5px; }
.setting-row .s-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .dash-grid, .dash-grid.wide { grid-template-columns: 1fr; }
  .quick-search { width: 200px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .quick-search { display: none; }
  .content { padding: 14px; }
  .login-wrap { gap: 30px; }
  .login-brand { display: none; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; align-items: stretch; }
  .q-query-input { flex-wrap: wrap; }
}
/* ---------- 顶栏一键查询下拉 ---------- */
#query-result-root { position: fixed; top: 58px; right: 260px; z-index: 120; display: none; }
.qs-drop {
  width: 340px; max-height: 420px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
}
.qs-group { font-size: 11px; color: var(--muted); font-weight: 700; padding: 8px 10px 4px; letter-spacing: 1px; }
.qs-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 9px; cursor: pointer; font-size: 13px;
}
.qs-item:hover { background: var(--primary-soft); }
.qs-item .avatar { width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
.qs-item svg { width: 15px; height: 15px; color: var(--muted); margin-left: auto; }
.qs-item small { display: block; color: var(--muted); font-size: 11.5px; }
.qs-item .qs-flag { font-size: 16px; }
.qs-empty { text-align: center; color: var(--muted); padding: 18px 10px; font-size: 13px; }
@media (max-width: 860px) {
  #query-result-root { right: 14px; left: 14px; }
  .qs-drop { width: 100%; }
}
/* ---------- 查询结果中的案件块 ---------- */
.case-block { padding: 2px 0; }
.cb-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cb-no { font-size: 15px; font-weight: 800; color: var(--primary); }
.cb-no:hover { text-decoration: underline; }
.cb-country { font-size: 12px; color: var(--muted); margin-left: 8px; }
.cb-actions { display:flex; gap: 8px; margin-top: 10px; }
.cb-actions a, .cb-actions button { font-size: 12px; }

/* ---------- 蓝色科技感增强 ---------- */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .2s, box-shadow .25s, transform .2s;
}
.card:hover {
  border-color: rgba(56, 189, 248, .35);
  box-shadow: var(--glow), var(--shadow);
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .6);
  transition: transform .18s, box-shadow .2s, filter .2s;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, .75);
}
.quick-query {
  background: linear-gradient(120deg, rgba(2, 20, 48, .92), rgba(6, 40, 92, .92) 60%, rgba(8, 66, 140, .92)) !important;
  border: 1px solid rgba(56, 189, 248, .3) !important;
  box-shadow: 0 16px 40px -18px rgba(2, 40, 96, .7), inset 0 1px 0 rgba(255,255,255,.08);
}
.stat-icon {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .12);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(56, 189, 248, .12)) !important;
  border-left: 3px solid #38bdf8;
  box-shadow: inset 0 0 18px -6px rgba(56, 189, 248, .35);
}
.logo-glow { filter: drop-shadow(0 0 8px rgba(56, 189, 248, .6)); }
.topbar { border-bottom: 1px solid var(--border); }

/* ---------- 个人日历 ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 14px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; cursor: pointer; font-size: 13px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .1s;
}
.cal-cell:hover { background: var(--primary-soft); border-color: rgba(56,189,248,.35); transform: scale(1.05); }
.cal-cell.blank { cursor: default; }
.cal-cell.today { background: linear-gradient(135deg, #2563eb, #38bdf8); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(37,99,235,.55); }
.cal-cell.today:hover { transform: scale(1.06); }
.cal-dot { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #2563eb; }
.cal-dot.remind { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.7); }
.cal-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.cal-foot .cal-dot { position: static; transform: none; margin-right: 2px; }
