:root {
  color-scheme: light;
  /* 重新定义配色：清冷理智蓝调 */
  --blue-50: #f5f8fa;
  --blue-100: #e3ecf3;
  --blue-200: #cadbe9;
  --blue-400: #6b93b2;
  --blue-500: #4a7696; /* 主色调 */
  --accent-mint: #7fbfa5; /* 辅助色：用于进度条和点缀 */
  --text-900: #2c3e50;
  --text-700: #546e7a;
  --shadow: 0 18px 40px rgba(74, 118, 150, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-900);
  background: #f0f3f6; /* 浅灰色背景，更有质感 */
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px 80px;
}

.phone {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 22px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--blue-100);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero {
  text-align: center;
  display: grid;
  gap: 12px;
}

.hero-compact {
  gap: 6px;
}

.hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-500);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(74, 118, 150, 0.1);
}

.hero-decor {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.decor-card {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4e1ea, #b0c4de);
  box-shadow: 0 8px 16px rgba(74, 118, 150, 0.15);
}

.decor-card.alt {
  background: linear-gradient(135deg, #eef2f3, #cbd9ad);
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-500);
}

.subtitle {
  margin: 0;
  color: var(--text-700);
  font-size: 15px;
}

.section {
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px;
  border: 1px solid var(--blue-100);
  display: grid;
  gap: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
}

.section p {
  margin: 0;
  color: var(--text-700);
  line-height: 1.6;
  font-size: 14px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--text-700);
  font-size: 14px;
}

.list li {
  position: relative;
  padding-left: 16px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-400);
}

.muted {
  color: #90a4ae;
}

.notice {
  background: #f9fbfc;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--blue-200);
  display: grid;
  gap: 8px;
  color: var(--text-700);
  font-size: 13px;
}

.notice p {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.highlight {
  background: var(--blue-50);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-700);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--blue-100);
}

.cta {
  text-align: center;
  display: grid;
  gap: 12px;
  color: var(--text-700);
  font-size: 14px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 20px rgba(74, 118, 150, 0.2);
  border: none;
  transition: transform 0.2s ease;
}

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

.primary-btn.small {
  padding: 10px 20px;
  font-size: 14px;
}

.primary-btn.small:disabled {
  background: #cbdce7;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
  color: #fff;
  border: none;
}

.quote {
  margin: 0;
  color: #78909c;
  font-size: 13px;
}

.loading {
  min-height: 60vh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-700);
}

.loading h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text-900);
}

.loading-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue-500);
  animation: spin 1s linear infinite;
}

.result-content[hidden] {
  display: none;
}

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

.card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--blue-100);
  display: grid;
  gap: 12px;
}

.test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.back-btn {
  border: none;
  background: transparent;
  color: var(--text-700);
  font-size: 14px;
  cursor: pointer;
}

.progress-label {
  font-weight: 600;
  color: var(--text-700);
}

.progress {
  display: grid;
  gap: 8px;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--blue-100);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--accent-mint));
}

.test-card {
  min-height: 280px;
}

.question {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.question-meta {
  font-size: 12px;
  color: var(--blue-500);
  font-weight: 700;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-btn {
  text-align: left;
  border: 1px solid var(--blue-100);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-900);
}

.answer-btn:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.answer-btn.selected {
  border-color: var(--blue-500);
  background: #ebf3f9;
  font-weight: 600;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost-btn {
  border: 1px solid var(--blue-100);
  background: transparent;
  color: var(--text-700);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.result-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--blue-500);
}

.result-stage {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-900);
}

.result-main {
  text-align: center;
  gap: 6px;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}

.result-block {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--blue-100);
  display: grid;
  gap: 10px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.block-title .emoji {
  flex: 0 0 auto;
  line-height: 1;
}

.highlight-line {
  color: var(--blue-500);
  font-weight: 600;
}

.ghost-link {
  color: var(--text-700);
  text-decoration: underline;
  font-size: 13px;
}

.block-title h3 {
  margin: 0;
  font-size: 16px;
  color: var(--blue-500);
}

.plan-item strong {
  color: var(--blue-500);
}