/* ===========================================================================
 * joykit base.css v2 —— 结构层（所有站点共用，禁止把主题色写死在这里）
 *
 * v2 相对 v1 的改动（依据用户反馈：UI 太小、站点相似度太高）：
 *   1. 尺度整体放大约 1.35 倍：容器 460→560，主标题改为 clamp 流体字号，
 *      行高/字距/区块间距全部按参考站（angle-test）的量级重定
 *   2. 增加「可差异化」的旋钮：--display-font（标题字体族）、--scale（整站缩放）、
 *      --space-* 间距刻度、--card-style（卡片形态），主题层只要改这几个变量
 *      就能得到完全不同的观感，而不是只换颜色
 *   3. 新增结果页与信息型分享卡所需的区块样式（维度可视化、要点卡、场景卡、
 *      行动清单、盲点提醒、报告目录）
 * =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* ---- 色彩（主题层覆盖） ---- */
  --brand: #a85f4c;
  --accent: #a85f4c;
  --accent-2: #a85f4c;
  --accent-soft: rgba(168, 95, 76, .12);
  --bg: #f7f1eb;
  --bg-2: #ead8ce;
  --surface: rgba(255, 253, 251, .94);
  --surface-solid: #fffdfb;
  --text: #272421;
  --text-2: #5f554e;
  --muted: #8f7f75;
  --line: rgba(160, 130, 115, .22);

  /* ---- 形态（主题层覆盖，是「看起来不是同一个模板」的关键） ---- */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 22px 50px -34px rgba(90, 60, 45, .5);
  --shadow-lg: 0 36px 84px -40px rgba(90, 60, 45, .58);
  --card-border: 1px solid var(--line);
  --card-bg: var(--surface);

  /* ---- 字体与尺度 ---- */
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --display-font: var(--font);            /* 标题字体族：换成衬线即完全不同的气质 */
  --scale: 1;                              /* 整站缩放旋钮 */
  --maxw: 560px;                           /* 容器宽度 */
  --h1-weight: 800;
  --h1-track: .01em;
  --display-weight: 400;

  --fs-h1: clamp(38px, 9.5vw, 54px);       /* 首页主标题 */
  --fs-h2: clamp(24px, 5.4vw, 31px);       /* 题干 / 结果名 */
  --fs-h3: clamp(18px, 4.2vw, 21px);       /* 区块小标题 */
  --fs-lead: clamp(15.5px, 3.9vw, 18px);   /* 导语 */
  --fs-body: clamp(15px, 3.7vw, 17px);     /* 正文 */
  --fs-sm: clamp(13.5px, 3.3vw, 15px);     /* 次要文字 */
  --fs-xs: clamp(12px, 2.9vw, 13.5px);     /* 标签 */
  --lh-tight: 1.3;
  --lh-body: 1.9;

  /* ---- 间距刻度（主题层可整体放大/收紧） ---- */
  --sp-1: 8px;  --sp-2: 14px; --sp-3: 22px;
  --sp-4: 32px; --sp-5: 46px; --sp-6: 64px;
  --track: .01em;
}

html { min-height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: calc(var(--fs-body) * var(--scale));
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  letter-spacing: var(--track);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 应用外壳 ---------- */
.app-shell { position: relative; min-height: 100vh; display: flex; justify-content: center; padding: 0 var(--sp-3); }
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-deco span { position: absolute; border-radius: 50%; opacity: .5; }
.bg-deco span:nth-child(1) { width: 380px; height: 380px; top: -130px; right: -110px; background: var(--accent-soft); }
.bg-deco span:nth-child(2) { width: 300px; height: 300px; bottom: 6%; left: -150px; background: var(--accent-soft); }
.bg-deco span:nth-child(3) { display: none; }

.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw);
  min-height: 100vh;
  /* 底部留白 = 间距 + 水印区高度，避免水印压在最后一块内容上 */
  /* 底部留白 = 间距 + 页脚两行（水印 + 备案号）高度，避免页脚压住最后一块内容 */
  padding: 0 0 calc(var(--sp-6) + 46px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); padding: var(--sp-3) 2px var(--sp-3);
  font-size: var(--fs-xs);
}
.brand { font-weight: 700; color: var(--text-2); letter-spacing: .04em; }
.top-tag {
  font-size: calc(var(--fs-xs) - 1.5px); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface); white-space: nowrap;
}

.screen { animation: fade .36s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } html { scroll-behavior: auto; } }

