﻿:root {
  --ink: #182c2a;
  --muted: #73807c;
  --paper: #f7f8f3;
  --white: #ffffff;
  --jade: #176b5b;
  --jade-dark: #0c5145;
  --jade-soft: #e8f2ed;
  --gold: #d89938;
  --gold-soft: #fff5df;
  --red: #c86558;
  --red-soft: #fff0ec;
  --line: #e5e9e3;
  --shadow: 0 18px 50px rgba(30, 57, 52, 0.09);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #e9ede8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.95), transparent 34%), #e8ede8;
}
button {
  margin: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(27, 51, 47, .12);
}
.screen {
  display: none;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 22px;
  padding-top: calc(22px + env(safe-area-inset-top));
  padding-right: calc(22px + env(safe-area-inset-right));
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  padding-left: calc(22px + env(safe-area-inset-left));
}
.screen.is-active { display: flex; animation: screen-in 180ms ease-out both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.home-screen {
  flex-direction: column;
  background: radial-gradient(circle at 95% 3%, rgba(216,153,56,.11), transparent 26%),
    linear-gradient(180deg, #fbfcf7 0%, var(--paper) 58%);
}
.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}
.brand {
  margin: 0;
  font-family: STKaiti, KaiTi, "KaiTi SC", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}
.brand span { color: var(--jade); }
.day-mark {
  display: grid;
  width: 58px;
  height: 67px;
  overflow: hidden;
  border: 1px solid rgba(23,107,91,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.76);
  text-align: center;
}
.day-mark__month {
  align-content: center;
  height: 22px;
  color: white;
  background: var(--jade);
  font-size: 12px;
  letter-spacing: .12em;
}
.day-mark__date {
  align-content: center;
  font-family: Georgia, serif;
  font-size: 24px;
}
.growth-card {
  padding: 20px 18px 18px;
  border: 1px solid rgba(23,107,91,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}
.rank-row { display: flex; align-items: center; }
.rank-seal {
  display: grid;
  width: 47px;
  height: 47px;
  margin-right: 12px;
  place-items: center;
  border-radius: 14px;
  color: #f6e7c2;
  background: var(--jade);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.12);
  font-family: STKaiti, KaiTi, serif;
  font-size: 24px;
  font-weight: 700;
}
.card-label, .stat-item p, .progress-meta, .daily-card p, .footer-hint { color: var(--muted); }
.card-label { margin: 0 0 2px; font-size: 12px; }
.rank-row h2 { margin: 0; font-size: 18px; }
.rank-chip {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--jade);
  background: var(--jade-soft);
  font-size: 12px;
  font-weight: 700;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  margin: 21px 0 18px;
  padding: 18px 5px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  column-gap: 8px;
}
.stat-item > div { display: flex; align-items: baseline; gap: 3px; }
.stat-item strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1; }
.stat-item > div span { font-size: 12px; font-weight: 600; }
.stat-item p { grid-column: 2; margin: 5px 0 0; font-size: 12px; }
.stat-icon {
  display: grid;
  width: 31px;
  height: 31px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 50%;
}
.fire-icon { color: #d66b45; background: #fff0e6; }
.fire-icon svg { width: 19px; fill: currentColor; }
.qi-icon {
  color: var(--gold);
  background: var(--gold-soft);
  font-family: STKaiti, KaiTi, serif;
  font-size: 17px;
  font-weight: 700;
}
.stat-divider { width: 1px; background: var(--line); }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.progress-meta span:last-child { color: var(--jade); font-weight: 700; }
.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0eb;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c8a77, var(--jade));
  transition: width 400ms ease;
}
.daily-card {
  position: relative;
  display: flex;
  min-height: 142px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: #e9f1e9;
}
.daily-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 70%;
  padding: 20px 0 20px 19px;
}
.daily-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  color: white;
  background: var(--jade);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.daily-card h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.daily-card h2 strong { color: var(--jade); font-family: Georgia, serif; font-size: 24px; }
