.course-hint-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}
.course-hint-overlay.hidden { display: none; }
.course-hint-card {
  width: calc(100% - 32px);
  max-width: 420px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 18px 16px 16px;
  pointer-events: auto;
}
.course-hint-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin-bottom: 10px;
  text-align: center;
}
.course-hint-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  text-align: center;
  margin-bottom: 16px;
}
.course-hint-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.course-hint-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.course-hint-btn.primary { background: #4caf50; color: #fff; }
.course-hint-btn.ghost { background: #f5f5f5; color: #333; }

.pay-order-row {
  margin-bottom: 8px;
  font-size: 15px;
  word-break: break-all;
}
.pay-tip {
  margin-bottom: 14px;
  color: #666;
  font-size: 14px;
}
.pay-qrcodes {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 16px;
}
.pay-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pay-item img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}
.pay-label {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}
#submittedBtn {
  display: block;
  margin: 0 auto;
  min-width: 160px;
}

.course-price {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.discount-price {
  font-size: 24px;
  color: #f44336;
  font-weight: bold;
}
.original-price {
  font-size: 18px;
  color: #999999;
  text-decoration: line-through;
}

@media (max-width: 768px) {
  .course-hint-overlay { top: 110px; }
  .course-hint-card {
    width: calc(100% - 24px);
    border-radius: 16px;
    padding: 16px 14px 14px;
  }
  .course-hint-title { font-size: 18px; }
  .course-hint-desc { font-size: 14px; }
  .pay-qrcodes {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .pay-item { width: 100%; }
  .pay-item img { max-width: 220px; }
}

/* === Course page visual layout === */

.course-page .page {
  max-width: 920px;
  padding: 20px 16px 40px;
}

.course-page .page-head {
  margin-bottom: 24px;
}

.course-page .page-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.course-page .course-cover-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.course-page .course-cover-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  color: #111;
}

.course-page .course-cover-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: #111;
}

/* 课程目录海报区：接近你第二张图的模块展示 */
.course-page .course-catalog-poster {
  position: relative;
  overflow: hidden;
  background: #f0f2f5;
  border-left: 42px solid #0f6fbd;
  border-right: 42px solid #0f6fbd;
  padding: 46px 0 54px;
  margin-bottom: 24px;
}

.course-page .course-module-strip {
  width: calc(100% - 80px);
  margin: 0 auto 52px;
  padding: 16px 40px;
  background: linear-gradient(90deg, #ffe04f 0%, #fff2a8 58%, #fff8d2 100%);
  color: #000;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.course-page .course-module-strip span,
.course-page .course-module-strip strong {
  font-weight: 900;
}

.course-page .course-lesson-list {
  width: calc(100% - 150px);
  margin: 0 auto;
}

.course-page .course-lesson-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

.course-page .course-lesson-row:last-child {
  margin-bottom: 0;
}

.course-page .course-lesson-no {
  flex: 0 0 auto;
  color: #333;
  font-weight: 400;
  white-space: nowrap;
}

.course-page .course-lesson-title {
  flex: 1;
  min-width: 0;
  color: #222;
  font-weight: 400;
}

.course-page .course-empty {
  font-size: 22px;
  color: #666;
  text-align: center;
  padding: 40px 0;
}

.course-page .course-purchase-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 24px 28px 28px;
  margin-bottom: 24px;
}

.course-page .course-purchase-card .action-btn {
  margin-top: 12px;
}

/* 移动端：保留模块视觉，但避免字太大 */
@media (max-width: 768px) {
  .course-page .page {
    max-width: none;
    padding: 14px 12px 32px;
  }

  .course-page .page-head {
    margin-bottom: 18px;
  }

  .course-page .page-head h2 {
    font-size: 24px;
  }

  .course-page .top-link,
  .course-page .head-left,
  .course-page .head-right {
    width: 72px;
    min-width: 72px;
  }

  .course-page .top-link {
    min-width: 72px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .course-page .course-cover-card {
    padding: 18px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .course-page .course-cover-title {
    font-size: 22px;
  }

  .course-page .course-cover-subtitle {
    font-size: 16px;
  }

  .course-page .course-catalog-poster {
    border-left-width: 14px;
    border-right-width: 14px;
    padding: 34px 0 38px;
    margin-bottom: 18px;
  }

  .course-page .course-module-strip {
    width: calc(100% - 28px);
    margin-bottom: 34px;
    padding: 12px 18px;
    font-size: 22px;
    gap: 12px;
  }

  .course-page .course-lesson-list {
    width: calc(100% - 48px);
  }

  .course-page .course-lesson-row {
    gap: 8px;
    margin-bottom: 18px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .course-page .course-purchase-card {
    padding: 20px 18px 22px;
    border-radius: 16px;
  }
}
