/* 视频播放器容器 */
.geniatech-video-player {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.geniatech-video-container {
    position: relative;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 播放按钮 */
.geniatech-video-play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background-color: #ff0000;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.geniatech-video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 播放图标微调 */
.geniatech-video-play-btn i,
.geniatech-video-play-btn svg {
    margin-left: 2px; /* 稍微向右偏移，视觉上更居中 */
}

/* 水波扩散效果 */
.geniatech-video-play-btn::before,
.geniatech-video-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ff0000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
}

.geniatech-video-play-btn::before {
    animation: wave-pulse 2s infinite ease-out;
}

.geniatech-video-play-btn::after {
    animation: wave-pulse 2s infinite ease-out 1s; /* 延迟1秒开始 */
}

/* 水波动画关键帧 */
@keyframes wave-pulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* 悬停时加速动画 */
.geniatech-video-play-btn:hover::before {
    animation: wave-pulse-fast 1.5s infinite ease-out;
}

.geniatech-video-play-btn:hover::after {
    animation: wave-pulse-fast 1.5s infinite ease-out 0.75s;
}

@keyframes wave-pulse-fast {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* 视频灯箱 */
.geniatech-video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.geniatech-video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.geniatech-video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.geniatech-video-lightbox.active .geniatech-video-lightbox-content {
    transform: scale(1);
}

.geniatech-video-lightbox iframe,
.geniatech-video-lightbox video {
    width: 100%;
    height: 100%;
    border: none;
}

/* 关闭按钮 */
.geniatech-video-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.geniatech-video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 加载动画 */
.geniatech-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .geniatech-video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .geniatech-video-lightbox-content {
        width: 95%;
        margin: 20px;
    }
    
    .geniatech-video-lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .geniatech-video-container {
        height: 140px;
    }
    
    .geniatech-video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}
