*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-ambient);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 桌面端居中杂志画布，手机端全屏沉浸 */
.ambient-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  position: relative;
}

.app-stage {
  width: 100%;
  max-width: 452px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-paper);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-shadow: var(--shadow-stage);
}

/* 细腻特种纸肌理层 */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 600px) {
  .ambient-shell {
    padding: 20px 16px;
    background:
      radial-gradient(circle at 18% 15%, hsla(28, 45%, 86%, 0.55), transparent 48%),
      radial-gradient(circle at 82% 85%, hsla(163, 22%, 84%, 0.42), transparent 48%),
      var(--bg-ambient);
  }

  .app-stage {
    min-height: calc(100dvh - 40px);
    border-radius: 24px;
    border: 1px solid var(--hairline);
  }
}

/* 顶部轻量实时动态耳语栏 */
.live-whisper-bar {
  height: 36px;
  padding: 0 16px;
  background-color: hsla(36, 32%, 93%, 0.9);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.whisper-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--vermilion);
  font-weight: 600;
  flex-shrink: 0;
}

.whisper-divider {
  color: var(--ink-faint);
  flex-shrink: 0;
}

.whisper-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.whisper-text.is-switching {
  opacity: 0;
  transform: translateY(-5px);
}

/* 视图屏幕切换 */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 28px;
  animation: screenEnter 0.42s var(--ease-out-expo) both;
}

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

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

/* ==================== 1. 封面屏 ==================== */
.editorial-masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-primary);
  margin-bottom: 16px;
}

.masthead-vol {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-primary);
}

.masthead-loc {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

/* 好友邀请票根卡 (?ref=INVITER_ID) */
.inviter-ticket {
  background-color: var(--bg-warm-tint);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.inviter-ticket::before,
.inviter-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--bg-paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  transform: translateY(-50%);
}

.inviter-ticket::before {
  left: -7px;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.inviter-ticket::after {
  right: -7px;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.inviter-kicker {
  font-size: 11.5px;
  color: var(--vermilion);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.inviter-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-primary);
}

.inviter-body strong {
  color: var(--vermilion);
  font-weight: 600;
}

.cover-headline-group {
  margin-bottom: 16px;
}

.cover-h1 {
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1.32;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 8px;
}

.cover-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
}

/* 手绘杂志插画视窗 */
.cover-art-frame {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.cover-svg-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.cover-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.art-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 2px;
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.art-stamp-mini {
  font-family: var(--font-serif);
  color: var(--vermilion);
  border: 1px solid hsla(12, 62%, 47%, 0.42);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* 封面亮点预览条 */
.specimen-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.specimen-chip {
  font-size: 12px;
  color: var(--ink-secondary);
  background-color: var(--bg-muted);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.cover-cta-area {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.participant-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-tertiary);
  padding: 0 2px;
}

.participant-note strong {
  font-family: var(--font-mono);
  color: var(--ink-primary);
  font-weight: 600;
}

/* 按钮体系 */
.btn-primary {
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-md);
  background-color: var(--ink-primary);
  color: #FAF7F2;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px -8px hsla(18, 25%, 12%, 0.35);
  transition: transform 0.16s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: hsl(18, 18%, 20%);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-vermilion {
  background-color: var(--vermilion);
  color: #FFFDFB;
  box-shadow: 0 10px 24px -8px hsla(12, 62%, 40%, 0.38);
}

.btn-vermilion:hover {
  background-color: var(--vermilion-hover);
}

.btn-pine {
  background-color: var(--pine);
  color: #FAF8F5;
  box-shadow: 0 10px 24px -8px hsla(163, 30%, 22%, 0.32);
}

.btn-pine:hover {
  background-color: var(--pine-hover);
}

.btn-outline {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-card);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--bg-muted);
}

.btn-outline:active {
  transform: scale(0.985);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--ink-tertiary);
  font-size: 12.5px;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: center;
}

.btn-text-link:hover {
  color: var(--ink-primary);
}

/* ==================== 2. 5步轻闯关屏 ==================== */
.quiz-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-back-step {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s ease;
}

.btn-back-step:hover {
  background-color: var(--bg-muted);
}

.quiz-step-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
}

.quiz-step-counter span {
  color: var(--ink-tertiary);
  font-weight: 400;
}

.quiz-progress-track {
  width: 100%;
  height: 3px;
  background-color: var(--bg-muted);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 22px;
}

.quiz-progress-fill {
  height: 100%;
  background-color: var(--vermilion);
  border-radius: 99px;
  transition: width 0.36s var(--ease-out-expo);
}

.quiz-card-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-card-anim {
  animation: cardSlideIn 0.32s var(--ease-out-expo) both;
}

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

.quiz-scene-label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--vermilion);
  font-weight: 600;
  margin-bottom: 6px;
}

