/* 视频播放器样式 */
.video-section {
    width: 100%;
    padding: 2rem 0;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-player-container:hover .video-controls-overlay {
    opacity: 1;
}

.play-button, .fullscreen-button {
    width: 60px;
    height: 60px;
    background: rgba(191, 42, 50, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover, .fullscreen-button:hover {
    background: rgba(191, 42, 50, 1);
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.fullscreen-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    position: relative;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
}

.fullscreen-icon::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.fullscreen-icon::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.poster-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(191, 42, 50, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.poster-play-btn::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(191, 42, 50, 0.3);
    border-radius: 50%;
    animation: ripple-animation 2s infinite;
}

.poster-play-btn:hover {
    background: rgba(191, 42, 50, 1);
    transform: scale(1.1);
}

.triangle-right {
    width: 0;
    height: 0;
    border-left: 24px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    margin-left: 6px;
    position: relative;
    z-index: 1;
}

@keyframes ripple-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 全屏视频模态框 */
.fullscreen-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    animation: fadeInModal 0.3s ease;
}

.fullscreen-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#fullscreenVideo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.fullscreen-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.fullscreen-close-btn:hover {
    color: #BF2A32;
    background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-player-container {
        height: 300px;
        margin: 0 1rem;
    }
    
    .play-button, .fullscreen-button {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        border-left: 16px solid #fff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
    
    .fullscreen-icon {
        width: 20px;
        height: 20px;
    }
    
    .poster-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .poster-play-btn::before {
        width: 60px;
        height: 60px;
    }
    
    .triangle-right {
        border-left: 18px solid #fff;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
    }
    
    .fullscreen-close-btn {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .fullscreen-video-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .video-player-container {
        height: 250px;
    }
    
    .video-section {
        padding: 1rem 0;
    }
}
