/* =========================================================
   古代人生开局生成器 · 奶油金治愈风统一版
   设计目标：
   1) 首页 / 答题页 / 结果页统一为奶油金、暖杏、蜂蜜金体系
   2) 去掉纯白卡片、粉色选项卡片、多彩色块
   3) 结果页改为更完整的“命运报告”阅读体验
   ========================================================= */


/* =========================================================
   色彩变量
   ========================================================= */

:root {
  --page-bg-top: #FFF8E2;
  --page-bg-mid: #F8E4B8;
  --page-bg-bottom: #F1CC86;

  --panel-bg-top: #FFF7E8;
  --panel-bg-bottom: #FFEFCF;

  --card-bg-top: #FFF8EA;
  --card-bg-bottom: #FEECCB;

  --card-highlight-top: #FFF1C8;
  --card-highlight-bottom: #F9D98A;

  --gold-main: #F7BB3F;
  --gold-light: #FFE28B;
  --gold-deep: #B97014;

  --text-title: #6F3F10;
  --text-main: #5D3510;
  --text-soft: #9A6624;

  --border-gold: rgba(226, 184, 111, 0.78);
  --border-soft: rgba(229, 188, 119, 0.62);

  --shadow-soft: rgba(172, 103, 20, 0.12);
  --shadow-gold: rgba(176, 105, 14, 0.22);

  --white-glow: rgba(255, 255, 255, 0.72);

  --deep-purple: #3F2D49;
  --soft-purple: #6A4A70;
}


/* =========================================================
   基础重置
   ========================================================= */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

html {
  font-size: 16px;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 247, 205, 0.95), transparent 36%),
    linear-gradient(180deg, #FFF8E2 0%, #F8E4B8 48%, #F1CC86 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input {
  border: none;
  outline: none;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   应用整体容器
   ========================================================= */

#app {
  width: 100%;
  min-height: 100vh;
  padding: 28px 18px 42px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.view {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   首页
   ========================================================= */

.home-view {
  min-height: calc(100vh - 70px);
  justify-content: center;
  align-items: center;
}

.home-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 30px 22px 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--panel-bg-top) 0%, var(--panel-bg-bottom) 100%);
  border: 1px solid rgba(226, 178, 91, 0.58);
  border-radius: 28px;
  box-shadow:
    0 18px 45px rgba(172, 103, 20, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(246, 222, 170, 0.68);
  border-radius: 22px;
}

.home-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -86px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 240, 0.78), rgba(255, 255, 240, 0) 68%);
  transform: translateX(-50%);
}

.home-glow {
  position: absolute;
  right: -54px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 217, 128, 0.48), rgba(255, 217, 128, 0) 70%);
}

.home-top-decoration {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.home-top-decoration span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 100%);
  box-shadow:
    0 3px 8px rgba(185, 119, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.eyebrow-text,
.site-subtitle,
.qr-block,
.auth-block {
  display: none;
}

.site-title {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--text-title);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
}

.site-title span {
  display: block;
  white-space: nowrap;
}

.intro-card {
  position: relative;
  z-index: 1;
  margin: 0 auto 26px;
  padding: 18px 16px 17px;
  background: linear-gradient(180deg, var(--card-bg-top) 0%, var(--card-bg-bottom) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow:
    0 8px 18px rgba(172, 103, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.intro-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

.home-start-btn {
  width: 86%;
  max-width: 360px;
  min-height: 54px;
  margin: 0 auto;
  color: #5A330C;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #FFE18A 0%, #F6B93D 100%);
  border: 1px solid rgba(178, 112, 20, 0.35);
  border-radius: 999px;
  box-shadow:
    0 10px 22px rgba(178, 112, 20, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.58);
}

.home-start-btn:hover {
  filter: brightness(1.02);
}

.home-start-btn:active {
  transform: scale(0.98);
}

.loading-tip {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(154, 102, 36, 0.82);
  font-size: 12px;
  line-height: 1.5;
}


/* =========================================================
   授权码弹窗
   ========================================================= */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.auth-modal-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 228, 157, 0.28), transparent 32%),
    rgba(81, 48, 15, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 30px 22px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-bg-top) 0%, var(--panel-bg-bottom) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  box-shadow:
    0 22px 60px rgba(111, 67, 22, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  animation: modal-in 0.2s ease;
}

.auth-modal-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(246, 222, 170, 0.7);
  border-radius: 18px;
}

.auth-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(111, 67, 22, 0.72);
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 249, 237, 0.72);
  border: 1px solid rgba(234, 196, 122, 0.52);
  border-radius: 999px;
  box-shadow:
    0 5px 12px rgba(185, 119, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-modal-decoration {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 225, 138, 0), #F6B93D, rgba(255, 225, 138, 0));
}

