@font-face {
  font-family: "LXGWWenKai";
  src: url("/fonts/wenkai.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg-deep: #070a10;
  --bg-card: rgba(16, 22, 33, 0.86);
  --bg-elevated: rgba(24, 32, 48, 0.92);
  --gold: #dfb056;
  --gold-bright: #f7d788;
  --gold-dim: rgba(223, 176, 86, 0.26);
  --cinnabar: #c94a34;
  --cyan: #5ec2f2;
  --text-main: #f2ead9;
  --text-sub: #b4bece;
  --text-muted: #768296;
  --border-subtle: rgba(223, 176, 86, 0.18);
  --font-serif: "LXGWWenKai", "Songti SC", "Noto Serif SC", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  min-height: 100%;
  background: radial-gradient(circle at 50% 18%, #10192b 0%, #070a10 68%, #04060a 100%);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.65;
  overflow-x: hidden;
}

/* 细微胶片颗粒叠加层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: radial-gradient(#ffffff 1px, transparent 0);
  background-size: 3px 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 820px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.88) 0%, rgba(7, 10, 16, 0) 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ghost-btn {
  background: rgba(20, 28, 42, 0.72);
  color: var(--text-sub);
  border: 1px solid var(--border-subtle);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.stage-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 18px 64px;
}

.hidden {
  display: none !important;
}

/* ====== 第一幕：3D 地球太空首屏与俯冲 ====== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 6px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-h1 {
  font-size: clamp(1.85rem, 6vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-main);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--text-sub);
  max-width: 460px;
}

.globe-stage {
  position: relative;
  width: min(92vw, 430px);
  height: min(92vw, 430px);
  margin: 10px auto 12px;
}

#earthCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dive-hud {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(247, 215, 136, 0.42);
  backdrop-filter: blur(8px);
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.hud-target {
  margin-top: 4px;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

.hud-bar {
  margin-top: 8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--gold-bright));
  transition: width 0.08s linear;
}

.primary-cta {
  margin-top: 6px;
  padding: 15px 38px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  color: #161108;
  background: linear-gradient(135deg, #f6d88b 0%, #d49d3b 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(217, 164, 65, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(217, 164, 65, 0.5);
}

.primary-cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hero-stats {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-stats strong {
  color: var(--gold);
  font-family: var(--font-mono);
}

/* ====== 第二幕：国家版图展开卡 + 同秒同伴 + 本土抉择 ====== */
.country-atlas-card {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  animation: fadeSlideUp 0.55s ease;
}

@media (max-width: 560px) {
  .country-atlas-card {
    grid-template-columns: 1fr;
  }
}

.country-map-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 175, 214, 0.2);
  height: 132px;
  background: #0b111c;
}

#countryMapCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-coord-tag {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(247, 215, 136, 0.88);
  background: rgba(7, 10, 16, 0.76);
  padding: 2px 6px;
  border-radius: 4px;
}

.country-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rarity-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  color: var(--gold-bright);
  background: rgba(223, 176, 86, 0.14);
  border: 1px solid rgba(223, 176, 86, 0.36);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.country-headline {
  font-size: 1.28rem;
  color: var(--text-main);
}

