/* 视频列表区域 */
.video-section {
    padding: 3rem 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 宽高比 */
    /* background-color: var(--light-gray);
    background-size: cover;
    background-position: center; */

     /* 智能处理：保持比例，完整显示 contain cover */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--light-gray); 
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.video-info {
    padding: 1.2rem;
    flex: 1;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.video-meta i {
    margin-right: 0.2rem;
}

.video-desc {
    font-size: 0.9rem;
    color: var(--dark-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
    padding: 0.6rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--dark-color);
    min-width: 40px;
    text-align: center;
}

.page-item:hover:not(.disabled):not(.active) {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
}

.page-item.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    font-weight: 600;
}

.page-item.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
    background: #f9f9f9;
}