/* ============================================
   封面视频背景
   与 .cover-frame .bg-box > img 保持一致的定位规则
   ============================================ */
.cover-frame .bg-box > video {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
  left: 0;
}

/* 视频铺在图片之上（如果同时存在） */
.cover-frame .bg-box {
  position: relative;
  overflow: hidden;
}

/* 视频模式下，封面文字要在视频之上 */
.cover-frame .cover-inner {
  z-index: 2;
}

/* 移动端：部分浏览器不允许自动播放带声音的视频，这里已设 muted */
@media (max-width: 768px) {
  .cover-frame .bg-box > video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}
