/* CSS */
.cp-about-module {
  max-width: 1200px; /* 新增最大宽度限制 */
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

.cp-media-section {
  display: flex;
  gap: 15px;
  min-height: 400px;
}

.cp-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s;
}

.cp-left-image {
  cursor: pointer;
}

.cp-right-image {
  text-decoration: none;
  display: block;
}

.cp-right-image:hover {
  opacity: 0.9;
}

.cp-image-box {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

.cp-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 播放按钮样式 */
.cp-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  clip-path: polygon(35% 43%, 35% 57%, 65% 50%);
  border-radius: 50%;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.cp-left-image:hover .cp-play-btn {
  opacity: 1;
}

/* 视频弹窗样式 */
.cp-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
}

.cp-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  padding: 20px;
  background: #000;
  border-radius: 8px;
}

.cp-video-frame {
  width: 100%;
  height: 450px;
  border: none;
}

.cp-close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .cp-about-module {
    padding: 20px 15px;
  }

  .cp-media-section {
    flex-direction: column;
    min-height: auto;
  }

  .cp-image-wrap {
    flex: none !important;
    height: 300px;
  }

  .cp-right-image {
    height: 200px;
  }

  .cp-modal-content {
    width: 95%;
    padding: 10px;
  }

  .cp-video-frame {
    height: 300px;
  }

  .cp-close-btn {
    right: 10px;
    top: 10px;
    font-size: 24px;
  }
}