/* ============================================================
   性格测试 H5 · 移动端优先样式
   ============================================================ */

:root {
  --coral: #ff6b5b;
  --coral-deep: #ef4f3d;
  --coral-soft: #ffe8e3;
  --cream: #fff8f3;
  --cream-2: #fdf1ea;
  --ink: #241f1c;
  --ink-2: #5c524b;
  --ink-3: #95877e;
  --line: #efe3da;
  --white: #ffffff;
  --wx: #07c160;
  --accent: #ff6b5b;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(80, 50, 35, 0.05);
  --shadow-md: 0 8px 28px rgba(80, 50, 35, 0.08);
  --shadow-lg: 0 18px 50px rgba(80, 50, 35, 0.13);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.app {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
}

/* ---------------- 屏幕切换 ---------------- */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.36s ease;
}

.screen.is-active {
  display: flex;
  opacity: 1;
}

.screen.is-entering {
  animation: screenIn 0.42s cubic-bezier(0.22, 0.8, 0.35, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- 通用按钮 ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.972);
}

.btn--lg {
  width: 100%;
  height: 56px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  box-shadow: 0 10px 26px rgba(239, 79, 61, 0.32);
}

.btn--lg:active {
  box-shadow: 0 5px 14px rgba(239, 79, 61, 0.28);
}

.btn__arrow {
  width: 20px;
  height: 20px;
}

.btn--primary[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   封面
   ============================================================ */

.cover {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-t) + 24px) 26px calc(var(--safe-b) + 30px);
  background: radial-gradient(120% 80% at 50% 0%, #fff3ec 0%, var(--cream) 62%);
}

.cover__glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 138, 118, 0.28) 0%, rgba(255, 138, 118, 0) 62%);
  filter: blur(18px);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.cover__inner {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.cover__badge {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 107, 91, 0.22);
  color: var(--coral-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: var(--shadow-sm);
}

.cover__title {
  font-size: clamp(32px, 9.2vw, 42px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.cover__title .hl {
  position: relative;
  color: var(--coral-deep);
  white-space: nowrap;
}

.cover__title .hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 10px;
  background: rgba(255, 107, 91, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.cover__desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.cover__meta {
  display: flex;
  gap: 10px;
  margin: 30px 0 34px;
  list-style: none;
}

.cover__meta li {
  flex: 1;
  padding: 15px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.cover__meta b {
  display: block;
  font-size: 23px;
  font-weight: 800;
  color: var(--coral-deep);
  line-height: 1.1;
}

.cover__meta span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

.cover__tip {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ============================================================
   答题
   ============================================================ */

.screen--quiz {
  padding: calc(var(--safe-t) + 14px) 0 var(--safe-b);
  background: var(--cream);
}

.quiz__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 0;
  flex: 0 0 auto;
}

.quiz__back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.quiz__back:active {
  background: var(--cream-2);
}

.quiz__back svg {
  width: 22px;
  height: 22px;
}

.quiz__back.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.quiz__progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #f2e5dc;
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a86, var(--coral-deep));
  transition: width 0.42s cubic-bezier(0.3, 0.9, 0.4, 1);
}

.quiz__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: right;
}

.quiz__count span:first-child {
  color: var(--coral-deep);
  font-size: 15px;
}

.quiz__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quiz__card {
  padding-top: clamp(30px, 9vh, 62px);
  padding-bottom: 26px;
}

.quiz__index {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--coral);
  margin-bottom: 14px;
}

.quiz__question {
  font-size: clamp(21px, 6vw, 25px);
  line-height: 1.62;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.quiz__card.is-anim {
  animation: qIn 0.4s cubic-bezier(0.22, 0.8, 0.35, 1) both;
}

@keyframes qIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-bottom: calc(30px + var(--safe-b));
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  animation: optIn 0.4s cubic-bezier(0.22, 0.8, 0.35, 1) both;
}

.opt:nth-child(1) { animation-delay: 0.03s; }
.opt:nth-child(2) { animation-delay: 0.07s; }
.opt:nth-child(3) { animation-delay: 0.11s; }
.opt:nth-child(4) { animation-delay: 0.15s; }
.opt:nth-child(5) { animation-delay: 0.19s; }

@keyframes optIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.opt:active {
  transform: scale(0.985);
  border-color: var(--coral);
  background: #fffaf8;
}

.opt.is-picked {
  border-color: var(--coral);
  background: linear-gradient(135deg, #fff6f3, #ffeae5);
  box-shadow: 0 6px 18px rgba(255, 107, 91, 0.16);
}

.opt__dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e6d8cf;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.opt.is-picked .opt__dot {
  border-color: var(--coral-deep);
  background: var(--coral-deep);
}

.opt.is-picked .opt__dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ============================================================
   分析中
   ============================================================ */

.screen--loading {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #fff2ec 0%, var(--cream) 68%);
}

.analyzing {
  text-align: center;
  padding: 0 30px;
}

.analyzing__ring {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--coral) 0%, rgba(255, 107, 91, 0.05) 62%);
  animation: spin 1.5s linear infinite;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(255, 107, 91, 0.2);
}

