/* ============ Base ============ */
:root {
  --ink: #211c27;
  --ink-soft: #4e4653;
  --muted: #857b87;
  --muted-light: #a59ba6;
  --rose: #dd5b79;
  --rose-deep: #c84364;
  --rose-soft: #fff1f4;
  --violet: #8d70e8;
  --violet-soft: #f3efff;
  --mint: #3f9d83;
  --mint-soft: #eaf8f2;
  --line: rgba(54, 38, 58, 0.09);
  --card: rgba(255, 255, 255, 0.82);
  --shadow-soft: 0 18px 50px rgba(86, 50, 72, 0.08);
  --shadow-card: 0 10px 30px rgba(79, 44, 64, 0.07);
  --app-width: 540px;
  --radius-xl: 30px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 18% 10%, rgba(250, 225, 226, 0.5), transparent 29%),
    radial-gradient(circle at 85% 18%, rgba(225, 226, 238, 0.45), transparent 32%),
    radial-gradient(circle at 50% 94%, rgba(224, 237, 232, 0.45), transparent 30%),
    #e9e7e4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
[role="button"] {
  touch-action: manipulation;
}

button:focus-visible {
  outline: 3px solid rgba(220, 91, 121, 0.32);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: var(--rose);
}

/* ============ Ambient frame ============ */
.page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.58;
}

.orb-rose {
  top: 8%;
  left: 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(240, 190, 198, 0.35), transparent 68%);
}

.orb-violet {
  top: 44%;
  right: 4%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(186, 180, 210, 0.3), transparent 68%);
}

.orb-mint {
  bottom: -60px;
  left: 35%;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(176, 212, 200, 0.28), transparent 68%);
}

/* ============ App shell ============ */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 6%, rgba(248, 220, 224, 0.38), transparent 30%),
    radial-gradient(circle at 92% 30%, rgba(220, 224, 242, 0.34), transparent 32%),
    radial-gradient(circle at 12% 92%, rgba(220, 238, 232, 0.34), transparent 30%),
    linear-gradient(175deg, #fbfaf9 0%, #f6f5f3 46%, #f3f4f6 100%);
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  animation: screenIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen.is-active {
  display: flex;
}

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

/* ============ Cover ============ */
.cover {
  flex-direction: column;
  padding: max(22px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -190px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 203, 0.22), rgba(255, 185, 203, 0) 70%);
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 90px;
  left: -220px;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 158, 255, 0.16), rgba(179, 158, 255, 0) 70%);
  pointer-events: none;
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #f1849e 0%, #d84c6c 52%, #a775ed 100%);
  box-shadow: 0 6px 14px rgba(208, 73, 103, 0.24);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  color: #554c5b;
}

.brand-en {
  padding-left: 8px;
  border-left: 1px solid rgba(77, 60, 80, 0.15);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a397a5;
}

.brand--small .brand-name {
  font-size: 14px;
}

.brand--small .brand-mark {
  width: 29px;
  height: 29px;
}

