:root {
  --bg: #161310;
  --bg-soft: #1d1815;
  --bg-warm: #241e19;
  --surface: rgba(31, 26, 22, 0.82);
  --surface-solid: #211b17;
  --surface-raised: #29221d;
  --ink: #e8e4df;
  --ink-soft: #c9c0b6;
  --muted: #9d9288;
  --dim: #756a61;
  --gold: #c9a87c;
  --gold-soft: rgba(201, 168, 124, 0.14);
  --gold-line: rgba(201, 168, 124, 0.23);
  --pink: #b8898a;
  --pink-soft: rgba(184, 137, 138, 0.13);
  --line: rgba(232, 228, 223, 0.09);
  --line-strong: rgba(232, 228, 223, 0.16);
  --porcelain: #e8e4df;
  --font-display: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 16px 36px rgba(201, 168, 124, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 88% 4%, rgba(201, 168, 124, 0.15), transparent 32%),
    radial-gradient(ellipse at 6% 36%, rgba(232, 228, 223, 0.08), transparent 28%),
    radial-gradient(ellipse at 82% 92%, rgba(184, 137, 138, 0.09), transparent 30%),
    linear-gradient(158deg, #14110e 0%, #1b1613 46%, #241e19 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(232, 228, 223, 0.06) 0.65px, transparent 0.65px),
    linear-gradient(90deg, transparent 0%, rgba(201, 168, 124, 0.025) 50%, transparent 100%);
  background-size: 19px 19px, 100% 100%;
  opacity: 0.48;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 35%, rgba(0, 0, 0, 0.12));
}

button,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
label:focus-within {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  color: var(--bg);
  background: var(--gold);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #191512;
  background: var(--gold);
  border-radius: 2px;
  text-decoration: none;
  font-size: 12px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.ambient__glow--cool {
  top: -20%;
  left: -25%;
  width: 68vw;
  height: 68vw;
  max-width: 540px;
  max-height: 540px;
  background: rgba(232, 228, 223, 0.12);
}

.ambient__glow--warm {
  right: -28%;
  bottom: -18%;
  width: 80vw;
  height: 80vw;
  max-width: 660px;
  max-height: 660px;
  background: rgba(201, 168, 124, 0.14);
}

.ambient__mirror {
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(88vw, 540px);
  height: min(124vw, 760px);
  border: 1px solid rgba(201, 168, 124, 0.12);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-7deg);
}

.ambient__mirror::after {
  content: "";
  position: absolute;
  inset: 4.5%;
  border: 1px solid rgba(232, 228, 223, 0.045);
  border-radius: 50%;
}

.ambient__rim {
  position: absolute;
  right: -25%;
  bottom: -24%;
  width: 75vw;
  height: 75vw;
  max-width: 580px;
  max-height: 580px;
  border: 1px solid rgba(184, 137, 138, 0.1);
  border-radius: 50%;
}