.analyzing__ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--cream);
}

.analyzing__ring-inner {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3a3, var(--coral-deep));
  box-shadow: 0 6px 16px rgba(239, 79, 61, 0.3);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.88); }
}

.analyzing__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.analyzing__step {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
  min-height: 20px;
  transition: opacity 0.3s ease;
}

.analyzing__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}

.analyzing__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.35;
  animation: dotBounce 1.2s ease-in-out infinite;
}

.analyzing__dots i:nth-child(2) { animation-delay: 0.15s; }
.analyzing__dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}

/* ============================================================
   结果页
   ============================================================ */

.screen--result {
  overflow: hidden;
}

.result {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(30px + var(--safe-b));
}

.result__hero {
  position: relative;
  padding: calc(var(--safe-t) + 34px) 24px 30px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(115% 90% at 50% -10%, var(--accent-soft, #fff1ed) 0%, var(--cream) 72%);
}

.result__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow, rgba(255, 107, 91, 0.22)), transparent 62%);
  pointer-events: none;
}

.result__code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent, var(--coral-deep));
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.result__code .emoji {
  font-size: 17px;
  letter-spacing: 0;
}

.result__name {
  position: relative;
  margin-top: 20px;
  font-size: clamp(30px, 8.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.result__tagline {
  position: relative;
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 0 8px;
}

.result__keywords {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}

.result__keywords li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

/* --- 四维 --- */

.block {
  margin: 0 20px 16px;
  padding: 22px 20px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.block__title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent, var(--coral));
}

.block__hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 20px;
  line-height: 1.6;
}

.dim {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dim:last-child {
  margin-bottom: 0;
}

.dim__letter {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  color: #d8c9bf;
  transition: color 0.3s ease;
}

.dim__letter.is-on {
  color: var(--accent, var(--coral-deep));
}

.dim__track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: #f4e9e1;
  overflow: hidden;
}

.dim__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd0c7, var(--accent, var(--coral)));
  transition: width 1s cubic-bezier(0.3, 0.9, 0.4, 1);
}

.dim__mid {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: rgba(0, 0, 0, 0.07);
}

.dim__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.dim__pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-2);
}

/* --- 摘要 --- */

.summary p {
  font-size: 15px;
  line-height: 1.92;
  color: var(--ink-2);
  letter-spacing: 0.1px;
}

/* --- 付费墙 --- */

.lock {
  position: relative;
  margin: 8px 20px 16px;
  padding: 26px 20px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #fffdfc 0%, #fff6f1 100%);
  border: 1px solid #ffe6dd;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lock__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 91, 0.1);
  color: var(--coral-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.lock__badge svg {
  width: 13px;
  height: 13px;
}

.lock__title {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.lock__desc {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.lock__preview {
  position: relative;
  height: 118px;
  margin: 18px 0 6px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid #f6e8e0;
}

.lock__preview-inner {
  padding: 16px;
  filter: blur(4.5px);
  opacity: 0.72;
  user-select: none;
  pointer-events: none;
}

.lock__preview-inner p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.lock__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 253, 252, 0.28) 0%, #fff9f5 88%);
}

.lock__items {
  list-style: none;
  margin: 16px 0 20px;
}

.lock__items li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.lock__items li:last-child {
  margin-bottom: 0;
}

.lock__items li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.lock__cta {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  box-shadow: 0 10px 26px rgba(239, 79, 61, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock__cta:active {
  transform: scale(0.975);
}

.lock__note {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* --- 完整报告 --- */

.report__lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  white-space: pre-line;
}

.card-item {
  padding: 15px 16px;
  margin-bottom: 10px;
  border-radius: var(--r-md);
  background: #fdfaf8;
  border: 1px solid #f5eae3;
}

.card-item:last-child {
  margin-bottom: 0;
}

.card-item__t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-item__n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--accent, var(--coral));
}

.card-item__d {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.career-list {
  list-style: none;
}

.career-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #f0e4dc;
}

.career-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.career-list li:first-child {
  padding-top: 0;
}

.career-list__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent, var(--coral));
}

