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

html, body {
  margin: 0;
  padding: 0;
  background: #05080c;
  color: var(--text-paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, #131c28 0%, #05080c 62%);
}

.app {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background: var(--bg-obsidian);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
  padding-bottom: calc(var(--tabbar-h) + 14px);
}

/* ── 背景层：远山雾气 + 金尘 ────────────────────────── */
.mist, .dust {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.mist {
  inset: 0;
  max-width: 460px;
  background:
    radial-gradient(60% 34% at 50% 92%, rgba(111, 143, 126, 0.20), transparent 70%),
    radial-gradient(70% 40% at 18% 8%, rgba(197, 163, 106, 0.12), transparent 72%),
    radial-gradient(50% 30% at 88% 24%, rgba(36, 52, 73, 0.55), transparent 76%);
  filter: blur(0.4px);
  animation: mistDrift 26s var(--ease-out) infinite alternate;
}
.mist::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.028) 0 2px, transparent 2px 6px);
  opacity: 0.5;
}
@keyframes mistDrift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, -1%, 0) scale(1.06); }
}
.dust { inset: 0; width: 100%; max-width: 460px; height: 100%; opacity: 0.9; z-index: 1; }

.app > .brand, .app > .view { position: relative; z-index: 2; }

/* ── 品牌头 ──────────────────────────────────────── */
.brand {
  padding: 26px 24px 10px;
  text-align: center;
}
.brand__mark {
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--gold-dim);
  margin-bottom: 10px;
}
.brand__title {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  text-shadow: 0 0 22px rgba(197, 163, 106, 0.35);
}
.brand__sub {
  margin: 8px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ── 视图切换 ─────────────────────────────────────── */
.view {
  display: none;
  padding: 8px 20px 8px;
  animation: viewIn 0.42s var(--ease-out) both;
}
.view.is-active { display: block; }
.view[data-view="index"].is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 210px);
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── 玄金铜镜上传框 ───────────────────────────────── */
.mirror-stage { display: grid; place-items: center; padding: 12px 0 6px; }
.mirror {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 42%, rgba(36, 52, 73, 0.9), rgba(11, 16, 24, 0.96) 68%);
  box-shadow:
    inset 0 0 40px rgba(197, 163, 106, 0.16),
    0 0 0 1px rgba(197, 163, 106, 0.35),
    0 22px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.mirror:active { transform: scale(0.985); }
.mirror__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 163, 106, 0.35);
  animation: spin 34s linear infinite;
}
.mirror__ring--inner {
  inset: 4px;
  border-style: solid;
  border-color: rgba(197, 163, 106, 0.18);
  animation-direction: reverse;
  animation-duration: 26s;
}
.mirror.is-scanning .mirror__ring { animation-duration: 2.6s; }
.mirror.is-scanning .mirror__ring--inner { animation-duration: 1.9s; }
@keyframes spin { to { transform: rotate(360deg); } }

.mirror__ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    repeating-conic-gradient(from 0deg, rgba(197, 163, 106, 0.5) 0deg 0.5deg, transparent 0.5deg 6deg);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 72%, transparent 73%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 72%, transparent 73%);
  opacity: 0.55;
}
.mirror__inner {
  position: relative;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(197,163,106,0.10), transparent 62%);
}
.mirror__inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}
.mirror__hint {
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  line-height: 2;
}
.mirror__hint small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 6px;
}
.mirror__scan {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  box-shadow: 0 0 18px 3px rgba(239, 224, 185, 0.55);
  opacity: 0;
  z-index: 3;
}
.mirror.is-scanning .mirror__scan {
  opacity: 1;
  animation: scanY 1.9s ease-in-out infinite alternate;
}
@keyframes scanY {
  from { top: 12%; }
  to { top: 86%; }
}

/* ── 按钮 ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: transform 0.24s var(--ease-out), filter 0.24s;
}
.btn:active { transform: scale(0.98); }
.btn--gold {
  color: #241a0d;
  font-weight: 600;
  background: linear-gradient(135deg, #efe0b9 0%, #c5a36a 52%, #a9863f 100%);
  box-shadow: 0 10px 30px rgba(197, 163, 106, 0.32);
}
/*
 * 玩法内与结果页的主按钮跟随主题色：
 * 神兽走青玉、古人走朱砂，大厅仍保持品牌金（那里不该被上一个玩法的颜色污染）。
 * 注意：古人视图（data-view="index"）没有 is-play 类，所以这里用「当前激活视图」选择。
 */
