/* ============================================
   video.css  视频栏目页样式
   ============================================ */

/* ----- 视频筛选条 ----- */
.video-filter {
    background: #fff;
    border: 1px solid #d4e2f1;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.video-filter-row .filter-label {
    flex: 0 0 64px;
    font-size: 13px;
    color: #0036A2;
    font-weight: bold;
    letter-spacing: 1px;
}

.video-filter-row a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 2px;
    font-size: 13px;
    color: #555;
    background: #f4f8fc;
    border: 1px solid #e0e8f2;
    transition: all .15s;
}

.video-filter-row a:hover {
    color: #0036A2;
    border-color: #0036A2;
}

.video-filter-row a.active {
    background: #0036A2;
    border-color: #0036A2;
    color: #fff;
}

/* ----- 视频网格 ----- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.video-card {
    position: relative;
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 6px;
    overflow: hidden;
    transition: all .2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    border-color: #d4e2f1;
    box-shadow: 0 2px 8px rgba(40, 80, 160, .08);
    transform: translateY(-1px);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a1530;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb .play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, .45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.video-card:hover .video-thumb .play-icon {
    background: rgba(0, 54, 162, .85);
}

.video-thumb .play-icon::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

.video-thumb .duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 2px;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.video-info {
    padding: 10px 12px 12px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.video-info .title {
    font-size: 14px;
    color: #222;
    line-height: 1.5;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 42px;
}

.video-card:hover .video-info .title {
    color: #0036A2;
}

.video-info .meta {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-info .meta .date {
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

/* ----- 分页(复用 list.css 风格) ----- */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e2f1;
    background: #fff;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
}

.pagination a:hover {
    border-color: #0036A2;
    color: #0036A2;
}

.pagination .current {
    background: #0036A2;
    border-color: #0036A2;
    color: #fff;
    cursor: default;
}

.pagination .prev, .pagination .next {
    font-family: "SimSun", serif;
    font-weight: bold;
}

/* ----- 列表为空 ----- */
.empty-tip {
    padding: 60px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ============================================
   媒体查询 - Tablet (≤1024)
   ============================================ */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .video-filter {
        padding: 12px 14px;
    }
}

/* ============================================
   媒体查询 - Mobile (≤768)
   ============================================ */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-filter {
        padding: 10px;
        gap: 8px;
    }

    .video-filter-row .filter-label {
        flex: 0 0 100%;
        margin-bottom: 2px;
    }

    .video-filter-row a {
        height: 26px;
        padding: 0 10px;
        font-size: 12px;
    }

    .video-info {
        padding: 8px 10px 10px;
    }

    .video-info .title {
        font-size: 13px;
        min-height: 38px;
    }

    .video-info .meta {
        font-size: 11px;
    }

    .pagination {
        margin-top: 20px;
        gap: 4px;
    }

    .pagination a, .pagination span {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 13px;
    }
}
