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

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

/* 演示文稿容器 */
.presentation-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 幻灯片容器 - 设计为16:9比例 */
.slide-container {
    width: 80vw;
    height: 45vw; /* 保持16:9比例 (80 * 9 / 16 = 45) */
    max-height: 70vh;
    max-width: calc(70vh * 16 / 9);
    position: relative;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* 确保幻灯片内容适应容器 */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

/* 占位幻灯片样式 */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
    text-align: center;
    padding: 20px;
}

.slide-placeholder h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.slide-placeholder p {
    font-size: 1.2em;
    max-width: 80%;
}

/* 图像幻灯片样式 */
.slide-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 纯内容幻灯片样式 */
.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.slide-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.slide-content p {
    font-size: 1.5em;
    color: #666;
    max-width: 80%;
}

/* 导航按钮 */
.navigation {
    position: absolute;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #66b1ff;
}

.nav-btn:disabled {
    background-color: #a0cfff;
    cursor: not-allowed;
}

#page-info {
    font-size: 16px;
    color: #333;
}

/* 进度指示器 */
.progress-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    z-index: 100;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #409eff;
    width: 0%;
    transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-aspect-ratio: 16/9) {
    .slide-container {
        width: calc(100vh * 16 / 9);
        height: 100vh;
        max-height: none;
        max-width: none;
    }
}