

/* 视频列表页面样式 */
.video-list-container {
    padding: 60px 0;
    background: #f9f9f9;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2rem;
}

/* 视频分类导航 */
.video-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.video-categories .category {
    padding: 10px 25px;
    margin: 0 10px 10px;
    font-size: 1.1rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.video-categories .category.active,
.video-categories .category:hover {
    color: #006ABB;
    background: rgba(0,106,187,0.1);
    border-color: #006ABB;
}

/* 视频网格布局 */
.related-videos{}
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
    min-height: 300px; /* 确保网格有最小高度 */
}

/* 视频卡片样式 */
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    min-height: 250px; /* 确保卡片有最小高度 */
    display: flex;
    flex-direction: column;
}

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

.video-thumbnail {
    position: relative;
    height: 0;
    padding-bottom: 100%; /* 16:9 比例 */
    overflow: hidden;
    background: #f5f5f5; /* 添加默认背景色 */
}

.video-thumbnail img {
    position: absolute;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,106,187,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: all 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-info a{ text-decoration:none;}

/*分页*/
.pagination {
    
    padding-left: 0;
    margin: 20px 0;
	display: flex;
	justify-content: center;
    border-radius: 4px; }
.pagination > li {
    display: inline; }
.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.42857;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px; }
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px; }
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eeeeee;
    border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    cursor: default; }

.video-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.video-wrapper h1{
    font-size: 2rem !important;  
}

.video-title a{
	text-decoration:none;   
    color: #333;   
}

.video-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

.video-date {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-categories .category {
        padding: 8px 15px;
        margin: 0 5px 5px;
    }
}
