/*
 * 视频列表页样式文件
 * 1比1复刻农夫山泉视频列表页样式
 */

/* 视频列表页面 */

.video-list-page {
    min-height: 100vh;
    padding: 40px 0;
    background-color: white;
}

.video-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: white;
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    padding-top: 30px;
    text-align: center;
}

/* 视频分类 */
.video-categories {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.category-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin: 0 20px;
}

.category-item a {
    display: block;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.category-item a:hover {
    color: #e60012;
}

.category-item.active a {
    color: #e60012;
    border-bottom-color: #e60012;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-item {
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    display: block;
    transition: transform 0.3s 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-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    background-color: rgba(230, 0, 18, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    margin-left: 5px;
}

.video-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    margin: 0 5px;
}

.pagination-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    color: #e60012;
    border-color: #e60012;
}

.pagination-link.active {
    background-color: #e60012;
    color: white;
    border-color: #e60012;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-list-container {
        padding: 0 20px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-item {
        margin: 0 10px;
    }
    
    .category-item a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        flex-wrap: wrap;
    }
    
    .category-item {
        margin: 5px;
    }
}