.view.is-active .btn--gold,
.pres .btn--gold {
  color: #0f1a18;
  background: linear-gradient(135deg, var(--play-accent, #efe0b9) 0%, var(--play-primary, #c5a36a) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
/* 朱砂底偏深，深色字读不清，改用纸本浅色 */
html[data-play="ink"] .view.is-active .btn--gold,
html[data-play="ink"] .pres .btn--gold {
  color: #fbece6;
  text-shadow: 0 1px 2px rgba(70, 20, 14, 0.45);
}
.btn--ghost {
  color: var(--gold-light);
  background: rgba(21, 31, 44, 0.72);
  border: var(--hairline);
}
.btn--cinnabar {
  color: #f6e7e2;
  background: linear-gradient(135deg, #b9544a, var(--cinnabar-red) 60%, var(--cinnabar-deep));
  box-shadow: 0 10px 26px rgba(169, 71, 61, 0.34);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: grid; gap: 10px; padding: 16px 0 6px; }

/* ── 偏好题 ──────────────────────────────────────── */
.prefs { display: none; padding: 6px 0 2px; animation: viewIn 0.38s var(--ease-out) both; }
.prefs.is-open { display: block; }
.prefs__q {
  margin: 16px 0 9px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 163, 106, 0.24);
  background: rgba(21, 31, 44, 0.7);
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}
.chip.is-on {
  color: #221a0e;
  border-color: transparent;
  background: linear-gradient(135deg, #efe0b9, #c5a36a);
  box-shadow: var(--shadow-gold);
}

/* ── 扫描阶段 ────────────────────────────────────── */
.stages {
  display: none;
  margin: 16px 0 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: var(--hairline);
  background: rgba(21, 31, 44, 0.6);
}
.stages.is-open { display: block; }
.stage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  opacity: 0.42;
  transition: opacity 0.3s, color 0.3s;
}
.stage-row.is-done, .stage-row.is-active { opacity: 1; }
.stage-row.is-active { color: var(--gold-light); }
.stage-row__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(197, 163, 106, 0.4);
  flex: none;
}
.stage-row.is-done .stage-row__dot { background: var(--jade); }
.stage-row.is-active .stage-row__dot {
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(239, 224, 185, 0.16);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(239, 224, 185, 0.04); } }

/* ── 合规提示 ────────────────────────────────────── */
.compliance {
  margin: 18px 0 4px;
  padding: 12px 14px;
  border-left: 2px solid rgba(169, 71, 61, 0.55);
  border-radius: 0 8px 8px 0;
  background: rgba(169, 71, 61, 0.06);
  font-size: 10.5px;
  line-height: 1.85;
  color: #8f8d84;
}

/* ── 底部弹窗（半屏）──────────────────────────────── */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 7, 11, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.26s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%;
  max-width: 460px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border-top: var(--hairline);
  background: linear-gradient(180deg, #16212f 0%, #0d141d 100%);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.65);
  animation: sheetUp 0.42s var(--ease-out) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet__title {
  font-family: var(--font-kai);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin: 0 0 4px;
}
.sheet__meta { font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.06em; margin-bottom: 12px; }
.sheet__body {
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.9;
  color: #c9c5bb;
  padding-right: 4px;
}
.sheet__body h4 {
  font-family: var(--font-kai);
  font-size: 13.5px;
  color: var(--gold-primary);
  margin: 14px 0 4px;
  letter-spacing: 0.08em;
}
.sheet__body p { margin: 0 0 8px; }
.sheet__body strong { color: var(--gold-light); font-weight: 500; }
.sheet__foot { padding-top: 14px; display: grid; gap: 10px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #cfcabf;
  cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--gold-primary); width: 15px; height: 15px; }

/* ── 结果页 ──────────────────────────────────────── */
.result-head { display: grid; place-items: center; padding: 14px 0 4px; }
.seal-word {
  font-family: var(--font-kai);
  font-size: 40px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(197, 163, 106, 0.4);
  margin: 0;
}
.seal-word__label {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--gold-dim);
  margin-top: 6px;
}
.commentary {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 2;
  color: #d8d2c6;
  text-align: justify;
}
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 163, 106, 0.3);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
}

.card {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: var(--hairline);
  background: linear-gradient(180deg, rgba(26, 37, 52, 0.92), rgba(16, 23, 33, 0.94));
  box-shadow: var(--shadow-soft);
}
.card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-kai);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  margin: 0 0 10px;
}
.card__title::before {
  content: "";
  width: 14px; height: 1px; background: var(--gold-dim);
}
.radar-wrap { position: relative; display: grid; place-items: center; }
#radar { width: 100%; height: 230px; display: block; }
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
}
.radar-legend b { color: var(--gold-light); font-weight: 500; }

/* 火漆封印悬念卡 */
.wax-card {
  position: relative;
  margin-top: 16px;
  padding: 18px 16px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(169, 71, 61, 0.42);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(169, 71, 61, 0.16), transparent 62%),
    linear-gradient(180deg, #1b1620, #12131c 62%, #0e1017);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(169, 71, 61, 0.08);
}
.wax-card__hint {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(239, 224, 185, 0.5);
  text-align: center;
}
.wax-silhouette {
  position: relative;
  height: 176px;
  margin: 12px 0 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 100%, rgba(197, 163, 106, 0.22), transparent 70%),
    linear-gradient(180deg, #10161f, #0a0d13);
}
.wax-silhouette__figure {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 58%;
  aspect-ratio: 0.62;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: linear-gradient(180deg, rgba(239, 224, 185, 0.34), rgba(197, 163, 106, 0.05) 78%);
  filter: blur(7px);
}
.wax-silhouette__ink {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 68%, rgba(197, 163, 106, 0.16), transparent 42%),
    radial-gradient(circle at 74% 40%, rgba(111, 143, 126, 0.16), transparent 46%);
}
.wax-silhouette__name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 46px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(239, 224, 185, 0.14);
  filter: blur(2.4px);
  user-select: none;
}
.wax-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #c4645a, var(--cinnabar-red) 52%, var(--cinnabar-deep) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 -4px 10px rgba(0, 0, 0, 0.35), inset 0 4px 10px rgba(255, 255, 255, 0.16);
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #ffeee8;
  transform: rotate(-8deg);
}
.wax-badge::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 236, 228, 0.4);
}
.wax-clue { text-align: center; }
.wax-clue__meta {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.wax-clue__quote {
  margin: 10px 0 4px;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  line-height: 1.9;
}
.wax-clue__src { font-size: 10.5px; color: var(--gold-dim); }
.wax-clue__fit {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 163, 106, 0.3);
  font-size: 11px;
  color: var(--text-muted);
}
.wax-clue__fit b {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-light);
  font-weight: 500;
}
.others { display: flex; gap: 8px; margin-top: 12px; }
.other {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(11, 16, 24, 0.6);
  border: 1px dashed rgba(197, 163, 106, 0.2);
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.other b { display: block; color: #bda578; font-weight: 500; font-size: 11.5px; }

/* 双档解锁面板 */
.price-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 163, 106, 0.26);
  background: linear-gradient(180deg, rgba(26, 37, 52, 0.96), rgba(13, 19, 27, 0.98));
  box-shadow: var(--shadow-soft);
}
.tier {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.24s var(--ease-out);
  border: 1px solid transparent;
}
.tier + .tier { margin-top: 8px; }
.tier.is-on {
  border-color: rgba(197, 163, 106, 0.5);
  background: rgba(197, 163, 106, 0.08);
  box-shadow: var(--shadow-gold);
}
.tier__price {
  flex: none;
  width: 68px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold-light);
  line-height: 1.2;
}
.tier__price small { font-size: 11px; color: var(--gold-dim); }
.tier__main { flex: 1; }
.tier__name {
  font-size: 13px;
  color: var(--text-paper);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.tier__desc { font-size: 10.5px; color: var(--text-muted); line-height: 1.7; }
.tier__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  color: #221a0e;
  background: var(--gold-primary);
  vertical-align: 1px;
}
.panel-note {
  margin: 10px 2px 0;
  font-size: 10px;
  color: #7d7b73;
  line-height: 1.8;
}

