#report-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--cb-ink);
}

#report-body .cb-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 15px 14px 16px;
  border: 1px solid var(--cb-line);
  background: linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
  box-shadow: 0 18px 38px -26px rgba(31, 23, 27, 0.22), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

#report-body .cb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #f2e8ea;
}

#report-body .cb-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--cb-muted);
}

#report-body .cb-card-title {
  margin: 3px 0 0;
  font-size: 16.5px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--cb-ink);
}

#report-body .cb-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

#report-body .cb-badge--rose {
  color: #be123c;
  background: #fff1f2;
  border-color: #fecdd3;
}

#report-body .cb-badge--amber {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

/* ---------- 01. 恋爱边界主卡 ---------- */
#report-body .cb-hero-card {
  --hero-accent: #e11d48;
  --hero-bg: radial-gradient(circle at 92% 6%, rgba(225, 29, 72, 0.11), transparent 48%), linear-gradient(180deg, #ffffff 0%, #fff9fa 100%);
  background: var(--hero-bg);
}

#report-body .cb-hero-card--trust {
  --hero-accent: #059669;
  --hero-bg: radial-gradient(circle at 92% 6%, rgba(16, 185, 129, 0.11), transparent 48%), linear-gradient(180deg, #ffffff 0%, #f6fefb 100%);
}

#report-body .cb-hero-card--balance {
  --hero-accent: #d97706;
  --hero-bg: radial-gradient(circle at 92% 6%, rgba(245, 158, 11, 0.11), transparent 48%), linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
}

#report-body .cb-hero-card--sensitive {
  --hero-accent: #db2777;
  --hero-bg: radial-gradient(circle at 92% 6%, rgba(219, 39, 119, 0.1), transparent 48%), linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
}

#report-body .cb-hero-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#report-body .cb-rank-chip {
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--hero-accent);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 23, 27, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#report-body .cb-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#report-body .cb-hero-id {
  min-width: 0;
  flex: 1 1 auto;
}

#report-body .cb-hero-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cb-muted);
}

#report-body .cb-hero-type {
  margin: 3px 0 8px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hero-accent);
}

#report-body .cb-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#report-body .cb-mini-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #4b3d44;
  background: #ffffff;
  border: 1px solid #eadce0;
}

#report-body .cb-hero-gauge {
  flex-shrink: 0;
  width: 116px;
}

#report-body .cb-gauge-svg {
  display: block;
  width: 100%;
  height: auto;
}

#report-body .cb-gauge-num {
  font-size: 24px;
  font-weight: 900;
  fill: var(--cb-ink);
  font-variant-numeric: tabular-nums;
}

#report-body .cb-gauge-unit {
  font-size: 8.5px;
  font-weight: 700;
  fill: #8f7e86;
}

#report-body .cb-scale-wrap {
  margin: 12px 0;
  padding: 10px 11px 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #f0e3e5;
}

#report-body .cb-scale-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #e11d48 100%);
}

#report-body .cb-scale-dot {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #1f171b;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}

#report-body .cb-scale-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 8px;
  text-align: center;
  font-size: 10.5px;
  color: #9b8c93;
}

#report-body .cb-scale-tiers .is-active {
  color: var(--hero-accent);
  font-weight: 900;
}

#report-body .cb-hero-quote {
  margin: 0 0 9px;
  padding: 9px 11px;
  border-radius: 11px;
  border-left: 3.5px solid var(--hero-accent);
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.06), rgba(255, 255, 255, 0.6));
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--cb-ink);
}

#report-body .cb-hero-card--trust .cb-hero-quote {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.6));
}

#report-body .cb-hero-card--balance .cb-hero-quote {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.09), rgba(255, 255, 255, 0.6));
}

#report-body .cb-hero-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #45373e;
}

#report-body .cb-hero-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #fff5f6;
  border: 1px solid #fed7de;
  font-size: 12px;
  line-height: 1.55;
  color: #881337;
}

#report-body .cb-hero-tip__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #e11d48;
}

#report-body .cb-hero-tip p {
  margin: 0;
}

