/* ============================================================
   名人镜像 · 样式表
   ============================================================ */

:root {
  --paper:      #f4eee3;
  --paper-hi:   #fbf7ef;
  --ink:        #1f1a15;
  --ink-2:      #4a4238;
  --ink-3:      #8a7f6e;
  --ink-4:      #b4a893;
  --line:       rgba(31, 26, 21, 0.12);
  --line-soft:  rgba(31, 26, 21, 0.07);
  --red:        #a8342b;
  --red-2:      #c2483c;
  --red-wash:   rgba(168, 52, 43, 0.07);
  --gold:       #b0925c;
  --card:       #fffdf9;
  --radius-lg:  22px;
  --radius:     15px;
  --radius-sm:  10px;
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --sans: 'PingFang SC', 'HarmonyOS Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(31,26,21,.05), 0 2px 10px rgba(31,26,21,.04);
  --shadow-md: 0 2px 6px rgba(31,26,21,.05), 0 14px 40px -18px rgba(31,26,21,.28);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .01em;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 620px at 12% -12%, rgba(255,255,255,.85), transparent 62%),
    radial-gradient(900px 520px at 104% 4%, rgba(176,146,92,.13), transparent 58%),
    radial-gradient(800px 700px at 50% 118%, rgba(168,52,43,.055), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 纸纹 ---------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(31,26,21,.016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(31,26,21,.014) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

::selection { background: rgba(168,52,43,.16); }

/* 布局 ---------------------------------------------------- */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 24px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 10px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.seal {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--red);
  color: #fff7ec;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 2px 8px rgba(168,52,43,.28);
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink);
}

.brand-sub {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--ink-3);
  margin-top: -2px;
}

.top-note {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}

main { flex: 1 0 auto; padding: 10px 0 48px; }

footer {
  flex: none;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* 屏幕切换 ------------------------------------------------ */
.screen { display: none; }
.screen.is-active { display: block; animation: rise .55s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* =========================== 首页 =========================== */
.intro { padding: 34px 0 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.2vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: .02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--red);
  position: relative;
  white-space: nowrap;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .1em;
  height: .34em;
  background: linear-gradient(90deg, rgba(168,52,43,.22), rgba(168,52,43,.05));
  z-index: -1;
  border-radius: 2px;
}

.hero-lead {
  max-width: 34em;
  font-size: 16.5px;
  color: var(--ink-2);
  margin: 0 0 30px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .06em;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #f8f2e7;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 8px 22px -10px rgba(31,26,21,.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(31,26,21,.66); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(160deg, var(--red-2), var(--red));
  box-shadow: 0 10px 26px -10px rgba(168,52,43,.85);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(168,52,43,.8); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 13px 26px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: rgba(168,52,43,.45); color: var(--red); box-shadow: none; }

.cta-hint { font-size: 13px; color: var(--ink-3); }

/* 维度卡片 */
.axis-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 46px 0 18px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--ink-2);
}
.axis-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.axis-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 17px 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.axis-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168,52,43,.22);
}
.axis-card .k {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.axis-card .k i {
  font-style: normal;
  font-size: 11px;
  font-family: var(--sans);
  letter-spacing: .1em;
  color: var(--ink-4);
  font-weight: 400;
}
.axis-card .pair {
  margin: 6px 0 6px;
  font-size: 12.5px;
  color: var(--red);
  letter-spacing: .09em;
}
.axis-card .d { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* 说明条 */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.fact {
  border-left: 2px solid rgba(168,52,43,.3);
  padding: 2px 0 2px 14px;
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1.35;
}
.fact span { font-size: 12.5px; color: var(--ink-3); }

/* =========================== 答题 =========================== */
.quiz { max-width: 720px; margin: 0 auto; padding-top: 18px; }

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.quiz-count b {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .02em;
}

.progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(31,26,21,.09);
  overflow: hidden;
  margin-bottom: 34px;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width .45s var(--ease);
}

.q-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.q-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168,52,43,.55), transparent);
}