/* 已解锁卷轴 */
.scroll-card {
  position: relative;
  margin-top: 18px;
  padding: 22px 18px 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(197, 163, 106, 0.34);
  background: linear-gradient(180deg, #1a2432 0%, #121a26 58%, #0d131c 100%);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.6);
  animation: scrollOpen 0.72s var(--ease-out) both;
}
@keyframes scrollOpen {
  from { opacity: 0; transform: translateY(18px) scaleY(0.94); }
  to { opacity: 1; transform: none; }
}
.scroll-card__scene {
  position: absolute;
  inset: 0;
  opacity: 0.68;
  background-size: cover;
  background-position: center;
}
.scroll-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.34), rgba(11, 16, 24, 0.86) 58%, #0b1018);
}
.scroll-card__inner { position: relative; }
.scroll-card__dynasty {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--gold-dim);
}
.scroll-card__name {
  margin: 6px 0 2px;
  font-family: var(--font-kai);
  font-size: 44px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  text-shadow: 0 0 26px rgba(197, 163, 106, 0.36);
  line-height: 1.25;
}
.scroll-card__years { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; }
.scroll-card__alias { font-size: 11.5px; color: #b6ad9e; margin-top: 2px; }
.scroll-card__stamp {
  position: absolute;
  right: 4px;
  top: 6px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(169, 71, 61, 0.9);
  border-radius: 6px;
  color: #d7756a;
  font-family: var(--font-kai);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-4deg);
  opacity: 0.92;
}
.scroll-card__quote {
  margin: 16px 0 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(197, 163, 106, 0.4);
  font-family: var(--font-kai);
  font-size: 17px;
  line-height: 2;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.scroll-card__spirit {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(169, 71, 61, 0.14);
  border: 1px solid rgba(169, 71, 61, 0.4);
  font-size: 11px;
  color: #db9a91;
  letter-spacing: 0.08em;
}
.scroll-block { margin-top: 18px; }
.scroll-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
}
.scroll-block h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 163, 106, 0.28), transparent);
}
.scroll-block p { margin: 0; font-size: 12.5px; line-height: 1.95; color: #cfc9bd; text-align: justify; }
.sources { margin: 8px 0 0; padding: 0; list-style: none; }
.sources li {
  font-size: 10.5px;
  color: #8a877e;
  line-height: 1.8;
  padding-left: 12px;
  position: relative;
}
.sources li::before { content: "·"; position: absolute; left: 2px; }
.avatar-tabs { display: flex; gap: 8px; margin-top: 16px; }
.avatar-tab {
  flex: 1;
  padding: 9px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 163, 106, 0.22);
  background: rgba(21, 31, 44, 0.7);
  color: var(--text-muted);
  font-size: 11.5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}
.avatar-tab.is-on {
  color: #221a0e;
  background: linear-gradient(135deg, #efe0b9, #c5a36a);
  border-color: transparent;
}
.art-notice {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(197, 163, 106, 0.2);
  font-size: 10px;
  color: #7d7b73;
  letter-spacing: 0.04em;
}

/* 破封动效 */
.break-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(169, 71, 61, 0.22), rgba(4, 7, 11, 0.94) 65%);
  animation: fadeIn 0.3s ease both;
}
.break-seal {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 26px;
  color: #ffeee8;
  background: radial-gradient(circle at 36% 28%, #c4645a, var(--cinnabar-red) 52%, var(--cinnabar-deep));
  box-shadow: 0 0 60px rgba(169, 71, 61, 0.55), inset 0 -6px 16px rgba(0, 0, 0, 0.4);
  animation: sealBreak 1.05s var(--ease-out) forwards;
}
@keyframes sealBreak {
  0% { transform: scale(1); opacity: 1; }
  18% { transform: scale(1.08) rotate(-3deg); }
  30% { transform: scale(1.02) rotate(2deg); }
  55% { transform: scale(1.16); opacity: 0.9; filter: blur(0.6px); }
  100% { transform: scale(1.5); opacity: 0; filter: blur(6px); }
}
.break-text {
  margin-top: 22px;
  font-family: var(--font-kai);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.45s forwards;
}

/* ── 写真工坊 ────────────────────────────────────── */
.styles { display: flex; gap: 10px; margin-top: 12px; }
.style-card {
  flex: 1;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.22);
  background: rgba(21, 31, 44, 0.7);
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.6;
  transition: all 0.24s var(--ease-out);
}
.style-card.is-on {
  border-color: rgba(197, 163, 106, 0.6);
  color: var(--gold-light);
  background: rgba(197, 163, 106, 0.1);
  box-shadow: var(--shadow-gold);
}
.style-card span { display: block; font-size: 18px; margin-bottom: 4px; }
.portrait-grid { display: grid; gap: 12px; margin-top: 14px; }
.portrait-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.3);
  box-shadow: var(--shadow-soft);
}
.meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 6px 2px;
}
.timer-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(197, 163, 106, 0.3);
  font-size: 11.5px;
  color: #b6ad9e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timer-box b { font-family: var(--font-serif); font-size: 16px; color: var(--gold-light); }

