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

#report-body .xl-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px 13px 15px;
  border: 1px solid #e2e8f4;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 16px 36px -24px rgba(24, 32, 50, 0.2), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

#report-body .xl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf1f8;
}

#report-body .xl-card__kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #4b556b;
}

#report-body .xl-card__badge {
  flex-shrink: 0;
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #d6defc;
}

#report-body .xl-card__badge--cyan { color: #0e7490; background: #ecfeff; border-color: #bae6fd; }
#report-body .xl-card__badge--amber { color: #b45309; background: #fffbeb; border-color: #fde68a; }
#report-body .xl-card__badge--emerald { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
#report-body .xl-card__badge--violet { color: #7e22ce; background: #faf5ff; border-color: #e9d5ff; }

/* 三项核心指数 */
#report-body .xl-idx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#report-body .xl-idx {
  --idx-bg: #eef2ff;
  --idx-border: #d4ddfc;
  --idx-ink: #4338ca;
  --idx-bar: linear-gradient(90deg, #818cf8, #4f46e5);
  padding: 9px 8px 8px;
  border-radius: 12px;
  background: var(--idx-bg);
  border: 1px solid var(--idx-border);
  text-align: center;
}

#report-body .xl-idx--violet {
  --idx-bg: #faf5ff;
  --idx-border: #ead7fe;
  --idx-ink: #7e22ce;
  --idx-bar: linear-gradient(90deg, #c084fc, #7e22ce);
}

#report-body .xl-idx--cyan {
  --idx-bg: #ecfeff;
  --idx-border: #c2effa;
  --idx-ink: #0e7490;
  --idx-bar: linear-gradient(90deg, #22d3ee, #0891b2);
}

#report-body .xl-idx__label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #4b556b;
  margin-bottom: 3px;
}

#report-body .xl-idx__val {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--idx-ink);
  margin-bottom: 6px;
}

#report-body .xl-idx__val span {
  font-size: 11px;
  font-weight: 800;
  margin-left: 1px;
}

#report-body .xl-idx__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(24, 32, 50, 0.08);
  overflow: hidden;
}

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

/* 01 · 六大维度一体式进度条：每维独立色系，低分浅彩底 + 最高分高饱和亮色 */
#report-body .xl-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#report-body .xl-bar {
  --dim-accent: #4f46e5;
  --dim-soft: #eef2ff;
  --dim-border: #c7d2fe;
  --dim-ink: #3730a3;
  --seg-mute-a: #e8edff;
  --seg-mute-b: #d9e1ff;
  --seg-a: #6366f1;
  --seg-b: #4338ca;
  --seg-glow: rgba(79, 70, 229, 0.28);
}

#report-body .xl-bar[data-group="fantasy"] {
  --dim-accent: #9333ea;
  --dim-soft: #faf5ff;
  --dim-border: #e9d5ff;
  --dim-ink: #7e22ce;
  --seg-mute-a: #f5ebff;
  --seg-mute-b: #ebd9fe;
  --seg-a: #a855f7;
  --seg-b: #7e22ce;
  --seg-glow: rgba(147, 51, 234, 0.26);
}

#report-body .xl-bar[data-group="immersion"] {
  --dim-accent: #e11d48;
  --dim-soft: #fff1f3;
  --dim-border: #fecdd6;
  --dim-ink: #be123c;
  --seg-mute-a: #ffe6ec;
  --seg-mute-b: #ffd6df;
  --seg-a: #f43f5e;
  --seg-b: #be123c;
  --seg-glow: rgba(225, 29, 72, 0.26);
}

#report-body .xl-bar[data-group="mode"] {
  --dim-accent: #0891b2;
  --dim-soft: #ecfeff;
  --dim-border: #a5f3fc;
  --dim-ink: #0e7490;
  --seg-mute-a: #e0f9fe;
  --seg-mute-b: #c7f2fc;
  --seg-a: #06b6d4;
  --seg-b: #0e7490;
  --seg-glow: rgba(8, 145, 178, 0.26);
}

