@charset "utf-8";
/* CSS Document */
html.is-video-modal-open {
    overflow: hidden;
}
.main-container > section:nth-child(3) {
    padding-bottom: clamp(4rem, 6vw, 6rem);
}
.video-collections__grid {
    display: grid;
    gap: clamp(1.75rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fill, 320px);
    justify-content: start;
    align-items: start;
    padding:2vw 0;
}
.video-card {
    width: min(320px, 100%);
    background: linear-gradient(160deg, rgba(0, 52, 120, 0.08), rgba(0, 52, 120, 0.02));
    border: 1px solid rgba(0, 52, 120, 0.12);
    border-radius: 24px;
    padding: clamp(1.3rem, 3vw, 1.9rem);
    box-shadow: 0 18px 36px rgba(7, 22, 53, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: visible;
    height: auto !important;
    max-height: none !important;
    min-height: clamp(25rem, 35vw, 28rem);
    max-width: none !important;
    min-width: auto !important;
    flex: 1 1 auto !important;
    position: relative;
}
.video-card:hover,
.video-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(7, 22, 53, 0.18);
}
.video-card[hidden] {
  display: none !important;
}
.video-card__poster {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(7, 22, 53, 0.12);
    aspect-ratio: 1 / 1;
    background: #0d1a32;
    flex-shrink: 0;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    order: 2;
}
.video-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}
.video-card:hover .video-card__poster img,
.video-card:focus-within .video-card__poster img {
  transform: scale(1.05);
}
.video-card__play {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 52, 120, 0.85);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    font-family: "Arial";
}
.video-card__play:hover,
.video-card__play:focus {
    transform: scale(1.1);
    background: rgba(9, 164, 255, 0.95);
}
.video-card__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    order: 1;
}
.video-card__body h3 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    line-height: 1.35;
    color: #001e4d;
    flex-shrink: 0;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 1;
}
.video-card__body h3 a {
    color: #001e4d;
    text-decoration: none;
    transition: color 0.2s ease;
}
.video-card__body h3 a:hover,
.video-card__body h3 a:focus {
    color: #003478;
}
.video-card__body p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    min-height: calc(1.65em * 3);
}
.video-card__meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    order: -1;
}
.video-card__tag {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(9, 164, 255, 0.16);
  color: #001e4d;
}





@media (max-width: 960px) {
    .container {
        padding: 0 1.5rem;
    }
    .video-collections__grid {
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
    }
}





/* 模态框基础样式 */
.video-modal {
  border: none;
  padding: 0;
  width: min(960px, 90vw);
  background: transparent;
}

/* 遮罩层样式 (::backdrop 是 dialog 特有的) */
.video-modal::backdrop {
  background: rgba(4, 10, 24, 0.75);
}


/* 内容容器 */
.modal-content {
  position: relative;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}


.video-modal__frame {
  aspect-ratio: 16 / 9;
  width: min(960px, 90vw);
  position: relative;
}












/* 关闭按钮样式 */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* 确保视频适应容器 */
video {
  display: block;
  max-height: 80vh;
}
