.ambient__rim::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(201, 168, 124, 0.075);
  border-radius: 50%;
}

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(0px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    env(safe-area-inset-bottom)
    max(22px, env(safe-area-inset-left));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 21px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--gold);
  background: rgba(232, 228, 223, 0.025);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(201, 168, 124, 0.08) inset;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand__text strong {
  color: var(--porcelain);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.brand__text span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.header-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(201, 168, 124, 0.05);
  border: 1px solid rgba(201, 168, 124, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.screen {
  width: 100%;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  animation: screen-enter 480ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

/* ---------- 开始页 ---------- */

.screen--start {
  flex: 1;
  justify-content: center;
  padding: 44px 0 28px;
}

.hero {
  width: 100%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 168, 124, 0.08);
}

.hero__title {
  margin: 21px 0 18px;
  color: var(--porcelain);
  font-family: var(--font-display);
  font-size: clamp(45px, 12.5vw, 63px);
  font-weight: 300;
  letter-spacing: 0.09em;
  line-height: 1.1;
  text-shadow: 0 0 42px rgba(232, 228, 223, 0.08);
}

.hero__title-accent {
  display: inline-block;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-shadow: 0 0 34px rgba(201, 168, 124, 0.2);
}

.hero__lede {
  max-width: 420px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.025em;
}

.type-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 27px 0 28px;
}

.type-card {
  --tone: var(--gold);
  display: flex;
  flex-direction: column;
  min-height: 111px;
  padding: 12px 11px 13px;
  background: linear-gradient(155deg, rgba(43, 36, 30, 0.92), rgba(27, 23, 19, 0.94));
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}

.type-card--basis {
  --tone: var(--porcelain);
}

.type-card--energy {
  --tone: var(--pink);
}

.type-card--result {
  --tone: var(--gold);
}

.type-card__num {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.type-card__line {
  width: 20px;
  height: 1px;
  margin: 14px 0 10px;
  background: var(--tone);
  opacity: 0.72;
}

.type-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.type-card small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 22px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--wide {
  width: 100%;
}

.btn--primary {
  color: #191512;
  background: linear-gradient(120deg, #d5b68b, #c9a87c 54%, #b99669);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-gold);
}

.btn--primary:not(:disabled):active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 8px 20px rgba(201, 168, 124, 0.1);
}

.btn--primary:disabled {
  color: #6f665c;
  background: rgba(201, 168, 124, 0.08);
  border-color: rgba(201, 168, 124, 0.08);
  box-shadow: none;
  cursor: not-allowed;
}

.btn--soft {
  color: var(--ink-soft);
  background: rgba(232, 228, 223, 0.025);
  border-color: var(--line-strong);
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.hero__meta-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- 答题页 ---------- */

.screen--quiz {
  padding: 27px 0 8px;
}

.quiz-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--gold);
  background: rgba(232, 228, 223, 0.025);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

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

.quiz-progress-copy {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.quiz-progress-copy strong {
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
}

.quiz-percent {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.progress {
  height: 2px;
  margin-bottom: 24px;
  overflow: hidden;
  background: rgba(232, 228, 223, 0.08);
}

.progress__bar {
  display: block;
  width: 5%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  box-shadow: 0 0 12px rgba(201, 168, 124, 0.32);
  transition: width 420ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.question-card {
  position: relative;
  padding: 25px 20px 21px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(42, 35, 29, 0.92), rgba(24, 20, 17, 0.97));
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}

.question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.question-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -90px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 168, 124, 0.08), transparent 67%);
}

.question-card.is-animating {
  animation: question-enter 300ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.question-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.13em;
  opacity: 0.8;
}

.question-kicker::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.question-title {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: var(--porcelain);
  font-family: var(--font-display);
  font-size: clamp(22px, 5.8vw, 27px);
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

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

.question-hint {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.6;
}

.options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 12px;
  background: rgba(232, 228, 223, 0.018);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.answer-option__letter {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--muted);
  border: 1px solid rgba(232, 228, 223, 0.13);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer-option__text {
  flex: 1;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
  transition: color 160ms ease;
}

.answer-option__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 9px;
  border: 1px solid rgba(201, 168, 124, 0.35);
  border-radius: 50%;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.answer-option.is-selected {
  background: linear-gradient(120deg, rgba(201, 168, 124, 0.1), rgba(184, 137, 138, 0.055));
  border-color: rgba(201, 168, 124, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 168, 124, 0.08) inset, 0 6px 20px rgba(0, 0, 0, 0.12);
}

.answer-option.is-selected .answer-option__letter {
  color: #191512;
  background: var(--gold);
  border-color: var(--gold);
}

.answer-option.is-selected .answer-option__text {
  color: var(--porcelain);
}

.answer-option.is-selected .answer-option__dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.1);
}

.quiz-actions {
  padding-top: 17px;
}

.quiz-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 9.5px;
  text-align: center;
}

.quiz-note.is-ready {
  color: var(--gold);
}

/* ---------- 结果页 ---------- */

.screen--result,
.screen--type-detail,
.screen--breakthrough {
  --result-color: var(--porcelain);
  --result-soft: rgba(232, 228, 223, 0.1);
  --result-deep: #f3efe9;
}

.screen--result[data-type="artisan"],
.screen--type-detail[data-type="artisan"],
.screen--breakthrough[data-type="artisan"],
.type-gallery-card[data-type="artisan"] {
  --result-color: #e8e4df;
  --result-soft: rgba(232, 228, 223, 0.11);
  --result-deep: #f5f1eb;
}

