@charset "utf-8";
/* CSS Document */


.video-collections__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.video-collections__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.video-collections__header h2 {
    font-weight: 700;
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.video-collections__header p {
    margin: 0;
    color: var(--color-muted);
    max-width: 520px;
    line-height: 1.7;
}
.video-collections__header p:nth-of-type(2) {
    font-size: 16px;
}
.video-collections__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.video-collections__filters button {
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 52, 120, 0.24);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.video-collections__filters button:hover,
.video-collections__filters button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 52, 120, 0.12);
}

.video-collections__filters button.is-active {
    background: var(--color-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(0, 52, 120, 0.22);
}

.video-collections__grid {
    display: grid;
    gap: clamp(1.75rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: start;
    align-items: start;
}
.video-card {
    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;
    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;
}

.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: var(--color-primary-dark);
    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;
    font-weight: 700;
}

.video-card__body h3 a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-card__body h3 a:hover,
.video-card__body h3 a:focus {
    color: var(--color-primary);
}

.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: var(--color-primary-dark);
}













.video-modal {
    border: none;
    padding: 0;
    width: min(960px, 90vw);
    background: transparent;
}
html.is-video-modal-open {
    overflow: hidden;
}
/* 遮罩层样式 (::backdrop 是 dialog 特有的) */
.video-modal::backdrop {
    background: rgba(4, 10, 24, 0.75);
}
.video-modal__container {
  position: relative;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.video-modal__close {
  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;
}
.video-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

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




















@media (max-width: 960px) {
    .video-collections__grid {
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
    }
    .video-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        height: auto !important;
        max-height: none !important;
        min-height: unset !important;
        flex: 1 1 auto !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
        border-radius: 16px !important;
    }
}
@media (min-width: 961px) and (max-width:1191px) {
    .video-collections__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1192px) and (max-width:1439px) {
    .video-collections__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width:1440px) {
    .video-collections__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* 特殊处理：当容器内只有一个子元素时 */
    .video-collections__grid:has(> :only-child) {
        /* 强制列宽为 320px，不再拉伸 */
        grid-template-columns: 320px;
    }
    .video-card {
        width: min(320px, 100%); 
    }
}































