/* ============================================================
 * tongji-detail.css  产业布局-通机 产品详情
 * ========================================================== */

/* ---- Banner ---- */
.detail-banner {
  height: 37.66vw;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 隐藏 banner 上的标题/英文/滚动提示（这三行不能丢） */
.detail-banner .inner-banner__title,
.detail-banner .inner-banner__en,
.detail-banner .inner-banner__scroll { display: none; }

.page-detail .sub-nav { position: static; box-shadow: none; }

/* ---- 详情区 ---- */
.detail { position: relative; padding: 2.7vw 0 3.4vw; }

.detail__inner {
  max-width: 1720px;
  display: flex;
  align-items: flex-start;
}

/* ============ 左侧媒体 ============ */
.detail__media { position: relative; width: 47.5%; flex: none; }
/* slide 固定 4:3 比例，图片/视频都填满，不再撑高 */
.detail-swiper .swiper-slide {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.detail-swiper .detail__card-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  position: relative;
}
.detail-swiper .detail__card-link[href$=".mp4"],
.detail-swiper .detail__card-link[data-type="video"] { cursor: pointer; }

.detail-swiper .detail__card {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;         /* ★ 完整显示，不裁切 */
  object-position: center center;
}

/* ★ 视频：黑色背景填充留白处 */
.detail-swiper video.detail__card {
  background: #f5f7fb;
  pointer-events: none;
}
.detail-swiper .detail__play,
.detail-swiper .detail-swiper__dots,
.detail-swiper .detail-swiper__arrow { z-index: 3; }

/* 视频角标 */
.detail__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .05em;
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.detail__badge::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #fff;
}

/* 播放按钮：默认隐藏，由 JS 按当前 slide 显示 */
.detail__play {
  display: none;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 8.7%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.96); color: #33415c;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(10,40,100,.28);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: pointer; border: 0;
}
.detail__play-ic { width: 42%; height: 42%; margin-left: 8%; }
.detail__play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  animation: playPulse 2.4s var(--ease-out) infinite;
}
@keyframes playPulse {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.detail__play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 .6vw rgba(64,132,240,.25), 0 10px 28px rgba(10,40,100,.35);
}

/* 圆点：图片右下角 */
.detail-swiper__dots {
  position: absolute;
  left: 80.2% !important;
  bottom: 3.4%;
  z-index: 3;
  display: flex;
  gap: .55vw;
  padding: 6px 10px;
  border-radius: 20px;
  backdrop-filter: blur(2px);
}
.detail-swiper__dots .detail-dot {
  width: .85vw; height: .85vw; border-radius: 50%; padding: 0;
  background: #fff; border: 1px solid #c4cfe2; cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
}
.detail-swiper__dots .detail-dot:hover { transform: scale(1.3); }
.detail-swiper__dots .detail-dot.is-active {
  background: var(--color-primary); border-color: var(--color-primary);
}

/* 箭头 */
.detail-swiper__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.9vw; height: 2.9vw; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.92); color: #33415c; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(10,40,100,.18);
  transition: background .25s var(--ease-out), color .25s;
}
.detail-swiper__arrow svg { width: 42%; height: 42%; }
.detail-swiper__arrow:hover { background: var(--color-primary); color: #fff; }
.detail-swiper__arrow--prev { left: 1.8%; }
.detail-swiper__arrow--next { right: 1.8%; }
.detail-swiper__arrow.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* ============ 右侧信息区（单块，不用 Swiper） ============ */
.detail__info {
  flex: 1;
  padding-left: 3%;
  padding-top: 3.2vw;
  min-width: 0;
  position: relative;
}

.detail__name {
  font-size: 1.56vw;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.detail__line {
  display: block;
  width: 2.24vw;
  height: 4px;
  margin: 1.3vw 0 2.1vw;
  background: var(--color-primary);
}
.detail__desc {
  font-size: .833vw;
  line-height: 2;
  color: var(--text-sub);
  margin: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .detail-banner { height: 46vw; min-height: 300px; }
  .detail__name { font-size: 22px; }
  .detail__line { width: 40px; margin: 14px 0 22px; }
  .detail__desc { font-size: 14px; line-height: 1.9; }
  .detail-swiper__arrow { width: 34px; height: 34px; }
  .detail-swiper__dots .detail-dot { width: 12px; height: 12px; }
}
@media (max-width: 768px) {
  .detail-banner { height: 240px; min-height: 0; }
  .detail { padding: 28px 0 36px; }
  .detail__inner { flex-direction: column; padding: 0 20px; }
  .detail__media { width: 100%; }
  .detail__play { width: 54px; }
  .detail-swiper__dots { gap: 8px; right: -24px; left: auto !important; bottom: 14px; padding: 5px 8px; }
  .detail-swiper__dots .detail-dot { width: 10px; height: 10px; }
  .detail-swiper__arrow { width: 38px; height: 38px; }
  .detail__info { padding-left: 0; padding-top: 26px; width: 100%; }
  .detail__name { font-size: 20px; }
  .detail__desc { font-size: 14px; }
}