/* ============================================================
   天生财富力评估
   《天生财富力评估 V1.0 · [绝密档案]》
   黑曜石底 #05070A / 液体黄金 #D4AF37 / 霓虹蓝 #D4AF37 / 数据紫 #AA7C11 / 危险红 #B02A18
   每一个模块 = 独立的赛博炼金装置
   —— 与 test3 废土赛博、test2 暗夜、test1 档案美学彻底区分
   海报安全：魔法阵/液体/金句全部纯 CSS 或 inline 渐变，无 emoji、无 filter、无 mix-blend
   ============================================================ */

:root {
  --bg: #0A0806;            /* 深褐暖黑（替代冷黑） */
  --bg-2: #16120E;
  --card: #14100C;
  --card-2: #1C1611;
  --ink: #FDF5D3;           /* 褪色羊皮纸白 */
  --ink-2: #D8CEB5;         /* 次级文字：整体调亮一档（原 #C8BCA0 太暗） */
  --gray: #A89C82;          /* 弱化文字：调亮（原 #8C826B） */
  --line: #3A3224;          /* 极暗的铜边 */
  --gold: #CBA365;          /* 哑光黄铜金 */
  --gold-2: #8F703B;
  --gold-hi: #E8D399;
  --champagne: #B89C62;
  --red: #B02A18;           /* 静止厚重的朱砂印章红 */
  --red-deep: #8A1F12;
  /* 阴影全部为向下实体投影（去发光） */
  --glow-gold: 0 4px 12px rgba(0, 0, 0, .8);
  --glow-red: 0 4px 12px rgba(0, 0, 0, .8);
  --serif: "Noto Serif SC", "SimSun", "STZhongsong", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Georgia", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* 古典暗角 + 极淡纸张颗粒噪点 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 50%, rgba(203, 163, 101, .03) 0%, rgba(0, 0, 0, .22) 100%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 2px, transparent 2px, transparent 4px);
}
body::after { display: none; }

#app { max-width: 520px; width: 100%; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; }
.screen { min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }

/* ---------- 古典星盘法阵（纯 CSS，海报安全） ---------- */
.alchemy-circle {
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, .1), 0 0 20px rgba(212, 175, 55, .05);
}
.alchemy-circle::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, .5);
  animation: rot 40s linear infinite;
}
.alchemy-circle::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px solid rgba(253, 245, 211, .15);
}
.ac-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ac-ring-1 { inset: -4px; border: 1px solid rgba(212,175,55,.2); animation: rot 60s linear infinite reverse; }
.ac-ring-2 { inset: 12px; border: 2px dotted rgba(212,175,55,.3); animation: rot 45s linear infinite; }
.ac-cross { position: absolute; background: rgba(212,175,55,.35); pointer-events: none; }
.ac-cross-h { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.ac-cross-v { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.ac-core {
  position: absolute; z-index: 0;
  color: var(--gold-hi); font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.7);
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 按钮 ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  position: relative;
  display: block;
  height: 54px; padding: 0 26px;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 2px; line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  transition: background .22s ease, color .22s ease, border-color .22s ease,
              transform .12s ease, box-shadow .22s ease, opacity .2s;
}
.btn:focus { outline: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #362D26 0%, #1A1510 100%);
  color: #E8D399;
  border: 1px solid #AF813C;
  box-shadow: 0 8px 20px rgba(0,0,0,.15), inset 0 1px 1px rgba(255,255,255,.08);
  font-family: var(--serif); font-weight: 800; letter-spacing: 4px;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.btn-primary:active {
  background: linear-gradient(180deg, #1A1510 0%, #0D0A08 100%);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.5);
  transform: translateY(2px);
}
.btn-line {
  border-color: var(--champagne); color: var(--champagne);
  box-shadow: inset 0 0 14px rgba(212,175,55,.08), 0 0 12px rgba(212,175,55,.1);
}
.btn-ghost { color: var(--gray); }

/* 回到主页按钮：黄铜金描边，引导探索其他测评 */
.btn-portal {
  border-color: var(--gold); color: var(--gold-hi);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(203,163,101,.10), rgba(203,163,101,.02));
  box-shadow: inset 0 1px 0 rgba(203,163,101,.18);
}
.btn-portal:active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-nav {
  height: 42px; padding: 0 18px; font-size: 14px; color: var(--gray);
  background: transparent;
  border: 1px solid rgba(203, 163, 101, .2);
  font-family: var(--serif);
  border-radius: 2px;
  box-shadow: none;
}
.btn-nav::after, .btn-nav::before { display: none; }
.btn-nav-next { border-color: rgba(203, 163, 101, .6); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { height: 42px; font-size: 14px; padding: 0 18px; }

/* 双按钮同行：重新测试 + 探索其他测评 */
.btn-row { display: flex; gap: 12px; margin-top: 14px; }
.btn-row > * { flex: 1; min-width: 0; letter-spacing: 1px; padding: 0 12px; text-align: center; display: flex; align-items: center; justify-content: center; }
.btn-row .btn-ghost { border-color: rgba(203,163,101,.5); }
.btn-arrow::after { content: " ›"; }
/* 主按钮：金属雕刻（古典内敛，去除现代扫光） */
.btn-sweep { overflow: hidden; }
.btn-sweep::after { display: none; }
@keyframes btnSweep { to { left: 125%; } }
@keyframes btnBreathe {
  0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.6); }
  50% { box-shadow: 0 4px 22px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.6); }
}
/* 次级按钮：降权（历史档案） */
.btn-minor {
  height: 46px; font-size: 13px; letter-spacing: 1px;
  border-color: rgba(139,110,60,.4); color: #5C4A2A;
  box-shadow: none;
}