.daily-card p { margin: 5px 0 0; font-size: 12px; }
.daily-illustration { position: absolute; right: -4px; bottom: -1px; width: 143px; }
.daily-illustration svg { display: block; width: 100%; }
.sun { fill: #e4bd71; opacity: .8; }
.hill-back { fill: #bdd3c4; }
.hill-front { fill: #6f9c86; }
.path { fill: none; stroke: #f4ead6; stroke-width: 7; stroke-linecap: round; }
.bird { fill: none; stroke: #53766a; stroke-width: 1.5; stroke-linecap: round; }

.screen-footer { margin-top: auto; padding-top: 24px; }
.primary-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--jade);
  box-shadow: 0 12px 24px rgba(23,107,91,.2);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.primary-button:active { transform: scale(.985); background: var(--jade-dark); }
.primary-button:focus-visible, .option-button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible {
  outline: 3px solid rgba(216,153,56,.38);
  outline-offset: 2px;
}
.primary-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-hint { margin: 12px 0 0; text-align: center; font-size: 12px; letter-spacing: .08em; }

/* 答题 */
.quiz-screen {
  flex-direction: column;
  background: linear-gradient(rgba(23,107,91,.035) 1px, transparent 1px), var(--paper);
  background-size: 100% 32px;
}
.quiz-header {
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
}
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.8);
  cursor: pointer;
}
.icon-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.level-title { text-align: center; }
.level-title span {
  display: block;
  font-family: STKaiti, KaiTi, serif;
  font-size: 19px;
  font-weight: 700;
}
.level-title small { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.qi-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}
.qi-badge b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: #8c5b16;
  background: var(--gold-soft);
  font-family: STKaiti, KaiTi, serif;
  font-size: 13px;
}
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 28px 15px 34px;
}
.step {
  position: relative;
  display: grid;
  flex: 1;
  justify-items: center;
  color: #aeb7b3;
  font-size: 12px;
}
.step:not(:last-child)::before {
  position: absolute;
  z-index: 0;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #dde3de;
  content: "";
}
.step.is-complete:not(:last-child)::before { background: var(--jade); }
.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 16px;
  height: 16px;
  margin-bottom: 7px;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #ccd3cf;
  box-shadow: 0 0 0 1px #ccd3cf;
}
.step.is-complete .step-dot { background: var(--jade); box-shadow: 0 0 0 1px var(--jade); }
.step.is-current { color: var(--jade); font-weight: 700; }
.step.is-current .step-dot { background: var(--gold); box-shadow: 0 0 0 3px #f6e6c5; }
.question-card {
  padding: 23px 18px 18px;
  border: 1px solid rgba(23,107,91,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.question-type {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.question-type span:first-child { width: 18px; height: 2px; background: var(--gold); }
.question-card h2 {
  min-height: 57px;
  margin: 15px 0 22px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
}
.options { display: grid; gap: 11px; }
.option-button {
  display: grid;
  min-height: 60px;
  padding: 9px 14px 9px 11px;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe5df;
  border-radius: 15px;
  color: var(--ink);
  background: #fbfcfa;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.option-button:active { transform: scale(.99); }
.option-button:disabled { cursor: default; }
.option-button.is-selected { border-color: var(--jade); background: var(--jade-soft); }
.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--jade);
  background: var(--jade-soft);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}
.option-text { font-size: 15px; line-height: 1.5; }
.quiz-note {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  margin-top: 22px;
  color: #909a96;
  font-size: 12px;
}
.quiz-note svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 正误反馈 */
.feedback-screen { flex-direction: column; }
.correct-screen {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(101,164,140,.2), transparent 43%), var(--paper);
}
.feedback-content, .wrong-top { text-align: center; }
.result-emblem {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto 21px;
  place-items: center;
  border-radius: 50%;
}
.result-emblem svg {
  width: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.correct-emblem {
  color: white;
  background: var(--jade);
  box-shadow: 0 0 0 10px rgba(23,107,91,.09), 0 16px 35px rgba(23,107,91,.2);
}
.result-kicker {
  margin: 0 0 6px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.feedback-content h2, .wrong-top h2 {
  margin: 0;
  font-family: STKaiti, KaiTi, serif;
  font-size: 32px;
}
.reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid #f0d49d;
  border-radius: 99px;
  color: #8c601e;
  background: var(--gold-soft);
}
.reward-pill span { font-size: 12px; }
.reward-pill strong { font-family: Georgia, serif; font-size: 21px; }
.auto-next { margin: 35px 0 0; color: var(--muted); font-size: 12px; }
.loading-dots { display: inline-flex; gap: 3px; margin-left: 5px; vertical-align: middle; }
.loading-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.wrong-screen {
  background: radial-gradient(circle at 50% 0%, rgba(200,101,88,.08), transparent 31%), var(--paper);
}
.wrong-top { padding-top: 34px; }
.wrong-emblem {
  width: 70px;
  height: 70px;
  margin-bottom: 17px;
  color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 8px rgba(200,101,88,.06);
}
.wrong-emblem svg { width: 34px; }
.wrong-top .result-kicker { color: var(--red); }
.small-reward {
  display: inline-block;
  margin-top: 13px;
  padding: 6px 12px;
  border-radius: 99px;
  color: #8b6b39;
  background: var(--gold-soft);
  font-size: 12px;
}
.answer-card {
  margin-top: 30px;
  padding: 21px 18px;
  border: 1px solid rgba(23,107,91,.1);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.answer-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
.answer-card h3 { margin: 9px 0 18px; color: var(--jade); font-size: 17px; line-height: 1.5; }
.explanation {
  display: grid;
  padding-top: 17px;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.explanation-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--jade);
  font-family: STKaiti, KaiTi, serif;
  font-size: 13px;
}
.explanation p { margin: 2px 0 0; color: #5f6c68; font-size: 12px; line-height: 1.75; }

/* 结算 */
.summary-screen {
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(216,153,56,.13), transparent 34%), var(--paper);
}
.summary-top { padding-top: 13px; text-align: center; }
.completion-mark {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 17px;
  place-items: center;
  border: 1px solid rgba(216,153,56,.42);
  border-radius: 50%;
  color: #8a5d21;
  background: var(--gold-soft);
  box-shadow: 0 0 0 7px rgba(216,153,56,.08);
}
.completion-mark::after {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px dashed rgba(138,93,33,.38);
  border-radius: 50%;
  content: "";
}
.completion-mark span { position: absolute; top: 14px; font-size: 12px; letter-spacing: .18em; }
.completion-mark strong { padding-top: 11px; font-family: STKaiti, KaiTi, serif; font-size: 31px; }
.summary-top h2 { margin: 0; font-family: STKaiti, KaiTi, serif; font-size: 29px; }
.summary-top > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.summary-card {
  margin-top: 23px;
  padding: 20px 18px 17px;
  border: 1px solid rgba(23,107,91,.08);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.score-line { display: flex; align-items: baseline; justify-content: space-between; }
.score-line span, .summary-metrics span, .current-rank span { color: var(--muted); font-size: 12px; }
.score-line > strong { font-family: Georgia, serif; font-size: 18px; }
.score-line b { color: var(--jade); font-size: 30px; }
.answer-pips { display: grid; margin-top: 12px; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.answer-pip {
  display: grid;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 700;
}
.answer-pip.is-correct { color: var(--jade); background: var(--jade-soft); }
.summary-divider { height: 1px; margin: 19px 0; background: var(--line); }
.summary-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.summary-metrics > div { text-align: center; }
.summary-metrics > div + div { border-left: 1px solid var(--line); }
.summary-metrics span { display: block; margin-bottom: 7px; }
.summary-metrics strong { font-family: Georgia, serif; font-size: 20px; }
.summary-metrics > div:first-child strong { color: var(--gold); }
.summary-metrics b { font-size: inherit; }
.current-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
  padding: 12px 13px;
  border-radius: 11px;
  background: #f3f6f2;
}
.current-rank strong { color: var(--jade); font-size: 14px; }

/* 升级 */
.upgrade-screen {
  position: relative;
  flex-direction: column;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 50% 38%, rgba(232,191,107,.25), transparent 28%),
    linear-gradient(160deg, #176b5b 0%, #0b443b 78%);
}
.upgrade-rays {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02);
}
.upgrade-content { position: relative; z-index: 1; margin: auto 0; text-align: center; }
.upgrade-seal {
  position: relative;
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(245,212,147,.7);
  border-radius: 28px 28px 38px 38px;
  color: #f4d69d;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 8px rgba(255,255,255,.04), 0 22px 45px rgba(0,0,0,.18);
}
.upgrade-seal span { position: absolute; top: 13px; font-size: 12px; letter-spacing: .18em; }
.upgrade-seal strong { padding-top: 16px; font-family: STKaiti, KaiTi, serif; font-size: 50px; }
.light-eyebrow { color: #eacb8d; }
.upgrade-content h2 {
  margin: 0;
  font-family: STKaiti, KaiTi, serif;
  font-size: 34px;
  letter-spacing: .08em;
}
.rank-change {
  display: flex;
  margin: 29px 0 21px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rank-change span { color: rgba(255,255,255,.62); font-size: 16px; }
.rank-change strong { color: #f3d18e; font-family: STKaiti, KaiTi, serif; font-size: 28px; }
.rank-change svg {
  width: 19px;
  height: 29px;
  fill: none;
  stroke: #e2b665;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upgrade-copy { margin: 0; color: rgba(255,255,255,.64); font-size: 12px; letter-spacing: .06em; }
.upgrade-footer { position: relative; z-index: 1; }
.light-button {
  color: var(--jade-dark);
  background: #f8e6bb;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.light-button:active { background: #f0d89d; }

/* 退出弹窗 */
.dialog-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(14,37,33,.54);
  backdrop-filter: blur(4px);
}
.dialog-backdrop[hidden] { display: none; }
.dialog {
  width: 100%;
  padding: 26px 20px 19px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
  text-align: center;
}
.dialog-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--jade);
  font-family: STKaiti, KaiTi, serif;
  font-size: 22px;
}
.dialog h2 { margin: 0; font-size: 19px; }
.dialog p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.primary-button.compact { min-height: 46px; border-radius: 13px; font-size: 13px; }
.text-button {
  min-height: 46px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

@media (min-height: 800px) {
  .home-header { margin-bottom: 30px; }
  .daily-card { margin-top: 24px; }
  .stepper { margin-top: 34px; margin-bottom: 42px; }
  .question-card { padding-top: 27px; padding-bottom: 22px; }
  .options { gap: 13px; }
  .option-button { min-height: 62px; }
  .wrong-top { padding-top: 48px; }
  .answer-card { margin-top: 38px; }
  .summary-top { padding-top: 26px; }
  .summary-card { margin-top: 30px; }
}
@media (max-height: 700px) {
  .screen { padding-top: calc(15px + env(safe-area-inset-top)); padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
  .home-header { margin-bottom: 15px; }
  .brand { font-size: 39px; }
  .growth-card { padding: 15px 16px; }
  .stats-grid { margin: 15px 0 13px; padding: 12px 4px; }
  .daily-card { min-height: 116px; margin-top: 13px; }
  .daily-copy { padding-top: 13px; padding-bottom: 13px; }
  .daily-illustration { width: 120px; }
  .screen-footer { padding-top: 14px; }
  .stepper { margin: 18px 12px 20px; }
  .question-card { padding: 18px 15px 15px; }
  .question-card h2 { min-height: auto; margin: 10px 0 14px; font-size: 16px; }
  .options { gap: 8px; }
  .option-button { min-height: 49px; }
  .quiz-note { margin-top: 12px; }
  .wrong-top { padding-top: 5px; }
  .wrong-emblem { width: 58px; height: 58px; margin-bottom: 10px; }
  .feedback-content h2, .wrong-top h2 { font-size: 27px; }
  .answer-card { margin-top: 16px; padding: 16px; }
  .summary-top { padding-top: 0; }
  .completion-mark { width: 62px; height: 62px; margin-bottom: 10px; }
  .completion-mark::after { width: 45px; height: 45px; }
  .completion-mark span { top: 9px; }
  .completion-mark strong { font-size: 27px; }
  .summary-card { margin-top: 15px; padding: 15px; }
  .summary-divider { margin: 13px 0; }
  .current-rank { margin-top: 13px; }
  .upgrade-seal { width: 88px; height: 88px; margin-bottom: 19px; }
  .upgrade-seal strong { font-size: 41px; }
  .rank-change { margin: 19px 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* V1.1：移动端兼容与触控优化 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-wrap: break-word;
}

svg {
  display: block;
}

.app-shell,
.screen,
.question-card,
.answer-card,
.summary-card {
  min-width: 0;
}

.primary-button,
.option-button,
.icon-button,
.text-button {
  user-select: none;
  -webkit-user-select: none;
}

.icon-button,
.text-button {
  min-height: 44px;
}

.primary-button {
  min-height: 56px;
}

.primary-button.compact {
  min-height: 48px;
}

.icon-button {
  width: 44px;
  height: 44px;
}

.option-button {
  min-height: 60px;
}

.dialog-backdrop {
  -webkit-backdrop-filter: blur(4px);
}

@media (hover: hover) and (pointer: fine) {
  .option-button:hover {
    border-color: rgba(23, 107, 91, 0.45);
    background: #f6faf7;
  }

  .primary-button:hover {
    background: var(--jade-dark);
  }
}

@media (max-width: 359px) {
  .screen {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  .brand {
    font-size: 42px;
  }

  .home-header {
    margin-bottom: 18px;
  }

  .growth-card,
  .question-card,
  .answer-card,
  .summary-card {
    padding-right: 15px;
    padding-left: 15px;
  }

  .rank-seal {
    width: 43px;
    height: 43px;
    margin-right: 9px;
  }

  .rank-chip {
    padding-right: 7px;
    padding-left: 7px;
  }

  .stats-grid {
    gap: 10px;
  }

  .daily-copy {
    width: 78%;
    padding-left: 15px;
  }

  .daily-illustration {
    right: -12px;
    width: 124px;
    opacity: 0.82;
  }

  .quiz-header {
    grid-template-columns: 44px 1fr 49px;
  }

  .stepper {
    margin-right: 5px;
    margin-left: 5px;
  }

  .option-button {
    padding-right: 10px;
    grid-template-columns: 34px 1fr;
    gap: 9px;
  }

  .dialog-backdrop {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .app-shell {
    max-width: 560px;
  }

  .screen {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }
}
/* 温故挑战 */
.review-screen {
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 153, 56, 0.1), transparent 28%),
    linear-gradient(rgba(23, 107, 91, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 32px, auto;
}

.review-progress {
  margin: 24px 4px 2px;
}

.review-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.review-progress__meta strong {
  color: var(--jade);
  font-family: Georgia, serif;
  font-size: 14px;
}

.review-progress__track {
  display: flex;
  height: 8px;
  margin-top: 10px;
  gap: 6px;
}

.review-progress__track span {
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe5df;
}

.review-progress__track span::after {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
  content: "";
}

.review-progress__track span.is-complete::after,
.review-progress__track span.is-current::after {
  width: 100%;
}

.review-progress__track span.is-current::after {
  background: var(--gold);
}

.review-question-card {
  margin-top: 23px;
}

.review-note__seal {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #8c601e;
  background: var(--gold-soft);
  font-family: STKaiti, KaiTi, serif;
  font-size: 14px;
  font-weight: 700;
}

.review-success-emblem {
  box-shadow:
    0 0 0 10px rgba(216, 153, 56, 0.1),
    0 16px 35px rgba(23, 107, 91, 0.2);
}

.review-wrong-screen .wrong-top {
  padding-top: 42px;
}

.review-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--gold-soft);
  font-size: 12px;
}

.review-summary-row[hidden] {
  display: none;
}

.review-summary-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.review-summary-row i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  color: #8c601e;
  background: #f4dfb5;
  font-family: STKaiti, KaiTi, serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.review-summary-row strong {
  color: #8c601e;
  font-size: 12px;
}

.review-summary-row b {
  font-family: Georgia, serif;
  font-size: 15px;
}

.answer-pip.is-corrected {
  color: #9a6b24;
  background: var(--gold-soft);
}

@media (max-height: 700px) {
  .review-progress {
    margin-top: 14px;
  }

  .review-question-card {
    margin-top: 14px;
  }

  .review-note {
    margin-top: 9px;
  }

  .review-wrong-screen .wrong-top {
    padding-top: 5px;
  }

  .review-summary-row {
    margin-top: 9px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}

@media (max-width: 359px) {
  .review-progress {
    margin-right: 1px;
    margin-left: 1px;
  }
}

