/* ==========================================================================
   财运直觉志 · 黑金流光轻奢编辑风落地页
   ========================================================================== */

:root {
  --bg: #0c0907;
  --bg-elevated: #14100c;
  --bg-card: #19130e;
  --bg-card-hover: #211912;
  --border: rgba(212, 175, 106, 0.18);
  --border-strong: rgba(212, 175, 106, 0.42);
  --text: #f7f1e3;
  --text-muted: #b8aa93;
  --text-subtle: #887b67;
  --gold-100: #fbf0cf;
  --gold-300: #f0d494;
  --gold-500: #d4af6a;
  --gold-600: #b88b3d;
  --gold-700: #876022;
  --gold-glow: rgba(212, 175, 106, 0.22);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 72% 8%, rgba(212, 175, 106, 0.14), transparent 60%),
    radial-gradient(ellipse 65% 45% at 15% 32%, rgba(164, 112, 39, 0.1), transparent 62%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 22px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 52%, var(--gold-600) 100%);
  color: #161008;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(212, 175, 106, 0.26), inset 0 1px 0 rgba(255, 250, 234, 0.55);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(212, 175, 106, 0.38), inset 0 1px 0 rgba(255, 250, 234, 0.7);
}

.btn-ghost {
  background: rgba(255, 245, 224, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(212, 175, 106, 0.1);
  border-color: var(--border-strong);
  color: var(--gold-100);
}

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

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 9, 7, 0.74);
  border-bottom: 1px solid rgba(212, 175, 106, 0.12);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold-100);
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-300);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 68px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(212, 175, 106, 0.08);
  color: var(--gold-300);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 10px var(--gold-300);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}

.gold-text {
  background: linear-gradient(125deg, #fff4d1 0%, #efc97e 45%, #c7933e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-lead strong {
  color: var(--gold-100);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: rgba(25, 19, 14, 0.72);
  border: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.metric-val small {
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 2px;
  color: var(--text-muted);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Hero Visual */
.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(155deg, rgba(240, 212, 148, 0.24), rgba(25, 19, 14, 0.65) 42%, rgba(212, 175, 106, 0.14));
  border: 1px solid rgba(240, 212, 148, 0.28);
  box-shadow: var(--shadow-lg);
}

.visual-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 55% 35%, rgba(240, 196, 104, 0.24), transparent 62%);
  filter: blur(26px);
  z-index: -1;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.visual-caption-card {
  margin-top: -36px;
  margin-inline: 14px;
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(16, 12, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.caption-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.caption-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.14);
}

.caption-stars {
  color: var(--gold-300);
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.caption-formula {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.caption-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Common Sections
   ========================================================================== */
.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.25;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 660px;
  font-size: 0.98rem;
}

/* ==========================================================================
   Dimensions Grid
   ========================================================================== */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dim-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(28, 21, 15, 0.9), rgba(19, 14, 10, 0.92));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dim-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.dim-index {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--gold-500);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.dim-card h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin: 0 0 6px;
  color: var(--gold-100);
}

.dim-meta {
  font-size: 0.78rem;
  color: var(--gold-500);
  margin: 0 0 12px;
}

.dim-card p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Quiz Section
   ========================================================================== */
.quiz-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mode-btn.is-active {
  background: linear-gradient(135deg, rgba(240, 212, 148, 0.24), rgba(184, 139, 61, 0.28));
  color: var(--gold-100);
}

.quiz-shell {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(27, 21, 15, 0.95), rgba(18, 14, 10, 0.98));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.quiz-progress-wrap {
  margin-bottom: 30px;
}

.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.86rem;
}

