/* Testimonials模块视频相关样式 styles */
.testimonials-details {
  color: #2e205b;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0px;
  background-color: #f6f4f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* 统一标题样式 */
.ProfessorTestimonialsText {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  margin: 5rem 0 15px;
  color: #333;
  width: 100%;
  max-width: 1100px;
}

/* 视频容器 */
.video-wrapper {
  width: 1100px;
  aspect-ratio: 16/9;
  height: 622px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  /* 毛玻璃效果 */
  backdrop-filter: blur(20px);
  /* 兼容Safari */
  -webkit-backdrop-filter: blur(20px);

  /* 可选：添加边框效果增强玻璃质感 */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 基础视频样式 */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #fff;
  display: block;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s;
}

/* 竖屏视频特殊样式 */
.video-wrapper.portrait video {
  height: 100%;
  width: auto;
  object-fit: contain !important;
  background: #fff;
  margin: 0 auto;
  display: block;
}

/* 横屏时视频铺满容器 */
.video-wrapper:not(.portrait) video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
/* 视频标题 */
.video-title {
  position: absolute;
  left: 40px;
  bottom: 40px;
  color: #fff;
  padding: 8px 18px;
  font-size: 38px;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-wrapper.portrait .video-title {
  left: 45%;
  bottom: 50px;
  font-size: 18px;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
}

/* 播放按钮 */
.custom-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  border: none;
  transition: opacity 0.3s;
}

.custom-play-btn svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

/* 选集列表 */
.episode-list {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 12.5rem;
  height: auto;
  max-height: calc(100% - 3rem);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  scrollbar-width: thin;
  scrollbar-color: #6222cc #222;
}

.episode-list.visible {
  opacity: 1;
  pointer-events: all;
}

/* 选集项 */
.episode-item {
  height: 7rem;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #222;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  position: relative;
  will-change: transform;
}

.episode-item:hover {
  transform: scale(1.05);
}

.episode-item.active {
  border-color: #6222cc;
  background: #333;
}

.episode-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* 滚动条样式 */
.episode-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.episode-list::-webkit-scrollbar-track {
  background: #222;
  border-radius: 4px;
}

.episode-list::-webkit-scrollbar-thumb {
  background-color: #6222cc;
  border-radius: 4px;
}

/* 反馈区域 */
.feedback-container {
  max-width: 1100px;
  margin: 20px 0;
  width: 100%;
}

.feedback-box {
  display: flex;
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-wrap: wrap;
}

.feedback-left,
.feedback-right {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  box-sizing: border-box;
}

/* 文本样式 */
.student-feedback p {
  margin: 0;
  line-height: 1.6;
}

.titleCss {
  font-weight: 700;
  color: #5534bd;
  margin-bottom: 32px !important;
}

.blodCss {
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
  display: block;
}

.normalCss {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.video-wrapper video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 中等屏幕（如大平板、横屏平板、部分小笔记本） */
@media (max-width: 1200px) {
  .video-wrapper {
    width: 96vw;
    max-width: 100vw;
    height: auto;
    height: 320px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    /* padding: 0 2vw; */
  }
  .ProfessorTestimonialsText {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}
/* 移动端适配 - 最大宽度768px的设备 */
@media (max-width: 768px) {
  .testimonials-details {
    padding: 0 40px !important;
    font-size: 1.8rem;
  }
  .video-wrapper {
    padding: 0 !important; /* 移除自身padding */
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    background-color: #f6f4f9 !important;
  }

  .ProfessorTestimonialsText {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* 横屏视频容器样式 */
  .video-wrapper:not(.portrait) {
    max-width: 100%;
    width: 100vw;
    height: 220px;
    aspect-ratio: 16/9;
  }
  .video-wrapper:not(.portrait) video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* 竖屏视频容器样式 */
  .video-wrapper.portrait {
    max-width: 320px;
    width: 90vw;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .video-wrapper.portrait video {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
  }

  .video-title {
    left: 5% !important;
    bottom: 55px !important;
    font-size: 1.2rem;
    padding: 5px 10px;
  }

  .custom-play-btn {
    width: 48px;
    height: 48px;
  }

  .custom-play-btn svg {
    width: 24px;
    height: 24px;
  }

  .episode-list {
    width: 8rem;
    top: 0.5rem;
    right: 1rem;
    height: calc(100% - 2rem);
  }

  .episode-item {
    height: 5rem;
    border-radius: 8px;
  }

  .episode-item span {
    font-size: 12px;
  }

  .feedback-box {
    flex-direction: column;
  }

  .feedback-left,
  .feedback-right {
    padding: 30px;
  }

  .feedback-left {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

/* 更小的移动设备 - 最大宽度480px */
@media (max-width: 480px) {
  .testimonials-details {
    padding: 0 10px !important;
    font-size: 1.5rem;
  }
  .video-wrapper {
    height: 205px !important;
  }
  /* 横屏视频容器样式 */
  .video-wrapper:not(.portrait) {
    max-width: 100%;
    width: 100vw;
    height: 205px !important;
    aspect-ratio: 16/9;
  }
  .video-wrapper:not(.portrait) video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* 竖屏视频容器样式 */
  .video-wrapper.portrait {
    max-width: 320px;
    width: 90vw;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .video-wrapper.portrait video {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
  }

  .ProfessorTestimonialsText {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .episode-list {
    width: 6rem; /* 进一步缩小 */
    gap: 6px;
  }

  .episode-item {
    height: 4rem;
  }

  .video-title {
    font-size: 1rem;
    left: 10px;
    bottom: 55px;
  }
}
