* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
  color: #333;
}

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

.step {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

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

/* ========== 第一步：开启画面 ========== */
.welcome-container {
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #FFB6C1 0%, #FFC0CB 30%, #fff 100%);
}

.logo-wrapper {
  margin-bottom: 30px;
}

.logo-icon {
  font-size: 80px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.welcome-title {
  font-size: 32px;
  font-weight: 600;
  color: #c44569;
  margin-bottom: 10px;
  text-align: center;
}

.welcome-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
}

.welcome-features {
  width: 100%;
  margin-bottom: 50px;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 24px;
  margin-right: 15px;
}

.feature-item span:last-child {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.btn-start {
  width: 100%;
  padding: 18px;
  font-size: 18px;
}

/* ========== 通用按钮样式 ========== */
.btn-primary {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, #FF6B8A 0%, #FF8E9E 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 138, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(255, 107, 138, 0.3);
}

.btn-secondary {
  width: 100%;
  padding: 16px 30px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:active {
  background: #e0e0e0;
}

/* ========== 第二步：问卷页面 ========== */
.quiz-container {
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.progress-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B8A 0%, #FF8E9E 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 11.1%;
}

.progress-text {
  text-align: right;
  font-size: 14px;
  color: #999;
}

.question-wrapper {
  flex: 1;
  padding: 20px 0;
}

.question-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.question-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.question-category {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 100%);
  color: #c44569;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  padding: 16px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-item:hover {
  border-color: #FF6B8A;
  background: #fff5f7;
}

.option-item.selected {
  border-color: #FF6B8A;
  background: linear-gradient(135deg, #fff5f7 0%, #ffe3e8 100%);
}

.option-item .option-text {
  flex: 1;
  font-size: 15px;
  color: #333;
}

.option-item .option-score {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}

.option-item.selected .checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #FF6B8A;
  border-radius: 50%;
  margin-left: 10px;
  position: relative;
}

.option-item.selected .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
}

.checkmark {
  display: none;
}

.quiz-footer {
  padding: 20px 0 30px;
  display: flex;
  gap: 15px;
}

.quiz-footer .btn-secondary,
.quiz-footer .btn-primary {
  flex: 1;
}

/* ========== 第三步：调理方案页面 ========== */
.result-container {
  padding: 30px 20px;
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF5F7 0%, #fff 100%);
}

.result-header {
  text-align: center;
  margin-bottom: 30px;
}

.result-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.result-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.result-subtitle {
  font-size: 14px;
  color: #999;
}

.score-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B8A 0%, #FF8E9E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.score-value {
  font-size: 32px;
  font-weight: 700;
}

.score-label {
  font-size: 12px;
  opacity: 0.9;
}

.score-level {
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
}

.score-level.mild {
  background: #d4edda;
  color: #155724;
}

.score-level.moderate {
  background: #fff3cd;
  color: #856404;
}

.score-level.severe {
  background: #f8d7da;
  color: #721c24;
}

.result-sections {
  margin-bottom: 30px;
}

.result-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #c44569;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-section-content {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.result-section-content ul {
  padding-left: 20px;
}

.result-section-content li {
  margin-bottom: 8px;
}

.result-actions {
  display: flex;
  gap: 15px;
  padding-bottom: 30px;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
  flex: 1;
}

/* ========== 加载动画 ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top-color: #FF6B8A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========== 响应式适配 ========== */
@media (max-width: 375px) {
  .welcome-title {
    font-size: 28px;
  }
  
  .question-title {
    font-size: 16px;
  }
  
  .option-item {
    padding: 14px 16px;
  }
}
