/* ==========================================================================
   media.css —— 只作用于 media/ 图片视频栏目
   ========================================================================== */

/* ---------- 图片墙 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  cursor: zoom-in; background: var(--primary-light); border: 0; padding: 0; width: 100%;
}
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 13px 18px;
  background: rgba(6, 17, 60, 0.86); color: #fff;
  font-size: 14px; text-align: left; letter-spacing: 0.3px;
}

/* ---------- 图片灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(6, 12, 30, 0.9); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }

/* ---------- 视频列表 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.video-card .player { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.video-card .player img { width: 100%; height: 100%; object-fit: cover; }
.video-cover {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: transparent;
}
.video-cover .play {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  color: var(--primary); font-size: 26px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.video-cover:hover .play { transform: scale(1.08); background: #fff; }
.video-card .vc-body { padding: 20px 22px; }
.video-card h3 { font-size: 17px; margin-bottom: 6px; }
.video-card p { font-size: 14px; color: var(--text-light); }

/* ---------- 媒体中心首屏两栏 ---------- */
.media-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }

@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .media-split { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
}