.q-dim {
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--red);
  margin-bottom: 14px;
}

.q-text {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 3.1vw, 1.5rem);
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: .015em;
  margin: 0 0 28px;
  color: var(--ink);
}

.options { display: grid; gap: 10px; }

.opt {
  appearance: none;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              transform .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.opt:hover {
  border-color: rgba(168,52,43,.4);
  background: var(--red-wash);
  color: var(--ink);
  transform: translateX(3px);
}
.opt:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.opt .dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-4);
  flex: none;
  position: relative;
  transition: border-color .2s var(--ease);
}
.opt .dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform .22s var(--ease);
}
.opt.is-picked {
  border-color: var(--red);
  background: var(--red-wash);
  color: var(--ink);
}
.opt.is-picked .dot { border-color: var(--red); }
.opt.is-picked .dot::after { transform: scale(1); }

.opt .key {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .1em;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  flex: none;
}

.quiz-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  min-height: 38px;
}

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 8px 4px;
  letter-spacing: .06em;
  transition: color .2s var(--ease);
}
.link-btn:hover { color: var(--red); }
.link-btn:disabled { opacity: .3; cursor: default; }
.link-btn:disabled:hover { color: var(--ink-3); }

.quiz-hint { font-size: 12px; color: var(--ink-4); letter-spacing: .08em; }

/* 计算中 */
.computing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 120px 20px;
  text-align: center;
}
.spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(168,52,43,.16);
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.computing p { font-family: var(--serif); font-size: 15px; letter-spacing: .18em; color: var(--ink-2); margin: 0; }

/* =========================== 结果 =========================== */
.result { padding-top: 8px; }

.result-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.result-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.result-grid {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

/* 左列：身份卡 + 你也有点像；右列：六维光谱 + 为什么是 TA */
.result-main {
  flex: 1.08 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.result-side { flex: .92 1 0; min-width: 0; }
.result-main .others { margin-top: 0; }
.result-main .others-grid { grid-template-columns: 1fr; }

.panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 26px;
  position: relative;
  overflow: hidden;
}

/* 身份卡 */
.id-card { padding: 30px 28px 28px; }
.id-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(168,52,43,.12) 70%, transparent);
}

.id-top { display: flex; gap: 18px; align-items: flex-start; }

.big-seal {
  width: 62px; height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--red-2), var(--red));
  color: #fff8ed;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3), 0 6px 16px -6px rgba(168,52,43,.75);
  animation: popIn .6s var(--ease) both .1s;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.82) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}

.id-name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .03em;
  margin: 0;
  color: var(--ink);
}
.id-en {
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 5px;
}
.id-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.chip {
  font-size: 11.5px;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(255,255,255,.6);
  white-space: nowrap;
}
.chip-red { border-color: rgba(168,52,43,.3); color: var(--red); background: var(--red-wash); }

.match-bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.match-num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.match-unit { font-size: 14px; color: var(--red); font-weight: 600; }
.match-label { font-size: 12px; color: var(--ink-3); letter-spacing: .16em; margin-left: 2px; }
.match-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.5;
  max-width: 12em;
}

.quote-block {
  margin: 22px 0 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(176,146,92,.09), rgba(176,146,92,.03));
  border-radius: var(--radius);
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.quote-block span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 7px; font-family: var(--sans); letter-spacing: .12em; }

.id-summary {
  margin: 20px 0 0;
  font-size: 14.6px;
  line-height: 1.95;
  color: var(--ink-2);
  letter-spacing: .01em;
}

.trait-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trait {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.55);
}

/* 维度对比 */
.panel-title {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink-2);
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.panel-title small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-4);
  font-weight: 400;
}

.dims { display: grid; gap: 15px; }

