/* ============================================================
   WASTE AESTHETIC v2 · 废土赛博（高对比）· 检测报告单排版
   警示黄 #FFD700 / 故障黑 #1A1A1A / 终端军绿 #2EA043
   红头文件 + 条形码 + 印章 · 整页一张竖向「检测报告单」
   —— 与 test1 档案美学、test2 卡片暗夜彻底区分
   ============================================================ */

:root {
  --bg: #1A1A1A;
  --bg-2: #121212;
  --card: #161616;
  --card-2: #1E1E1E;
  --ink: #F2F2F2;
  --ink-2: #C8C8C8;
  --gray: #9A9A9A;
  --line: rgba(255,255,255,.14);
  --warn: #FFD700;        /* 警示黄 */
  --neon: #2EA043;        /* 终端军绿：复古终端机/军事夜视仪质感，低饱和不刺眼 */
  --red: #FF3B30;         /* 印章红 */
  --red-deep: #C11C1C;
  --mono: "SFMono-Regular", "Consolas", "Menlo", "Courier New", monospace;
  --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: var(--bg);
  overflow-x: hidden;
}

/* 故障扫描线 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.06) 0px,
    rgba(0,0,0,.06) 1px,
    transparent 1px,
    transparent 3px
  );
}

#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; }

/* ---------- 按钮 ---------- */
.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: 4px;
  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: var(--warn); color: #1A1A1A;
  box-shadow: 0 0 6px rgba(255,215,0,.2);
}
.btn-primary:active { background: #FFE14D; }
#btn-start {
  position: relative;
  overflow: hidden;
  animation: btnBreathe 2.2s ease-in-out infinite;
}
#btn-start::after {
  content: "";
  position: absolute; top: -20%; bottom: -20%;
  left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  animation: sweep 2.6s ease-in-out infinite;
}
@keyframes sweep {
  0% { left: -70%; }
  60%, 100% { left: 135%; }
}
@keyframes btnBreathe {
  0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,.2); }
  50%      { box-shadow: 0 0 20px rgba(255,215,0,.5); }
}
.btn-line {
  border-color: var(--neon); color: var(--neon);
  box-shadow: inset 0 0 12px rgba(46,160,67,.08);
}
.btn-ghost { color: var(--gray); }

/* 回到主页按钮：终端绿描边，引导探索其他测评 */
.btn-portal {
  border-color: var(--neon); color: var(--neon);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(46,160,67,.10), rgba(46,160,67,.02));
  box-shadow: inset 0 0 14px rgba(46,160,67,.10);
}
.btn-portal:active { background: var(--neon); color: var(--bg); border-color: var(--neon); }
.btn-danger {
  border-color: var(--red); color: var(--red);
}
.btn-nav { height: 46px; padding: 0 18px; font-size: 14px; color: var(--gray); }
.btn-nav-next { border-color: var(--neon); color: var(--neon); }
.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(46,160,67,.5); }
.btn-arrow::after { content: " ›"; }

/* ---------- 封面 ---------- */
#screen-cover {
  position: relative;
  justify-content: center; align-items: center; text-align: center;
  padding: 40px 28px;
  background:
    linear-gradient(rgba(46,160,67,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,160,67,.035) 1px, transparent 1px),
    radial-gradient(700px 400px at 80% -10%, rgba(255,215,0,.12) 0%, rgba(255,215,0,0) 60%),
    radial-gradient(600px 500px at -10% 110%, rgba(46,160,67,.08) 0%, rgba(46,160,67,0) 55%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}
