:root {
  --bg-base: #f7f5f0;
  --bg-top: #eff2f4;
  --ink: #201e1b;
  --ink-muted: rgba(32, 30, 27, 0.62);
  --ink-subtle: rgba(32, 30, 27, 0.44);
  --line: rgba(32, 30, 27, 0.08);
  --accent: #5b7487;
  --accent-soft: rgba(91, 116, 135, 0.12);
  --glow-a: rgba(145, 168, 184, 0.22);
  --glow-b: rgba(214, 196, 182, 0.24);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  display: flex;
  justify-content: center;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-base) 52%, #f7f5f0 100%);
  transition: background 0.8s ease;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  transition: background 0.8s ease;
}

.glow-a {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -60px;
  background: var(--glow-a);
  animation: driftA 11s ease-in-out infinite alternate;
}

.glow-b {
  width: 300px;
  height: 300px;
  bottom: 12%;
  left: -80px;
  background: var(--glow-b);
  animation: driftB 13s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes driftA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-24px, 28px) scale(1.08); }
}

@keyframes driftB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(26px, -22px) scale(1.06); }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.view.active {
  display: flex;
}

.view.active:not(#view-cover) {
  animation: viewFade 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.hidden {
  display: none !important;
}

.scene-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-titlecard {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene-titlecard::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scene-titlecard::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 42px rgba(10, 12, 16, 0.42);
}

.titlecard-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 8px;
}

.titlecard-zh {
  font-family: var(--serif);
  font-size: clamp(16px, 4.8vw, 24px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(250, 248, 244, 0.94);
}

.titlecard-en {
  font-size: clamp(8.5px, 2vw, 10.5px);
  letter-spacing: 0.18em;
  color: rgba(250, 248, 244, 0.6);
}

/* ============ 1. 封面页 ============ */
.cover-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 10px;
  gap: 18px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}

.cover-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.cover-subline {
  font-weight: 400;
  color: var(--accent);
  font-size: 26px;
}

.cover-lead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-muted);
}

.cover-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cover-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 42px -20px rgba(24, 30, 38, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #dfe4e8;
  transition: opacity 0.35s ease;
}

.cover-frame.fading {
  opacity: 0.4;
}

.cover-frame-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.scene-tag {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.scene-dots {
  display: flex;
  gap: 5px;
}

.scene-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(32, 30, 27, 0.16);
  transition: all 0.3s ease;
}

.scene-dot.active {
  width: 14px;
  border-radius: 3px;
  background: var(--accent);
}

.cover-actions,
.invite-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.invite-panel {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}

.invite-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.invite-desc {
  margin: 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--ink);
  color: #f7f5f0;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.2s ease, background 0.3s ease;
  box-shadow: 0 12px 26px -14px rgba(32, 30, 27, 0.45);
  text-decoration: none;
}

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

.btn-meta {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.65;
}

.btn-secondary {
  width: 100%;
  border: 1px solid rgba(32, 30, 27, 0.16);
  border-radius: 999px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease;
}

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

.cover-foot-links,
.result-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-subtle);
  padding-top: 2px;
}

.quiet-note {
  color: var(--ink-subtle);
}

.text-link {
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(32, 30, 27, 0.22);
  text-underline-offset: 4px;
}

.center-link {
  align-self: center;
  margin-top: 2px;
}

/* ============ 2. 双人配置页 ============ */
.sub-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0 10px;
}

.topbar-title {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.topbar-spacer {
  justify-self: end;
}

.setup-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0 24px;
}

.setup-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.setup-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.setup-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

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

.choice-pill {
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-pill span {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-subtle);
}

.choice-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(32, 30, 27, 0.05);
}

.mode-tab {
  border: none;
  border-radius: 9px;
  padding: 10px 8px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.setup-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.text-input {
  width: 100%;
  border: 1px solid rgba(32, 30, 27, 0.14);
  border-radius: 11px;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.text-input:focus {
  border-color: var(--accent);
}

.reuse-box {
  padding: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reuse-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
}

/* ============ 3. 答题页 ============ */
.quiz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 10px;
}

.nav-ghost {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
}

.nav-ghost:disabled {
  opacity: 0.24;
  cursor: default;
}

.progress-num {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-subtle);
}

