/* 五行人格测试 · v5.6.21-quiz-share
   移动端优先竖屏 H5：封面 → 18 题逐题作答（可回退）→ 结果页（徽章/核心句/3 标签
   + 免费 3 条（每条两行：主句 + 副句）+ 锁定区目录 + 分享区）。
   配色：暗底暖金（与 FateLab 引导页同一族）；文案全部来自 /test/quiz.json */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0d0a;
  --bg2: #17140f;
  --line: rgba(178,149,93,0.18);
  --line2: rgba(178,149,93,0.30);
  --gold: #b2955d;
  --gold-lt: #d4b87a;
  --text: #e8ddd0;
  --text2: rgba(200,190,170,0.68);
  --text3: rgba(200,190,170,0.40);
  --footer-h: 66px;      /* 合规声明 390 宽下为 2 行，下内边距须留够 */
  --radius: 14px;
  --maxw: 520px;
}

html { font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

#app { min-height: 100vh; }

/* display 只能挂在 .active 上：#id{display:xxx} 会盖过 .screen{display:none} */
.screen { display: none; }
.screen.active { display: block; }

/* ===== 封面 ===== */
#screen-cover {
  min-height: calc(100vh - var(--footer-h) - env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 26px 40px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(178,149,93,0.08) 0%, transparent 62%),
    linear-gradient(170deg, #0f0d0a 0%, #1a1510 52%, #0f0d0a 100%);
}
#screen-cover.active { display: flex; }
.cover-inner { width: 100%; max-width: 440px; }

.cover-brand {
  font-size: 0.82rem;
  letter-spacing: 6px;
  color: rgba(178,149,93,0.55);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.cover-title {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1.45;
  color: var(--gold-lt);
  margin-bottom: 22px;
}
.cover-rule { width: 54px; height: 2px; background: var(--line); margin: 0 auto 26px; }
.cover-sub { font-size: 0.98rem; letter-spacing: 1px; color: var(--text2); margin-bottom: 30px; }
.cover-intro { font-size: 0.86rem; line-height: 2.1; color: var(--text3); margin-bottom: 40px; }
.cover-intro p { margin: 0; }
.cover-hint { font-size: 0.78rem; letter-spacing: 2px; color: var(--text3); margin-top: 18px; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 15px 34px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #12100c;
  background: linear-gradient(135deg, #c4a86a 0%, #b2955d 100%);
  border: none;
  border-radius: 34px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:active { color: var(--gold-lt); border-color: var(--gold); }

/* ===== 答题 ===== */
#screen-quiz {
  min-height: calc(100vh - var(--footer-h) - env(safe-area-inset-bottom, 0px));
  padding: 26px 22px 34px;
  flex-direction: column;
}
#screen-quiz.active { display: flex; }
.quiz-head { max-width: var(--maxw); width: 100%; margin: 0 auto 8px; }
.quiz-bar-row { display: flex; align-items: center; gap: 12px; }
.quiz-progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress span {
  display: block; height: 100%; width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.quiz-step {
  flex: 0 0 auto;
  font-size: 0.76rem;
  letter-spacing: 2px;
  color: var(--text3);
  white-space: nowrap;
}
.quiz-body {
  flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.quiz-question {
  font-size: 1.32rem; font-weight: 600; letter-spacing: 1px;
  line-height: 1.8; margin: 22px 0 30px;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  font-family: inherit; font-size: 0.95rem; line-height: 1.7;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.option:active, .option.picked {
  background: rgba(178,149,93,0.10);
  border-color: rgba(178,149,93,0.55);
  color: var(--gold-lt);
}
.option .key { flex: 0 0 auto; font-size: 0.76rem; letter-spacing: 1px; color: var(--gold); padding-top: 2px; }
#btnPrev { margin-top: 26px; align-self: flex-start; }
#btnPrev[hidden] { display: none; }

/* ===== 结果 ===== */
#screen-result {
  padding: 40px 20px 44px;
  background: radial-gradient(ellipse at 50% 0%, rgba(178,149,93,0.07) 0%, transparent 55%);
}
.result-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* 轻量入场动效 */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.screen.active .anim { animation: rise 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .screen.active .anim { animation: none; } }

/* 1. 徽章 + 核心句 + 标签 */
.res-top { text-align: center; margin-bottom: 26px; }
.res-badge {
  display: inline-block;
  padding: 9px 26px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-lt);
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(178,149,93,0.14), rgba(178,149,93,0.05));
  line-height: 1.5;
}
.res-core {
  font-size: 1.12rem;
  line-height: 1.95;
  letter-spacing: 0.5px;
  color: var(--text);
  margin: 18px auto 0;
  max-width: 26em;
}
.res-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.res-tags .tag {
  display: inline-block;
  padding: 5px 13px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: rgba(212,184,122,0.92);
  border: 1px solid rgba(178,149,93,0.34);
  border-radius: 999px;
  background: rgba(178,149,93,0.07);
  line-height: 1.6;
}

/* 2/3/4. 卡片式分区 */
.card-sec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.018);
  padding: 18px 18px 20px;
  margin-bottom: 16px;
}
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-title { font-size: 0.92rem; font-weight: 600; letter-spacing: 2px; color: var(--gold-lt); }
.sec-count { font-size: 0.74rem; letter-spacing: 1px; color: var(--text3); }

.item-list { display: flex; flex-direction: column; }
.item {
  display: flex; gap: 12px;
  font-size: 1.02rem;                 /* 条目字号 > 标签字号 */
  line-height: 1.8;
  color: var(--text);
  padding: 16px 0;                    /* 每条两行（主句+副句），条目间距略放大 */
}
.item + .item { border-top: 1px solid rgba(178,149,93,0.14); }   /* 条目之间有分隔 */
.item .idx { flex: 0 0 auto; font-size: 0.72rem; letter-spacing: 1px; color: var(--gold); padding-top: 5px; }
/* 条目两行：主句（正常字号）+ 副句（小一号、灰一点、与主句左对齐＝缩进对齐） */
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.item-main { font-size: 1.02rem; line-height: 1.8; letter-spacing: 0.3px; color: var(--text); }
.item-sub  { font-size: 0.88rem; line-height: 1.75; letter-spacing: 0.2px; color: var(--text2); }

/* 免费区末尾「给你的建议」：独立一行 · 浅底块 + 左侧金色细竖线 · 与上面 3 条分开 */
.advice {
  margin-top: 14px;
  padding: 13px 14px 13px 15px;
  border: 1px solid rgba(178,149,93,0.20);
  border-left: 2px solid rgba(178,149,93,0.62);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(178,149,93,0.09), rgba(178,149,93,0.02));
}
.advice-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-lt);
  margin-bottom: 6px;
}
.advice-text {
  display: block;
  font-size: 1.08rem;            /* 略大于条目正文字号（.item 1.02rem） */
  line-height: 1.85;
  letter-spacing: 0.5px;
  color: var(--text);
}