.auth-modal-title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--text-title);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.auth-modal-desc {
  position: relative;
  z-index: 1;
  margin: 0 auto 20px;
  max-width: 300px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.auth-modal-form {
  position: relative;
  z-index: 1;
}

.auth-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 15px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 48px;
  background: #FFF9ED;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 2px rgba(111, 67, 22, 0.05),
    0 6px 16px rgba(185, 119, 24, 0.08);
}

.auth-input::placeholder {
  color: rgba(160, 107, 42, 0.62);
}

.auth-input:focus {
  background: #FFFaf1;
  border-color: var(--gold-main);
  box-shadow:
    0 0 0 4px rgba(255, 217, 128, 0.36),
    inset 0 1px 2px rgba(111, 67, 22, 0.04);
}

.auth-error {
  margin: 8px 2px 0;
  color: #B35B2C;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.auth-confirm-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  color: #5A330C;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 100%);
  border: 1px solid rgba(178, 112, 20, 0.35);
  border-radius: 999px;
  box-shadow:
    0 10px 22px rgba(178, 112, 20, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.58);
}

.auth-confirm-btn:active {
  transform: scale(0.985);
}

.auth-secondary-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  color: rgba(111, 67, 22, 0.72);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border-radius: 999px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   通用按钮
   ========================================================= */

.primary-btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 14px 20px;
  color: #fffaf3;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  background: linear-gradient(135deg, var(--soft-purple) 0%, var(--deep-purple) 100%);
  border-radius: 14px;
  box-shadow:
    0 10px 22px rgba(63, 45, 73, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.primary-btn:hover {
  filter: brightness(1.03);
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.1);
  box-shadow: none;
}


/* =========================================================
   答题页
   ========================================================= */

.quiz-header {
  margin-top: 8px;
  margin-bottom: 22px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-text {
  flex: 0 0 auto;
  min-width: 44px;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 1px;
}

.progress-bar-outer {
  flex: 1;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 247, 232, 0.72);
  border: 1px solid rgba(226, 184, 111, 0.32);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(172, 103, 20, 0.05);
}

.progress-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #F7BB3F 0%, #8A5218 100%);
  border-radius: 999px;
  transition: width 0.28s ease;
}

.quiz-main {
  position: relative;
  width: 100%;
  padding: 26px 20px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-bg-top) 0%, var(--panel-bg-bottom) 100%);
  border: 1px solid rgba(226, 178, 91, 0.58);
  border-radius: 28px;
  box-shadow:
    0 18px 45px rgba(172, 103, 20, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.quiz-main::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(246, 222, 170, 0.52);
  border-radius: 22px;
}

.quiz-card-decoration {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 187, 63, 0), rgba(247, 187, 63, 0.95), rgba(247, 187, 63, 0));
}

.question-title {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--text-title);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.55;
  text-align: left;
}

.options-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================================
   选项卡片统一风格
   ========================================================= */

