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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f3ff 100%);
  min-height: 100vh;
  color: #1a202c;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* 页面切换 */
.page {
  display: none;
  min-height: 100vh;
  padding: 20px;
}

.page.active {
  display: block;
}

/* 首页样式 */
.hero {
  text-align: center;
  padding: 60px 20px 20px 20px;
  color: #2d3748;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #4a5568, #2d3748);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.disclaimer {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.disclaimer p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.test-selection {
  padding: 0px 20px 40px 20px;
}

.test-selection h2 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #2d3748;
  font-size: 2rem;
  font-weight: 600;
}

.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.test-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.test-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: #6366f1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.test-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d3748;
}

.test-card p {
  color: #4a5568;
  margin-bottom: 8px;
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 25px !important;
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-primary:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

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

.btn-back {
  background: rgba(99, 102, 241, 0.1);
  color: #4a5568;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-back:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* 测试页面样式 */
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  width: 200px;
  height: 8px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #4a5568;
  font-weight: 600;
  min-width: 60px;
}

.test-content {
  max-width: 700px;
  margin: 0 auto;
}

.question-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.question-number {
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #2d3748;
}

.question-example {
  background: rgba(113, 70, 221, 0.05);
  border-left: 4px solid rgba(113, 70, 221, 0.3);
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 35px;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  max-width: none;
}

.example-label {
  font-weight: 600;
  color: #7146dd;
  margin-right: 8px;
  font-size: 1rem;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.answer-option {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.answer-option:hover {
  border-color: #6366f1;
  background: #f7fafc;
}

.answer-option.selected {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f110, #8b5cf610);
}

.answer-option input[type="radio"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.answer-option label {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  flex: 1;
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* 结果页面样式 */
.result-header {
  padding: 20px;
  margin-bottom: 20px;
}

.result-content {
  max-width: 800px;
  margin: 0 auto;
}

.result-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.score-card {
  /* background: white !important; */
  border: none !important;
  border-radius: 24px;
  padding: 40px 45px;
  text-align: center;
  color: #2d3748 !important;
  /* box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1) !important; */
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* background: radial-gradient(
    circle,
    rgba(79, 209, 199, 0.1) 0%,
    transparent 70%
  ); */
  transform: rotate(45deg);
  pointer-events: none;
}

.score-label {
  font-size: 1.4rem !important;
  font-weight: 600;
  color: #7146dd;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.current-score {
  font-size: 4rem !important;
  font-weight: 900;
  line-height: 0.9;
  color: #6366f1 !important;
  text-shadow: none;
}

.score-separator {
  font-size: 3.2rem !important;
  font-weight: 500;
  color: #a0aec0;
  opacity: 1;
}

.max-score {
  font-size: 3.2rem !important;
  font-weight: 700;
  color: #718096;
  opacity: 1;
}

.score-percentage {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-block;
  margin-top: 15px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.symptom-score {
  display: flex;
  align-items: center;
  gap: 15px;
}

.symptom-score .score-display {
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 120px;
  color: #6366f1;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.result-level {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  border-radius: 15px;
  /* background: linear-gradient(135deg, #f7fafc, #edf2f7); */
}

.level-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2d3748;
}

.level-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

.result-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #2d3748;
}

.symptom-analysis {
  margin-bottom: 30px;
}

.symptom-category {
  margin-bottom: 25px;
  padding: 20px;
  background: #f7fafc;
  border-radius: 12px;
}

.symptom-category h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2d3748;
}

.symptom-score {
  display: flex;
  align-items: center;
  gap: 15px;
}

.symptom-score span {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 50px;
  color: #6366f1;
}

.score-bar {
  flex: 1;
  min-width: 100px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  transition: width 0.8s ease;
}

.recommendations {
  padding: 25px;
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border-radius: 12px;
  border-left: 4px solid #f56565;
}

.recommendations h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #c53030;
}

.score-interpretation {
  padding: 25px;
  background: linear-gradient(135deg, #e6fffa, #b2f5ea);
  border-radius: 12px;
  border-left: 4px solid #38b2ac;
  margin-bottom: 25px;
}

.score-interpretation h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c7a7b;
}

.interpretation-content {
  line-height: 1.6;
  color: #2d3748;
}

.score-ranges {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-range {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  background: #f7fafc;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.score-range.current {
  background: #e6fffa;
  border-color: #38b2ac;
  box-shadow: 0 2px 8px rgba(56, 178, 172, 0.2);
}

.score-range .range {
  font-weight: 600;
  min-width: 80px;
  color: #2d3748;
}

.score-range .level {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 15px;
  min-width: 80px;
  text-align: center;
}

.level.low-risk {
  background: #c6f6d5;
  color: #22543d;
}

/* 科学免责声明样式 */
.scientific-disclaimer {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border-left: 5px solid #e53e3e;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.scientific-disclaimer h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #c53030;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scientific-disclaimer ul {
  margin: 10px 0;
  padding-left: 20px;
}

.scientific-disclaimer li {
  margin-bottom: 6px;
}

.scientific-disclaimer strong {
  color: #2d3748;
  font-weight: 600;
}

.level.medium-risk {
  background: #fbd38d;
  color: #c05621;
}

.level.high-risk {
  background: #fed7d7;
  color: #c53030;
}

.score-range .desc {
  color: #4a5568;
  font-size: 0.9rem;
  flex: 1;
}

.max-score {
  font-size: 0.9rem;
  color: #718096;
  margin-left: 8px;
}

.symptom-interpretation {
  margin-top: 10px;
  padding: 15px;
  /* background: #f7fafc; */
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a5568;
}

.personalized-analysis {
  padding: 25px;
  /* background: linear-gradient(135deg, #fef5e7, #fed7aa); */
  background: #ffffff;
  border-radius: 12px;
  /* border-left: 4px solid #f6ad55; */
  margin-bottom: 25px;
}

.personalized-analysis h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #c05621;
}

.personalized-content {
  line-height: 1.6;
  color: #2d3748;
}

.personalized-content .highlight {
  /* background: #fed7aa; */
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #de6c34;
}

.recommendation-content {
  line-height: 1.6;
  color: #2d3748;
}

.recommendation-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.recommendation-content li {
  margin-bottom: 8px;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .test-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .test-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .progress-container {
    align-self: stretch;
  }

  .progress-bar {
    flex: 1;
  }

  .question-card {
    padding: 25px;
  }

  .question-text {
    font-size: 1.3rem;
  }

  .test-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .test-navigation button {
    width: 100%;
  }

  .result-card {
    padding: 25px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions button {
    width: 100%;
  }

  .symptom-score {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 10px;
  }

  .hero {
    padding: 40px 10px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .test-selection {
    padding: 20px 10px;
  }

  .question-card {
    padding: 20px;
  }

  .question-text {
    font-size: 1.2rem;
  }

  .answer-option {
    padding: 15px;
  }

  .answer-option label {
    font-size: 1rem;
  }

  .score-card {
    padding: 30px 25px;
    margin: 0 15px;
  }

  .current-score {
    font-size: 3.5rem;
  }

  .score-separator {
    font-size: 2.2rem;
  }

  .max-score {
    font-size: 2.2rem;
  }

  .score-percentage {
    font-size: 1.1rem;
    padding: 10px 20px;
  }

  .score-label {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
} /* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-card {
  animation: fadeIn 0.5s ease-out;
}

.result-card {
  animation: fadeIn 0.8s ease-out;
}

/* 雷达图样式 */
.radar-chart-container {
  margin: 30px 0;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.radar-chart-container h4 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.chart-wrapper {
  position: relative;
  height: 300px;
  margin: 20px 0;
}

/* 数据表格样式 */
.chart-data-table {
  margin-top: 25px;
  overflow-x: auto;
}

.chart-data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.chart-data-table th,
.chart-data-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.chart-data-table th {
  background-color: #f7fafc;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dimension-name {
  font-weight: 500;
  color: #4a5568;
}

.score-value {
  font-weight: 600;
  color: #2d3748;
  text-align: center;
}

.status-indicator {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-good {
  background-color: #c6f6d5;
  color: #22543d;
}

.status-medium {
  background-color: #feebc8;
  color: #c05621;
}

.status-low {
  background-color: #fed7d7;
  color: #c53030;
}

.chart-note {
  font-size: 0.85rem;
  color: #718096;
  text-align: center;
  margin-top: 15px;
  font-style: italic;
}

/* 移动端雷达图适配 */
@media (max-width: 768px) {
  .chart-wrapper {
    height: 280px;
  }

  .radar-chart-container {
    padding: 20px;
    margin: 20px 0;
  }
}

/* 打印样式 */
@media print {
  body {
    background: white;
    color: black;
  }

  .btn-back,
  .result-actions {
    display: none;
  }

  .result-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .radar-chart-container {
    break-inside: avoid;
  }
}

/* 科学免责声明样式 */
.scientific-disclaimer {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 2px solid #e2e8f0;
  border-left: 5px solid #4299e1;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scientific-disclaimer h4 {
  color: #2b6cb0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scientific-disclaimer p {
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.scientific-disclaimer ul {
  margin: 12px 0;
  padding-left: 20px;
}

.scientific-disclaimer li {
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.scientific-disclaimer strong {
  color: #2b6cb0;
  font-weight: 600;
}