#report-body .xl-bar[data-group="boundary"] {
  --dim-accent: #d97706;
  --dim-soft: #fffbeb;
  --dim-border: #fde68a;
  --dim-ink: #b45309;
  --seg-mute-a: #fef3c7;
  --seg-mute-b: #fde68a;
  --seg-a: #f59e0b;
  --seg-b: #d97706;
  --seg-glow: rgba(217, 119, 6, 0.26);
}

#report-body .xl-bar[data-group="trigger"] {
  --dim-accent: #059669;
  --dim-soft: #ecfdf5;
  --dim-border: #a7f3d0;
  --dim-ink: #047857;
  --seg-mute-a: #dcfce9;
  --seg-mute-b: #c1f4d9;
  --seg-a: #10b981;
  --seg-b: #047857;
  --seg-glow: rgba(5, 150, 105, 0.26);
}

#report-body .xl-bar__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

#report-body .xl-bar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim-accent);
  background: var(--dim-soft);
  border: 1px solid var(--dim-border);
}

#report-body .xl-bar__name {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  color: #182032;
}

#report-body .xl-bar__num {
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--dim-accent);
  opacity: 0.72;
}

#report-body .xl-bar__tag {
  margin-left: auto;
  flex-shrink: 0;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: var(--dim-ink);
  background: var(--dim-soft);
  border: 1px solid var(--dim-border);
}

#report-body .xl-bar__tag.is-dual {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

/* 统一成一条完整的分段进度条 */
#report-body .xl-bar__track {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  background: #edf1f8;
  box-shadow: 0 4px 12px -6px var(--seg-glow), 0 0 0 1px rgba(24, 32, 50, 0.06);
}

#report-body .xl-seg {
  position: relative;
  flex-basis: 0;
  min-width: 50px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(180deg, var(--seg-mute-a) 0%, var(--seg-mute-b) 100%);
  color: var(--dim-ink);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#report-body .xl-seg + .xl-seg {
  border-left: 1.5px solid rgba(255, 255, 255, 0.92);
}

#report-body .xl-seg__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  max-width: 100%;
}

#report-body .xl-seg__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.92;
}

#report-body .xl-seg__name {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

#report-body .xl-seg__pct {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  opacity: 0.88;
}

#report-body .xl-seg.is-on {
  background: linear-gradient(135deg, var(--seg-a) 0%, var(--seg-b) 100%);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

#report-body .xl-seg.is-on .xl-seg__icon,
#report-body .xl-seg.is-on .xl-seg__pct {
  opacity: 0.98;
}

/* 02 · 主导风格详细解读 */
#report-body .xl-lead__title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  color: #182032;
}

#report-body .xl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

#report-body .xl-chip {
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid transparent;
}

#report-body .xl-chip--indigo { color: #3730a3; background: #eef2ff; border-color: #c7d2fe; }
#report-body .xl-chip--violet { color: #7e22ce; background: #faf5ff; border-color: #e9d5ff; }
#report-body .xl-chip--rose { color: #be123c; background: #fff1f3; border-color: #fecdd6; }
#report-body .xl-chip--emerald { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }

#report-body .xl-lead__quote {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border-left: 3px solid #4f46e5;
  background: linear-gradient(90deg, #eef2ff, #f6faff);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
  color: #312e81;
}

#report-body .xl-lead__analysis {
  margin: 0 0 11px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #364156;
}

#report-body .xl-notes {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#report-body .xl-note {
  --note-accent: #4f46e5;
  --note-bg: #f6f8ff;
  --note-border: #dfe6fd;
  --note-ink: #3730a3;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
}

#report-body .xl-note[data-group="fantasy"] {
  --note-accent: #9333ea;
  --note-bg: #fbf7ff;
  --note-border: #eeddff;
  --note-ink: #7e22ce;
}

#report-body .xl-note[data-group="boundary"] {
  --note-accent: #d97706;
  --note-bg: #fffcf2;
  --note-border: #fde9ab;
  --note-ink: #b45309;
}