.option-item {
  width: 100%;
  min-height: 54px;
  padding: 15px 17px;
  color: #5D3510;
  font-size: 15px;
  line-height: 1.58;
  background: linear-gradient(180deg, #FFF7E8 0%, #FBE8C7 100%);
  border: 1px solid rgba(226, 184, 111, 0.78);
  border-radius: 18px;
  box-shadow:
    0 8px 18px rgba(172, 103, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    filter 0.14s ease,
    background 0.14s ease,
    color 0.14s ease;
}

.option-item.opening-option {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.option-item.story-option {
  text-align: left;
  font-weight: 500;
}

.option-item:hover,
.option-item.is-selected,
.option-item:active {
  background: linear-gradient(180deg, #FFE49A 0%, #F8BF48 100%);
  border-color: rgba(176, 105, 14, 0.6);
  color: #5A330C;
  box-shadow:
    0 8px 18px rgba(176, 105, 14, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.option-item:active {
  transform: scale(0.98);
}

.option-item:disabled {
  cursor: default;
}

.option-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  color: #5A330C;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 247, 220, 0.72);
  border: 1px solid rgba(178, 112, 20, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.option-text {
  vertical-align: middle;
}

.option-item.story-option.has-prefix {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.option-item.story-option.has-prefix .option-prefix {
  margin-top: 1px;
}

.option-item.story-option.has-prefix .option-text {
  display: block;
  flex: 1;
}


/* 兼容旧类名，不再使用多彩色卡 */
.option-color-1,
.option-color-2,
.option-color-3,
.option-color-4,
.option-color-5,
.option-color-6,
.option-color-7,
.option-color-8 {
  background: linear-gradient(180deg, #FFF7E8 0%, #FBE8C7 100%);
}


/* =========================================================
   结果页
   ========================================================= */

.result-view {
  padding-bottom: 10px;
}

.result-card {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 30px 20px 22px;
  overflow: hidden;
  color: var(--text-main);
  background: linear-gradient(180deg, #FFF7E8 0%, #FFEFCF 100%);
  border: 1px solid rgba(226, 178, 91, 0.58);
  border-radius: 28px;
  box-shadow:
    0 18px 45px rgba(172, 103, 20, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(246, 222, 170, 0.52);
  border-radius: 22px;
}

.result-decoration {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
  letter-spacing: 4px;
}

.result-title {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--text-title);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 1px;
}

.result-content {
  position: relative;
  z-index: 1;
}

.result-group-card {
  margin: 0 0 14px;
  padding: 18px 18px 17px;
  background: linear-gradient(180deg, var(--card-bg-top) 0%, var(--card-bg-bottom) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow:
    0 8px 18px rgba(172, 103, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.result-group-card.highlight {
  background: linear-gradient(180deg, var(--card-highlight-top) 0%, var(--card-highlight-bottom) 100%);
  border: 1px solid rgba(178, 112, 20, 0.35);
  box-shadow:
    0 10px 22px rgba(178, 112, 20, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.58);
}

.result-group-title {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 6px 12px;
  color: var(--text-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  background: rgba(255, 247, 220, 0.7);
  border: 1px solid rgba(226, 184, 111, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.result-group-card.highlight .result-group-title {
  background: rgba(255, 249, 225, 0.55);
  border-color: rgba(178, 112, 20, 0.26);
}

.result-group-body p {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.88;
  text-indent: 2em;
}

.result-group-body p:last-child {
  margin-bottom: 0;
}

.result-group-body p.missing {
  color: #B24B42;
  text-indent: 0;
  font-size: 13px;
}


/* 兼容旧版结构 */
.result-segment {
  margin: 0 0 12px;
  padding: 14px 14px 13px;
  background: linear-gradient(180deg, var(--card-bg-top) 0%, var(--card-bg-bottom) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow:
    0 8px 18px rgba(172, 103, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.result-segment p,
.result-content > p {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.85;
  text-indent: 2em;
}

.result-segment.missing p,
.result-content > p.missing {
  color: #B24B42;
  font-size: 13px;
  text-indent: 0;
}

.result-footer {
  display: none;
}


/* =========================================================
   结果页底部按钮
   ========================================================= */

.result-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-actions .primary-btn {
  min-height: 52px;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 18px;
}

.result-actions #saveImgBtn {
  color: #5A330C;
  background: linear-gradient(180deg, #FFE28B 0%, #F7BB3F 100%);
  border: 1px solid rgba(178, 112, 20, 0.35);
  box-shadow:
    0 10px 22px rgba(178, 112, 20, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.58);
}

.result-actions #restartBtn {
  color: #7A4B18;
  background: linear-gradient(180deg, #FFF8EA 0%, #FBE7C3 100%);
  border: 1px solid rgba(226, 184, 111, 0.78);
  box-shadow:
    0 8px 18px rgba(172, 103, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}


/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 56px;
  z-index: 999;
  max-width: calc(100% - 48px);
  padding: 10px 18px;
  color: #fffaf3;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  background: rgba(92, 58, 18, 0.92);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(92, 58, 18, 0.2);
  transform: translateX(-50%);
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/* =========================================================
   大屏微调
   ========================================================= */

@media (min-width: 768px) {
  #app {
    padding: 42px 16px 60px;
  }

  .home-view {
    min-height: calc(100vh - 102px);
  }

  .home-card {
    padding: 36px 30px 32px;
  }

  .intro-card {
    padding: 20px 20px 19px;
  }

  .intro-card p {
    font-size: 16.5px;
  }

  .quiz-main {
    padding: 30px 24px 24px;
  }

  .question-title {
    font-size: 20px;
  }

  .option-item {
    font-size: 15.5px;
  }

  .result-card {
    padding: 34px 26px 24px;
  }

  .result-title {
    font-size: 24px;
  }

  .result-group-card {
    padding: 20px 20px 18px;
  }
}


/* =========================================================
   手机端适配
   ========================================================= */

@media (max-width: 390px) {
  #app {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-card {
    padding: 28px 18px 25px;
    border-radius: 26px;
  }

  .site-title {
    font-size: clamp(27px, 7.3vw, 34px);
    margin-bottom: 22px;
  }

  .intro-card {
    padding: 16px 13px 15px;
  }

  .intro-card p {
    font-size: 15px;
    line-height: 1.72;
  }

  .home-start-btn {
    width: 90%;
    min-height: 52px;
  }

  .auth-modal {
    padding: 18px;
  }

  .auth-modal-card {
    padding: 28px 18px 22px;
    border-radius: 23px;
  }

  .result-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  #app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-card,
  .quiz-main,
  .result-card {
    border-radius: 22px;
  }

  .home-card {
    padding: 27px 16px 24px;
  }

  .site-title {
    font-size: clamp(25px, 7.2vw, 31px);
    letter-spacing: 0.01em;
  }

  .intro-card p {
    font-size: 14.5px;
  }

  .question-title {
    font-size: 18px;
  }

  .option-item {
    padding: 14px 15px;
    font-size: 14.5px;
  }

  .result-title {
    font-size: 21px;
  }

  .result-group-card {
    padding: 16px 14px 15px;
  }

  .result-group-body p {
    font-size: 14.5px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   首页留白增强版：让变化更明显
   目标：
   1) 标题更舒展
   2) 文案卡呼吸感更强
   3) 主卡片更像完整封面
   4) 按钮和内容之间距离更舒服
   ========================================================= */

.home-view {
  justify-content: center;
  align-items: center;
}

.home-card {
  max-width: 460px;
  padding: 56px 30px 42px;
  border-radius: 34px;
  transform: translateY(-2vh);
}

.home-card::before {
  inset: 13px;
  border-radius: 28px;
}

.home-top-decoration {
  margin-bottom: 28px;
}

.site-title {
  margin: 0 0 36px;
  font-size: clamp(32px, 5.2vw, 42px);
font-size: clamp(32px, 5.2vw, 42px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.intro-card {
  margin: 0 auto 38px;
  padding: 28px 24px;
  border-radius: 23px;
}

.intro-card p {
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.02em;
}

.home-start-btn {
  min-height: 60px;
  font-size: 18px;
  letter-spacing: 0.1em;
}


/* 中等屏幕：比如你截图里这种半屏浏览器宽度 */
@media (max-width: 820px) {
  .home-card {
    max-width: 450px;
    padding: 52px 28px 40px;
  }

  .site-title {
    margin-bottom: 34px;
    font-size: clamp(33px, 5.8vw, 44px);
    line-height: 1.22;
  }

  .intro-card {
    margin-bottom: 36px;
    padding: 27px 23px;
  }

  .intro-card p {
    font-size: 16.5px;
    line-height: 2.02;
  }
}


/* 手机端：保持舒展，但避免撑得太高 */
@media (max-width: 480px) {
  #app {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-card {
    max-width: 430px;
    padding: 46px 24px 36px;
    border-radius: 31px;
    transform: translateY(-1.5vh);
  }

  .home-card::before {
    inset: 11px;
    border-radius: 25px;
  }

  .home-top-decoration {
    margin-bottom: 24px;
  }

  .site-title {
    margin-bottom: 32px;
    font-size: clamp(31px, 8vw, 39px);
    line-height: 1.22;
  }

  .intro-card {
    margin-bottom: 34px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .intro-card p {
    font-size: 16px;
    line-height: 2;
  }

  .home-start-btn {
    min-height: 58px;
    font-size: 17px;
  }
}


/* 小屏手机：防止内容过高 */
@media (max-width: 360px) {
  .home-card {
    padding: 40px 18px 32px;
    border-radius: 28px;
    transform: translateY(-1vh);
  }

  .home-top-decoration {
    margin-bottom: 21px;
  }

  .site-title {
    margin-bottom: 28px;
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.2;
  }

  .intro-card {
    margin-bottom: 30px;
    padding: 21px 15px;
  }

  .intro-card p {
    font-size: 15px;
    line-height: 1.9;
  }

  .home-start-btn {
    min-height: 55px;
    font-size: 16px;
  }
}


/* 低高度屏幕：避免首页卡片被顶出视口 */
@media (max-height: 680px) {
  .home-card {
    padding-top: 38px;
    padding-bottom: 32px;
    transform: translateY(0);
  }

  .home-top-decoration {
    margin-bottom: 20px;
  }

  .site-title {
    margin-bottom: 26px;
    line-height: 1.18;
  }

  .intro-card {
    margin-bottom: 28px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .intro-card p {
    line-height: 1.85;
  }
}
/* =========================================================
   首页开始按钮：固定为金色，覆盖通用 primary-btn 紫色样式
   ========================================================= */

.home-card .home-start-btn,
.home-card .home-start-btn.primary-btn {
  color: #5A330C;
  background: linear-gradient(180deg, #FFE28B 0%, #F7BB3F 100%);
  border: 1px solid rgba(178, 112, 20, 0.35);
  box-shadow:
    0 12px 24px rgba(178, 112, 20, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.home-card .home-start-btn:hover,
.home-card .home-start-btn.primary-btn:hover {
  color: #5A330C;
  background: linear-gradient(180deg, #FFE896 0%, #F8BE45 100%);
  filter: brightness(1.02);
  box-shadow:
    0 14px 28px rgba(178, 112, 20, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.64);
}

.home-card .home-start-btn:active,
.home-card .home-start-btn.primary-btn:active {
  transform: scale(0.985);
  background: linear-gradient(180deg, #F9C955 0%, #EFAE31 100%);
  box-shadow:
    0 8px 18px rgba(178, 112, 20, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
