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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #000;
    overflow: hidden;
    color: #fff;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

/* 全屏模式样式 */
html:fullscreen, body:fullscreen, .container:fullscreen, .slideshow:fullscreen {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 不同浏览器的全屏伪类 */
html:-webkit-full-screen, body:-webkit-full-screen, .container:-webkit-full-screen, .slideshow:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html:-moz-full-screen, body:-moz-full-screen, .container:-moz-full-screen, .slideshow:-moz-full-screen {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html:-ms-fullscreen, body:-ms-fullscreen, .container:-ms-fullscreen, .slideshow:-ms-fullscreen {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img,
.slide iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
    background-color: #fff;
}

.slide img.loading,
.slide iframe.loading {
    opacity: 0;
}

.slide .loading-spinner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 控制栏样式 */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    backdrop-filter: blur(5px);
}

/* 控制按钮样式 */
.control-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.control-btn:active {
    transform: scale(0.95);
}

/* 隐藏播放/暂停按钮 */
#playPauseBtn {
    display: none;
}

/* 进度条样式 */
.progress-container {
    flex: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0;
    transition: width 0.1s linear;
}

/* 添加计时器显示 */
.timer {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    min-width: 110px;
}

/* 幻灯片指示器 */
.slide-indicators {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #4CAF50;
    transform: scale(1.2);
}

/* 移除动画切换按钮样式 */

/* 前后导航按钮 */
.control-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    font-size: 24px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 导航按钮容器 */
.nav-buttons {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

/* 左侧导航按钮 */
.nav-buttons.left-nav {
    left: 20px;
}

/* 右侧导航按钮 */
.nav-buttons.right-nav {
    right: 20px;
}

/* 导航按钮样式 */
.nav-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 全屏按钮 */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 临时消息 */
.temp-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.temp-message.visible {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .controls {
        bottom: 10px;
        padding: 10px 20px;
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .timer {
        font-size: 12px;
        min-width: 90px;
    }
    
    .slide-indicators {
        bottom: 70px;
    }
    
    .nav-buttons {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fullscreen-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .controls {
        bottom: 5px;
        padding: 8px 15px;
        gap: 8px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    #animationBtn {
        display: none;
    }
    
    .slide-indicators {
        bottom: 60px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .nav-buttons {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .fullscreen-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}