:root {
  --primary: #4f6ef7;
  --primary-soft: #eef1fe;
  --primary-dark: #3a55d9;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2430;
  --text-soft: #6b7280;
  --border: #e8ebf2;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
  --shadow-sm: 0 2px 10px rgba(31, 36, 48, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; transition: .2s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.ghost { background: var(--primary-soft); color: var(--primary); }
.btn.ghost:hover { background: #e0e6fd; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #dc2626; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--primary-soft); color: var(--primary); }
.tag.gray { background: #f1f3f7; color: var(--text-soft); }
.tag.green { background: #e7f8ee; color: var(--success); }
.tag.red { background: #fdeaea; color: var(--danger); }
.tag.orange { background: #fef3e2; color: var(--warning); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7b94ff); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.scroll { overflow-y: auto; scrollbar-width: thin; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: #d4d9e4; border-radius: 3px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.muted { color: var(--text-soft); }
.title { font-size: 18px; font-weight: 600; }
.sub { font-size: 13px; color: var(--text-soft); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-soft); gap: 10px; }
.spin { width: 36px; height: 36px; border: 3px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: #1f2430; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; z-index: 9999; box-shadow: var(--shadow); animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translate(-50%, -10px); } }
