/* 课程列表页样式 */

/* 课程卡片封面 */
.course-cover {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 默认封面样式（无图片时） */
.course-cover-default {
  background-color: #00a096;
  background-size: cover;
  background-position: center;
}

/* 封面文字样式 */
.course-cover-text {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  line-height: 1.4;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* 课程卡片悬停效果 */
.course-card {
  transition: all 0.3s ease;
}

.course-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 160, 150, 0.2), 0 10px 10px -5px rgba(0, 160, 150, 0.1);
}

.course-card:hover .course-cover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}


.pagination {
	display: inline-block;
	padding-left: 0;
	margin: 20px 0;
	border-radius: 4px;
}

.pagination > li {
	display: inline;
}

.pagination > li > a,
.pagination > li > span {
	position: relative;
	float: left;
	padding: 6px 12px;
	line-height: 1.42857;
	text-decoration: none;
	color: #008d85;
	background-color: #fff;
	border: 1px solid #ddd;
	margin-left: -1px;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
	margin-left: 0;
	border-bottom-left-radius: 4px;
	border-top-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
	border-bottom-right-radius: 4px;
	border-top-right-radius: 4px;
}

.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
	z-index: 2;
	color: #23527c;
	background-color: #eeeeee;
	border-color: #ddd;
}

.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
	z-index: 3;
	color: #fff;
	background-color: #008d85;
	border-color: #008d85;
	cursor: default;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .course-cover {
    height: 200px;
  }
  
  .course-cover-text {
    font-size: 20px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .course-cover {
    height: 180px;
  }
  
  .course-cover-text {
    font-size: 18px;
    padding: 12px;
  }
}

/* 图片样式 */
.course-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.course-card:hover .course-cover-img {
  transform: scale(1.05);
}

/* 当图片加载失败时，显示文字 */
.course-cover-text[style*="display:flex"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: #00a096;
}