.dim-row .dim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.dim-row .dim-head b { font-weight: 600; font-family: var(--serif); font-size: 13.5px; letter-spacing: .12em; }
.dim-row .dim-head i { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.dim-track {
  position: relative;
  height: 9px;
  border-radius: 99px;
  background: rgba(31,26,21,.055);
  overflow: hidden;
}
.dim-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  border-radius: 99px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width .9s var(--ease);
}
.dim-mark {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 15px;
  background: var(--ink-3);
  opacity: .65;
  border-radius: 2px;
  transition: left .9s var(--ease);
}
.dim-legend {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .06em;
  flex-wrap: wrap;
}
.dim-legend i {
  display: inline-block;
  width: 16px; height: 6px;
  border-radius: 99px;
  margin-right: 6px;
  vertical-align: middle;
}
.lg-you { background: linear-gradient(90deg, var(--gold), var(--red)); }
.lg-them { background: var(--ink-3); opacity: .6; width: 2px !important; height: 12px !important; }

/* 雷达 */
.radar-wrap { display: grid; place-items: center; padding: 6px 0 2px; }
.radar-svg { width: 100%; max-width: 300px; height: auto; overflow: visible; }

/* 共鸣 / 差异 */
.reasons { display: grid; gap: 11px; margin-top: 4px; }
.reason {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line-soft);
  font-size: 13.6px;
  line-height: 1.75;
  color: var(--ink-2);
}
.reason .tag {
  flex: none;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 3px;
  white-space: nowrap;
}
.tag-same { background: var(--red-wash); color: var(--red); border: 1px solid rgba(168,52,43,.22); }
.tag-diff { background: rgba(31,26,21,.05); color: var(--ink-3); border: 1px solid var(--line); }

/* 其他可能 */
.others { margin-top: 22px; }
.others-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.other-card {
  text-align: left;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  width: 100%;
}
.other-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168,52,43,.24);
}
.other-seal {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(168,52,43,.08);
  border: 1px solid rgba(168,52,43,.18);
  color: var(--red);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
.other-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.3;
}
.other-meta { font-size: 11px; color: var(--ink-3); letter-spacing: .05em; }
.other-pct {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* 结果操作 */
.actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 26px;
  align-items: center;
}

/* 激活码 */
.intro-extra {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--red);
  cursor: pointer;
  border-bottom: 1px solid rgba(168,52,43,.28);
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.link-btn:hover { border-color: var(--red); }
.license-badge {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11.5px;
  letter-spacing: .08em;
  letter-spacing: .06em;
  color: var(--ink-3);
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  background: rgba(255,255,255,.5);
}

.license-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(31,26,21,.5);
  backdrop-filter: blur(5px);
}
.license-modal.is-open { display: grid; animation: fadeIn .24s var(--ease); }

