/* 恋爱占有欲测试结果页样式（纯中文界面，第一张卡片居中，深海藏青 × 炽热琥珀红） */
.rpi-hero,
.rpi-card {
  background: #ffffff;
  border: 1px solid #e2e7f0;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(27, 40, 56, 0.06);
}

/* ---------- 01 头卡：紧凑居中排版，保留藏青与琥珀红渐变色调 ---------- */
.rpi-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 73, 92, 0.13), transparent 56%),
    radial-gradient(circle at 12% 96%, rgba(39, 76, 119, 0.10), transparent 48%),
    linear-gradient(170deg, #fff5f6 0%, #ffffff 52%, #eef3fa 100%);
}

.rpi-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdecef, #eef3fa);
  border: 1px solid rgba(214, 73, 92, 0.20);
  color: #d6495c;
  box-shadow: 0 4px 12px rgba(214, 73, 92, 0.14);
}

.rpi-hero__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: #c93d50;
}

.rpi-hero__mode {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf0fa;
  border: 1px solid #cbd9ee;
  color: #274c77;
  font-size: 10.5px;
  font-weight: 800;
}

.rpi-hero__num {
  margin-top: 4px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #274c77 0%, #d6495c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rpi-hero__tier-pill {
  width: 100%;
  max-width: 272px;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2f6fc, #fdf1f3);
  border: 1px solid rgba(214, 73, 92, 0.22);
  color: #243447;
  font-size: 13px;
  font-weight: 800;
}

.rpi-ruler {
  width: 100%;
  max-width: 292px;
  margin: 12px auto 0;
}

.rpi-ruler__track {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e9edf5;
}

.rpi-ruler__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #274c77 0%, #d6495c 100%);
}

.rpi-ruler__dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #d6495c;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(27, 40, 56, 0.28);
}

.rpi-ruler__ticks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #6c7888;
}

.rpi-hero__explain {
  width: 100%;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(39, 76, 119, 0.10);
  text-align: left;
}

.rpi-hero__explain-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.rpi-hero__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.4px solid #d6495c;
  color: #d6495c;
  font-size: 9.5px;
  font-weight: 800;
}

.rpi-hero__explain-head strong {
  font-size: 13px;
  font-weight: 800;
  color: #1b2838;
}

.rpi-hero__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.58;
  color: #556272;
}

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

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

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

.rpi-card__chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdf1f3;
  border: 1px solid rgba(214, 73, 92, 0.24);
  color: #b8374a;
  font-size: 12px;
  font-weight: 800;
}

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

/* ---------- 02 四维雷达与进度条 ---------- */
.rpi-radar-svg {
  display: block;
  width: 100%;
  max-width: 330px;
  margin: 0 auto 10px;
}

.rpi-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.rpi-bar {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafe;
  border: 1px solid #e4eaf3;
}

.rpi-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 5px;
}

.rpi-bar__name {
  font-weight: 700;
  color: #243447;
}

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

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

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

/* ---------- 03 四维拆解 ---------- */
.rpi-dim-list,
.rpi-beh-list,
.rpi-tip-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rpi-dim-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: #f8fafe;
  border: 1px solid #e4eaf3;
  border-left: 3.5px solid var(--item-color);
}

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

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

.rpi-dim-card__head strong {
  font-size: 14.5px;
  color: #1b2838;
}

.rpi-dim-card__tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dce3ee;
  font-size: 11px;
  color: #626e7e;
  font-weight: 600;
}

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

.rpi-dim-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #465464;
}

/* ---------- 04 高频表现 ---------- */
.rpi-beh-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: #fdf9fa;
  border: 1px solid #f2dce0;
}

.rpi-beh-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rpi-beh-card__num {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(214, 73, 92, 0.12);
  color: #b8374a;
  font-size: 11px;
  font-weight: 800;
}

.rpi-beh-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1b2838;
}

.rpi-beh-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #465464;
}

/* ---------- 05 调节建议 ---------- */
.rpi-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafe;
  border: 1px solid #e4eaf3;
}

.rpi-tip-item__num {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #274c77, #d6495c);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.rpi-tip-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: #344456;
}

@media (max-width: 360px) {
  .rpi-bars {
    grid-template-columns: 1fr;
  }
}
