/* ================= 视频展示页面样式 ================= */

/* 性能优化 */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 介绍文字磨砂玻璃效果 */
.intro-glass {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  max-width: 800px;
  transition: all 0.3s ease;
}

.intro-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.intro-glass p {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .intro-glass {
    padding: 20px;
    margin: 15px;
  }
  
  .intro-glass p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .intro-glass {
    padding: 15px;
    margin: 10px;
  }
  
  .intro-glass p {
    font-size: 14px;
  }
}
.video-showcase {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.video-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  text-align: center;
}

/* 视频包装器 */
.video-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* 视频占位符 */
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
  transition: all 0.3s ease;
  position: relative;
}

.video-placeholder:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.video-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.95);
}

/* 播放按钮 */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  padding-left: 5px; /* 让三角形居中 */
}

/* 提示文字 */
.video-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.showcase-video {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 全屏时保持视频比例 */
.showcase-video:fullscreen {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.showcase-video:-webkit-full-screen {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.showcase-video:-moz-full-screen {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.showcase-video:-ms-fullscreen {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.video-description {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .video-item {
    padding: 15px;
  }
  
  .video-wrapper,
  .showcase-video {
    height: 180px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .video-overlay {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .video-item h3 {
    font-size: 16px;
  }
  
  .video-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .video-showcase {
    padding: 10px;
  }
  
  .video-wrapper,
  .showcase-video {
    height: 160px;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .video-overlay {
    font-size: 12px;
    padding: 5px 10px;
    bottom: 10px;
  }
  
  .video-item h3 {
    font-size: 15px;
  }
}

/* 移动端横屏优化 - 保持视频比例 */
@media (max-width: 900px) and (orientation: landscape) {
  .showcase-video {
    object-fit: contain;
    max-height: 70vh;
  }
  
  .showcase-video:fullscreen {
    object-fit: contain;
  }
  
  .showcase-video:-webkit-full-screen {
    object-fit: contain;
  }
}

/* iOS Safari 特殊处理 */
@supports (-webkit-touch-callout: none) {
  .showcase-video {
    object-fit: contain;
  }
  
  .showcase-video:fullscreen,
  .showcase-video:-webkit-full-screen {
    object-fit: contain;
    background: #000;
  }
}
