* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto 40px;
    max-width: 1200px;
    padding: 0 20px;
}

.gallery-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.play-icon svg {
    width: 30px;
    height: 30px;
    color: #2c3e50;
}

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

.gallery-item .title {
    padding: 18px 20px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 视频播放器容器样式 */
.video-player-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.video-player-container video {
    width: 100%;
    max-height: 70vh;
    border-radius: 5px;
}

.video-player-container h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .video-player-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .video-player-container {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}