/* =========================================================
 * 观造 OA 管理平台 · 全局样式
 * ========================================================= */
:root {
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6ebf3;
  --line-soft: #f1f5f9;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #10b981;
  --ok-bg: #ecfdf5;
  --warn: #f59e0b;
  --warn-bg: #fff7ed;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #0ea5e9;
  --info-bg: #f0f9ff;
  --violet: #8b5cf6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px -6px rgba(15, 23, 42, .08);
  --shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 14px 34px -18px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 70px -28px rgba(15, 23, 42, .45);
  --sidebar-w: 238px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

::selection { background: rgba(37, 99, 235, .18); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd8e6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b6c3d8; }
::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
 * 登录页
 * ========================================================= */
.login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  background: #fff;
}
.login-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 8% 8%, rgba(37, 99, 235, .42), transparent 60%),
    radial-gradient(700px 520px at 92% 92%, rgba(20, 184, 166, .28), transparent 60%),
    linear-gradient(145deg, #070e1c 0%, #0c1a33 55%, #0b2436 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 64px 72px;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 78%);
}
.login-brand::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -260px;
  bottom: -300px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, .18);
  box-shadow: 0 0 0 30px rgba(120, 190, 255, .04), 0 0 0 90px rgba(120, 190, 255, .025);
}
.login-brand-inner { position: relative; z-index: 2; max-width: 480px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(90, 162, 255, .2), rgba(56, 225, 198, .14));
  border: 1px solid rgba(140, 200, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark-lg {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  margin-bottom: 30px;
}
.brand-mark-lg svg { width: 46px; height: 46px; }

.login-brand h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.25;
}
.login-brand-sub {
  margin-top: 12px;
  color: rgba(214, 232, 255, .72);
  font-size: 15px;
  letter-spacing: .6px;
}
.login-points {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(226, 238, 255, .82);
}
.login-points .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ee0c4;
  box-shadow: 0 0 0 4px rgba(78, 224, 196, .12);
}
.login-brand-footer {
  position: absolute;
  left: 72px;
  bottom: 40px;
  font-size: 12.5px;
  color: rgba(174, 199, 230, .48);
}
.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.login-glow-a { width: 340px; height: 340px; background: rgba(37, 99, 235, .5); top: -120px; left: -80px; }
.login-glow-b { width: 260px; height: 260px; background: rgba(20, 184, 166, .38); bottom: -60px; right: 80px; }

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(37, 99, 235, .07), transparent 70%),
    #fff;
}
.login-form { width: 100%; max-width: 384px; }
.login-form-head { margin-bottom: 32px; }
.login-form-head h2 { font-size: 27px; color: var(--ink); font-weight: 700; letter-spacing: .5px; }
.login-form-head p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.login-form .field { margin-bottom: 18px; }
.login-form .input-with-icon { position: relative; }
.input-with-icon > .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  width: 17px;
  height: 17px;
}
.input-with-icon input {
  width: 100%;
  height: 46px;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  padding: 0 14px 0 40px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-with-icon input:focus {
  border-color: #7ba6ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
  font-size: 13px;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--brand); width: 15px; height: 15px; }
