/* ============================================================
   「寻找世界上另一个我」—— 双人脸型比对的补充样式
   基础变量与按钮样式复用 styles.css
   ============================================================ */

.pair-hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.5px;
}

.pair-hero .hero-sub {
  color: var(--text-soft);
}

/* 全屏遮罩：pair 页没有 canvas-wrap 容器，改用 fixed 定位 */
.spinner.pair-spinner {
  position: fixed;
  z-index: 60;
  border-radius: 0;
}

/* 分数环 */
.score-wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
  flex-wrap: wrap;
}

.score-ring {
  position: relative;
  width: 168px;
  height: 168px;
  flex: 0 0 auto;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring .ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 12;
}

.score-ring .ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.score-ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.score-ring .ring-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.score-ring .ring-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-mute);
  margin-left: 2px;
}

.score-ring .ring-cap {
  font-size: 12px;
  color: var(--text-mute);
}

.score-verdict {
  flex: 1 1 260px;
  min-width: 240px;
}

.score-verdict .verdict-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.score-verdict .verdict-note {
  color: var(--text-soft);
  margin: 0 0 14px;
}

.shape-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shape-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #3f37b8;
  font-size: 13.5px;
  font-weight: 600;
}

.shape-chip[data-side='b'] {
  background: #e2f6f3;
  color: #0b6b62;
}

.shape-chip .chip-role {
  font-weight: 400;
  color: var(--text-mute);
  font-size: 12px;
}

.chip-same {
  font-size: 12.5px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 5px 10px;
}

/* 分项进度条 */
.breakdown {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 108px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

/* 部位下的子维度明细已取消展示（2026-10-08）——
   具体到「形状 62 · 大小 71」既无人看懂，也等于把测量口径摊在页面上。
   改为在进度条下方用一句总述说明「比了哪几个维度」。 */

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.bar[data-tone='teal'] > i {
  background: linear-gradient(90deg, #14b8a6, #0d9488);
}

/* 提示列表 */
.highlight-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.highlight-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.highlight-list li[data-tone='apart'] {
  background: var(--amber-soft);
  border-color: #f0dfbd;
}

.highlight-list .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex: 0 0 auto;
}

.highlight-list li[data-tone='apart'] .dot {
  background: var(--amber);
}

/* 拍摄条件提示（shape-12.4）
   刻意做得比「差异点」轻一档：它是归因说明，不是又一条差异。
   用青色（与客观测量同色系，不抢琥珀色的注意力），左侧一道竖线，
   视觉上像注脚而不是警告。 */
.shot-note {
  margin: 10px 0 0;
  padding: 10px 14px 10px 12px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.shot-note strong {
  color: var(--text);
  font-weight: 600;
}

/* 我的脸型卡 */
.me-card {
  display: flex;
  gap: clamp(16px, 4vw, 28px);
  align-items: center;
  flex-wrap: wrap;
}

.me-canvas-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(240px, 42vw);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.me-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.me-info {
  flex: 1 1 260px;
  min-width: 240px;
}

.me-shape-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.me-trait {
  color: var(--text-soft);
  margin: 0 0 12px;
}

.me-ratios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.me-ratio {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}

.me-ratio span {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
}

.me-ratio strong {
  font-size: 14.5px;
}

.rarity-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a4b06;
  font-size: 13px;
  font-weight: 600;
}

.rarity-line[data-tone='pending'] {
  background: var(--bg-soft);
  color: var(--text-mute);
  font-weight: 400;
}

/* 邀请区 */
.invite-box {
  display: grid;
  gap: 14px;
}

.invite-code {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.invite-code .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 7px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 8px 20px 8px 24px;
}

.invite-link {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.invite-link input {
  flex: 1 1 260px;
  min-width: 200px;
  font-size: 13px;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-soft);
}

.waiting {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.waiting .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pair-pulse 1.6s ease-in-out infinite;
}

@keyframes pair-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* 邀请码输入 */
.code-entry {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.code-entry input {
  width: 168px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

/* 第二张没通过时出现的重试块（2026-10-20）。
   用红系浅底把它和上方的拍摄要点分开：要点是「建议」，这一块是「刚才那张不行」。 */
.retry-box {
  margin: 14px 0 0;
  padding: 13px 15px;
  background: var(--red-soft);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: var(--radius);
}

.retry-box-title {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
}

.retry-box-note {
  margin: 0 0 11px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* 结果页顶部的「换一组对比」（2026-10-20）。
   放在结果标题下方而不是只放在分享区：出完结果后用户的注意力停在这一屏，
   出口必须在他已经看得到的地方，不能要求他先滚到底。 */
.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 2px;
}

.result-actions-hint {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* 分享卡片 */
.share-card-wrap {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.share-card-wrap canvas {
  width: min(340px, 78vw);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px 11px;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-mute);
  font-size: 12.5px;
  margin: 16px 0;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.step-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

/* ============================================================
   分层界线：把「客观测量」与「趣味解读」在视觉上分开
   娱乐层是演绎，不能让用户以为那也是算出来的
   ============================================================ */
.layer-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 22px;
}

.layer-divider-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--border-strong), #d9d2f7, var(--border-strong));
}

.layer-divider-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-mute);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.layer-divider-label-fun {
  color: #6d28d9;
  background: #f3efff;
}

/* ---------------------------- 娱乐解读层 ---------------------------- */

.fun-layer {
  padding: 20px clamp(14px, 3vw, 22px) 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #faf9ff 0%, #f6f4ff 100%);
  border: 1px solid #e6e1fb;
}

.fun-head .fun-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.fun-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
}