.license-box {
  background: var(--paper-hi);
  border-radius: var(--radius-lg);
  padding: 30px 30px 24px;
  width: min(420px, 100%);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.5);
  border: 1px solid var(--line-soft);
}
.license-eyebrow {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--red);
  margin-bottom: 12px;
}
.license-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 8px;
  color: var(--ink);
}
.license-tip {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.license-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.license-input::placeholder { letter-spacing: .12em; color: #b9b0a2; }
.license-input:focus {
  border-color: rgba(168,52,43,.55);
  box-shadow: 0 0 0 3px rgba(168,52,43,.08);
}
.license-err {
  min-height: 18px;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--red);
  letter-spacing: .03em;
}
.license-box .actions { justify-content: flex-start; margin-top: 6px; }

/* 分享卡预览 */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(31,26,21,.5);
  backdrop-filter: blur(5px);
}
.share-modal.is-open { display: grid; animation: fadeIn .28s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.share-inner {
  background: var(--paper-hi);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-width: min(430px, 100%);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.5);
  text-align: center;
}
.share-inner img { width: 100%; border-radius: var(--radius-sm); display: block; box-shadow: var(--shadow-sm); }
.share-inner .actions { justify-content: center; margin-top: 14px; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: rgba(31,26,21,.93);
  color: #f8f2e7;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 80;
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 响应式 -------------------------------------------------- */
@media (max-width: 860px) {
  .result-grid { flex-direction: column; }
  .result-main, .result-side { flex: none; width: 100%; }
  .axis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .others-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { padding: 0 17px; }
  .topbar { padding-top: 16px; }
  .top-note { display: none; }
  .intro { padding-top: 20px; }
  .axis-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .q-card { padding: 24px 19px 22px; border-radius: var(--radius); }
  .panel { padding: 22px 19px; border-radius: var(--radius); }
  .id-card { padding: 24px 19px; }
  .big-seal { width: 52px; height: 52px; font-size: 27px; }
  .match-num { font-size: 38px; }
  .btn { padding: 14px 26px; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .other-pct { font-size: 13px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions .btn-primary { grid-column: 1 / -1; }
  .actions .btn { width: 100%; padding: 13px 10px; font-size: 14px; }

  /* 激活码弹层：按钮不铺满整行，保持并排 */
  .license-modal { padding: 16px; }
  .license-box { padding: 24px 20px 20px; }
  .license-box .actions { display: flex; flex-wrap: nowrap; gap: 10px; }
  .license-box .actions .btn { width: auto; }
  .license-box .actions .btn-primary { grid-column: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
/* ============================================================
   v2 · 职业标识 / 流派 / 建议 / 六种活法
   ============================================================ */
.hero-sub {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-3);
}
.hero-theory {
  margin: 20px 0 0;
  max-width: 820px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}

/* 六种活法 */
.faction-note {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-3);
}
.faction-note b { font-weight: 600; color: var(--ink-2); }
.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.faction-card {
  padding: 20px 20px 18px;
  border: 1px solid rgba(31, 26, 21, 0.09);
  border-radius: 14px;
  background: var(--paper-hi);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.faction-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 52, 43, 0.24);
  box-shadow: 0 14px 30px -20px rgba(31, 26, 21, 0.45);
}
.f-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}
.f-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.f-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}
.f-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.f-tags span {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(31, 26, 21, 0.055);
}
.f-tags .f-more {
  color: var(--ink-3);
  background: transparent;
  border: 1px solid rgba(31, 26, 21, 0.14);
  letter-spacing: 0.04em;
}

/* 结果页 · 职业前缀 */
.id-job {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--red);
}
.id-job::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-left: 10px;
  vertical-align: 4px;
  background: rgba(168, 52, 43, 0.4);
}

/* 流派行 */
.school-line {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.school-tag {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-wash);
  border: 1px solid rgba(168, 52, 43, 0.16);
}
.school-tag.ghost {
  color: var(--ink-3);
  background: transparent;
  border-color: rgba(31, 26, 21, 0.14);
}

/* 建议 */
.advice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: adv;
}
.advice-list li {
  position: relative;
  padding: 14px 0 14px 44px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
  border-top: 1px solid rgba(31, 26, 21, 0.08);
}
.advice-list li:first-child {
  border-top: 0;
  padding-top: 6px;
}
.advice-list li::before {
  counter-increment: adv;
  content: counter(adv, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--red);
  opacity: 0.75;
}
.advice-list li:first-child::before {
  top: 8px;
}

/* 同一派 */
.faction-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}
.faction-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faction-people .fp {
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(31, 26, 21, 0.045);
  border: 1px solid rgba(31, 26, 21, 0.07);
}

@media (max-width: 860px) {
  .faction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* 窄屏标题与副标题换行显示，避免标题被挤成两行 */
  .panel-title { flex-wrap: wrap; row-gap: 6px; }
  .panel-title small { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .faction-grid { grid-template-columns: minmax(0, 1fr); }
  .f-name { font-size: 19px; }
}

/* ===================== 测试馆（多测试首页） ===================== */
/* 测试页顶部的一行面包屑：全部测试 / 当前测试 / 仅供娱乐 */
.testnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.testnav a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.testnav a:hover { color: var(--red); border-bottom-color: rgba(168,52,43,.4); }
.testnav-sep { color: var(--ink-4); }
.testnav-cur { color: var(--ink); }
.ent-badge {
  margin-left: 2px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--red);
  background: var(--red-wash);
  border: 1px solid rgba(168,52,43,.18);
  border-radius: 999px;
  padding: 2px 9px;
}

