/* 基础重置：消除浏览器默认样式差异 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 视频容器：响应式高度，相对定位 */
.video-full {
  width: 100%;
  min-height: 500px; /* 替代固定高度，适配不同屏幕 */
  height: 100vh; /* 可选：占满视口高度，根据需求调整 */
  max-height: 800px;
  position: relative;
  overflow: hidden;
}

/* 视频播放器：全兼容样式 */
.video-player {
  width: 100%;
  height: 100%;
  /* 兼容Safari/旧版Chrome的object-fit */
  object-fit: cover;
  -webkit-object-fit: cover;
  /* 消除视频默认控制条（如需保留可移除） */
  display: block; /* 消除inline默认间隙 */
}

/* 叠加层：半透明遮罩，兼容透明度 */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  background: rgba(0, 0, 0, 0.3); /* 标准透明度 */
  filter: alpha(opacity=30); /* IE8- 透明度兼容 */
  z-index: 5;
}

/* 文字内容：居中+兼容 */
.video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 兼容旧版浏览器的居中（transform + 负margin） */
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  margin-top: -20px; /* 兜底兼容 */
  text-align: center;
  color: #fff;
  z-index: 10;
  padding: 0 20px; /* 移动端左右留白 */
}

.video-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  /* 文字阴影：提升可读性，兼容前缀 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  -webkit-text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* 按钮样式：兼容鼠标/触摸 */
.video-btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  margin: 2rem 0.5rem 0 0.5rem;
  /* 触摸反馈兼容 */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.video-btn:hover {
  background: #096dd9;
}

/* 降级样式：不支持video时显示 */
.video-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  color: #333;
  padding: 20px;
}

.video-fallback a {
  color: #1890ff;
  text-decoration: none;
  margin-top: 10px;
}

/* 响应式适配：覆盖移动端/平板 */
@media (max-width: 768px) {
  .video-full {
    min-height: 300px;
    max-height: 500px;
  }
  .video-content h1 {
    font-size: 1.8rem;
    -webkit-font-size: 1.8rem;
  }
  .video-content p {
    font-size: 1rem;
  }
  .video-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* IE9+ 兼容：修复transform */
@media screen and (min-width: 0\0) {
  .video-content {
    top: 50%;
    left: 50%;
    transform: none;
    margin-left: -50%;
    margin-top: -25%;
  }
}