.screen--result[data-type="anchor"],
.screen--type-detail[data-type="anchor"],
.screen--breakthrough[data-type="anchor"],
.type-gallery-card[data-type="anchor"] {
  --result-color: #b8898a;
  --result-soft: rgba(184, 137, 138, 0.14);
  --result-deep: #d8aeb0;
}

.screen--result[data-type="scene"],
.screen--type-detail[data-type="scene"],
.screen--breakthrough[data-type="scene"],
.type-gallery-card[data-type="scene"] {
  --result-color: #c9a87c;
  --result-soft: rgba(201, 168, 124, 0.14);
  --result-deep: #dfc094;
}

.screen--result[data-type="operator"],
.screen--type-detail[data-type="operator"],
.screen--breakthrough[data-type="operator"],
.type-gallery-card[data-type="operator"] {
  --result-color: #a97452;
  --result-soft: rgba(169, 116, 82, 0.16);
  --result-deep: #ca8c65;
}

.screen--result[data-type="consultant"],
.screen--type-detail[data-type="consultant"],
.screen--breakthrough[data-type="consultant"],
.type-gallery-card[data-type="consultant"] {
  --result-color: #d8a08f;
  --result-soft: rgba(216, 160, 143, 0.14);
  --result-deep: #efb9a7;
}

.screen--result {
  padding: 28px 0 8px;
}

.result-head {
  position: relative;
  padding: 22px 19px 21px;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--result-soft), rgba(27, 23, 19, 0.88) 58%),
    rgba(31, 26, 22, 0.92);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}

.result-head::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -95px;
  width: 280px;
  height: 280px;
  pointer-events: none;
  border: 1px solid var(--result-color);
  border-radius: 50%;
  opacity: 0.09;
}

.result-head .eyebrow {
  color: var(--result-color);
  opacity: 0.7;
}

.result-name {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--result-deep);
  font-family: var(--font-display);
  font-size: clamp(45px, 12vw, 62px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-shadow: 0 0 40px var(--result-soft);
}

.result-name:focus {
  outline: none;
}

.result-code {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: var(--result-color);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  opacity: 0.85;
}

.result-positioning {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 17px 0 0;
  padding-top: 15px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(232, 228, 223, 0.08);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.result-notes {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 11px 12px;
  background: rgba(201, 168, 124, 0.055);
  border-left: 1px solid var(--gold);
}

.result-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.result-notes p + p {
  margin-top: 5px;
}

.feature-card,
.caution-card,
.summary-card {
  margin-top: 12px;
  padding: 18px 17px 16px;
  background: rgba(30, 25, 21, 0.9);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.section-count {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(232, 228, 223, 0.06);
}

.feature-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature-list li > span {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--result-color);
  font-family: var(--font-mono);
  font-size: 8px;
  opacity: 0.75;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.caution-card {
  border-color: rgba(184, 137, 138, 0.16);
}

.caution-card .section-label {
  color: var(--pink);
  opacity: 0.85;
}

.caution-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.85;
}

.caution-list p + p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 228, 223, 0.06);
}

.summary-card {
  background:
    linear-gradient(135deg, var(--result-soft), rgba(29, 24, 20, 0.92));
  border-color: rgba(232, 228, 223, 0.09);
}

.summary-text {
  margin: 11px 0 0;
  color: var(--result-deep);
  font-family: var(--font-display);
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

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

.result-footnote {
  margin: 13px 0 0;
  color: var(--dim);
  font-size: 8.5px;
  line-height: 1.6;
  text-align: center;
}

.browse-types-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 1px;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(201, 168, 124, 0.18);
  border-bottom: 1px solid rgba(201, 168, 124, 0.18);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
}

.browse-types-link span:last-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 15px;
}

/* ---------- 五种底牌图鉴 ---------- */

.screen--gallery {
  padding: 27px 0 8px;
}

.gallery-top {
  padding-bottom: 20px;
}

