/*--------------------------------------------------------------
# Features Section Styles
--------------------------------------------------------------*/

/* 功能展示样式 */
.feature-showcase {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
}

.showcase-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.showcase-content {
  padding: 30px;
}

.feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.feature-highlights span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 30px;
  font-size: 14px;
}

.feature-highlights i {
  color: var(--primary-color);
}

/* 课程卡片样式 */
.course-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.course-card .icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.course-card .icon-wrapper i {
  font-size: 32px;
  color: var(--primary-color);
}

.course-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.course-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-card ul li {
  padding: 8px 0;
  color: var(--text-color);
  position: relative;
  padding-left: 20px;
}

.course-card ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.course-card .hover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(var(--primary-color-rgb), 0.1), transparent);
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.course-card:hover .hover-content {
  transform: translateY(0);
}

.course-count {
  background: var(--primary-color);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* AI特色介绍样式 */
.ai-features-wrapper {
  margin-top: 80px;
  background: #fff;
  border-radius: 30px;
  padding: 60px;
  box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.08);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  background: rgba(var(--primary-color-rgb), 0.05);
  padding: 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--primary-color);
  color: #fff;
}

.ai-highlight {
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ai-highlight i {
  font-size: 40px;
  color: var(--primary-color);
}

.ai-features-image {
  position: relative;
  text-align: center;
}

.experience-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* 视频展示样式 */
.showcase-video {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-color);
  min-height: 300px;
  cursor: pointer;
}

.video-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.showcase-video.loading .video-loading {
  display: flex;
}

.showcase-video:not(.loading) .video-loading {
  display: none;
}

.feature-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  z-index: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  padding: 0;
}

.video-play-btn i {
  font-size: 64px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-play-btn:hover i {
  transform: scale(1.1);
  color: var(--primary-color);
}

.showcase-video.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.showcase-video:hover .video-play-btn i {
  transform: scale(1.1);
}

/* 视频加载错误状态 */
.showcase-video.error::after {
  content: "视频加载失败，请刷新页面重试";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 视频加载成功后自动播放 */
.showcase-video:not(.loading):not(.error) .feature-video {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 覆盖图标样式 */
.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.overlay-icon {
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .features-showcase {
    margin-top: 30px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ai-features-wrapper {
    padding: 40px;
    margin-top: 60px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-features-wrapper {
    padding: 30px;
    margin-top: 40px;
  }
  
  .course-card {
    padding: 25px;
  }
  
  .ai-highlight {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .feature-highlights {
    justify-content: center;
  }
  
  .showcase-content {
    padding: 20px;
  }
  
  .video-play-btn i {
    font-size: 48px;
  }
}