:root { --brand: #2563eb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1f2937; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, var(--brand), #0f172a); }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 12px; padding: 32px 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card .sub { color: #6b7280; margin-bottom: 20px; font-size: 14px; }
.brand-logo { height: 32px; vertical-align: middle; margin-right: 8px; }
.layout { display: flex; min-height: 100vh; }
.side { width: 210px; background: #0f172a; color: #cbd5e1; flex-shrink: 0; }
.side .brand { height: 56px; display: flex; align-items: center; padding: 0 16px; font-weight: 700; color: #fff; font-size: 16px; border-bottom: 1px solid #1e293b; }
.side .el-menu { border-right: 0; background: transparent; }
.side .el-menu-item { color: #cbd5e1; height: 44px; }
.side .el-menu-item.is-active { color: #fff; background: var(--brand); }
.side .el-menu-item:hover { background: #1e293b; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 56px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.top .menu-btn { display: none; }
.content { padding: 20px; }
.page-title { font-size: 20px; font-weight: 600; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title .spacer { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 10px; padding: 16px; border: 1px solid #e5e7eb; }
.kpi .label { color: #6b7280; font-size: 13px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.kpi .hint { color: #9ca3af; font-size: 12px; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart { height: 280px; }
.answer { white-space: pre-wrap; font-size: 13px; line-height: 1.7; background: #f9fafb; padding: 10px; border-radius: 6px; max-height: 320px; overflow: auto; }
.muted { color: #6b7280; font-size: 13px; }
.demo-tag { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.mono { font-family: Consolas, monospace; white-space: pre-wrap; font-size: 13px; }
.report { max-width: 860px; margin: 0 auto; background: #fff; padding: 32px; border-radius: 10px; }
.report-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--brand); padding-bottom: 12px; margin-bottom: 20px; }
@media (max-width: 860px) {
  .side { position: fixed; z-index: 20; left: -220px; top: 0; bottom: 0; transition: left .2s; }
  .side.open { left: 0; }
  .top .menu-btn { display: inline-flex; }
  .grid2 { grid-template-columns: 1fr; }
  .content { padding: 12px; }
}
@media print {
  .side, .top, .no-print { display: none !important; }
  .content { padding: 0; } body { background: #fff; }
}
/* 长说明文字的勾选框在手机上换行，避免横向滚动 */
.el-checkbox { white-space: normal; height: auto; align-items: flex-start; }
.el-checkbox__label { white-space: normal; line-height: 1.5; }
