/* 股权人格 MBTI 测试 · 样式（复用全局 --bg/--ink/--accent 等变量） */
.mbti-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 80px;
  min-height: 60vh;
}

/* 开场 */
.mbti-intro { text-align: center; padding: 24px 0; }
.mbti-title {
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 10px 0 18px;
}
.mbti-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 26px;
}
.mbti-sub b { color: var(--ink); }
.mbti-points {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin: 0 0 30px;
}
.mbti-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  background: var(--bg-alt);
  color: var(--ink);
}
.mbti-start { font-size: 18px; padding: 16px 40px; }
.mbti-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}
.mbti-note b { color: var(--ink); }

/* 进度 + 题目 */
.mbti-progress {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.mbti-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #d8a85a);
  transition: width 0.3s ease;
}
.mbti-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.mbti-q {
  font-size: clamp(22px, 4.4vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 26px;
}
.mbti-opts { display: flex; flex-direction: column; gap: 14px; }
.mbti-opt {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg);
  cursor: pointer;
  font-family: inherit; font-size: 16px; color: var(--ink);
  transition: transform 0.15s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.mbti-opt:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  background: #fffdf8;
}
.mbti-opt__no {
  flex: none;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 14px;
}
.mbti-opt__t { line-height: 1.5; }
.mbti-back {
  margin-top: 22px;
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 14px; font-family: inherit;
}
.mbti-back:hover { color: var(--ink); }

/* 结果卡 */
.mbti-result { animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mbti-result__card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #fff), #fff);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.mbti-result__avatar {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  margin-bottom: 18px;
}
.mbti-result__code {
  display: inline-block;
  font-weight: 900; letter-spacing: 0.16em;
  color: var(--accent-ink);
  font-size: 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}
.mbti-result__name {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 900;
  margin-bottom: 8px;
}
.mbti-result__name span { font-size: 0.5em; color: var(--muted); font-weight: 700; }
.mbti-result__tag {
  color: var(--ink); font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
}
.mbti-result__desc {
  color: var(--muted); font-size: 16px; line-height: 1.8;
  max-width: 560px; margin: 0 auto 22px; text-align: left;
}
.mbti-result__advice {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px; line-height: 1.7; color: var(--ink);
  text-align: left; margin-bottom: 16px;
}
.mbti-result__advice-k {
  display: inline-block; font-weight: 800; color: var(--accent-ink);
  margin-right: 8px;
}
.mbti-result__kw {
  font-size: 14px; color: var(--muted); margin-bottom: 20px;
}
.mbti-result__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mbti-link {
  font-size: 14px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; transition: all 0.18s;
}
.mbti-link:hover { border-color: var(--accent); color: var(--accent-ink); }

/* 分享卡（可截图） */
.mbti-sharecard {
  margin: 26px 0;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a0a0a, #1a140a);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, #000);
}
.mbti-sharecard img {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: contain; background: #fff; flex: none;
  border: 2px solid var(--accent);
}
.mbti-sharecard__site { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.mbti-sharecard__type { font-size: 22px; font-weight: 900; margin: 2px 0; }
.mbti-sharecard__tag { font-size: 14px; color: rgba(255,255,255,0.82); }
.mbti-sharecard__url { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* 操作按钮 */
.mbti-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 8px 0 30px; }
.mbti-actions .btn { font-size: 16px; }

/* 分布统计 */
.mbti-stats {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  background: var(--bg-alt);
}
.mbti-stats__title { font-size: 18px; font-weight: 800; margin-bottom: 18px; text-align: center; }
.mbti-stats__loading { color: var(--muted); text-align: center; font-size: 14px; }
.mbti-stats__note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.mbti-bar {
  display: grid;
  grid-template-columns: 130px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 13px;
}
.mbti-bar__label { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbti-bar__track { height: 14px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.mbti-bar__fill { display: block; height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.mbti-bar__val { text-align: right; color: var(--muted); font-weight: 700; }
.mbti-bar--me .mbti-bar__label { color: var(--accent-ink); }
.mbti-bar--me .mbti-bar__track { box-shadow: 0 0 0 2px var(--accent); }

.mbti-from { margin-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }
.mbti-from a { color: var(--ink); font-weight: 600; }

/* 分享弹层 */
.mbti-share-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.mbti-share-panel {
  position: relative;
  background: #fff; border-radius: 18px;
  padding: 30px 26px; max-width: 440px; width: 100%;
  box-shadow: 0 30px 70px rgba(0,0,0,0.3);
}
.mbti-share-panel h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.mbti-share-tip { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.mbti-share-tip b { color: var(--ink); }
.mbti-share-text {
  width: 100%; height: 130px; resize: none;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-family: inherit; font-size: 14px; line-height: 1.7;
  color: var(--ink); margin-bottom: 16px; background: var(--bg-alt);
}
.mbti-share-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 26px; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.mbti-share-close:hover { color: var(--ink); }

/* 页脚（mbti 页） */
.footer--mbti { max-width: 760px; flex-direction: column; gap: 6px; text-align: center; }
.footer--mbti__from { font-size: 12px; }

/* 选项：已选高亮（返回检查时可见） */
.mbti-opt.is-chosen { border-color: var(--accent, #b8893b); background: rgba(184, 137, 59, 0.10); }
.mbti-opt.is-chosen .mbti-opt__no { background: var(--accent, #b8893b); color: #fff; }

/* 答完确认页 */
.mbti-confirm { max-width: 560px; margin: 46px auto; text-align: center; padding: 42px 28px; animation: mbti-fade .35s ease; }
.mbti-confirm__badge { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; background: linear-gradient(135deg, var(--accent, #b8893b), #8a5a1f); box-shadow: 0 10px 30px rgba(184, 137, 59, .35); }
.mbti-confirm__title { font-size: 28px; font-weight: 800; margin: 6px 0 12px; }
.mbti-confirm__sub { color: var(--muted); line-height: 1.75; font-size: 15px; }
.mbti-confirm__sub b { color: var(--ink); }
.mbti-confirm__note { margin-top: 14px; font-size: 12.5px; color: #9aa0a6; line-height: 1.6; }
.mbti-actions--center { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 24px; }
.mbti-actions--center .btn { min-width: 268px; }

/* 载入等待页 */
.mbti-loading { max-width: 460px; margin: 72px auto; text-align: center; padding: 30px; animation: mbti-fade .35s ease; }
.mbti-spinner { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; border: 5px solid rgba(184, 137, 59, .2); border-top-color: #b8893b; animation: mbti-spin .9s linear infinite; }
@keyframes mbti-spin { to { transform: rotate(360deg); } }
.mbti-loading__title { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.mbti-loading__step { color: var(--muted); font-size: 14px; min-height: 20px; }
.mbti-loading__bar { margin: 18px auto 0; max-width: 320px; height: 8px; border-radius: 999px; background: rgba(184, 137, 59, .15); overflow: hidden; }
.mbti-loading__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b8893b, #e0b35e); border-radius: 999px; transition: width .3s ease; }

/* 结果页淡入 */
.mbti-result { animation: mbti-fade .4s ease; }
@keyframes mbti-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .mbti-bar { grid-template-columns: 96px 1fr 44px; gap: 8px; font-size: 12px; }
  .mbti-result__card { padding: 28px 18px; }
  .mbti-sharecard { flex-direction: column; text-align: center; }
}
