/* videos.html 专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 视频分类按钮 */
.video-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    justify-content: center;
}

.video-category-btn {
    padding: 10px 25px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #555;
}

.video-category-btn:hover {
    background: #e8f0fe;
    color: #1a237e;
}

.video-category-btn.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* 视频列表 */
.videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* 视频缩略图 */
.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(26, 35, 126, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    background: rgba(26, 35, 126, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 视频信息 */
.video-info {
    padding: 25px;
}

.video-info h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.video-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    font-size: 0.8rem;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #555;
}

.page-btn:hover {
    border-color: #1a237e;
    color: #1a237e;
}

.page-btn.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

.page-btn.next {
    width: auto;
    padding: 0 20px;
}

/* 视频模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.video-modal-inner {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

#modalVideo {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.video-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}

.video-close:hover {
    background: rgba(255,255,255,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px;
        margin-top: 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .video-categories {
        gap: 10px;
    }
    
    .video-category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .videos-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-info h3 {
        font-size: 1.2rem;
    }
    
    .video-modal-inner {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .videos-list {
        grid-template-columns: 1fr;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}