:root {
  --bg: #fff8f1;
  --card: #ffffff;
  --ink: #4a3428;
  --ink-soft: #8a6f5f;
  --accent: #ff8a5c;
  --accent-deep: #f26d3d;
  --accent-soft: #ffe9db;
  --pink: #ffb59e;
  --line: #f3e2d3;
  --gold: #f5b04c;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(242, 109, 61, 0.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ---------- 通用 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
}

.btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 6px 16px rgba(242, 109, 61, 0.30);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.98); box-shadow: 0 3px 8px rgba(242, 109, 61, .3); }
.btn.ghost {
  background: #fff;
  color: var(--accent-deep);
  border: 1.5px solid var(--pink);
  box-shadow: none;
  font-weight: 600;
}

.disclaimer {
  margin-top: 18px;
  font-size: 11px;
  color: #b99f8e;
  text-align: center;
  line-height: 1.6;
}

/* ---------- 首页 ---------- */
.site-head { text-align: center; padding: 26px 0 6px; }
.site-head .emoji-hero { font-size: 44px; }
.site-head h1 { font-size: 26px; margin: 8px 0 4px; letter-spacing: 1px; }
.site-head p { color: var(--ink-soft); margin: 0; font-size: 14px; }

.test-entry { text-decoration: none; color: inherit; display: block; }
.test-entry .card { display: flex; gap: 14px; align-items: center; transition: transform .12s ease; }
.test-entry:active .card { transform: scale(.99); }
.test-entry .big-emoji { font-size: 40px; flex: 0 0 auto; }
.test-entry h2 { margin: 0 0 2px; font-size: 19px; }
.test-entry p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.test-entry .go { margin-left: auto; color: var(--accent-deep); font-weight: 700; flex: 0 0 auto; }

/* ---------- 答题 ---------- */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar .back {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
}
.topbar .back:disabled { opacity: .35; cursor: default; }
.progress {
  flex: 1; height: 10px; background: var(--accent-soft);
  border-radius: 999px; overflow: hidden;
}
.progress > div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--accent));
  border-radius: 999px;
  transition: width .3s ease;
}
.qcount { font-size: 13px; color: var(--ink-soft); flex: 0 0 auto; min-width: 38px; text-align: right; }

.quiz-head { text-align: center; padding-top: 10px; }
.quiz-head .emoji-hero { font-size: 40px; }
.quiz-head h1 { font-size: 24px; margin: 6px 0 2px; }
.quiz-head .subtitle { color: var(--accent-deep); font-weight: 600; margin: 0 0 8px; font-size: 14px; }
.quiz-head .intro { color: var(--ink-soft); font-size: 14px; text-align: left; }

.q-text { font-size: 19px; font-weight: 700; margin: 2px 0 16px; line-height: 1.5; }
.opt {
  display: block; width: 100%; text-align: left;
  background: #fffaf6;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.opt:hover { border-color: var(--pink); }
.opt:active { transform: scale(.99); }
.opt.picked { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ---------- 结果页 ---------- */
.result-hero { text-align: center; }
.result-hero .pre { color: var(--ink-soft); font-size: 13px; letter-spacing: 2px; }
.result-hero .emoji-badge { font-size: 52px; margin: 4px 0; }
.result-hero h2 { font-size: 27px; margin: 2px 0 6px; color: var(--accent-deep); }
.result-hero .hook { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip {
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600;
}
.result-intro { font-size: 15px; text-align: justify; }

.dims h3, .deep h3 { font-size: 16px; margin: 0 0 12px; }
.dim-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dim-row .dname { flex: 0 0 62px; font-size: 14px; font-weight: 600; }
.dim-row .dtrack { flex: 1; height: 12px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.dim-row .dfill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 999px;
  transition: width .8s ease;
}
.dim-row .dval { flex: 0 0 34px; text-align: right; font-size: 13px; color: var(--ink-soft); }

/* ---------- 深度报告锁定 ---------- */
.deep { position: relative; overflow: hidden; }
.deep .lock-mask {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 20px;
  background: rgba(255, 248, 241, 0.45);
  z-index: 2;
}
.deep.locked .deep-body { filter: blur(7px); user-select: none; pointer-events: none; }
.lock-mask .lock-icon { font-size: 34px; }
.lock-mask .lock-title { font-weight: 800; font-size: 16px; }
.lock-mask .lock-sub { font-size: 13px; color: var(--ink-soft); }
.deep .unlocked-badge {
  display: inline-block; background: #e9f7ee; color: #2e8b57;
  border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.deep p { font-size: 14.5px; text-align: justify; margin: 0 0 10px; }
.deep ul { margin: 6px 0 12px; padding-left: 20px; font-size: 14.5px; }
.deep ul li { margin-bottom: 5px; }
.deep h4 { font-size: 15px; margin: 14px 0 4px; color: var(--accent-deep); }
.deep h4:first-of-type { margin-top: 4px; }

.result-actions { display: grid; gap: 10px; }
.share-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; display: none; }

/* ---------- 小档案（答题前点选） ---------- */
.profile-count { margin-left: auto; }
.profile-card { text-align: center; }
.profile-card .emoji-hero { font-size: 40px; }
.profile-title { font-size: 21px; margin: 6px 0 4px; }
.profile-sub { color: var(--ink-soft); font-size: 13px; margin: 0 0 16px; }
.profile-q { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.profile-opt {
  text-align: center; font-size: 17px; font-weight: 600;
  padding: 15px; border-radius: 999px;
}

/* ---------- 结果页档案称呼 ---------- */
.result-hero .for-line { color: var(--ink-soft); font-size: 13px; margin: 2px 0 0; }
.deep .deep-for { font-weight: 600; color: var(--accent-deep); }
