/**
 * 视频中心样式
 */

/* Banner 区域 */
.videos-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #1a1a1a;
}

.videos-banner .banner-video,
.videos-banner .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.videos-banner .banner-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.videos-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.videos-banner .banner-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.videos-banner .banner-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0;
}

/* 分类筛选 */
.videos-filter {
    background: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.videos-filter .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.videos-filter .filter-tab {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.videos-filter .filter-tab:hover {
    border-color: #007bff;
    color: #007bff;
}

.videos-filter .filter-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* 视频列表 */
.videos-list {
    padding: 50px 0;
    background: #fff;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 视频卡片 */
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 123, 255, 0.9);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #f0f0f0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 48px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.video-play-btn i {
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.video-category {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
}

.video-views i {
    margin-right: 3px;
}

/* 分页 */
.videos-pagination {
    margin-top: 40px;
    text-align: center;
}

.videos-pagination .pagination {
    display: inline-flex;
    gap: 5px;
}

.videos-pagination .pagination li a,
.videos-pagination .pagination li span {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.videos-pagination .pagination li a:hover {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.videos-pagination .pagination li.active span {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.videos-pagination .pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
}

/* 空状态 */
.videos-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.videos-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.videos-empty p {
    font-size: 18px;
    margin: 0;
}

/* 视频播放弹窗 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.video-modal-content video {
    width: 100%;
    max-height: 80vh;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: opacity 0.3s ease;
}

.video-modal-close:hover {
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .videos-banner {
        height: 300px;
    }
    
    .videos-banner .banner-title {
        font-size: 36px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .videos-banner {
        height: 250px;
    }
    
    .videos-banner .banner-title {
        font-size: 28px;
    }
    
    .videos-banner .banner-subtitle {
        font-size: 14px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-filter .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .videos-filter .filter-tab {
        flex-shrink: 0;
    }
}
