body {
    margin: 0;
    padding: 0;
    background-color: #333;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

#flipbook {
    margin: 0 auto;
    background-color: transparent;
}

#flipbook .page {
    background-color: white;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.page-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-content canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 控制按钮样式 */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
}

.controls button {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.controls button:hover {
    background-color: white;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #flipbook {
        width: 90vw !important;
        height: auto !important;
    }
}