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

.video-player-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.video-player-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.close-video-player {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.2s;
}

.close-video-player:hover {
  color: #343a40;
}

.video-content {
  width: 100%;
  border-radius: 8px;
  background-color: #000;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  min-height: 400px;
}

.video-placeholder {
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
}

/* 工作流简介样式 */
.workflow-excerpt {
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 20px;
  border-radius: 0 0 8px 8px;
}

.workflow-excerpt h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.workflow-excerpt p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin: 0;
}

/* 文件下载样式 */
.workflow-download {
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 20px;
  border-radius: 0 0 8px 8px;
}

.workflow-download h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.workflow-download p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin: 0 0 15px 0;
}

.workflow-download .btn {
  margin-right: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .video-player-container {
    width: 95%;
    padding: 15px;
  }
  
  .video-player-title {
    font-size: 1rem;
  }
  
  .video-content {
    min-height: 250px;
  }
  
  .video-content iframe {
    min-height: 250px;
  }
  
  .workflow-excerpt, .workflow-download {
    padding: 15px;
  }
  
  .workflow-excerpt h5, .workflow-download h5 {
    font-size: 1rem;
  }
  
  .workflow-excerpt p, .workflow-download p {
    font-size: 0.9rem;
  }
}

/* 添加动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-player-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

/* 调整卡片悬停效果 */
.card-img-container {
  position: relative;
  overflow: hidden;
}

.card-img-container:hover .play-button {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
  /* 确保按钮在容器内正确居中 */
  margin: 0;
  padding: 0;
}

/* 确保播放按钮在移动端也能正确显示 */
@media (max-width: 768px) {
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

.card-img-container {
  cursor: pointer;
}