/* ---------- 首页 ---------- */
.hero { padding: var(--sp-4) 2px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: calc(var(--fs-xs) - 1px); letter-spacing: .32em; color: var(--accent);
  font-weight: 600; margin-bottom: var(--sp-4); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.hero h1 {
  font-family: var(--display-font);
  margin: 0 0 var(--sp-3);
  font-size: calc(var(--fs-h1) * var(--scale));
  line-height: var(--lh-tight);
  font-weight: var(--h1-weight);
  letter-spacing: var(--h1-track);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  margin: 0 0 var(--sp-5);
  font-size: calc(var(--fs-lead) * var(--scale));
  line-height: var(--lh-body);
  letter-spacing: .02em;
  color: var(--text-2);
  max-width: 34em;
}

.preview-card {
  position: relative; border-radius: var(--radius); padding: var(--sp-4);
  background: var(--card-bg); border: var(--card-border);
  box-shadow: var(--shadow); margin-bottom: var(--sp-4);
}
.preview-top { display: flex; justify-content: space-between; font-size: calc(var(--fs-xs) - 1px); letter-spacing: .18em; color: var(--muted); margin-bottom: var(--sp-3); }
.preview-type { font-family: var(--display-font); font-size: calc(var(--fs-h2) * var(--scale)); font-weight: var(--display-weight); line-height: 1.3; }
.preview-quote { margin-top: var(--sp-2); font-size: calc(var(--fs-sm) * var(--scale)); color: var(--text-2); line-height: 1.8; }
.preview-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.preview-tags span { font-size: var(--fs-xs); padding: 5px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
.preview-bottom { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.pill { font-size: var(--fs-xs); padding: 8px 15px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }

.primary, .secondary {
  font-family: inherit; font-size: calc(var(--fs-body) * var(--scale)); font-weight: 700; cursor: pointer;
  border-radius: var(--radius-pill); padding: 18px 28px; border: 1px solid transparent;
  letter-spacing: .06em; min-height: 58px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.primary:active, .secondary:active { transform: translateY(0) scale(.99); }
.secondary { background: var(--surface); color: var(--text-2); border-color: var(--line); }
.hero-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.hero-btn .arrow { font-size: 1.15em; transition: transform .2s ease; }
.hero-btn:hover .arrow { transform: translateX(4px); }

.trust-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.trust-row span::before { content: "· "; }
.disclaimer { margin-top: var(--sp-5); font-size: var(--fs-xs); line-height: 1.85; color: var(--muted); }

/* ---------- 答题页 ---------- */
.test-card { padding: var(--sp-2) 2px 0; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); }
.progress-row b { color: var(--accent); font-variant-numeric: tabular-nums; font-size: calc(var(--fs-body) * var(--scale)); }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: var(--sp-5); }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }

.question { position: relative; }
.scene {
  display: inline-block; font-size: var(--fs-xs); color: var(--accent);
  background: var(--accent-soft); border-radius: var(--radius-pill);
  padding: 7px 15px; margin-bottom: var(--sp-3); font-weight: 600; letter-spacing: .04em;
}
.num { font-size: var(--fs-xs); letter-spacing: .28em; color: var(--muted); margin-bottom: var(--sp-2); }
.question h2 {
  font-family: var(--display-font);
  margin: 0 0 var(--sp-2);
  font-size: calc(var(--fs-h2) * var(--scale));
  line-height: 1.5; font-weight: var(--h1-weight); letter-spacing: .01em;
}
.hint { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }

.options { display: flex; flex-direction: column; gap: var(--sp-2); }
.option {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left;
  font-family: inherit; font-size: calc(var(--fs-body) * var(--scale)); line-height: 1.7; color: var(--text);
  background: var(--card-bg); border: var(--card-border);
  border-radius: var(--radius-sm); padding: 20px 20px; cursor: pointer; min-height: 68px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.option:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.option:active { transform: scale(.995); }
.option.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.option .letter { font-size: calc(var(--fs-xs) - 1px); color: var(--accent); font-weight: 700; letter-spacing: .08em; flex: none; }
.option .option-text { flex: 1; }
.option b { color: var(--muted); font-weight: 400; flex: none; font-size: 1.1em; }

/* 改题提示条：从交卷确认页跳回来修改时显示，告诉用户改完会自动返回 */
.edit-bar {
  margin: -8px 0 var(--sp-3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}

.quiz-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); }
.back-btn {
  font-family: inherit; font-size: var(--fs-sm); color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 12px 20px; cursor: pointer; min-height: 46px;
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }
.back-placeholder { width: 1px; }

/* 已答记录条（返回上一题后仍能看到自己选过什么） */
.answer-trail { margin-top: var(--sp-4); border-top: 1px dashed var(--line); padding-top: var(--sp-3); }
.answer-trail-title { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .12em; margin-bottom: var(--sp-2); }
.answer-trail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.answer-trail li { display: flex; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-2); line-height: 1.7; }
.answer-trail li b { color: var(--accent); font-variant-numeric: tabular-nums; flex: none; }
.answer-trail li span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* ---------- 交卷前确认页 ---------- */
.review { padding: var(--sp-3) 2px 0; }
.review h2 { font-family: var(--display-font); font-size: calc(var(--fs-h2) * var(--scale)); margin: 0 0 var(--sp-2); line-height: 1.4; }
.review-lead { font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 var(--sp-4); line-height: 1.85; }
.review-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.review-item {
  border: var(--card-border); border-radius: var(--radius-sm); padding: var(--sp-3);
  background: var(--card-bg); cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.review-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.review-item .ri-q { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 6px; }
.review-item .ri-a { font-size: calc(var(--fs-sm) * var(--scale)); color: var(--text); line-height: 1.7; }
.review-item .ri-edit { font-size: var(--fs-xs); color: var(--accent); margin-top: 6px; }
.review-actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---------- 分析中 ---------- */
.analysis { padding: var(--sp-6) 2px 0; text-align: center; }
.analysis-orb { width: 130px; height: 130px; margin: 0 auto var(--sp-5); border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.analysis-orb span { width: 74px; height: 74px; border-radius: 50%; background: var(--accent); opacity: .55; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .38; } 50% { transform: scale(1); opacity: .78; } }
.analysis-kicker { font-size: var(--fs-xs); letter-spacing: .26em; color: var(--accent); margin-bottom: var(--sp-2); }
.analysis h2 { font-family: var(--display-font); margin: 0 0 var(--sp-2); font-size: calc(var(--fs-h2) * var(--scale)); }
.analysis p { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.85; }
.analysis-steps { display: flex; justify-content: center; gap: var(--sp-1); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.analysis-steps span { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 14px; }

/* ---------- 结果页 ---------- */
.result-screen { padding: var(--sp-2) 2px 0; }
.result-head { margin-bottom: var(--sp-4); }
.result-kicker { font-size: var(--fs-xs); letter-spacing: .22em; color: var(--accent); margin-bottom: var(--sp-2); }
.result-label { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); }
.result-head h1 {
  font-family: var(--display-font);
  margin: 0 0 var(--sp-2);
  font-size: calc(var(--fs-h1) * .82 * var(--scale));
  line-height: 1.25; font-weight: var(--h1-weight); letter-spacing: var(--h1-track);
}
.tagline { margin: 0 0 var(--sp-3); font-size: calc(var(--fs-lead) * var(--scale)); line-height: 1.85; color: var(--text-2); }
.score-badge { display: inline-block; font-size: var(--fs-sm); color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-pill); padding: 8px 16px; font-variant-numeric: tabular-nums; }