/* ── 政策页 ──────────────────────────────────────── */
.policy-item { margin-top: 12px; }
.policy-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-kai);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
}
.policy-item p { margin: 0; font-size: 12px; line-height: 1.95; color: #b8b4aa; text-align: justify; }
.receipt {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(111, 143, 126, 0.4);
  background: rgba(111, 143, 126, 0.08);
  font-size: 11.5px;
  color: #a9c3b6;
  line-height: 1.9;
}

/* ── Tabbar ─────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  background: rgba(9, 13, 19, 0.94);
  border-top: 1px solid rgba(197, 163, 106, 0.16);
  backdrop-filter: blur(14px);
  z-index: 40;
}
.tab {
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6f6d66;
  cursor: pointer;
  transition: color 0.24s;
}
.tab span:first-child { font-size: 15px; }
.tab.is-on { color: var(--gold-light); }

/* ── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 26px);
  transform: translateX(-50%) translateY(10px);
  z-index: 90;
  max-width: 80vw;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(21, 31, 44, 0.96);
  border: var(--hairline);
  font-size: 12px;
  color: var(--text-paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.btn-row[hidden], .timer-box[hidden], .portrait-grid[hidden] { display: none !important; }

/* ── 体验台 ─────────────────────────────────────── */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 4px;
}
.sample {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(197, 163, 106, 0.22);
  cursor: pointer;
  transition: transform 0.24s var(--ease-out), border-color 0.24s, box-shadow 0.24s;
  background: #0d131c;
}
.sample:active { transform: scale(0.98); }
.sample.is-on {
  border-color: rgba(197, 163, 106, 0.7);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.sample img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; opacity: 0.92; }
.sample__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 8px 7px;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 15, 0.92) 62%);
  font-size: 11.5px;
  color: var(--text-paper);
}
.sample__meta b { font-family: var(--font-kai); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; }
.sample__meta small { display: block; font-size: 9.5px; color: #9c998f; letter-spacing: 0.02em; margin-top: 1px; }
.sample__badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #221a0e;
  background: linear-gradient(135deg, #efe0b9, #c5a36a);
  opacity: 0.92;
}
.flow-log {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(197, 163, 106, 0.24);
  background: rgba(8, 12, 18, 0.6);
  font-size: 11px;
  line-height: 1.95;
  color: #b6b2a8;
  max-height: 240px;
  overflow-y: auto;
}
.flow-log__line { animation: viewIn 0.3s var(--ease-out) both; }
.flow-log__line i { color: var(--jade); font-style: normal; margin-right: 6px; }
.flow-log__line em { color: var(--gold-light); font-style: normal; }
.flow-log__idle { color: #7d7b73; }

/* 火漆封印：可点击、会裂 */
.wax-badge { cursor: pointer; transition: transform 0.2s var(--ease-out); }
.wax-badge:active { transform: rotate(-8deg) scale(0.96); }
.wax-badge.is-hit { animation: sealShake 0.42s var(--ease-out); }
@keyframes sealShake {
  20% { transform: rotate(-11deg) scale(1.07); }
  45% { transform: rotate(9deg) scale(1.03); }
  70% { transform: rotate(-5deg) scale(1.01); }
  100% { transform: rotate(-8deg) scale(1); }
}
.wax-badge .cracks { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.wax-tip {
  margin-top: 10px;
  text-align: center;
  font-size: 10.5px;
  color: var(--gold-dim);
  letter-spacing: 0.06em;
  min-height: 16px;
}

/* 揭晓：名字逐字浮现 */
.reveal-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  filter: blur(7px);
  animation: charIn 0.62s var(--ease-out) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.scroll-card.is-fresh .scroll-card__stamp { animation: stampDown 0.5s var(--ease-out) 0.55s both; }
@keyframes stampDown {
  0% { opacity: 0; transform: rotate(-16deg) scale(2.1); }
  60% { opacity: 1; transform: rotate(-4deg) scale(0.94); }
  100% { opacity: 0.92; transform: rotate(-4deg) scale(1); }
}
.ink-canvas { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* ── 低端机降级 ─────────────────────────────────── */
.perf-low .mist { animation: none; filter: none; }
.perf-low .dust { display: none; }
.perf-low .mirror { box-shadow: inset 0 0 24px rgba(197, 163, 106, 0.12), 0 0 0 1px rgba(197, 163, 106, 0.3); }
.perf-low .mirror__ring { animation: none; }
.perf-low .mirror__ticks { display: none; }
.perf-low .tabbar { backdrop-filter: none; }
.perf-low .sheet-mask { backdrop-filter: none; }
.perf-low .scroll-card { animation: fadeIn 0.3s ease both; }
.perf-low .break-seal { animation: fadeOutScale 0.5s var(--ease-out) forwards; }
.perf-low .reveal-char { animation: none; opacity: 1; transform: none; filter: none; }
.perf-low .scroll-card.is-fresh .scroll-card__stamp { animation: none; }
.perf-low .wax-badge.is-hit { animation: none; }
@keyframes fadeOutScale { to { transform: scale(1.15); opacity: 0; } }
.perf-low .compliance, .perf-low .card { box-shadow: none; }

/* 加载态 */
.loading-dots::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "·"; }
  50% { content: "··"; }
  75% { content: "···"; }
}
.center { text-align: center; }
.mt8 { margin-top: 8px; }
.muted { color: var(--text-muted); font-size: 11px; }

/* ══════════════════════════════════════════════════════
   新版 6 模块长卷报告
   ══════════════════════════════════════════════════════ */

/* ── 核心匹配卡 ─────────────────────────────────── */
.rep-hero {
  position: relative;
  margin: 0 0 18px;
  /* 固定一个较高的舞台，让文字沉到底部，把人物面部让出来：
     原来高度由内容撑开，姓名正好落在额头位置 */
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 22px 46px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(197, 163, 106, 0.26);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.rep-hero__scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transform: scale(1.04);
  z-index: 0;
}
.rep-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.42) 0%, rgba(11, 16, 24, 0.82) 58%, #0b1018 100%);
  z-index: 1;
}
.rep-hero__inner { position: relative; z-index: 2; }