#screen-cover::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -15%; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(46,160,67,.09), transparent);
  animation: scanDown 6s linear infinite;
  pointer-events: none;
}
@keyframes scanDown {
  0% { top: -15%; }
  100% { top: 112%; }
}
.cover-frame { width: 100%; position: relative; z-index: 1; border: 1px solid var(--line); padding: 44px 26px 34px; background: rgba(0,0,0,.35); }
.cover-frame::before, .cover-frame::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 1px;
}
.cover-frame::before { top: 10px; background: var(--warn); }
.cover-frame::after { bottom: 10px; background: var(--warn); }
.cover-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: var(--neon); margin-bottom: 18px;
}
.cover-title {
  position: relative;
  font-size: 38px; font-weight: 800; letter-spacing: 2px; line-height: 1.25;
  color: var(--ink);
}
.cover-title span { display: block; color: var(--warn); }
.cover-title::before, .cover-title::after {
  content: "天命牛马\A成分鉴定";
  white-space: pre-line;
  position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none; opacity: 0;
}
.cover-title::before { color: #00E5FF; z-index: 1; animation: glitchA 4.5s steps(1) infinite; }
.cover-title::after { color: #FF3B30; z-index: 2; animation: glitchB 4.5s steps(1) infinite; }
@keyframes glitchA {
  0%, 89%, 93%, 100% { opacity: 0; transform: none; }
  90% { opacity: .85; transform: translate(-3px, 1px); }
  91% { opacity: .6; transform: translate(3px, -1px); }
  92% { opacity: 0; transform: none; }
}
@keyframes glitchB {
  0%, 89%, 93%, 100% { opacity: 0; transform: none; }
  90% { opacity: .8; transform: translate(3px, -2px); }
  91% { opacity: .5; transform: translate(-2px, 2px); }
  92% { opacity: 0; transform: none; }
}
.cover-sub { margin: 18px 0 30px; font-size: 14px; line-height: 1.9; color: var(--gray); }
.cover-actions { display: flex; flex-direction: column; gap: 12px; }
.cover-trust {
  margin-top: 16px; text-align: center;
  font-size: 12px; color: var(--gray); letter-spacing: 1px;
}
.cover-trust-2 {
  margin-top: 5px; font-size: 11px; color: #666;
  font-family: var(--mono); letter-spacing: 1px;
}
.cover-foot { margin-top: 26px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #555; text-align: center; }
.cover-copy { margin-top: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: #666; text-align: center; opacity: .8; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.78);
  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: 3px solid var(--warn);
  padding: 26px 22px;
  box-shadow: 0 0 40px rgba(255,215,0,.08);
}
/* ---------- 系统警告弹窗 ---------- */
.modal-warning {
  border-top: 3px solid var(--red);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px),
    #0A0A0A;
  position: relative;
  overflow: hidden;
}
.warning-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,59,48,.05) 0 2px, transparent 2px 4px);
  animation: warnScan 0.12s linear infinite;
}
@keyframes warnScan { 0% { transform: translateY(0); } 100% { transform: translateY(4px); } }
.warning-title {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--red); letter-spacing: 2px; margin-bottom: 14px;
  text-shadow: 2px 0 0 rgba(255,59,48,.4), -2px 0 0 rgba(46,160,67,.25);
}
.warning-body {
  position: relative; z-index: 1;
  font-size: 14px; line-height: 2.1; color: var(--ink-2);
  margin-bottom: 18px;
}
.warning-hl { color: var(--red); font-weight: 700; }
.modal-warning .btn { position: relative; z-index: 1; }
.modal-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: var(--neon); margin-bottom: 12px;
}
.modal-kicker.light { color: var(--warn); }
.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(255, 59, 48, .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(--warn); font-family: var(--mono); font-size: 18px; letter-spacing: 2px;
}
.code-input:focus { outline: none; border-color: var(--warn); }
.modal-err { color: var(--red); font-size: 13px; margin: 8px 0 4px; }
.modal .btn { margin-top: 12px; }

