/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Swiper容器样式 */
.swiper-container {
    width: 100%;
    /* height: 100vh; */
    position: relative;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 视频加载动画 */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-loading.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 视频覆盖层样式 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
    backdrop-filter: blur(2px);
}

.video-overlay:hover {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

/* 播放图标样式 */
.play-icon {
    width: 90px;
    height: 90px;
    border: 3px solid #fff;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 32px solid #fff;
    transition: transform 0.3s ease;
}

.video-overlay:hover .play-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.video-overlay:hover .play-icon::after {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 播放文字样式 */
.play-text {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.6s ease forwards 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper导航样式 */
.swiper-pagination {
    bottom: 25px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Swiper控制按钮样式 */
.swiper-button-prev, .swiper-button-next {
    color: rgba(255, 255, 255, 0.9);
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 22px !important;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 视频控制条样式 */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 20px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    pointer-events: none;
}

.video-container:hover .video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-left, .control-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.volume-slider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1.5px;
    outline: none;
    -webkit-appearance: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.volume-container:hover .volume-slider {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

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

.time-display {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
}

/* 响应式设计 - 适配移动设备 */
@media screen and (max-width: 768px) {
    .swiper-container {
        /* height: 60vh; */
    }
    
    .play-icon {
        width: 70px;
        height: 70px;
    }
    
    .play-icon::after {
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        border-left: 24px solid #fff;
    }
    
    .play-text {
        font-size: 16px;
        letter-spacing: 0;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 6px !important;
    }
    
    .swiper-button-prev, .swiper-button-next {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 18px !important;
    }
    
    .video-controls {
        padding: 15px 15px 10px;
    }
    
    .control-left, .control-right {
        gap: 10px;
    }
    
    .volume-slider {
        width: 40px;
    }
}

/* 隐藏覆盖层的类 */
.hide-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 视频播放效果增强 */
.video-playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* 视频卡片悬停效果 */
.swiper-slide {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.swiper-slide:hover {
    transform: scale(1.02);
}

/* 过渡动画 */
.swiper-slide {
    will-change: transform;
}

/* 防止移动端点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 可选择文本 */
.time-display {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}