/* ═══════════════════════════════════════════════
   LITERA · 文学人物原型测试 — Complete Stylesheet
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Songti SC", "STSong", "STKaiti", "SimSun", "Noto Serif SC", "Source Han Serif SC", 宋体, Georgia, serif;
  background: #f4f1ea;
  color: #1d1916;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; }
::selection { background: rgba(159, 74, 61, 0.18); }

/* ── Quiz Shell Layout ────────────────────────── */
.quiz-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
.quiz-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════
   INTRO PAGE
   ═══════════════════════════════════════════════ */
.literature-intro {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(159, 74, 61, 0.06), transparent 40%),
    linear-gradient(255deg, rgba(105, 115, 98, 0.10), transparent 45%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.6), transparent 50%),
    #f4f1ea;
}
.literature-intro::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 26, 22, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 26, 22, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 52%, transparent 80%);
}
.intro-shell {
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.intro-shell .kicker {
  font-size: 11px;
  letter-spacing: 3px;
  color: #9f4a3d;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.intro-shell .sub {
  font-size: 12px;
  color: #8b7e6f;
  font-style: italic;
  margin-bottom: 28px;
  font-family: Georgia, serif;
}
.intro-shell h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #1d1916;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
}
.intro-shell .cn-title {
  font-size: 20px;
  color: #9f4a3d;
  letter-spacing: 4px;
  margin-bottom: 24px;
  font-weight: 500;
}
.intro-shell .copy {
  font-size: 14px;
  color: #5c5048;
  line-height: 2;
  margin-bottom: 20px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.intro-shell .ornament {
  color: #c4a45b;
  letter-spacing: 6px;
  margin-bottom: 36px;
  font-size: 16px;
}
.intro-shell .main-btn {
  display: block;
  width: 220px;
  margin: 0 auto 16px;
  padding: 14px 36px;
  background: #9f4a3d;
  color: #fff;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(159, 74, 61, 0.28);
}
.intro-shell .main-btn:hover {
  background: #b85648;
  box-shadow: 0 6px 20px rgba(159, 74, 61, 0.38);
  transform: translateY(-1px);
}
.intro-shell .main-btn:active { transform: translateY(0); }
.intro-shell .history-entry {
  font-size: 13px;
  color: #7d6f62;
  padding: 8px 20px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.intro-shell .history-entry:hover { color: #9f4a3d; }
.intro-shell .footer-meta {
  margin-top: 48px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #b0a395;
  line-height: 1.8;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   AUTH PAGE
   ═══════════════════════════════════════════════ */
.auth-shell { max-width: 360px; }
.auth-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 18px;
  animation: authFloat 3s ease-in-out infinite;
}
@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.auth-input {
  display: block;
  width: 260px;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 14px 16px;
  border: 1px solid rgba(159, 74, 61, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d1916;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 4px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(33, 26, 22, 0.04);
}
.auth-input:focus {
  outline: none;
  border-color: rgba(159, 74, 61, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(159, 74, 61, 0.08);
}
.auth-input.error {
  border-color: #9f4a3d;
  animation: authShake 0.42s ease;
}
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.auth-btn { margin-bottom: 8px !important; }
.auth-error {
  min-height: 22px;
  color: #9f4a3d;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   QUESTIONNAIRE
   ═══════════════════════════════════════════════ */
.question-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 40px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(159, 74, 61, 0.04), transparent 40%),
    linear-gradient(255deg, rgba(105, 115, 98, 0.08), transparent 45%),
    #f4f1ea;
}
.question-top {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.question-meta .section-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #9f4a3d;
  text-transform: none;
}
.question-meta .q-counter {
  font-size: 12px;
  color: #b0a395;
  font-family: Georgia, serif;
  letter-spacing: 1px;
}
.progressbar {
  width: 100%;
  height: 2px;
  background: rgba(159, 74, 61, 0.12);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 36px;
}
.progress-fill {
  height: 100%;
  background: #9f4a3d;
  border-radius: 1px;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.question-shell h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 32px;
  color: #1d1916;
  text-align: left;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(159, 74, 61, 0.12);
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  color: #3d3530;
  transition: all 0.25s ease;
  width: 100%;
}
.option-card:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(159, 74, 61, 0.32);
  box-shadow: 0 4px 16px rgba(159, 74, 61, 0.10);
  transform: translateX(2px);
}
.option-card:active {
  transform: translateX(0);
}
.option-id {
  flex-shrink: 0;
  font-weight: 700;
  color: #9f4a3d;
  font-size: 15px;
  font-family: Georgia, serif;
  margin-top: 1px;
}
.back-btn {
  margin-top: 24px;
  align-self: flex-start;
  font-size: 13px;
  color: #7d6f62;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}
.back-btn:hover { color: #9f4a3d; }
.home-btn {
  margin-top: auto;
  padding-top: 32px;
  font-size: 12px;
  color: #b0a395;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.home-btn:hover { color: #9f4a3d; }

/* ═══════════════════════════════════════════════
   ANALYSIS (Loading)
   ═══════════════════════════════════════════════ */
.literature-analysis {
  position: fixed;
  inset: 0;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  justify-items: center;
  align-items: center;
  padding: 34px 22px 44px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(159, 74, 61, 0.08), transparent 38%),
    linear-gradient(245deg, rgba(105, 115, 98, 0.16), transparent 42%),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.82), transparent 34%),
    #f4f1ea;
  color: #211a16;
  text-align: center;
}
.literature-analysis::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 26, 22, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 26, 22, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 0 54%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 54%, transparent 78%);
}
.analysis-copy {
  grid-row: 3;
  z-index: 2;
}
.analysis-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: #9f4a3d;
  margin-bottom: 10px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.analysis-copy h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.analysis-copy p {
  font-size: 14px;
  color: #7d6f62;
}
.analysis-progress {
  grid-row: 4;
  align-self: start;
  margin-top: 24px;
  width: min(280px, 80vw);
  z-index: 2;
}
.analysis-progress__track {
  height: 3px;
  background: rgba(159, 74, 61, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.analysis-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #9f4a3d, #c4a45b);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.analysis-progress span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #9f4a3d;
  font-family: Georgia, serif;
}

/* ── Book Animation ───────────────────────────── */
.book-stage {
  position: relative;
  grid-row: 2;
  width: 300px;
  height: 230px;
  display: grid;
  place-items: center;
  isolation: isolate;
  animation: stage-enter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.book-halo {
  position: absolute;
  width: 226px; height: 226px;
  border: 1px solid rgba(159, 74, 61, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(196, 164, 91, 0.08), 0 30px 94px rgba(60, 45, 34, 0.2);
  animation: halo-breathe 1.8s ease-in-out infinite;
}
.book-halo::before,
.book-halo::after {
  content: "";
  position: absolute;
  inset: 21px;
  border: 1px dashed rgba(105, 115, 98, 0.36);
  border-radius: 50%;
}
.book-halo::after {
  inset: 56px;
  border-style: solid;
  border-color: rgba(196, 164, 91, 0.32);
}
.turning-book {
  position: relative;
  width: 220px; height: 142px;
  transform-style: preserve-3d;
  perspective: 860px;
  animation: book-float 2.4s ease-in-out infinite;
}
.book-cover, .book-page, .turn-page {
  position: absolute;
  inset: 0;
  border-radius: 3px 8px 8px 3px;
}
.book-cover--left {
  background: linear-gradient(135deg, #9f4a3d, #7a3a2e);
  box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.22);
}
.book-cover--right {
  background: linear-gradient(225deg, #9f4a3d, #7a3a2e);
  box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.22);
}
.book-shadow {
  position: absolute;
  bottom: -20px; left: 10%;
  width: 80%; height: 14px;
  background: radial-gradient(ellipse, rgba(60, 45, 34, 0.32), transparent 70%);
  filter: blur(6px);
}
.book-page--left, .book-page--right {
  background: linear-gradient(180deg, #fbf7ef, #f0e8d8);
  overflow: hidden;
}
.book-page--left { border-radius: 3px 0 0 3px; }
.book-page--right { border-radius: 0 8px 8px 0; }
.page-rule {
  display: block;
  height: 3px;
  margin: 16px 14px 12px;
  background: rgba(159, 74, 61, 0.12);
  border-radius: 1px;
}
.page-rule--short { width: 30px; }
.page-rule--wide { width: calc(100% - 28px); height: 2px; margin-top: 10px; }
.page-mark {
  display: block;
  width: 6px; height: 6px;
  margin: 10px 14px;
  background: #9f4a3d;
  border-radius: 50%;
  opacity: 0.5;
}
.turn-page--one {
  background: linear-gradient(180deg, #fbf7ef 0%, #f0e8d8 100%);
  transform-origin: right center;
  animation: page-turn-1 2.4s ease-in-out infinite;
  z-index: 5;
}
.turn-page--two {
  background: linear-gradient(180deg, #f5efe2 0%, #e8dcc6 100%);
  transform-origin: right center;
  animation: page-turn-2 2.4s ease-in-out infinite;
  z-index: 4;
}
.turn-page--three {
  background: linear-gradient(180deg, #efe6d4 0%, #e0d3ba 100%);
  transform-origin: right center;
  animation: page-turn-3 2.4s ease-in-out infinite;
  z-index: 3;
}
.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #5c2a22, #4a2218);
  border-radius: 3px 0 0 3px;
  z-index: 6;
}
@keyframes stage-enter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes halo-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}
@keyframes book-float {
  0%, 100% { transform: translateY(0) rotateX(4deg); }
  50% { transform: translateY(-8px) rotateX(4deg); }
}
@keyframes page-turn-1 {
  0%, 20% { transform: rotateY(0deg); z-index: 5; }
  50% { transform: rotateY(-160deg); z-index: 5; }
  80%, 100% { transform: rotateY(-180deg); z-index: 2; }
}
@keyframes page-turn-2 {
  0%, 35% { transform: rotateY(0deg); z-index: 4; }
  65% { transform: rotateY(-160deg); z-index: 4; }
  95%, 100% { transform: rotateY(-180deg); z-index: 1; }
}
@keyframes page-turn-3 {
  0%, 50% { transform: rotateY(0deg); z-index: 3; }
  80% { transform: rotateY(-160deg); z-index: 3; }
  100% { transform: rotateY(-180deg); z-index: 0; }
}

/* ═══════════════════════════════════════════════
   RESULT PAGE
   ═══════════════════════════════════════════════ */
.literature-result {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(159, 74, 61, 0.04) 0%, transparent 20%),
    linear-gradient(0deg, rgba(105, 115, 98, 0.08) 0%, transparent 20%),
    #f4f1ea;
}
.result-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 60px;
}
.capture-card {
  background: rgba(250, 247, 241, 0.94);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(60, 45, 34, 0.08);
}
/* Brand bar */
.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(159, 74, 61, 0.10);
  font-size: 11px;
  letter-spacing: 3px;
  color: #9f4a3d;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}
.brand-bar span:last-child {
  color: #b0a395;
  font-size: 10px;
}
/* Hero */
.hero {
  padding: 48px 32px 36px;
  text-align: center;
  position: relative;
}
.hero .section-kicker {
  font-size: 12px;
  color: #7d6f62;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1d1916;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.result-meta {
  font-size: 13px;
  color: #9f4a3d;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.result-p, blockquote {
  font-size: 15px;
  line-height: 2;
  color: #3d3530;
}
blockquote {
  padding: 0 20px;
  font-style: italic;
  color: #5c5048;
  border-left: none;
  margin-bottom: 20px;
  position: relative;
}
blockquote::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: #c4a45b;
  margin: 0 auto 16px;
}
blockquote::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: #c4a45b;
  margin: 16px auto 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.tags span {
  font-size: 11px;
  padding: 4px 14px;
  border: 1px solid rgba(159, 74, 61, 0.2);
  border-radius: 20px;
  color: #9f4a3d;
  background: rgba(159, 74, 61, 0.04);
  letter-spacing: 1px;
}
/* Result sections */
.result-section {
  padding: 36px 32px;
  border-top: 1px solid rgba(159, 74, 61, 0.08);
}
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: #9f4a3d;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
}
.section-label i { font-size: 18px; }
.result-section .result-p {
  margin-bottom: 14px;
}
/* Radar chart */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.radar-chart {
  width: min(340px, 100%);
  height: auto;
}
.radar-chart .radar-grid {
  fill: none;
  stroke: rgba(159, 74, 61, 0.08);
  stroke-width: 1;
}
.radar-chart .radar-axis {
  stroke: rgba(159, 74, 61, 0.08);
  stroke-width: 1;
}
.radar-chart .radar-area {
  fill: rgba(159, 74, 61, 0.15);
  stroke: #9f4a3d;
  stroke-width: 2;
  transition: all 0.6s ease;
}
.radar-chart .radar-point {
  fill: #9f4a3d;
  stroke: #fff;
  stroke-width: 1.5;
}
.radar-chart .radar-label {
  font-size: 11px;
  fill: #5c5048;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 500;
}
/* Radar legend */
.radar-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.radar-legend-item {
  cursor: default;
}
.radar-legend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.radar-legend-name {
  font-size: 13px;
  font-weight: 600;
  color: #3d3530;
}
.radar-legend-value {
  font-size: 13px;
  color: #9f4a3d;
  font-family: Georgia, serif;
  font-weight: 700;
}
.meter-bar {
  height: 4px;
  background: rgba(159, 74, 61, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #9f4a3d, #c4a45b);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.radar-legend-desc {
  font-size: 12px;
  color: #8b7e6f;
  margin-top: 4px;
}
/* Relation grid */
.relation-grid {
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid rgba(159, 74, 61, 0.08);
  padding-top: 36px;
  padding-bottom: 36px;
}
.relation-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(159, 74, 61, 0.06);
}
.relation-label {
  font-size: 13px;
  font-weight: 600;
  color: #9f4a3d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.relation-copy {
  font-size: 13px;
  line-height: 1.8;
  color: #5c5048;
}
/* Prescription */
.prescription {
  padding: 36px 32px;
  border-top: 1px solid rgba(159, 74, 61, 0.08);
}
.prescription-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prescription-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(159, 74, 61, 0.03);
  border-radius: 8px;
  border-left: 3px solid #c4a45b;
}
.prescription-index {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #c4a45b;
  font-family: Georgia, serif;
}
.prescription-copy {
  font-size: 13px;
  line-height: 1.8;
  color: #5c5048;
}
/* Books */
.books {
  padding: 36px 32px;
  border-top: 1px solid rgba(159, 74, 61, 0.08);
}
.books h2.section-kicker,
.section-kicker {
  font-size: 14px;
  font-weight: 600;
  color: #9f4a3d;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
}
.books > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.book-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(159, 74, 61, 0.06);
}
.book-role {
  font-size: 11px;
  color: #c4a45b;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.book-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1916;
  margin-bottom: 2px;
}
.book-author {
  font-size: 12px;
  color: #9f4a3d;
  margin-bottom: 10px;
}
.book-reason {
  font-size: 13px;
  line-height: 1.8;
  color: #5c5048;
}
/* Result actions */
.result-actions {
  padding: 36px 32px 0;
  border-top: 1px solid rgba(159, 74, 61, 0.08);
}
.action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.restart-btn {
  flex: 1;
  padding: 14px;
  background: #9f4a3d;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  transition: all 0.25s ease;
}
.restart-btn:hover {
  background: #b85648;
  box-shadow: 0 4px 14px rgba(159, 74, 61, 0.28);
}
.share-slot {
  flex: 1;
}
.share-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px solid rgba(159, 74, 61, 0.3);
  color: #9f4a3d;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  transition: all 0.25s ease;
}
.share-btn:hover {
  border-color: #9f4a3d;
  background: rgba(159, 74, 61, 0.05);
}

/* ═══════════════════════════════════════════════
   HISTORY
   ═══════════════════════════════════════════════ */
.history-list {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(159, 74, 61, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(159, 74, 61, 0.2);
}
.history-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d1916;
}
.history-date {
  font-size: 12px;
  color: #b0a395;
  font-family: Georgia, serif;
}
.history-source {
  font-size: 12px;
  color: #9f4a3d;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 520px) {
  .intro-shell h1 { font-size: 44px; letter-spacing: 6px; }
  .intro-shell .cn-title { font-size: 18px; }
  .question-shell h2 { font-size: 18px; }
  .hero h1 { font-size: 28px; }
  .relation-grid { grid-template-columns: 1fr; }
  .option-card { padding: 16px; font-size: 13px; }
  .result-section, .prescription, .books, .relation-grid, .result-actions {
    padding-left: 20px; padding-right: 20px;
  }
  .hero { padding: 36px 20px 28px; }
  .action-row { flex-direction: column; }
  .share-slot { width: 100%; }
}