.hub-hero { padding: 52px 0 10px; }
.hub-hero .hero-lead { margin-bottom: 18px; }

.hub-note {
  max-width: 40em;
  margin: 0 0 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-3);
  background: rgba(255,253,249,.6);
  border-left: 2px solid rgba(168,52,43,.32);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hub-note strong { color: var(--ink-2); font-weight: 600; }

/* 收费说明（首页 hero 下那一行） */
.hub-price {
  max-width: 40em;
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.hub-price b { color: var(--red); font-weight: 600; }

.hub-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.filter-btn:hover { color: var(--ink-2); border-color: rgba(31,26,21,.24); }
.filter-btn.is-on {
  color: var(--red);
  background: var(--red-wash);
  border-color: rgba(168,52,43,.32);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.test-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.test-card.is-live:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(168,52,43,.28);
}
.test-card.is-soon { opacity: .82; cursor: default; }

.tc-cover {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 92px;
  padding: 0 22px;
  background: linear-gradient(120deg, rgba(168,52,43,.09), rgba(176,146,92,.10) 60%, rgba(244,238,227,0) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.tc-seal {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 14px -6px rgba(168,52,43,.7);
}
.is-soon .tc-seal { background: var(--ink-4); box-shadow: none; }
.tc-en {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--ink-4);
  text-transform: uppercase;
  word-break: break-word;
}
.tc-badge {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}
/* 卡片角标：免费 / 需激活码 */
.tc-badge.is-free {
  color: #4a6a50;
  background: #eef2e8;
  border-color: rgba(74,106,80,.26);
}
.tc-badge.is-paid {
  color: var(--red);
  background: var(--red-wash);
  border-color: rgba(168,52,43,.2);
}

.tc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 22px 20px;
}
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tags span {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: rgba(244,238,227,.8);
  border-radius: 6px;
  padding: 2px 8px;
}
.tc-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.tc-title small {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.tc-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-3);
}
.tc-go { color: var(--red); letter-spacing: .04em; }
.is-soon .tc-go { color: var(--ink-4); }

.hub-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 4px;
  font-size: 14px;
  color: var(--ink-3);
}

.recent-list { display: grid; gap: 9px; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.recent-item:hover { border-color: rgba(168,52,43,.3); transform: translateX(2px); }
.ri-name { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.ri-pct { font-family: var(--serif); font-size: 14px; color: var(--red); }
.ri-when { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-4); }
.ri-go { font-size: 12.5px; color: var(--red); white-space: nowrap; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px 24px;
}
.about-card h3 {
  margin: 8px 0 9px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.about-card p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.ac-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ink-4);
}

.hub-warn { margin: 34px 0 10px; }
.hub-warn p {
  margin: 0 0 12px;
  max-width: 46em;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}
.hub-warn p:last-child { margin-bottom: 0; }

.hub-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(31,26,21,.92);
  color: #f6efe2;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.5);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 60;
}
.hub-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .hub-hero { padding: 40px 0 6px; }
  .test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .about-grid { grid-template-columns: 1fr; }
  .tc-cover { height: 84px; padding: 0 18px; }
  .tc-seal { width: 42px; height: 42px; font-size: 22px; }
  .tc-body { padding: 18px 18px 18px; }
  .tc-title { font-size: 19px; }
}
@media (max-width: 560px) {
  .test-grid { grid-template-columns: 1fr; }
  .hub-note { font-size: 12.5px; padding: 11px 14px; }
  .recent-item { flex-wrap: wrap; gap: 6px 12px; }
  .ri-when { flex: 1 1 100%; order: 3; }
  .ri-go { margin-left: auto; }
}

/* ============================================================
   通用测试页（test.html · engine.js）
   ============================================================ */

