* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { height: 100%; }

/* 登录页 */
.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
}
.login-card {
  width: 400px; background: #fff; border-radius: 16px; padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-title { font-size: 24px; font-weight: 700; color: #1e3a8a; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: #94a3b8; margin-bottom: 28px; }
.login-tip { font-size: 12px; color: #94a3b8; margin-top: 16px; text-align: center; }

/* 布局 */
.layout { height: 100vh; display: flex; }
.sidebar {
  width: 220px; background: #1e293b; color: #cbd5e1; display: flex; flex-direction: column;
  transition: width .2s;
}
.sidebar.collapsed { width: 64px; }
.logo {
  height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  color: #fff; font-weight: 700; font-size: 16px; border-bottom: 1px solid #334155; white-space: nowrap;
}
.logo .badge { font-size: 11px; background: #3b82f6; padding: 2px 6px; border-radius: 4px; }
.nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-group-title { font-size: 11px; color: #64748b; padding: 14px 18px 6px; letter-spacing: 1px; }
.sidebar.collapsed .nav-group-title { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer;
  color: #cbd5e1; font-size: 14px; white-space: nowrap; transition: all .15s;
}
.nav-item:hover { background: #334155; color: #fff; }
.nav-item.active { background: #2563eb; color: #fff; border-left: 3px solid #60a5fa; }
.nav-item .el-icon { font-size: 18px; flex-shrink: 0; }
.sidebar.collapsed .nav-text, .sidebar.collapsed .logo-text { display: none; }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #f1f5f9; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
}
.topbar .title { font-size: 17px; font-weight: 600; color: #1e293b; flex: 1; }
.topbar .user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #475569; }
.content { flex: 1; overflow-y: auto; padding: 20px; }

/* 卡片 */
.page-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-card .label { font-size: 13px; color: #64748b; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #1e293b; margin-top: 8px; }
.stat-card .value.blue { color: #2563eb; }
.stat-card .value.green { color: #16a34a; }
.stat-card .value.orange { color: #ea580c; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

/* 评分环 */
.score-ring { display: flex; flex-direction: column; align-items: center; }
.score-num { font-size: 44px; font-weight: 800; }
.score-label { font-size: 13px; color: #64748b; }

/* 报告 */
.report-hero {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff;
  border-radius: 12px; padding: 28px; margin-bottom: 20px;
}
.report-hero h1 { margin: 0 0 6px; font-size: 24px; }
.report-hero .sub { opacity: .85; font-size: 14px; }
.report-score { font-size: 56px; font-weight: 800; }
.tag-ok { color: #16a34a; }
.tag-bad { color: #dc2626; }
.qa-item { border-bottom: 1px solid #f1f5f9; padding: 12px 0; }
.qa-q { font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.qa-a { color: #475569; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }

.empty { text-align: center; color: #94a3b8; padding: 60px 0; }
.mt16 { margin-top: 16px; }
.mb16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .nav-text, .sidebar .logo-text { display: none; }
  .content { padding: 12px; }
  .login-card { width: 92%; padding: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
