:root {
  --bg-from: #e7eef5;
  --bg-to: #cfdce8;
  --accent: #1e3a4c;
  --accent-soft: #3d7a8c;
  --surface: rgba(255, 255, 255, 0.82);
  --ink: #1a2833;
  --muted: #5a6d7a;
  --line: rgba(30, 58, 76, 0.12);
  --shadow: 0 18px 48px rgba(26, 40, 51, 0.12);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(61, 122, 140, 0.18), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(30, 58, 76, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg-from) 0%, var(--bg-to) 100%);
  background-attachment: fixed;
}

button {
  font: inherit;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 18px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.shell {
  width: 100%;
  max-width: 440px;
}

.screen {
  display: none;
  animation: rise 0.45s var(--ease);
}

.screen.is-active {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #f4f8fb;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-visual {
  height: 132px;
  border-radius: 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.28) 0 10%, transparent 11%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 55%, #8fb4c0 100%);
}

.hero-visual::after {
  content: attr(data-watermark);
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.meta-chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(30, 58, 76, 0.06);
  color: var(--accent);
  font-size: 13px;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s var(--ease), opacity 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #f4f8fb;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: rgba(30, 58, 76, 0.08);
  color: var(--accent);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 8px;
  border-radius: 99px;
  background: rgba(30, 58, 76, 0.1);
  overflow: hidden;
  margin-bottom: 22px;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.35s var(--ease);
}

.question-text {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 650;
}

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

.option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 14px 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.option:hover {
  border-color: rgba(30, 58, 76, 0.28);
}

.option.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #f4f8fb;
  box-shadow: 0 10px 24px rgba(30, 58, 76, 0.22);
}

.option-key {
  display: inline-block;
  min-width: 1.4em;
  font-weight: 700;
  opacity: 0.72;
  margin-right: 6px;
}

.nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.nav .btn {
  flex: 1;
}

.result-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 14px;
  color: #f4f8fb;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-soft) 62%, #8fb4c0 100%);
  box-shadow: var(--shadow);
}

.result-hero::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  right: -40px;
  top: -40px;
}

.result-hero::after {
  content: attr(data-watermark);
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.45;
}

.result-label {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  margin-bottom: 12px;
}

.result-hero h1 {
  color: inherit;
  margin-bottom: 8px;
}

.score-line {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(244, 248, 251, 0.78);
}

.result-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 248, 251, 0.9);
  max-width: 92%;
}

.section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.body-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.list {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent-soft);
  background: rgba(61, 122, 140, 0.08);
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--accent);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(26, 40, 51, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.error-box {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8b4b4;
  color: #8a3030;
  line-height: 1.6;
}