/* 组合特型标识：结果数多于维度数时，额外原型带此标记，让用户知道抽到的是特色命中 */
.result-badge {
  display: inline-block; margin: 0 0 var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--accent);
  border-radius: var(--radius-pill); padding: 6px 14px;
}

/* 报告目录（付费站用） */
.report-toc { border: var(--card-border); border-radius: var(--radius); background: var(--card-bg); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); }
.report-toc-title { font-size: var(--fs-xs); letter-spacing: .16em; color: var(--muted); margin-bottom: var(--sp-2); }
.report-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.report-toc li { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }
.report-toc li b { color: var(--accent); font-variant-numeric: tabular-nums; flex: none; }

.shareable-card {
  border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-4);
  background: linear-gradient(150deg, var(--surface-solid), var(--bg-2));
  border: var(--card-border); box-shadow: var(--shadow-lg);
}
.shareable-brand { font-size: var(--fs-xs); letter-spacing: .18em; color: var(--accent); margin-bottom: var(--sp-3); }
.shareable-small { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-1); }
.shareable-card strong { display: block; font-family: var(--display-font); font-size: calc(var(--fs-h2) * var(--scale)); font-weight: var(--h1-weight); line-height: 1.3; }
.shareable-card > span { display: block; margin-top: 8px; font-size: calc(var(--fs-sm) * var(--scale)); color: var(--accent); font-weight: 600; }
.shareable-card p { margin: var(--sp-3) 0 0; font-size: calc(var(--fs-sm) * var(--scale)); line-height: 1.85; color: var(--text-2); }
.shareable-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.shareable-tags i { font-style: normal; font-size: var(--fs-xs); padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }

.result-card { background: var(--card-bg); border: var(--card-border); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow); }
.section { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.section-label { font-size: var(--fs-xs); letter-spacing: .18em; color: var(--accent); margin-bottom: var(--sp-2); font-weight: 600; }
.section h3 { font-family: var(--display-font); margin: 0 0 var(--sp-2); font-size: calc(var(--fs-h3) * var(--scale)); line-height: 1.55; }
.section p { margin: 0 0 var(--sp-3); font-size: calc(var(--fs-body) * var(--scale)); line-height: var(--lh-body); color: var(--text-2); }
.section p:last-child { margin-bottom: 0; }

.quote-block {
  margin: var(--sp-4) 0; padding: var(--sp-4) var(--sp-4);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--display-font);
  font-size: calc(var(--fs-lead) * var(--scale)); line-height: 1.85; color: var(--text);
}
.combo-box strong { display: block; font-family: var(--display-font); font-size: calc(var(--fs-h3) * var(--scale)); margin-bottom: var(--sp-2); }
.third-line { font-size: var(--fs-sm); color: var(--accent); }

/* 要点卡 / 场景卡 / 盲点提醒 */
.point-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.point-list li {
  display: flex; gap: var(--sp-2); font-size: calc(var(--fs-body) * var(--scale));
  line-height: 1.8; color: var(--text-2);
  border: var(--card-border); border-radius: var(--radius-sm); padding: var(--sp-3);
  background: var(--surface);
}
.point-list li b { color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }
.scene-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.scene-item { border: var(--card-border); border-radius: var(--radius-sm); padding: var(--sp-3); background: var(--surface); }
.scene-item .sc-title { font-size: calc(var(--fs-sm) * var(--scale)); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.scene-item .sc-body { font-size: calc(var(--fs-sm) * var(--scale)); color: var(--text-2); line-height: 1.8; }
/* 一页总结：报告收尾，视觉上要「落定」 */
.summary-block .summary-quote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-3);
  font-size: calc(var(--fs-body) * 1.02);
  line-height: var(--lh-body);
  color: var(--text);
}

.blindspot {
  border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: var(--sp-3);
  background: var(--accent-soft); font-size: calc(var(--fs-body) * var(--scale)); line-height: 1.85; color: var(--text);
}
.action-list { margin: 0; padding-left: 1.2em; font-size: calc(var(--fs-body) * var(--scale)); line-height: 1.95; color: var(--text-2); }
.action-list li { margin-bottom: 8px; }

.mini-copy { margin: 0 0 var(--sp-3); font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }

/* 维度可视化 */
.radar { display: grid; place-items: center; margin: var(--sp-2) 0 var(--sp-4); }
.radar svg { width: 100%; max-width: 340px; height: auto; }
.radar .grid-fill { fill: var(--accent-soft); stroke: var(--line); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .radar-data { fill: var(--accent); fill-opacity: .26; stroke: var(--accent); stroke-width: 2.5; }
.radar .dot { fill: var(--accent); }
.radar text { font-size: 12px; fill: var(--muted); font-family: var(--font); }

.dimensions { display: flex; flex-direction: column; gap: var(--sp-3); }
.dimension .dim-top { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(var(--fs-sm) * var(--scale)); margin-bottom: 8px; }
.dimension .dim-top b { color: var(--accent); font-variant-numeric: tabular-nums; font-size: calc(var(--fs-body) * var(--scale)); }
.dim-bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.dimension small { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.75; }

.dim-compact { display: flex; flex-direction: column; gap: var(--sp-2); }
.dim-line { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: var(--sp-2); font-size: calc(var(--fs-sm) * var(--scale)); }
.dim-line i { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; display: block; }
.dim-line i b { display: block; height: 100%; background: var(--accent); }
.dim-line em { font-style: normal; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }

.dim-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.dim-tags span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); border: var(--card-border); border-radius: var(--radius-pill); padding: 8px 15px; }
.dim-tags i { font-style: normal; color: var(--accent); font-weight: 700; }

/* ---------- 分享区 ---------- */
.share-zone { margin-top: var(--sp-4); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--sp-4); background: var(--surface); }
.share-zone-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--sp-3); }
.share-zone-head b { font-size: var(--fs-xs); color: var(--accent); font-weight: 600; }
.share-actions-inline { display: flex; flex-direction: column; gap: var(--sp-2); }
.share-tip { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }

/* ---------- 结果反馈（这个结果像你吗） ----------
 * 目标：问一句就够，一屏内可完成，答不答都不影响任何功能。
 * 触控目标在移动端 ≥44px，且不抢分享按钮的视觉优先级。 */