.rep-hero__match {
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-content: center;
  /* 挪到姓名下方，让出人物面部；字号也收一档，不抢主角 */
  margin: 2px 0 12px;
  font-family: var(--font-serif);
  color: var(--gold-light);
}
.rep-hero__match b {
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(239, 224, 185, 0.28);
}
.rep-hero__match em {
  font-style: normal;
  font-size: 15px;
  color: var(--gold-primary);
  margin-right: 9px;
}
.rep-hero__match span {
  font-size: 10.5px;
  color: rgba(242, 234, 224, 0.62);
  letter-spacing: 0.12em;
}

.rep-hero__name {
  margin: 14px 0 8px;
  text-align: center;
  font-family: var(--font-kai);
  font-size: 40px;
  letter-spacing: 0.16em;
  color: var(--text-paper);
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.rep-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.rep-hero__badges span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  /* 古人篇走朱砂，不再用金色：身份标签是最容易一眼看出主题的地方 */
  color: #e8bcae;
  border: 1px solid rgba(182, 90, 74, 0.42);
  background: rgba(182, 90, 74, 0.14);
}
.rep-hero__temp {
  margin-top: 10px;
  font-family: var(--font-kai);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: rgba(222, 199, 148, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}
.rep-hero__keys {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}
.rep-hero__keys i {
  font-style: normal;
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #f2dcd3;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  /* 三个关键词是"题签"的主体，朱砂要压得住但不能糊成一团 */
  background: linear-gradient(135deg, rgba(182, 90, 74, 0.44), rgba(140, 47, 40, 0.26));
  border: 1px solid rgba(182, 90, 74, 0.4);
}
.rep-hero__quote {
  margin: 18px auto 8px;
  max-width: 300px;
  padding: 14px 16px;
  text-align: center;
  font-family: var(--font-kai);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  border-top: 1px solid rgba(197, 163, 106, 0.22);
  border-bottom: 1px solid rgba(197, 163, 106, 0.22);
  background: rgba(11, 16, 24, 0.42);
  border-radius: 2px;
}
.rep-hero__notice {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(242, 234, 224, 0.36);
}
.rep-hero__stamp {
  position: absolute;
  right: 16px;
  bottom: 16px;
  top: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(169, 71, 61, 0.82);
  border-radius: 6px;
  color: #e9c4b6;
  font-family: var(--font-kai);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  background: rgba(169, 71, 61, 0.16);
  transform: rotate(-6deg);
  opacity: 0.9;
  z-index: 3;
}
.rep-hero__dyn {
  position: absolute;
  left: 22px;
  bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242, 234, 224, 0.5);
  z-index: 3;
}

/* ── Top3 匹配卡片 ───────────────────────────────── */
.rep-top3 {
  margin: 0 0 18px;
  padding: 16px 16px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.22);
  background: linear-gradient(165deg, #131c28 0%, #0e1520 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}
.rep-top3__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.rep-top3__kicker {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--gold-dim);
}
.rep-top3__head b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
.rep-top3__pool {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 234, 224, 0.34);
}
.rep-top3__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rep-top3__item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(197, 163, 106, 0.1);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease-out),
    background 0.18s var(--ease-out),
    transform 0.14s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.rep-top3__item:active { transform: scale(0.992); }
/* 当前正在展示的那一位 */
.rep-top3__item.is-active {
  border-color: rgba(197, 163, 106, 0.62);
  background: linear-gradient(90deg, rgba(197, 163, 106, 0.16), rgba(255, 255, 255, 0.02));
}
.rep-top3__item.is-active::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--gold-primary);
}
.rep-top3__switch {
  padding: 1px 6px;
  border: 1px dashed rgba(197, 163, 106, 0.32);
  border-radius: var(--radius-pill);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--gold-dim);
}
.rep-top3__item.is-first {
  border-color: rgba(197, 163, 106, 0.42);
  background: linear-gradient(90deg, rgba(197, 163, 106, 0.1), rgba(255, 255, 255, 0.02));
}
.rep-top3__rank {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(197, 163, 106, 0.24);
  border-radius: 50%;
  font-size: 10px;
  color: rgba(242, 234, 224, 0.5);
}
.rep-top3__item.is-first .rep-top3__rank {
  color: #0b1018;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}
.rep-top3__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.rep-top3__line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.rep-top3__line b {
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-paper);
  white-space: nowrap;
}
.rep-top3__line span {
  overflow: hidden;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: rgba(242, 234, 224, 0.42);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rep-top3__bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.rep-top3__bar i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(197, 163, 106, 0.5), var(--gold-light));
  transform-origin: left center;
  animation: top3Grow 0.8s var(--ease-out) both;
}
@keyframes top3Grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.rep-top3__pct {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}
.rep-top3__pct small {
  margin-left: 1px;
  font-size: 9.5px;
  color: var(--gold-dim);
}
.rep-top3__item:not(.is-first) .rep-top3__pct {
  color: rgba(239, 224, 185, 0.72);
}
.rep-top3__notice {
  margin: 11px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(197, 163, 106, 0.28);
  border-radius: 8px;
  background: rgba(197, 163, 106, 0.08);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(242, 234, 224, 0.7);
}
.rep-top3.is-low .rep-top3__notice {
  border-color: rgba(169, 71, 61, 0.36);
  background: rgba(169, 71, 61, 0.1);
}
.rep-top3__foot {
  margin: 9px 0 0;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(242, 234, 224, 0.28);
}