.quiz-question-title {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.quiz-question-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

/* Q1 同屏双选面板 */
.dual-group-block {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.dual-group-label {
  font-size: 12.5px;
  color: var(--ink-secondary);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cohort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-pill {
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 13px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
  position: relative;
}

.choice-pill:hover {
  background-color: var(--bg-warm-tint);
}

.choice-pill:active {
  transform: scale(0.975);
}

.choice-pill.is-selected {
  background-color: var(--ink-primary);
  color: #FAF7F2;
  border-color: var(--ink-primary);
  font-weight: 600;
  box-shadow: 0 6px 16px -6px hsla(18, 25%, 12%, 0.35);
}

.choice-pill .sub-hint {
  display: block;
  font-size: 11px;
  opacity: 0.72;
  font-weight: 400;
  margin-top: 2px;
}

/* Q2 东莞 19 镇街清晰独立网格 */
.town-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.town-tag-btn {
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 11px 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.town-tag-btn.is-wide {
  grid-column: span 2;
}

.town-tag-btn:hover {
  background-color: var(--bg-warm-tint);
}

.town-tag-btn:active {
  transform: scale(0.96);
}

.town-tag-btn.is-selected {
  background-color: var(--vermilion);
  color: #FFFDFB;
  border-color: var(--vermilion);
  font-weight: 600;
}

/* Q3 湖南 14 市州 + 无辣不欢网格 */
.hometown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.hometown-card-btn {
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hometown-card-btn.is-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.hometown-card-btn:hover {
  background-color: var(--bg-warm-tint);
}

.hometown-card-btn:active {
  transform: scale(0.98);
}

.hometown-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.hometown-snack {
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.hometown-card-btn.is-selected {
  background-color: var(--vermilion);
  border-color: var(--vermilion);
}

.hometown-card-btn.is-selected .hometown-name,
.hometown-card-btn.is-selected .hometown-snack {
  color: #FFFDFB;
}

/* Q4 & Q5 故事化场景长卡片 */
.story-options-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.story-option-btn {
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.16s ease;
  box-shadow: 0 2px 8px -4px hsla(20, 20%, 15%, 0.05);
}

.story-option-btn:hover {
  background-color: var(--bg-warm-tint);
}

.story-option-btn:active {
  transform: scale(0.985);
}

.story-option-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-muted);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.story-option-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.story-option-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-tertiary);
}

.story-option-btn.is-selected {
  background-color: var(--ink-primary);
  border-color: var(--ink-primary);
}

.story-option-btn.is-selected .story-option-index {
  background-color: var(--vermilion);
  color: #FFFDFB;
}

.story-option-btn.is-selected .story-option-title {
  color: #FAF7F2;
}

.story-option-btn.is-selected .story-option-sub {
  color: hsla(37, 38%, 96%, 0.75);
}

/* ==================== 3. 演算仪式过渡屏 ==================== */
.ritual-box {
  margin: auto 0;
  text-align: center;
  padding: 32px 16px;
}

.ritual-seal-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1.5px dashed var(--vermilion);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slowSpin 9s linear infinite;
}

.ritual-seal-inner {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  border: 2px solid var(--vermilion);
  color: var(--vermilion);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slowSpinReverse 9s linear infinite;
}

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

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

.ritual-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
}

.ritual-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.ritual-steps p {
  margin: 0;
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.ritual-steps p.is-lit {
  opacity: 1;
  color: var(--ink-primary);
  font-weight: 500;
}

/* ==================== 4. 高转化强裂变结果屏 ==================== */
.result-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ① 双人默契合拍卡 */
.buddy-chemistry-card {
  background: linear-gradient(180deg, var(--bg-warm-tint) 0%, var(--bg-card) 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.chemistry-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chemistry-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--vermilion);
  font-weight: 600;
}

.chemistry-score-badge {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--vermilion);
  line-height: 1;
}

.chemistry-score-badge small {
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--ink-secondary);
  font-weight: 500;
}