.cover-pager {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  color: #8d818f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(83, 61, 86, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.cover-hero {
  flex: 0 0 auto;
  padding-top: clamp(32px, 7vh, 62px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 15px;
  color: #bb4564;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: 1px solid rgba(218, 86, 116, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 5px 18px rgba(214, 90, 118, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(218, 86, 116, 0.12);
}

.eyebrow--solid {
  color: #a63d5a;
  background: rgba(255, 244, 247, 0.9);
}

.eyebrow--solid svg {
  width: 15px;
  height: 15px;
}

.cover-kicker {
  margin-top: 19px;
  color: #857b87;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.cover-title {
  margin-top: 9px;
  color: #1e1a22;
  font-size: clamp(40px, 10.8vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.cover-title > span {
  display: block;
}

.gradient-word {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(112deg, #d94b70 2%, #a15ecb 48%, #7a78f0 98%);
  -webkit-background-clip: text;
  background-clip: text;
}

.gradient-word::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -4px;
  left: 2%;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(227, 95, 128, 0.12), rgba(141, 112, 232, 0.25), rgba(227, 95, 128, 0));
  transform: rotate(-1.2deg);
}

.cover-sub {
  margin-top: 17px;
  color: #6f6571;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.02em;
}

/* Feature card */
.feature-card {
  position: relative;
  flex: 0 0 auto;
  margin-top: clamp(26px, 4.8vh, 38px);
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 20px 50px rgba(92, 56, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 15px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid rgba(63, 45, 67, 0.075);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-icon--rose {
  color: #d25173;
  background: linear-gradient(145deg, #fff0f3, #ffe3ea);
}

.feature-icon--violet {
  color: #8069d8;
  background: linear-gradient(145deg, #f5f1ff, #eae4ff);
}

.feature-icon--mint {
  color: #3f9c83;
  background: linear-gradient(145deg, #effaf6, #ddf3eb);
}

.feature-copy {
  min-width: 0;
}

.feature-copy h2 {
  color: #2a242e;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.feature-copy p {
  margin-top: 4px;
  overflow: hidden;
  color: #918793;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Trust pills */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 19px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 9px;
  white-space: nowrap;
}

.trust-pill svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.trust-pill--rose {
  color: #a8445c;
  border-color: rgba(201, 77, 108, 0.08);
  background: #fdecf0;
}

.trust-pill--violet {
  color: #6653ae;
  border-color: rgba(111, 87, 189, 0.08);
  background: #f2efff;
}

.trust-pill--mint {
  color: #2d7e67;
  border-color: rgba(45, 126, 103, 0.08);
  background: #eaf8f2;
}

/* CTA */
.cover-cta {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 24px;
}

.primary-btn {
  display: inline-flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.035em;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 45%),
    linear-gradient(118deg, #e26481 0%, #d74e6e 46%, #bf3f62 100%);
  box-shadow:
    0 14px 28px rgba(196, 63, 94, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.primary-btn:not(:disabled):hover {
  box-shadow:
    0 17px 32px rgba(196, 63, 94, 0.29),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.primary-btn:not(:disabled):active {
  transform: translateY(1px) scale(0.995);
}

.primary-btn:not(:disabled):hover svg {
  transform: translateX(3px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  box-shadow: none;
}

.micro-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
  color: #9a8f9c;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.micro-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c7bcc9;
}

/* ============ Quiz ============ */
.quiz {
  flex-direction: column;
  padding-top: max(18px, env(safe-area-inset-top));
  overflow: visible;
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
}

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #625867;
  border: 1px solid rgba(68, 47, 72, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  border-color: rgba(68, 47, 72, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.icon-btn:active {
  transform: scale(0.96);
}

.step-meta {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: #7f7483;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

#chapter-label {
  overflow: hidden;
  color: #5d5262;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#question-count {
  color: #a99eaa;
  font-variant-numeric: tabular-nums;
}

#question-count::before {
  content: "·";
  margin-right: 9px;
  color: #d0c5d1;
}

.text-btn {
  flex: 0 0 auto;
  padding: 8px 2px 8px 8px;
  color: #9d929f;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  background: none;
  cursor: pointer;
}

.text-btn:hover {
  color: #655a6a;
}

.progress-wrap {
  flex: 0 0 auto;
  padding: 15px 24px 0;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 58, 80, 0.075);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e87690, #d65473 52%, #9d7bea);
  box-shadow: 0 0 12px rgba(214, 84, 115, 0.24);
  transition: width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chapter-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.chapter-dot {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: rgba(80, 57, 82, 0.09);
  transition: width 0.3s ease, background 0.3s ease;
}

.chapter-dot.is-past {
  background: rgba(213, 83, 114, 0.35);
}

.chapter-dot.is-current {
  width: 30px;
  background: linear-gradient(90deg, #dc6682, #a181e9);
}

.question-stage {
  display: flex;
  flex: 1;
  align-items: flex-start;
  padding: 31px 24px 12px;
}

.question-body {
  width: 100%;
  animation: questionIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.question-heading {
  position: relative;
}

.question-index {
  display: inline-block;
  margin-bottom: 9px;
  color: #cfbfcd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.question-index::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: #ded2dc;
}

.question-title {
  color: #211c26;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 850;
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.question-title:focus {
  outline: none;
}

.question-hint {
  max-width: 420px;
  margin-top: 9px;
  color: #948995;
  font-size: 12.5px;
  line-height: 1.62;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  text-align: left;
  border: 1px solid rgba(57, 39, 61, 0.085);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 4px 14px rgba(76, 44, 62, 0.025);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.option:hover {
  border-color: rgba(211, 86, 116, 0.28);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.option[aria-pressed="true"] {
  border-color: rgba(213, 83, 114, 0.52);
  background:
    linear-gradient(100deg, rgba(255, 239, 243, 0.96), rgba(255, 251, 252, 0.93) 72%);
  box-shadow:
    0 8px 20px rgba(201, 74, 103, 0.09),
    inset 0 0 0 1px rgba(228, 118, 143, 0.14);
  transform: none;
}

.option-marker {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid #d9ced9;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.option-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.option--multi .option-marker {
  border-radius: 7px;
}

.option--multi .option-marker::after {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: none;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(45deg) scale(0.4);
}

.option[aria-pressed="true"] .option-marker {
  border-color: transparent;
  background: linear-gradient(135deg, #e76c87, #b450c0 130%);
  box-shadow: 0 4px 9px rgba(197, 77, 111, 0.24);
}

.option[aria-pressed="true"] .option-marker::after {
  opacity: 1;
  transform: scale(1);
}

.option--multi[aria-pressed="true"] .option-marker::after {
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.option-label {
  flex: 1;
  color: #3f3744;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.42;
}

.option[aria-pressed="true"] .option-label {
  color: #792f45;
  font-weight: 650;
}

.selection-note {
  margin-bottom: 9px;
  color: #a096a4;
  font-size: 11.5px;
  text-align: center;
  transition: color 0.2s ease;
}

.selection-note.is-ready {
  color: #b7516a;
}

.quiz-footer {
  position: sticky;
  z-index: 5;
  bottom: 0;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 18px 24px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246, 245, 243, 0), rgba(246, 245, 243, 0.88) 24%, rgba(247, 247, 247, 0.97) 66%);
}

/* ============ Result ============ */
.result {
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-stage {
  width: 100%;
  padding-top: 24px;
}

.result-intro {
  text-align: center;
}

.result-heading {
  margin-top: 13px;
  color: #201a25;
  font-size: clamp(27px, 7vw, 33px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.result-subheading {
  margin-top: 7px;
  color: #8c818f;
  font-size: 12.5px;
  line-height: 1.55;
}

/* Score card */
.score-card {
  position: relative;
  margin-top: 21px;
  overflow: hidden;
  padding: 19px 20px 17px;
  color: #fff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 6%, rgba(168, 124, 255, 0.35), transparent 38%),
    radial-gradient(circle at 3% 96%, rgba(255, 106, 142, 0.26), transparent 46%),
    linear-gradient(148deg, #251d2f 0%, #1a1522 68%, #22182a 100%);
  box-shadow:
    0 26px 52px rgba(50, 27, 59, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.score-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.score-glow--one {
  top: -100px;
  right: -35px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 22px rgba(255, 255, 255, 0.018),
    0 0 0 52px rgba(255, 255, 255, 0.012);
}

.score-glow--two {
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(224, 101, 137, 0.16), transparent 66%);
}

.score-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.local-badge svg {
  width: 12px;
  height: 12px;
}

.score-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 10px;
}

.score-ring-wrap {
  position: relative;
  width: clamp(126px, 36vw, 151px);
  height: clamp(126px, 36vw, 151px);
  flex: 0 0 clamp(126px, 36vw, 151px);
}

.score-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 8;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.09);
}

.ring-progress {
  stroke: url(#ringGradient);
  stroke-linecap: round;
  stroke-dasharray: 477.52;
  stroke-dashoffset: 477.52;
  filter: drop-shadow(0 0 7px rgba(239, 119, 149, 0.26));
  transition: stroke-dashoffset 1.45s cubic-bezier(0.16, 0.84, 0.25, 1);
}

.score-number-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  color: #fff;
  font-size: clamp(37px, 11.4vw, 53px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.score-unit {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.score-summary {
  min-width: 0;
  flex: 1;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #ffd6df;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 160, 181, 0.2);
  border-radius: 7px;
  background: rgba(237, 103, 136, 0.15);
}

.score-summary h3 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.score-summary p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10.5px;
  line-height: 1.65;
}

.score-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.score-tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9.5px;
  font-weight: 550;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.score-footnote {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.33);
  font-size: 9.5px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

/* Market summary */
.result-summary-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 13px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
}

.summary-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #c65772;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff1f4, #ffe3ea);
}

.summary-icon svg {
  width: 19px;
  height: 19px;
}

.summary-label {
  display: block;
  margin-bottom: 4px;
  color: #ac9eac;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.result-summary-card p {
  color: #5c515f;
  font-size: 12.5px;
  line-height: 1.7;
}

/* Insights */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.insight-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 19px;
  box-shadow: 0 7px 22px rgba(83, 48, 66, 0.035);
}

.insight-card--best {
  background: linear-gradient(145deg, #fff7f9 0%, #fff1f4 100%);
}

.insight-card--weak {
  background: linear-gradient(145deg, #fffbf3 0%, #fff5e7 100%);
}

.insight-head {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b59b9f;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.insight-card--weak .insight-head {
  color: #b49c7a;
}

.insight-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #cd6179;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.insight-card--weak .insight-icon {
  color: #c28a42;
}

.insight-icon svg {
  width: 14px;
  height: 14px;
}

.insight-card h3 {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
  color: #342a39;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.insight-card h3 strong {
  color: #ca4e6b;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.insight-card--weak h3 strong {
  color: #b57b35;
}

.insight-card p {
  margin-top: 5px;
  color: #8f7f8b;
  font-size: 10.5px;
  line-height: 1.6;
}

/* Panels */
.panel {
  margin-top: 15px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: #b5a8b6;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.panel-head h3,
.section-head h3 {
  color: #2a232f;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.panel-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  color: #9c8fa0;
  font-size: 9px;
  font-weight: 650;
  border: 1px solid rgba(76, 54, 77, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

/* Dimensions */
.dimension-list {
  margin-top: 15px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 29px;
  gap: 9px;
  align-items: center;
  min-height: 32px;
}

.dimension-row + .dimension-row {
  margin-top: 3px;
}

.dimension-label {
  color: #716575;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}

.dimension-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1eaf0;
}

.dimension-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f19aad 0%, #df6b88 55%, #a580e9 100%);
  transition: width 0.9s cubic-bezier(0.18, 0.82, 0.22, 1);
}

.dimension-row.is-best .dimension-label {
  color: #b8415f;
  font-weight: 700;
}

.dimension-row.is-best .dimension-fill {
  background: linear-gradient(90deg, #f38ba3 0%, #df4f72 55%, #b24ac1 100%);
}

.dimension-row.is-weak .dimension-fill {
  background: linear-gradient(90deg, #f6c17d, #e9a14f 100%);
}

.dimension-score {
  color: #a295a5;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dimension-row.is-best .dimension-score {
  color: #c34b68;
}

.dimension-row.is-weak .dimension-score {
  color: #b47b35;
}

/* Portraits */
.portrait-section {
  margin-top: 23px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px;
}

.section-note {
  padding-bottom: 2px;
  color: #a598a5;
  font-size: 9.5px;
  white-space: nowrap;
}

.portrait-card {
  margin-top: 11px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 23px;
  box-shadow: 0 9px 26px rgba(79, 46, 65, 0.055);
}

.portrait-card--ideal {
  background:
    radial-gradient(circle at 97% 4%, rgba(255, 202, 215, 0.48), transparent 35%),
    linear-gradient(145deg, #fff6f8 0%, #fff0f4 54%, #fdf8ff 100%);
}

.portrait-card--bottom {
  background:
    radial-gradient(circle at 97% 4%, rgba(167, 226, 208, 0.42), transparent 35%),
    linear-gradient(145deg, #f3fbf7 0%, #eaf7f2 54%, #f7fbfa 100%);
}

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

.portrait-icon {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  place-items: center;
  color: #c94d6a;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 14px rgba(170, 86, 112, 0.08);
}

.portrait-card--bottom .portrait-icon {
  color: #358a72;
  box-shadow: 0 5px 14px rgba(54, 139, 115, 0.08);
}

.portrait-icon svg {
  width: 23px;
  height: 23px;
}

.portrait-label {
  display: block;
  color: #b18f99;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.portrait-card--bottom .portrait-label {
  color: #78a697;
}

.portrait-top h4 {
  margin-top: 3px;
  color: #392c3c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

/* Disclaimer + result actions */
.disclaimer {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 0 5px;
  color: #a299a4;
}

.disclaimer svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.disclaimer p {
  font-size: 9.5px;
  line-height: 1.65;
}

.result-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.secondary-btn {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  color: #695d6d;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid rgba(68, 46, 71, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.secondary-btn svg {
  width: 18px;
  height: 18px;
}

.secondary-btn:hover {
  border-color: rgba(68, 46, 71, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

.secondary-btn:active {
  transform: scale(0.995);
}

.result-made {
  margin-top: 15px;
  color: #b0a6b0;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ============ Modal / toast ============ */
.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(36, 24, 40, 0.32);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn 0.2s ease both;
}

.modal-card {
  width: 100%;
  max-width: 340px;
  padding: 25px 22px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  background: #fffcfe;
  box-shadow: 0 30px 80px rgba(40, 22, 47, 0.24);
  animation: modalIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-icon {
  display: grid;
  width: 47px;
  height: 47px;
  margin: 0 auto;
  place-items: center;
  color: #c2516d;
  border-radius: 15px;
  background: #fff0f3;
}

.modal-icon svg {
  width: 25px;
  height: 25px;
}

.modal-card h2 {
  margin-top: 13px;
  color: #2e2433;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-card p {
  margin-top: 6px;
  color: #928695;
  font-size: 12px;
  line-height: 1.65;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 19px;
}

.modal-actions button {
  min-height: 46px;
  font-size: 12.5px;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: #fff;
  font-weight: 650;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(118deg, #dd607c, #c74667);
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  text-align: center;
  border-radius: 12px;
  background: rgba(38, 28, 43, 0.9);
  box-shadow: 0 12px 30px rgba(40, 24, 47, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ Responsive sizing ============ */
@media (min-width: 700px) {
  body {
    padding: 24px;
  }

  .app {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 38px;
    box-shadow:
      0 40px 100px rgba(55, 32, 66, 0.18),
      0 8px 30px rgba(55, 32, 66, 0.08);
  }

  .screen {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
  }

  .cover {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .cover-hero {
    padding-top: clamp(30px, 6vh, 56px);
  }

  .feature-card {
    margin-top: 30px;
  }

  .cover-cta {
    padding-top: 28px;
  }

  .quiz {
    padding-top: 22px;
  }
}

@media (max-width: 370px) {
  .cover {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cover-title {
    font-size: 37px;
  }

  .cover-sub {
    margin-top: 14px;
  }

  .feature-card {
    padding: 0 15px;
  }

  .feature-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 76px;
    padding: 13px 0;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
  }

  .feature-copy h2 {
    font-size: 15.5px;
  }

  .trust-pill {
    padding: 4px 8px;
    font-size: 11px;
  }

  .question-stage,
  .quiz-top,
  .progress-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .quiz-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .question-title {
    font-size: 25px;
  }

  .option {
    padding: 12px 13px;
  }

  .option-label {
    font-size: 14px;
  }

  .result {
    padding-right: 17px;
    padding-left: 17px;
  }

  .score-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .score-main {
    gap: 11px;
  }

  .score-summary h3 {
    font-size: 17px;
  }

  .score-summary p {
    font-size: 9.5px;
  }

  .score-tag {
    font-size: 9px;
  }

  .panel {
    padding-right: 15px;
    padding-left: 15px;
  }

  .insight-card {
    padding: 12px;
  }

  .insight-card p {
    font-size: 10px;
  }

  .portrait-card {
    padding: 16px;
  }
}

@media (max-height: 730px) and (max-width: 699px) {
  .cover-hero {
    padding-top: 24px;
  }

  .cover-kicker {
    margin-top: 15px;
  }

  .cover-sub {
    margin-top: 13px;
  }

  .feature-card {
    margin-top: 22px;
  }

  .trust-row {
    margin-top: 14px;
  }

  .cover-cta {
    padding-top: 18px;
  }

  .feature-row {
    min-height: 74px;
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 结果页扩展：分数解读 / 逐项拆解 / 双画像 / 建议 ============ */
.panel-sub {
  margin-top: 8px;
  color: #948995;
  font-size: 11.5px;
  line-height: 1.65;
}

.panel-footnote {
  margin-top: 13px;
  padding-top: 11px;
  color: #a89da9;
  font-size: 10px;
  line-height: 1.6;
  border-top: 1px dashed rgba(70, 48, 74, 0.09);
}

/* 分数解读 */
.reading-lead {
  margin-top: 15px;
  padding: 15px 16px;
  border: 1px solid rgba(214, 104, 130, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff2f5 0%, #fdf7ff 100%);
}

.reading-lead-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #b1455f;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.75);
}

.reading-lead p {
  margin-top: 9px;
  color: #5f5364;
  font-size: 12.5px;
  line-height: 1.78;
}

.score-ruler {
  position: relative;
  display: flex;
  gap: 3px;
  height: 9px;
  margin-top: 40px;
}

.ruler-seg {
  flex: 1;
  border-radius: 999px;
}

.ruler-seg--one { background: #f2d7a8; }
.ruler-seg--two { background: #f3c2b4; }
.ruler-seg--three { background: #efa5b3; }
.ruler-seg--four { background: #e4708c; }
.ruler-seg--five { background: linear-gradient(90deg, #d6557a, #9d7bea); }

.ruler-pin {
  position: absolute;
  bottom: 16px;
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  border-radius: 8px;
  background: #241c2c;
  box-shadow: 0 5px 12px rgba(45, 28, 54, 0.22);
  transform: translateX(-50%);
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ruler-pin::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-top-color: #241c2c;
  transform: translateX(-50%);
}

.ruler-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #b0a5b1;
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.reading-block {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(70, 48, 74, 0.07);
}

.reading-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.reading-block h4 {
  color: #3a3040;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.reading-block--last {
  padding-bottom: 2px;
}

.weight-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.weight-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.weight-label {
  color: #716575;
  font-size: 10.5px;
}

.weight-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2ebf1;
}

.weight-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f1a0b0, #d9678a);
}

.weight-value {
  color: #9d90a0;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reading-note {
  margin-top: 10px;
  color: #a196a4;
  font-size: 10px;
  line-height: 1.65;
}

.reading-copy {
  margin-top: 8px;
  color: #7c6f80;
  font-size: 11px;
  line-height: 1.75;
}

.leverage-bar {
  height: 9px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2ebf1;
}

.leverage-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e9b06a, #df7f95 58%, #a987ea);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compare-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 30px;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
}

.compare-row > span:first-child {
  color: #716575;
  font-size: 10.5px;
}

.compare-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2ebf1;
}

.compare-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f1a0b0, #d65c7e);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compare-bar--violet span {
  background: linear-gradient(90deg, #c3b3f0, #8b70e0);
}

.compare-row b {
  color: #5d5163;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.misread-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.misread-list li {
  position: relative;
  padding-left: 14px;
  color: #817583;
  font-size: 11px;
  line-height: 1.7;
}

.misread-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d39aa8;
}

/* 逐项拆解 */
.breakdown-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.breakdown-card {
  padding: 14px;
  border: 1px solid rgba(70, 48, 74, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.breakdown-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.breakdown-index {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
  place-items: center;
  color: #bd5370;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff0f3, #ffe7ed);
}

.breakdown-title {
  min-width: 0;
  flex: 1;
}

.breakdown-title h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3a2f40;
  font-size: 13.5px;
  font-weight: 800;
}

.breakdown-input {
  margin-top: 3px;
  color: #9b8f9d;
  font-size: 10px;
  line-height: 1.55;
}

.breakdown-score {
  color: #c34b68;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.breakdown-score small {
  margin-left: 1px;
  color: #b3a7b5;
  font-size: 9px;
  font-weight: 600;
}

.level-tag {
  padding: 2px 6px;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  border-radius: 5px;
}

.level-tag.is-top { color: #a63d5a; background: #ffe9ef; }
.level-tag.is-good { color: #2f7f68; background: #e9f8f1; }
.level-tag.is-mid { color: #8a6a2f; background: #fdf3e2; }
.level-tag.is-low { color: #a5642f; background: #fdf0e5; }
.level-tag.is-weak { color: #b04a5f; background: #ffeef2; }

.breakdown-meter {
  position: relative;
  height: 7px;
  margin-top: 11px;
  border-radius: 999px;
  background: #f2ebf1;
}

.breakdown-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f19aad, #df6b88 55%, #a580e9);
}

.breakdown-meter i {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: rgba(70, 48, 74, 0.24);
}

.breakdown-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.breakdown-meta span {
  padding: 2px 7px;
  color: #8d8090;
  font-size: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
}

.breakdown-read {
  margin-top: 9px;
  color: #75697a;
  font-size: 11px;
  line-height: 1.72;
}

.breakdown-advice {
  margin-top: 8px;
  padding-top: 8px;
  color: #8a7d8c;
  font-size: 10.5px;
  line-height: 1.68;
  border-top: 1px dashed rgba(70, 48, 74, 0.09);
}

.breakdown-advice b {
  color: #b34f68;
  font-weight: 750;
}

/* 双画像 */

.portrait-rows {
  margin-top: 12px;
  border-top: 1px solid rgba(70, 48, 74, 0.07);
}

.portrait-row {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(70, 48, 74, 0.07);
}

.portrait-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.portrait-row dt {
  color: #a88f99;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.portrait-card--bottom .portrait-row dt {
  color: #7fa596;
}

.portrait-row dd {
  margin: 0;
  color: #3d3242;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.62;
}

.portrait-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(120, 95, 190, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.portrait-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #8d70e8;
}

.portrait-note p {
  color: #7c7080;
  font-size: 10.5px;
  line-height: 1.72;
}

.portrait-note b {
  color: #5a4a60;
}

/* 怎么用清单 */
.usage-list {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.usage-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.usage-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #bd5370;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff0f3, #ffe7ed);
}

.usage-list li:nth-child(2) .usage-index {
  color: #7b66c0;
  background: linear-gradient(145deg, #f4f0ff, #ece6ff);
}

.usage-list li:nth-child(3) .usage-index {
  color: #39836e;
  background: linear-gradient(145deg, #ecfaf5, #ddf3eb);
}

.usage-list li:nth-child(4) .usage-index {
  color: #b4863c;
  background: linear-gradient(145deg, #fff8ec, #ffefd8);
}

.usage-list h4 {
  color: #3c3242;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.5;
}

.usage-list p {
  margin-top: 2px;
  color: #8d818f;
  font-size: 10.5px;
  line-height: 1.7;
}

.usage-note {
  margin-top: 14px;
  padding: 10px 12px;
  color: #9a6b78;
  font-size: 10px;
  line-height: 1.68;
  border-radius: 12px;
  background: #fff6f8;
}

/* 建议与提醒 */
.tip-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.tip-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
}

.tip-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #bd5370;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 9px;
  background: linear-gradient(145deg, #fff0f3, #ffe7ed);
}

.tip-list li:nth-child(2) .tip-index {
  color: #7b66c0;
  background: linear-gradient(145deg, #f4f0ff, #ece6ff);
}

.tip-list li:nth-child(3) .tip-index {
  color: #39836e;
  background: linear-gradient(145deg, #ecfaf5, #ddf3eb);
}

.tip-list--warn .tip-index {
  color: #a97a2e;
  background: linear-gradient(145deg, #fff8ec, #ffefd8);
}

.tip-copy h4 {
  color: #3f3445;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.52;
}

.tip-copy p {
  margin-top: 3px;
  color: #8f828f;
  font-size: 10.5px;
  line-height: 1.7;
}

/* 长图预览 */
.poster-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  background: rgba(30, 20, 35, 0.8);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: fadeIn 0.2s ease both;
}

.poster-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 2px 6px;
  color: #fff;
}

.poster-title {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.poster-subtitle {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10.5px;
}

.icon-btn--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn--light:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.poster-preview {
  flex: 1;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 10, 26, 0.4);
  -webkit-overflow-scrolling: touch;
}

.poster-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-actions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}

.poster-actions .primary-btn,
.poster-actions .secondary-btn {
  min-height: 50px;
  border-radius: 15px;
  font-size: 13.5px;
}

.poster-tip {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  text-align: center;
}

@media (max-width: 370px) {
  .reading-lead p {
    font-size: 12px;
  }

  .breakdown-card {
    padding: 12px;
  }

  .portrait-row dd {
    font-size: 12px;
  }

  .poster-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Editorial paper theme — 暖米白纸张 + 酒红
   ============================================================ */
:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d8;
  --paper-card: rgba(255, 252, 246, 0.68);
  --ink: #1d1915;
  --ink-soft: #4d443a;
  --muted: #8c8172;
  --muted-light: #a89c8c;
  --line: rgba(64, 49, 32, 0.13);
  --rose: #9e3b4a;
  --rose-deep: #85303d;
  --rose-soft: #f3e2e5;
  --violet: #6f5c7d;
  --violet-soft: #efe9f2;
  --mint: #5f7f61;
  --mint-soft: #e9efe7;
  --card: rgba(255, 252, 246, 0.7);
  --shadow-soft: 0 18px 46px rgba(78, 56, 34, 0.08);
  --shadow-card: 0 8px 24px rgba(78, 56, 34, 0.05);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(210, 170, 158, 0.22), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(200, 194, 176, 0.24), transparent 36%),
    #e7e0d3;
}

.app {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 2%, rgba(224, 186, 172, 0.2), transparent 32%),
    radial-gradient(circle at 92% 22%, rgba(206, 198, 176, 0.22), transparent 34%),
    radial-gradient(circle at 14% 94%, rgba(216, 206, 186, 0.2), transparent 30%),
    linear-gradient(178deg, #f8f3ea 0%, #f6f1e7 48%, #f2ece0 100%);
  background-size: 140px 140px, auto, auto, auto, auto;
}

::selection {
  color: #fff;
  background: var(--rose);
}

button:focus-visible {
  outline: 3px solid rgba(158, 59, 74, 0.32);
}

/* ---- 品牌 ---- */
.brand-mark {
  border-radius: 8px;
  background: linear-gradient(150deg, #b34b5a 0%, #9e3b4a 56%, #82303c 100%);
  box-shadow: 0 6px 14px rgba(133, 48, 61, 0.22);
}

.brand-name {
  color: #3c332a;
  letter-spacing: 0.04em;
}

.brand-en {
  color: #a2957f;
  border-left-color: rgba(90, 72, 50, 0.2);
}

.cover-pager {
  color: #8c8172;
  border-color: rgba(90, 72, 50, 0.14);
  background: rgba(255, 252, 246, 0.5);
}

/* ---- 封面 ---- */
.cover::before {
  background: radial-gradient(circle, rgba(212, 168, 158, 0.18), rgba(212, 168, 158, 0) 70%);
}

.cover::after {
  background: radial-gradient(circle, rgba(196, 186, 164, 0.16), rgba(196, 186, 164, 0) 70%);
}

.eyebrow {
  color: #8c3443;
  border-color: rgba(158, 59, 74, 0.24);
  background: rgba(255, 252, 246, 0.62);
  box-shadow: 0 5px 18px rgba(133, 48, 61, 0.05);
}

.eyebrow-dot {
  box-shadow: 0 0 0 3px rgba(158, 59, 74, 0.12);
}

.cover-kicker {
  color: #8c8172;
}

.cover-title {
  color: #17130f;
  letter-spacing: -0.04em;
}

.gradient-word {
  background: linear-gradient(112deg, #a63d4c 0%, #8a2f3d 58%, #6f2630 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.gradient-word::after {
  height: 6px;
  background: linear-gradient(90deg, rgba(158, 59, 74, 0), rgba(158, 59, 74, 0.32), rgba(158, 59, 74, 0));
}

.cover-sub {
  color: #6d6457;
}

.feature-card {
  border-color: rgba(255, 255, 255, 0.62);
  background: var(--paper-card);
  box-shadow:
    0 20px 46px rgba(78, 56, 34, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-row + .feature-row {
  border-top-color: rgba(64, 49, 32, 0.1);
}

.feature-icon--rose {
  color: #9e3b4a;
  background: #f4e4e6;
}

.feature-icon--violet {
  color: #3f5f8f;
  background: #e9edf4;
}

.feature-icon--mint {
  color: #56775a;
  background: #e8efe7;
}

.feature-copy h2 {
  color: #221c16;
}

.feature-copy p {
  color: #8c8172;
}

.trust-pill--rose {
  color: #8f3443;
  border-color: rgba(158, 59, 74, 0.12);
  background: #f4e4e6;
}

.trust-pill--violet {
  color: #3f5a80;
  border-color: rgba(63, 95, 143, 0.12);
  background: #e9edf4;
}

.trust-pill--mint {
  color: #4d6b50;
  border-color: rgba(95, 127, 97, 0.14);
  background: #e8efe7;
}

.micro-note {
  color: #94897a;
}

.micro-dot {
  background: #b9ad9a;
}

/* ---- 按钮 ---- */
.primary-btn {
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(118deg, #ab4453 0%, #9e3b4a 52%, #83303c 100%);
  box-shadow:
    0 14px 28px rgba(126, 47, 61, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.primary-btn:not(:disabled):hover {
  box-shadow:
    0 17px 32px rgba(126, 47, 61, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.secondary-btn {
  color: #4d443a;
  border-color: rgba(64, 49, 32, 0.16);
  background: rgba(255, 252, 246, 0.66);
}

.secondary-btn:hover {
  border-color: rgba(64, 49, 32, 0.26);
  background: rgba(255, 252, 246, 0.94);
}

.icon-btn {
  color: #5c5346;
  border-color: rgba(64, 49, 32, 0.14);
  background: rgba(255, 252, 246, 0.58);
}

.icon-btn:hover {
  border-color: rgba(64, 49, 32, 0.24);
  background: rgba(255, 252, 246, 0.92);
}

/* ---- 答题页 ---- */
.step-meta {
  color: #8c8172;
}

#chapter-label {
  color: #4d443a;
}

#question-count {
  color: #a89c8c;
}

#question-count::before {
  color: #cabfae;
}

.text-btn {
  color: #94897a;
}

.text-btn:hover {
  color: #4d443a;
}

.progress-track {
  background: rgba(64, 49, 32, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, #b04858, #9e3b4a 55%, #7d2f3b);
  box-shadow: 0 0 12px rgba(158, 59, 74, 0.2);
}

.chapter-dot {
  background: rgba(64, 49, 32, 0.11);
}

.chapter-dot.is-past {
  background: rgba(158, 59, 74, 0.34);
}

.chapter-dot.is-current {
  background: linear-gradient(90deg, #a94251, #7d2f3b);
}

.quiz-footer {
  background: linear-gradient(180deg, rgba(246, 241, 231, 0), rgba(246, 241, 231, 0.9) 26%, rgba(244, 239, 229, 0.98) 66%);
}

.question-index {
  color: #b8ab98;
}

.question-index::after {
  background: #d8ccba;
}

.question-title {
  color: #17130f;
}

.question-hint {
  color: #8c8172;
}

.option {
  border-color: rgba(64, 49, 32, 0.12);
  background: rgba(255, 252, 246, 0.66);
  box-shadow: 0 4px 14px rgba(78, 56, 34, 0.03);
}

.option:hover {
  border-color: rgba(158, 59, 74, 0.24);
  background: rgba(255, 252, 246, 0.9);
}

.option[aria-pressed="true"] {
  border-color: rgba(158, 59, 74, 0.5);
  background: linear-gradient(100deg, #f7ebec, #fbf6ee 74%);
  box-shadow:
    0 8px 20px rgba(126, 47, 61, 0.08),
    inset 0 0 0 1px rgba(158, 59, 74, 0.1);
}

/* ---- 结果页 hero ---- */
.result {
  padding: max(18px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}

.result-stage {
  padding-top: 18px;
}

.report-hero {
  text-align: center;
}

.report-kicker {
  color: #8b7d6b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.6;
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 8px 18px;
  color: #9e3b4a;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 4px;
  background: #f3e2e5;
}

.result-heading {
  margin-top: 20px;
  color: #17130f;
  font-size: clamp(33px, 9.6vw, 46px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.005em;
}

.score-orbit {
  position: relative;
  width: clamp(196px, 57vw, 238px);
  height: clamp(196px, 57vw, 238px);
  margin: 26px auto 0;
}

.score-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: #e3dac9;
}

.ring-progress {
  stroke: url(#ringGradient);
  stroke-linecap: butt;
  stroke-dasharray: 603.19;
  stroke-dashoffset: 603.19;
  filter: none;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 0.84, 0.25, 1);
}

.score-number {
  color: #17130f;
  font-size: clamp(56px, 16vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-label {
  margin-top: 9px;
  color: #8c8172;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.score-meta {
  margin-top: 20px;
  color: #8c8172;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.persona-copy {
  margin-top: 28px;
  color: #2b241c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.98;
  letter-spacing: 0.01em;
  text-align: left;
}

.score-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  justify-content: flex-start;
}

.score-tag {
  color: #8c8172;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid rgba(64, 49, 32, 0.14);
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.6);
}

.report-rule {
  height: 3px;
  margin: 34px 0 0;
  background: #17130f;
}

/* ---- 九维得分 ---- */
.nine-section {
  margin-top: 32px;
}

.nine-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #17130f;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.4;
  justify-content: center;
}

.nine-line {
  flex: 1;
  height: 1px;
  background: rgba(64, 49, 32, 0.22);
}

.nine-list {
  margin-top: 8px;
}

.nine-list .dimension-row {
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 13px;
  min-height: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(64, 49, 32, 0.16);
}

.nine-list .dimension-row + .dimension-row {
  margin-top: 0;
}

.nine-list .dimension-label {
  color: #2f2820;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nine-list .dimension-bar {
  height: 8px;
  border-radius: 2px;
  background: #e6ddcd;
}

.nine-list .dimension-row .dimension-fill {
  border-radius: 2px;
  background: var(--dim-color, #9e3b4a);
}

.nine-list .dimension-row .dimension-score {
  color: #17130f;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.nine-list .dimension-row.is-best .dimension-label,
.nine-list .dimension-row.is-weak .dimension-label {
  color: #2f2820;
  font-weight: 600;
}

.dimension-row--age { --dim-color: #a63b4f; }
.dimension-row--city { --dim-color: #5f7f61; }
.dimension-row--education { --dim-color: #3f5f8f; }
.dimension-row--economy { --dim-color: #8a6a3f; }
.dimension-row--family { --dim-color: #6f5c7d; }
.dimension-row--looks { --dim-color: #b4576a; }
.dimension-row--height { --dim-color: #7d6a52; }
.dimension-row--personality { --dim-color: #4f7a72; }
.dimension-row--marriage { --dim-color: #8c4a6b; }

/* ---- 优势 / 短板 ---- */
.insight-grid {
  gap: 10px;
  margin-top: 24px;
}

.insight-card {
  border: 1px solid rgba(64, 49, 32, 0.13);
  border-radius: 16px;
  box-shadow: none;
}

.insight-card--best,
.insight-card--weak {
  background: rgba(255, 252, 246, 0.6);
}

.insight-head {
  color: #9b8d7b;
}

.insight-icon {
  color: #9e3b4a;
  background: #f3e2e5;
}

.insight-card--weak .insight-icon {
  color: #8a6a3f;
  background: #efe7d8;
}

.insight-card h3 {
  color: #221c16;
}

.insight-card h3 strong {
  color: #9e3b4a;
}

.insight-card--weak h3 strong {
  color: #8a6a3f;
}

.insight-card p {
  color: #6f6557;
}

/* ---- 通用面板 ---- */
.panel {
  border: 1px solid rgba(64, 49, 32, 0.13);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.62);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel-kicker {
  color: #a2957f;
  letter-spacing: 0.16em;
}

.panel-head h3,
.section-head h3 {
  color: #17130f;
}

.panel-badge {
  color: #8c8172;
  border-color: rgba(64, 49, 32, 0.14);
  background: rgba(255, 252, 246, 0.66);
}

.panel-sub,
.panel-footnote {
  color: #8c8172;
}

.panel-footnote {
  border-top-color: rgba(64, 49, 32, 0.1);
}

/* ---- 分数解读 ---- */
.reading-lead {
  border-color: rgba(158, 59, 74, 0.16);
  background: linear-gradient(135deg, #f7ebec 0%, #fbf6ee 100%);
}

.reading-lead-label {
  color: #8f3443;
  background: rgba(255, 252, 246, 0.78);
}

.reading-lead p {
  color: #4d443a;
}

.ruler-seg--one { background: #dfd3bd; }
.ruler-seg--two { background: #cdae96; }
.ruler-seg--three { background: #bd7f74; }
.ruler-seg--four { background: #a4555c; }
.ruler-seg--five { background: linear-gradient(90deg, #9e3b4a, #6f2630); }

.ruler-pin {
  background: #241d17;
  box-shadow: 0 5px 12px rgba(45, 32, 20, 0.22);
}

.ruler-pin::after {
  border-top-color: #241d17;
}

.ruler-labels {
  color: #a89c8c;
}

.reading-block {
  border-top-color: rgba(64, 49, 32, 0.1);
}

.reading-block h4 {
  color: #221c16;
}

.weight-label {
  color: #5f564a;
}

.weight-track {
  background: #e9e0d1;
}

.weight-fill {
  background: linear-gradient(90deg, #b4576a, #8a2f3d);
}

.weight-value {
  color: #8c8172;
}

.reading-note {
  color: #a2957f;
}

.reading-copy {
  color: #6f6557;
}

.leverage-bar {
  background: #e9e0d1;
}

.leverage-bar span {
  background: linear-gradient(90deg, #b98a4e, #a4555c 58%, #6f5c7d);
}

.compare-row > span:first-child {
  color: #5f564a;
}

.compare-bar {
  background: #e9e0d1;
}

.compare-bar span {
  background: linear-gradient(90deg, #b4576a, #8a2f3d);
}

.compare-bar--violet span {
  background: linear-gradient(90deg, #8d7a9a, #5f4a6f);
}

.compare-row b {
  color: #3a3229;
}

.misread-list li {
  color: #6f6557;
}

.misread-list li::before {
  background: #a63b4f;
}

/* ---- 逐项拆解 ---- */
.breakdown-card {
  border-color: rgba(64, 49, 32, 0.1);
  background: rgba(255, 252, 246, 0.5);
}

.breakdown-index {
  color: #9e3b4a;
  background: #f3e2e5;
}

.breakdown-title h4 {
  color: #221c16;
}

.breakdown-input {
  color: #9b8d7b;
}

.breakdown-score {
  color: #9e3b4a;
}

.breakdown-score small {
  color: #a89c8c;
}

.breakdown-meter {
  background: #e9e0d1;
}

.breakdown-meter span {
  background: linear-gradient(90deg, #b4576a, #9e3b4a 58%, #7d2f3b);
}

.breakdown-meter i {
  background: rgba(64, 49, 32, 0.3);
}

.breakdown-meta span {
  color: #8c8172;
  background: rgba(255, 252, 246, 0.7);
}

.breakdown-read {
  color: #6f6557;
}

.breakdown-advice {
  color: #8c8172;
  border-top-color: rgba(64, 49, 32, 0.12);
}

.breakdown-advice b {
  color: #9e3b4a;
}

.level-tag.is-top { color: #8f3443; background: #f3e2e5; }
.level-tag.is-good { color: #4d6b50; background: #e8efe7; }
.level-tag.is-mid { color: #7d6136; background: #f0e8d8; }
.level-tag.is-low { color: #8a5a35; background: #f2e6d8; }
.level-tag.is-weak { color: #9e3b4a; background: #f3e2e5; }

/* ---- 双画像 ---- */
.portrait-section {
  margin-top: 26px;
}

.section-note {
  color: #a2957f;
}

.portrait-card {
  border-color: rgba(64, 49, 32, 0.13);
  border-radius: 20px;
  box-shadow: none;
}

.portrait-card--ideal {
  background:
    radial-gradient(circle at 97% 4%, rgba(214, 172, 172, 0.22), transparent 36%),
    linear-gradient(150deg, #fbf4ee 0%, #f8f0e8 56%, #fbf7ef 100%);
}

.portrait-card--bottom {
  background:
    radial-gradient(circle at 97% 4%, rgba(176, 198, 170, 0.22), transparent 36%),
    linear-gradient(150deg, #f6f5ec 0%, #f1f0e4 56%, #f8f7ee 100%);
}

.portrait-icon {
  color: #9e3b4a;
  background: #f3e2e5;
}

.portrait-card--bottom .portrait-icon {
  color: #5f7f61;
  background: #e8efe7;
}

.portrait-label {
  color: #8f3443;
  background: #f3e2e5;
}

.portrait-card--bottom .portrait-label {
  color: #4d6b50;
  background: #e8efe7;
}

.portrait-top h4 {
  color: #221c16;
}

.portrait-rows {
  border-top-color: rgba(64, 49, 32, 0.1);
}

.portrait-row {
  border-bottom-color: rgba(64, 49, 32, 0.1);
}

.portrait-row dt {
  color: #9b8d7b;
}

.portrait-row dd {
  color: #2f2820;
}

.portrait-note {
  color: #6f6557;
  border-color: rgba(64, 49, 32, 0.12);
  background: rgba(255, 252, 246, 0.56);
}

.portrait-note b {
  color: #9e3b4a;
}

/* ---- 用法 / 建议 / 提醒 ---- */
.usage-index {
  color: #9e3b4a;
  background: #f3e2e5;
}

.usage-list h4,
.tip-copy h4 {
  color: #221c16;
}

.usage-list p,
.tip-copy p {
  color: #6f6557;
}

.usage-list li {
  border-bottom-color: rgba(64, 49, 32, 0.1);
}

.usage-note {
  color: #7d6136;
  background: #f2e8da;
}

.tip-index {
  color: #9e3b4a;
  background: #f3e2e5;
}

.tip-list li:nth-child(2) .tip-index {
  color: #3f5f8f;
  background: #e9edf4;
}

.tip-list li:nth-child(3) .tip-index {
  color: #4d6b50;
  background: #e8efe7;
}

.tip-list--warn .tip-index {
  color: #8a6a3f;
  background: #efe7d8;
}

.disclaimer {
  color: #a2957f;
}

.result-made {
  color: #a89c8c;
}

/* ---- 弹窗 ---- */
.modal-card {
  border-color: rgba(255, 255, 255, 0.7);
  background: #fbf6ee;
  box-shadow: 0 30px 80px rgba(45, 32, 20, 0.24);
}

.modal-icon {
  color: #9e3b4a;
  background: #f3e2e5;
}

.modal-card h2 {
  color: #221c16;
}

.modal-card p {
  color: #6f6557;
}

.danger-btn {
  color: #fff;
  background: linear-gradient(118deg, #ab4453, #83303c);
}

.toast {
  color: #f8f3ea;
  background: rgba(36, 28, 20, 0.92);
}

.poster-modal {
  background: rgba(30, 24, 18, 0.82);
}

.poster-preview {
  background: #f6f1e7;
}

/* ---- 小屏 ---- */
@media (max-width: 370px) {
  .persona-copy {
    font-size: 14px;
  }

  .nine-list .dimension-row {
    grid-template-columns: 52px minmax(0, 1fr) 38px;
  }

  .nine-list .dimension-row .dimension-score {
    font-size: 18px;
  }
}

/* 选项标记与文字 */
.option-marker {
  border-color: #cfc3b1;
  background: rgba(255, 252, 246, 0.82);
}

.option[aria-pressed="true"] .option-marker {
  background: linear-gradient(135deg, #ab4453, #7d2f3b);
  box-shadow: 0 4px 9px rgba(126, 47, 61, 0.22);
}

.option-label {
  color: #2f2820;
}

.selection-note {
  color: #8c8172;
}

.result-heading {
  text-wrap: balance;
}

@media (max-width: 360px) {
  .result-heading {
    font-size: 28px;
  }

  .persona-badge {
    padding: 7px 14px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }
}
