/* 历史人物测试结果页样式（纯中文界面，水墨青石 + 朱砂印章） */
.hf-hero,
.hf-card {
  background: #ffffff;
  border: 1px solid #e4ddd0;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(30, 45, 51, 0.06);
}

.hf-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 22px 18px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 74, 57, 0.11), transparent 54%),
    radial-gradient(circle at 12% 96%, rgba(34, 61, 69, 0.08), transparent 46%),
    radial-gradient(circle at 88% 92%, rgba(176, 125, 50, 0.09), transparent 46%),
    linear-gradient(170deg, #fffdf8 0%, #ffffff 54%, #f4f7f6 100%);
}

.hf-hero::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(184, 74, 57, 0.12);
  pointer-events: none;
}

.hf-hero__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fbf1ee;
  border: 1px solid rgba(184, 74, 57, 0.26);
  color: #a33e2e;
  font-size: 12px;
  font-weight: 700;
}

.hf-hero__identity {
  position: relative;
  margin-top: 14px;
}

.hf-hero__name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hf-hero__name {
  margin: 0;
  font-size: 38px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #1e2d33;
  text-shadow: 0 2px 10px rgba(30, 45, 51, 0.06);
}

.hf-hero__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: linear-gradient(145deg, #c6503e, #a53828);
  color: #fffaf7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 8px rgba(184, 74, 57, 0.24), inset 0 0 0 1px rgba(255, 250, 247, 0.44);
}

.hf-hero__who {
  margin: 8px auto 0;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #556468;
  font-weight: 600;
}

.hf-hero__score-strip {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hf-hero__match {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff4f5;
  border: 1px solid #d1dde0;
  color: #223d45;
  font-size: 12.5px;
  font-weight: 800;
}

.hf-hero__combo-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #223d45, #2f545f);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(34, 61, 69, 0.16);
}

.hf-hero__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.hf-hero__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f7f2e8;
  border: 1px solid #e4dac6;
  color: #705528;
  font-size: 11.5px;
  font-weight: 700;
}

.hf-hero__quote-box {
  position: relative;
  margin-top: 16px;
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbf8f1 0%, #f7f3ea 100%);
  border: 1px solid #e7decb;
  text-align: center;
}

.hf-hero__quote-type {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(184, 74, 57, 0.10);
  color: #a33e2e;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 7px;
}

.hf-hero__quote {
  margin: 0 auto;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 800;
  color: #1e2d33;
}

.hf-hero__story {
  margin: 7px auto 0;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #5e6b6f;
}

/* ---------- 通用卡片头 ---------- */
.hf-card {
  margin-top: 14px;
}

.hf-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.hf-card__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1e2d33;
}

.hf-card__chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fbf1ee;
  border: 1px solid rgba(184, 74, 57, 0.24);
  color: #a33e2e;
  font-size: 12px;
  font-weight: 800;
}

.hf-card__sub {
  font-size: 12px;
  font-weight: 600;
  color: #6b787c;
}

/* ---------- 02 雷达图与分组条形图 ---------- */
.hf-radar-svg {
  display: block;
  width: 100%;
  max-width: 330px;
  margin: 0 auto 10px;
}

.hf-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hf-group-card {
  padding: 10px 10px 11px;
  border-radius: 14px;
  background: #faf8f4;
  border: 1px solid #e7e0d3;
}

.hf-group-card__title {
  font-size: 12px;
  font-weight: 800;
  color: #223d45;
  margin-bottom: 8px;
}

.hf-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hf-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}

.hf-bar__name {
  font-weight: 700;
  color: #2c3c42;
}

.hf-bar.is-peak .hf-bar__name {
  color: var(--bar-color);
  font-weight: 800;
}

.hf-bar__val {
  font-weight: 800;
  color: var(--bar-color);
  font-variant-numeric: tabular-nums;
}

.hf-bar__track {
  height: 7px;
  border-radius: 999px;
  background: #eae4d8;
  overflow: hidden;
}

.hf-bar__track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color);
}

/* ---------- 03 突出特点 ---------- */
.hf-portrait,
.hf-reality {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #314146;
}

.hf-top3-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hf-top3-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: #faf8f4;
  border: 1px solid #e7e0d3;
  border-left: 3.5px solid var(--item-color);
}

.hf-top3-card__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.hf-top3-card__rank {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--item-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.hf-top3-card__head strong {
  font-size: 14.5px;
  color: #1e2d33;
}

.hf-top3-card__group {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2dbce;
  font-size: 11px;
  color: #647175;
  font-weight: 600;
}

.hf-top3-card__pct {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--item-color);
  font-variant-numeric: tabular-nums;
}

.hf-top3-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4f5d61;
}

/* ---------- 04 吃亏点与建议 ---------- */
.hf-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hf-tip-box {
  padding: 12px;
  border-radius: 14px;
}

.hf-tip-box--weak {
  background: #fdf4f2;
  border: 1px solid #eed2cc;
}

.hf-tip-box--advice {
  background: #f1f6f5;
  border: 1px solid #d3e2e0;
}

.hf-tip-box__badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 800;
}

.hf-tip-box--weak .hf-tip-box__badge {
  color: #a33e2e;
}

.hf-tip-box--advice .hf-tip-box__badge {
  color: #245755;
}

.hf-tip-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2e3e43;
}

/* ---------- 05 同类型人物 ---------- */
.hf-twin {
  padding: 13px;
  border-radius: 16px;
  background: linear-gradient(155deg, #faf7f0 0%, #f4f7f6 100%);
  border: 1px solid #e5ded0;
}

.hf-twin__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hf-twin__name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #1e2d33;
}

.hf-twin__who {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #5b696d;
  font-weight: 600;
}

.hf-twin__badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dcd4c5;
  color: #705528;
  font-size: 11px;
  font-weight: 700;
}

.hf-twin__quote {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e7e0d3;
}

.hf-twin__quote span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #2f6f6d;
  margin-bottom: 2px;
}

.hf-twin__quote p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: #1e2d33;
}

.hf-twin__story {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4f5d61;
}

@media (max-width: 360px) {
  .hf-groups,
  .hf-tips-grid {
    grid-template-columns: 1fr;
  }
}
