
body{
    overflow: hidden;
}
.videocontent {
    max-width: 1600px;
    width: 80%;
    margin: 0 auto;
    /* padding: 0 10%; */
    height: calc(100vh - 5rem); /* 100vh减去导航栏 */
    display: flex;
    align-items: center;
    justify-content: center; /* 水平居中 */
    margin-top: 5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 一行展示3个视频 */
    gap: 30px;
    width: 100%; /* 占据父容器全部宽度 */
    height: 80%; /* 视频占据父容器高度的80%，上下各留白10% */
    justify-self: center; /* 水平居中 */
    align-items: center;
}

.video-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
}

.video-card:hover {
    /* transform: translateY(-5px); */
}

.video-card:hover .video-thumbnail {
    filter: brightness(0.7);
    /* 变暗 */
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    z-index: 2;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 100;
    margin-bottom: 10px;
    color: white;
    text-align: center;
}

.video-desc {
    font-size: 0.6rem;
    line-height: 1.4;
    opacity: 0.9;
    color: white;
    text-align: center;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-icon i {
    font-size: 24px;
    color: white;
    margin-left: 4px;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    .videocontent {
        padding: 40px 20px;
        min-height: calc(100vh - 8rem);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-thumbnail {
        height: 300px;
    }

    .play-icon {
        width: 50px;
        height: 50px;
    }

    .play-icon i {
        font-size: 20px;
    }
}