/* 锁定区：目录亮出来 */
.card-locked {
  border-style: dashed;
  border-color: rgba(178,149,93,0.34);
  background: linear-gradient(180deg, rgba(178,149,93,0.055), rgba(178,149,93,0.015));
}
.lock-title {
  font-size: 1rem; font-weight: 600; letter-spacing: 1px;
  color: var(--gold-lt); text-align: center; margin-bottom: 4px;
}
.lock-list { margin: 14px 0 16px; }
.lock-row { padding: 10px 0; }
.lock-row + .lock-row { border-top: 1px solid rgba(178,149,93,0.12); }
.lock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lock-name { font-size: 0.94rem; font-weight: 600; letter-spacing: 1px; color: var(--text); }
.lock-count { flex: 0 0 auto; font-size: 0.72rem; letter-spacing: 1px; color: var(--gold); }
.lock-prev {
  margin-top: 3px;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--text2);
  overflow: hidden;
}
.lock-prev .lk-head { color: rgba(200,190,170,0.62); }
.lock-prev .lk-ell { color: var(--text3); letter-spacing: 2px; margin-left: 2px; }
.btn-unlock { display: flex; margin: 0 auto; }
.lock-note { margin-top: 12px; font-size: 0.72rem; line-height: 1.7; text-align: center; color: var(--text3); }