/* ---------- 02. 出轨判定分布 ---------- */
#report-body .cb-dist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#report-body .cb-dist-box {
  --dist-ink: #be123c;
  --dist-bar: linear-gradient(90deg, #fb7185, #e11d48);
  padding: 10px 8px 9px;
  border-radius: 13px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--dist-ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

#report-body .cb-dist-box--mind {
  --dist-ink: #b45309;
  --dist-bar: linear-gradient(90deg, #fbbf24, #d97706);
  background: #fffbeb;
  border-color: #fde68a;
}

#report-body .cb-dist-box--fine {
  --dist-ink: #047857;
  --dist-bar: linear-gradient(90deg, #34d399, #059669);
  background: #ecfdf5;
  border-color: #a7f3d0;
}

#report-body .cb-dist-label {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

#report-body .cb-dist-val {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

#report-body .cb-dist-val span {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 700;
}

#report-body .cb-dist-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
}

#report-body .cb-dist-mini__bar {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#report-body .cb-dist-mini__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--dist-bar);
}

#report-body .cb-dist-bar {
  display: flex;
  height: 9px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
}

#report-body .cb-dist-seg.is-cheating { background: linear-gradient(90deg, #f43f5e, #e11d48); }
#report-body .cb-dist-seg.is-mind { background: linear-gradient(90deg, #fbbf24, #d97706); }
#report-body .cb-dist-seg.is-fine { background: linear-gradient(90deg, #34d399, #059669); }

#report-body .cb-reflect-box {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid #f0e2e4;
  background: #fdf8f9;
}

#report-body .cb-reflect-box.is-soft {
  background: linear-gradient(135deg, #fffbeb, #fffdf4);
  border-color: #fde68a;
}

#report-body .cb-reflect-box.is-equal {
  background: linear-gradient(135deg, #ecfdf5, #f6fefb);
  border-color: #a7f3d0;
}

#report-body .cb-reflect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

#report-body .cb-reflect-q {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--cb-ink);
}

#report-body .cb-reflect-ans {
  flex-shrink: 0;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

#report-body .cb-reflect-box.is-equal .cb-reflect-ans {
  color: #047857;
}

#report-body .cb-reflect-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #55444c;
}

/* ---------- 03. 40 格矩阵与判定明细 ---------- */
#report-body .cb-matrix-legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #5f4e56;
}

#report-body .cb-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#report-body .cb-matrix-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

#report-body .cb-matrix-legend i.is-cheating { background: #e11d48; }
#report-body .cb-matrix-legend i.is-mind { background: #fbbf24; }
#report-body .cb-matrix-legend i.is-fine { background: #6ee7b7; }

#report-body .cb-matrix-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}

#report-body .cb-matrix-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}

#report-body .cb-matrix-cell.is-cheating {
  background: linear-gradient(145deg, #f43f5e, #e11d48);
  color: #ffffff;
}

#report-body .cb-matrix-cell.is-mind {
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  border-color: #f59e0b66;
  color: #92400e;
}

#report-body .cb-matrix-cell.is-fine {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border-color: #34d39966;
  color: #047857;
}

#report-body .cb-matrix-cell.is-focused {
  transform: scale(1.1);
  box-shadow: 0 0 0 2.5px #1f171b;
  z-index: 1;
}

#report-body .cb-matrix-hint {
  margin: 0 0 12px;
  font-size: 11px;
  color: #8f7e86;
  text-align: center;
}

#report-body .cb-matrix-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #faf4f5;
  border: 1px solid #ead8dc;
}

#report-body .cb-matrix-spot-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#report-body .cb-matrix-spot-dim {
  font-size: 10px;
  font-weight: 800;
  color: var(--cb-muted);
}

#report-body .cb-matrix-spot-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cb-ink);
}

#report-body .cb-table-list {
  display: grid;
  gap: 6px;
}

#report-body .cb-table-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 8px 12px;
  border-radius: 11px;
  background: #fdfafa;
  border: 1px solid #f2e7e8;
}

#report-body .cb-table-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #d1d5db;
}

#report-body .cb-table-row.is-cheating::before { background: #e11d48; }
#report-body .cb-table-row.is-mind::before { background: #f59e0b; }
#report-body .cb-table-row.is-fine::before { background: #10b981; }

#report-body .cb-table-id {
  font-size: 11px;
  font-weight: 800;
  color: #a19198;
  font-variant-numeric: tabular-nums;
}

#report-body .cb-table-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#report-body .cb-table-short {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cb-ink);
}

#report-body .cb-table-dim {
  font-size: 10.5px;
  color: var(--cb-muted);
}

#report-body .cb-table-footer {
  margin-top: 10px;
}

#report-body .cb-empty-note {
  margin: 6px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--cb-muted);
}