/* ---------- 免费结果页的深度版引导 ----------
 * 放在结果页最底部、反馈区之后：用户看完结果、兴趣最高的时候出现 */
.upgrade {
  margin-top: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: var(--sp-4);
  text-align: center;
}
.upgrade-head {
  font-size: var(--fs-xs); letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.upgrade-name {
  font-size: calc(var(--fs-h3) * .94); font-weight: 700;
  color: var(--text); line-height: 1.4; margin-bottom: 7px;
}
.upgrade-why {
  font-size: var(--fs-sm); line-height: 1.75; color: var(--text-2);
  margin: 0 auto 15px; max-width: 34em;
}
.upgrade-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.upgrade-btn:active { transform: scale(.985); opacity: .92; }
.upgrade-btn i { font-style: normal; }
.upgrade-note {
  margin-top: 11px; font-size: var(--fs-xs); color: var(--muted);
}

.fb-zone { margin-top: var(--sp-4); padding: var(--sp-4) 0 0; border-top: 1px solid var(--line); text-align: center; }
.fb-q { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--sp-3); }
.fb-opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.fb-opt {
  flex: 1 1 auto; min-width: 84px; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text-2); font-size: var(--fs-xs); font-family: inherit; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s, transform .12s;
}
.fb-opt:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.fb-opt:active:not(:disabled) { transform: scale(.97); }
.fb-opt.on { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.fb-opt:disabled { cursor: default; opacity: .55; }
.fb-opt.on:disabled { opacity: 1; }
.fb-thanks { min-height: 1.4em; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--accent); }
.fb-reco {
  margin-top: var(--sp-2); padding: 8px 4px; border: 0; background: none;
  color: var(--muted); font-size: var(--fs-xs); font-family: inherit;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.fb-reco:hover:not(:disabled) { color: var(--accent); }
.fb-reco.done { text-decoration: none; color: var(--accent); cursor: default; }
@media (max-width: 380px) {
  .fb-opt { min-width: 0; flex: 1 1 46%; }
}

.share-preview {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: rgba(28, 22, 19, .64); backdrop-filter: blur(7px);
  display: flex; align-items: flex-start; justify-content: center; padding: var(--sp-4) var(--sp-3);
  -webkit-backdrop-filter: blur(7px);
}
.share-preview .close {
  position: fixed; top: 14px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.share-box { width: 100%; max-width: min(380px, calc(100vw - 32px)); }
.share-card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-solid), var(--bg-2));
  border: var(--card-border); box-shadow: var(--shadow-lg);
  padding: var(--sp-4) var(--sp-3); text-align: center; overflow: hidden;
  display: flex; flex-direction: column;
}
.share-card.ratio-34 { aspect-ratio: 3 / 4; }
.share-card.ratio-45 { aspect-ratio: 4 / 5; }
.share-card.ratio-11 { aspect-ratio: 1 / 1; }
.share-card.ratio-916 { aspect-ratio: 9 / 16; }
.share-card.ratio-35 { aspect-ratio: 3 / 5; }
.share-card.ratio-23 { aspect-ratio: 2 / 3; }
.share-card.ratio-169 { aspect-ratio: 16 / 9; }

.share-card .mini { font-size: calc(var(--fs-xs) - 1px); letter-spacing: .2em; color: var(--accent); margin-bottom: var(--sp-3); }
.share-card .share-label { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-1); }
.share-card .type { font-family: var(--display-font); font-size: calc(var(--fs-h2) * .92 * var(--scale)); font-weight: var(--h1-weight); line-height: 1.25; }
.share-card .combo { margin-top: 8px; font-size: var(--fs-sm); color: var(--accent); font-weight: 600; }
.share-card .line { width: 72px; height: 2px; background: var(--accent); opacity: .45; margin: var(--sp-3) auto; }
.share-card .share-quote { margin: 0; font-size: calc(var(--fs-sm) * var(--scale)); line-height: 1.8; color: var(--text-2); }
.share-tags-label { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .1em; }
.share-card .share-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--sp-2); }
.share-card .share-tags span { font-size: var(--fs-xs); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }

/* 分享卡内的维度条（信息型卡片核心） */
.share-dims { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 8px; }
.share-dim { display: grid; grid-template-columns: 74px 1fr 32px; align-items: center; gap: 10px; font-size: calc(var(--fs-xs) - .5px); text-align: left; }
.share-dim span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-dim i { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; display: block; }
.share-dim i b { display: block; height: 100%; background: var(--accent); }
.share-dim em { font-style: normal; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }

.share-rows { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 8px; }
.share-row { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: calc(var(--fs-xs) * var(--scale)); color: var(--text-2); text-align: left; }
.share-row b { color: var(--accent); font-weight: 600; text-align: right; }
.share-advice { margin-top: var(--sp-2); font-size: calc(var(--fs-xs) * var(--scale)); line-height: 1.75; color: var(--text-2); text-align: left; }

/* 全部结果清单：把自己的那个高亮出来。
 * 目的：让看到这张卡的人产生"我是哪个"的好奇 —— 分享卡最有效的传播钩子。 */
.share-all {
  margin-top: var(--sp-3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 6px; justify-items: center;
}
.share-all span {
  font-size: calc(var(--fs-xs) - 1.5px); line-height: 1.5; color: var(--muted);
  padding: 3px 7px; border-radius: var(--radius-pill); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-all span.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.share-card.layout-poster .share-all { justify-items: start; }
/* 身份锚点：日期 */
.share-date { margin-top: var(--sp-2); font-size: calc(var(--fs-xs) - 2px); letter-spacing: .18em; color: var(--muted); }
@media (max-width: 380px) {
  .share-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.share-card .share-foot { margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.share-card .share-watermark { margin-top: 8px; font-size: calc(var(--fs-xs) - 1px); letter-spacing: .04em; color: var(--muted); }
.share-card.layout-poster { text-align: left; }
.share-card.layout-poster .line { margin-left: 0; }
.share-card.layout-poster .share-tags { justify-content: flex-start; }
.share-card.layout-ticket { border-style: dashed; }
.share-card.layout-minimal { border: none; box-shadow: none; background: var(--surface-solid); }
.share-actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.text-close { background: none; border: none; color: rgba(255, 255, 255, .82); font-size: var(--fs-sm); font-family: inherit; cursor: pointer; padding: var(--sp-2); }

/* ---------- 水印 / toast ---------- */
/* 水印：参考 angle-test 的轻量写法 —— 纯文字、无胶囊底色、低调不抢内容；
   移动端贴底并让开 iOS home indicator 与浏览器工具栏 */
/* 页脚：固定在视口底部，承载水印与备案号 */
.site-footer {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  max-width: calc(100vw - 28px);
  pointer-events: none;
}
.site-watermark {
  user-select: none; -webkit-user-select: none;
  text-align: center; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; line-height: 1.3; font-weight: 400;
  letter-spacing: .02em; color: var(--muted); opacity: .64;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .4);
}
/* 备案号：必须可点击并指向工信部官网；字号更小以免抢眼 */
.site-icp {
  pointer-events: auto;
  font-size: 10.5px; line-height: 1.2; letter-spacing: .02em;
  color: var(--muted); opacity: .58; text-decoration: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .4);
}
.site-icp:hover { opacity: .85; text-decoration: underline; }

/* 备案号行：ICP 与公安备案号并排 */
.site-records {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 10px; margin-top: 1px;
}
.site-police {
  pointer-events: auto;
  font-size: 10.5px; line-height: 1.2; letter-spacing: .02em;
  color: var(--muted); opacity: .58; text-decoration: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .4);
  white-space: nowrap;
}
.site-police:hover { opacity: .85; text-decoration: underline; }

@media (max-width: 600px) {
  .site-watermark {
    font-size: 11px;
    opacity: .6;
  }
  .site-icp,
  .site-police {
    font-size: 10px;
  }
}
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 90; background: rgba(38, 31, 27, .94); color: #fff;
  font-size: var(--fs-sm); padding: 12px 20px; border-radius: var(--radius-pill);
  animation: fade .22s ease both; max-width: calc(100vw - 40px); text-align: center;
}

