/* =========================================================================
 * style.css —— 五执念觉察测评
 * 设计基调：竹青 · 治愈简约 · 充足留白 · 移动端优先的自适应
 * 配色只在一处定义（:root），改主题请从变量改起
 * ========================================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --cream:       #FAF7F4;
  --paper:       #FFFFFF;
  --ink:         #394A33;
  --ink-2:       #566850;
  --muted:       #8A9D82;
  --muted-2:     #A0B49A;

  --plum:        #5B7B55;
  --plum-2:      #83A476;
  --lilac:       #E5F0E1;
  --lilac-soft:  #F1F9EE;
  --lilac-line:  rgba(91, 123, 85, .14);
  --lilac-line-2:rgba(91, 123, 85, .08);

  --tan:   #8CB3A9;
  --chen:  #C09280;
  --chi:   #8E9AA8;
  --man:   #A0B998;
  --yi:    #B09A72;

  --grad: linear-gradient(118deg, #709464 0%, #98C38A 100%);
  --shadow-s: 0 6px 18px rgba(91, 123, 85, .07);
  --shadow-m: 0 18px 44px rgba(91, 123, 85, .09);
  --shadow-l: 0 26px 70px rgba(91, 123, 85, .13);

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 30px;

  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .01em;
  background-color: var(--cream);
  background-image:
    radial-gradient(58rem 40rem at 8% -6%, #E7F4E8 0%, rgba(231, 244, 232, 0) 58%),
    radial-gradient(48rem 38rem at 102% 8%, #F1F8E9 0%, rgba(241, 248, 233, 0) 55%),
    radial-gradient(46rem 36rem at 50% 108%, #F6EFE9 0%, rgba(246, 239, 233, 0) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 极淡的纸纹，增加质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: .015em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
b { font-weight: 600; color: var(--ink); }

.is-hidden { display: none !important; }

/* ---------- 3. 背景装饰 ---------- */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  color: #BEDBB4;
}
.bg-art .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.glow-1 {
  width: 34rem; height: 34rem;
  top: -12rem; left: -10rem;
  background: radial-gradient(circle, rgba(189, 223, 183, .55), rgba(189, 223, 183, 0) 68%);
}
.glow-2 {
  width: 30rem; height: 30rem;
  right: -9rem; top: 26rem;
  background: radial-gradient(circle, rgba(226, 205, 197, .42), rgba(226, 205, 197, 0) 70%);
}
.bg-arc {
  position: absolute;
  width: 44rem; height: 44rem;
  top: -18rem; right: -16rem;
  opacity: .5;
}

/* ---------- 4. 布局 ---------- */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.view { animation: rise .5s cubic-bezier(.22, .8, .3, 1) both; }

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

/* ---------- 5. 品牌 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--plum);
}
.brand-mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #709466;
  background: linear-gradient(140deg, #E8F6E8, #EAF7E1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), var(--shadow-s);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .12em;
}
.brand-text em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- 6. 封面 ---------- */
.hero {
  position: relative;
  padding: 44px 38px 40px;
  border-radius: var(--r-l);
  border: 1px solid rgba(255, 255, 255, .85);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(225, 244, 220, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(165deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .74));
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  top: -30px; right: -34px;
  width: 220px; height: 220px;
  color: #ABCDA1;
  opacity: .5;
  pointer-events: none;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--plum-2);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.34;
  color: #33442D;
  margin-bottom: 20px;
}
.lead {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 26px;
}
.lead b { font-weight: 500; color: var(--plum); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.chips li {
  font-size: 12px;
  letter-spacing: .04em;
  color: #728B69;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--lilac-line);
}

/* 称呼 */
.name-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.name-field label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.name-field label span { font-size: 11.5px; color: var(--muted-2); }
.name-field input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--lilac-line);
  border-radius: 999px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.name-field input::placeholder { color: #B5C8B0; }
.name-field input:focus {
  border-color: rgba(131, 164, 118, .55);
  box-shadow: 0 0 0 4px rgba(152, 195, 138, .12);
}

/* 称呼为必填项：错误态用暖色细边 + 下方一句柔提示，不使用弹窗 */
.name-field input.is-error {
  border-color: rgba(192, 128, 128, .6);
  box-shadow: 0 0 0 4px rgba(192, 128, 128, .1);
}
.name-error {
  display: none;
  margin: -13px 0 16px;
  padding-left: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: #A8676A;
}
.name-error.is-show { display: block; }
@keyframes nameShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}
.name-field input.is-shake { animation: nameShake .32s ease; }
@media (prefers-reduced-motion: reduce) {
  .name-field input.is-shake { animation: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, opacity .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 26px rgba(112, 148, 100, .26);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(112, 148, 100, .3);
}
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(.995); }