.career-list__t {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.career-list__d {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

.growth-list {
  list-style: none;
  counter-reset: g;
}

.growth-list li {
  counter-increment: g;
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.growth-list li:last-child {
  margin-bottom: 0;
}

.growth-list li::before {
  content: counter(g);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft, #ffe8e3);
  color: var(--accent, var(--coral-deep));
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.match-row:last-child {
  margin-bottom: 0;
}

.match-tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.match-tag--good {
  background: #e8f7ef;
  color: #1f9c62;
}

.match-tag--bad {
  background: #fdeceb;
  color: #d9534a;
}

.match-note {
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
}

.report-foot {
  margin: 6px 20px 0;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: #fbf4ef;
  text-align: center;
}

.report-foot p {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
}

.report-foot .order-no {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.result__actions {
  display: flex;
  gap: 10px;
  margin: 18px 20px 0;
}

.btn--ghost {
  flex: 1;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:active {
  background: #fdf6f2;
}

/* 解锁动画 */
.unlock-anim {
  animation: unlockIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes unlockIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   支付面板
   ============================================================ */

.mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 12, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 40;
}

.mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  transform: translate(-50%, 100%);
  transition: transform 0.42s cubic-bezier(0.22, 0.9, 0.3, 1);
  background: var(--white);
  border-radius: 26px 26px 0 0;
  padding: 10px 22px calc(18px + var(--safe-b));
  z-index: 50;
  box-shadow: 0 -14px 44px rgba(60, 35, 22, 0.16);
  max-height: 88vh;
  overflow-y: auto;
}

.sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet__handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #eadfd8;
  margin: 0 auto 18px;
}

.sheet__head {
  text-align: center;
}

.sheet__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--coral-deep);
  background: linear-gradient(140deg, #fff1ec, #ffe1d9);
}

.sheet__icon svg {
  width: 26px;
  height: 26px;
}

.sheet__title {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.sheet__sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.sheet__list {
  list-style: none;
  margin: 20px 0 18px;
  padding: 16px 16px;
  background: #fdfaf8;
  border: 1px solid #f5eae3;
  border-radius: var(--r-md);
}

.sheet__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.sheet__list li:last-child {
  margin-bottom: 0;
}

.sheet__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 4.5px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(-45deg);
}

.sheet__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 16px;
}

.sheet__currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--coral-deep);
}

