/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f5f0e1;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 故事书样式 */
.storybook {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

/* 页面样式 */
.page {
    width: 100%;
    min-height: 80vh;
    padding: 20px;
    transition: all 0.5s ease;
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* 封面样式 */
.cover {
    background: linear-gradient(135deg, #ffd89b 0%, #ffb347 100%);
    text-align: center;
    padding: 40px 20px;
}

.title-container {
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.start-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.start-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 插图样式 */
.illustration {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    object-fit: contain;
}

/* 文本容器样式 */
.text-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 控制按钮样式 */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.audio-button {
    background-color: #3498db;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.audio-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.navigation button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navigation button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.page-number {
    font-size: 1rem;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .story-title {
        font-size: 2rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .navigation button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .story-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .start-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .story-text {
        font-size: 0.9rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation button {
        width: 100%;
    }
}