/* ---------- 桌面端 ---------- */
/* ---------- 移动端适配（所有站点统一） ---------- */
/* 触控设备：加大点击热区、去掉 hover 抬起效果（移动端 hover 会粘住） */
@media (hover: none) {
  .option:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .option:active { border-color: var(--accent); background: var(--accent-soft); }
  .review-item:hover { transform: none; border-color: var(--card-border); }
  .primary:hover { transform: none; }
  .back-btn:hover { border-color: var(--line); color: var(--text-2); }
}
/* 触控目标至少 44px，防误触 */
@media (pointer: coarse) {
  .option { min-height: 72px; -webkit-tap-highlight-color: transparent; }
  .back-btn, .secondary, .primary { min-height: 52px; }
  .review-item { min-height: 64px; }
  .share-preview .close { width: 48px; height: 48px; }
}
/* 小屏：收紧横向内边距，避免内容被挤窄 */
@media (max-width: 600px) {
  .app-shell { padding: 0 16px; }
  .hero h1 { letter-spacing: 0; }
  .question h2 { line-height: 1.45; }
  .result-head h1 { line-height: 1.3; }
  .option { padding: 18px 16px; }
  .quote-block { padding: var(--sp-3); }
  .result-card, .preview-card, .share-zone { padding: var(--sp-3); }
  .share-preview { padding: var(--sp-3) var(--sp-2); }
  .share-box { max-width: 340px; }
}
/* 超小屏（iPhone SE 等 320–360px） */
@media (max-width: 380px) {
  :root { --sp-3: 18px; --sp-4: 26px; --sp-5: 36px; --sp-6: 52px; }
  .app-shell { padding: 0 14px; }
  .question h2 { font-size: 20px; }
  .option { font-size: 15px; padding: 16px 14px; }
  .dim-line { grid-template-columns: 88px 1fr 34px; }
}
/* 横屏与平板：容器保持可读宽度，不拉满 */
@media (min-width: 760px) {
  .app-shell { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-5); }
  :root { --maxw: 620px; }
}
/* 输入焦点可见（无障碍） */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 关注钩子：复用 .upgrade 的外壳，只调内部细节 */
.follow-zone .upgrade-head {
  color: var(--accent);
  letter-spacing: .06em;
}
.follow-zone .upgrade-name {
  font-size: calc(var(--fs-h3) * 1.02);
}
.follow-zone .upgrade-why { margin-bottom: 0; }
.follow-hint {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-xs); color: var(--muted);
}


/* ===== 本站主题层 ===== */

/* 视觉方向：开关 / 双面感。左右两半不同色块 + 青绿撞色 + 票根版式
   v2 放大：标题加大、区块间距拉开、开关轨道与两色分割线贯穿全站 */
:root {
  --bg: #f3f7f6;
  --bg-2: #fbe6d8;
  --accent: #14907f;
  --accent-2: #e8825a;
  --accent-soft: rgba(20, 144, 127, .12);
  --warm: #e8825a;
  --warm-soft: rgba(232, 130, 90, .14);
  --surface: rgba(255, 255, 255, .9);
  --surface-solid: #ffffff;
  --text: #1f2a28;
  --text-2: #4f6360;
  --muted: #82948f;
  --line: rgba(20, 144, 127, .22);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 16px 36px -28px rgba(24, 60, 55, .5);
  --shadow-lg: 0 28px 66px -34px rgba(24, 60, 55, .5);
  --h1-weight: 900;
  --track: .014em;
}

/* 背景：左右不同色的两半色块 + 中间一条分界线 */
.bg-deco::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 144, 127, .11) 0 50%, rgba(232, 130, 90, .14) 50% 100%);
}
.bg-deco::after {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(31, 42, 40, .18) 16%, rgba(31, 42, 40, .18) 84%, transparent);
}
.bg-deco span:nth-child(1) { width: 240px; height: 240px; top: -90px; right: -70px; background: var(--warm-soft); }
.bg-deco span:nth-child(2) { width: 210px; height: 210px; bottom: 10%; left: -110px; background: var(--accent-soft); }
.bg-deco span:nth-child(3) { display: block; width: 120px; height: 120px; bottom: 26%; right: -50px; background: var(--accent-soft); }