.relation-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.relation-btn:hover {
  border-color: #b9aef2;
}

.relation-btn[aria-checked='true'] {
  border-color: #7c5cf0;
  background: #f3efff;
  box-shadow: 0 0 0 3px rgba(124, 92, 240, 0.12);
}

.relation-btn:focus-visible {
  outline: 2px solid #7c5cf0;
  outline-offset: 2px;
}

.relation-btn .relation-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #4f46e5;
  font-size: 14px;
}

.relation-btn[aria-checked='true'] .relation-icon {
  background: #ded5ff;
}

.relation-btn .relation-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.relation-btn .relation-label {
  line-height: 1.25;
}

.relation-btn .relation-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relation-scene-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #8a4b06;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* 解读卡 */
.reading-card {
  margin-top: 16px;
  padding: 18px clamp(14px, 3vw, 20px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid #e0d9f8;
  box-shadow: var(--shadow-sm);
}

.reading-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #6d28d9;
  background: #f3efff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.reading-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}

.reading-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

/* 气质互补态：解读卡里的第二把尺子。
   与相似度并排但视觉上分开 —— 「像不像」是分数，「合不合拍」是定性，
   混在一起会让人以为互补度也是算出来的分数。 */
.reading-temperament {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--surface-2, #f8fafc);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.fun-disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mute);
}

.share-disabled-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #8a4b06;
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
}

/* 布局辅助：CSP 禁止内联 style，所有间距都写成类 */
.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

/* 长文案换行保护 */
@media (max-width: 420px) {
  .relation-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .relation-btn .relation-hint {
    display: none;
  }
}

.sub-title.spaced-top {
  margin-top: 26px;
}

/* 进度条初始宽度（JS 通过 CSSOM 更新，不受 CSP 限制） */
.bar > i {
  width: 0%;
}

/* ============================================================
   趣味档案：报告感区块（2026-10-10 新增）
   本区块属于「趣味解读层」，沿用该层的淡紫底色语言。
   注意：这里出现了一个数字（CP 指数）—— 是本层唯一例外，
   因此指数卡上必须始终显示「趣味指标」说明，且与客观分视觉可区分。
   ============================================================ */

.fun-report {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #ddd5f7;
}

.fun-sub-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #4c3d99;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 720px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

.report-index-card,
.report-radar-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid #e6e1fb;
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
}

.report-index-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- 指数环：与客观分数环同构但换主色，一眼能区分两层 ---- */
.index-ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
}

.index-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.index-ring .index-ring-bg {
  fill: none;
  stroke: #ece7fb;
  stroke-width: 11;
}

.index-ring .index-ring-fg {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.index-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.index-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  color: #5b21b6;
}

.index-cap {
  font-size: 11px;
  color: var(--text-mute);
}

.index-tag {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  background: #f3efff;
  border-radius: 999px;
  padding: 3px 12px;
}