/* ── 人物画像：单独展示 + 点击看原画 ─────────────── */
.rep-art {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 0 18px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.22);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(197, 163, 106, 0.1), transparent 62%),
    linear-gradient(160deg, #131c28 0%, #0f1621 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.rep-art__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(197, 163, 106, 0.4);
  border-radius: 8px;
  background: #0a0f16;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.rep-art__frame:active { transform: scale(0.985); }
.rep-art__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rep-art__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(6, 10, 16, 0.5) 100%);
}
.rep-art__seal {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  padding: 2px 6px;
  border: 1px solid rgba(233, 196, 182, 0.5);
  border-radius: 4px;
  background: rgba(169, 71, 61, 0.82);
  font-family: var(--font-kai);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #f0d9c4;
}
.rep-art__cap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-top: 4px;
}
.rep-art__label {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--gold-dim);
}
.rep-art__cap b {
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.rep-art__meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(242, 234, 224, 0.66);
}
.rep-art__note {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(242, 234, 224, 0.34);
}
.rep-art__tap {
  align-self: flex-start;
  margin-top: 3px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(197, 163, 106, 0.4);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
}

/* ── 画像原画全屏查看 ───────────────────────────── */
.art-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(4, 6, 10, 0.985);
  animation: fadeIn 0.22s ease both;
}
.art-viewer__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 2px 10px;
}
.art-viewer__title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.art-viewer__title b {
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.art-viewer__title span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(242, 234, 224, 0.5);
}
.art-viewer__close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(197, 163, 106, 0.34);
  border-radius: 50%;
  background: rgba(21, 31, 44, 0.9);
  color: var(--text-paper);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.art-viewer__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}
.art-viewer__stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: artIn 0.32s var(--ease-out) both;
}
@keyframes artIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
.art-viewer__note {
  padding-top: 10px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 234, 224, 0.34);
}

/* ── 通用 section ───────────────────────────────── */
.rep-sec {
  position: relative;
  margin: 0 0 14px;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.18);
  background: linear-gradient(180deg, rgba(21, 31, 44, 0.92), rgba(13, 19, 28, 0.94));
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
.rep-sec.is-in { opacity: 1; transform: none; }
.rep-sec--last { padding-bottom: 26px; }

.rep-sec__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.rep-sec__head i {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--cinnabar-red);
  letter-spacing: 0.1em;
  padding: 1px 6px;
  border: 1px solid rgba(169, 71, 61, 0.42);
  border-radius: 3px;
}
.rep-sec__head h3 {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-paper);
}
.rep-sec__head small {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 234, 224, 0.34);
}

/* 01 判词 */
.rep-verdict {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: #ded7cb;
}
.rep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rep-tags span {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: rgba(239, 224, 185, 0.86);
  background: rgba(197, 163, 106, 0.09);
  border: 1px solid rgba(197, 163, 106, 0.2);
}

/* 02 生平 */
.rep-life {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.95;
  color: #d6cfc3;
}
.rep-stance {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--gold-primary);
  letter-spacing: 0.02em;
}
.rep-stance b {
  color: var(--cinnabar-red);
  font-weight: 400;
  margin-right: 6px;
}
.rep-sources {
  border-top: 1px dashed rgba(197, 163, 106, 0.2);
  padding-top: 10px;
}
.rep-sources summary {
  cursor: pointer;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(242, 234, 224, 0.5);
  list-style: none;
}
.rep-sources summary::-webkit-details-marker { display: none; }
.rep-sources summary::before { content: "▸ "; color: var(--gold-dim); }
.rep-sources ul { margin: 8px 0 0; padding-left: 16px; }
.rep-sources li { font-size: 11px; line-height: 1.9; color: #a9a69c; }
.rep-sources__note { margin: 6px 0 0; font-size: 9.5px; color: rgba(242, 234, 224, 0.34); }

/* 03 八维 */
.rep-dims { display: grid; gap: 11px; }
.rep-dim {
  display: grid;
  grid-template-columns: 40px 1fr 34px;
  align-items: center;
  gap: 10px;
}
.rep-dim__label {
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-paper);
}
.rep-dim__bar {
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: rgba(197, 163, 106, 0.12);
  overflow: hidden;
}
.rep-dim__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(197, 163, 106, 0.55), #efe0b9);
  box-shadow: 0 0 10px rgba(239, 224, 185, 0.4);
  transition: width 1.05s var(--ease-out);
  transition-delay: 0.1s;
}
.rep-sec.is-in .rep-dim__bar i { width: var(--v); }
.rep-dim__num {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 400;
}
.rep-hint {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(242, 234, 224, 0.38);
}

/* 04 双底色 */
.rep-ground { display: grid; gap: 10px; }
.rep-ground__item {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(11, 16, 24, 0.5);
  border: 1px solid rgba(197, 163, 106, 0.14);
}
.rep-ground__no {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--cinnabar-red);
  margin-bottom: 5px;
}
.rep-ground__item b {
  font-family: var(--font-kai);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.rep-ground__item b em {
  font-style: normal;
  font-size: 11px;
  color: var(--gold-dim);
  margin-left: 4px;
}
.rep-ground__item p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.95;
  color: #c8c2b7;
}