.qz-intro { max-width: 760px; padding: 26px 0 10px; }
.qz-h1 {
  margin: 14px 0 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.16;
  letter-spacing: .02em;
}
.qz-sub {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--red);
  letter-spacing: .04em;
}
.qz-lead { margin: 0 0 26px; font-size: 15.5px; line-height: 1.95; color: var(--ink-2); }
.qz-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qz-meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
/* 开始页那行授权状态：免费 / 需激活码 / 已激活 */
.qz-license {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.qz-license.is-free { color: #4d6b52; }
.qz-license.is-on { color: var(--red); }
.qz-license.is-used { color: #8a6a3a; }
.qz-theory {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-3);
}
.qz-preview { margin: 8px 0 40px; }
.qz-pv-title { font-size: 12px; letter-spacing: .16em; color: var(--ink-3); margin-bottom: 10px; }
.qz-pv-list { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-pv-list span {
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

/* 答题 */
.qz-quiz-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 10px; }
.qz-step { font-family: var(--serif); font-size: 15px; letter-spacing: .12em; }
.qz-pct { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.qz-bar { height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--red), var(--red-2)); transition: width .4s var(--ease); }

.qz-card {
  margin: 30px 0 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 38px 40px 30px;
}
.qz-no { font-family: var(--serif); font-size: 12px; letter-spacing: .22em; color: var(--red); opacity: .8; }
.qz-q { margin: 12px 0 26px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.62; letter-spacing: .02em; }

.qz-options { display: flex; flex-direction: column; gap: 10px; }
.qz-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 15px 18px;
  font-family: var(--sans); font-size: 15px; color: var(--ink-2);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.qz-opt:hover { border-color: rgba(168,52,43,.42); transform: translateX(2px); }
.qz-opt.is-on { border-color: var(--red); background: var(--red-wash); color: var(--ink); }
.qz-dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--ink-4); flex: none; }
.qz-opt.is-on .qz-dot { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 2.5px var(--paper-hi); }
.qz-opt-t { flex: 1; line-height: 1.62; }
.qz-key {
  flex: none; font-size: 11px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-variant-numeric: tabular-nums;
}

.qz-nav { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 50px; }
.qz-back { background: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink-3); padding: 4px 0; }
.qz-back:hover { color: var(--red); }
.qz-hint { font-size: 12px; color: var(--ink-4); letter-spacing: .06em; }

