/* 视频列表全局容器 */
.first-container {
    max-width: 1400px; /* 加宽容器以适配5列布局 */
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px; /* 缩小间距，让4列更紧凑 */
}

/* 单个视频项 */
.first-item {
    width: calc(25% - 20px); /* 4列布局，间距均分 */
    overflow: hidden;
}

/* 视频链接 */
.first-link {
    display: block;
    text-decoration: none;
    color: #333;
}

/* 视频缩略图区域 */
.first-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比，与图二保持一致 */
    border-radius: 8px; /* 视频容器圆角 */
    overflow: hidden;
}

.first-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，避免变形 */
}

/* 缩略图元信息（播放量+时长） */
.first-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.first-play::before {
    content: "▶ ";
}

/* 视频信息区域（标题+日期） */
.first-info {
    padding: 8px;
}

.first-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.first-date {
    font-size: 11px;
    color: #999;
}

/* 响应式布局适配 */
@media (max-width: 1200px) {
    .first-item {
        width: calc(25% - 9px); /* 4列 */
    }
}

@media (max-width: 992px) {
    .first-item {
        width: calc(33.33% - 8px); /* 3列 */
    }
}

@media (max-width: 768px) {
    .first-container {
        gap: 6px;
        padding: 0 10px;
    }
    .first-item {
        width: calc(50% - 6px); /* 2列 */
    }
    .first-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .first-item {
        width: 100%; /* 1列 */
    }
}