/* 05 盲点 */
.rep-warn { display: grid; gap: 9px; }
.rep-warn__item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(169, 71, 61, 0.07);
  border-left: 2px solid rgba(169, 71, 61, 0.5);
}
.rep-warn__item--good {
  background: rgba(111, 143, 126, 0.09);
  border-left-color: rgba(111, 143, 126, 0.6);
}
.rep-warn__item h4 {
  margin: 0 0 6px;
  font-family: var(--font-kai);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
}
.rep-warn__item--good h4 { color: var(--jade); }
.rep-warn__item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.95;
  color: #cac4b9;
}
.rep-disclaimer {
  margin: 12px 0 0;
  font-size: 9.5px;
  line-height: 1.8;
  color: rgba(242, 234, 224, 0.32);
}

/* 另两位共鸣者 */
.rep-alts {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(197, 163, 106, 0.22);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.rep-alts.is-in { opacity: 1; transform: none; }
.rep-alts__title {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 234, 224, 0.44);
  margin-bottom: 10px;
}
.rep-alts__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rep-alt {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(21, 31, 44, 0.7);
  display: grid;
  gap: 2px;
}
.rep-alt b {
  font-family: var(--font-kai);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-paper);
}
.rep-alt span { font-size: 9.5px; color: rgba(242, 234, 224, 0.44); line-height: 1.6; }
.rep-alt em {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold-primary);
}

/* 06 典藏 */
.rep-note, .rep-code {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(242, 234, 224, 0.42);
}
.rep-ailabel {
  margin: 10px 0 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 234, 224, 0.3);
}
.rep-upsell {
  margin-top: 12px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.3);
  background: linear-gradient(150deg, rgba(169, 71, 61, 0.16), rgba(197, 163, 106, 0.08));
  text-align: center;
}
.rep-upsell__t {
  font-family: var(--font-kai);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.rep-upsell p {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.85;
  color: #b7b2a6;
}

/* ══ 兑换码输入弹层 ══════════════════════════════ */
.code-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 7, 11, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: end center;
  animation: viewIn 0.28s var(--ease-out);
}
.code-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, #16202d, #0b1018);
  border-top: 1px solid rgba(197, 163, 106, 0.3);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
  animation: sheetUp 0.36s var(--ease-out);
}
@keyframes sheetUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.code-sheet__title {
  margin: 0 0 6px;
  font-family: var(--font-kai);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-paper);
  text-align: center;
}
.code-sheet__sub {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px;
  line-height: 1.85;
  color: var(--text-muted);
}
.code-input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 163, 106, 0.32);
  background: rgba(8, 12, 18, 0.8);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.24s, box-shadow 0.24s;
}
.code-input::placeholder { letter-spacing: 0.06em; font-size: 14px; color: rgba(242, 234, 224, 0.28); }
.code-input:focus { border-color: rgba(197, 163, 106, 0.7); box-shadow: 0 0 0 3px rgba(197, 163, 106, 0.12); }
.code-input.is-bad { border-color: rgba(169, 71, 61, 0.8); box-shadow: 0 0 0 3px rgba(169, 71, 61, 0.14); }

.code-state {
  min-height: 34px;
  margin: 10px 0 4px;
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-muted);
}
.code-state.is-ok { color: var(--jade); }
.code-state.is-bad { color: #d98b80; }
.code-state b { color: var(--gold-light); font-weight: 400; }

.code-perk {
  display: grid;
  gap: 7px;
  margin: 14px 0 6px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 163, 106, 0.16);
  background: rgba(21, 31, 44, 0.6);
}
.code-perk span {
  position: relative;
  padding-left: 15px;
  font-size: 11px;
  line-height: 1.7;
  color: #b7b2a6;
}
.code-perk span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.code-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}
.code-links button {
  background: none;
  border: none;
  padding: 4px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 234, 224, 0.4);
  cursor: pointer;
  font-family: var(--font-sans);
}
.code-links button:hover { color: var(--gold-primary); }

/* 首页兑换码入口条 */
.code-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(197, 163, 106, 0.3);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(242, 234, 224, 0.6);
  cursor: pointer;
  transition: border-color 0.24s, color 0.24s;
}
.code-bar:hover { border-color: rgba(197, 163, 106, 0.6); color: var(--gold-light); }
.code-bar b { color: var(--gold-primary); font-weight: 400; }
.code-bar.is-ok { border-style: solid; border-color: rgba(111, 143, 126, 0.6); color: var(--jade); }

/* 低端机降级 */
.perf-low .rep-sec, .perf-low .rep-alts { opacity: 1; transform: none; transition: none; }
.perf-low .rep-dim__bar i { transition: none; width: var(--v); }
.perf-low .rep-hero__scene { transform: none; }
/* 低端机不做条形图生长动画，直接给终态 */
.perf-low .rep-top3__bar i { animation: none; }
/* 截图 / 录屏模式：动画一次性展开，避免条形停在 0 */
.rep-top3__bar i { will-change: transform; }

/* 涟漪过渡期间：淡出暗色蒙版，让照片与波纹真正可见；结束后自动淡回 */
.rep-hero__veil { transition: opacity 0.65s var(--ease-out); }
.rep-hero.is-morphing .rep-hero__veil { opacity: 0; }
.rep-hero.is-morphing .rep-hero__inner {
  /* 背景变亮时给文字留一点底，保证可读 */
  text-shadow: 0 1px 12px rgba(6, 9, 14, 0.85);
}

/* ══════════════════════════════════════════════════════
   三幕式揭晓：照片 → 古人（纯 CSS，GPU 合成 60fps）
   ① 定格褪色  ② 流光扫描  ③ 落印定格
   ══════════════════════════════════════════════════════ */

.morph-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out);
}
.morph-layer.is-gone { opacity: 0; }

