/* 人格偏好实验室（body.persona）— 叠在 home.css 之上 */

.p-intro {
  padding: 48px 0 8px;
}

.p-intro h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.p-intro p {
  max-width: 42em;
  margin: 10px 0 0;
  color: var(--h-muted);
  text-wrap: pretty;
}

.p-disclaimer {
  max-width: 42em;
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--h-muted);
  background: var(--h-ground-2);
  border-radius: 6px;
  border: 1px solid rgba(26, 28, 30, 0.08);
}

/* 双 CTA */
.p-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.p-btn--primary {
  background: var(--h-ink);
  color: #f5f5f2;
}

.p-btn--primary:hover,
.p-btn--primary:focus-visible {
  background: var(--h-accent);
  color: #fff;
}

.p-btn--secondary {
  background: transparent;
  color: var(--h-ink);
  border-color: rgba(26, 28, 30, 0.18);
}

.p-btn--secondary:hover,
.p-btn--secondary:focus-visible {
  border-color: var(--h-accent);
  color: var(--h-accent);
}

.p-link-block {
  margin-top: 24px;
  font-size: 14px;
}

/* 分馆 */
.p-pavilions {
  margin-top: 56px;
}

.p-pavilions h2 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--h-faint);
}

.p-pavilion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-pavilion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 15px;
}

.p-pavilion + .p-pavilion {
  border-top: 1px solid rgba(26, 28, 30, 0.08);
}

.p-pavilion__name {
  font-weight: 600;
}

.p-pavilion__badge {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--h-faint);
}

.p-pavilion--soon {
  color: var(--h-muted);
}

.p-pavilion--soon .p-pavilion__name {
  font-weight: 500;
  color: var(--h-muted);
}

.p-pavilion--soon[aria-disabled="true"] {
  pointer-events: none;
  user-select: none;
}

/* —— 短测 —— */
.p-quiz {
  padding: 40px 0 32px;
  max-width: 36em;
}

.p-quiz__progress {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--h-faint);
}

.p-quiz__stem {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

.p-quiz__options {
  margin: 0;
  padding: 0;
  border: none;
}

.p-quiz__options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.p-quiz__likert {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-quiz__option {
  display: block;
  cursor: pointer;
}

.p-quiz__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.p-quiz__option span {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid rgba(26, 28, 30, 0.12);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.12s ease-out, background-color 0.12s ease-out;
}

.p-quiz__option:hover span {
  border-color: rgba(14, 111, 113, 0.35);
}

.p-quiz__option input:focus-visible + span {
  outline: 2px solid var(--h-accent);
  outline-offset: 2px;
}

.p-quiz__option input:checked + span {
  border-color: var(--h-accent);
  background: rgba(14, 111, 113, 0.08);
  font-weight: 600;
}

.p-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.p-quiz__hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--h-faint);
  min-height: 1.25em;
}

.p-quiz__hint--error {
  color: #8b3a34;
}

.p-chrome-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 28, 30, 0.08);
  font-size: 12px;
  line-height: 1.55;
  color: var(--h-faint);
}

.p-chrome-foot p + p {
  margin-top: 10px;
}

/* —— 自选 —— */
.p-pick {
  padding: 40px 0 32px;
}

.p-pick__intro {
  max-width: 36em;
  margin-bottom: 24px;
  color: var(--h-muted);
  font-size: 14px;
}

.p-pick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.p-pick__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(26, 28, 30, 0.12);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.12s ease-out, background-color 0.12s ease-out;
}

.p-pick__btn:hover,
.p-pick__btn:focus-visible {
  border-color: var(--h-accent);
  background: rgba(14, 111, 113, 0.06);
}

a.p-pick__btn {
  text-decoration: none;
  color: inherit;
}

.p-pick__code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-pick__nick {
  font-size: 13px;
  color: var(--h-muted);
  line-height: 1.35;
}

.p-pick__more {
  margin-top: 28px;
  font-size: 14px;
}

/* —— 结果页（render-result.mjs）—— */
.p-result {
  padding: 40px 0 24px;
  max-width: 40em;
}

.p-result__title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.p-result__code {
  color: var(--h-accent);
}

.p-result__source-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--h-faint);
}

.p-result__section {
  margin-top: 40px;
}

.p-result__section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.p-result__roles-hint {
  margin: -6px 0 12px;
  font-size: 13px;
  color: var(--h-faint);
}

.p-result__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-result__list-item {
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--h-muted);
  border-top: 1px solid rgba(26, 28, 30, 0.08);
}

.p-result__list-item:first-child {
  border-top: none;
  padding-top: 0;
}

.p-result__strength-label,
.p-result__role-name {
  display: block;
  color: var(--h-ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.p-result__strength-why,
.p-result__role-why {
  display: block;
}

.p-result__pep {
  margin: 0;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--h-ink);
  background: var(--h-ground-2);
  border-left: 3px solid var(--h-accent);
  border-radius: 0 6px 6px 0;
}

/* 倾向光谱条 */
.p-result__scores {
  margin-top: 32px;
}

.p-result__axis {
  margin-bottom: 18px;
}

.p-result__axis-label {
  display: inline-block;
  min-width: 4.5em;
  font-size: 12px;
  color: var(--h-faint);
}

.p-result__axis-bar {
  display: flex;
  height: 10px;
  margin: 6px 0;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(26, 28, 30, 0.06);
}

.p-result__axis-fill {
  display: block;
  height: 100%;
}

.p-result__axis-fill--left {
  background: var(--h-ink);
}

.p-result__axis-fill--right {
  background: var(--h-accent);
}

.p-result__axis-lean {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--h-faint);
  padding: 2px 6px;
  border: 1px solid rgba(26, 28, 30, 0.1);
  border-radius: 4px;
}

.p-result__footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 28, 30, 0.08);
}

.p-result__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
  font-size: 14px;
}

.p-result__link {
  color: var(--h-accent);
  text-decoration: none;
  font-weight: 500;
}

.p-result__link:hover,
.p-result__link:focus-visible {
  text-decoration: underline;
}

.p-result__disclaimer,
.p-result__trademark {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--h-faint);
}

.p-result__trademark {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .p-intro {
    padding-top: 24px;
  }

  .p-intro h1 {
    font-size: 32px;
  }

  .p-pick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-result__title {
    font-size: 26px;
  }
}