/* ========================================
   金钱脚本测评 · 样式表
   风格：暖奶油 · 铜色描边 · 克制优雅
======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
               "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: #f7f4ef;
  color: #1c1c1c;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: none;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.page.active {
  display: block;
  padding: 48px 24px 60px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   封面页
======================================== */

.cover-wrap {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.cover-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  color: #8b6f47;
  margin-bottom: 32px;
  font-weight: 500;
}

.cover-title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 1px;
  color: #1c1c1c;
  margin-bottom: 28px;
}

.cover-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, #8b6f47, transparent);
  margin: 0 auto 28px;
}

.cover-lead {
  font-size: 15px;
  line-height: 2;
  color: #4a4a4a;
  text-align: left;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

.cover-scripts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 40px;
}

.script-chip {
  background: #ffffff;
  border: 1px solid #e5dfd5;
  border-radius: 6px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s ease;
}

.script-chip .chip-name {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
  letter-spacing: 0.5px;
}

.script-chip .chip-desc {
  font-size: 11px;
  color: #8b6f47;
  letter-spacing: 0.3px;
}

.btn-main {
  display: inline-block;
  background: #1c1c1c;
  color: #f7f4ef;
  border: none;
  padding: 16px 64px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-main:hover { background: #333; }
.btn-main:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #1c1c1c;
  border: 1px solid #c9bfae;
  padding: 14px 44px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-bottom: 24px;
}

.btn-ghost:active { border-color: #8b6f47; color: #8b6f47; }

.cover-note {
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 28px;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

/* ========================================
   题目页
======================================== */

.quiz-wrap {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.quiz-top { margin-bottom: 48px; }

.progress-track {
  width: 100%;
  height: 2px;
  background: #e5dfd5;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #8b6f47;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8a8a8a;
  letter-spacing: 1px;
}

.counter { font-weight: 500; color: #8b6f47; }

.quiz-body { animation: qIn 0.35s ease-out; }

@keyframes qIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-text {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  line-height: 1.65;
  color: #1c1c1c;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
  min-height: 80px;
}

.scale-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scale-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5dfd5;
  border-radius: 6px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
  position: relative;
}

.scale-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 6px 0 0 6px;
  transition: background 0.2s ease;
}

.scale-btn:active {
  border-color: #8b6f47;
  background: #faf7f2;
  transform: scale(0.99);
}

.scale-btn:active::before { background: #8b6f47; }

.scale-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid #d9d2c5;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #8b6f47;
  flex-shrink: 0;
}

.scale-label {
  font-size: 15px;
  color: #4a4a4a;
  letter-spacing: 0.5px;
}

/* ========================================
   结果页
======================================== */

.result-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.result-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  color: #8b6f47;
  margin-bottom: 20px;
}

.result-title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  color: #1c1c1c;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

/* ---- 金钱健康状态卡 ---- */
.health-container {
  margin-bottom: 20px;
}

.health-card {
  border-radius: 10px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.health-card.health-good {
  background: linear-gradient(135deg, #e8f0e6 0%, #f5f8f2 100%);
  border: 1px solid #c5d9bd;
}

.health-card.health-mixed {
  background: linear-gradient(135deg, #faf6ec 0%, #fdfbf6 100%);
  border: 1px solid #e5d5a8;
}

.health-card.health-attention {
  background: linear-gradient(135deg, #fbeee6 0%, #fdf8f4 100%);
  border: 1px solid #e5c0a8;
}

.health-label {
  font-size: 11px;
  letter-spacing: 5px;
  margin-bottom: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.health-good .health-label { color: #4a7a3f; }
.health-mixed .health-label { color: #8a7340; }
.health-attention .health-label { color: #a06030; }

.health-title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 24px;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.health-oneliner {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.9;
  letter-spacing: 0.3px;
  max-width: 420px;
  margin: 0 auto;
}

/* ---- 分数卡片 ---- */
.scores-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.score-card {
  background: #ffffff;
  border: 1px solid #e5dfd5;
  border-radius: 8px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.score-name {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 19px;
  font-weight: 600;
  color: #1c1c1c;
  letter-spacing: 1px;
}

.score-value {
  font-size: 13px;
  color: #8a8a8a;
  letter-spacing: 1px;
}

.score-value strong {
  font-size: 18px;
  color: #8b6f47;
  font-weight: 700;
  margin-right: 2px;
}

.score-bar-track {
  width: 100%;
  height: 6px;
  background: #f0ebe1;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.level-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-weight: 600;
}

.level-green  { background: #e8f0e6; color: #4a7a3f; }
.level-yellow { background: #f5efdc; color: #8a7340; }
.level-orange { background: #f5e5d8; color: #a06030; }
.level-red    { background: #f2dede; color: #9a3a3a; }

/* 一句话描述 */
.score-oneliner {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 15px;
  line-height: 1.75;
  color: #1c1c1c;
  letter-spacing: 0.3px;
  padding: 12px 0 14px;
  border-top: 1px dashed #e5dfd5;
  border-bottom: 1px dashed #e5dfd5;
  margin-bottom: 16px;
  font-style: italic;
}

.score-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #4a4a4a;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

/* 建议区块 */
.score-advice {
  background: #faf7f2;
  border-left: 3px solid #8b6f47;
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
}

.advice-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #8b6f47;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.advice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advice-list li {
  font-size: 13px;
  line-height: 1.85;
  color: #4a4a4a;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.advice-list li:last-child { margin-bottom: 0; }

.advice-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #c9bfae;
  font-weight: 600;
}

.result-footer {
  text-align: center;
  padding-top: 20px;
}

.result-note {
  font-size: 12px;
  color: #9a9a9a;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

/* ========================================
   响应式
======================================== */

@media (max-width: 480px) {
  .page.active { padding: 36px 18px 48px; }

  .cover-title { font-size: 27px; }
  .cover-lead { font-size: 14px; }

  .question-text { font-size: 19px; min-height: 70px; margin-bottom: 32px; }

  .scale-btn { padding: 14px 16px; gap: 13px; }
  .scale-label { font-size: 14px; }

  .result-title { font-size: 22px; }
  .score-card { padding: 20px 18px; }
  .score-name { font-size: 17px; }
  .score-desc { font-size: 13px; }
  .score-oneliner { font-size: 14px; }

  .health-card { padding: 22px 20px; }
  .health-title { font-size: 21px; }
  .health-oneliner { font-size: 14px; }
}

@media (min-width: 768px) {
  .scale-btn:hover {
    border-color: #c9bfae;
    background: #fbf9f5;
  }
  .scale-btn:hover::before { background: #c9bfae; }

  .script-chip:hover {
    border-color: #c9bfae;
    transform: translateY(-2px);
  }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9d2c5; border-radius: 4px; }