.gw_video_setting {
  position: absolute;
  left: 0;
  top: 100px;
  width: 100%;
}

.gw_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.gw_video video {
  display: block;
  margin: auto;
  cursor: pointer;
  width: 100%;
  min-height: 350px;
}

/* 播放按钮样式 */
.gw_video .play-button {
  position: absolute;
  top: 320px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.gw_video .play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 5px;
}

.gw_video .play-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateX(-50%) scale(1.1);
}

/* 当配置了弹出视频地址时，鼠标悬停显示播放按钮 */
.gw_video.has-popup-video:hover .play-button {
  display: flex;
}

/* 弹出视频播放器样式 */
.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-popup-container {
  position: relative;
  width: 96vw;
  height: 90vh;
  max-width: 1920px;
  max-height: 100%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  z-index: 10000;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-popup-close:hover {
  background-color: rgba(255, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

.video-popup-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .video-popup-container {
    width: 98vw;
    height: 95vh;
  }
  
  .video-popup-close {
    top: 5px;
    right: 10px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
  
  .gw_video .play-button {
    width: 60px;
    height: 60px;
  }
  
  .gw_video .play-button::before {
    border-width: 12px 0 12px 20px;
  }
}