.progress-count {
  color: var(--gold-300);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.progress-hint {
  color: var(--text-subtle);
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 245, 224, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.single-view {
  animation: fadeSlideIn 0.28s ease;
}

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

.question-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.q-badge {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #161008;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  padding: 4px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.q-dim-tag {
  font-size: 0.8rem;
  color: var(--gold-300);
  border: 1px solid var(--border);
  background: rgba(212, 175, 106, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

.question-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 26px;
  color: var(--text);
}

.options-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 232, 0.03);
  border: 1px solid rgba(212, 175, 106, 0.18);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.option-btn:hover {
  background: rgba(212, 175, 106, 0.1);
  border-color: rgba(240, 212, 148, 0.5);
  transform: translateY(-2px);
}

.option-btn.is-selected {
  background: linear-gradient(135deg, rgba(240, 212, 148, 0.2), rgba(184, 139, 61, 0.16));
  border-color: var(--gold-300);
  box-shadow: 0 0 0 1px rgba(240, 212, 148, 0.45), 0 10px 24px rgba(0, 0, 0, 0.32);
}

.option-key {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-300);
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid rgba(212, 175, 106, 0.28);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.option-btn.is-selected .option-key {
  background: var(--gold-300);
  color: #161008;
  border-color: var(--gold-300);
}

.option-text {
  flex: 1;
}

.option-check {
  width: 20px;
  height: 20px;
  color: var(--gold-300);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.option-btn.is-selected .option-check {
  opacity: 1;
  transform: scale(1);
}

.quiz-nav-bar {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 106, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, 0.22);
  background: rgba(255, 248, 232, 0.03);
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-dot:hover {
  border-color: var(--gold-300);
  color: var(--gold-100);
}

.step-dot.is-answered {
  background: rgba(212, 175, 106, 0.2);
  border-color: rgba(212, 175, 106, 0.55);
  color: var(--gold-100);
}

.step-dot.is-current {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: #161008;
  font-weight: 700;
  transform: scale(1.08);
}

/* 全部展开模式 */
.all-questions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.all-q-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 232, 0.025);
  border: 1px solid rgba(212, 175, 106, 0.16);
}

.all-q-card.is-missing {
  border-color: rgba(244, 132, 95, 0.75);
  box-shadow: 0 0 0 1px rgba(244, 132, 95, 0.25);
}

.all-q-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 10px 0 16px;
}

.all-view-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.unanswered-hint {
  margin: 0;
  color: var(--gold-300);
  font-size: 0.9rem;
}

/* ==========================================================================
   Result Report
   ========================================================================== */
.result-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeSlideIn 0.4s ease;
}

.result-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(240, 212, 148, 0.16), transparent 46%),
    linear-gradient(160deg, #1d160f 0%, #120d09 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.result-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.result-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  font-weight: 600;
}

.result-range-pill {
  font-size: 0.8rem;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.14);
  border: 1px solid var(--border);
  color: var(--gold-100);
  font-variant-numeric: tabular-nums;
}

.result-stars {
  font-size: 1.4rem;
  letter-spacing: 5px;
  color: var(--gold-300);
  margin-bottom: 8px;
}

.result-tier-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0 0 8px;
  line-height: 1.15;
  background: linear-gradient(125deg, #fff5d6 0%, #efc97e 55%, #c7933e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-tagline {
  margin: 0 0 18px;
  color: var(--gold-100);
  font-size: 1.05rem;
  font-weight: 500;
}

.result-description {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.result-insight-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-col {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 232, 0.035);
  border: 1px solid var(--border);
}

.insight-label {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--gold-500);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.insight-col strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-100);
  margin-bottom: 6px;
}

.insight-col p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.result-visual-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.score-ring-wrap {
  position: relative;
  width: 176px;
  height: 176px;
}

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

.ring-bg {
  fill: none;
  stroke: rgba(212, 175, 106, 0.14);
  stroke-width: 10;
}

.ring-fg {
  fill: none;
  stroke: url(#goldRingGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 465;
  stroke-dashoffset: 465;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.score-num {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-100);
  font-variant-numeric: tabular-nums;
}

.score-total {
  font-size: 0.82rem;
  color: var(--gold-500);
  margin-top: 3px;
}

.score-sub {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.radar-card {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(12, 9, 7, 0.55);
  border: 1px solid var(--border);
}

.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--gold-100);
  margin-bottom: 8px;
}