.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(32, 30, 27, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 5%;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-role-bar {
  margin-top: 12px;
  align-self: flex-start;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.quiz-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 32px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz-stage.switching {
  opacity: 0;
  transform: translateY(6px);
}

.q-badge {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.q-prompt {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.58;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(32, 30, 27, 0.16);
}

.option-btn.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.opt-letter {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-subtle);
  margin-top: 1px;
  flex-shrink: 0;
}

.option-btn.selected .opt-letter {
  color: var(--accent);
  font-weight: 600;
}

/* ============ 4 & 5. 交接屏 & 显影过渡 ============ */
.loading-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 20px 10px;
}

.aperture-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(32, 30, 27, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseRing 1.8s ease-in-out infinite;
}

.aperture-core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.72;
  animation: pulseCore 1.8s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.95); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes pulseCore {
  0%, 100% { transform: scale(0.85); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.loading-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.loading-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-subtle);
}

.handoff-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.handoff-btn {
  margin-top: 8px;
  max-width: 280px;
}

/* ============ 6. 邀约已备好页 ============ */
.ready-title {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.ready-lead {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.invite-url-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(32, 30, 27, 0.04);
  font-size: 11.5px;
  color: var(--ink-subtle);
  word-break: break-all;
  line-height: 1.5;
}

/* ============ 7 & 8. 深度结果页（单人 & 双人） ============ */
#view-result,
#view-dual-result,
#view-invite-ready {
  padding-top: 12px;
  gap: 16px;
}

.dual-return-bar {
  display: flex;
  align-items: center;
}

.result-card {
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 24px 50px -30px rgba(32, 30, 27, 0.22);
}

.res-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.res-quadrant {
  color: var(--accent);
  font-weight: 600;
}

