/* 班级/部门管理系统 自定义样式 */

:root {
  --sidebar-w: 220px;
  --brand: #2563eb;
}

body {
  background: #f1f5f9;
  font-size: .925rem;
}

/* ---------- 布局 ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--sidebar-w);
  background: #0f172a;
  color: #cbd5e1;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}
.app-main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar {
  background: #fff;
  padding: .6rem 1.25rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.app-content { padding: 1.25rem; flex: 1; }
.app-footer { background: #fff; border-top: 1px solid #e2e8f0; }

.sidebar-brand {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #fff;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-nav { padding: .75rem 0; flex: 1; overflow-y: auto; }
.nav-header {
  padding: .6rem 1.25rem .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}
.sidebar-nav .nav-link {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  border-left: 3px solid transparent;
}
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link.active {
  background: rgba(37,99,235,.18);
  color: #fff;
  border-left-color: #3b82f6;
}

/* ---------- 组件 ---------- */
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.quick-card { transition: transform .12s ease, box-shadow .12s ease; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important; }
.person-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important; }

.post-content { line-height: 1.8; white-space: pre-wrap; }

.audit-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }

/* 登录页 */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  padding: 1rem;
}
.login-wrap { width: 100%; max-width: 420px; }
.login-card { border-radius: 1rem; }
.login-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

/* 移动端 */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
}
