@charset 'utf-8';
/* ============================================================
   一级页面/css/video.css —— 視頻資源 页面样式（新闻中心-視頻資源）
   说明：
   1. 1rem = 100px（与 common.css 自适应换算一致）
   2. 兼容 IE11：Flexbox 均书写 -ms- 前缀；关键尺寸提供 px 兜底
   3. 禁止 CSS Grid；头尾/面包屑/分页复用 common/topbottom-hh.css
   ============================================================ */

/* ---------- 内容区（紫色渐变背景） ---------- */
.video-main {
  background: linear-gradient(180deg, #2b1075 0%, #957ed1 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF2B1075', endColorstr='#FF957ED1', GradientType=0);
  padding-bottom: 10px;
  padding-bottom: 0.1rem;
  background-color: #2b1075;
}
.video-inner {
  width: 1530px;
  width: 15.3rem;
  margin: 0 auto;
  padding-bottom: 30px;
  padding-bottom: 0.3rem;
}
/* 面包屑（紫色背景上为白色文字） */
.video-inner .hh-crumb {
  color: #ffffff;
}
.video-inner .hh-crumb a {
  color: #ffffff;
}
.video-inner .hh-crumb a:hover {
  color: #e8e0f7;
}

/* ---------- 视频卡片网格（3 行 x 3 列） ---------- */
.video-grid {
  width: 100%;
}
.video-card {
  width: 492px;
  width: 4.92rem;
  margin-bottom: 30px;
  margin-bottom: 0.3rem;
  background: #ffffff;
  box-sizing: border-box;
  padding: 20px 20px 32px;
  padding: 0.2rem 0.2rem 0.32rem;
  cursor: pointer;
  margin-right: 0.27rem;
  height: 402px;
  height: 4.02rem;
  overflow: hidden;
}
.video-card:nth-child(3n) {
  margin-right: 0;
}
/* 封面图 */
.video-cover {
  width: 452px;
  width: 4.52rem;
  height: 278px;
  height: 2.78rem;
  overflow: hidden;
}
.video-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
  -webkit-transition: -webkit-transform 0.5s ease;
  -ms-transition: -ms-transform 0.5s ease;
}
.video-card:hover .video-cover img {
  transform: scale3d(1.05, 1.05, 1.05);
  -webkit-transform: scale3d(1.05, 1.05, 1.05);
  -ms-transform: scale3d(1.05, 1.05, 1.05);
}
/* 标题 */
.video-title {
  margin-top: 20px;
  margin-top: 0.2rem;
  padding-left: 10px;
  padding-left: 0.1rem;
  font-family: "Microsoft YaHei";
  font-size: 20px;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 167.25%;
  color: #3d3d3d;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-card:hover .video-title {
  color: #6440c3;
}

/* ---------- 分页器（紫色背景上） ---------- */
.video-inner .hh-pagination {
  margin-bottom: 0;
}

/* ================= 视频播放弹窗（点击视频卡片弹出） ================= */
.video-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}
.video-lightbox.open {
  display: block;
}
/* 弹窗打开时锁定背景滚动（移动端） */
body.vl-open {
  overflow: hidden;
}
.video-lightbox .vl-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
/* 关闭按钮 */
.video-lightbox .vl-close {
  position: absolute;
  top: 20px;
  top: 0.2rem;
  right: 30px;
  right: 0.3rem;
  width: 44px;
  width: 0.44rem;
  height: 44px;
  height: 0.44rem;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 44px;
  font-size: 0.44rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.video-lightbox .vl-close:hover {
  color: #9780d3;
}
/* 视频容器：垂直水平居中于视口（固定高度，不随内容塌陷） */
.video-lightbox .vl-body {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 1200px;
  max-width: 12rem;
  height: 7.8rem;
  height: 78vh;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}
/* 视频：等比缩放、不超出容器，黑底 */
.video-lightbox .vl-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  background: #000000;
}

/* ---------- 响应式（平板/移动端 ≤1024px） ---------- */
@media screen and (max-width: 1024px) {
  .video-main {
    padding: 0 0.2rem 0.1rem;
  }
  .video-inner {
    width: 100%;
    padding-bottom: 0.2rem;
    box-sizing: border-box;
  }
  /* 移动端：卡片单列展示 */
  .video-grid {
    display: block;
  }
  .video-card {
    width: 100%;
    margin-bottom: 0.25rem;
    padding: 0.2rem;
    display: block;
    margin-right: 0;
    height: auto;
  }
  .video-cover {
    width: 100%;
    height: 3.4rem;
  }
  .video-title {
    font-size: 0.26rem;
  }
  .video-inner .hh-crumb,
  .video-inner .hh-crumb a {
    font-size: 0.26rem;
  }
  .video-lightbox .vl-body {
    width: 92%;
    height: 7.2rem;
    height: 72vh;
  }
  .video-lightbox .vl-close {
    top: 0.1rem;
    right: 0.15rem;
    width: 44px;
    height: 44px;
    font-size: 40px;
  }
}
