#video-category {
  scroll-margin-top: 160px;
}

.resources-video-gridWrap .p-featuresCard__imageArea {
  border: none;
  padding: 0;
}

.resources-video-gridWrap .p-featuresCard {
  margin-bottom: 10px;
}

.resources-video-gridWrap .p-featuresCard__imageAreaInner {
  background-color: #f5f5f5;
}

.resources-video-gridWrap .p-featuresCard__imageAreaInner:before {
  padding-top: 75%;
}

.resources-video-gridWrap .p-featuresCard__imageAreaInner a {
  position: absolute;
  inset: 0;
}

.resources-video-gridWrap .p-featuresCard__imageAreaInner img {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -webkit-transform: none;
  transform: none;
  object-fit: contain;
}

/**
 * 修改日期：2026-07-20
 * 修改原因：视频资料页需要按设计图补充顶部广告区和二级分类。
 * 修改内容：
 * - 新增左侧轮播和右侧四宫格广告位样式。
 * - 新增二级分类、视频卡片日期与响应式布局样式。
 */
.resources-video-hero {
  margin-top: 24px;
  margin-bottom: 70px;
}

.resources-video-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.resources-video-hero__main,
.resources-video-hero__side {
  min-width: 0;
}

.resources-video-hero__single,
.resources-video-hero__single a,
.resources-video-hero__single picture {
  display: block;
}

.resources-video-hero__pc .swiper-slide,
.resources-video-hero__mobile .swiper-slide,
.resources-video-hero__single {
  position: relative;
}

.resources-video-hero__pc .swiper-slide > a,
.resources-video-hero__mobile .swiper-slide > a,
.resources-video-hero__single > a {
  display: block;
  position: relative;
  height: 100%;
}

.resources-video-hero__single img,
.resources-video-hero__pc img,
.resources-video-hero__mobile img,
.resources-video-hero__sideImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resources-video-hero__side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.resources-video-hero__sideImage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.resources-video-hero__sideImage img {
  position: absolute;
  inset: 0;
}

.resources-video-hero__sideCard {
  margin: 0;
  background-color: #ffffff;
}

.resources-video-hero__sideLink {
  display: block;
  height: 100%;
  color: #333333;
  text-decoration: none;
}

.resources-video-hero__sideText {
  padding-top: 8px;
}

.resources-video-hero__sideTitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: bold;
  color: #333333;
  text-decoration: none;
}

.resources-video-hero__sideLink:hover,
.resources-video-hero__sideLink:focus,
.resources-video-hero__sideLink:active,
.resources-video-hero__sideTitle,
.resources-video-hero__sideTitle:hover,
.resources-video-hero__sideTitle:focus,
.resources-video-hero__sideTitle:active {
  text-decoration: none;
}

.resources-video-hero__sideDate {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #9d9d9d;
}

.resources-video-hero__bannerCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 14px 20px;
  background-color: rgba(61, 61, 61, 0.7);
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  z-index: 2;
}

.resources-video-subTabs {
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  background-color: #ffffff;
}

.resources-video-subTabs__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

.resources-video-subTabs__unit {
  margin: 0;
}

.resources-video-subTabs__unit > a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: #6e6e6e;
  text-decoration: none;
}

.resources-video-subTabs__unit.is-current > a,
.resources-video-subTabs__unit > a:hover {
  color: #dd0000;
}

.resources-video-gridWrap .p-featuresCard__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resources-video-card__meta {
  margin-top: 10px;
}

.resources-video-card__meta time {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #9d9d9d;
}

@media screen and (min-width: 768px), print {
  .resources-video-hero__mobile {
    display: none;
  }

  .resources-video-hero__main {
    min-width: 0;
    min-height: 440px;
    position: relative;
  }

  .resources-video-hero__pc,
  .resources-video-hero__single {
    position: absolute;
    inset: 0;
  }

  .resources-video-hero__pc .p-mainSlide__pcInner,
  .resources-video-hero__pc .swiper-mainSlidePc,
  .resources-video-hero__pc .swiper-wrapper,
  .resources-video-hero__pc .swiper-slide,
  .resources-video-hero__single,
  .resources-video-hero__single picture,
  .resources-video-hero__single a,
  .resources-video-hero__single img {
    height: 100%;
  }

  .resources-video-hero__pc .swiper-slide > a,
  .resources-video-hero__pc .swiper-slide > a > img,
  .resources-video-hero__single > a,
  .resources-video-hero__single > a > picture,
  .resources-video-hero__single > a > picture > img {
    width: 100%;
    height: 100%;
  }

  .resources-video-hero__single picture,
  .resources-video-hero__single a {
    height: 100%;
  }

  .resources-video-hero__pc .swiper-pagination {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(64, 64, 64, 0.22);
    overflow: hidden;
    transform: translateX(-50%);
  }

  .resources-video-hero__pc .swiper-pagination .swiper-pagination-bullet {
    display: block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    min-width: 8px !important;
    max-width: 8px !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.62) !important;
    opacity: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }

  .resources-video-hero__pc .swiper-pagination .swiper-pagination-bullet-active {
    background-color: #ffffff !important;
  }

  .resources-video-hero__pc .swiper-container-horizontal > .swiper-pagination-bullets {
    left: 50% !important;
    bottom: 14px !important;
    width: auto !important;
    padding: 4px 10px !important;
    justify-content: center !important;
    transform: translateX(-50%) !important;
  }

  .resources-video-hero__pc .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
  .resources-video-hero__pc .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet + .swiper-pagination-bullet {
    margin-left: 0 !important;
  }

  .resources-video-hero__sideImage {
    overflow: hidden;
    border-radius: 10px;
  }

  .resources-video-hero__sideTitle {
    display: -webkit-box;
    overflow: hidden;
    min-height: 40px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .resources-video-gridWrap .p-featuresCard__textArea {
    min-height: 92px;
  }
}

@media screen and (max-width: 767px), print {
  .resources-video-hero {
    margin-top: 16px;
    margin-bottom: 60px;
  }

  .resources-video-hero__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resources-video-hero__pc {
    display: none;
  }

  .resources-video-hero__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .resources-video-hero__sideImage {
    overflow: hidden;
    border-radius: 8px;
  }

  .resources-video-hero__bannerCaption {
    padding: 10px 14px;
    font-size: 14px;
  }

  .resources-video-subTabs__wrap {
    gap: 8px 16px;
    padding: 10px 0;
  }

  .resources-video-subTabs__unit > a {
    font-size: 13px;
  }
}

.resources-video-gridWrap .c-card__imageArea_timeTag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
  top: auto;
  left: auto;
}

/* 手机视频列表每行两条，覆盖通用卡片列表的单列规则。 */
@media screen and (max-width: 767px) {
  .resources-video-gridWrap .l-gridWrap__grid--4Column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .resources-video-gridWrap .l-gridWrap__grid--4Column > .l-gridWrap__unit {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .resources-video-gridWrap .p-featuresCard__title {
    overflow-wrap: anywhere;
  }
}

/* 视频二级分类使用圆角浅灰背景，“全部”保留文字样式。 */
.resources-video-subTabs__wrap {
  align-items: center;
}

.resources-video-subTabs__unit:not(:first-child) > a {
  padding: 10px 16px;
  border-radius: 260px;
  background: #f5f5f5;
  line-height: 18px;
}