/* 分享区 */
.card-share { text-align: center; }
.share-hint { font-size: 0.88rem; line-height: 1.85; color: var(--text2); margin-bottom: 16px; }
.card-share .btn-ghost { width: 100%; max-width: 300px; margin-top: 12px; }
.result-preview { margin-top: 18px; }
.result-preview img {
  display: block; width: 100%; max-width: 260px; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--line);
}
.result-note { margin-top: 22px; font-size: 0.72rem; line-height: 1.7; text-align: center; color: var(--text3); }

/* ===== 页脚常驻合规声明 ===== */
.compliance {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(9,8,6,0.94);
  border-top: 1px solid rgba(178,149,93,0.12);
  text-align: center;
  font-size: 0.68rem; line-height: 1.6; letter-spacing: 0.5px;
  color: var(--text3);
  z-index: 900;
}

/* ===== 出图舞台（离屏 540×720 → scale 2 = 1080×1440）===== */
#cardStage { position: absolute; left: -10000px; top: 0; width: 540px; height: 720px; overflow: hidden; }
#cardNode {
  position: relative;
  width: 540px; height: 720px;
  padding: 34px 40px 28px;            /* 上下边距收紧，给底部扫码图腾出高度 */
  background: #0f0d0a;
  color: #e8ddd0;
  display: flex; flex-direction: column;
  border: 1px solid rgba(178,149,93,0.22);
}
.card-top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(178,149,93,0.16);
}
.card-brand { font-size: 15px; letter-spacing: 4px; color: #b2955d; }
.card-tag { font-size: 13px; letter-spacing: 2px; color: rgba(200,190,170,0.5); }
.card-main { flex: 1; padding-top: 0; display: flex; flex-direction: column; justify-content: center; }
.card-badge {
  display: inline-block;
  font-size: 32px; font-weight: 700; letter-spacing: 3px; line-height: 1.4;
  color: #d4b87a;
  padding: 3px 20px;
  border: 2px solid rgba(178,149,93,0.55);
  border-radius: 999px;
}
.card-rule { width: 56px; height: 2px; background: rgba(178,149,93,0.45); margin: 14px 0 16px; }
.card-core { font-size: 22px; line-height: 1.65; letter-spacing: 1px; color: #e8ddd0; margin-bottom: 14px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.card-tags .tag {
  display: inline-block;
  font-size: 13px; letter-spacing: 1px; line-height: 1.7;
  color: #d4b87a;
  padding: 4px 12px;
  border: 1px solid rgba(178,149,93,0.45);
  border-radius: 999px;
}
.card-block-label { font-size: 13px; letter-spacing: 3px; color: #b2955d; margin-bottom: 8px; }
.card-free { display: flex; flex-direction: column; }
.card-free .cf {
  font-size: 15px; line-height: 1.75; color: rgba(215,205,188,0.9);
  padding: 5px 0 5px 12px;
  border-left: 2px solid rgba(178,149,93,0.35);
}
.card-free .cf + .cf { margin-top: 5px; }
/* 卡片同款「给你的建议」一行 */
.card-advice {
  margin-top: 11px;
  padding: 9px 12px 9px 13px;
  border-left: 2px solid rgba(178,149,93,0.60);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(178,149,93,0.085), rgba(178,149,93,0.012));
}
.card-advice-label { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: #b2955d; margin-bottom: 4px; }
.card-advice-text { font-size: 15px; line-height: 1.7; letter-spacing: 0.5px; color: rgba(215,205,188,0.92); }
/* 卡片底部扫码图（在品牌行上方）：素材＝前端本目录 qr_fatelab_test.png，同源 html2canvas 可导出 */
.card-qr {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(178,149,93,0.18);
  border-radius: 12px;
  background: rgba(178,149,93,0.05);
}
.card-qr-img { width: 118px; height: 118px; display: block; border-radius: 8px; }
.card-qr-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-qr-hint { font-size: 13px; letter-spacing: 1px; line-height: 1.7; color: rgba(200,190,170,0.78); }
/* 卡上一行小字（免费态）：完整画像还有 N 条（付费可见）；解锁后该行不显示，卡片高度不变 */
.card-paid-hint { font-size: 11.5px; letter-spacing: 0.5px; line-height: 1.55; color: rgba(178,149,93,0.80); }
.card-paid-hint:empty { display: none; }
.card-foot {
  padding-top: 10px;
  border-top: 1px solid rgba(178,149,93,0.16);
  font-size: 13px; letter-spacing: 1px; color: rgba(178,149,93,0.6);
}

/* ===== 解锁提示层（轻提示卡 + 遮罩；层级 1200 > 底部合规条 900、也高于固定顶栏）=====
   卡片下沿抬到合规条之上（padding-bottom），按钮触摸热区 >= 44px */
.unlock-toast {
  position: fixed; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 18px 18px calc(var(--footer-h) + 18px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 5, 4, 0.62);
  z-index: 1200;
}
.unlock-toast[hidden] { display: none; }
.unlock-toast-card {
  width: 100%; max-width: 340px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #241c12 0%, #17130d 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.ut-title { font-size: 1.06rem; font-weight: 700; letter-spacing: 2px; color: var(--gold-lt); }
.ut-body { margin-top: 10px; font-size: 0.9rem; line-height: 1.85; letter-spacing: 0.5px; color: var(--text2); }
.ut-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ut-actions .btn-primary, .ut-actions .btn-ghost { width: 100%; max-width: 260px; min-height: 44px; }

/* ===== 解锁支付弹窗（v5.6.13；与 tool.html 的 .pay-overlay/.pay-modal/.qrcode-box 同结构，
   配色改为本页暗底暖金。层级 1300 > 解锁提示层 1200 > 底部合规条 900）=====
   出码双通道：下单返回 data URI 优先，/api/qrcode/{order_id}.png 兜底 */
.pay-overlay {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(6, 5, 4, 0.74);
  z-index: 1300;
}
.pay-overlay.active { display: flex; }
.pay-modal {
  width: 100%; max-width: 320px;
  padding: 22px 20px 18px;
  text-align: center;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #241c12 0%, #17130d 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.pay-product { font-size: 0.92rem; letter-spacing: 1px; color: var(--text2); line-height: 1.7; }
.pay-modal .price {
  margin: 8px 0 6px;
  font-size: 1.9rem; font-weight: 700; letter-spacing: 1px;
  color: var(--gold-lt); line-height: 1.3;
}
.pay-modal .price small { font-size: 0.82rem; font-weight: 400; color: var(--text2); margin-left: 2px; }
.pay-modal .qrcode-box {
  margin: 12px auto 8px;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; border-radius: 10px; padding: 6px;
}
.pay-modal .qrcode-box img { width: 188px; height: 188px; display: block; }
.pay-modal .hint { font-size: 0.78rem; letter-spacing: 0.5px; line-height: 1.7; color: var(--text2); }
.pay-modal .status-msg { margin-top: 8px; font-size: 0.8rem; letter-spacing: 1px; color: var(--gold); }
.btn-close-pay {
  margin-top: 14px; width: 100%; min-height: 44px;
  font-family: inherit; font-size: 0.9rem; letter-spacing: 2px;
  color: var(--text2); background: transparent;
  border: 1px solid var(--line); border-radius: 30px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.btn-close-pay:active { color: var(--gold-lt); border-color: var(--gold); }

/* 解锁后：锁定区变内容区（按部分分组，逐条四段：main / sub / detail / todo） */
.unlock-block + .unlock-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(178,149,93,0.14); }
.unlock-block .item:first-child { padding-top: 10px; }
.unlock-block .item:last-child { padding-bottom: 4px; }
.unlock-block .item-rich { padding: 18px 0; }

/* 付费条目第 3 段：详解（正文段落，段前空一行；与副句同左边界） */
.item-detail {
  font-size: 0.95rem;
  line-height: 1.78;
  letter-spacing: 0.2px;
  color: rgba(215,205,188,0.86);
  margin-top: 10px;
}
/* 付费条目第 4 段：怎么做（金色小标签 + 一句可执行） */
.item-todo { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.todo-tag {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  line-height: 1.6;
  white-space: nowrap;
  color: #d4b87a;
  border: 1px solid rgba(178,149,93,0.42);
  border-radius: 999px;
  background: rgba(178,149,93,0.09);
}
.todo-text { font-size: 0.95rem; line-height: 1.72; letter-spacing: 0.2px; color: rgba(200,190,170,0.88); }

/* ===== 完整画像长图舞台（v5.6.16；离屏，高自适应：CSS 540px 宽 × scale 2 = 出图宽 1080px）=====
   内容顺序：品牌行 + 型名徽章 / 核心句 + 3 标签 / 免费 3 条 / 完整 8 条（四段）/ 建议 / 扫码图 + 站点地址 */
#fullStage { position: absolute; left: -10000px; top: 0; width: 540px; }
#fullNode {
  width: 540px;
  padding: 40px 40px 34px;
  background: #0f0d0a;
  color: #e8ddd0;
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
  border: 1px solid rgba(178,149,93,0.22);
}
#fullNode .f-head { padding-bottom: 22px; border-bottom: 1px solid rgba(178,149,93,0.20); }
#fullNode .f-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#fullNode .f-brand { font-size: 15px; letter-spacing: 4px; color: #b2955d; }
#fullNode .f-tag { font-size: 13px; letter-spacing: 2px; color: rgba(200,190,170,0.5); }
#fullNode .f-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 22px;
  font-size: 30px; font-weight: 700; letter-spacing: 3px; line-height: 1.45;
  color: #d4b87a;
  border: 2px solid rgba(178,149,93,0.55);
  border-radius: 999px;
}
#fullNode .f-core { margin-top: 16px; font-size: 20px; line-height: 1.7; letter-spacing: 1px; color: #e8ddd0; }
#fullNode .f-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#fullNode .f-tags .tag {
  display: inline-block; padding: 4px 12px; font-size: 13px; line-height: 1.7; letter-spacing: 1px;
  color: #d4b87a; border: 1px solid rgba(178,149,93,0.45); border-radius: 999px;
  background: rgba(178,149,93,0.06);
}
#fullNode .f-sec { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(178,149,93,0.18); }
#fullNode .f-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#fullNode .f-sec-title { font-size: 17px; font-weight: 600; letter-spacing: 2px; color: #d4b87a; }
#fullNode .f-sec-count { font-size: 12px; letter-spacing: 1px; color: rgba(200,190,170,0.44); }
#fullNode .f-block { margin-top: 20px; padding-left: 14px; border-left: 2px solid rgba(178,149,93,0.28); }
#fullNode .f-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#fullNode .f-block-name { font-size: 15px; font-weight: 600; letter-spacing: 1px; color: #e8ddd0; }
#fullNode .f-block-count { font-size: 12px; letter-spacing: 1px; color: #b2955d; }
#fullNode .item .idx { color: #b2955d; }
#fullNode .advice { margin-top: 22px; }
#fullNode .f-foot {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(178,149,93,0.18);
}
#fullNode .f-qr { width: 120px; height: 120px; display: block; border-radius: 8px; }
#fullNode .f-foot-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#fullNode .f-qr-hint { font-size: 15px; letter-spacing: 1px; line-height: 1.7; color: rgba(215,205,188,0.9); }
#fullNode .f-url { font-size: 14px; letter-spacing: 1px; color: #b2955d; }

@media (max-width: 380px) {
  .cover-title { font-size: 1.85rem; }
  .quiz-question { font-size: 1.18rem; }
  .res-badge { font-size: 1.32rem; letter-spacing: 3px; padding: 8px 20px; }
  .res-core { font-size: 1.04rem; }
  .item { font-size: 0.96rem; }
  .res-tags .tag { font-size: 0.72rem; padding: 4px 10px; }
}

/* ===== 好友对比模块（v5.6.20-quiz-duo）=====
   带 ?ref=<型key> 打开、答完 18 题后，出现在「给你的建议」下方（免费/付费都可见，不锁）。
   结构：型名对照一行「你：X ｜ TA：Y」+ 组合提示一句 + 双方「相处方式」各一条。
   配色沿用暗底暖金；文案全部来自 quiz.json duo.* */
.card-duo {
  border-color: rgba(178,149,93,0.34);
  background: linear-gradient(180deg, rgba(178,149,93,0.055), rgba(178,149,93,0.015));
}
.card-duo[hidden] { display: none; }
.duo-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-lt);
  margin-bottom: 12px;
}
/* 型名对照：单行「你：X ｜ TA：Y」；窄屏放不下时自然折行，不横向溢出 */
.duo-names {
  font-size: 0.94rem;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(178,149,93,0.14);
}
/* 组合提示一句：浅底块 + 左侧金色细竖线（与「给你的建议」同族） */
.duo-tip {
  margin-top: 13px;
  padding: 13px 14px 13px 15px;
  border: 1px solid rgba(178,149,93,0.20);
  border-left: 2px solid rgba(178,149,93,0.62);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(178,149,93,0.09), rgba(178,149,93,0.02));
  font-size: 1.0rem;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: var(--text);
}
/* 双方「相处方式」各一条：小标签 + 两行条目（主句 / 副句） */
.duo-relate { margin-top: 2px; }
.duo-rel-label {
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
}
.duo-rel { border-top: 1px solid rgba(178,149,93,0.12); }
.duo-rel:first-child { border-top: none; }
.duo-rel .item { padding: 10px 0 4px; }
.duo-rel .item .idx { padding-top: 4px; }

