@charset "utf-8";
/* 首页 Banner：横向循环焦点图（复刻 swiper.com.cn/demo/certify，数据 scode=7 海南线路） */

/* ============ 区块外壳 ============ */
.gdhero-certify {
  position: relative;
  /* 独立层叠上下文：把内部 slide(z-index 100)/箭头(300) 关在本区块内，
     否则它们会泄漏到根层叠上下文并盖住导航下拉菜单（z-index 1000） */
  z-index: 1;
  padding: 26px 0 6px;
  background: linear-gradient(180deg, #017bdd 0%, #ffffff 62%);
  overflow: hidden;
}
.gdhero-certify__hd { text-align: center; margin-bottom: 6px; }
.gdhero-certify__hd h2 {
  margin: 16px 0 14px; font-size: 26px; font-weight: 700; color: #fff;
  letter-spacing: .5px;
}
.gdhero-certify__hd p { margin: 0 0 40px; font-size: 18px; color: #ffffff; }

/* ============ certify 主容器（1200px 居中） ============ */
.certify {
  position: relative;
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}
.certify { padding-bottom: 44px; }
/* 卡片放大后容器同步加高；margin-bottom:50px 为既定要求，保持不变 */
.certify .swiper-container { position: relative; height: 540px; margin-bottom: 50px; }
/* 全部卡片绝对居中叠放，由 JS 计算 translateX/scale 错位成 coverflow */
.certify .swiper-wrapper { position: absolute; inset: 0; display: block; }

/* 单张线路卡片：中间卡（scale=1）由 520x408 放大到 700x540，图片区 310→420 */
.certify .swiper-slide {
  position: absolute;
  left: 50%; top: 0;
  width: 700px;
  height: 540px;
  margin-left: -350px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(31, 78, 121, .18);
  border-radius: 4px;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.certify-slide-link {
  display: block; width: 100%; height: 100%;
  color: inherit; text-decoration: none;
}
/* 图片区 */
.certify-slide__media {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #eef4f9;
}
.certify-slide__media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.certify-slide__badge {
  position: absolute; left: 16px; top: 16px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(215, 38, 61, .92); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
}
/* 信息区：420 + 120 = 540 */
.certify-slide__info {
  height: 120px; padding: 14px 24px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
}
.certify-slide__name {
  margin: 0 0 10px; font-size: 23px; line-height: 1.3;
  font-weight: 700; color: #1a2b3c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.certify-slide__meta { font-size: 14px; color: #8a98a6; }
.certify-slide__meta b { color: #d7263d; font-size: 21px; font-weight: 700; }
.certify-slide__meta small { font-size: 13px; font-weight: 400; }
.certify-slide__meta .dot { margin: 0 10px; color: #c8d2dc; }

/* ============ 圆点分页 ============ */
.certify .swiper-pagination {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  width: 100%;
  text-align: center;
  z-index: 200;
}
.certify .swiper-pagination-bullet {
  display: inline-block;
  margin: 0 5px;
  border: 3px solid #fff;
  background-color: #d5d5d5;
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.certify .swiper-pagination-bullet-active {
  border: 3px solid #0f74bd;
  background-color: #fff;
}

/* ============ 左右圆箭头（雪碧图） ============ */
.certify .swiper-button-prev,
.certify .swiper-button-next {
  position: absolute;
  top: 270px; /* 卡片高度 540 的一半，垂直居中 */
  margin-top: -22px;
  width: 45px; height: 45px;
  background-image: url(/skin/images/banner/wm_button_icon.png);
  background-repeat: no-repeat;
  background-size: 100%;
  outline: none;
  cursor: pointer;
  z-index: 300;
}
/* -350 半宽 + 10 = -340，保持箭头压在卡片左/右边缘内侧 10px 的原关系 */
.certify .swiper-button-prev { left: -340px; background-position: 0 0; }
.certify .swiper-button-prev:hover { background-position: 0 -46px; }
.certify .swiper-button-next { right: -340px; background-position: 0 -93px; }
.certify .swiper-button-next:hover { background-position: 0 -139px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .certify .swiper-container { height: 390px; }
  .certify .swiper-slide { width: 500px; height: 390px; margin-left: -250px; }
  .certify-slide__media { height: 296px; }
  .certify-slide__info { height: 94px; padding: 8px 14px; }
  .certify-slide__name { font-size: 19px; margin-bottom: 6px; }
  .gdhero-certify__hd h2 { font-size: 22px; }
  .certify .swiper-button-prev { left: -6px; top: 195px; }
  .certify .swiper-button-next { right: -6px; top: 195px; }
}
@media (max-width: 560px) {
  .gdhero-certify { padding-top: 18px; }
  .gdhero-certify__hd p { display: none; }
  /* 手机端只显示中间一张，宽度受视口限制不宜过大，主要加高让图片更大 */
  .certify .swiper-container { height: 280px; }
  .certify .swiper-slide { width: 320px; height: 280px; margin-left: -160px; }
  .certify-slide__media { height: 200px; }
  .certify-slide__info { height: 80px; padding: 6px 10px; }
  .certify-slide__name { font-size: 16px; margin-bottom: 4px; }
  .certify-slide__meta { font-size: 12px; }
  .certify-slide__meta b { font-size: 16px; }
  /* 移动端不要把按钮缩到 36px：雪碧图是 63x258、按 45px 宽渲染时
     每格 46px（0 / -46 / -93 / -139）。缩到 36px 后 background-size:100%
     会把整张图等比压小，固定 -93px 位置直接串格，next 箭头显示错乱。
     这里保持 45x45 并锁定背景宽度，位置与桌面完全一致。 */
  .certify .swiper-button-prev,
  .certify .swiper-button-next {
    width: 45px; height: 45px; top: 140px;
    background-size: 45px auto;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
  }
  .certify .swiper-button-prev { left: 0; }
  .certify .swiper-button-next { right: 0; }
}