.radar-unit {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.radar-svg {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 10px;
  display: block;
}

.dim-bars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dim-bar-row {
  display: grid;
  grid-template-columns: 74px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.dim-bar-name {
  color: var(--text-muted);
}

.dim-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 245, 224, 0.08);
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
}

.dim-bar-val {
  text-align: right;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

/* 财富寄语卡片 */
.result-motto-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.12), rgba(25, 19, 14, 0.9));
  border: 1px solid var(--border-strong);
}

.motto-mark {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--gold-500);
  opacity: 0.7;
  user-select: none;
}

.motto-label {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold-300);
  margin-bottom: 6px;
}

.motto-content blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--gold-100);
}

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

/* 明细折叠 */
.breakdown-details {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.breakdown-details summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gold-100);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breakdown-details summary::-webkit-details-marker {
  display: none;
}

.breakdown-details summary::after {
  content: "展开 ▾";
  font-size: 0.82rem;
  color: var(--gold-500);
}

.breakdown-details[open] summary::after {
  content: "收起 ▴";
}

.breakdown-body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(212, 175, 106, 0.1);
}

.scoring-rule-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 0 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.scoring-rule-banner strong {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.12);
  color: var(--gold-300);
  font-weight: 500;
}

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

.breakdown-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 232, 0.025);
  border: 1px solid rgba(212, 175, 106, 0.12);
}

.breakdown-q {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 8px;
}

.breakdown-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.breakdown-pts {
  color: var(--gold-300);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Tiers Section
   ========================================================================== */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26, 20, 14, 0.94), rgba(16, 12, 9, 0.96));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.tier-card.is-matched {
  border-color: var(--gold-300);
  background:
    radial-gradient(circle at 80% 0%, rgba(240, 212, 148, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(35, 26, 17, 0.96), rgba(19, 14, 10, 0.98));
  box-shadow: 0 0 0 1px rgba(240, 212, 148, 0.45), var(--shadow-md);
}

.tier-matched-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-300);
  color: #161008;
}

.tier-score {
  font-size: 0.85rem;
  color: var(--gold-500);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.tier-stars {
  color: var(--gold-300);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.tier-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  margin: 0 0 8px;
  color: var(--gold-100);
}

.tier-summary {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.tier-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex: 1;
}

/* ==========================================================================
   Closing Motto & Footer
   ========================================================================== */
.closing-banner {
  text-align: center;
  padding: 64px 36px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(212, 175, 106, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(25, 19, 14, 0.9), rgba(14, 10, 8, 0.95));
  border: 1px solid var(--border);
}

.closing-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--gold-100);
  margin: 8px auto 16px;
  max-width: 780px;
}

.closing-sub {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.site-footer {
  border-top: 1px solid rgba(212, 175, 106, 0.12);
  padding: 26px 0 36px;
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(24, 18, 12, 0.96);
  border: 1px solid var(--border-strong);
  color: var(--gold-100);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .result-hero-card {
    grid-template-columns: 1fr;
  }

  .dimensions-grid,
  .tiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .hero {
    padding: 40px 0 56px;
  }

  .section {
    padding: 52px 0;
  }

  .hero-metrics {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 10px;
  }

  .dimensions-grid,
  .tiers-grid,
  .options-list,
  .result-insight-box,
  .breakdown-list {
    grid-template-columns: 1fr;
  }

  .quiz-shell,
  .result-hero-card {
    padding: 22px 18px;
  }

  .quiz-nav-bar {
    flex-wrap: wrap;
  }

  .step-dots {
    order: 3;
    width: 100%;
    margin-top: 6px;
  }

  .progress-hint {
    display: none;
  }

  .desktop-br {
    display: none;
  }

  .closing-banner {
    padding: 44px 20px;
  }

  .result-motto-card {
    padding: 18px;
    gap: 12px;
  }

  .result-actions .btn {
    width: 100%;
  }
}

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

  .ambient-canvas {
    display: none;
  }

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