/* 测验进度条样式 */
.quiz-progress {
  margin-top: 20px;
  margin-bottom: 20px;
}

.quiz-progress-text {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.quiz-progress-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background-color: #6b46c1;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 测验反馈样式 */
.quiz-feedback {
  margin: 15px 0;
  padding: 10px;
  border-radius: 4px;
}

.correct {
  color: #22c55e;
}

.incorrect {
  color: #ef4444;
}

/* 测验控制按钮样式 */
.quiz-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.quiz-controls button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #6b46c1;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quiz-controls button:hover {
  background-color: #5a32a3;
}

.quiz-controls button:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
}

.prev-question-btn {
  background-color: #4b5563 !important;
}

.next-question-btn {
  background-color: #4a6da7;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
}

.next-question-btn:hover {
  background-color: #3a5d97;
}

/* Genesis课程页面自定义样式 */
.lesson-content-section {
  padding-top: 20px; /* 减少顶部间距，使内容整体上移 */
}

.lesson-card-header h2 {
  color: white !important; /* 确保所有标题为白色 */
}

/* 美化Key Points列表样式 */
.key-points ul {
  padding-left: 0; /* 移除默认的左边距 */
  list-style-type: none; /* 移除默认的列表标记 */
}

.key-points li {
  position: relative;
  padding-left: 28px; /* 为自定义图标留出空间 */
  margin-bottom: 12px; /* 增加列表项之间的间距 */
  line-height: 1.5;
}

.key-points li:before {
  content: "•"; /* 使用圆点作为列表标记 */
  position: absolute;
  left: 8px;
  color: #9b59b6; /* 使用紫色，与标题颜色协调 */
  font-size: 18px; /* 增大标记大小 */
  font-weight: bold;
}

.key-points h3 {
  color: #9b59b6; /* 与列表标记颜色一致 */
  font-size: 1.2rem;
  margin-bottom: 15px; /* 增加标题与列表之间的间距 */
  border-bottom: 1px solid #f0f0f0; /* 添加下划线 */
  padding-bottom: 8px;
}

/* App推广模块样式 */
.app-promotion {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.app-promotion h3 {
  color: #4a6da7;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
}

/* 新的特性列表样式 */
.app-features-list {
  margin-bottom: 20px;
  padding-left: 20px;
}

.app-features-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 5px;
}

.app-features-list li:before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: #4caf50;
  font-weight: bold;
}

/* 下载选项样式 */
.download-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.qr-code {
  margin-bottom: 0;
}

.qr-code img {
  width: 100px;
  height: 100px;
}

.app-store-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-store-link img {
  height: 40px;
}

.app-store-link img:hover {
  transform: scale(1.05);
}

.download-app-btn {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin: 5px;
}

.download-app-btn:hover {
  background-color: #45a049;
}

/* 添加新的 app-promotion-text 样式 */
.app-promotion-text {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

@media (max-width: 768px) {
  .benefit-item {
    width: 100%;
  }
}

/* Lesson Navigation */
.lesson-navigation {
  background-color: #f5f7fa;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.lesson-breadcrumb {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.lesson-breadcrumb a {
  color: #0078d7;
  text-decoration: none;
}

.lesson-breadcrumb a:hover {
  text-decoration: underline;
}

.lesson-title h1 {
  margin: 0;
  font-size: 2rem;
  color: #333;
  text-align: left;
}

/* Lesson Content Layout */
.lesson-content-section {
  padding: 40px 0;
  background-color: #f9f9f9;
  min-height: calc(100vh - 300px);
}

.lesson-container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
}

.lesson-content {
  flex: 1;
  max-width: 800px;
}

.bible-text {
  flex: 0.6;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Progress Bar */
.lesson-progress {
  margin-bottom: 20px;
}

.progress-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #2196f3);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  text-align: right;
}

/* Lesson Cards */
.lesson-section {
  margin-bottom: 30px;
  transition: opacity 0.3s ease;
}

.lesson-section.hidden {
  display: none;
}

.lesson-card-header {
  padding: 20px;
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
}

.lesson-card-header h2 {
  margin: 0;
  font-size: 1.5rem;
  text-align: left;
}

.lesson-reference {
  font-size: 0.9rem;
  margin-top: 5px;
  opacity: 0.9;
  cursor: pointer;
}

.lesson-reference:hover {
  text-decoration: underline;
}

.lesson-card-body {
  padding: 20px;
}

.key-verse {
  margin-bottom: 20px;
}

.key-verse blockquote {
  font-style: italic;
  border-left: 3px solid #9b59b6;
  padding-left: 15px;
  margin-left: 0;
  color: #555;
}

.key-verse cite {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  margin-top: 5px;
  color: #777;
}

