/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

:root {
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --text-primary: #1A1A1A;
  --text-secondary: #666;
  --text-muted: #767676;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --border: #D0D8E0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --transition: 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* Pages */
.page {
  display: none;
  padding: 32px 24px;
  min-height: 100vh;
}
.page.active { display: flex; flex-direction: column; }

@media (prefers-reduced-motion: no-preference) {
  .page.active { animation: fadeIn 0.4s ease; }
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

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

/* Home Page */
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.home-badge {
  font-size: 0.85rem;
  color: var(--primary);
  background: #EEF2FF;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-weight: 500;
}
.home-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.home-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.home-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: 14px 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.97); }

/* Scenario Page */
.scenario-header {
  margin-bottom: 32px;
  padding-top: 8px;
}
.scenario-progress {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.scenario-progress-bar {
  height: 3px;
  background: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
}
.scenario-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.scenario-question {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Options */
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:active { transform: scale(0.98); }
.option:hover { border-color: var(--primary); background: #EEF2FF; }
.option.selected {
  border-color: var(--primary);
  background: #EEF2FF;
}
.option-text {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.option-subtext {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Transition Page */
.transition-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}
.transition-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Result Page */
.result-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.result-header {
  text-align: center;
  padding: 32px 0 24px;
}
.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.result-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}
.result-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.result-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.result-detail p { margin-bottom: 12px; }

/* Result Actions */
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 16px 0 32px;
}
.btn-secondary {
  flex: 1;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:active { transform: scale(0.97); }
.btn-primary-block {
  flex: 1;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary-block:active { transform: scale(0.97); }
