/* 企业协同工作台 · 全站设计令牌 */
:root {
  --blue: #1f5ae0;
  --blue-600: #1a4fc9;
  --blue-50: #eef3ff;
  --blue-100: #dfe8ff;
  --ink: #0e1a2f;
  --ink-2: #26324a;
  --text: #1b2437;
  --muted: #6b7891;
  --muted-2: #95a0b6;
  --line: #e4e9f3;
  --line-strong: #d3dae8;
  --bg: #f4f6fb;
  --card: #ffffff;
  --red: #d93025;
  --red-bg: #fdecea;
  --orange: #d97706;
  --orange-bg: #fff4e3;
  --green: #0e9f6e;
  --green-bg: #e8f8f1;
  --cyan: #0e8fa3;
  --cyan-bg: #e6f7fa;
  --purple: #6e56cf;
  --purple-bg: #f1edff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .16);
  --shadow-lg: 0 24px 64px -24px rgba(14, 26, 47, .35);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d2e3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b3bfd4; }
::-webkit-scrollbar-track { background: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 500;
  transition: .16s ease; white-space: nowrap;
}
.btn:hover { border-color: #b9c6dd; background: #fbfcff; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #f1f4fa; color: var(--ink-2); }
.btn.danger { color: var(--red); border-color: #f3c6c1; background: #fff; }
.btn.danger:hover { background: var(--red-bg); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 11.5px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500; line-height: 1;
  background: #f1f4fa; color: var(--muted);
  white-space: nowrap;
}
.chip.blue { background: var(--blue-50); color: var(--blue); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.cyan { background: var(--cyan-bg); color: var(--cyan); }
.chip.purple { background: var(--purple-bg); color: var(--purple); }
.chip.line { background: #fff; border: 1px solid var(--line); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title h3 { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.section-title .sub { font-size: 11.5px; color: var(--muted-2); font-weight: 400; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; color: var(--muted); }
.field label b { color: var(--red); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  outline: none; transition: .16s;
}
.textarea { height: auto; min-height: 64px; padding: 8px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.input::placeholder, .textarea::placeholder { color: #a9b4c8; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 500; color: var(--muted-2);
  padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfe;
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid #f0f3f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }

.progress { height: 6px; border-radius: 6px; background: #edf1f8; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: var(--blue); transition: width .3s; }
.progress > i.warn { background: var(--orange); }
.progress > i.bad { background: var(--red); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a66e8, #7b9dff); color: #fff;
  font-size: 11.5px; font-weight: 600; flex: 0 0 auto;
}
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.lg { width: 38px; height: 38px; font-size: 14px; }

.empty { padding: 36px 0; text-align: center; color: var(--muted-2); font-size: 12px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(14, 26, 47, .44);
  backdrop-filter: blur(2px); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .16s ease;
}
.modal {
  width: 520px; max-width: 100%; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: pop .18s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px 22px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 18px; }
.icon-btn {
  border: 0; background: transparent; color: var(--muted);
  width: 28px; height: 28px; border-radius: 6px; display: inline-flex;
  align-items: center; justify-content: center;
}
.icon-btn:hover { background: #f1f4fa; color: var(--ink); }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 9px;
  font-size: 12.5px; box-shadow: var(--shadow-lg); animation: drop .2s ease;
}
.toast.ok { background: #0c7a55; }
.toast.err { background: #b3261e; }

.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: .6; } }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
@keyframes rot { to { transform: rotate(360deg); } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