.res-code {
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.res-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.res-headline-row > div {
  min-width: 0;
}

.res-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.res-x {
  font-weight: 400;
  font-size: 17px;
  margin: 0 4px;
  color: var(--ink-subtle);
}

.res-scene-name {
  font-weight: 500;
  font-size: 19px;
  color: var(--accent);
}

.res-percent {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.res-sub-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res-secondary-pill {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.res-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.res-frame-wrap {
  position: relative;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 14px 32px -18px rgba(24, 30, 38, 0.34);
}

.res-scene-frame {
  width: 100%;
  height: 100%;
}

.res-frame-caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.res-quote {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink);
}

.hairline {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.contrast-box {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
}

#view-dual-result .contrast-box {
  margin-top: 18px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(32, 30, 27, 0.84);
}

.spectrum-box {
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

/* ============ 半免费付费解锁遮罩 & 兑换码弹窗 ============ */
.premium-wrap {
  position: relative;
  margin-top: 18px;
}

.premium-wrap.locked .premium-content {
  position: absolute;
  inset: 0 0 auto 0;
  max-height: 300px;
  overflow: hidden;
  filter: blur(6px);
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}

.lock-overlay {
  position: relative;
  z-index: 2;
  padding: 26px 18px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 245, 240, 0.72) 0%, rgba(247, 245, 240, 0.94) 34%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(32, 30, 27, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.lock-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.lock-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
}

.lock-list {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--ink-muted);
}

.lock-foot {
  font-size: 11.5px;
  color: var(--ink-subtle);
}

.unlock-sheet {
  max-height: 86dvh;
}

.unlock-body {
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.unlock-status-pill {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

.unlock-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unlock-error {
  font-size: 12px;
  color: #b43c32;
  margin-top: 2px;
}

.unlock-tiers {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unlock-tier-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

.unlock-tier-row strong {
  color: var(--ink);
  font-weight: 600;
}

.unlock-dev-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(32, 30, 27, 0.18);
  background: rgba(32, 30, 27, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unlock-dev-label {
  font-size: 11px;
  color: var(--ink-subtle);
}

.unlock-dev-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-mini {
  border: 1px solid rgba(32, 30, 27, 0.14);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  cursor: pointer;
}

.spectrum-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.spectrum-hint {
  font-size: 11px;
  color: var(--ink-subtle);
}

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

.spec-row {
  display: grid;
  grid-template-columns: 74px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.spec-name {
  color: var(--ink);
  white-space: nowrap;
}

.spec-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(32, 30, 27, 0.08);
  overflow: hidden;
}

.spec-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.spec-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-subtle);
}

/* 分段模块 */
.section-block {
  margin-top: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.section-sub {
  font-size: 11px;
  color: var(--ink-subtle);
}

/* 四维灵魂刻度 */
.axes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.axis-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.axis-poles {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}

.axis-mid-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

.axis-ruler {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(32, 30, 27, 0.09);
  margin-bottom: 10px;
}

.axis-center-tick {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 1px;
  height: 10px;
  background: rgba(32, 30, 27, 0.16);
}

.axis-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.axis-dot-b {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--ink);
  transform: translate(-50%, -50%);
}

.axis-desc {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.68;
  color: rgba(32, 30, 27, 0.8);
}

/* 独白与表里双面 */
.res-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.84;
  color: rgba(32, 30, 27, 0.84);
}

.dual-face-grid {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.face-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.face-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.face-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(32, 30, 27, 0.82);
}

/* 三大生活切片 */
.slice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slice-card {
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.slice-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.slice-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(32, 30, 27, 0.82);
}

/* 速写与处方 */
.sketch-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

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

.sketch-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.sketch-val {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(32, 30, 27, 0.84);
}

.prescription-val {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
}

.sketch-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

/* 同频磁场 */
.magnet-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.magnet-card {
  min-width: 0;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.magnet-card:hover {
  border-color: var(--accent);
}

.magnet-label {
  font-size: 11px;
  color: var(--ink-subtle);
}

.magnet-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.magnet-scene {
  font-size: 12px;
  color: var(--accent);
}

/* 单人页底的双人过渡卡 */
.bridge-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(32, 30, 27, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bridge-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.bridge-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.bridge-sub {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* 双人报告专属样式 */
.dr-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.dr-pair-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.dual-frames-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dual-frame-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dual-frame-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.25);
}

.dual-frame-cap {
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dr-metrics-grid {
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dr-metric-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dr-metric-label {
  font-size: 11.5px;
  color: var(--ink-subtle);
}

.dr-metric-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dr-metric-val.accent {
  color: var(--accent);
}

.rituals-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ritual-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.68;
  color: rgba(32, 30, 27, 0.84);
}

.ritual-num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.dual-inspect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dual-inspect-row .btn-secondary {
  padding: 11px 10px;
  font-size: 12.5px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

/* ============ 弹窗与图鉴 ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 20, 22, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 520px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 88dvh;
  background: #f7f5f0;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 520px) {
  .modal-sheet {
    border-radius: 22px;
  }
}

.modal-head {
  flex-shrink: 0;
  background: #f7f5f0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.poster-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #eceae4;
}

.poster-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.poster-foot {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.btn-compact {
  padding: 12px 22px;
}

.poster-tip {
  font-size: 11.5px;
  color: var(--ink-subtle);
}

.atlas-sheet {
  height: 84dvh;
}

.atlas-tabs {
  flex-shrink: 0;
  background: #f7f5f0;
  display: flex;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.atlas-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
}

.atlas-tab.active {
  background: var(--ink);
  color: #f7f5f0;
  border-color: var(--ink);
}

.atlas-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.atlas-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atlas-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.atlas-item-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.atlas-item-quad {
  font-size: 11px;
  color: var(--ink-subtle);
}

.atlas-item-scene {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
}

.atlas-item-quote {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
}

.atlas-item-summary {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.atlas-item-meta {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-subtle);
  background: rgba(32, 30, 27, 0.03);
  padding: 10px 12px;
  border-radius: 10px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(32, 30, 27, 0.88);
  color: #f7f5f0;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