.btn-ghost {
  color: #607F59;
  background: rgba(255, 255, 255, .78);
  border-color: var(--lilac-line);
}
.btn-ghost:hover:not(:disabled) {
  border-color: rgba(131, 164, 118, .4);
  background: #fff;
}

.btn:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn .arrow {
  transition: transform .25s ease;
  font-size: 15px;
  opacity: .9;
}
.btn:hover:not(:disabled) .arrow { transform: translateX(3px); }

/* ---------- 8. 封面下方说明 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.mini-card {
  padding: 22px 20px;
  border-radius: var(--r-m);
  border: 1px solid var(--lilac-line-2);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow-s);
}
.mini-no {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--plum-2);
  opacity: .75;
}
.mini-card h3 {
  font-size: 16px;
  margin: 8px 0 8px;
  color: #3B4D34;
}
.mini-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.fineprint {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.disclaimer-inline {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .04em;
}

/* ---------- 9. 答题 ---------- */
.quiz-head {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -22px 26px;
  padding: 16px 22px 14px;
  background: rgba(250, 247, 244, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91, 123, 85, .06);
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .06em;
}
.pct {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--plum);
}
.progress {
  height: 4px;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: rgba(91, 123, 85, .1);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #A5CA9B, #7AA26F);
  transition: width .45s cubic-bezier(.22, .8, .3, 1);
}
.part-label {
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: .1em;
  color: var(--plum-2);
}

.qlist { display: grid; gap: 16px; }

.q-card {
  padding: 26px 26px 24px;
  border-radius: var(--r-m);
  border: 1px solid var(--lilac-line-2);
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-s);
  transition: border-color .3s, box-shadow .3s;
  scroll-margin-top: 130px;
}
.q-card.is-answered { border-color: rgba(152, 195, 138, .26); }
.q-card.is-missing {
  border-color: rgba(192, 146, 128, .55);
  box-shadow: 0 0 0 4px rgba(192, 146, 128, .08);
}

.q-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--plum-2);
  margin-bottom: 10px;
}
.q-num::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lilac-line);
}
.q-text {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: #364730;
  margin-bottom: 16px;
  letter-spacing: .01em;
}

.opts { display: grid; gap: 9px; }

.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-s);
  border: 1px solid var(--lilac-line-2);
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: rgba(152, 195, 138, .4); background: #fff; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-key {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-family: var(--font-serif);
  letter-spacing: 0;
  color: #83A476;
  background: var(--lilac-soft);
  transition: all .2s;
}
.opt-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.opt.is-checked {
  border-color: rgba(131, 164, 118, .62);
  background: linear-gradient(120deg, #F2FBF1, #F7FBF8);
  box-shadow: 0 6px 18px rgba(112, 148, 100, .1);
}
.opt.is-checked .opt-key {
  color: #fff;
  background: var(--grad);
}
.opt.is-checked .opt-text { color: #364730; }

.quiz-tip {
  margin: 18px 2px 0;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: .04em;
  min-height: 1.4em;
}
.quiz-tip.is-warn { color: #B0796A; }

.quiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--lilac-line-2);
}
.quiz-nav .btn { flex: 1; }

/* ---------- 10. 报告 ---------- */
.report-head {
  text-align: center;
  padding: 30px 10px 8px;
}
.report-head h1 {
  font-size: clamp(26px, 5.4vw, 38px);
  line-height: 1.4;
  color: #32432C;
  margin-bottom: 10px;
}
.report-sub {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
}
.report-lead {
  margin: 18px auto 0;
  max-width: 32em;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.9;
}
.report-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.panel {
  margin-top: 20px;
  padding: 30px 30px 32px;
  border-radius: var(--r-l);
  border: 1px solid var(--lilac-line-2);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-m);
}
.panel-quiet {
  background: linear-gradient(160deg, rgba(240, 249, 237, .86), rgba(252, 249, 246, .8));
  border-color: rgba(255, 255, 255, .7);
}
.panel-head { margin-bottom: 22px; }
.panel-head h2 {
  font-size: 21px;
  color: #364730;
  margin-bottom: 8px;
}
.panel-sub {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 36em;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}
#radar { width: 100%; max-width: 460px; height: auto; }

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted-2);
  margin: 4px 0 26px;
}
.legend span { position: relative; padding-left: 12px; }
.legend span::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #BBD9B3;
}