/* Lesson Complete 页面样式改进 */
.lesson-detail {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  color: #333;
  font-size: 16px;
  border-left: 4px solid #4a6da7;
}

.lesson-detail p {
  margin: 0;
  text-align: justify;
}

/* Navigation Buttons */
.lesson-navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}

/* 确保Previous按钮左对齐 */
.prev-section-btn {
  margin-right: auto;
  background-color: #e0e0e0;
  color: #333;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.prev-section-btn:hover {
  background-color: #d0d0d0;
}

/* 确保Continue按钮右对齐 */
.next-section-btn {
  margin-left: auto;
  background-color: #2196f3;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.next-section-btn:hover {
  background-color: #0d8aee;
}

/* Bible Text Styles */
.bible-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bible-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.bible-controls button {
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bible-controls button:hover {
  background-color: #e0e0e0;
}

.bible-content {
  padding: 20px;
  line-height: 1.8;
  font-size: 16px;
}

.bible-content p {
  margin-bottom: 15px;
}

.bible-content sup {
  color: #9b59b6;
  font-weight: 500;
  margin-right: 3px;
}

.bible-content p.highlighted {
  background-color: #fff3cd;
  padding: 5px;
  border-radius: 3px;
}

/* Quiz Styles */
.quiz-card .lesson-card-header {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.quiz-question {
  margin-bottom: 30px;
}

.quiz-question h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
}

.quiz-option input[type="radio"] {
  margin-right: 10px;
}

.quiz-hint {
  margin-top: 10px;
  padding: 10px;
  background-color: #e8f4fd;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* 确保测验提示默认隐藏 */
.quiz-hint.hidden {
  display: none;
}

#quiz-results {
  margin-top: 30px;
  padding: 20px;
  background-color: #f5f7fa;
  border-radius: 10px;
}

/* 确保测验结果默认隐藏 */
#quiz-results.hidden {
  display: none;
}

#quiz-results h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

#quiz-score {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
}

#quiz-feedback p {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
}

#quiz-feedback p.correct {
  background-color: #e8f5e9;
  color: #2e7d32;
}

#quiz-feedback p.incorrect {
  background-color: #ffebee;
  color: #c62828;
}

#quiz-feedback p.unanswered {
  background-color: #fff8e1;
  color: #f57f17;
}

#retry-quiz-btn,
#complete-lesson-btn {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  margin-right: 10px;
  transition: all 0.2s ease;
}

#retry-quiz-btn {
  background-color: #f0f0f0;
  color: #333;
}

#retry-quiz-btn:hover {
  background-color: #e0e0e0;
}

#complete-lesson-btn {
  background-color: #4caf50;
  color: white;
}

#complete-lesson-btn:hover {
  background-color: #43a047;
}

/* Completion Message */
.lesson-completion {
  text-align: center;
  padding: 40px 0;
}

/* 确保 Lesson Completion 模块默认隐藏 */
.lesson-completion.hidden {
  display: none;
}

/* Lesson Complete 页面样式改进 */
.completion-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.completion-header {
  background-color: #4a6da7;
  color: white;
  padding: 25px 20px;
  text-align: center;
  position: relative;
}

.completion-icon {
  background-color: white;
  color: #4a6da7;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.completion-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: white;
}

.completion-content {
  padding: 30px;
}

.completion-message {
  text-align: center;
  font-size: 18px;
  margin-bottom: 25px;
  color: #333;
}

.completion-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.lesson-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
}

.primary-btn {
  background-color: #4a6da7;
  color: white;
  border: 2px solid #4a6da7;
}

.primary-btn:hover {
  background-color: #3a5d97;
  border-color: #3a5d97;
}

.secondary-btn {
  background-color: white;
  color: #4a6da7;
  border: 2px solid #4a6da7;
}

.secondary-btn:hover {
  background-color: #f0f4f9;
}

/* 确保测试题一次只显示一道 */
.quiz-question.hidden {
  display: none;
}

/* 按钮居中样式 */
.quiz-buttons-center {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.quiz-result-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn-aligned {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .lesson-container {
    flex-direction: column;
  }

  .bible-text {
    position: static;
    max-height: none;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .completion-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .lesson-btn {
    width: 100%;
  }

  .lesson-title h1 {
    font-size: 1.8rem;
  }

  .lesson-card-header h2 {
    font-size: 1.3rem;
  }

  .quiz-controls {
    flex-direction: column;
    gap: 10px;
  }

  .completion-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .download-options {
    flex-direction: column;
  }

  .qr-code {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .lesson-navigation-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .prev-section-btn {
    order: 2;
  }

  .next-section-btn {
    order: 1;
  }

  .completion-card {
    padding: 20px;
  }
}