/* ---------- 答题 ---------- */
#screen-quiz { justify-content: center; align-items: center; }
.quiz-top { width: 100%; max-width: 460px; padding: 18px 20px 0; }
.quiz-count-row { display: flex; justify-content: center; gap: 14px; align-items: baseline; }
.quiz-count { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--warn); }
.quiz-pct { font-family: var(--mono); font-size: 12px; color: var(--neon); }
.quiz-loadbar { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; }
.quiz-loadlabel { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: #777; }
.progress { width: 300px; max-width: 100%; height: 8px; background: #0A0A0A; border: 1px solid var(--line); overflow: hidden; position: relative; }
.progress::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 6px, transparent 6px 12px);
}
.progress i { display: block; height: 100%; background: var(--neon); width: 0%; transition: width .25s ease; box-shadow: 0 0 8px rgba(46,160,67,.5); }
.quiz-frame { flex: none; width: 100%; max-width: 460px; padding: 26px 22px; display: flex; flex-direction: column; }
.quiz-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--neon); margin-bottom: 14px; }
.quiz-text { font-size: 18px; line-height: 1.8; font-weight: 600; margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 15px 16px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px; line-height: 1.6;
  cursor: pointer; font-family: var(--sans);
  transition: border-color .18s ease, background .18s ease;
}
.quiz-opt:active { background: var(--card-2); }
.quiz-opt.selected {
  border-color: var(--neon); background: rgba(46,160,67,.10);
  animation: quizFlash .38s ease;
}
@keyframes quizFlash {
  0%   { box-shadow: 0 0 0 rgba(46,160,67,0); }
  40%  { box-shadow: 0 0 26px rgba(46,160,67,.55); background: rgba(46,160,67,.22); }
  100% { box-shadow: 0 0 0 rgba(46,160,67,0); }
}
.opt-letter {
  flex: none; width: 28px; height: 28px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--neon);
}
.quiz-opt.selected .opt-letter { border-color: var(--warn); color: var(--warn); }
.quiz-nav { margin-top: 28px; display: flex; gap: 10px; justify-content: center; }
.quiz-tip { margin-top: 20px; text-align: center; font-family: var(--mono); font-size: 11px; color: #666; letter-spacing: 1px; }
.quiz-terminal .tcur { display: inline-block; color: var(--neon); animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.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; }

/* ---------- 红头文件（暗档案 · 黑底暗红） ---------- */
.reddoc {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #0C0C0C 0%, #141414 100%);
  color: #E8E8E8;
  padding: 20px 14px 14px;
  border: 1px solid #5A1F1F;
  overflow: hidden;
}
.reddoc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #7A1616 0 14px, transparent 14px 22px);
}
.reddoc-band {
  background: linear-gradient(180deg, #8B1E1E 0%, #6B1414 100%);
  color: #F2E8E8;
  text-align: center; font-size: 20px; font-weight: 800; letter-spacing: 4px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(0,0,0,.4);
}
.reddoc-band .reddoc-en { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 2px; font-weight: 400; opacity: .7; margin-top: 2px; }
.reddoc-line { height: 3px; border-top: 1px solid #6B1414; border-bottom: 1px solid #6B1414; margin: 10px 0 8px; }
.reddoc-meta {
  text-align: center; font-size: 12px; color: #B08A8A;
  border-bottom: 1px dashed #4A2E2E; padding-bottom: 8px;
}


/* ---------- 受检信息行 ---------- */
.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(--warn); }

/* ---------- 报告分节（§ 行式，非卡片） ---------- */
.report-section { margin-top: 30px; }
.sec-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sec-head::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 52px; height: 4px;
  background: repeating-linear-gradient(135deg, var(--warn) 0 5px, transparent 5px 9px);
}
.sec-no {
  flex: none; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: #1A1A1A; background: var(--neon); padding: 2px 7px;
}
.sec-title { font-size: 16px; font-weight: 700; letter-spacing: 3px; color: var(--ink); }
.sec-note { margin-top: 8px; font-size: 12px; color: var(--gray); }

/* ---------- 01 六维检测表 ---------- */
.meter-table { margin-top: 10px; }
.meter-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.meter-dim { flex: none; width: 62px; font-size: 14px; font-weight: 600; color: var(--ink); }
.meter-track {
  flex: 1; height: 10px;
  background: #0D0D0D;
  border: 1px solid rgba(255,255,255,.16);
  position: relative;
}
.meter-num { flex: none; width: 34px; text-align: right; font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--ink); }
.meter-verdict {
  flex: none; width: 56px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid; padding: 2px 0;
}
.verdict-ok { color: var(--neon); border-color: var(--neon); }
.verdict-warn { color: var(--warn); border-color: var(--warn); }
.verdict-danger { color: var(--red); border-color: var(--red); background: rgba(255,59,48,.1); }
.meter-meaning {
  flex: 0 0 100%;
  font-size: 12px; line-height: 1.75; color: var(--gray);
}