.topbar { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.top-tag { border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255, .8); }
.eyebrow { letter-spacing: .26em; font-size: 10.5px; }
.hero h1 { font-size: 35px; line-height: 1.34; }
/* 标题里的「反差」用撞色实心高亮 */
.hero h1 em { font-style: normal; color: #fff; background: var(--accent); padding: 0 9px 1px; border-radius: 7px; box-shadow: 5px 4px 0 var(--warm-soft); }
.hero-lead { font-size: 14px; line-height: 1.88; }

/* 首页卡：上下两张小卡拼接（硬分色 + 双层内框 + 底部叠卡 + 两侧骑缝刻度） */
.preview-card {
  padding: 24px 20px 20px; border: none;
  background: linear-gradient(180deg, #f1f8f6 0 50%, #fdf3ec 50% 100%);
  box-shadow: var(--shadow),
    inset 0 0 0 1px rgba(20, 144, 127, .2),
    inset 0 0 0 6px #fff,
    inset 0 0 0 7px rgba(20, 144, 127, .12),
    0 12px 0 -4px rgba(20, 144, 127, .13),
    0 23px 0 -8px rgba(232, 130, 90, .15);
}
.preview-card::before,
.preview-card::after {
  content: ''; position: absolute; top: 50%; width: 15px; height: 0;
  border-top: 2px dashed rgba(31, 42, 40, .3);
}
.preview-card::before { left: 0; }
.preview-card::after { right: 0; }
.preview-top { letter-spacing: .2em; color: var(--accent); }
.preview-type { font-size: 27px; font-weight: 900; }
.preview-quote { font-size: 13px; line-height: 1.82; }
.preview-tags span:nth-child(odd) { background: var(--accent-soft); color: var(--accent); }
.preview-tags span:nth-child(even) { background: var(--warm-soft); color: #b9573a; }
.preview-bottom { padding-top: 12px; border-top: 1px dashed rgba(31, 42, 40, .16); letter-spacing: .06em; }
.pill { background: rgba(255, 255, 255, .78); }
.primary { background: linear-gradient(100deg, var(--accent), #17967f 62%, #35a68d); letter-spacing: .02em; }

/* 答题区：开关感 —— 选中的选项左侧亮起另一色的轨道 */
.scene { border-radius: 8px; letter-spacing: .04em; }
.num { letter-spacing: .3em; }
.question h2 { font-size: 21px; line-height: 1.6; font-weight: 800; }
.hint { line-height: 1.8; }
.option {
  border-radius: var(--radius-sm); padding: 15px 16px;
  background: linear-gradient(90deg, rgba(20, 144, 127, .055), rgba(232, 130, 90, .06));
}
.option:hover { border-color: var(--accent); transform: translateX(3px); box-shadow: -5px 0 0 var(--accent); }
.option.is-picked { border-color: var(--accent); box-shadow: -5px 0 0 var(--warm); }
.option .letter { border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; background: #fff; letter-spacing: .1em; }
.progress { background: rgba(31, 42, 40, .08); }
.progress i { background: linear-gradient(90deg, var(--accent), var(--warm)); }
.back-btn { border-radius: 8px; }

/* 分析页：两色开关球 */
.analysis-orb { border-radius: var(--radius); }
.analysis-orb span { background: linear-gradient(90deg, var(--accent) 0 50%, var(--warm) 50% 100%); }

/* 结果页 */
.shareable-card { position: relative; border-radius: var(--radius); background: linear-gradient(120deg, rgba(20, 144, 127, .1) 0 50%, rgba(232, 130, 90, .15) 50% 100%), #fff; }
.shareable-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--accent) 0 50%, var(--warm) 50% 100%); border-radius: var(--radius) 0 0 var(--radius); }
.shareable-card strong { font-size: 26px; font-weight: 900; }
.shareable-card > span { color: var(--accent); }
.shareable-tags i:nth-child(even) { background: var(--warm-soft); color: #b9573a; }
.quote-block { border-left: 3px solid var(--accent); background: linear-gradient(90deg, rgba(20, 144, 127, .09), rgba(232, 130, 90, .11)); }
.dim-bar { height: 5px; }
.dim-bar i { background: linear-gradient(90deg, var(--accent), #3aa892); }
.radar .radar-data { fill-opacity: .22; }
.radar .dot { stroke: var(--warm); stroke-width: 1.5; }
.result-badge { background: var(--warm-soft); color: #b9573a; border: 1px dashed rgba(232, 130, 90, .55); }
.blindspot { border-left: 3px solid var(--warm); background: rgba(232, 130, 90, .1); }
.share-zone { border-color: var(--accent); background: rgba(255, 255, 255, .86); }

/* 分享卡：票根 + 双面（顶部两色开关条 + 虚线内框 + 双色分割线） */
.share-card {
  border: 1px dashed rgba(20, 144, 127, .45);
  background: linear-gradient(180deg, #ffffff 0 44%, #fdf4ee 44% 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(20, 144, 127, .16);
}
.share-card::before {
  content: ''; position: absolute; inset: 9px; border: 1px dashed rgba(31, 42, 40, .18);
  border-radius: 9px; pointer-events: none;
}
.share-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--warm) 50% 100%);
}
.share-card .mini { color: var(--accent); }
.share-card .type { font-weight: 900; }
.share-card .line { width: 100%; height: 2px; opacity: .5; background: linear-gradient(90deg, var(--accent) 0 50%, var(--warm) 50% 100%); }
.share-card .share-tags span:nth-child(even) { background: var(--warm-soft); color: #b9573a; }
.share-card .share-row b { font-weight: 700; }
.share-card .share-advice { border-left: 3px solid var(--accent); }

