:root {
  --bg: #f8faf7;
  --paper: #ffffff;
  --ink: #18211f;
  --muted: #64716d;
  --line: #dfe7e1;
  --green: #1e6b55;
  --green-dark: #124c3c;
  --gold: #d8a13a;
  --blue: #3e6f9c;
  --rose: #b9586a;
  --shadow: 0 18px 50px rgba(26, 55, 46, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(30, 107, 85, 0.08), transparent 260px),
    var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 22px;
}

.screen.active {
  display: block;
}

.home-content {
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  margin: -22px -22px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #dff0e9 0%, #f8faf7 74%),
    #dff0e9;
}

.sun {
  position: absolute;
  top: 34px;
  right: 36px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f3c45f;
  box-shadow: 0 0 0 14px rgba(243, 196, 95, 0.18);
}

.road {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 270px;
  height: 270px;
  border: 38px solid rgba(30, 107, 85, 0.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(36, 67, 57, 0.18);
}

.school {
  left: 32px;
  bottom: 42px;
  background: var(--green);
}

.major {
  left: 128px;
  bottom: 92px;
  background: var(--blue);
}

.city {
  left: 64px;
  top: 54px;
  background: var(--rose);
}

.pin {
  position: absolute;
  left: 210px;
  bottom: 48px;
  width: 34px;
  height: 34px;
  border: 8px solid var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #fff8df;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0;
}

.feature-grid span {
  min-height: 46px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #f5faf7;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-btn {
  width: 100%;
  color: #fff;
  background: var(--green);
}

.secondary-btn {
  width: 100%;
  color: var(--green-dark);
  background: #e9f3ee;
}

.ghost-btn {
  color: var(--green);
  background: transparent;
}

.disclaimer,
.tap-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.disclaimer {
  margin: 18px 0 0;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.count {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.module {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 6px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ee;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 220ms ease;
}

.question-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.question-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.options {
  display: grid;
  gap: 12px;
}

.option-btn {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.option-btn:active,
.option-btn.selected {
  border-color: var(--green);
  background: #edf7f2;
}

.option-key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--green);
  background: #e9f3ee;
  font-weight: 900;
}

.option-text {
  align-self: center;
  line-height: 1.55;
}

.tap-note {
  margin: 16px 0 0;
  text-align: center;
}

.loading-screen {
  display: none;
  place-items: center;
  text-align: center;
}

.loading-screen.active {
  display: grid;
}

.spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 24px;
  border: 4px solid #e8f0ea;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-screen {
  background: #fbfcfb;
}

.result-hero {
  padding: 24px 0 10px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 24px auto 8px;
  border: 10px solid #d9ebe2;
  border-top-color: var(--green);
  border-radius: 50%;
  background: #fff;
}

.score-ring strong {
  font-size: 34px;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 12px;
}

.report-section {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-section h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.report-section p,
.report-section li {
  color: #3f4d48;
  line-height: 1.75;
}

.index-list,
.strategy-list {
  display: grid;
  gap: 12px;
}

.index-item {
  display: grid;
  gap: 7px;
}

.index-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ee;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.strategy-card {
  padding: 14px;
  border-radius: 8px;
  background: #f4faf6;
}

.strategy-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.warning {
  border-color: #eed8a9;
  background: #fffaf0;
}

.seller-copy {
  padding: 12px;
  border-radius: 8px;
  background: #f6f8f6;
  white-space: pre-line;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 18px;
}

@media (min-width: 768px) {
  body {
    padding: 28px 0;
  }

  .app {
    min-height: calc(100vh - 56px);
    border-radius: 12px;
    overflow: hidden;
  }

  .screen {
    min-height: calc(100vh - 56px);
  }
}