/* ---------- 04. 八大恋爱雷区 ---------- */
#report-body .cb-radar-box {
  display: flex;
  justify-content: center;
  margin: 2px 0 10px;
}

#report-body .cb-radar-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  overflow: visible;
}

#report-body .cb-radar__name {
  font-size: 11px;
  font-weight: 700;
  fill: #3f3137;
}

#report-body .cb-radar__pct {
  font-size: 10.5px;
  font-weight: 800;
  fill: #e11d48;
  font-variant-numeric: tabular-nums;
}

#report-body .cb-dim-list {
  display: grid;
  gap: 9px;
}

#report-body .cb-dim-row.is-top {
  padding: 7px 8px;
  border-radius: 11px;
  background: #fff9fa;
  border: 1px solid #fae3e7;
}

#report-body .cb-dim-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

#report-body .cb-dim-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#report-body .cb-dim-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cb-ink);
}

#report-body .cb-dim-level {
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

#report-body .cb-dim-level--high { color: #be123c; background: #ffe4e6; }
#report-body .cb-dim-level--mid { color: #b45309; background: #fef3c7; }
#report-body .cb-dim-level--low { color: #047857; background: #d1fae5; }

#report-body .cb-dim-pct {
  margin-left: auto;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#report-body .cb-dim-track {
  height: 7px;
  border-radius: 999px;
  background: #f1e9eb;
  overflow: hidden;
}

#report-body .cb-dim-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

#report-body .cb-dim-summary {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 11px;
  background: #faf4f5;
  border: 1px solid #efe3e5;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4b3d44;
}

/* ---------- 05. 我的恋爱原则 ---------- */
#report-body .cb-principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#report-body .cb-principle-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff6f8 0%, #fffcf7 100%);
  border: 1px solid #f4dde1;
}

#report-body .cb-principle-item::after {
  content: "”";
  position: absolute;
  right: 10px;
  bottom: -8px;
  font-size: 36px;
  font-family: Georgia, serif;
  color: rgba(225, 29, 72, 0.11);
  pointer-events: none;
}

#report-body .cb-principle-num {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
  color: #be123c;
  font-size: 10.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#report-body .cb-principle-text {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cb-ink);
  padding-right: 12px;
}

/* ---------- 共用按钮 / 筛选 / 胶囊 ---------- */
#report-body .cb-mini-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e7d6d9;
  background: #ffffff;
  color: #be123c;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

#report-body .cb-ghost-btn {
  width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid #e7d9dc;
  background: #faf6f7;
  color: #4b3d44;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

#report-body .cb-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

#report-body .cb-filter-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #eadcdf;
  background: #faf6f7;
  color: #5f4e56;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

#report-body .cb-filter-chip.is-active {
  background: #1f171b;
  border-color: #1f171b;
  color: #ffffff;
}

#report-body .cb-choice-pill {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#report-body .cb-choice-pill.is-cheating { background: #ffe4e6; color: #be123c; }
#report-body .cb-choice-pill.is-mind { background: #fef3c7; color: #b45309; }
#report-body .cb-choice-pill.is-fine { background: #d1fae5; color: #047857; }

/* ---------- 06. 大众判定对比 ---------- */
#report-body .cb-crowd-list {
  display: grid;
  gap: 9px;
}

#report-body .cb-crowd-item {
  padding: 11px 11px;
  border-radius: 13px;
  background: #fdf9fa;
  border: 1px solid #f1e5e7;
}

#report-body .cb-crowd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#report-body .cb-crowd-q {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--cb-ink);
}

#report-body .cb-crowd-bar {
  display: flex;
  height: 19px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

#report-body .cb-crowd-bar span {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#report-body .cb-crowd-bar .is-cheating { background: linear-gradient(90deg, #f43f5e, #e11d48); }
#report-body .cb-crowd-bar .is-mind { background: linear-gradient(90deg, #fbbf24, #d97706); }
#report-body .cb-crowd-bar .is-fine { background: linear-gradient(90deg, #34d399, #059669); }

#report-body .cb-crowd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #5f4e56;
}

#report-body .cb-crowd-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

#report-body .dot-cheating { background: #e11d48; }
#report-body .dot-mind { background: #f59e0b; }
#report-body .dot-fine { background: #10b981; }

#report-body .cb-crowd-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #4b3d44;
}

#report-body .cb-footnote-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #8f7e86;
}

.cb-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: calc(100vw - 40px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(31, 23, 27, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cb-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
