* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: #f0f2f5; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 60%, #90cdf4 100%); }
.login-box { width: 420px; background: #fff; border-radius: 12px; padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-title { font-size: 24px; font-weight: 700; color: #2b6cb0; text-align: center; margin-bottom: 8px; }
.login-sub { text-align: center; color: #718096; font-size: 13px; margin-bottom: 28px; }
.login-tips { margin-top: 20px; background: #f7fafc; border-radius: 8px; padding: 12px 16px; font-size: 12px; color: #4a5568; line-height: 1.9; }

/* 主布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #1a2a45; color: #fff; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar .logo { padding: 18px 20px; font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.sidebar .logo .icon { font-size: 22px; color: #63b3ed; }
.sidebar .menu { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar .menu::-webkit-scrollbar { width: 4px; }
.sidebar .menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.sidebar .menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 22px; cursor: pointer;
  color: #b8c4d6; font-size: 14px; transition: all .2s; }
.sidebar .menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .menu-item.active { color: #fff; background: #2b6cb0; border-right: 3px solid #63b3ed; }
.sidebar .menu-group { padding: 12px 22px 4px; font-size: 11px; color: #5a6b85; letter-spacing: 2px; }
.sidebar .user-box { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #b8c4d6; }
.sidebar .user-box .name { color: #fff; font-weight: 600; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 54px; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.topbar .page-title { font-size: 16px; font-weight: 600; color: #2d3748; }
.content { padding: 20px; flex: 1; overflow-y: auto; }

.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 600; color: #2d3748; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-left: 4px solid #2b6cb0; }
.stat-card .num { font-size: 28px; font-weight: 700; color: #2d3748; }
.stat-card .label { font-size: 13px; color: #718096; margin-top: 4px; }
.stat-card.orange { border-left-color: #ed8936; }
.stat-card.red { border-left-color: #e53e3e; }
.stat-card.green { border-left-color: #38a169; }
.stat-card.purple { border-left-color: #805ad5; }

.badge-pass { color: #38a169; background: #f0fff4; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.badge-pending { color: #d69e2e; background: #fffff0; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.badge-reject { color: #e53e3e; background: #fff5f5; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.badge-warn { color: #e53e3e; background: #fff5f5; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.badge-ok { color: #2b6cb0; background: #ebf8ff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }

.pager { display: flex; justify-content: flex-end; margin-top: 16px; }
.chart-box { width: 100%; height: 340px; }
.score-cell-min { color: #e53e3e; font-weight: 600; }
.mt16 { margin-top: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }
.spacer { flex: 1; }
.text-muted { color: #718096; font-size: 12px; }
.warning-tag { background: #fff5f5; border: 1px solid #feb2b2; color: #e53e3e; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
