/* 精神需求测试报告样式：冰川淡蓝实验室风（清透磨砂首卡 + 5×2 竖向柱状图配小图标 + 阶梯解读） */

/* 1. 清透冰蓝磨砂首卡（全居中） */
.needs-hero {
  padding: 13px 14px 12px;
  border: 1px solid #cce0f2;
  border-top: 3px solid #3b7cb8;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(74, 163, 181, 0.10), transparent 45%),
    radial-gradient(circle at 14% 18%, rgba(59, 124, 184, 0.10), transparent 48%),
    linear-gradient(160deg, #ffffff 0%, #f1f8fe 100%);
  box-shadow: 0 12px 26px -20px rgba(26, 42, 58, 0.22);
  text-align: center;
}

.needs-hero__eyebrow {
  display: inline-block;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: #eaf3fc;
  color: #2d6296;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.needs-hero__title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.needs-hero__name {
  margin: 0;
  color: #1a2a3a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.needs-hero__score {
  padding: 2.5px 9px;
  border-radius: 999px;
  background: linear-gradient(125deg, #2d6296 0%, #4aa3b5 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  align-self: center;
}

.needs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
}

.needs-hero__meta span {
  padding: 2.5px 9px;
  border: 1px solid #d5e4f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #4a637a;
  font-size: 10.5px;
  font-weight: 600;
}

.needs-hero__desc {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #e1edf7;
  color: #2c4156;
  font-size: 11.5px;
  line-height: 1.52;
}

/* 通用理性卡片 */
.needs-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d6e4f0;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 10px 24px -20px rgba(26, 42, 58, 0.16);
}

.needs-card--board {
  padding: 11px 11px 12px;
  background:
    radial-gradient(circle at 95% 5%, rgba(74, 163, 181, 0.08), transparent 44%),
    #ffffff;
}

.needs-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.needs-card__en {
  display: block;
  color: #849bb2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.needs-card__head h3 {
  margin: 1px 0 0;
  color: #1a2a3a;
  font-size: 14px;
  font-weight: 800;
}

.needs-card__chip {
  flex: none;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: #eaf3fc;
  color: #2d6296;
  font-size: 10px;
  font-weight: 700;
}

.needs-card__sub {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f6fb;
  color: #60758a;
  font-size: 10px;
  font-weight: 700;
}

/* 2. 两行五列竖向柱状图（底部配小图标） */
.needs-vbar-board {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.needs-vrow {
  padding: 10px 6px 9px;
  border-radius: 13px;
  border: 1px solid #e1edf7;
  background: linear-gradient(180deg, #f5fafe 0%, #ffffff 100%);
}

.needs-vrow__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
}

.needs-vcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.needs-vcol__score {
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: #5a748e;
  font-variant-numeric: tabular-nums;
}

.needs-vcol.is-top .needs-vcol__score {
  color: var(--bar-from, #2d6296);
  font-weight: 800;
}

.needs-vcol.is-main .needs-vcol__score {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--bar-from, #2d6296), var(--bar-to, #5a9ad4));
  box-shadow: 0 3px 8px -3px rgba(45, 98, 150, 0.45);
}

.needs-vcol__track {
  position: relative;
  width: 22px;
  height: 66px;
  padding: 2.5px;
  border-radius: 8px;
  background: #ebf3fa;
  border: 1px solid #d8e7f4;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.needs-vcol.is-top .needs-vcol__track,
.needs-vcol.is-main .needs-vcol__track {
  background: var(--bar-soft, #eaf3fc);
  border-color: color-mix(in srgb, var(--bar-from, #2d6296) 28%, transparent);
}

.needs-vcol__fill {
  width: 100%;
  border-radius: 5.5px;
  background: linear-gradient(180deg, var(--bar-to, #5a9ad4) 0%, var(--bar-from, #2d6296) 100%);
  opacity: 0.78;
  transition: height 0.35s ease;
}

.needs-vcol.is-top .needs-vcol__fill,
.needs-vcol.is-main .needs-vcol__fill {
  opacity: 1;
}

.needs-vcol__meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.needs-vcol__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--bar-soft, #eaf3fc);
  color: var(--bar-from, #2d6296);
  border: 1px solid color-mix(in srgb, var(--bar-from, #2d6296) 14%, transparent);
}

.needs-vcol__icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.needs-vcol__name {
  color: #4a637a;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.needs-vcol.is-top .needs-vcol__name,
.needs-vcol.is-main .needs-vcol__name {
  color: #1a2a3a;
  font-weight: 800;
}

/* 3. 前三主导需求 */
.needs-top3 {
  display: grid;
  gap: 8px;
}

.needs-top3-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e1ecf6;
  border-radius: 12px;
  background: #f8fbfe;
}

.needs-top3-item:first-child {
  border-color: rgba(59, 124, 184, 0.3);
  background: linear-gradient(135deg, #eef6fd 0%, #f7fbfd 100%);
}

.needs-top3-item__idx {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #dceaf7;
  color: #2d6296;
  font-size: 10.5px;
  font-weight: 800;
}

.needs-top3-item:first-child .needs-top3-item__idx {
  background: #2d6296;
  color: #ffffff;
}

.needs-top3-item__body {
  flex: 1;
  min-width: 0;
}

.needs-top3-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.needs-top3-item__head strong {
  color: #1a2a3a;
  font-size: 13px;
  font-weight: 800;
}

.needs-top3-item__head span {
  color: #2d6296;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.needs-top3-item__body p {
  margin: 4px 0 0;
  color: #445b70;
  font-size: 11.5px;
  line-height: 1.52;
}

/* 4. 相对最低需求 */
.needs-low-box {
  display: grid;
  gap: 8px;
}

.needs-low-box__main {
  padding: 10px 11px;
  border: 1px solid #dce8f3;
  border-radius: 12px;
  background: #f7fafd;
}

.needs-low-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.needs-low-box__head strong {
  color: #1a2a3a;
  font-size: 13.5px;
  font-weight: 800;
}

.needs-low-box__head span {
  color: #4aa3b5;
  font-size: 12.5px;
  font-weight: 800;
}

.needs-low-box__main p {
  margin: 5px 0 0;
  color: #4a637a;
  font-size: 11.5px;
  line-height: 1.55;
}

.needs-low-box__tip {
  padding: 9px 11px;
  border: 1px dashed #b9d4ea;
  border-radius: 12px;
  background: #f0f8fc;
}

.needs-low-box__tip span {
  display: inline-block;
  margin-bottom: 3px;
  color: #267b84;
  font-size: 10px;
  font-weight: 800;
}

.needs-low-box__tip p {
  margin: 0;
  color: #2c4156;
  font-size: 11.5px;
  line-height: 1.52;
}

/* 5. 本周行动建议 & 均衡度 */
.needs-actions {
  display: grid;
  gap: 7px;
}

.needs-action-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8.5px 10px;
  border: 1px solid #e1ecf6;
  border-radius: 11px;
  background: #f8fbfe;
}

.needs-action-row__num {
  flex: none;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eaf3fc;
  color: #2d6296;
  font-size: 10px;
  font-weight: 800;
}

.needs-action-row strong {
  display: block;
  color: #1a2a3a;
  font-size: 12px;
  font-weight: 700;
}

.needs-action-row p {
  margin: 3px 0 0;
  color: #445b70;
  font-size: 11.5px;
  line-height: 1.52;
}

.needs-balance {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #eef5fc;
  color: #2d4c6b;
  font-size: 11.5px;
  line-height: 1.55;
}