#report-body .xl-note[data-group="trigger"] {
  --note-accent: #059669;
  --note-bg: #f3fcf8;
  --note-border: #ccf5e4;
  --note-ink: #047857;
}

#report-body .xl-note__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

#report-body .xl-note__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--note-accent);
}

#report-body .xl-note__val {
  font-size: 12px;
  font-weight: 900;
  color: var(--note-ink);
}

#report-body .xl-note__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #3c465c;
}

#report-body .xl-note__line {
  margin: 4px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--note-ink);
}

/* 03 · 虚恋名场面与关系剧本 */
#report-body .xl-block {
  margin-bottom: 11px;
}

#report-body .xl-block__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #182032;
}

#report-body .xl-scene-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#report-body .xl-scene-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #f5f8fd;
  border: 1px solid #e6ecf7;
}

#report-body .xl-scene-item__num {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #4338ca;
  background: #e5ebff;
}

#report-body .xl-scene-item__text {
  font-size: 12px;
  line-height: 1.5;
  color: #2f394d;
}

#report-body .xl-weak-pills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#report-body .xl-weak-pill {
  position: relative;
  padding: 6px 9px 6px 18px;
  border-radius: 9px;
  background: #fff7f8;
  border: 1px solid #ffe1e7;
  font-size: 11.5px;
  line-height: 1.45;
  color: #881337;
}

#report-body .xl-weak-pill::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e11d48;
}

#report-body .xl-mono {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f3f6ff, #f0fcff);
  border: 1px solid #dee5f7;
}

#report-body .xl-mono__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

#report-body .xl-mono__tag {
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #0e7490;
  background: #dff8fe;
}

#report-body .xl-mono__trigger {
  font-size: 11px;
  font-weight: 700;
  color: #5c667c;
}

#report-body .xl-mono__text {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.55;
  color: #1f273b;
}

#report-body .xl-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#report-body .xl-match,
#report-body .xl-nemesis {
  padding: 9px 10px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#report-body .xl-match {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1px solid #cceee3;
}

#report-body .xl-nemesis {
  background: linear-gradient(135deg, #fff7ed, #fff1f4);
  border: 1px solid #fed7aa;
}

#report-body .xl-match__label { font-size: 10.5px; font-weight: 800; color: #0f766e; }
#report-body .xl-nemesis__label { font-size: 10.5px; font-weight: 800; color: #c2410c; }
#report-body .xl-match__name { font-size: 13px; font-weight: 900; color: #065f46; }
#report-body .xl-nemesis__name { font-size: 13px; font-weight: 900; color: #9a3412; }

#report-body .xl-match__reason,
#report-body .xl-nemesis__reason {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #384654;
}

/* 04 · 攻略开关与虚恋处方 */
#report-body .xl-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

#report-body .xl-guide-box {
  padding: 9px 9px;
  border-radius: 11px;
}

#report-body .xl-guide-box--on { background: #f3fcf8; border: 1px solid #ccf0e2; }
#report-body .xl-guide-box--off { background: #fff6f8; border: 1px solid #ffd8e0; }

#report-body .xl-guide-box__title {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 900;
}

#report-body .xl-guide-box--on .xl-guide-box__title { color: #0f766e; }
#report-body .xl-guide-box--off .xl-guide-box__title { color: #be123c; }

#report-body .xl-guide-list {
  margin: 0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.48;
  color: #364156;
}

#report-body .xl-rx {
  padding: 9px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f3f5ff, #faf5ff);
  border: 1px solid #dfe4fb;
}

#report-body .xl-rx__tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #4338ca;
  background: #e5ebff;
}

#report-body .xl-rx__text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  color: #243048;
}

@media (max-width: 360px) {
  #report-body .xl-pair-grid,
  #report-body .xl-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  #report-body .xl-seg {
    min-width: 45px;
    padding: 3px 2px;
  }

  #report-body .xl-seg__name {
    font-size: 10.5px;
  }
}