.page-title {
  margin: 12px 0 0;
  color: var(--porcelain);
  font-family: var(--font-display);
  font-size: clamp(31px, 8.2vw, 42px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

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

.page-lede {
  max-width: 440px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.type-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.type-gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 188px;
  padding: 14px 13px 15px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(155deg, var(--result-soft), rgba(27, 23, 19, 0.9) 62%),
    rgba(31, 26, 22, 0.92);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.type-gallery-card::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -95px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  border: 1px solid var(--result-color);
  border-radius: 50%;
  opacity: 0.08;
}

.type-gallery-card:last-child {
  grid-column: 1 / -1;
  min-height: 148px;
}

.type-gallery-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 18px;
}

.type-gallery-card__code {
  color: var(--result-color);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

.type-gallery-current {
  padding: 3px 6px;
  color: var(--result-deep);
  background: var(--result-soft);
  border-radius: 999px;
  font-size: 7.5px;
  line-height: 1.35;
}

.type-gallery-card__name {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: var(--result-deep);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.07em;
  line-height: 1.35;
}

.type-gallery-card__positioning {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding-right: 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.type-gallery-card__arrow {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: var(--result-color);
  font-family: var(--font-mono);
  font-size: 14px;
}

.type-gallery-card.is-current {
  border-color: var(--result-color);
  box-shadow: 0 0 0 1px var(--result-soft) inset, var(--shadow-soft);
}

/* ---------- 其他类型详情 ---------- */

.screen--type-detail {
  padding: 27px 0 8px;
}

.type-detail-top {
  position: relative;
  padding: 0 0 21px;
}

.type-detail-top > .back-link {
  margin-bottom: 23px;
}

.type-detail-top .eyebrow {
  color: var(--result-color);
  opacity: 0.76;
}

.type-detail-name {
  margin: 15px 0 0;
  color: var(--result-deep);
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 58px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 0 40px var(--result-soft);
}

.type-detail-name:focus {
  outline: none;
}

.type-detail-top .result-code {
  margin-top: 6px;
}

.type-detail-top .result-positioning {
  margin-top: 16px;
}

/* ---------- 支付页 ---------- */

.screen--payment {
  padding: 27px 0 8px;
}

.payment-top {
  padding-bottom: 20px;
}

.payment-top .eyebrow {
  color: var(--gold);
  opacity: 0.74;
}

.payment-blessing {
  margin: 16px 0 0;
  color: var(--porcelain);
  font-family: var(--font-display);
  font-size: clamp(29px, 7.9vw, 40px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-shadow: 0 0 34px rgba(201, 168, 124, 0.1);
}

.payment-blessing:focus {
  outline: none;
}

.payment-lede {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.payment-card {
  padding: 20px 18px 18px;
  background:
    linear-gradient(145deg, rgba(201, 168, 124, 0.08), rgba(29, 24, 20, 0.9) 52%),
    rgba(31, 26, 22, 0.94);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.payment-product .section-label {
  color: var(--gold);
  opacity: 0.78;
}

.payment-product p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.payment-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 14px 0 15px;
  color: var(--gold);
}

.payment-price span {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
}

.payment-price strong {
  font-family: var(--font-display);
  font-size: 53px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
}

.qr-frame {
  width: min(100%, 238px);
  margin: 0 auto;
  padding: 10px;
  background: #f1ece3;
  border: 1px solid rgba(201, 168, 124, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.payment-methods span {
  padding: 5px 9px;
  color: var(--gold);
  background: rgba(201, 168, 124, 0.055);
  border: 1px solid rgba(201, 168, 124, 0.18);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.25;
}

.payment-demo-note {
  margin: 13px 0 0;
  color: var(--pink);
  font-size: 9.5px;
  line-height: 1.6;
}

#demo-pay-btn {
  margin-top: 12px;
}

.payment-footnote {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 8.5px;
  line-height: 1.65;
  text-align: center;
}

/* ---------- 深度破局页 ---------- */

.screen--breakthrough {
  padding: 27px 0 8px;
}

.breakthrough-top {
  padding-bottom: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10.5px;
  cursor: pointer;
}

.breakthrough-top .eyebrow {
  color: var(--gold);
  opacity: 0.72;
}

.breakthrough-name {
  margin: 18px 0 0;
  color: var(--result-deep);
  font-family: var(--font-display);
  font-size: clamp(39px, 10vw, 54px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.breakthrough-name:focus {
  outline: none;
}

.breakthrough-key {
  margin: 18px 0 0;
  padding-left: 14px;
  color: var(--result-color);
  border-left: 1px solid var(--result-color);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.breakthrough-section {
  margin-top: 12px;
  padding: 18px 17px 17px;
  background: rgba(30, 25, 21, 0.9);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}

.breakthrough-section:first-of-type {
  margin-top: 0;
}

.breakthrough-section .section-label {
  color: var(--gold);
  opacity: 0.72;
}

.breakthrough-text {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
}

.direction-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.direction-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid rgba(232, 228, 223, 0.06);
}

.direction-list li:first-child {
  padding-top: 1px;
  border-top: 0;
}

.direction-list li > span {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8px;
  opacity: 0.8;
}

.direction-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.82;
}

.breakthrough-example {
  background:
    linear-gradient(145deg, rgba(184, 137, 138, 0.075), rgba(29, 24, 20, 0.92));
  border-color: rgba(184, 137, 138, 0.13);
}

.breakthrough-example .section-label {
  color: var(--pink);
}

.breakthrough-section + .btn {
  margin-top: 18px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 27px 0 max(19px, env(safe-area-inset-bottom));
  text-align: center;
}

.footer-note {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.footer-sub {
  margin: 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.6;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  padding: 14px 16px;
  color: #191512;
  background: var(--gold);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 动效 ---------- */

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes question-enter {
  from {
    opacity: 0;
    transform: translateX(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (hover: hover) {
  .type-card {
    transition: border-color 180ms ease, transform 180ms ease;
  }

  .type-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-line);
  }

  .answer-option:hover {
    border-color: rgba(201, 168, 124, 0.35);
    background: rgba(201, 168, 124, 0.035);
  }

  .type-gallery-card:hover {
    transform: translateY(-2px);
    border-color: var(--result-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  }

  .browse-types-link:hover {
    color: var(--porcelain);
  }

  .btn--soft:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 124, 0.05);
  }

  .btn--primary:not(:disabled):hover {
    box-shadow: 0 18px 42px rgba(201, 168, 124, 0.18);
  }
}

@media (max-width: 359px) {
  .app {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero__title {
    font-size: 42px;
  }

  .type-preview {
    gap: 6px;
  }

  .type-card {
    min-height: 108px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .type-card strong {
    font-size: 12px;
  }

  .type-card small {
    font-size: 7.5px;
  }

  .header-badge {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 7px;
  }

  .question-card {
    padding-right: 15px;
    padding-left: 15px;
  }

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

  .answer-option {
    gap: 9px;
    padding: 13px 10px;
  }

  .answer-option__text {
    font-size: 12px;
  }

  .result-head {
    padding-right: 15px;
    padding-left: 15px;
  }

  .result-name {
    font-size: 40px;
  }

  .type-detail-name {
    font-size: 38px;
  }

  .payment-blessing {
    font-size: 27px;
  }

  .payment-price strong {
    font-size: 47px;
  }

  .type-gallery-card {
    min-height: 181px;
    padding: 12px 10px 14px;
  }

  .type-gallery-card:last-child {
    min-height: 142px;
  }

  .type-gallery-card__name {
    font-size: 20px;
  }

  .type-gallery-card__positioning {
    font-size: 10px;
  }

  .result-positioning {
    font-size: 12.5px;
  }

  .feature-card,
  .caution-card,
  .summary-card,
  .breakthrough-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .breakthrough-name {
    font-size: 35px;
  }

  .breakthrough-key {
    font-size: 14px;
  }

  .feature-list p,
  .caution-list p,
  .breakthrough-text,
  .direction-list p {
    font-size: 12px;
  }
}

@media (min-width: 720px) {
  .app {
    padding-right: 34px;
    padding-left: 34px;
  }

  .screen--start {
    padding-top: 54px;
  }

  .question-card {
    padding: 29px 27px 24px;
  }

  .result-head {
    padding: 26px 24px 24px;
  }

  .feature-card,
  .caution-card,
  .summary-card,
  .breakthrough-section {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