/* 暗角：把注意力压向画面中心，同时压掉边角穿帮 */
.morph-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 46%, rgba(30, 22, 14, 0.72) 100%);
}

/* ── ① 照片层：褪成复古宣纸暗金调，同时轻微失焦 ──── */
.morph-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: none;
  will-change: filter, transform;
  transition:
    filter 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/*
 * 褪色同时加 3.2px 模糊：先糊成一片水墨，再让清晰工笔从里面「凝结」出来。
 * 清晰对清晰的切换没有质变感，糊对清晰才有。
 */
.rep-hero.is-fading .morph-photo {
  transform: scale(1);
  filter: sepia(0.78) saturate(0.55) contrast(1.14) brightness(0.9) hue-rotate(-8deg) blur(3.2px);
}
.perf-low .rep-hero.is-fading .morph-photo {
  filter: sepia(0.7) saturate(0.6) contrast(1.1) brightness(0.92);
}

/* ── ② 画像层：自上而下被扫描线揭示 ───────────────── */
.morph-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 100% 0);
  transform-origin: 50% 42%;
  will-change: clip-path, transform;
  /* 时长由 reveal.ts 注入的 --scan-dur 决定，改速度只改 T.scanDur 一处 */
  transition: clip-path var(--scan-dur, 1150ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.rep-hero.is-scanning .morph-art { clip-path: inset(0 0 0 0); }
.rep-hero.is-sealed .morph-art {
  transform: scale(1.035);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 扫描光带：宽度 22% 画幅，过曝吃掉两张脸的错位边界 ── */
.morph-scan {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 25%;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  /*
   * color-dodge 而不是 screen：半透明金粉叠在暗色照片上会发灰发脏，
   * 颜色减淡能让光带扫过衣褶与面部高光时真正「烧」起来，金属感更强。
   */
  mix-blend-mode: color-dodge;
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    rgba(246, 234, 208, 0) 0%,
    rgba(248, 228, 178, 0.1) 24%,
    rgba(255, 246, 214, 0.28) 50%,
    rgba(248, 228, 178, 0.1) 76%,
    rgba(246, 234, 208, 0) 100%
  );
}
.morph-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #ffeec2 16%, #fff8e2 50%, #ffeec2 84%, transparent);
  box-shadow: 0 0 26px 7px rgba(255, 238, 190, 0.6);
}
.rep-hero.is-scanning .morph-scan {
  animation: scanSweep var(--scan-dur, 1150ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes scanSweep {
  /* 光带高 25% 父高，translateY 的百分比相对自身高度；
     要让光带中心从画面顶部走到画面底部，自身位移需 -50% → 350% */
  0% { transform: translateY(-50%); opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(350%); opacity: 0; }
}

/* ── ③ 落印：朱砂印章砸下 ─────────────────────────── */
.rep-hero.is-sealed .rep-hero__stamp {
  animation: heroStamp 0.56s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes heroStamp {
  0% { opacity: 0; transform: rotate(-18deg) scale(2.4); }
  58% { opacity: 1; transform: rotate(-4deg) scale(0.92); }
  100% { opacity: 0.92; transform: rotate(-6deg) scale(1); }
}

/* 落印瞬间的金光，掩掉画像与照片的亮度跳变 */
.rep-hero.is-sealed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(255, 244, 214, 0.34), transparent 62%);
  animation: sealFlash 0.72s ease-out forwards;
}
@keyframes sealFlash {
  0% { opacity: 0; }
  22% { opacity: 1; }
  100% { opacity: 0; }
}

/* 名字在落印那一刻才逐字浮现（截图/低端机会立刻加 is-sealed，不会卡住） */
.rep-hero__name .reveal-char { animation-play-state: paused; }
.rep-hero.is-sealed .rep-hero__name .reveal-char { animation-play-state: running; }

/* 低端机：全部关闭，直接看终态 */
.perf-low .morph-layer { display: none; }
.perf-low .rep-hero.is-sealed .rep-hero__stamp { animation: none; }
.perf-low .rep-hero.is-sealed::after { animation: none; }
.perf-low .rep-hero__name .reveal-char { animation: none; opacity: 1; transform: none; filter: none; }

/* 前两幕只给画面，信息在落印时才出现：揭晓更有节奏，也避开文字压在亮照片上看不清 */
.rep-hero__inner { transition: opacity 0.42s var(--ease-out); }
.rep-hero.is-morphing:not(.is-sealed) .rep-hero__inner { opacity: 0; }
.rep-hero.is-morphing:not(.is-sealed) .rep-hero__dyn,
.rep-hero.is-morphing:not(.is-sealed) .rep-hero__stamp { opacity: 0; }

/* 照片处理中的占位与失败提示 */
.mirror__state {
  margin: 0;
  padding: 18px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(237, 230, 214, 0.72);
  letter-spacing: 0.06em;
}
.mirror__state small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(237, 230, 214, 0.5);
}

/*
 * 文件选择框的隐藏方式。
 *
 * 不能用 display:none / hidden —— iOS 与微信 WKWebView 会忽略对不可见 file input 的 click()，
 * 表现就是「点了上传没反应，连相册都不弹」。
 *
 * 更进一步：不要靠 JS 去 click()。让 input 透明铺满整块可点区域，
 * 用户点的就是 input 本身，不经过 label 转发也不经过脚本，
 * 这样才能保证 iOS 上 change 一定会回来。
 */
.fs-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  /* 必须能接收点击；不要写 pointer-events: none */
  z-index: 3;
  /* iOS 上 16px 以下的字号会触发聚焦缩放，这里给个安全值 */
  font-size: 16px;
}

/* 由按钮间接触发的场景（古人玩法）：放在视口内但不可见，交给 JS 调 click() */
.fs-file-input--proxy {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
