.xh-report {
  max-width: 450px;
  margin: auto;
  padding: 4px 2px 16px;
  display: grid;
  gap: 10px;
  color: var(--test-ink);
}

.xh-report * {
  box-sizing: border-box;
}

.xh-card {
  padding: 14px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ede1ef;
  box-shadow: 0 7px 18px rgba(236, 72, 153, 0.08);
}

/* 第一张卡片：完全贴合原版光谱进度条 + 圆圈分数布局 */
.xh-hero {
  --band-color: #ec4899;
  text-align: center;
  padding: 15px 14px 13px;
}

.xh-done-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: #fdf2f8;
  color: #ec4899;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.xh-head-text {
  margin: 8px 0 11px;
  font-size: 15px;
  font-weight: 800;
  color: var(--test-ink);
}

.xh-spectrum-panel {
  margin-bottom: 11px;
}

.xh-spectrum-bar {
  position: relative;
  display: flex;
  height: 9px;
  margin: 0 2px 8px;
  border-radius: 99px;
}

.xh-seg {
  height: 100%;
}

.xh-seg:first-child {
  border-radius: 99px 0 0 99px;
}

.xh-seg:nth-last-child(2) {
  border-radius: 0 99px 99px 0;
}

.xh-indicator {
  position: absolute;
  top: -5px;
  width: 0;
  height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #ec4899;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.xh-spectrum-labels {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.xh-seg-label {
  flex: 1;
  min-width: 0;
  text-align: center;
  line-height: 1.25;
}

.xh-seg-label strong {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.xh-seg-label span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  font-weight: 600;
  opacity: 0.78;
}

.xh-score-ring {
  width: 84px;
  height: 84px;
  margin: 6px auto 7px;
  border-radius: 50%;
  border: 5px solid #fce7f3;
  background: radial-gradient(circle, #ffffff 60%, #fdf7fb 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(139, 92, 246, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.xh-score-num {
  font-size: 27px;
  font-weight: 900;
  font-family: Georgia, serif;
  line-height: 1;
}

.xh-score-unit {
  margin-top: 3px;
  font-size: 10.5px;
  color: #8b7a99;
}

.xh-band-name {
  font-size: 21px;
  font-weight: 900;
  font-family: "Songti SC", "STSong", serif;
  margin-bottom: 6px;
}

.xh-band-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.72;
  color: #4f415d;
  text-align: left;
}

.xh-rid {
  display: block;
  margin-top: 8px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #9f8fb0;
}

/* 深度卡片通用样式 */
.xh-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ec4899;
}

.xh-title {
  margin: 4px 0 10px;
  font-size: 16.5px;
  font-weight: 900;
  font-family: "Songti SC", "STSong", serif;
  color: var(--test-ink);
}

.xh-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 9px;
}

.xh-ov-card {
  padding: 9px;
  border-radius: 10px;
  background: #fcf9fe;
  border: 1px solid #efe4f2;
}

.xh-ov-k {
  display: block;
  font-size: 10px;
  color: #8b7a99;
  margin-bottom: 3px;
}

.xh-ov-t {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--test-ink);
  margin-bottom: 3px;
}

.xh-ov-d {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.48;
  color: #5a4b68;
  min-height: 30px;
}

.xh-ov-meter {
  margin-top: 6px;
  height: 4px;
  border-radius: 99px;
  background: #efe4f2;
  overflow: hidden;
}

.xh-ov-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f472b6, #ec4899 55%, #8b5cf6);
}

.xh-chapter {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f2e8f4;
}

.xh-chapter-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.xh-tag {
  padding: 2px 6px;
  border-radius: 99px;
  background: #fdf2f8;
  color: #ec4899;
  font-size: 9.5px;
  font-weight: 800;
}

.xh-chapter-h b {
  font-size: 13px;
  font-weight: 800;
  color: var(--test-ink);
}

.xh-p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #544663;
}

/* 四维剖面 */
.xh-bars-viz {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 112px;
  align-items: end;
  margin-bottom: 10px;
}

.xh-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.xh-bar-em {
  font-size: 11.5px;
  font-weight: 900;
  font-family: Georgia, serif;
  color: #ec4899;
}

.xh-bar-stem {
  width: 100%;
  max-width: 20px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #f5eff8;
  border-radius: 7px 7px 4px 4px;
  overflow: hidden;
}

.xh-bar-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, #f472b6, #ec4899 52%, #8b5cf6);
}

.xh-bar-sp {
  font-size: 10.5px;
  font-weight: 700;
  color: #6b5b7a;
}

.xh-hi-lo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 8px;
}

.xh-hi-lo-card {
  padding: 9px;
  border-radius: 10px;
  background: #fcf9fe;
  border: 1px solid #efe4f2;
}

.xh-small {
  display: block;
  font-size: 9.5px;
  color: #8b7a99;
  margin-bottom: 3px;
}

.xh-strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--test-ink);
  margin-bottom: 4px;
}

.xh-dim-list,
.xh-scene-list,
.xh-risk-list,
.xh-advice-list {
  display: grid;
  gap: 7px;
}

.xh-dim-row,
.xh-scene-card,
.xh-advice-item,
.xh-practice-card {
  padding: 9px;
  border-radius: 9px;
  background: #fcf9fe;
  border: 1px solid #efe4f2;
}

.xh-dim-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.xh-dim-top b {
  font-size: 13px;
  font-weight: 800;
  color: var(--test-ink);
}

.xh-dim-top span {
  font-size: 12px;
  font-weight: 900;
  color: #ec4899;
}

.xh-dim-track {
  height: 5px;
  border-radius: 99px;
  background: #efe4f2;
  overflow: hidden;
  margin-bottom: 5px;
}

.xh-dim-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f472b6, #ec4899 55%, #8b5cf6);
}

.xh-scene-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.xh-scene-head b {
  font-size: 13px;
  font-weight: 800;
  color: var(--test-ink);
}

.xh-scene-head span {
  font-size: 9.5px;
  color: #8b7a99;
}

.xh-risk-item {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 7px;
  align-items: start;
}

.xh-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #ec4899;
}

.xh-advice-item b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--test-ink);
  margin-bottom: 3px;
}

.xh-practice-card {
  margin-top: 7px;
  background: linear-gradient(160deg, #fff5fa, #f9f6ff);
}

.xh-practice-day {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ec4899;
  margin-bottom: 3px;
}

.xh-practice-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--test-ink);
  margin-bottom: 4px;
}

.xh-disclaimer {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11px;
  color: #8b7a99;
}
