/* ==========================================================
   官网 · 视频中心（独立文件，不改变原有 style.css）
   ========================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  overflow: hidden;
}

.video-cover video,
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7, 29, 74, 0) 42%, rgba(7, 29, 74, .52));
  transition: background .2s ease;
}

.video-play i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}

.video-play i::after {
  content: "";
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--navy);
}

.video-card:hover .video-play {
  background: linear-gradient(180deg, rgba(7, 29, 74, .08) 0%, rgba(7, 29, 74, .58));
}

.video-body {
  padding: 16px 18px 18px;
}

.video-body h3 {
  font-size: 17px;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 6px;
}

.video-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.video-body .video-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #8a97ad;
}

/* ---------------- 播放弹层 ---------------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 14, 34, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-inner {
  width: min(960px, 100%);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  position: relative;
}

.video-modal video {
  width: 100%;
  display: block;
  max-height: 78vh;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, .3);
}

.video-modal-title {
  color: #fff;
  font-size: 15px;
  padding: 12px 16px;
  background: #0a0f1a;
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
  .video-modal { padding: 12px; }
  .video-modal-close { top: 8px; right: 8px; z-index: 2; }
}