.sheet__amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--coral-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sheet__origin {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.btn--pay {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: var(--wx);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(7, 193, 96, 0.28);
}

.btn--pay:active {
  background: #06ad56;
}

.btn--pay.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.btn__wx {
  width: 22px;
  height: 22px;
}

.btn--pay.is-mock {
  background: linear-gradient(135deg, #ff8b78, var(--coral-deep));
  box-shadow: 0 8px 22px rgba(239, 79, 61, 0.28);
}

.sheet__foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.sheet__close {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22%;
  transform: translate(-50%, 12px);
  max-width: 76vw;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(36, 31, 28, 0.9);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
  z-index: 90;
  backdrop-filter: blur(4px);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   小屏适配
   ============================================================ */

@media (max-height: 700px) {
  .cover__meta {
    margin: 22px 0 26px;
  }
  .quiz__card {
    padding-top: 26px;
    padding-bottom: 20px;
  }
  .quiz__question {
    font-size: 21px;
  }
  .opt {
    min-height: 54px;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   封面 · 我的报告入口
   ============================================================ */

.cover__history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cover__history:active {
  background: rgba(255, 255, 255, 0.7);
}

.cover__history svg {
  width: 16px;
  height: 16px;
  color: var(--coral);
}

.cover__history-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.cover__history-badge[hidden] {
  display: none;
}

/* ============================================================
   我的报告（设备 ID / 支付账号 / 历史结果）
   ============================================================ */

.screen--history {
  padding-top: var(--safe-t);
  background: var(--cream);
}

.hist__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 20px 10px;
}

.hist__back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  flex: 0 0 auto;
}

.hist__back:active {
  background: var(--cream-2);
}

.hist__back svg {
  width: 22px;
  height: 22px;
}

.hist__title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.hist__spacer {
  width: 34px;
  flex: 0 0 auto;
}

.hist__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 20px calc(34px + var(--safe-b));
}

.idcard {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.idcard__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  font-size: 12.5px;
}

.idcard__k {
  color: var(--ink-3);
  flex: 0 0 auto;
}

.idcard__v {
  color: var(--ink-2);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idcard__v--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.6px;
  color: var(--coral-deep);
}

.acct {
  margin-top: 14px;
  padding: 20px 18px 18px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid #f7ece5;
}

.acct--bound {
  border-color: #d9f0e3;
  background: linear-gradient(170deg, #f6fdf9 0%, #ffffff 62%);
}

.acct__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.acct__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 4px rgba(34, 181, 115, 0.12);
}

.acct__desc {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.acct__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  background: #f1faf5;
  border: 1px dashed #9ed8b9;
}

.acct__label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.acct__code strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  letter-spacing: 2.2px;
  color: #167a4c;
}

.acct__copy {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfe4cf;
  color: #167a4c;
  font-size: 12.5px;
  font-weight: 700;
}

.acct__hint {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.acct__unbind {
  display: block;
  margin-top: 12px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acct__form {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.acct__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fffdfb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  outline: none;
}

.acct__input:focus {
  border-color: var(--coral);
}

.acct__input::placeholder {
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

.acct__submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--coral-deep);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.acct__wx {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e9f9ef;
  color: #12934f;
  font-size: 13px;
  font-weight: 700;
}

.hist__section {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 2px 12px;
  font-size: 14px;
  font-weight: 700;
}

.hist__section small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.hitem {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-bottom: 10px;
  padding: 15px 15px;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid #f4e8e1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease;
}

.hitem:active {
  transform: scale(0.985);
}

.hitem__emoji {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: var(--cream-2);
}

.hitem__main {
  flex: 1;
  min-width: 0;
}

.hitem__top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hitem__name {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hitem__badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.hitem__badge--paid {
  background: #e6f7ee;
  color: #178a54;
}

.hitem__badge--unpaid {
  background: #f3ece7;
  color: var(--ink-3);
}

.hitem__tagline,
.hitem__meta {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hitem__tagline {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.hitem__meta {
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.hitem__arrow {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #c9bbb1;
}

.hist__empty {
  padding: 42px 20px 20px;
  text-align: center;
}

.hist__empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--coral);
  box-shadow: var(--shadow-md);
}

.hist__empty-icon svg {
  width: 28px;
  height: 28px;
}

.hist__empty p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.hist__empty .btn {
  width: auto;
  padding: 0 32px;
  margin-top: 20px;
}

/* ============================================================
   16 型人格详解（免费公开内容）
   ============================================================ */

/* ---- 封面入口 ---- */
.cover__guide {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  padding: 13px 14px;
  text-align: left;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease;
}

.cover__guide:active { transform: scale(0.985); }

.cover__guide-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--cream-2);
  color: var(--coral);
}

.cover__guide-icon svg { width: 22px; height: 22px; }

.cover__guide-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cover__guide-main strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.cover__guide-main small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.cover__guide-arrow {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #c9bbb1;
}

/* ---- 通用头部与滚动容器 ---- */
.screen--guides,
.screen--guide {
  padding-top: var(--safe-t);
  background: var(--cream);
}

.gbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(239, 227, 218, 0.7);
  background: rgba(255, 248, 243, 0.94);
}

.gbar__back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  flex: 0 0 auto;
}

.gbar__back:active { background: var(--cream-2); }
.gbar__back svg { width: 22px; height: 22px; }

.gbar__title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gbar__spacer { width: 34px; flex: 0 0 auto; }

.gbody {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px calc(34px + var(--safe-b));
}

/* ---- 顶部介绍 ---- */
.gintro {
  padding: 20px 18px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #fff 0%, #fff4ee 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.gintro__badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.gintro h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.gintro p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.gintro p strong { color: var(--ink); font-weight: 700; }

.gintro__axes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.gintro__axes span {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 107, 91, 0.08);
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 600;
}

/* ---- 搜索 / 筛选 / 展开 ---- */
.gtools { margin-top: 18px; }

.gsearch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
}

