/* 仅控制报告正文，不覆盖公共标题、导航或操作区。 */
#report-body :where(h2,h3,p) { margin: 0; }
#report-body {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --paper-soft: #f4f6f9;
  --ink: #141821;
  --muted: #566173;
  --dim: #7b8698;
  --line: #dfe4ec;
  --line-strong: #cfd6e2;
  --danger: #d93829;
  --orange: #e07b24;
  --slate: #2b3a55;
  --shadow: 0 10px 26px rgba(20, 24, 33, 0.055);
  --radius: 15px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* 主卡：冰雾银白 × 警戒朱红（居中紧凑版） */
#report-body .res-hero {
  position: relative;
  overflow: hidden;
  padding: 11px 13px;
  border-radius: 15px;
  text-align: center;
  --hero-accent: #d93829;
  --hero-light: #b82b1e;
  --hero-rgb: 217, 56, 41;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--hero-rgb), 0.10), transparent 58%),
    radial-gradient(ellipse at 50% 100%, rgba(43, 58, 85, 0.06), transparent 55%),
    linear-gradient(175deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid color-mix(in srgb, var(--hero-accent) 22%, #dfe4ec);
  border-top: 3.5px solid var(--hero-accent);
  box-shadow: 0 10px 24px rgba(20, 24, 33, 0.06);
}

#report-body .res-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#report-body .res-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

#report-body .res-type {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--hero-accent);
}

#report-body .res-score {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--hero-accent) var(--score-angle, 0deg), #e5eaf1 0);
  box-shadow: 0 3px 10px rgba(var(--hero-rgb), 0.16);
}

#report-body .res-score::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffffff;
}

#report-body .res-score-in {
  position: relative;
  text-align: center;
  line-height: 1;
}

#report-body .res-score-in b {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--hero-accent);
  font-variant-numeric: tabular-nums;
}

#report-body .res-score-in span {
  display: block;
  margin-top: 1.5px;
  font-size: 6.5px;
  font-weight: 700;
  color: var(--muted);
}

#report-body .res-personality-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--hero-accent);
}

#report-body .res-personality-label::before {
  content: "";
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--hero-accent);
}

#report-body .res-quote-block {
  margin-top: 7px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(var(--hero-rgb), 0.06);
  border: 1px solid rgba(var(--hero-rgb), 0.14);
}

#report-body .res-quote {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.48;
  color: var(--ink);
}

#report-body .res-interp {
  margin-top: 7px;
}

#report-body .res-type-copy {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.52;
  color: var(--muted);
}

/* 通用卡片 */
#report-body .result-section {
  margin-top: 10px;
  padding: 15px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#report-body .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 900;
  color: var(--ink);
}

#report-body .section-title::before {
  content: "";
  width: 3.5px;
  height: 15px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--danger), var(--orange));
}

#report-body .section-copy {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* 雷达图 */
#report-body .radar-stage {
  position: relative;
  margin-top: 8px;
  padding: 4px 0 0;
  overflow: hidden;
}

#report-body .radar-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
}

#report-body .radar-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#report-body .radar-grid {
  fill: none;
  stroke: rgba(20, 24, 33, 0.13);
  stroke-width: 1;
}

#report-body .radar-axis {
  stroke: rgba(20, 24, 33, 0.10);
  stroke-width: 1;
}

#report-body .radar-reference {
  fill: none;
  stroke: rgba(217, 56, 41, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}

#report-body .radar-label {
  fill: #222938;
  font-size: 11px;
  font-weight: 700;
}

#report-body .radar-label-score {
  font-size: 9.5px;
  font-weight: 800;
  fill: #d93829;
  font-family: var(--mono);
}

#report-body .radar-label-sub {
  font-size: 10px;
  fill: #667285;
}

#report-body .radar-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

#report-body .radar-legend i {
  display: inline-block;
  width: 14px;
  height: 1.5px;
  margin-right: 4px;
  vertical-align: middle;
  background: #d93829;
}

#report-body .radar-legend i.dash {
  background: repeating-linear-gradient(90deg, #d93829 0 3px, transparent 3px 6px);
}

#report-body .radar-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

#report-body .radar-stat {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f5f7fa;
  text-align: center;
}

#report-body .radar-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

#report-body .radar-stat b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

#report-body .radar-stat strong {
  color: var(--danger);
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
}

/* 各维度评分 */
#report-body .dimension-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

#report-body .dimension-row {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

#report-body .dimension-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.2;
}

#report-body .dimension-head b {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 800;
}

#report-body .dimension-head small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

#report-body .dimension-head span {
  color: var(--danger);
  font-size: 15px;
  font-weight: 900;
}

#report-body .risk-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf1;
}

#report-body .risk-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  animation: growBar 0.78s ease forwards;
}

#report-body .dimension-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#report-body .dimension-tags i {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f6f9;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

@keyframes growBar {
  from { width: 0; }
  to { width: var(--w); }
}

/* 危险行为 */
#report-body .behavior-card {
  --behavior-rgb: 217, 56, 41;
  --behavior-light: #d93829;
}

#report-body .behavior-card .section-title::before {
  background: var(--behavior-light);
}

#report-body .behavior-list {
  list-style: none;
  padding: 0;
  margin: 11px 0 0;
  display: grid;
  gap: 8px;
}

#report-body .behavior-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(var(--behavior-rgb), 0.055);
  border: 1px solid rgba(var(--behavior-rgb), 0.14);
}

#report-body .behavior-number {
  flex: none;
  color: var(--behavior-light);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

#report-body .behavior-text {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.62;
}

/* 致命弱点 */
#report-body .weakness-card {
  --weakness-rgb: 217, 56, 41;
  --weakness-light: #d93829;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(var(--weakness-rgb), 0.08), transparent 56%),
    linear-gradient(165deg, #ffffff 0%, #f6f8fb 100%);
  border: 1px solid rgba(var(--weakness-rgb), 0.20);
}

#report-body .weakness-card .section-title::before {
  background: var(--weakness-light);
}

#report-body .weakness-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

#report-body .weakness-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 1px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
}

#report-body .weakness-item + .weakness-item {
  border-top: 1px solid #e6eaf0;
}

#report-body .weakness-mark {
  flex: none;
  color: var(--weakness-light);
  font-size: 11px;
}

#report-body .weakness-text {
  margin: 0;
}

/* 黑化瞬间 */
#report-body .dark-moment {
  --moment-rgb: 217, 56, 41;
  --moment-light: #b82b1e;
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(var(--moment-rgb), 0.09), transparent 64%),
    linear-gradient(160deg, #ffffff 0%, #f3f6fa 100%);
  border: 1px solid rgba(var(--moment-rgb), 0.20);
}

#report-body .dark-moment .section-title::before {
  background: var(--moment-light);
}

#report-body .moment-scene {
  margin: 16px auto 0;
  max-width: 310px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.78;
  text-align: center;
}

#report-body .moment-quote {
  margin: 14px auto 0;
  max-width: 320px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

#report-body .moment-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--moment-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#report-body .moment-signature::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

@media (max-width: 370px) {
  #report-body .dimension-list {
    grid-template-columns: 1fr;
  }
  #report-body .radar-stat-grid {
    grid-template-columns: 1fr;
  }
}
