/* 基础样式重置 */
body {
    margin: 0;
    padding: 20px;
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

/* 视频封面图样式 */
.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 遮罩层样式 */
.video-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: height 0.3s ease;
    overflow: hidden;
}

.video-info {
    padding: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease 0.1s;
}

.video-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.video-info p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* 播放按钮样式 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
    width: 50px;
    height: 50px;
}

.play-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 悬停效果 */
.video-link:hover .video-cover {
    transform: scale(1.05);
}

.video-link:hover .video-mask {
    height: 100%;
}

.video-link:hover .video-info {
    transform: translateY(0);
}

.video-link:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}