/* 分享区：好友对比主按钮在上，「链接已复制」提示一行（空则隐藏） */
.card-share .btn-primary { margin-top: 12px; }
.duo-share-hint {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.7;
  letter-spacing: 0.5px;
  color: var(--gold-lt);
  word-break: break-all;
}
.duo-share-hint:empty { display: none; }

/* ===== 内嵌浏览器转发引导蒙层（v5.6.21；半屏：下沿停在底部合规条之上，不遮合规声明）
   层级 1250 > 合规条 900、< 支付弹窗 1300；大箭头指右上角，点任意处关闭 ===== */
.share-guide {
  position: fixed; left: 0; right: 0; top: 0;
  height: calc(100% - var(--footer-h) - env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center;
  padding: 15vh 24px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(6,5,4,0.96) 0%, rgba(6,5,4,0.92) 55%, rgba(6,5,4,0.78) 100%);
  z-index: 1250;
  overflow: hidden;
}
.share-guide[hidden] { display: none; }
.sg-arrow {
  position: absolute; top: 2px; right: 12px;
  font-size: 2.7rem; line-height: 1.2;
  color: var(--gold-lt);
}
.sg-hint {
  max-width: 320px;
  font-size: 1.16rem; font-weight: 700;
  letter-spacing: 2px; line-height: 1.8;
  color: var(--gold-lt);
}
.sg-sub {
  margin-top: 14px; max-width: 300px;
  font-size: 0.8rem; line-height: 1.75; letter-spacing: 0.5px;
  color: var(--text2);
  word-break: break-all;
}
.sg-close {
  margin-top: 22px; width: 100%; max-width: 200px; min-height: 44px;
}
