/* 差异化画像实验室（learner-personas 页专属样式）
   设计语言与全局保持一致：主色 #5b5bd6、玻璃卡片、胶囊徽标。 */

.prs-root { padding: 8px 0 96px; }

/* ===== 画像卡片 ===== */
.prs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.prs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color, #e7e5e4);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.prs-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--prs-accent, #5b5bd6), transparent 82%);
  opacity: 0.85;
}
.prs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(17, 24, 39, 0.12));
}
.prs-card.is-active {
  border-color: var(--prs-accent, #5b5bd6);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--prs-accent, #5b5bd6) 22%, transparent);
}

.prs-active-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--prs-accent, #5b5bd6), color-mix(in srgb, var(--prs-accent, #5b5bd6) 72%, #1e1b4b));
}

.prs-head { display: flex; align-items: center; gap: 14px; }
.prs-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--prs-accent, #5b5bd6), color-mix(in srgb, var(--prs-accent, #5b5bd6) 60%, #312e81));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--prs-accent, #5b5bd6) 30%, transparent);
}
.prs-head-copy h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text-primary, #1c1917); }
.prs-head-copy p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-secondary, #78716c); line-height: 1.5; }

.prs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prs-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary, #57534e);
  background: var(--bg-light, #fafaf9);
  border: 1px solid var(--border-color, #e7e5e4);
}
.prs-chips i { font-size: 13px; color: var(--prs-accent, #5b5bd6); }

.prs-goal {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary, #57534e);
  background: var(--prs-accent-soft, rgba(91, 91, 214, 0.08));
}
.prs-goal i { color: var(--prs-accent, #5b5bd6); font-size: 15px; flex: none; margin-top: 1px; }

/* 维度条 */
.prs-dims { display: flex; flex-direction: column; gap: 9px; }
.prs-dim { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 10px; }
.prs-dim-label { font-size: 12px; color: var(--text-secondary, #78716c); }
.prs-dim-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-light, #f5f5f4);
  border: 1px solid var(--border-color, #e7e5e4);
  overflow: hidden;
}
.prs-dim-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--prs-accent, #5b5bd6), color-mix(in srgb, var(--prs-accent, #5b5bd6) 65%, #a5b4fc));
  transition: width 0.6s ease;
}
.prs-dim b { font-size: 12.5px; text-align: right; color: var(--text-primary, #1c1917); }
.prs-dim b.is-low { color: #d97706; }

/* 优势 / 短板标签 */
.prs-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.prs-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
}
.prs-tag i { font-size: 13px; }
.prs-tag.is-plus { color: #065f46; background: #d1fae5; }
.prs-tag.is-gap { color: #9a3412; background: #ffedd5; }

.prs-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color, #e7e5e4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.prs-level { font-size: 12px; color: var(--text-secondary, #78716c); }
.prs-level b { color: var(--prs-accent, #5b5bd6); }
.prs-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--prs-accent, #5b5bd6), color-mix(in srgb, var(--prs-accent, #5b5bd6) 70%, #1e1b4b));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--prs-accent, #5b5bd6) 32%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.prs-apply:hover { transform: translateY(-1px); filter: brightness(1.05); }
.prs-apply:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ===== 对比矩阵 ===== */
.prs-compare {
  margin-top: 26px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color, #e7e5e4);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}
.prs-compare-head, .prs-next-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.prs-compare-head i, .prs-next-head i {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 19px;
  color: #fff;
  background: var(--primary-gradient, linear-gradient(135deg, #5b5bd6, #4f46e5));
}
.prs-compare-head b, .prs-next-head b { display: block; font-size: 15px; color: var(--text-primary, #1c1917); }
.prs-compare-head span, .prs-next-head span { font-size: 12.5px; color: var(--text-secondary, #78716c); }

.prs-compare-scroll { overflow-x: auto; }
.prs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prs-table th, .prs-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color, #efeeec);
  vertical-align: top;
  color: var(--text-secondary, #57534e);
}
.prs-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #1c1917);
  background: var(--bg-light, #fafaf9);
}
.prs-table thead th.is-active-col { box-shadow: inset 0 -3px 0 var(--primary, #5b5bd6); }
.prs-table .prs-table-label { font-weight: 600; color: var(--text-primary, #1c1917); white-space: nowrap; }
.prs-table-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.prs-mini-bar {
  display: inline-block;
  width: 52px;
  height: 6px;
  margin: 3px 6px 3px 0;
  border-radius: 999px;
  background: var(--bg-light, #f5f5f4);
  border: 1px solid var(--border-color, #e7e5e4);
  overflow: hidden;
  vertical-align: middle;
}
.prs-mini-bar i { display: block; height: 100%; border-radius: 999px; }

/* ===== 验证路径 ===== */
.prs-next {
  margin-top: 26px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color, #e7e5e4);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}
.prs-next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prs-step {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color, #e7e5e4);
  background: var(--bg-light, #fafaf9);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.prs-step:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #5b5bd6);
  box-shadow: 0 8px 22px rgba(91, 91, 214, 0.14);
}
.prs-step em {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary, #5b5bd6);
  background: rgba(91, 91, 214, 0.1);
}
.prs-step b { display: block; font-size: 14px; color: var(--text-primary, #1c1917); margin-bottom: 4px; }
.prs-step span { font-size: 12.5px; line-height: 1.6; color: var(--text-secondary, #78716c); }

/* ===== 提示 toast ===== */
.prs-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(620px, 86vw);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.18);
}
.prs-toast i { font-size: 17px; color: #059669; flex: none; }

@media (max-width: 1080px) {
  .prs-grid { grid-template-columns: 1fr; }
  .prs-next-steps { grid-template-columns: 1fr; }
}
