/* RuYan Video Showcase Styles */
@keyframes RuYan_bounce {
    0%, 20%, 50%, 80%, to {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* 视频展示容器 */
.RuYan_video-showcase {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 100000;
    transition: transform 1s ease, opacity 1s ease;
}

/* 视频背景 - 自适应 */
.RuYan_video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* 隐藏视频控件 */
.RuYan_video-background::-webkit-media-controls {
    display: none !important;
}

/* 视频遮罩 */
.RuYan_video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* 音量控制 */
.RuYan_volume-control {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.RuYan_volume-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.RuYan_volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.RuYan_volume-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.RuYan_volume-slider-container {
    display: flex;
    align-items: center;
}

.RuYan_volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.RuYan_volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.RuYan_volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.RuYan_volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

/* 滚动向下按钮 */
.RuYan_scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    animation: RuYan_bounce 2s infinite;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.RuYan_scroll-down:hover {
    transform: translateX(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.RuYan_scroll-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 关闭选项 */
.RuYan_close-options {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 20px;
}

.RuYan_close-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.RuYan_close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .RuYan_volume-control {
        top: 20px;
        right: 20px;
        padding: 8px 12px;
    }
    
    .RuYan_volume-slider {
        width: 60px;
    }
    
    .RuYan_close-options {
        flex-direction: column;
        gap: 12px;
        bottom: 120px;
    }
    
    .RuYan_close-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .RuYan_scroll-down {
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .RuYan_video-background {
        width: 100%;
        height: auto;
    }
    
    .RuYan_close-options {
        bottom: 80px;
    }
    
    .RuYan_scroll-down {
        bottom: 15px;
    }
}

/* 大屏设备优化 */
@media (min-width: 1920px) {
    .RuYan_video-background {
        width: 100%;
        height: 100%;
    }
}