/* ---------- 在线自评 ---------- */
.a-wrap { max-width: 1000px; margin: 0 auto; padding: 26px 20px 80px; }
.a-crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.a-crumb a { color: var(--accent); text-decoration: none; }
.a-hero h1 { font-size: 27px; margin-bottom: 8px; }
.a-hero p { color: var(--muted); font-size: 14.5px; max-width: 760px; }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.a-tags span {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe;
}

.a-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 14px; font-size: 12.5px; color: var(--muted); }
.a-legend .lg { display: flex; align-items: center; gap: 6px; }
.a-legend .lg i { width: 20px; height: 20px; border-radius: 6px; display: inline-block; }
.a-legend .lg i.v0 { background: #fee2e2; }
.a-legend .lg i.v1 { background: #fecaca; }
.a-legend .lg i.v2 { background: #fde68a; }
.a-legend .lg i.v3 { background: #a5f3fc; }
.a-legend .lg i.v4 { background: #a7f3d0; }
.a-legend .lg i.v5 { background: #6ee7b7; }

.a-toolbar {
  position: sticky; top: 60px; z-index: 30;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(16,24,40,.06);
}
.a-progress { flex: 1 1 200px; min-width: 170px; }
.a-progress .txt { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.a-progress .txt b { color: var(--text); font-size: 14px; }
.a-progress .bar { height: 7px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.a-progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #059669); transition: width .25s; }
.a-filters { display: flex; gap: 4px; }
.a-filters button, .a-toolbar .btn {
  height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer;
}
.a-filters button.on { background: var(--accent-soft); border-color: #bfdbfe; color: #1d4ed8; font-weight: 600; }
.a-toolbar .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.a-toolbar .btn.danger:hover { border-color: #fca5a5; color: #b91c1c; }
.a-toolbar input.org {
  height: 32px; padding: 0 11px; font-size: 13px; border: 1px solid var(--border);
  border-radius: 8px; outline: none; width: 190px; color: var(--text);
}
.a-toolbar input.org:focus { border-color: var(--accent); }

.theme { margin-top: 26px; }
.theme-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.theme-head h2 { font-size: 18px; }
.theme-head .en { color: var(--muted); font-size: 12.5px; }
.theme-head .cnt { color: var(--muted); font-size: 12.5px; }
.theme-head .avg {
  margin-left: auto; font-size: 13px; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px;
}
.theme-head .avg b { color: var(--text); }

.ai {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-left: 3px solid transparent;
  border-radius: 11px; padding: 13px 16px; margin-bottom: 8px;
  transition: border-color .15s, opacity .15s;
}
.ai:hover { border-color: #cbd5e1; }
.ai.gap { border-left-color: #dc2626; }
.ai.ok { border-left-color: #059669; }
.ai[hidden] { display: none; }
.ai-main { min-width: 0; }
.ai-id { font-size: 11.5px; color: #94a3b8; font-family: ui-monospace, Consolas, monospace; }
.ai h3 { font-size: 15px; margin: 1px 0 0; font-weight: 600; }
.ai h3 small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.ai-hint { color: var(--muted); font-size: 12.8px; margin-top: 4px; line-height: 1.55; }

.scale { display: flex; gap: 5px; align-items: center; flex: 0 0 auto; }
.scale button {
  width: 33px; height: 33px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font-size: 13px; transition: all .12s;
}
.scale button:hover { border-color: var(--accent); color: var(--accent); }
.scale button.on { color: #fff; font-weight: 700; border-color: transparent; }
.scale button[data-v="0"].on, .scale button[data-v="1"].on { background: #dc2626; }
.scale button[data-v="2"].on { background: #d97706; }
.scale button[data-v="3"].on { background: #0891b2; }
.scale button[data-v="4"].on, .scale button[data-v="5"].on { background: #059669; }

/* ---------- 报告 ---------- */
#report { position: relative; z-index: 2; margin-top: 34px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 34px 36px; box-shadow: var(--shadow); }
#report[hidden] { display: none; }
.rp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 14px; margin-bottom: 20px; }
.rp-head h2 { font-size: 22px; }
.rp-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.rp-head .who { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.8; }
.rp-head .who b { color: var(--text); font-size: 15px; }

.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px 14px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi b { font-size: 24px; line-height: 1.3; }
.kpi b em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 400; }
.kpi.lv b { font-size: 19px; color: var(--accent); }

.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; margin-bottom: 8px; }
.rp-chart h3, .rp-side h3 { font-size: 14.5px; margin-bottom: 10px; }
.rp-chart canvas { width: 100%; height: 300px; display: block; }
.rp-side .b { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); margin: 7px 0; }
.rp-side .b .k { width: 74px; flex: 0 0 74px; }
.rp-side .b .track { flex: 1; height: 9px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.rp-side .b .track i { display: block; height: 100%; border-radius: 4px; }
.rp-side .b .n { width: 34px; text-align: right; color: var(--text); }

.rp-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 9px; padding: 10px 14px; font-size: 12.5px; margin: 16px 0 22px; }
.rp-sec { margin-top: 26px; }
.rp-sec h3 { font-size: 16px; margin-bottom: 4px; }
.rp-sec .desc { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.gap-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.gap-item:last-child { border-bottom: 0; }
.gap-item .id { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #94a3b8; flex: 0 0 52px; }
.gap-item .t { flex: 1; }
.gap-item .t small { display: block; color: var(--muted); font-size: 12px; }
.gap-item .sc { flex: 0 0 auto; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.sc.s0, .sc.s1 { background: #fef2f2; color: #b91c1c; }
.sc.s2 { background: #fffbeb; color: #b45309; }
.sc.s3 { background: #ecfdf5; color: #047857; }
.sc.na { background: #f1f5f9; color: #64748b; }

.rp-cta { margin-top: 26px; border: 1px dashed #bfdbfe; background: linear-gradient(180deg, #f8fbff, #eff6ff); border-radius: 12px; padding: 18px 20px; }
.rp-cta h3 { font-size: 15.5px; margin-bottom: 6px; }
.rp-cta p { color: #1e40af; font-size: 13.5px; }
.rp-cta .wx { display: inline-block; margin-top: 8px; font-weight: 700; color: #1d4ed8; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 4px 12px; }
.rp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.rp-actions .btn { height: 38px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 14px; color: var(--text); }
.rp-actions .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.rp-foot { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; color: #94a3b8; font-size: 11.5px; line-height: 1.8; }

/* 水印（屏幕淡显，打印平铺） */
.wm { position: fixed; inset: 0; z-index: 999; pointer-events: none; display: none; overflow: hidden; }
.wm.on { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 110px; }
.wm span {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(37, 99, 235, .10);
  transform: rotate(-22deg); white-space: nowrap;
}

/* 评估中心列表 */
.assess-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.assess-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: block; }
.assess-card:hover { border-color: #bfdbfe; }
.assess-card h3 { font-size: 17px; margin-bottom: 6px; }
.assess-card p { color: var(--muted); font-size: 13.5px; }
.assess-card .st { display: inline-block; margin-top: 12px; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.assess-card .st.on { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.assess-card .st.soon { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

@media (max-width: 760px) {
  .ai { grid-template-columns: 1fr; }
  .scale button { width: 42px; height: 36px; }
  .rp-grid { grid-template-columns: 1fr; }
  .rp-kpis { grid-template-columns: 1fr 1fr; }
  .assess-list { grid-template-columns: 1fr; }
  #report { padding: 22px 18px; }
}

@media print {
  .site-header, .site-footer, .a-toolbar, .a-hero, .a-legend, .theme, .no-print, .a-crumb { display: none !important; }
  body { background: #fff; }
  .a-wrap { padding: 0; max-width: none; }
  #report { border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: 0; }
  .wm.on { display: grid; }
  .rp-cta { border-style: solid; }
  @page { margin: 14mm; }
}