.link { color: var(--brand); font-weight: 500; }
.link:hover { text-decoration: underline; }
.login-form .btn-block + .btn-block { margin-top: 12px; }
.login-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
}
.login-hint b { color: var(--muted); font-weight: 600; }

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

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  color: #c7d5ea;
  background:
    radial-gradient(420px 300px at 0% 0%, rgba(37, 99, 235, .2), transparent 70%),
    linear-gradient(178deg, #0a1220 0%, #0d1930 60%, #0b1729 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px;
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-brand-text strong {
  font-size: 19px;
  letter-spacing: 4px;
  color: #fff;
  font-weight: 700;
}
.sidebar-brand-text span { font-size: 10.5px; letter-spacing: 1.6px; color: rgba(155, 183, 221, .65); margin-top: 2px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 18px;
}
.nav-label {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: rgba(148, 173, 205, .5);
  padding: 16px 12px 8px;
  text-transform: uppercase;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: rgba(203, 218, 238, .76);
  margin-bottom: 3px;
  transition: background .18s, color .18s;
}
.nav-item .icon { width: 17px; height: 17px; opacity: .82; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(37, 99, 235, .34), rgba(37, 99, 235, .1));
  box-shadow: inset 0 0 0 1px rgba(96, 152, 255, .18);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#59a3ff, #33e0c5);
}
.nav-item.active .icon { opacity: 1; color: #82b7ff; }
.nav-count {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: rgba(180, 199, 224, .55);
  background: rgba(255, 255, 255, .055);
  padding: 1px 7px;
  border-radius: 20px;
}
.nav-item.active .nav-count { background: rgba(88, 147, 255, .18); color: #a9c9ff; }

.sidebar-foot { padding: 14px 16px 18px; }
.sidebar-card {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-card-title { font-size: 11.5px; color: rgba(180, 199, 224, .7); }
.sidebar-card-value { font-size: 22px; font-weight: 700; color: #fff; margin: 2px 0 8px; letter-spacing: .5px; }
.mini-bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mini-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #4f8dff, #3ee0c4);
  transition: width .6s ease;
}
.sidebar-card p { font-size: 10.5px; color: rgba(160, 185, 216, .5); margin-top: 8px; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.crumb-root { color: var(--faint); }
.crumb-sep { width: 13px; height: 13px; color: #c2cddb; }
#crumbCurrent { color: var(--ink); font-weight: 600; }

.topbar-search {
  position: relative;
  flex: 1;
  max-width: 380px;
  margin-left: auto;
}
.topbar-search input {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  padding: 0 54px 0 36px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: all .18s;
}
.topbar-search input:focus {
  background: #fff;
  border-color: #a9c2f5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.topbar-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--faint);
}
.topbar-search kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font);
  font-size: 10px;
  color: #a6b3c5;
  border: 1px solid #e3e9f2;
  background: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}
.search-results {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 60;
}
.search-result-head {
  font-size: 10.5px;
  letter-spacing: .6px;
  color: var(--faint);
  padding: 8px 10px 4px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.search-result:hover { background: var(--brand-50); }
.search-result-main { flex: 1; min-width: 0; }
.search-result-main strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.search-result-main span { font-size: 11.5px; color: var(--muted); }
.search-result .icon { width: 15px; height: 15px; color: var(--faint); }
.search-empty { padding: 22px 12px; text-align: center; color: var(--faint); font-size: 12.5px; }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #586a82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .16s;
  position: relative;
}
.icon-btn:hover { background: #f1f5fb; color: var(--ink); }
.badge-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  border: 1.5px solid #fff;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 5px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background .16s;
  margin-left: 4px;
}
.topbar-user:hover { background: #f4f7fc; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #e0edff;
  color: #1d4ed8;
  flex: none;
  overflow: hidden;
}
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.avatar-lg { width: 44px; height: 44px; font-size: 17px; }
.topbar-user-info { display: flex; flex-direction: column; line-height: 1.3; }
.topbar-user-info strong { font-size: 12.8px; color: var(--ink); font-weight: 600; }
.topbar-user-info span { font-size: 10.5px; color: var(--faint); }
.chev { width: 14px; height: 14px; color: var(--faint); }

.dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 196px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 70;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.8px;
  color: var(--text);
  text-align: left;
}
.dropdown-item .icon { width: 15px; height: 15px; color: var(--muted); }
.dropdown-item:hover { background: var(--brand-50); color: var(--brand-600); }
.dropdown-item.danger { color: #dc2626; }
.dropdown-item.danger .icon { color: #dc2626; }
.dropdown-item.danger:hover { background: #fef2f2; }

#bellDropdown {
  position: fixed;
  top: 58px;
  right: 88px;
  width: 356px;
  max-height: 480px;
  overflow-y: auto;
  padding: 0;
}
.dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  z-index: 2;
}
.dropdown-head strong { font-size: 13px; color: var(--ink); }
.dropdown-head span { font-size: 11.5px; color: var(--faint); }
.bell-list { padding: 6px; }
.bell-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
}
.bell-item:hover { background: #f7f9fd; }
.bell-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 7px;
  flex: none;
}
.bell-dot.danger { background: var(--danger); }
.bell-dot.warn { background: var(--warn); }
.bell-dot.info { background: var(--info); }
.bell-item strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.bell-item span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.5; }

.view {
  flex: 1;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 26px 30px 34px;
  animation: viewIn .32s ease both;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px 18px;
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid transparent;
}
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.footer-right { margin-left: auto; }

/* =========================================================
 * 通用组件
 * ========================================================= */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title .title-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0;
}
.page-sub {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  transition: all .17s ease;
}
.btn .icon { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(135deg, #3b7cff 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .85);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(37, 99, 235, .9); filter: brightness(1.03); }
.btn-primary:active { transform: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #cbd8ea; background: #fafcff; color: var(--ink); }
.btn-soft { background: var(--brand-50); color: var(--brand-600); border-color: #dbeafe; }
.btn-soft:hover { background: #e6efff; }
.btn-danger { background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; }
.btn-danger:hover { filter: brightness(1.04); }
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 14.5px; border-radius: 11px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.3px; border-radius: 8px; }
.btn-sm .icon { width: 13px; height: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 14.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.card-title .icon { width: 16px; height: 16px; color: var(--brand); }
.card-sub { font-size: 11.5px; color: var(--faint); font-weight: 400; margin-left: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-body.flush { padding: 0; }
.card-link { font-size: 12.5px; color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }
.card-link:hover { color: var(--brand-600); }
.card-link .icon { width: 13px; height: 13px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.toolbar .grow { flex: 1; }
.search-field { position: relative; min-width: 220px; }
.search-field .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.search-field input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px 0 34px;
  font-size: 12.8px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: all .17s;
}
.search-field input:focus { border-color: #a9c2f5; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .07); }
.select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 30px 0 12px;
  font-size: 12.8px;
  color: var(--text);
  background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all .17s;
}
.select:focus { border-color: #a9c2f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .07); }
.select.mini { height: 32px; font-size: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}
.tag-ok { color: #047857; background: #ecfdf5; border-color: #d1fae5; }
.tag-warn { color: #b45309; background: #fffbeb; border-color: #fef3c7; }
.tag-danger { color: #b91c1c; background: #fef2f2; border-color: #fee2e2; }
.tag-info { color: #0369a1; background: #f0f9ff; border-color: #e0f2fe; }
.tag-muted { color: #64748b; background: #f8fafc; border-color: #eef2f7; }
.tag-plain { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.tag-plain::before { display: none; }

.progress {
  height: 6px;
  border-radius: 6px;
  background: #eef2f7;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #4f8dff, #38bdf8);
  transition: width .5s ease;
}
.progress-ok i { background: linear-gradient(90deg, #34d399, #10b981); }
.progress-warn i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress-danger i { background: linear-gradient(90deg, #fb7185, #ef4444); }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  letter-spacing: .3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr:hover { background: #f8fbff; }
.data-table .num { font-variant-numeric: tabular-nums; }
.data-table .strong { color: var(--ink); font-weight: 600; }
.data-table .sub { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.data-table .nowrap { white-space: nowrap; }
.data-table .right { text-align: right; }
.data-table .center { text-align: center; }

.row-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.row-act {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #8796ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.row-act .icon { width: 15px; height: 15px; }
.row-act:hover { background: var(--brand-50); color: var(--brand); }
.row-act.danger:hover { background: #fef2f2; color: var(--danger); }

.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .avatar { width: 34px; height: 34px; font-size: 13px; }
.person-main { min-width: 0; }
.person-main strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.person-main span { display: block; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.pager-btns { display: flex; gap: 6px; }
.pager-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager-btn:hover:not([disabled]) { border-color: #c7d6ea; color: var(--brand); }
.pager-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-btn[disabled] { opacity: .4; pointer-events: none; }

.empty {
  padding: 54px 24px;
  text-align: center;
}
.empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #f4f7fc;
  color: #b3c1d4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.empty-icon .icon { width: 24px; height: 24px; }
.empty h4 { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.empty p { font-size: 12.3px; color: var(--faint); margin-top: 5px; }
.empty .btn { margin-top: 16px; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 12.3px; font-weight: 500; color: #475569; display: flex; align-items: center; gap: 4px; }
.field-label .req { color: #ef4444; font-size: 13px; line-height: 1; }
.field-hint { font-size: 11.3px; color: var(--faint); }
.input {
  width: 100%;
  height: 39px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-size: 13.3px;
  color: var(--ink);
  outline: none;
  transition: border-color .17s, box-shadow .17s;
}
.input:hover { border-color: #cbd7e7; }
.input:focus { border-color: #8fb4ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.input::placeholder { color: #aab8ca; }
textarea.input { height: auto; min-height: 86px; padding: 9px 12px; resize: vertical; line-height: 1.6; }
select.input { padding-right: 30px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-section .icon { width: 14px; height: 14px; color: var(--brand); }
.form-error {
  display: none;
  font-size: 11.5px;
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 7px;
  padding: 7px 10px;
  margin-bottom: 12px;
}
.form-error.show { display: block; }

.file-drop {
  border: 1.5px dashed #d6e1f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #fbfdff;
  cursor: pointer;
  transition: all .18s;
}
.file-drop:hover { border-color: #9cbcff; background: #f5f9ff; }
.file-drop .icon { width: 22px; height: 22px; color: #93b4ef; }
.file-drop strong { display: block; font-size: 12.5px; color: var(--text); margin-top: 6px; font-weight: 500; }
.file-drop span { font-size: 11.3px; color: var(--faint); }
.file-name { font-size: 12px; color: var(--brand); margin-top: 8px; word-break: break-all; }

/* 弹窗 */
.modal-root { position: relative; z-index: 120; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  z-index: 120;
  animation: maskIn .18s ease both;
}
.modal-mask.closing { animation: maskOut .16s ease both; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes maskOut { from { opacity: 1; } to { opacity: 0; } }

.modal {
  width: 560px;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.2, .9, .3, 1.1) both;
  overflow: hidden;
}
.modal-lg { width: 760px; }
.modal-sm { width: 420px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.modal-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.modal-close { width: 32px; height: 32px; margin: -4px -6px 0 0; }
.modal-close .icon { width: 17px; height: 17px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line-soft);
  background: #fcfdff;
}
.modal-foot .btn { min-width: 84px; }

.confirm-body { display: flex; gap: 14px; align-items: flex-start; }
.confirm-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.confirm-icon.danger { background: #fef2f2; color: var(--danger); }
.confirm-icon .icon { width: 20px; height: 20px; }
.confirm-text { font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.confirm-detail { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

/* Toast */
.toast-root {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -18px rgba(15, 23, 42, .35);
  font-size: 12.8px;
  color: var(--text);
  opacity: 0;
  transform: translateY(-8px);
  transition: all .22s ease;
  pointer-events: auto;
  cursor: pointer;
}
.toast.show { opacity: 1; transform: none; }
.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.toast-icon .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.toast-success .toast-icon { background: #ecfdf5; color: #059669; }
.toast-error .toast-icon { background: #fef2f2; color: #dc2626; }
.toast-info .toast-icon { background: #eff6ff; color: #2563eb; }

/* 详情描述列表 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.detail-item { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.detail-item.full { grid-column: 1 / -1; }
.detail-item dt { font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.detail-item dd { font-size: 13px; color: var(--ink); margin: 0; font-weight: 500; line-height: 1.6; }
.detail-item dd.subtle { font-weight: 400; color: var(--text); }
.detail-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 11px;
  background: linear-gradient(120deg, #f4f9ff, #fbfdff);
  border: 1px solid #e8f0fb;
  margin-bottom: 16px;
}
.detail-highlight .avatar { width: 46px; height: 46px; font-size: 18px; }
.detail-highlight h4 { font-size: 16px; color: var(--ink); font-weight: 600; }
.detail-highlight p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.detail-highlight .tag { margin-left: auto; }

/* =========================================================
 * 工作台
 * ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 20px;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(56, 189, 248, .18), transparent 62%),
    linear-gradient(118deg, #0d1b34 0%, #142b52 58%, #123c52 100%);
  color: #fff;
  box-shadow: 0 24px 50px -30px rgba(13, 27, 52, .7);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -150px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, .16);
  box-shadow: 0 0 0 34px rgba(120, 200, 255, .035), 0 0 0 82px rgba(120, 200, 255, .022);
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.hero-eyebrow { font-size: 11.5px; letter-spacing: 1.4px; color: rgba(150, 195, 246, .8); display: flex; align-items: center; gap: 7px; }
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: #3ee0c4; box-shadow: 0 0 0 4px rgba(62, 224, 196, .13); }
.hero h2 { font-size: 24px; font-weight: 700; margin-top: 9px; letter-spacing: .4px; }
.hero p { font-size: 12.8px; color: rgba(206, 226, 250, .7); margin-top: 6px; max-width: 560px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); color: #eaf3ff; backdrop-filter: blur(4px); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn-primary { background: linear-gradient(135deg, #4a8cff, #2f6bff); box-shadow: 0 10px 24px -12px rgba(74, 140, 255, .9); }
.hero-side {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-chip {
  min-width: 108px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}
.hero-chip span { display: block; font-size: 10.5px; color: rgba(185, 210, 240, .7); }
.hero-chip strong { display: block; font-size: 20px; font-weight: 700; color: #fff; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero-chip strong em { font-style: normal; font-size: 11px; font-weight: 500; color: rgba(190, 215, 245, .7); margin-left: 2px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stat-ico .icon { width: 20px; height: 20px; }
.stat-ico.blue { background: #eff6ff; color: #2563eb; }
.stat-ico.green { background: #ecfdf5; color: #059669; }
.stat-ico.amber { background: #fffbeb; color: #d97706; }
.stat-ico.violet { background: #f5f3ff; color: #7c3aed; }
.stat-main { min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.stat-value small { font-size: 11.5px; font-weight: 500; color: var(--faint); margin-left: 3px; letter-spacing: 0; }
.stat-foot { font-size: 11px; color: var(--faint); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.stat-foot .up { color: #059669; font-weight: 600; }
.stat-foot .down { color: #dc2626; font-weight: 600; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.project-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: #f9fbff; }
.project-type {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.project-type.t-标注 { background: #eff6ff; color: #2563eb; }
.project-type.t-采集 { background: #ecfdf5; color: #059669; }
.project-type.t-测绘 { background: #fff7ed; color: #c2410c; }
.project-type.t-综合 { background: #f5f3ff; color: #7c3aed; }
.project-main { flex: 1; min-width: 0; }
.project-main h4 { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.project-main h4 .tag { height: 19px; font-size: 10.5px; padding: 0 6px; }
.project-main p { font-size: 11.5px; color: var(--faint); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-main p .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.project-progress { width: 150px; flex: none; }
.project-progress .bar-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.project-progress .bar-row b { color: var(--ink); font-weight: 600; }

.alert-list { padding: 6px 10px 10px; }
.alert-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}
.alert-item:hover { background: #f8fafd; }
.alert-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.alert-ico .icon { width: 15px; height: 15px; }
.alert-ico.danger { background: #fef2f2; color: #dc2626; }
.alert-ico.warn { background: #fffbeb; color: #d97706; }
.alert-ico.info { background: #eff6ff; color: #2563eb; }
.alert-main { min-width: 0; }
.alert-main strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.alert-main p { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #fbfcfe;
  transition: all .17s;
  text-align: left;
}
.quick-item:hover { border-color: #cfe0fb; background: #f5f9ff; transform: translateY(-1px); }
.quick-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.quick-ico .icon { width: 16px; height: 16px; }
.quick-item strong { display: block; font-size: 12.3px; color: var(--ink); font-weight: 600; }
.quick-item span { display: block; font-size: 10.8px; color: var(--faint); }

.mini-report-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.mini-report-row:last-child { border-bottom: none; }
.mini-report-row .person-main strong { font-size: 12.5px; }
.mini-report-row .mini-text { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-report-row time { font-size: 11px; color: var(--faint); white-space: nowrap; }

.donut-row { display: flex; align-items: center; gap: 20px; padding: 4px 20px 18px; }
.donut {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}
.donut-label { position: relative; z-index: 2; text-align: center; }
.donut-label strong { display: block; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.donut-label span { font-size: 10.5px; color: var(--faint); }
.legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.legend-item i { width: 8px; height: 8px; border-radius: 3px; }
.legend-item b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* =========================================================
 * 人事档案
 * ========================================================= */
.hr-summary { display: flex; gap: 26px; padding: 4px 0 2px; flex-wrap: wrap; }
.hr-summary-item { display: flex; flex-direction: column; gap: 2px; }
.hr-summary-item span { font-size: 11.5px; color: var(--faint); }
.hr-summary-item strong { font-size: 18px; color: var(--ink); font-weight: 700; }
.hr-summary-item strong small { font-size: 11px; color: var(--faint); font-weight: 500; }

.dept-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  background: #f4f7fc;
  color: #55657d;
  border: 1px solid #e8eef7;
}

.row-sub { display: block; font-size: 11.3px; color: var(--faint); margin-top: 1px; }

/* =========================================================
 * 项目资料
 * ========================================================= */
.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3e1f5; }
.project-card-head { display: flex; align-items: flex-start; gap: 12px; }
.project-card-head .project-type { width: 42px; height: 42px; font-size: 12.5px; }
.project-card-title { flex: 1; min-width: 0; }
.project-card-title h3 { font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.45; }
.project-card-title p { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.project-card-body { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.project-meta-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.project-meta-row .icon { width: 13px; height: 13px; color: var(--faint); }
.project-meta-row b { color: var(--text); font-weight: 500; }
.project-progress-lg { margin-top: 2px; }
.project-progress-lg .bar-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 11.5px; color: var(--muted); }
.project-progress-lg .bar-row b { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.project-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
  color: var(--faint);
}
.project-card-foot .member-stack { display: flex; align-items: center; }
.member-stack .avatar {
  width: 25px;
  height: 25px;
  font-size: 10.5px;
  border: 2px solid #fff;
  margin-left: -7px;
}
.member-stack .avatar:first-child { margin-left: 0; }
.member-more { font-size: 10.5px; color: var(--faint); margin-left: 7px; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fcfdff;
}
.file-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.file-ico.xlsx { background: #ecfdf5; color: #059669; }
.file-ico.docx { background: #eff6ff; color: #2563eb; }
.file-ico.pdf { background: #fef2f2; color: #dc2626; }
.file-main { flex: 1; min-width: 0; }
.file-main strong { display: block; font-size: 12.3px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-main span { font-size: 10.8px; color: var(--faint); }
.file-item .row-act { flex: none; }

/* =========================================================
 * 日报
 * ========================================================= */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: #eef2f8;
  border-radius: 9px;
  gap: 2px;
}
.segmented button {
  height: 30px;
  padding: 0 13px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 12.3px;
  color: #5b6b80;
  transition: all .16s;
  white-space: nowrap;
}
.segmented button.active { background: #fff; color: var(--brand-600); font-weight: 600; box-shadow: 0 1px 4px rgba(15, 23, 42, .1); }

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.report-summary-cell { background: #fff; padding: 16px 20px; }
.report-summary-cell span { font-size: 11.5px; color: var(--faint); }
.report-summary-cell strong { display: block; font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.report-summary-cell strong small { font-size: 11px; font-weight: 500; color: var(--faint); margin-left: 3px; }
.report-summary-cell em { font-style: normal; font-size: 10.8px; color: var(--faint); }

.report-content { max-width: 430px; color: var(--text); line-height: 1.55; }
.report-content p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-content .report-tags { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.report-attach { display: inline-flex; align-items: center; gap: 4px; font-size: 11.3px; color: var(--brand); }
.report-attach .icon { width: 12px; height: 12px; }

.workload { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.workload small { font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 2px; }

.report-chart { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.chart-row { display: flex; align-items: center; gap: 12px; }
.chart-label { width: 150px; flex: none; font-size: 11.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-track { flex: 1; height: 22px; border-radius: 6px; background: #f4f7fb; overflow: hidden; position: relative; }
.chart-track i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #5b93ff, #3b82f6);
  transition: width .5s ease;
}
.chart-track i.c1 { background: linear-gradient(90deg, #5b93ff, #3b82f6); }
.chart-track i.c2 { background: linear-gradient(90deg, #34d399, #10b981); }
.chart-track i.c3 { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.chart-track i.c4 { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.chart-value { width: 76px; text-align: right; font-size: 11.8px; color: var(--text); font-variant-numeric: tabular-nums; flex: none; }

/* =========================================================
 * 宿舍管理
 * ========================================================= */
.dorm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dorm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.dorm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dorm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dorm-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dorm-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #f0f9ff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dorm-ico .icon { width: 20px; height: 20px; }
.dorm-title h3 { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.dorm-title p { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.dorm-occupancy { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.dorm-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
}
.dorm-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.dorm-ring-label { position: relative; z-index: 2; text-align: center; }
.dorm-ring-label strong { display: block; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.dorm-ring-label span { font-size: 9.5px; color: var(--faint); }
.dorm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dorm-info-row { display: flex; align-items: center; gap: 6px; font-size: 11.8px; color: var(--muted); min-width: 0; }
.dorm-info-row .icon { width: 13px; height: 13px; color: var(--faint); flex: none; }
.dorm-info-row b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dorm-members { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.dorm-members-label { display: flex; align-items: center; justify-content: space-between; font-size: 11.3px; color: var(--faint); margin-bottom: 7px; }
.dorm-members-label a { color: var(--brand); font-size: 11.3px; }
.member-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f6f9fd;
  border: 1px solid #edf2f8;
  font-size: 11.3px;
  color: #52627a;
}
.member-chip.leader { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; font-weight: 500; }
.member-chip .leader-star { font-size: 9px; }
.dorm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--faint);
}
.dorm-addr { display: flex; align-items: center; gap: 5px; font-size: 11.3px; color: var(--faint); margin-top: 10px; }
.dorm-addr .icon { width: 12px; height: 12px; flex: none; }
.dorm-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dorm-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  font-size: 11.8px;
  margin-top: 12px;
}
.dorm-hint .icon { width: 14px; height: 14px; flex: none; }

/* =========================================================
 * 系统设置
 * ========================================================= */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); }
.settings-row:last-child { border-bottom: none; }
.settings-row-main h4 { font-size: 13px; font-weight: 600; color: var(--ink); }
.settings-row-main p { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.switch { width: 38px; height: 22px; border-radius: 22px; background: #dbe3ee; position: relative; cursor: pointer; flex: none; transition: background .2s; border: none; }
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
  transition: transform .2s;
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(16px); }

.about-card {
  background: linear-gradient(140deg, #0d1b34, #14304f);
  border-radius: 14px;
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, .16);
  box-shadow: 0 0 0 24px rgba(120, 200, 255, .035);
}
.about-card h3 { font-size: 16px; font-weight: 700; }
.about-card p { font-size: 11.5px; color: rgba(200, 220, 245, .65); margin-top: 5px; }
.about-meta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.about-meta div { display: flex; justify-content: space-between; font-size: 12px; color: rgba(205, 224, 248, .7); }
.about-meta div b { color: #fff; font-weight: 500; }

/* 项目成员多选 */
.member-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-height: 192px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
}
.member-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12.3px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s;
}
.member-check:hover { background: #f1f7ff; }
.member-check input { accent-color: var(--brand); width: 14px; height: 14px; flex: none; }
.member-check span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.member-check em { font-style: normal; font-size: 10.3px; color: var(--faint); }

.report-attach { cursor: pointer; }
.project-card, .dorm-card { cursor: pointer; }

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97) both; }

/* 响应式 */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .project-cards, .dorm-grid { grid-template-columns: 1fr; }
  .topbar-search { max-width: 280px; }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 216px; }
  .view { padding: 22px; }
  .login-brand { padding: 48px; }
  .login-brand-footer { left: 48px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .26s ease; width: 248px; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px -20px rgba(15, 23, 42, .5); }
  .main { margin-left: 0; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 35;
  }
  .sidebar-backdrop.show { display: block; }
  .only-mobile { display: inline-flex !important; }
  .topbar { padding: 0 18px; gap: 12px; }
  .topbar-crumb .crumb-root, .topbar-crumb .crumb-sep { display: none; }
  .topbar-search { max-width: none; flex: 1; }
  .topbar-search kbd { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-wrap { padding: 24px; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .view { padding: 18px 14px 24px; }
  .topbar { height: 58px; padding: 0 12px; }
  .topbar-user-info { display: none; }
  .topbar-user { padding: 4px; }
  .topbar-user .chev { display: none; }
  .topbar-actions { gap: 2px; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-head { gap: 12px; }
  .page-title { font-size: 19px; }
  .page-sub { font-size: 12.3px; }
  .hero { padding: 20px; }
  .hero h2 { font-size: 20px; }
  .hero-side { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .toolbar { padding: 12px 14px; }
  .search-field { flex: 1; min-width: 140px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .project-progress { width: 100px; }
  .modal { max-height: 92vh; }
  .modal-head, .modal-body { padding-left: 16px; padding-right: 16px; }
  .modal-foot { padding: 12px 16px 16px; }
  .login-brand-footer { display: none; }
  .footer { padding: 12px 16px; }
  .footer span:nth-child(3), .dot-sep { display: none; }
}

@media (min-width: 901px) {
  .only-mobile { display: none !important; }
}

/* 打印 */
@media print {
  .sidebar, .topbar, .footer, .page-actions, .toolbar, .row-actions { display: none !important; }
  .main { margin-left: 0; }
  .view { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

@media (max-width: 720px) {
  #bellDropdown { left: 10px; right: 10px; width: auto; top: 58px; }
  .member-check-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar-crumb { display: none; }
  .topbar-search { max-width: none; }
  .search-results { position: fixed; top: 64px; left: 12px; right: 12px; }
}