/* 结果 */
.qz-result-grid { display: flex; gap: 22px; align-items: flex-start; margin: 26px 0 60px; }
.qz-main { flex: 1.08 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.qz-side { flex: .92 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.qz-id { padding: 30px 32px; }
.qz-id-top { display: flex; align-items: center; gap: 16px; }
.qz-id-seal {
  width: 60px; height: 60px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fffdf9;
  border-radius: var(--radius);
  font-family: var(--serif); font-size: 28px;
  box-shadow: 0 8px 20px -10px rgba(168,52,43,.8);
}
.qz-id-label { font-size: 12px; letter-spacing: .18em; color: var(--ink-3); margin-bottom: 4px; }
.qz-id-name { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
.qz-id-en { font-size: 11.5px; letter-spacing: .24em; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; }
.qz-id-line {
  margin: 22px 0 14px; padding: 16px 18px;
  background: var(--red-wash);
  border-left: 2px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif); font-size: 16px; line-height: 1.8; color: var(--ink);
}
.qz-id-desc { margin: 0; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.qz-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.qz-traits span {
  font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; background: var(--paper-hi);
}

.qz-advice, .qz-siblings, .qz-dims, .qz-why { padding: 24px 26px; }
.qz-sib-head { margin-bottom: 12px; }
.qz-sib-list { display: flex; flex-direction: column; }
.qz-sib {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-3);
}
.qz-sib:first-child { border-top: 0; }
.qz-sib b { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }

.qz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.qz-bar-row { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 12px; padding: 7px 0; }
.qz-bar-name { font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; }
.qz-bar-track { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.qz-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 3px; }
.qz-bar-val { font-size: 12px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

.qz-why-text { margin: 10px 0 12px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.qz-why-note { margin: 0; font-size: 11.5px; line-height: 1.8; color: var(--ink-4); }

.qz-miss { max-width: 560px; margin: 60px auto; padding: 34px; text-align: center; }

/* 页脚 */
.site-foot { margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--line-soft); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--ink-4); }

@media (max-width: 860px) {
  .qz-result-grid { flex-direction: column; }
  .qz-main, .qz-side { flex: 1 1 auto; width: 100%; }
  .qz-card { padding: 26px 22px 22px; }
  .qz-opt { padding: 13px 14px; font-size: 14.5px; }
  .qz-bar-row { grid-template-columns: 62px 1fr 30px; gap: 9px; }

}
@media (max-width: 560px) {
  .qz-id { padding: 24px 22px; }
  .qz-advice, .qz-siblings, .qz-dims, .qz-why { padding: 20px 18px; }
  .qz-id-seal { width: 50px; height: 50px; font-size: 24px; }
}


/* 联系与售后 */
.hub-contact { padding: 26px 30px; margin-bottom: 22px; }
.hub-contact-lead { margin: 10px 0 12px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.hub-contact-line { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
#hub-email { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(168,52,43,.35); }
#hub-email:hover { border-bottom-color: var(--red); }
.hub-contact-sep { color: var(--ink-4); margin: 0 8px; }
.hub-contact-small { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-3); }
@media (max-width: 560px) { .hub-contact { padding: 20px 18px; } }


/* ==================== 买断制：价格、购买、解锁墙（2026-11-01） ==================== */

/* 首页价格那一行 */
.hub-price-num {
  font-family: var(--serif);
  font-size: 1.12em;
  color: var(--red);
  letter-spacing: .02em;
}

/* 首页购买按钮那一行 */
.hub-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 0;
}
.hub-buy .btn { padding: 13px 26px; }
.hub-buy-note { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }

/* 结果页的解锁墙 */
.paywall {
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid rgba(168,52,43,.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-image: linear-gradient(180deg, rgba(168,52,43,.045), rgba(168,52,43,0) 60%);
}
.pw-eyebrow {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--red);
  margin-bottom: 10px;
}
.pw-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--ink);
}
.pw-lead { margin: 0 0 20px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.pw-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pw-note { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: var(--ink-3); }

/* 被锁住的三块：模糊 + 不可选，像一个盖住的抽屉 */
#qz-result .panel.is-locked {
  filter: blur(7px) saturate(.7);
  opacity: .42;
  pointer-events: none;
  user-select: none;
}
/* 手机上三块模糊内容会占掉一整屏，直接不显示；解锁后 class 撤掉就回来了 */
@media (max-width: 560px) {
  #qz-result .panel.is-locked { display: none; }
}

/* 弹层里的购买入口 */
.license-buy {
  display: block;
  margin: 10px 0 14px;
  font-size: 12.5px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,52,43,.3);
  align-self: flex-start;
}
.license-buy:hover { border-bottom-color: var(--red); }

@media (max-width: 560px) {
  .paywall { padding: 22px 20px; }
  .hub-buy .btn { width: 100%; text-align: center; }
}

/* 九型 / 五语言这类多轴测试：名字更长，首列放宽，不折行
   注意：必须写在所有 @media 之外，写进窄屏块里桌面端不生效 */
.qz-bars.is-many .qz-bar-row { grid-template-columns: 96px 1fr 34px; }
.qz-bars.is-many .qz-bar-name { white-space: nowrap; font-size: 12px; }
/* 解锁墙现在有三个按钮：只解一个 / 全部解锁 / 我有激活码 */
.pw-actions { flex-wrap: wrap; }
.pw-actions .btn { flex: 0 1 auto; }
/* 弹层里两个商品入口 */
.license-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.license-sep { color: var(--ink-3); font-size: 12px; }