.gsearch svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink-3); }

.gsearch input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: none;
  outline: none;
  background: none;
  font-size: 13.5px;
  color: var(--ink);
  -webkit-appearance: none;
}

.gsearch input::placeholder { color: var(--ink-3); }

.gfilters {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.gfilters::-webkit-scrollbar { display: none; }

.gfilter {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.gfilter.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gexpand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border-radius: var(--r-sm);
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 700;
}

.gexpand svg { width: 16px; height: 16px; transition: transform 0.22s ease; }
.gexpand.is-on svg { transform: rotate(180deg); }

/* ---- 分组标题 ---- */
.ggroup {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 2px 11px;
  font-size: 14px;
  font-weight: 800;
}

.ggroup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  align-self: center;
}

.ggroup small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }

/* ---- 类型卡片 ---- */
.gcard {
  margin-bottom: 11px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid #f4e8e1;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.gcard__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 15px 15px 14px;
  text-align: left;
}

.gcard__head:active { background: #fffaf7; }

.gcard__emoji {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 23px;
  background: var(--gcolor-soft, var(--cream-2));
}

.gcard__main { flex: 1; min-width: 0; }

.gcard__line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }

.gcard__code {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--gcolor, var(--coral));
}

.gcard__name { font-size: 14.5px; font-weight: 700; }

.gcard__alias {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--gcolor-soft, var(--cream-2));
  color: var(--gcolor, var(--coral-deep));
  font-size: 10.5px;
  font-weight: 700;
}