/* 分数条 */
.score-list { display: grid; gap: 16px; }
.score-row {
  display: grid;
  grid-template-columns: 92px 1fr 84px;
  align-items: center;
  gap: 14px;
}
.score-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #3E5238;
}
.score-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(91, 123, 85, .08);
  overflow: hidden;
}
.score-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .7s cubic-bezier(.22, .8, .3, 1);
}
.score-val {
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.score-val b {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-right: 2px;
}

/* 维度卡 */
.details { display: grid; gap: 18px; }
.dim-card {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: var(--r-m);
  border: 1px solid var(--lilac-line-2);
  background: rgba(255, 255, 255, .86);
  overflow: hidden;
}
.dim-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c, var(--plum-2));
  opacity: .55;
}
.dim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dim-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dim-title h3 {
  font-size: 19px;
  color: #364730;
}
.dim-theme {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.dim-score {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.dim-score b {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.dim-badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #fff;
  background: var(--c, var(--plum-2));
  padding: 3px 10px;
  border-radius: 999px;
  opacity: .92;
}
.dim-level {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c, var(--plum-2));
  margin: 2px 0 14px;
}
.dim-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(91, 123, 85, .08);
  overflow: hidden;
  margin-bottom: 16px;
}
.dim-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .8s cubic-bezier(.22, .8, .3, 1);
}
.dim-quote {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #45593F;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(240, 249, 237, .7);
  margin-bottom: 14px;
  line-height: 1.8;
}
.dim-text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  white-space: pre-line;
  margin-bottom: 16px;
}
.dim-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(250, 247, 244, .8);
  border: 1px solid var(--lilac-line-2);
}
.dim-meta div { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.dim-meta dt {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.dim-meta dd { margin: 0; color: var(--ink-2); }

.dim-loop {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 10px;
}
.dim-loop b { color: var(--c, var(--plum-2)); font-weight: 500; }
.dim-ask {
  font-size: 13.5px;
  line-height: 1.85;
  color: #45593F;
  padding-left: 14px;
  border-left: 2px solid rgba(152, 195, 138, .4);
  margin-bottom: 14px;
}
.dim-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--lilac-line);
}
.dim-classic {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: #586A52;
}
.dim-classic span { color: var(--muted-2); font-size: 11.5px; margin-left: 6px; }
.dim-practice {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--c, var(--plum-2));
}

/* 观察点 */
.obs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.obs-chip {
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--lilac-line);
  color: #586A52;
  position: relative;
  padding-left: 24px;
}
.obs-chip::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--c, #A5CA9B);
}
.obs-chip i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-left: 6px;
  letter-spacing: .04em;
}

/* 组合与寄语 */
.prose p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
}
.prose p + p { margin-top: 14px; }
.prose .combo-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #364730;
  margin-bottom: 10px;
}
.prose .combo-practice {
  margin-top: 14px;
  font-size: 13.5px;
  color: #586A52;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(240, 249, 237, .64);
  line-height: 1.9;
}

.closing { text-align: center; }
.closing .closing-mark {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #ABCDA1;
  margin-bottom: 12px;
}
.closing p {
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 30em;
  margin: 0 auto;
}
.closing p + p { margin-top: 10px; }
.closing .closing-quote {
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: #45593F;
  margin: 18px auto;
}
.closing .closing-quote span {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .1em;
  margin-top: 6px;
  font-family: var(--font-sans);
}

/* 二维码 */
.qr-panel {
  margin-top: 20px;
  padding: 28px 30px;
  border-radius: var(--r-l);
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(140deg, rgba(234, 246, 230, .92), rgba(252, 248, 245, .9));
  box-shadow: var(--shadow-m);
  display: flex;
  align-items: center;
  gap: 24px;
}
.qr-text { flex: 1 1 auto; }
.qr-panel h2 {
  font-size: 20px;
  color: #364730;
  margin-bottom: 8px;
}
.qr-panel .eyebrow { margin-bottom: 8px; font-size: 10.5px; }
.qr-text p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.qr-name {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--plum);
  letter-spacing: .06em;
}
.qr-figure {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(91, 123, 85, .12);
}
.qr-figure img {
  width: 132px; height: 132px;
  border-radius: 8px;
}
.qr-figure figcaption {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: .06em;
  margin-top: 8px;
}