.index-title {
  margin: 10px 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #3b2d78;
}

.index-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.index-disclaimer {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-mute);
  border-top: 1px dashed #e6e1fb;
  padding-top: 10px;
}

/* ---- 雷达卡 ---- */
.report-card-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #4c3d99;
}

.report-radar-card canvas {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
}

.report-card-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--text-mute);
  text-align: center;
}

/* ---- 三栏清单 ---- */
.report-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.report-list {
  background: var(--surface);
  border: 1px solid #e6e1fb;
  border-radius: var(--radius);
  padding: 14px 14px 10px;
}

.report-list-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #3b2d78;
}

.rl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.rl-dot[data-tone='close'] {
  background: var(--accent);
}

.rl-dot[data-tone='apart'] {
  background: var(--amber);
}

.rl-dot[data-tone='plus'] {
  background: var(--teal);
}

.report-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.report-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

.report-list li[data-empty='true'] {
  color: var(--text-mute);
  font-style: normal;
}

/* ---- 分享卡片风格切换 ---- */
.share-style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.share-style-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 140ms ease;
}

.share-style-btn:hover {
  border-color: var(--border-strong);
}

.share-style-btn[aria-checked='true'] {
  border-color: #7c3aed;
  background: #f3efff;
  color: #5b21b6;
  font-weight: 600;
}

.share-style-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-mute);
}

/* 「卡片上有没有印头像」的说明（2026-10-13）。
   用 info 色的浅底把它和上面的风格提示区分开 —— 这条说的是隐私边界，
   不是 UI 提示，值得让人多看半眼。 */
.share-avatar-note {
  margin: 0 0 14px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ============================================================
   付费引导与兑换码（2026-10-14）
   商业模式：单人免费引流，双人比对 0.8 元/组
   ============================================================ */

.pay-intro .panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 4px 0 18px;
}

.pay-point {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pay-point-icon {
  font-size: 20px;
  line-height: 1.2;
  flex: 0 0 auto;
}

.pay-point strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.pay-point small {
  display: block;
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.55;
}

.redeem-box {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.redeem-box + .redeem-box {
  margin-top: 10px;
}

.redeem-buy {
  background: linear-gradient(135deg, #fef9ee, var(--surface));
  border-color: #f3e3c3;
}

.redeem-title {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.redeem-entry input {
  flex: 1 1 auto;
  letter-spacing: 0.08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.redeem-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-mute);
  min-height: 1.2em;
}

.redeem-hint[data-tone='ok'] {
  color: var(--green);
  font-weight: 600;
}

.redeem-hint[data-tone='error'] {
  color: var(--red);
}

.redeem-buy-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* 已兑换：引导区收起为一条状态条，不占整屏 */
.pay-intro[data-redeemed='true'] .pay-points,
.pay-intro[data-redeemed='true'] .redeem-buy {
  display: none;
}

.pass-active-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px solid #cdeedb;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   解锁弹窗（2026-10-15）
   价格与购买方式不再常驻首屏 —— 走到「需要第二个人」那一步才弹。
   卡片复用 .pay-intro 的既有内部样式，这里只补外壳与动效。
   ------------------------------------------------------------ */

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pay-modal[hidden] {
  display: none;
}

.pay-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 36, 0.55);
  backdrop-filter: blur(3px);
}

.pay-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 22px 22px;
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 26px 64px rgba(18, 20, 32, 0.3);
  animation: payModalIn 0.2s ease-out;
}

@keyframes payModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pay-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.pay-modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.pay-modal-card .panel-desc {
  margin: 0;
}

/* 弹窗打开时锁住背景滚动，否则手机上滑到一半弹窗跟着跑 */
body.modal-open {
  overflow: hidden;
}

/* 手机端改成底部抽屉：拇指够得着，也不会被键盘顶飞 */
@media (max-width: 560px) {
  .pay-modal {
    padding: 0;
    align-items: flex-end;
  }

  .pay-modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 24px 18px 18px;
  }

  /* 手机屏幕短，三条卖点得压紧一点，否则兑换输入框要被推到折叠线以下 */
  .pay-modal-card .pay-points {
    gap: 8px;
    margin-bottom: 14px;
  }

  .pay-modal-card .pay-point {
    padding: 10px 12px;
  }
}