.person-subline {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.country-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* 同秒降落的 4 位地球同伴 */
.peers-strip {
  margin-top: 14px;
  background: rgba(13, 18, 28, 0.78);
  border: 1px solid rgba(94, 194, 242, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
}

.peers-header {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.peers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

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

.peer-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(22, 30, 45, 0.55);
  font-size: 0.82rem;
  transition: opacity 0.3s ease;
}

.peer-item.fallen {
  opacity: 0.58;
  background: rgba(24, 20, 24, 0.48);
}

.peer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.peer-item.fallen .peer-dot {
  background: #6b7280;
  box-shadow: none;
}

.peer-title {
  color: var(--text-main);
  font-weight: 500;
}

.peer-desc {
  color: var(--text-sub);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* 剧情抉择卡片 */
.story-card {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: fadeSlideUp 0.45s ease;
}

.age-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.age-num {
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.age-year {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.chapter-title {
  font-size: 1.18rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.narrative-text {
  font-size: 1.03rem;
  color: #e5dec9;
  white-space: pre-line;
  line-height: 1.82;
}

.choices-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid rgba(223, 176, 86, 0.24);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.choice-btn:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: rgba(38, 48, 68, 0.95);
  transform: translateX(3px);
}

.choice-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.choice-key {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.88rem;
  margin-right: 8px;
}

.choice-hint {
  font-size: 0.76rem;
  color: var(--gold);
  background: rgba(223, 176, 86, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ====== 第三幕：终章结算与暗房纪实相册 ====== */
.finale-card {
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(20, 25, 36, 0.94) 0%, rgba(12, 14, 20, 0.96) 100%);
  border: 1px solid rgba(223, 176, 86, 0.35);
  border-radius: 18px;
  padding: 24px 20px;
  animation: fadeSlideUp 0.55s ease;
}

.epitaph-box {
  margin: 18px 0;
  padding: 18px 16px;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  text-align: center;
  font-size: 1.22rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.free-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* 暗房底片盒 */
.darkroom-section {
  margin-top: 22px;
  background: linear-gradient(180deg, #131010 0%, #0b090a 100%);
  border: 1px solid rgba(201, 74, 52, 0.36);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.darkroom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.darkroom-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #f0806c;
  letter-spacing: 0.12em;
}

.darkroom-title {
  font-size: 1.26rem;
  color: var(--text-main);
}

.darkroom-sub {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.film-frame {
  background: #191615;
  border: 1px solid rgba(223, 176, 86, 0.2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.film-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 42%, #2b1816 0%, #120d0d 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.film-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fadeReveal 0.8s ease;
}

.unexposed-seal {
  text-align: center;
  padding: 16px;
  color: rgba(242, 234, 217, 0.72);
}

.seal-ring {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 128, 108, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #f0806c;
}

.film-caption-box {
  padding: 12px 14px;
  background: #141210;
  flex: 1;
}

.film-age-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.film-caption-text {
  font-size: 0.88rem;
  color: #d8d0c0;
  line-height: 1.55;
}

/* 兑换码冲洗控制面板 */
.redeem-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(28, 22, 20, 0.85);
  border: 1px solid rgba(223, 176, 86, 0.28);
}

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

.code-input {
  flex: 1;
  min-width: 200px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(223, 176, 86, 0.38);
  background: #0d0b0b;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-input:focus {
  outline: none;
  border-color: var(--gold-bright);
}

.develop-btn {
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #e56045 0%, #b83722 100%);
  color: #fff8f2;
  font-family: var(--font-serif);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 74, 52, 0.4);
}

.develop-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.shop-helper {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-bright);
  text-decoration: underline;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  cursor: pointer;
}

.developing-box {
  margin-top: 18px;
  padding: 22px 20px;
  text-align: left;
  border-radius: 14px;
  background: rgba(38, 16, 16, 0.72);
  border: 1px solid rgba(229, 96, 69, 0.48);
  animation: redroomPulse 2.2s infinite ease-in-out;
}

.dev-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dev-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b52;
  box-shadow: 0 0 10px #ff6b52;
  flex-shrink: 0;
}

.dev-elapsed-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.36);
  padding: 2px 9px;
  border-radius: 999px;
}

.dev-progress-track {
  margin-top: 12px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.dev-progress-fill {
  height: 100%;
  width: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e56045 0%, #fbbf24 100%);
  transition: width 0.5s ease;
}

.scroll-preview-wrap {
  margin-top: 20px;
  text-align: center;
}

.scroll-preview-wrap img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 10px;
}

/* 弹窗与历史抽屉 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  overflow-y: auto;
  background: #121826;
  border: 1px solid rgba(223, 176, 86, 0.36);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
  cursor: pointer;
}

.archive-item:hover {
  border-color: var(--gold);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: rgba(20, 28, 42, 0.96);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

@keyframes fadeReveal {
  from { opacity: 0; filter: sepia(0.8) brightness(0.4); }
  to { opacity: 1; filter: sepia(0) brightness(1); }
}

@keyframes redroomPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(201, 74, 52, 0.22); }
  50% { box-shadow: 0 0 36px rgba(229, 96, 69, 0.52); }
}

/* ====== 升级版：秒化年实时生命时钟 + 四维生命指标 + 逐岁编年史 ====== */
.pace-selector {
  margin: 4px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pace-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pace-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pace-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(223, 176, 86, 0.25);
  background: rgba(15, 22, 34, 0.75);
  color: var(--text-sub);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pace-pill.active, .pace-pill:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(223, 176, 86, 0.16);
}

.chrono-dashboard {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.chrono-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.age-ring-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.age-ring-svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.ring-fg {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
}

.clock-age {
  font-size: 1.7rem;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 600;
}

.clock-unit {
  font-size: 0.95rem;
  color: var(--gold);
  margin-right: 6px;
}

.clock-year {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.clock-status {
  font-size: 0.78rem;
  color: var(--cyan);
}

.speed-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ctrl-chip {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(223, 176, 86, 0.24);
  background: rgba(24, 33, 50, 0.85);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.ctrl-chip.active, .ctrl-chip:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(223, 176, 86, 0.18);
}

.stats-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 540px) {
  .stats-bars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.stat-head span:last-child {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.stat-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 50%;
  border-radius: 4px;
  transition: width 0.35s ease;
}

.fill-health { background: linear-gradient(90deg, #34d399, #10b981); }
.fill-happiness { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.fill-knowledge { background: linear-gradient(90deg, #60a5fa, #38bdf8); }
.fill-livelihood { background: linear-gradient(90deg, #d97706, #eab308); }

/* 灵魂叩问与选择回响 */
.soul-prompt-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(94, 194, 242, 0.08);
  border-left: 3px solid var(--cyan);
}

.soul-q {
  font-size: 0.9rem;
  color: #bae6fd;
  margin-bottom: 8px;
}

.soul-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(223, 176, 86, 0.28);
  background: rgba(8, 11, 18, 0.85);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 0.88rem;
}

.soul-input:focus {
  outline: none;
  border-color: var(--gold-bright);
}

.outcome-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(223, 176, 86, 0.1);
  border: 1px solid rgba(223, 176, 86, 0.35);
  animation: fadeSlideUp 0.3s ease;
}

.outcome-text {
  font-size: 0.98rem;
  color: var(--gold-bright);
}

.outcome-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.delta-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.delta-pos { color: #6ee7b7; }
.delta-neg { color: #fca5a5; }

/* 逐岁编年史流 */
.chronicle-panel {
  margin-top: 16px;
  background: rgba(12, 16, 25, 0.86);
  border: 1px solid rgba(223, 176, 86, 0.16);
  border-radius: 16px;
  padding: 16px;
}

.chronicle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.92rem;
}

.chronicle-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
}

.chronicle-entry {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 30, 44, 0.62);
  border-left: 2px solid rgba(223, 176, 86, 0.35);
  animation: fadeSlideUp 0.32s ease;
}

.chronicle-entry.is-choice {
  background: rgba(45, 36, 22, 0.55);
  border-left: 3px solid var(--gold-bright);
}

.chronicle-entry.is-peer {
  background: rgba(18, 34, 48, 0.62);
  border-left: 3px solid var(--cyan);
}

.entry-age {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
}

.entry-body {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.58;
}

.epoch-loading-box {
  margin-top: 16px;
  padding: 24px 16px;
  text-align: center;
  border-radius: 14px;
  background: rgba(18, 25, 38, 0.9);
  border: 1px dashed rgba(223, 176, 86, 0.4);
}

.epoch-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 2px solid rgba(223, 176, 86, 0.2);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.memorial-note-box {
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
}

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

/* ====== 终章暗房高转化心理钩子与闲鱼价格锚点卡 ====== */
.film-strip-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(247, 215, 136, 0.58);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.seal-ring {
  box-shadow: 0 0 22px rgba(229, 96, 69, 0.18);
  animation: redroomPulse 3s infinite ease-in-out;
}

.conversion-hook-box {
  border-radius: 12px;
  padding: 18px 16px;
  background: linear-gradient(145deg, rgba(36, 26, 20, 0.94) 0%, rgba(20, 15, 14, 0.96) 100%);
  border: 1px solid rgba(247, 215, 136, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hook-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #f59e0b;
  margin-bottom: 4px;
}

.hook-title {
  font-size: 1.16rem;
  color: var(--gold-bright);
  font-weight: 500;
  line-height: 1.45;
}

.hook-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  margin-top: 4px;
}

.deliverables-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .deliverables-strip {
    grid-template-columns: 1fr;
  }
}

.deliv-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(12, 10, 10, 0.66);
  border: 1px solid rgba(223, 176, 86, 0.16);
}

.deliv-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.deliv-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.deliv-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.38;
  margin-top: 2px;
}

.xianyu-deal-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(201, 74, 52, 0.16) 100%);
  border: 1px solid rgba(247, 215, 136, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.deal-price-block {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .xianyu-deal-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.deal-tag-hot,
.deal-tag-gift {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.deal-tag-hot {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.deal-tag-gift {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.48);
  color: #fde68a;
}

.deal-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.deal-currency {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #fbbf24;
  font-weight: 600;
}

.deal-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  color: #fde68a;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.35);
}

.deal-unit {
  font-size: 0.86rem;
  color: var(--gold-bright);
  margin-right: 6px;
}

.deal-orig {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 6px;
}

.deal-anchor-note {
  display: block;
  width: 100%;
  margin-top: 3px;
  font-size: 0.79rem;
  color: #fed7aa;
}

.xianyu-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  color: #1c1004;
  font-family: var(--font-serif);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 215px;
}

.xianyu-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.52);
}

.xianyu-cta-btn span {
  font-size: 0.96rem;
  font-weight: 600;
  color: #1a0f02;
}

.xianyu-cta-btn small {
  font-size: 0.73rem;
  color: rgba(26, 15, 2, 0.84);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .xianyu-cta-btn {
    width: 100%;
  }
}

.code-input-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.code-input-divider::before,
.code-input-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(223, 176, 86, 0.18);
}

.modal-deal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 460px) {
  .modal-deal-cards {
    grid-template-columns: 1fr;
  }
}

.modal-tier-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 176, 86, 0.22);
}

.modal-tier-card.recommended {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16) 0%, rgba(201, 74, 52, 0.14) 100%);
  border-color: var(--gold-bright);
}

.tier-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold-bright);
  background: rgba(223, 176, 86, 0.16);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fde68a;
}

.tier-price span {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-sub);
}

.tier-note {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.42;
}
