/* 太阳、月球和地球知识问答 - 样式表
   作者：前端助手
   日期：2025-05-20
   描述：适合10岁学生的答题界面，明亮色彩方案 */

/* 基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #a8e6ff 0%, #d8f2ff 100%);
  color: #1a3a5f;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 主容器 */
.quiz-container {
  background: white;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 100, 200, 0.2);
  width: 100%;
  max-width: 800px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 标题区域 */
header {
  margin-bottom: 25px;
}

header h1 {
  color: #ff9800;
  font-size: 2.8rem;
  text-shadow: 2px 2px 0 #ffeb3b;
  margin-bottom: 15px;
}

/* 进度指示器 */
.progress {
  background: #e3f2fd;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1.8rem;
  font-weight: bold;
  display: inline-block;
  color: #1976d2;
}

.progress .current {
  color: #ff5722;
}

/* 问题区域 */
.question-container {
  padding: 25px;
  border-radius: 20px;
  background: #f5f9ff;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.question {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 30px;
  color: #1565c0;
}

/* 选项按钮 */
.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 0 auto;
  max-width: 500px;
}

.option-btn {
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 18px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  padding-left: 60px;
}

.option-btn::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #ffeb3b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ff5722;
  font-weight: bold;
}

.option-btn:nth-child(2)::before { content: 'B'; }
.option-btn:nth-child(3)::before { content: 'C'; }
.option-btn:nth-child(4)::before { content: 'D'; }

.option-btn:hover {
  background: #1976d2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.option-btn:active {
  transform: translateY(1px);
}

/* 反馈区域 */
.feedback {
  padding: 25px;
  border-radius: 20px;
  margin: 20px 0;
  animation: fadeIn 0.5s ease;
}

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

.correct .result {
  color: #4caf50;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.wrong .result {
  color: #f44336;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.explanation {
  background: #fff8e1;
  color: #e65100;
  font-size: 1.8rem;
  line-height: 1.5;
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  margin: 15px 0;
}

/* 按钮样式 */
button {
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
}

button:hover {
  background: #f57c00;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

button:active {
  transform: scale(0.98);
}

/* 得分区域 */
.score-container {
  padding: 30px;
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  border-radius: 20px;
  color: white;
  margin-top: 20px;
  animation: popIn 0.6s ease;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.score-container h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.score-container p {
  font-size: 2.2rem;
  margin: 20px 0;
}

.score-value {
  font-size: 3rem;
  font-weight: bold;
  color: #ffeb3b;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* 隐藏类 */
.hidden {
  display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .quiz-container {
    padding: 20px;
  }
  
  header h1 {
    font-size: 2.2rem;
  }
  
  .question {
    font-size: 1.9rem;
  }
  
  .option-btn {
    font-size: 1.6rem;
    padding: 15px 15px 15px 55px;
  }
  
  .feedback .result, .correct .result, .wrong .result {
    font-size: 1.9rem;
  }
  
  .explanation {
    font-size: 1.6rem;
  }
}

@media (min-width: 1025px) {
  .quiz-container {
    padding: 40px;
  }
  
  .options {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}