/* ============================================================
   LOVE AESTHETIC v4 · 镜像美学（暗夜模式）
   深灰蓝底 #1A1C23 / 低饱和玫瑰金 / 拍立得拼接 / 手写体装饰
   —— 与 test1 的「档案美学·米白卷宗」彻底区分
   ============================================================ */

:root {
  --bg: #1A1C23;          /* 暗夜底 */
  --bg-2: #15161C;
  --card: #23262F;        /* 大圆角无边框卡片 */
  --card-2: #20232B;
  --ink: #EDE7E0;         /* 暖白主字 */
  --ink-2: #C6C1C4;
  --gray: #9A96A3;        /* 辅文灰紫 */
  --line: #2E313D;        /* 发丝分隔线 */
  --gold: #E8B4B8;        /* 玫瑰金 */
  --gold-2: #D9A0A8;
  --gold-deep: #C2708A;
  --rose: #D0607C;
  --rose-deep: #A6435F;
  --red: #E0646E;         /* 危险预警 */
  --hand: "Bradley Hand", "Snell Roundhand", "Kaiti SC", "STKaiti", cursive;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-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:
    radial-gradient(900px 520px at 15% -10%, rgba(200,112,138,.16) 0%, rgba(200,112,138,0) 60%),
    radial-gradient(800px 620px at 110% 108%, rgba(154,120,168,.12) 0%, rgba(154,120,168,0) 55%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

/* ---------- buttons（胶囊圆角，玫瑰金主色调） ---------- */
.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: 999px;
  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:disabled { opacity: .3; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #E8A9B4, #C2708A);
  color: #201519;
  box-shadow: 0 12px 26px rgba(194,112,138,.32);
}
.btn-primary:active { background: linear-gradient(135deg, #DD9AA6, #B05F79); }

.btn-line {
  background: rgba(232,180,184,.08);
  border-color: rgba(232,180,184,.5);
  color: var(--gold);
}
.btn-line:active { background: var(--gold); color: #201519; }

.btn-ghost { border-color: var(--line); color: var(--gray); }
.btn-ghost:active { border-color: var(--gold); color: var(--gold); }

/* 回到主页按钮：玫瑰金描边，引导探索其他测评 */
.btn-portal {
  border-color: rgba(232,180,184,.55); color: var(--gold);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(232,180,184,.10), rgba(232,180,184,.02));
  box-shadow: inset 0 1px 0 rgba(232,180,184,.15);
}
.btn-portal:active { background: var(--gold); color: #201519; border-color: var(--gold); }

.btn-danger {
  background: linear-gradient(135deg, #D0555F, #A93A46);
  color: #fff;
  box-shadow: 0 12px 26px rgba(169,58,70,.3);
}
.btn-danger:active { background: linear-gradient(135deg, #BE444F, #962F3A); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 10px;
  font-weight: 400;
  transition: transform .2s ease;
}
.btn-arrow:active::after { transform: translateX(4px); }

.btn-block { display: block; width: 100%; margin-top: 14px; }

/* 双按钮同行：重新测试 + 探索其他测评 */
.btn-row { display: flex; gap: 12px; margin-top: 14px; }
.btn-row > * { flex: 1; min-width: 0; letter-spacing: 2px; padding: 0 14px; text-align: center; display: flex; align-items: center; justify-content: center; }
.btn-row .btn-ghost { border-color: rgba(232,180,184,.4); }

/* ---------- cover（暗夜玻璃卡 + 月夜光晕） ---------- */
#screen-cover {
  justify-content: center; align-items: center; text-align: center;
  padding: 40px 26px; position: relative;
}
#screen-cover::before,
#screen-cover::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(3px); pointer-events: none;
}
#screen-cover::before {
  width: 260px; height: 260px; top: -60px; right: -70px;
  background: radial-gradient(circle, rgba(224,100,110,.20), transparent 65%);
}
#screen-cover::after {
  width: 300px; height: 300px; bottom: -90px; left: -90px;
  background: radial-gradient(circle, rgba(154,120,168,.18), transparent 65%);
}
.cover-frame {
  width: 100%;
  position: relative; z-index: 1;
  background: rgba(35,38,47,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232,180,184,.16);
  border-radius: 30px;
  padding: 52px 30px 46px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.cover-label {
  font-family: var(--hand); font-size: 15px; letter-spacing: 3px;
  color: var(--gold); border: 1px solid rgba(232,180,184,.4);
  display: inline-block; padding: 8px 20px; margin-bottom: 34px;
  border-radius: 999px;
}
.cover-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 11vw, 48px);
  letter-spacing: 5px; line-height: 1.35; color: var(--ink);
}
.cover-title span {
  background: linear-gradient(120deg, #E8B4B8, #B87886);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--serif);
}
.cover-title::after {
  content: ""; display: block; width: 40px; height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.cover-sub { margin-top: 20px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.cover-actions {
  margin-top: 42px; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.cover-actions .btn { width: 100%; }
.cover-foot {
  margin-top: 54px; font-family: var(--hand); font-size: 13px;
  letter-spacing: 3px; color: var(--gray);
}
.cover-copy {
  margin-top: 14px; font-family: var(--sans); font-size: 10px;
  letter-spacing: 2px; color: var(--gray); opacity: .72;
}

/* ============================================================
   封面氛围强化 · 克制 / 缓慢 / 神秘
   （深渊呼吸 / 星光流尘 / 声纳脉冲 / 引力牵引）
   ============================================================ */

/* —— 建议 1 · 深渊呼吸感：极淡径向渐变自中心缓缓下沉又回升 —— */
#screen-cover { overflow: hidden; }
.cover-breathe {
  position: absolute; inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 46% at 50% 44%,
      rgba(216, 160, 168, .22) 0%,
      rgba(216, 160, 168, .08) 38%,
      rgba(192, 112, 138, 0) 72%);
  animation: deepBreathe 16s ease-in-out infinite;
}
@keyframes deepBreathe {
  0%, 100% { opacity: .55; transform: translateY(-1.5%) scale(1.02); }
  50%      { opacity: 1;   transform: translateY(1.5%)  scale(.97); }
}

/* —— 建议 2 · 玫瑰金星光流尘：极少数微小光点缓慢漂浮闪烁 —— */
.cover-dust {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.cover-dust i {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,180,184,.95), rgba(232,180,184,0) 70%);
  box-shadow: 0 0 6px rgba(232,180,184,.55);
  opacity: 0;
  animation: dustDrift var(--dust-t, 22s) ease-in-out infinite;
  animation-delay: var(--dust-d, 0s);
}
@keyframes dustDrift {
  0%   { transform: translateY(6vh) translateX(0) scale(1);    opacity: 0; }
  8%   { opacity: var(--dust-o, .55); }
  50%  { transform: translateY(-34vh) translateX(var(--dust-x, 14px)) scale(.8);  opacity: var(--dust-o, .55); }
  92%  { opacity: 0; }
  100% { transform: translateY(-70vh) translateX(calc(var(--dust-x, 14px) * -1)) scale(.6); opacity: 0; }
}

/* —— 建议 3 · 潜意识声纳探测波：同心玫瑰金圆环缓慢扩散淡出，间隔 14s —— */
.cover-sonar {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.cover-sonar i {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border: 1px solid rgba(232,180,184,.55);
  border-radius: 50%;
  opacity: 0;
  animation: sonarPulse 14s cubic-bezier(.22,.61,.36,1) infinite;
}
.cover-sonar i:nth-child(2) { animation-delay: 4.6s; }
.cover-sonar i:nth-child(3) { animation-delay: 9.2s; }
@keyframes sonarPulse {
  0%   { transform: scale(.2);  opacity: 0; }
  5%   { opacity: .5; }
  42%  { opacity: 0; }
  70%  { transform: scale(9);   opacity: 0; }
  100% { transform: scale(9);   opacity: 0; }
}

/* —— 建议 4 · 引力牵引 Hover —— */
/* 副文案毛刺：信号不稳、潜意识波动（仅 PC hover） */
.cover-sub-glitch {
  display: inline-block;
  transition: color .3s ease;
}
.cover-sub:hover .cover-sub-glitch {
  color: var(--gold-2);
  animation: subGlitch .5s steps(2, end) 1;
}
@keyframes subGlitch {
  0%   { transform: translateX(0);    text-shadow: 0 0 0 transparent; }
  25%  { transform: translateX(-1px); text-shadow: 1.5px 0 rgba(232,180,184,.6), -1.5px 0 rgba(154,120,168,.5); }
  50%  { transform: translateX(1px);  text-shadow: -1.5px 0 rgba(232,180,184,.6), 1.5px 0 rgba(154,120,168,.5); }
  75%  { transform: translateX(-.5px); text-shadow: 1px 0 rgba(232,180,184,.4); }
  100% { transform: translateX(0);    text-shadow: 0 0 0 transparent; }
}

/* 主按钮：光晕扩大 + 微弱脉动 + 箭头右移复位 */
.btn-primary {
  transition: box-shadow .45s ease, background .22s ease, transform .12s ease;
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(232,180,184,.22),
    0 0 22px rgba(216,160,168,.5),
    0 14px 34px rgba(194,112,138,.42);
  animation: btnBreath 2.6s ease-in-out .3s infinite;
}
.btn-arrow:hover::after { animation: arrowNudge .8s ease-in-out infinite; }
@keyframes btnBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232,180,184,.22), 0 0 22px rgba(216,160,168,.5), 0 14px 34px rgba(194,112,138,.42); }
  50%      { box-shadow: 0 0 0 1px rgba(232,180,184,.3),  0 0 30px rgba(216,160,168,.66), 0 14px 34px rgba(194,112,138,.5); }
}
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

/* 触屏 / 减少动效偏好：关闭重动画，只保留静态微光 */
@media (prefers-reduced-motion: reduce) {
  .cover-breathe, .cover-sonar i, .cover-dust i,
  .btn-primary:hover, .btn-arrow:hover::after {
    animation: none !important;
  }
  .cover-breathe { opacity: .6; }
  .cover-sonar i { opacity: 0 !important; }
  .cover-dust i { opacity: 0 !important; }
}

/* ---------- modal（暗夜圆角卡） ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 9, 13, .66);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  padding: 24px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal {
  background: var(--card); width: 100%; max-width: 400px;
  border-radius: 24px; padding: 32px 26px; text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.modal-kicker {
  font-family: var(--hand); font-size: 15px; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 14px;
}
.modal-kicker.light { color: rgba(237,231,224,.75); }
.modal h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; }
.modal-desc { font-size: 12px; color: var(--gray); margin: 12px 0 22px; line-height: 1.8; }

/* 好评返现（对齐 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(224, 100, 110, .14); color: var(--red);
  font-family: var(--serif); 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: 12px;
  text-align: center; margin: 18px 0 0; border: 1px solid var(--line);
}
.service-time-box h4 {
  font-family: var(--serif); 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 {
  margin-top: 12px; font-size: 11px; letter-spacing: 1px; color: var(--gray); line-height: 1.7;
}

/* ---------- 历史画像弹窗 ---------- */
.modal-history { padding-bottom: 26px; }
.history-list {
  max-height: 44vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; margin-bottom: 16px;
}
.history-item {
  border: 1px solid var(--line); background: var(--card-2);
  border-radius: 14px; padding: 14px 16px;
}
.history-item-head { display: flex; align-items: center; gap: 10px; }
.history-no {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(232,180,184,.4); color: var(--gold);
  font-family: var(--serif); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.history-item-main b { display: block; font-size: 15px; letter-spacing: 1px; color: var(--ink); }
.history-tag {
  display: inline-block; margin-top: 4px; font-size: 11px; color: var(--gold);
  background: rgba(232,180,184,.1); border: 1px solid rgba(232,180,184,.24);
  padding: 2px 10px; border-radius: 999px;
}
.history-meta { margin-top: 8px; font-size: 11px; color: var(--gray); letter-spacing: 1px; }
.history-exp { margin-top: 6px; font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.history-expired { color: var(--red); }
.history-item .btn { height: 40px; font-size: 13px; margin-top: 10px; }
.history-empty {
  padding: 30px 10px; text-align: center; font-size: 13px; line-height: 2;
  color: var(--gray); white-space: pre-line;
}

/* ---------- 过期封存拦截页 ---------- */
.expired-modal { border: 1px solid rgba(224,100,110,.35); }
.expired-ico {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F08A93, #D34A57);
  color: #fff; font-weight: 700; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(224,100,110,.4);
}

.vol-btn {
  -webkit-appearance: none; appearance: none;
  position: relative;
  display: block; width: 100%; text-align: left; background: var(--card-2);
  border: 1px solid var(--line); padding: 18px 46px 18px 22px; margin-bottom: 12px;
  cursor: pointer; border-radius: 16px;
  transition: border-color .18s ease, background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.vol-btn:active {
  background: #2B262E; transform: translateY(1px);
  border-color: rgba(232,180,184,.5);
  box-shadow: 0 8px 22px rgba(194,112,138,.16);
}
.vol-btn::after {
  content: "→";
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 15px;
  transition: transform .2s ease, color .2s ease;
}
.vol-btn:active::after { transform: translate(4px, -50%); color: var(--gold); }
.vol-btn b {
  font-family: var(--serif); font-size: 18px; letter-spacing: 3px;
  color: var(--ink); display: block; margin-bottom: 4px;
}
.vol-btn span { font-size: 11px; letter-spacing: 2px; color: var(--gray); }
/* 频率调校点击反馈：玫瑰金内发光 + 微缩 0.15s */
.vol-btn.vol-tuned {
  transform: scale(.98);
  box-shadow: inset 0 0 10px #C96A7C;
  border-color: rgba(232,180,184,.6);
}

/* 阅前引言弹窗 */
#modal-probe {
  background: rgba(8, 9, 13, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.probe-modal { padding: 40px 30px 34px; }
.probe-modal .modal-kicker { margin-bottom: 26px; }
.probe-line {
  font-family: var(--serif); font-size: 15px; line-height: 2.1;
  color: var(--ink-2); letter-spacing: 1px; margin-bottom: 6px;
}
.probe-modal .btn { margin-top: 30px; }
/* 晨雾淡出：0.3s 平滑消散 */
#modal-probe { transition: opacity .3s ease, visibility .3s ease; }
#modal-probe.probe-fadeout { opacity: 0; visibility: hidden; }
#modal-probe.probe-fadeout .modal { transform: translateY(8px); opacity: 0; }
#modal-probe .modal { transition: transform .3s ease, opacity .3s ease; }

.code-input {
  width: 100%; font-size: 19px; letter-spacing: 2px; text-align: center;
  padding: 14px; background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); outline: none; border-radius: 12px;
}
.code-input:focus { border-color: var(--gold); background: #1E2028; }
.modal-err { color: var(--red); font-size: 13px; margin-top: 12px; }
#btn-buy { margin-top: 10px; }

/* ---------- quiz（暗夜题卡 + 胶囊选项） ---------- */
#screen-quiz {
  justify-content: center; align-items: center;
  padding: 28px 20px 44px;
}
.quiz-top {
  width: 100%; max-width: 470px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.quiz-count {
  font-family: var(--serif); font-size: 12px; letter-spacing: 1px;
  color: var(--ink-2); white-space: nowrap;
}
.progress { flex: 1; height: 6px; background: rgba(232,180,184,.14); position: relative; border-radius: 999px; }
.progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: 999px;
  transition: width .3s;
}

.quiz-frame {
  width: 100%; max-width: 470px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 26px;
  padding: 36px 26px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.quiz-kicker {
  font-family: var(--hand); font-size: 15px; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 22px;
}
.quiz-text {
  font-family: var(--serif); font-size: clamp(19px, 5.5vw, 23px); font-weight: 600;
  line-height: 1.7; margin: 4px 0 30px; letter-spacing: 1px; text-align: center;
  color: var(--ink);
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  -webkit-appearance: none; appearance: none;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2);
  padding: 14px 16px; font-size: 16px; line-height: 1.7; cursor: pointer;
  text-align: center; border-radius: 12px;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.quiz-opt:active { background: #262931; transform: translateY(1px); }
.quiz-opt.selected {
  border-color: rgba(232,180,184,.5);
  background: rgba(232,180,184,.06);
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232,180,184,.3);
}

/* ---------- quiz navigation（幽灵按钮 · 低存在感） ---------- */
.quiz-nav {
  margin-top: 30px;
  display: flex; gap: 6px; align-items: stretch;
}
.btn-nav {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 40px; padding: 0 8px;
  font-size: 12px; letter-spacing: 2px; font-weight: 500;
  border: none; background: transparent; color: rgba(154,150,163,.55);
  cursor: pointer; border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .12s ease;
}
.btn-nav:active { background: rgba(232,180,184,.06); }
.quiz-tip {
  margin-top: 18px; font-family: var(--hand); font-size: 13px;
  letter-spacing: 2px; color: rgba(232,180,184,.4); text-align: center;
}
.btn-nav:disabled { opacity: .3; cursor: not-allowed; }
.btn-nav:disabled:active { transform: none; }
.btn-nav-next {
  flex: 1.5;
  color: var(--gold);
}
.btn-nav-next:disabled {
  color: rgba(154,150,163,.3);
}

/* ============================================================
   RESULT · 连贯卷宗排版（V6）
   告别"卡片孤岛"：去边框/去圆角/去错落瀑布流，
   改「线 + 留白 + 大标题」组织内容，回归机密档案的连续感
   ============================================================ */
#screen-result { padding: 26px 20px 54px; }
#poster-area { padding: 0 2px 4px; }

/* 头部：检视网格底纹 + 打孔装订线，拍立得"钉"在底纹上 */
.result-head {
  position: relative;
  text-align: center;
  padding: 28px 6px 30px;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.result-head::before {   /* 顶部打孔装订线 */
  content: ""; position: absolute; top: 15px; left: 8px; right: 8px; height: 5px;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.32) 1.1px, transparent 1.7px);
  background-size: 13px 5px; background-repeat: repeat-x;
  opacity: .55;
}
.result-lead {
  font-family: var(--sans); font-size: 12px; letter-spacing: 2px;
  color: var(--gray); margin-bottom: 10px;
}
.result-archetype {
  display: inline-block; margin-top: 6px; font-size: 11px; letter-spacing: 4px;
  color: var(--gold); padding: 6px 20px; font-family: var(--serif);
  border-top: 1px solid rgba(232,180,184,.35); border-bottom: 1px solid rgba(232,180,184,.35);
}
.result-name {
  font-family: var(--serif); font-size: clamp(26px, 8vw, 34px);
  letter-spacing: 3px; margin-top: 16px; font-weight: 700;
  white-space: nowrap;
}
.result-rep {
  margin-top: 12px; font-size: 11px; letter-spacing: 1px;
  color: var(--gray); font-family: var(--sans); line-height: 1.8;
}
.result-tags { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.result-tags span {
  font-size: 11px; letter-spacing: 1px; color: var(--gold);
  padding: 4px 13px; border: 1px solid rgba(232,180,184,.22); border-radius: 999px;
}

/* 拍立得相卡：微微倾斜 + 胶片中缝 + 手写体署名 */
.polaroid {
  width: 200px; margin: 28px auto 2px;
  background: #F3ECE2;
  padding: 11px 11px 17px;
  border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 0 24px 56px rgba(0,0,0,.55);
  position: relative; z-index: 1;
}
.polaroid::after {   /* 胶片中缝 */
  content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px;
  background: rgba(74,68,64,.05);
}
.polaroid-photo {
  background: #fff; overflow: hidden; border-radius: 2px;
  line-height: 0;
  aspect-ratio: 1 / 1;
}
.polaroid-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-badge { width: 100%; height: 100%; margin: 0; border: none; box-shadow: none; }
.result-badge svg { display: block; width: 100%; height: 100%; }
.polaroid-sign {
  font-family: var(--hand); color: #4A4440; text-align: center;
  padding-top: 13px; font-size: 18px; letter-spacing: 3px;
}

/* 卷宗分节：去卡片框，用「细线 + 留白」分隔 */
#poster-area > .card {
  border: none; background: none; border-radius: 0; box-shadow: none;
  width: 100%;
  padding: 32px 6px 4px;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.note-card { border-top: none; padding-top: 26px; }

.card-kicker {
  font-family: var(--hand); font-size: 14px; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.card-kicker::before { content: ""; flex: 0 0 16px; height: 1px; background: var(--gold); opacity: .65; }
.card-note { font-size: 10.5px; color: var(--gray); opacity: .8; margin-top: 2px; letter-spacing: 1px; }

/* 1. 镜像留言条：居中大引文（非便利贴） */
.note-card .card-kicker { justify-content: center; }
.note-card .card-kicker::before { flex-basis: 30px; background: linear-gradient(90deg, transparent, var(--gold)); }
.note-card .card-kicker::after { content: ""; flex: 0 0 30px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.note-tape { display: none; }
.note-text {
  font-family: var(--serif);
  font-size: 18px; line-height: 2.1; font-weight: 600;
  color: var(--ink); text-align: center;
}

/* 2. 致命引力场：你眼中的TA / 你深藏的伤 */
.field-block + .field-block {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,.12);
}
.field-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.field-label b { font-size: 13px; letter-spacing: 2px; font-weight: 600; color: var(--gold); }
.field-wound .field-label b { color: #E29AA2; }
.field-ico { width: 15px; height: 15px; color: var(--gold); }
.field-wound .field-ico { color: #E29AA2; }
.outline-text { font-size: 14px; line-height: 2.05; color: var(--ink-2); }
.outline-hidden { margin: 0; padding: 0; border: none; color: #C9B0B3; }

/* 3. 同频图谱 · 控制台（紧凑、细轨、竖线指针、等宽数值） */
#spectrum-list { margin-top: 4px; }
.spectrum-item + .spectrum-item { margin-top: 26px; }
.spectrum-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.spectrum-dim { font-size: 14px; letter-spacing: 2px; color: var(--ink); font-weight: 700; flex: 0 0 auto; }
.spectrum-tend { font-size: 11px; color: var(--gray); letter-spacing: 1px; flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spectrum-tend i { font-style: normal; color: var(--gray); opacity: .7; margin-right: 2px; }
.spectrum-val {
  flex: 0 0 auto;
  font-family: "Courier New", ui-monospace, "SFMono-Regular", monospace;
  font-size: 14px; letter-spacing: 1px; color: var(--gold); font-weight: 700;
}
/* 峰值维度：维度名 + 数值玫瑰金高亮，一眼扫到最高项 */
.spectrum-top .spectrum-dim { color: var(--gold); text-shadow: 0 0 12px rgba(232,180,184,.5); }
.spectrum-top .spectrum-val { color: var(--gold-2); text-shadow: 0 0 14px rgba(232,180,184,.6); }
.spectrum-track {
  position: relative; height: 3px;
  background: linear-gradient(90deg, #16181F, #2A2E3A);
}
.spectrum-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, rgba(232,180,184,.14), rgba(232,180,184,.5));
}
.spectrum-dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 2px; height: 14px; border-radius: 1px;
  background: #F2CCD1;
  box-shadow: 0 0 8px rgba(232,180,184,.85);
}
.spectrum-poles { display: flex; justify-content: space-between; margin-top: 5px; }
.spectrum-poles span { font-size: 10px; color: var(--gray); opacity: .8; letter-spacing: 1px; }
.spectrum-meaning { margin-top: 7px; font-size: 11px; line-height: 1.8; color: var(--gray); }

/* 4. 捕获坐标：GPS 定位样式 */
.coord-block { padding: 6px 0 14px; border-top: 1px dashed rgba(255,255,255,.12); }
.coord-block:first-child { border-top: none; padding-top: 0; }
.coord-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.coord-pin { width: 16px; height: 16px; color: var(--gold); }
.coord-head b { font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 600; }
.coord-block p { font-size: 13px; line-height: 1.9; color: var(--ink-2); }

/* 5. 危险预警 · 暗红光束（去框，上下粗红线封口） */
.warn-card {
  border-top: 2px solid rgba(224,100,110,.85);
  border-bottom: 2px solid rgba(224,100,110,.85);
  padding: 30px 6px 26px;
}
.warn-card .card-kicker { color: var(--red); }
.warn-body { display: flex; gap: 14px; align-items: flex-start; }
.warn-ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F08A93, #D34A57);
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(224,100,110,.5);
}
#result-warning { font-size: 14px; line-height: 1.95; color: #E7CDCE; }

/* 5.5 心动同频时刻 · 相处心法 */
.reso-card .card-kicker, .advice-card .card-kicker { color: var(--gold); }
.reso-list, .advice-list { display: flex; flex-direction: column; gap: 16px; }
.reso-item, .advice-item { padding-bottom: 16px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.reso-item:last-child, .advice-item:last-child { border-bottom: none; padding-bottom: 0; }
.reso-item b, .advice-item b {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-size: 14px; letter-spacing: 1px; color: var(--ink);
  margin-bottom: 8px;
}
.reso-no {
  flex: 0 0 24px; width: 24px; height: 24px;
  border: 1px solid rgba(232,180,184,.4); color: var(--gold);
  font-family: var(--serif); font-size: 10px;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
}
.reso-item p, .advice-item p { font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }

/* 7 天有效期：倒计时提示 */
.expiry-hint { margin-top: 16px; font-size: 11px; letter-spacing: 1px; color: var(--gray); text-align: center; }
.expiry-hint b { color: var(--gold); font-weight: 600; }

/* 6. 月光的两面：月面月背侧写 */
.dual-sub { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; margin-bottom: 12px; line-height: 1.8; }
.dual-quote {
  font-family: var(--serif); font-size: 15.5px; line-height: 2.0; color: var(--ink);
  border-left: 2px solid rgba(232,180,184,.45); padding-left: 13px;
}

/* 8. 同频共振 · 天生宿敌 */
.match-list { display: flex; flex-direction: column; gap: 14px; }
.match-item { padding: 14px 0 14px 14px; border-left: 3px solid var(--gold); }
.match-item b {
  display: block; font-family: var(--serif); font-size: 13px; letter-spacing: 2px; margin-bottom: 7px;
}
.match-item span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.match-desc { display: block; font-style: normal; font-size: 12.5px; line-height: 1.85; color: var(--gray); margin-top: 6px; }
.match-best b { color: var(--gold); }
.match-worst { border-left-color: var(--red); }
.match-worst b { color: var(--red); }

/* 辅助说明：弱化，降为页脚注释级 */
.result-share-tip { text-align: center; font-size: 11px; color: var(--gray); opacity: .8; margin-top: 18px; letter-spacing: 1px; }
.poster-cta-hint { text-align: center; font-size: 11px; color: var(--gray); opacity: .8; margin-top: 12px; letter-spacing: 1px; }

/* ---------- poster modal ---------- */
.poster-wrap { text-align: center; width: 100%; max-width: 400px; }
#poster-img {
  width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; display: block;
  border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
#modal-poster { overflow-y: auto; align-items: flex-start; }
#modal-poster .poster-wrap { margin: auto; }
.poster-hint { color: #fff; font-size: 14px; margin: 16px 0 6px; letter-spacing: 2px; }

/* ---------- 过渡仪式（提交后全屏伪加载） ---------- */
.ritual {
  position: fixed; inset: 0; z-index: 120;
  background:
    radial-gradient(600px 400px at 50% 36%, rgba(200,112,138,.16), transparent 70%),
    var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.ritual-orbit {
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(232,180,184,.32);
  display: flex; align-items: center; justify-content: center;
  animation: orbitPulse 1.6s ease-in-out infinite;
}
.ritual-core {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F6DDE0, #E8B4B8 55%, #C98A98);
  box-shadow: 0 0 28px rgba(232,180,184,.75);
}
@keyframes orbitPulse {
  0%, 100% { transform: scale(.92); opacity: .7; }
  50% { transform: scale(1.07); opacity: 1; }
}
.ritual-text {
  color: var(--ink); font-size: 15px; letter-spacing: 3px;
  font-family: var(--serif);
}
.ritual-progress {
  width: 180px; height: 3px;
  background: rgba(232,180,184,.16);
  border-radius: 999px; overflow: hidden;
}
.ritual-progress i {
  display: block; height: 100%; width: 8%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width .5s ease;
}

/* ---------- loading ---------- */
.loading {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 9, 13, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.loading p { color: #fff; font-size: 13px; letter-spacing: 3px; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(232,180,184,.2);
  border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.screen, .modal { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 管理员模板预览弹窗 */
.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;
}