/* 二维码旁的说明卡：语气温和，但信息是实的（目的 · 方式 · 边界） */
.qr-note {
  margin-top: 14px;
  padding: 26px 30px 22px;
  border-radius: var(--r-l);
  border: 1px solid rgba(149, 182, 138, .2);
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow-s);
}
.qr-note-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  letter-spacing: .04em;
  color: var(--plum);
  margin-bottom: 8px;
}
.qr-note-lead {
  font-size: 12.8px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 16px;
}
.qr-note-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.qr-note-list li {
  position: relative;
  padding-left: 17px;
}
.qr-note-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(152, 195, 138, .75);
}
.qr-note-list b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #3E5238;
  margin-bottom: 2px;
}
.qr-note-list span {
  display: block;
  font-size: 12.2px;
  line-height: 1.9;
  color: var(--muted);
}
.qr-note-foot {
  padding-top: 13px;
  border-top: 1px dashed var(--lilac-line);
  font-size: 11.6px;
  line-height: 1.95;
  color: var(--muted-2);
}

.report-foot {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ---------- 11. 页脚 ---------- */
.site-foot {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--lilac-line-2);
  text-align: center;
}
.foot-brand {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--plum);
  margin-bottom: 8px;
}
.foot-line {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.foot-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted-2);
}

/* ---------- 12. 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(57, 74, 51, .92);
  box-shadow: 0 12px 30px rgba(57, 74, 51, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 90;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
  .shell { padding: 24px 20px 56px; }
  .quiz-head { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .shell { padding: 20px 16px 48px; }
  .hero { padding: 32px 22px 28px; border-radius: 26px; }
  .hero-mark { width: 168px; height: 168px; top: -26px; right: -30px; opacity: .4; }
  .hero h1 { font-size: 29px; }
  .lead { font-size: 14.5px; }
  .chips li { font-size: 11.5px; padding: 5px 11px; }
  .name-field { flex-direction: column; align-items: stretch; gap: 8px; }
  /* 竖排后 flex-basis 会变成高度，必须显式取消，否则输入框会被拉成 160px 高 */
  .name-field input { width: 100%; flex: none; height: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .quiz-head { margin-left: -16px; margin-right: -16px; padding: 13px 16px 12px; }
  .q-card { padding: 20px 17px 20px; border-radius: 20px; }
  .q-text { font-size: 15.5px; }
  .opt { padding: 12px 13px; gap: 10px; }
  .opt-text { font-size: 13.5px; }
  .quiz-nav { flex-direction: row; }
  .quiz-nav .btn { padding: 13px 12px; font-size: 14px; }

  .panel { padding: 22px 18px 24px; border-radius: 24px; }
  .panel-head h2 { font-size: 19px; }
  .score-row { grid-template-columns: 74px 1fr 72px; gap: 10px; }
  .score-name { font-size: 14px; }

  .dim-card { padding: 20px 17px 18px; }
  .dim-title h3 { font-size: 17px; }
  .dim-score b { font-size: 21px; }
  .dim-meta { grid-template-columns: 1fr; }
  .dim-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

  .qr-panel { flex-direction: column; text-align: left; padding: 24px 20px; gap: 18px; }
  .qr-figure { align-self: center; }
  .qr-figure img { width: 118px; height: 118px; }
  .qr-note { padding: 22px 18px 20px; }
  .qr-note-list li { padding-left: 15px; }
  .qr-note-list li::before { top: 7px; }
  .name-error { margin-top: -10px; }
  .report-actions { flex-direction: column; }
  .report-actions .btn { width: 100%; }
  .report-lead { text-align: left; font-size: 14.5px; }
  .closing p { text-align: left; }
  .closing .closing-quote { text-align: center; }
}

/* ---------- 14. 打印 ---------- */
@media print {
  body { background: #fff !important; }
  body::before, .bg-art, .quiz-nav, .quiz-tip, .report-actions,
  .report-foot, #toast, .site-foot .foot-note { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .panel, .hero, .qr-panel {
    box-shadow: none !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .view-quiz, #view-home { display: none !important; }
  .view-report { display: block !important; }
  .dim-card, .qr-panel, .panel { border: 1px solid #DFEADE; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- 15. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