.chemistry-duo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: var(--bg-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.duo-person {
  flex: 1;
  min-width: 0;
}

.duo-person-name {
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duo-person-sub {
  font-size: 11px;
  color: var(--ink-tertiary);
}

.duo-spark {
  font-family: var(--font-serif);
  color: var(--vermilion);
  font-weight: 700;
  font-size: 15px;
  padding: 0 4px;
}

.chemistry-match-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.chemistry-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}

.chemistry-plan-box {
  background-color: var(--pine-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--pine);
}

/* ② 个人专属灵魂图鉴主卡 */
.dossier-card {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.dossier-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.dossier-no {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: 0.06em;
}

.dossier-hero {
  position: relative;
  padding-right: 74px;
  margin-bottom: 14px;
}

.coord-breadcrumbs {
  font-size: 12px;
  color: var(--vermilion);
  font-weight: 600;
  margin-bottom: 4px;
}

.persona-title-h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.persona-tagline {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
}

/* 传统朱砂印章 */
.cinnabar-seal {
  position: absolute;
  right: 2px;
  top: 4px;
  width: 60px;
  height: 60px;
  border: 2.2px solid var(--vermilion);
  border-radius: 8px;
  padding: 4px;
  transform: rotate(-7deg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  color: var(--vermilion);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  background-color: hsla(12, 62%, 47%, 0.04);
  user-select: none;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.keyword-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-muted);
  color: var(--ink-primary);
  font-weight: 500;
}

/* 可视化四维性格能量条 */
.energy-bars-panel {
  background-color: var(--bg-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.energy-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.energy-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
}

.energy-bar-head strong {
  font-family: var(--font-mono);
  color: var(--ink-primary);
}

.energy-bar-track {
  width: 100%;
  height: 6px;
  background-color: hsla(20, 18%, 20%, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.energy-bar-fill {
  height: 100%;
  border-radius: 99px;
  background-color: var(--ink-primary);
  width: 0;
  transition: width 0.85s var(--ease-out-expo);
}

.energy-bar-item:nth-child(1) .energy-bar-fill {
  background-color: var(--vermilion);
}

.energy-bar-item:nth-child(2) .energy-bar-fill {
  background-color: var(--pine);
}

.reading-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.reading-paragraphs p {
  margin: 0;
  text-align: justify;
}

.soul-quote-block {
  background-color: var(--bg-warm-tint);
  border-left: 3px solid var(--vermilion);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-primary);
  font-weight: 600;
}

/* ③ 裂变分享与真 Canvas 海报区 */
.share-action-card {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.nickname-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--hairline-strong);
  font-size: 13px;
}

.nickname-current {
  color: var(--ink-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nickname-current strong {
  color: var(--ink-primary);
}

.btn-mini-edit {
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-paper);
  border-radius: var(--radius-xs);
  padding: 4px 9px;
  font-size: 12px;
  color: var(--ink-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-buttons-grid .btn-primary {
  min-height: 48px;
  padding: 10px 10px;
  font-size: 13.5px;
}

.share-sub-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-tertiary);
  text-align: center;
}

/* ④ 欲擒故纵半遮罩悬念卡 + 零压力留微信号闭环 */
.velvet-unlock-section {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.unlock-section-header {
  margin-bottom: 14px;
}

.unlock-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--vermilion);
  font-weight: 600;
  margin-bottom: 4px;
}

.unlock-h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink-primary);
}

.locked-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.mystery-card {
  background-color: var(--bg-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  position: relative;
  overflow: hidden;
}

.mystery-card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mystery-lock-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background-color: var(--vermilion-soft);
  color: var(--vermilion);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.mystery-card.is-unlocked .mystery-lock-pill {
  background-color: var(--pine-soft);
  color: var(--pine);
}

.mystery-teaser-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-primary);
  margin: 0;
}

.mystery-blurred-tail {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
}

/* 零压力微信号解锁表单卡 */
.wechat-gate-box {
  background: linear-gradient(180deg, var(--bg-warm-tint) 0%, #FAF6EE 100%);
  border: 1px solid hsla(12, 50%, 45%, 0.24);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}

.gate-promise-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.gate-promise-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.social-pref-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.pref-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-card);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pref-radio-label:has(input:checked) {
  border-color: var(--pine);
  background-color: hsla(163, 29%, 28%, 0.05);
  font-weight: 500;
}

.pref-radio-label input {
  margin-top: 2px;
  accent-color: var(--pine);
  flex-shrink: 0;
}

.wx-input-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wx-text-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background-color: #FFFFFF;
  font-size: 15px;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wx-text-input:focus {
  border-color: var(--vermilion);
  box-shadow: 0 0 0 3px hsla(12, 62%, 47%, 0.12);
}

.wx-error-tip {
  font-size: 12px;
  color: var(--vermilion);
  margin: 2px 0 0;
  min-height: 18px;
}

.gate-privacy-footnote {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--ink-tertiary);
  text-align: center;
}

/* 解锁成功后展示主理人名片 */
.unlocked-curator-card {
  background-color: var(--pine-soft);
  border: 1px solid hsla(163, 29%, 28%, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.curator-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 4px;
}

.curator-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.curator-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.curator-wx-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 10px;
}

.curator-wx-id {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
}

.curator-qr-img {
  width: 156px;
  height: 156px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background-color: #FFF;
  padding: 6px;
  margin: 6px auto 0;
  display: block;
}

/* ==================== 模态抽屉（高清海报 & 邀请合拍卡 & 改署名） ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: hsla(18, 22%, 10%, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.22s ease both;
}

.modal-backdrop.is-open {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 390px;
  max-height: 90dvh;
  overflow-y: auto;
  background-color: var(--bg-paper);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-modal);
  position: relative;
}

.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
}

.btn-close-modal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background-color: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--hairline);
}

.poster-save-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--vermilion);
  font-weight: 600;
  text-align: center;
}

/* 轻提示 Toast */
.toast-pill {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(16px);
  background-color: hsla(18, 20%, 14%, 0.94);
  color: #FAF7F2;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-pill.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 375px) {
  .screen {
    padding: 16px 15px 24px;
  }
  .cover-h1 {
    font-size: 24px;
  }
  .town-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .town-tag-btn.is-wide {
    grid-column: span 2;
  }
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }
}