.gcard__tagline {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.gcard__kw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

.gcard__kw span {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8f4f1;
  color: var(--ink-3);
  font-size: 10.5px;
}

.gcard__arrow { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 13px; color: #c9bbb1; }

.gcard__overview {
  padding: 0 15px 15px;
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.gcard__more {
  display: block;
  width: calc(100% - 30px);
  margin: 0 15px 15px;
  padding: 9px;
  border-radius: 10px;
  background: var(--gcolor-soft, var(--cream-2));
  color: var(--gcolor, var(--coral-deep));
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

/* ---- 详解板块（列表展开 + 详情页共用） ---- */
.gfull { padding: 0 15px 6px; }

.gsec { margin-top: 18px; }

.gsec__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.gsec__title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: var(--gcolor, var(--coral));
  flex: 0 0 auto;
}

.gsec__hint { margin: 6px 0 11px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

.gitem {
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
  background: #fbf8f6;
  border: 1px solid #f4ebe5;
}

.gitem__t { font-size: 12.8px; font-weight: 700; line-height: 1.5; }
.gitem__d { margin-top: 5px; font-size: 12.3px; line-height: 1.78; color: var(--ink-2); }
.gitem__def { display: inline-block; margin-bottom: 3px; color: var(--ink-3); }

.gsec--myth .gitem { background: #fff8f3; border-color: #f8e7dc; }
.gsec--myth .gitem__t { color: var(--coral-deep); }

/* ---- 详情页 hero ---- */
.ghero {
  position: relative;
  padding: 22px 19px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--gcolor-soft, #fff1ec) 0%, #fff 78%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.ghero__top { display: flex; align-items: center; gap: 12px; }

.ghero__emoji {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 28px;
  flex: 0 0 auto;
}

.ghero__code {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--gcolor, var(--coral));
  line-height: 1.1;
}

.ghero__name { margin-top: 3px; font-size: 15px; font-weight: 700; }

.ghero__group {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gcolor, var(--coral-deep));
  font-size: 11.5px;
  font-weight: 700;
}

.ghero__tagline { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.6; }

.ghero__kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }

.ghero__kw span {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  color: var(--ink-2);
}

.goverview {
  margin-top: 16px;
  padding: 16px 16px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid #f4e8e1;
}

.goverview__label { font-size: 11.5px; font-weight: 700; color: var(--gcolor, var(--coral-deep)); }
.goverview p { margin-top: 8px; font-size: 13.2px; line-height: 1.85; color: var(--ink-2); }

.gdetail { margin-top: 4px; }

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

.grelated__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid #f4e8e1;
  text-align: left;
}

.grelated__item:active { background: #fffaf7; }
.grelated__emoji { font-size: 20px; }
.grelated__txt { flex: 1; min-width: 0; font-size: 12.8px; font-weight: 700; }
.grelated__txt small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.grelated__arrow { width: 15px; height: 15px; color: #c9bbb1; }

.gcta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
}

.gcta svg { width: 18px; height: 18px; }

.gfoot {
  margin-top: 24px;
  padding: 14px 4px 4px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.gempty { padding: 46px 16px; text-align: center; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

/* ---- 结果页：本类型详解入口 ---- */
.result__guide {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.result__guide:active { background: #fff; }
.result__guide-icon { font-size: 21px; flex: 0 0 auto; }
.result__guide-main { flex: 1; min-width: 0; }
.result__guide-main strong { display: block; font-size: 13.5px; font-weight: 700; }
.result__guide-main small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.result__guide svg { width: 16px; height: 16px; flex: 0 0 auto; color: #c9bbb1; }

/* ============================================================
   两种测评 · 选择卡片
   ============================================================ */

.pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.pick__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 13px 13px;
  text-align: left;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pick__item:active { transform: scale(0.98); }

.pick__item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.pick__badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  background: var(--cream-2);
}

.pick__badge--rec { color: #6c4bd8; background: #eee7ff; }

.pick__item strong { font-size: 14px; font-weight: 800; line-height: 1.3; }
.pick__item small { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

.pick__item.is-active::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ============================================================
   深度测评（90 题）结果与报告
   ============================================================ */

.result__set {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6c4bd8;
  background: #eee7ff;
}

.result__set--basic { color: var(--coral-deep); background: var(--coral-soft); }

.adv-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 700;
  color: #6c4bd8;
  background: #eee7ff;
}

/* 演示通道提示条：仅 ?unlock= 命中时出现，明确标注未经支付 */
.demo-flag {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px dashed #d9a441;
  background: #fdf6e5;
  color: #8a6212;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }

.metric {
  padding: 12px 12px 11px;
  border-radius: var(--r-sm);
  background: var(--cream-2);
  border: 1px solid var(--line);
}

.metric__k { font-size: 11px; color: var(--ink-3); }
.metric__v { margin-top: 4px; font-size: 20px; font-weight: 800; line-height: 1.1; }
.metric__v small { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.metric__d { margin-top: 5px; font-size: 11px; line-height: 1.5; color: var(--ink-2); }

.alt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alt-tag {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.alt-tag small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }

.facet { margin-top: 15px; }
.facet:first-of-type { margin-top: 6px; }
.facet__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.facet__name { font-size: 12.5px; font-weight: 700; }
.facet__pct { font-size: 11.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.facet__track {
  position: relative;
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--cream-2);
  overflow: hidden;
}
.facet__fill { height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width 0.7s ease; }
.facet__labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.facet__labels b { color: var(--ink-2); font-weight: 700; }

.fnrow { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.fnrow:first-of-type { margin-top: 6px; }
.fnrow__code { flex: 0 0 30px; font-size: 12px; font-weight: 800; color: var(--accent); }
.fnrow__main { flex: 1; min-width: 0; }
.fnrow__t { font-size: 11.5px; font-weight: 700; }
.fnrow__track { height: 6px; margin-top: 5px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.fnrow__fill { height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width 0.7s ease; }
.fnrow__n { flex: 0 0 34px; text-align: right; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.stack-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.stack-row:last-child { border-bottom: none; }
.stack-row__idx {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}
.stack-row__main { flex: 1; min-width: 0; }
.stack-row__t { font-size: 12.5px; font-weight: 700; }
.stack-row__d { margin-top: 3px; font-size: 11.5px; line-height: 1.65; color: var(--ink-2); }

.hitem__set {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
  color: var(--coral-deep);
  background: var(--coral-soft);
}
.hitem__set--advanced { color: #6c4bd8; background: #eee7ff; }

.lock__items li.is-adv::marker { color: #6c4bd8; }