/* ---------- 封面：羊皮纸浅底 + 古典航海图全屏背景 ---------- */
#screen-cover {
  justify-content: center; align-items: center; text-align: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  /* 羊皮纸米色底 + 地图全屏 + 提亮罩（保证文字可读） */
  background-color: #F6F5F0;
  background-image:
    linear-gradient(rgba(246, 245, 240, .72), rgba(246, 245, 240, .78)),
    url("../assets/cover_map.jpeg");
  background-size: cover;
  background-position: center;
}
.cover-frame {
  width: 100%; position: relative; z-index: 2;
  border: 1px solid rgba(166, 124, 46, .5);
  padding: 34px 26px 34px;
  background: rgba(255, 253, 248, .4);
  box-shadow: 0 6px 24px rgba(90, 60, 20, .18), inset 0 0 60px rgba(255,255,255,.35);
}
.cover-frame::before, .cover-frame::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 1px;
}
.cover-frame::before {
  top: 8px;
  background: linear-gradient(90deg, transparent, rgba(166,124,46,.8) 30%, rgba(143,112,59,.6) 70%, transparent);
}
.cover-frame::after {
  bottom: 8px;
  background: linear-gradient(90deg, transparent, rgba(143,112,59,.6) 30%, rgba(166,124,46,.8) 70%, transparent);
}
/* 暖褐暗角（浅色下仅微微压边） + 尘埃 + 四角瞄准线 */
.cover-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at 50% 44%, rgba(139,110,60,0) 55%, rgba(139,110,60,.14) 100%);
  animation: coverFade 1.8s ease-out .35s both;
}
@keyframes coverFade { 0% { opacity: 0; } 100% { opacity: 1; } }
.cover-dust {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
}
.cover-dust i {
  position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(143,112,59,.6);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  opacity: 0;
  animation: dustFloat linear infinite;
}
.cover-dust i:nth-child(1)  { left: 12%;  animation-duration: 16s; animation-delay: 0s; }
.cover-dust i:nth-child(2)  { left: 24%;  animation-duration: 22s; animation-delay: 3s; }
.cover-dust i:nth-child(3)  { left: 38%;  animation-duration: 19s; animation-delay: 6s; }
.cover-dust i:nth-child(4)  { left: 52%;  animation-duration: 24s; animation-delay: 2s; }
.cover-dust i:nth-child(5)  { left: 63%;  animation-duration: 17s; animation-delay: 8s; }
.cover-dust i:nth-child(6)  { left: 74%;  animation-duration: 21s; animation-delay: 5s; }
.cover-dust i:nth-child(7)  { left: 85%;  animation-duration: 18s; animation-delay: 1s; }
.cover-dust i:nth-child(8)  { left: 91%;  animation-duration: 26s; animation-delay: 9s; }
.cover-dust i:nth-child(9)  { left: 7%;   animation-duration: 20s; animation-delay: 12s; }
.cover-dust i:nth-child(10) { left: 46%;  animation-duration: 15s; animation-delay: 14s; }
@keyframes dustFloat {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: .9; }
  88%  { opacity: .5; }
  100% { transform: translateY(-102vh); opacity: 0; }
}
.cover-corners { position: absolute; inset: 12px; z-index: 4; pointer-events: none; }
.cover-corners i {
  position: absolute; width: 14px; height: 14px; opacity: .9;
}
.cover-corners .cc-tl { top: 0; left: 0; }
.cover-corners .cc-tr { top: 0; right: 0; }
.cover-corners .cc-bl { bottom: 0; left: 0; }
.cover-corners .cc-br { bottom: 0; right: 0; }
.cover-corners i::before, .cover-corners i::after {
  content: ""; position: absolute; background: rgba(166,124,46,.9);
}
.cover-corners i::before { width: 14px; height: 1px; top: 50%; }
.cover-corners i::after  { height: 14px; width: 1px; left: 50%; }
/* 内容逐层浮现 */
.cover-label, .cover-title, .cover-hook-main, .cover-hook-sub, .cover-tag, .fomo-line,
.cover-actions, .cover-foot, .cover-copy {
  opacity: 0;
  animation: coverRise .7s cubic-bezier(.2,.8,.3,1) both;
}
.cover-label     { animation-delay: .85s; }
.cover-title     { animation-delay: 1.05s; }
.cover-hook-main { animation-delay: 1.25s; }
.cover-hook-sub  { animation-delay: 1.4s; }
.cover-tag       { animation-delay: 1.5s; }
.fomo-line       { animation-delay: 1.6s; }
.cover-actions   { animation-delay: 1.7s; }
.cover-foot      { animation-delay: 1.85s; }
.cover-copy      { animation-delay: 2s; }
@keyframes coverRise {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  #screen-cover, .cover-vignette, .cover-dust i,
  .cover-label, .cover-title, .cover-hook-main, .cover-hook-sub, .cover-tag, .fomo-line,
  .cover-actions, .cover-foot, .cover-copy { animation: none; opacity: 1; }
  .cover-dust i { opacity: 0; }
  #ritual .ritual-dim { animation: none; opacity: 0; }
  #ritual .ritual-gate i, #ritual .ritual-orbit, #ritual .ritual-term, #ritual .ritual-progress { animation: none; opacity: 1; }
}
/* 封面主按钮：深褐毛玻璃 + 暗金细边（浅底上成深色铭牌，对比清晰） */
.btn-glass {
  background: rgba(40,32,20,.88);
  border: 1px solid rgba(166,124,46,.7);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 12px rgba(90,60,20,.25), 0 2px 8px rgba(0,0,0,.16);
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .btn-glass { background: rgba(40,32,20,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.btn-glass:active { background: rgba(40,32,20,.94); box-shadow: none; }
/* 阅前提示弹窗（阅前协议） */
.intro-modal { text-align: left; }
.intro-rule {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(203, 163, 101, .15); /* 极淡实体铜线，弃虚线 */
}
.intro-rule:first-of-type { border-top: none; padding-top: 4px; }
.intro-rule b {
  flex: 0 0 auto; font-family: var(--serif); font-size: 12px;
  letter-spacing: 1px; color: var(--red); line-height: 1.7;
  text-shadow: none; /* 朱砂印泥实体感，去发光 */
}
.intro-rule span { font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.intro-rule em {
  display: block; font-style: normal; font-weight: 700;
  font-size: 13px; letter-spacing: 1px; color: var(--ink); margin-bottom: 2px;
}
.cover-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: #6B5A3C; margin-bottom: 20px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.cover-emblem {
  width: 160px; height: 160px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.cover-core-halo { width: 160px; height: 160px; }
.cover-core-halo .ac-core { font-size: 34px; }
/* 浅羊皮纸底上，法阵环线加深保证可见度（仅封面，不影响报告深色法阵） */
.cover-core-halo { border-color: rgba(143,112,59,.55); box-shadow: inset 0 0 26px rgba(143,112,59,.12), 0 0 18px rgba(143,112,59,.06); }
.cover-core-halo::before { border-color: rgba(143,112,59,.5); }
.cover-core-halo::after { border-color: rgba(120,100,60,.28); }
.cover-core-halo .ac-ring-1 { border-color: rgba(143,112,59,.4); }
.cover-core-halo .ac-ring-2 { border-color: rgba(143,112,59,.5); }
.cover-core-halo .ac-cross { background: rgba(143,112,59,.45); }
.cover-core-halo .ac-core { color: #8F6B1F; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
/* 压掉 AI 图腾里的青绿反光，强制转化为做旧黄铜 */
.cover-core-halo img {
  filter: sepia(1) hue-rotate(-15deg) saturate(1.2) brightness(0.8);
}
.cover-core-img {
  position: relative; z-index: 2;
  width: 118px; height: 118px;
  object-fit: contain;
}
.cover-title {
  font-size: 40px; font-weight: 800; letter-spacing: 4px; line-height: 1.2;
  color: #3A2C1C;
}
.cover-title span {
  display: block;
  color: #AF813C; /* 暗赤金兜底 */
  background: linear-gradient(120deg, #8F6B29 0%, #CFA257 40%, #AF813C 60%, #8F6B29 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 去掉光晕，改为向下实体压痕（活字印刷凹凸感） */
  text-shadow: 0px 2px 3px rgba(0, 0, 0, .15);
  animation: none;
}
/* 主/副 Hook：衬线体 + 凸版印刷效果（浅底） */
.cover-hook-main {
  margin-top: 16px;
  font-family: var(--serif);
  color: #3A2F22; /* 极深的复古棕黑 */
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px rgba(255,255,255,.8);
}
.cover-hook-sub {
  margin-top: 8px;
  font-size: 13px; line-height: 1.8; color: #6B5C4A;
}
/* 25 幕极限 · 深铜小字 */
.cover-tag {
  margin-top: 12px;
  font-size: 12px; letter-spacing: 2px; color: #6B5A3C;
  opacity: .9;
}
.cover-tag-hot {
  color: #A67C2E; font-weight: 700;
}
/* FOMO 社交证明（浅底深框 · 星芒符号） */
.fomo-line {
  margin: 16px auto 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #5C4F3C;
  border: 1px dashed #AF813C;
  padding: 7px 12px;
  background: rgba(175, 129, 60, .05);
}
.fomo-bolt { color: #B02A18; }
#fomo-counter {
  color: #8F6B29; font-family: var(--mono); font-weight: 700;
}
.cover-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.cover-foot {
  margin-top: 26px; font-family: var(--serif); font-size: 11px;
  letter-spacing: 3px; color: #7A6A4A; text-align: center;
}
.cover-copy {
  margin-top: 12px; font-family: var(--serif); font-size: 9px;
  letter-spacing: 2px; color: #8C826B; text-align: center; opacity: .8;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,4,7,.82);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.65);
}
.modal-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: var(--champagne); margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.modal-kicker.light { color: var(--gold); text-shadow: var(--glow-gold); }
.modal h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.modal-desc { font-size: 13px; line-height: 1.7; color: var(--gray); margin-bottom: 16px; }

/* 好评返现（对齐 test1 规则结构 · 赛博金融炼金适配） */
.cashback-modal { position: relative; text-align: left; padding: 26px 22px; }
.cashback-modal .modal-kicker, .cashback-modal h3 { text-align: center; }
.cashback-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 24px; line-height: 1;
  color: var(--gray); cursor: pointer; padding: 4px;
}
.cashback-close:active { color: var(--ink); }
.cashback-rules { margin-top: 6px; }
.cb-rule {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px;
}
.rule-num {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  background: rgba(176, 42, 24, .14); color: var(--red);
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.cb-rule p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.text-red { color: var(--red); }
.bold { font-weight: 700; }
.service-time-box {
  background: var(--card-2); padding: 14px; border-radius: 4px;
  text-align: center; margin: 18px 0 0; border: 1px solid var(--line);
}
.service-time-box h4 {
  font-family: var(--mono); font-size: 14px; letter-spacing: 2px; margin-bottom: 6px;
  color: var(--ink);
}
.service-time-box p { margin: 0; font-size: 12px; color: var(--gray); line-height: 1.8; }
.modal-hint { font-size: 12px; color: #777; margin: 10px 0; }
.code-input {
  width: 100%; height: 50px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--gold); font-family: var(--mono); font-size: 18px; letter-spacing: 2px;
}
.code-input:focus { outline: none; border-color: var(--gold); box-shadow: var(--glow-gold); }
.modal-err { color: var(--red); font-size: 13px; margin: 8px 0 4px; }
.modal .btn { margin-top: 12px; }

/* ---------- 答题 ---------- */
.quiz-top { padding: 20px 20px 0; }
.quiz-count { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 4px; color: var(--gray); text-shadow: none; text-align: center; margin-bottom: 16px; }
/* 答题进度：黄铜刻度尺（阴刻凹槽 + 拉丝黄铜填充） */
.progress, .vintage-progress {
  position: relative;
  height: 4px;
  margin-top: 10px;
  background: #0A0806;       /* 极暗底槽 */
  border: 1px solid #3A3224; /* 铜框 */
  border-radius: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8);
  overflow: hidden;
}
.progress::after, .vintage-progress::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent, transparent 19.5%, rgba(203, 163, 101, .2) 20%);
}
.progress i, .vintage-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #8F703B 0%, #CBA365 50%, #E8D399 100%);
  box-shadow: 0 0 10px rgba(203, 163, 101, .2); /* 微微金属反光 */
  transition: width .25s ease;
}
.quiz-frame { flex: 1; padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; }
.quiz-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: #D3B37E; margin-bottom: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.quiz-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
  font-weight: 700;
  color: #E8D399;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-shadow: none;
}
.quiz-opt span {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.quiz-opt.selected span { color: var(--ink); font-weight: 700; }
.quiz-options { display: flex; flex-direction: column; gap: 4px; }
/* 选项 = 信笺上的墨迹行（去框去渐变，仅底部极暗虚线） */
.quiz-opt {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 16px 8px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(203, 163, 101, .2);
  border-radius: 0;
  color: var(--ink-2); font-size: 14px; line-height: 1.6;
  font-family: var(--serif);
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
  box-shadow: none;
}
.quiz-opt:active { background: rgba(203,163,101,.05); }
.quiz-opt.selected {
  background: rgba(203, 163, 101, .05);
  border-bottom: 1px solid var(--gold);
  box-shadow: none;
  transform: none;
}
.opt-letter {
  flex: none; border: none; background: transparent;
  width: auto; min-width: 28px; height: auto;
  font-family: var(--mono); font-style: italic; font-size: 17px;
  color: var(--gray); padding-right: 12px; line-height: 1;
  box-shadow: none;
}
.quiz-opt.selected .opt-letter { color: var(--gold); border: none; box-shadow: none; }
.quiz-nav { margin-top: 40px; display: flex; gap: 16px; justify-content: center; }
.quiz-tip { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--gray); text-align: center; }

/* ===================== 结果页 · 天生财富力评估 ===================== */
#poster-area { padding: 16px 14px 4px; background: var(--bg); }

/* ---------- 评估卷首（纯文本档案抬头 · 去框去图去卷号） ---------- */
.codex {
  position: relative;
  background: transparent;
  color: #E8E0C8;
  padding: 0 0 16px 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.codex::before, .codex::after { display: none; }
.codex-circle { display: none !important; } /* 隐藏罗盘图片与法阵 */
.codex-band {
  position: relative; z-index: 1;
  background: transparent;
  box-shadow: none;
  text-align: left; padding: 0; margin-bottom: 8px;
}
.codex-title { display: inline-block; font-size: 22px; font-weight: 800; color: var(--gold-hi); letter-spacing: 2px; }
.codex-sub {
  display: inline-block; margin-left: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: var(--gray); background: transparent; font-weight: 400;
}
.codex-line { display: none; }
.codex-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
}
.codex-meta {
  flex: 1; min-width: 0;
  font-size: 12px; line-height: 1.9; color: var(--gray);
  border-bottom: none; padding-bottom: 0;
}
.codex-core { display: none; }
.codex-no {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 11px; color: #D2B87F; /* 颁印行调亮 */
  text-align: left; margin: 4px 0; letter-spacing: 1px;
}

/* ---------- 持卷信息行 ---------- */
.report-info {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  padding: 12px 6px 4px;
  font-family: var(--mono); font-size: 11px; color: var(--gray);
  border-bottom: 1px solid var(--line);
}
.expiry-hint-inline {
  display: block; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  color: var(--gray); text-align: center;
}
.expiry-hint-inline b { color: var(--gold); }

/* ---------- 报告分节（档案排版 · 左对齐章题 + 单底线） ---------- */
.report-section { margin-top: 24px; }
.sec-head {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  position: relative;
}
.sec-head::after { display: none; } /* 去除居中双线 */
.sec-no {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #120E0A;
  padding: 2px 8px;
  font-size: 13px; font-weight: 700;
  margin-right: 12px;
  border-radius: 2px;
}
.sec-no::before, .sec-no::after { display: none; } /* 删掉 "— Chapter —" 冗余修饰 */

.sec-title {
  font-family: var(--serif); font-weight: 700; color: var(--gold-hi);
  font-size: 18px; letter-spacing: 3px; margin-top: 0;
}
.sec-note { margin-top: 10px; font-size: 12px; color: var(--gray); }

/* ---------- 01 天生财富显形（悬浮霓虹字 + 符刻/代码流） ---------- */
.hero-section {
  position: relative;
  padding: 18px 16px;
  border: 1px solid rgba(212,175,55,.25);
  background:
    radial-gradient(420px 180px at 15% 0%, rgba(212,175,55,.07) 0%, rgba(212,175,55,0) 60%),
    radial-gradient(420px 180px at 85% 100%, rgba(212,175,55,.08) 0%, rgba(212,175,55,0) 60%),
    linear-gradient(rgba(212,175,55,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.05) 1px, transparent 1px),
    var(--card);
  background-size: auto, auto, 26px 26px, 26px 26px, auto;
  box-shadow: inset 0 0 40px rgba(212,175,55,.04);
  overflow: hidden;
}
.archetype-chip {
  display: inline-block;
  border: 1px solid rgba(212,175,55,.5); color: var(--champagne);
  font-size: 11px; letter-spacing: 2px; padding: 3px 9px; margin-top: 6px;
  background: rgba(212,175,55,.05);
  box-shadow: inset 0 0 12px rgba(212,175,55,.12);
}
.result-name {
  font-size: 30px; font-weight: 800; letter-spacing: 2px; margin-top: 8px;
  line-height: 1.35;
}
/* 天生财富显形：香槟金丝绸反光（海报端由 poster.js onclone 降级为纯金 + 辉光） */
.fluid-name {
  font-family: var(--serif);
  font-size: 34px; font-weight: 800; letter-spacing: 4px;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* 不支持渐变裁切时兜底为纯金 */
  background: linear-gradient(120deg, var(--gold-2) 0%, var(--gold-hi) 40%, var(--gold) 60%, var(--gold-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
/* 原型特质 + 代表人物：各占一行小字，解释性备注（左对齐） */
.result-tagline {
  margin: 10px 0 0;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--serif); font-size: 13.5px; line-height: 1.8;
  color: var(--champagne);
}
.result-tagline #tl-figures { color: var(--gold); font-weight: 700; }
.result-tags { margin: 12px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.result-tags span {
  font-size: 12px; color: var(--gold);
  border: 1px dashed rgba(212,175,55,.45); padding: 3px 8px;
  background: rgba(212,175,55,.04);
}
.quote-text { font-size: 15px; line-height: 1.9; color: var(--ink-2); font-weight: 600; }

/* ---------- 02 六维天赋（金属刻度 · 黄铜铭牌） ---------- */
.meter-table { margin-top: 12px; }
.meter-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 12px 11px;
  border-top: 1px solid rgba(212,175,55,.12);
  border-bottom: 1px solid rgba(212,175,55,.12);
  background: rgba(255,255,255,.02);
}
.meter-dim {
  flex: none; width: 62px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.meter-track {
  flex: 1; height: 14px;
  background: #000;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 0;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8);
}
.meter-track::after {
  /* 竖向金属刻度线 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 19%, rgba(212,175,55,.15) 20%);
}
.meter-num {
  flex: none; width: 42px; text-align: right;
  font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.meter-verdict {
  flex: none; width: 58px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid; padding: 2px 0;
}
.verdict-ok { color: var(--gold); border-color: var(--gold); background: rgba(212,175,55,.08); text-shadow: var(--glow-gold); }
.verdict-mid { color: var(--champagne); border-color: var(--champagne); background: rgba(212,175,55,.06); }
.verdict-warn { color: #6E6E6E; border-color: #6E6E6E; }
.verdict-danger { color: var(--red); border-color: var(--red); background: rgba(176,42,24,.1); text-shadow: var(--glow-red); }
.meter-meaning {
  flex: 0 0 100%;
  font-size: 12px; line-height: 1.75; color: var(--gray);
  border-top: 1px dashed rgba(212,175,55,.12); padding-top: 7px; margin-top: 2px;
}

/* ---------- 05 危险水位（皇家朱批 · 去工业仪表盘） ---------- */
.vital-box {
  margin-top: 12px; padding: 20px 10px;
  border: 1px solid var(--red);
  background: transparent;
  text-align: center;
}
.vital-gauge { display: flex; flex-direction: column; gap: 10px; }
.vital-head { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.vital-num {
  font-family: var(--mono); font-size: 48px; font-weight: 800; line-height: 1; color: var(--red);
  text-shadow: 0 4px 8px rgba(0,0,0,.5);
}
.vital-label { font-size: 13px; color: var(--gray); letter-spacing: 1px; }
.vital-tank { display: none; } /* 隐藏工业风的冷却水位槽 */
.vital-tier {
  margin-top: 14px; display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  border: 1px solid; padding: 4px 10px;
}
.tier-ok { color: var(--champagne); border-color: var(--champagne); background: rgba(184,156,98,.08); text-shadow: var(--glow-gold); }
.tier-warn { color: #B8860B; border-color: #B8860B; background: rgba(184,134,11,.08); }
.tier-danger { color: var(--red); border-color: var(--red); background: rgba(176,42,24,.12); text-shadow: var(--glow-red); }
.vital-line { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
/* 水位线主句：按档位加粗/放大/上色，让最扎心的一句第一眼击中 */
.vital-line.vl-danger { color: #D9A893; font-size: 16.5px; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.vital-line.vl-warn { color: #D9A63C; font-size: 15px; font-weight: 700; }
.vital-line.vl-ok { color: #E8D9A0; font-size: 14px; font-weight: 600; }

/* ---------- 水位数字呼吸灯：按档位匹配节奏与色彩（去盒子动画，聚焦数字） ---------- */
.vital-box { animation: none !important; }
.vital-num {
  display: inline-block;
  font-family: var(--mono); font-size: 48px; font-weight: 800; line-height: 1;
}
/* 分很低（高危）：红色，呼吸很快 (0.8s) */
@keyframes breatheFastRed {
  0%, 100% { color: #B02A18; text-shadow: 0 0 8px rgba(176,42,24,0.6); }
  50% { color: #FF3B3B; text-shadow: 0 0 20px rgba(255,59,59,0.9), 0 0 40px rgba(255,59,59,0.6); }
}
.vb-danger .vital-num { animation: breatheFastRed 0.8s ease-in-out infinite; }
/* 分中等（走钢丝）：金黄色，呼吸中等 (2s) */
@keyframes breatheMedGold {
  0%, 100% { color: #B8860B; text-shadow: 0 0 8px rgba(184,134,11,0.5); }
  50% { color: #F5C542; text-shadow: 0 0 16px rgba(245,197,66,0.8), 0 0 30px rgba(245,197,66,0.4); }
}
.vb-warn .vital-num { animation: breatheMedGold 2s ease-in-out infinite; }
/* 分很高（稳如磐石）：淡绿色，呼吸缓慢 (4s) */
@keyframes breatheSlowGreen {
  0%, 100% { color: #4F7942; text-shadow: 0 0 8px rgba(79,121,66,0.4); }
  50% { color: #A9D18E; text-shadow: 0 0 16px rgba(169,209,142,0.8), 0 0 30px rgba(169,209,142,0.4); }
}
.vb-ok .vital-num { animation: breatheSlowGreen 4s ease-in-out infinite; }

/* ---------- 04 财富赛道 · 列表条目（底层资产/变现逻辑/赛道/姿势） ---------- */
.track-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 10px; padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(12,16,23,.8), rgba(8,11,16,.8));
}
.track-item b {
  flex: none; font-size: 12px; letter-spacing: 1px;
  padding: 2px 8px; color: #1A1202;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}
.track-item p { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.track-subhead {
  margin-top: 14px; padding-bottom: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--gold);
  border-bottom: 1px solid var(--line); position: relative;
}
.track-subhead::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--champagne));
}

/* ---------- 03 财富罗盘（古典暗金框 · 羊皮纸暗纹底座，纯 CSS 海报安全） ---------- */
.radar-chart {
  position: relative;
  width: 100%; height: 400px; margin-top: 6px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 22%, rgba(212,175,55,.10) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 58%, rgba(212,175,55,.08) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 55% 88%, rgba(212,175,55,.09) 0 1.5px, transparent 2.5px),
    linear-gradient(rgba(212,175,55,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.035) 1px, transparent 1px),
    radial-gradient(480px 320px at 50% 46%, rgba(212,175,55,.05) 0%, rgba(212,175,55,0) 72%);
  background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
  box-shadow: inset 0 0 40px rgba(0,0,0,.8), 0 0 10px rgba(212, 175, 55, .05);
}

/* ---------- 05 致命破财点 · 皇家朱批档案 ---------- */
.danger-zone {
  padding: 24px 16px;
  border: none;
  border-top: 4px double var(--red);
  border-bottom: 4px double var(--red);
  background: rgba(139, 37, 25, .04);
}
/* 危险章的章题双线用朱砂红 */
.danger-zone .sec-head::after {
  border-top-color: var(--red); border-bottom-color: var(--red);
}
.danger-zone .sec-title, .danger-zone .sec-no { color: var(--red); }
.track-item.track-warn { border-left-color: var(--red); background: linear-gradient(180deg, rgba(20,14,14,.8), rgba(13,8,8,.8)); }
.track-item.track-warn b { background: linear-gradient(180deg, #C23B22, var(--red)); color: #fff; }
.track-item.track-warn p { color: #E8C8C0; }

/* ---------- 霓虹图标（屏幕上用 emoji；海报端 onclone 降级为纯 CSS/SVG） ---------- */
.neo-ico {
  flex: none; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  border-radius: 4px;
}
.neo-ok {
  border: 1px solid var(--gold); background: rgba(212,175,55,.1);
  box-shadow: var(--glow-gold);
}
.neo-warn {
  border: 1px solid var(--champagne); background: rgba(212,175,55,.08);
  box-shadow: var(--glow-gold);
}
.neo-no {
  border: 1px solid var(--red); background: rgba(176,42,24,.1);
  box-shadow: var(--glow-red);
}

/* ---------- 隐藏软肋 · 机密解封（并入致命破财点，弱化边框、强调左侧引导） ---------- */
.dual-reveal {
  margin-top: 16px; padding: 16px 16px;
  border: 1px solid rgba(176,42,24,.3);
  border-left: 3px solid var(--red);
  background: linear-gradient(90deg, rgba(176,42,24,.08) 0%, rgba(176,42,24,.01) 100%);
}
.dual-sub { margin-top: 10px; font-size: 13px; color: #E8B8A0; margin-bottom: 8px; }
.dual-quote { font-size: 14.5px; line-height: 2; color: var(--ink-2); }

/* ---------- 08 命格异象拦截（盖章横条） ---------- */
.alert-sheet {
  border: 1px dashed var(--red);
  border-left: 4px solid var(--red);
  padding: 12px 14px;
  background: rgba(176,42,24,.05);
}
.alert-stamp-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.alert-stamp-head b { font-size: 15px; letter-spacing: 2px; color: var(--red); text-shadow: var(--glow-red); }
.stamp-inline {
  flex: none; font-size: 14px; font-weight: 800; letter-spacing: 2px;
  color: var(--red); border: 2px solid var(--red); border-radius: 2px;
  padding: 3px 8px; transform: rotate(-8deg);
  font-family: var(--serif); box-shadow: none; background: rgba(176, 42, 24, .05);
}
.alert-item { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed rgba(176,42,24,.35); }
.alert-item:first-of-type { border-top: none; }
.alert-ico {
  flex: none; width: 26px; height: 26px;
  border: 2px solid var(--red); color: var(--red);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
  text-shadow: var(--glow-red);
}
.alert-warning { font-size: 14px; font-weight: 600; line-height: 1.7; color: #E8C8B8; }
.alert-fix { margin-top: 4px; font-size: 13px; line-height: 1.7; color: #C99; }

/* ---------- 06 财富圈层 · 天生绝配/命中克星 ---------- */
.match-item { padding: 12px; border: 1px solid var(--line); margin-top: 10px; background: var(--bg-2); }
.match-best { border-left: 3px solid var(--gold); }
.match-worst { border-left: 3px solid var(--red); }
.match-item b { font-size: 13px; display: block; color: var(--gold); margin-bottom: 6px; letter-spacing: 2px; }
.match-item span { font-size: 15px; font-weight: 600; color: var(--ink); }
.match-desc { display: block; margin-top: 6px; font-style: normal; font-size: 12px; line-height: 1.8; color: var(--gray); }

/* ---------- 04 财富力说明书 · 30 天破局指令（执行流水线 · 时间轴连线） ---------- */
.sop-row {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: none;
}
/* 纵向引导线（贯穿指令，形成流程感） */
.sop-row::before {
  content: "";
  position: absolute;
  left: 5px; top: 20px; bottom: -12px;
  width: 1px;
  background: rgba(212,175,55,.2);
}
.sop-row:last-child::before { display: none; }
.sop-row b {
  display: block; font-size: 13px; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 6px; font-weight: 700;
  position: relative;
}
/* 节点锚点（发光圆点） */
.sop-row b::before {
  content: "";
  position: absolute;
  left: -19px; top: 4px;
  width: 7px; height: 7px;
  background: var(--bg); border: 2px solid var(--champagne);
  border-radius: 50%; box-shadow: var(--glow-gold);
}
.sop-row p { font-size: 13px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 08 第一桶金 · 触发场景 ---------- */
.bucket-block {
  margin-top: 12px; padding: 14px;
  border: 1px solid rgba(212,175,55,.4);
  border-left: 3px solid var(--gold);
  background:
    radial-gradient(420px 140px at 85% 0%, rgba(212,175,55,.1) 0%, rgba(212,175,55,0) 60%),
    linear-gradient(180deg, rgba(212,175,55,.05), rgba(8,11,16,.6));
  box-shadow: inset 0 0 30px rgba(212,175,55,.04);
}
.bucket-block b { font-size: 13px; letter-spacing: 2px; color: var(--gold); display: block; margin-bottom: 8px; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.bucket-block p { font-size: 14.5px; line-height: 2; color: var(--ink-2); font-weight: 600; }

/* ---------- 09 财富流失 · 评估批注（皇家朱批 · 居中宣告） ---------- */
.decay-terminal {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--red);
  border-radius: 0;
  font-family: var(--serif);
  padding: 18px;
  box-shadow: none;
  text-align: center;
}
.decay-head {
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; letter-spacing: 4px;
  color: var(--red); margin-bottom: 10px;
  font-family: var(--serif); text-shadow: none;
}
.decay-ico { display: none; }
.decay-terminal p { font-size: 13.5px; line-height: 2; color: var(--ink); text-align: left; margin-top: 12px; }
.decay-footer {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed rgba(176,42,24,.35);
  font-size: 10px; letter-spacing: 2px; color: #A86;
}

/* ---------- 10 高光宣言（流体金句） ---------- */
.golden-sheet {
  margin-top: 26px;
  padding: 26px 18px 20px;
  border: 1px solid rgba(212,175,55,.5);
  background:
    radial-gradient(500px 160px at 20% 0%, rgba(212,175,55,.15) 0%, rgba(212,175,55,0) 60%),
    radial-gradient(400px 140px at 90% 100%, rgba(212,175,55,.06) 0%, rgba(212,175,55,0) 55%),
    var(--card);
  text-align: center;
}
.golden-quote {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; line-height: 2.05; letter-spacing: 2px;
}
/* 高光金句：香槟金丝绸反光（海报端 onclone 降级纯金） */
.fluid-quote {
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* 不支持渐变裁切时兜底为纯金 */
  background: linear-gradient(120deg, var(--gold-2) 0%, var(--gold-hi) 40%, var(--gold) 60%, var(--gold-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4s linear infinite;
}
.golden-sign { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--gray); letter-spacing: 2px; }

/* ---------- 结果页底部按钮 ---------- */
#screen-result > .btn { margin: 14px 20px 0; width: calc(100% - 40px); }
#screen-result .poster-cta-hint { text-align: center; font-size: 12px; color: var(--gray); margin-top: 10px; }
#screen-result .result-share-tip { text-align: center; font-size: 12px; color: #555; margin: 14px 0 30px; }

/* ---------- 海报弹窗 ---------- */
.poster-wrap { width: 100%; max-width: 440px; }
.poster-wrap img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; display: block; border: 1px solid var(--line); }
#modal-poster { overflow-y: auto; align-items: flex-start; }
#modal-poster .poster-wrap { margin: auto; }
.poster-hint { text-align: center; font-size: 13px; color: var(--gray); margin: 12px 0; }
.poster-wrap .btn { margin-top: 6px; }

/* ---------- 历史卷宗 ---------- */
.history-list { max-height: 54vh; overflow-y: auto; }
.history-empty { text-align: center; color: #777; font-size: 13px; line-height: 2; padding: 30px 0; white-space: pre-line; }
.history-item {
  border: 1px solid rgba(212,175,55,.2); padding: 12px; margin-bottom: 10px;
  background: var(--bg-2);
}
.history-item-head { display: flex; align-items: center; gap: 12px; }
.history-no { font-family: var(--mono); color: var(--champagne); font-size: 13px; text-shadow: var(--glow-gold); }
.history-item-main b { font-size: 16px; color: var(--ink); display: block; }
.history-tag { font-size: 12px; color: var(--gray); }
.history-meta { font-family: var(--mono); font-size: 11px; color: #777; margin-top: 6px; }
.history-exp { font-size: 12px; color: var(--gold); margin-top: 6px; }
.history-exp.history-expired { color: var(--red); }
.history-item .btn { margin-top: 10px; }

/* ---------- 卷宗封存 ---------- */
.expired-modal { text-align: center; border-top-color: var(--red); }
.expired-ico {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border: 2px solid var(--red); color: var(--red);
  font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  text-shadow: var(--glow-red);
}

/* ---------- 过渡仪式 · 光线变暗 · 大门沉入地下档案室 ---------- */
.ritual {
  position: fixed; inset: 0; z-index: 200;
  background: #0A0806;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
/* 光线变暗：羊皮纸亮层渐隐，露出地下档案室 */
.ritual-dim {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(rgba(246,245,240,.96), rgba(246,245,240,.96));
  animation: ritualDim 1.5s ease-in forwards;
}
@keyframes ritualDim { 0% { opacity: 1; } 100% { opacity: 0; } }
/* 大门缓缓沉入 */
.ritual-gate { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.gate-panel {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(180deg, #2A231A 0%, #151009 100%);
  border-top: 2px solid #CBA365;
  box-shadow: inset 0 0 44px rgba(0,0,0,.75);
  opacity: 0;
  animation: gateSink 3s cubic-bezier(.55,0,.4,1) forwards;
}
.gate-left { left: 0; }
.gate-right { right: 0; }
.gate-rail {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #CBA365 50%, transparent);
  opacity: 0;
  animation: gateSink 3s cubic-bezier(.55,0,.4,1) forwards;
}
.gate-rail-top { top: 0; }
.gate-rail-bot { bottom: 0; }
@keyframes gateSink {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(112vh); }
}
/* 内容：大门下沉后浮现 */
.ritual-orbit, .ritual-term, .ritual-progress {
  position: relative; z-index: 2;
  opacity: 0;
  animation: ritualRise .9s ease .95s both;
}
@keyframes ritualRise {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.ritual-orbit { width: 74px; height: 74px; position: relative; }
.ritual-orbit::before, .ritual-orbit::after {
  content: ""; position: absolute; border-radius: 50%;
}
.ritual-orbit::before { inset: 0; border: 2px solid rgba(212,175,55,.25); }
.ritual-orbit::after {
  inset: 0; border: 2px solid transparent;
  border-top-color: var(--gold); border-right-color: var(--champagne);
  animation: spin 1.1s linear infinite;
}
.ritual-core {
  position: absolute; inset: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-hi), var(--champagne));
  box-shadow: 0 3px 8px rgba(0,0,0,.7);
  animation: pulse 1.1s ease-in-out infinite;
}
/* 解封终端 -> 古典神谕台 */
.ritual-term {
  margin-top: 40px;
  width: 84%; max-width: 340px;
  text-align: center;
  min-height: 60px;
}
.ritual-term-head { display: none; }
.ritual-oracle-text {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-hi);
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,.8);
  opacity: 0;
}
@keyframes oracleFade {
  0% { opacity: 0; transform: translateY(5px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}
.ritual-progress {
  margin-top: 16px;
  width: 84%; max-width: 340px; height: 5px;
  background: var(--bg-2); border: 1px solid var(--line);
  position: relative;
}
.ritual-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width .18s linear;
}
.ritual-pct { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .5; } }

/* ---------- 加载 ---------- */
.loading {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3,5,8,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(212,175,55,.2);
  border-top-color: var(--gold); border-right-color: var(--champagne);
  animation: spin 1s linear infinite;
}
#loading-text { color: var(--gray); font-size: 14px; letter-spacing: 1px; }

/* ---------- 量化金标（卷首三硬指标） ---------- */
.market-tags { display: flex; gap: 8px; padding: 12px 0 2px; }
.mkt-tag {
  flex: 1; min-width: 0;
  border: 1px solid rgba(212,175,55,.35);
  background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(212,175,55,.02));
  padding: 8px 10px;
}
.mkt-tag .mkt-k { display: block; font-size: 10px; letter-spacing: 1px; color: var(--gray); }
.mkt-tag b { display: block; margin-top: 3px; font-size: 14px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.mkt-tag i { display: block; font-style: normal; margin-top: 2px; font-size: 11px; color: var(--champagne); }
.mkt-tag:nth-child(2) b { font-size: 12px; }

/* ---------- 命格偏离注记（档案冷感：暗金描边，弃用霓虹蓝避免与黑金主调撕裂） ---------- */
.deviation-note {
  margin-top: 10px; padding: 10px 14px;
  border: 1px dashed rgba(212,175,55,.4);
  background: rgba(212,175,55,.04);
}
.deviation-note b { font-size: 12px; letter-spacing: 2px; color: var(--gold-2); }
.deviation-note p { margin-top: 6px; font-size: 12.5px; line-height: 1.85; color: var(--gray); }

/* ---------- 海报端降级（poster.js onclone 注入 .poster-clone） ---------- */
/* html2canvas 对 background-clip:text 渲染不可靠 → 渐变字降级为纯金 + 辉光 */
.poster-clone .fluid-name,
.poster-clone .fluid-quote {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.8);
  animation: none !important;
}

/* 管理员模板预览弹窗 */
.admin-modal { max-width: 430px; text-align: left; }
.admin-filter { display: flex; gap: 8px; margin: 4px 0 14px; }
.admin-filter-btn {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 36px; font-size: 13px; letter-spacing: 2px;
  border: 1px solid #E5E5E5; background: #fff; color: #4A4A4A;
  cursor: pointer; border-radius: 2px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.admin-filter-btn.active {
  background: #2C2C2C; border-color: #2C2C2C; color: #F6F5F0;
}
.admin-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.admin-person {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; text-align: left; background: #fff;
  border: 1px solid #E5E5E5; padding: 12px 14px; cursor: pointer; border-radius: 2px;
  transition: border-color .18s ease, transform .12s ease;
}
.admin-person:active { transform: translateY(1px); border-color: #2C2C2C; }
.admin-person b {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: 17px; letter-spacing: 2px; color: #2C2C2C; flex: 0 0 auto;
}
.admin-person span { font-size: 12px; color: #8A8A8A; letter-spacing: 1px; }
.history-empty {
  padding: 26px 10px; font-size: 13px; line-height: 1.9; color: #8A8A8A;
  text-align: center; white-space: pre-line;
}