/* ---------- 03 生存评估 ---------- */
.vital-box {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding: 16px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.vital-score { display: flex; align-items: baseline; gap: 8px; }
.vital-num { font-family: var(--mono); font-size: 52px; font-weight: 700; line-height: 1; color: var(--warn); letter-spacing: 2px; }
.vital-label { font-size: 13px; color: var(--gray); letter-spacing: 1px; }
.vital-tier {
  margin-left: auto; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  border: 1px solid; padding: 4px 10px;
}
.tier-ok { color: var(--neon); border-color: var(--neon); }
.tier-warn { color: var(--warn); border-color: var(--warn); }
.tier-danger { color: var(--red); border-color: var(--red); background: rgba(255,59,48,.1); }
.vital-line { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.summary-block {
  margin-top: 12px; padding: 14px 16px;
  border-left: 3px solid var(--warn);
  background: rgba(255,215,0,.06);
}
.summary-text { font-size: 14px; line-height: 2; color: var(--ink-2); }
/* 大段文字区：极细网格暗纹，打破文字墙（机密档案工业质感） */
.redemp-text, .summary-block, .motivation-block, .clinic-block, .dual-quote, .alert-sheet {
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ---------- 02 核心确诊 ---------- */
.result-archetype {
  display: inline-block;
  border: 1px solid var(--warn); color: var(--warn);
  font-size: 12px; letter-spacing: 2px; padding: 4px 10px; margin-top: 12px;
}
.result-name { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: 2px; margin-top: 6px; }
.result-advantage {
  margin-top: 10px; display: inline-block;
  color: var(--neon);
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  border: 1px solid rgba(46,160,67,.4);
  padding: 4px 10px;
  background: rgba(46,160,67,.07);
}
.result-tags { margin: 10px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.result-tags span {
  font-size: 12px; color: var(--neon);
  border: 1px dashed rgba(46,160,67,.4); padding: 3px 8px;
}
.quote-text { font-size: 15px; line-height: 1.9; color: var(--ink-2); font-weight: 600; }

/* ---------- 04 成分图谱 ---------- */
.radar-chart { width: 100%; height: 400px; margin-top: 6px; }

/* ---------- 04 皮下三寸 ---------- */
.redemp-text {
  margin-top: 10px; padding: 14px 16px;
  border-left: 3px solid var(--neon);
  background: rgba(46,160,67,.05);
  font-size: 15px; line-height: 2.05; color: var(--ink-2);
}

/* ---------- 05 临床生存现状 ---------- */
.clinic-block { margin-top: 12px; }
.clinic-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.clinic-label::before {
  content: ""; width: 8px; height: 8px; background: var(--warn);
  transform: rotate(45deg);
}
.clinic-label-warn::before { background: var(--red); }
.clinic-label b { font-size: 13px; letter-spacing: 2px; color: var(--ink); }
.clinic-text { font-size: 14px; line-height: 1.95; color: var(--ink-2); }
.clinic-hidden { color: var(--gray); }
.motivation-block {
  margin-top: 12px; padding: 12px 14px;
  border-left: 3px solid var(--neon);
  background: rgba(46,160,67,.05);
}
.motivation-text { font-size: 14px; line-height: 2; color: var(--ink-2); }

/* ---------- 06 隐藏并发症 ---------- */
.dual-sub { margin-top: 10px; font-size: 13px; color: var(--warn); margin-bottom: 8px; }
.dual-quote { font-size: 15px; line-height: 2; color: var(--ink-2); }

/* ---------- 07 异常数据拦截（盖章横条） ---------- */
.alert-sheet {
  border: 1px dashed var(--warn);
  border-left: 4px solid var(--warn);
  padding: 12px 14px;
  background: rgba(255,215,0,.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(--warn); }
.stamp-inline {
  flex: none; font-size: 14px; font-weight: 800; letter-spacing: 2px;
  color: var(--warn); border: 2px solid var(--warn); border-radius: 4px;
  padding: 3px 8px; transform: rotate(-8deg);
}
.alert-item { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed rgba(255,215,0,.3); }
.alert-item:first-of-type { border-top: none; }
.alert-ico {
  flex: none; width: 26px; height: 26px;
  border: 2px solid var(--warn); color: var(--warn);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
}
.alert-warning { font-size: 14px; font-weight: 600; line-height: 1.7; color: #F2E2B0; }
.alert-fix { margin-top: 4px; font-size: 13px; line-height: 1.7; color: #A8925A; }

/* ---------- 08 生存实操指南 ---------- */
.guide-item { margin-top: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px dashed var(--line); }
.guide-head {
  font-size: 13px; font-weight: 700; color: var(--warn); margin-bottom: 6px;
  font-family: var(--mono); letter-spacing: 1px;
}
.guide-item p { font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.confidential-frame {
  position: relative;
  margin-top: 14px; padding: 16px 12px 12px;
  border: 1px solid var(--warn);
  background:
    repeating-linear-gradient(135deg, rgba(255,215,0,.06) 0 8px, transparent 8px 16px),
    var(--bg-2);
}
.confidential-tag {
  position: absolute; top: -9px; left: 12px;
  background: var(--bg); padding: 0 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: var(--warn);
}
.guide-trap { border-color: rgba(255,59,48,.35); }
.guide-trap .guide-head { color: var(--red); }
.destiny-list { margin-top: 2px; }
.destiny-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.destiny-item:last-child { border-bottom: none; }
.destiny-item b {
  flex: none; width: 76px; font-size: 12px; font-weight: 700;
  color: var(--neon); font-family: var(--mono); letter-spacing: 0;
  line-height: 1.9;
}
.destiny-item p { font-size: 13px; line-height: 1.85; color: var(--ink-2); margin: 0; }

/* ---------- 09 续命处方（处方笺） ---------- */
.rx-sheet { padding-bottom: 6px; }
.rx-do-dont { display: flex; gap: 10px; margin-top: 10px; }
.rx-item { flex: 1; border: 1px solid var(--line); padding: 12px; font-size: 14px; line-height: 1.7; }
.rx-item b {
  display: inline-block; font-size: 13px; padding: 1px 8px; margin-right: 6px; color: #1A1A1A;
}
.rx-do b { background: var(--neon); }
.rx-dont b { background: var(--red); color: #fff; }
.rx-dont { color: var(--gray); }
.advice-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.advice-item b { font-size: 14px; color: var(--warn); }
.advice-no { font-family: var(--mono); font-size: 12px; color: var(--neon); margin-right: 8px; }
.advice-item p { margin-top: 5px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.rx-tear {
  margin-top: 16px; border-top: 1px dashed var(--gray);
  position: relative; height: 14px;
}
.rx-tear span {
  position: absolute; right: 0; top: -8px;
  font-family: var(--mono); font-size: 10px; color: #666; letter-spacing: 2px;
  background: var(--bg); padding: 0 6px;
}

/* ---------- 10 同类牛马 · 工位天敌 ---------- */
.match-item { padding: 12px; border: 1px solid var(--line); margin-top: 10px; }
.match-best { border-left: 3px solid var(--neon); }
.match-worst { border-left: 3px solid var(--red); }
.match-item b { font-size: 13px; display: block; color: var(--warn); 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); }

/* ---------- 11 高光宣言 ---------- */
.golden-sheet {
  margin-top: 26px;
  padding: 28px 18px 20px;
  border: 1px solid rgba(255,215,0,.5);
  background:
    radial-gradient(500px 160px at 20% 0%, rgba(255,215,0,.14) 0%, rgba(255,215,0,0) 60%),
    var(--card);
  text-align: center;
}
.golden-quote {
  font-size: 19px; font-weight: 700; line-height: 2.05; color: var(--warn);
}
.golden-sign { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: #666; 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 var(--line); 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(--neon); font-size: 13px; }
.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(--warn); 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);
}

/* ---------- 过渡仪式 ---------- */
.ritual {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.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(255,215,0,.25); }
.ritual-orbit::after {
  inset: 0; border: 2px solid transparent; border-top-color: var(--warn); border-right-color: var(--warn);
  animation: spin 1.1s linear infinite;
}
.ritual-core {
  position: absolute; inset: 22px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 20px rgba(46,160,67,.6);
  animation: pulse 1.1s ease-in-out infinite;
}
.ritual-text { margin-top: 26px; color: var(--ink-2); font-size: 15px; letter-spacing: 2px; }
.ritual-progress { margin-top: 22px; width: 60%; height: 4px; background: var(--bg-2); border: 1px solid var(--line); }
.ritual-progress i { display: block; height: 100%; background: var(--warn); width: 8%; }
@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(10,10,10,.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(46,160,67,.2); border-top-color: var(--neon);
  animation: spin 1s linear infinite;
}
#loading-text { color: var(--gray); font-size: 14px; letter-spacing: 1px; }

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