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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background-color: #222222;
    padding-bottom: 70px; /* 为固定底部的音频播放器预留空间 */
}


hr{
    margin: 5px;
}

.header {
    text-align: center;
    color: white;
    padding: 15px 0;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.header p {
    font-size: 0.8em;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    margin-bottom: 10px;
}

.nav-container {
    position: sticky;
    top: 0;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-button:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.nav-icon {
    font-size: 14px;
    margin-right: 4px;
}

.book-container {
    background-color: #000000;
    border-radius: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;

    animation: slideInUp 1s ease-out 0.3s both;
}

.book-header {
    text-align: center;
    margin: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.book-header img{
    max-width: 100px;
    border-radius: 12px;
}

.book-title {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.book-title p{
    font-size: 12px;
    color: #888888;
}

footer {
    /* 这里是头部和底部的样式，它们的高度是固定的 */
    padding: 10px;
    text-align: center;
    color: #ffffff;
    flex-shrink: 0; /* 防止头部和底部在空间不足时收缩 */
}

footer > p {
    font-size: 12px;
    color: #888888;
}

footer a {
    color: #888888;
    font-size: 12px;
}

/* 音频播放器样式 - Apple风格 */
audio {
    width: 100%;
    max-width: 600px;
    height: 50px;
    margin: 15px auto;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

audio::-webkit-media-controls-play-button {
    background-color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: 0 5px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: white;
    font-weight: 500;
    font-size: 12px;
}

audio::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin: 0 8px;
    height: 4px;
}

audio::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    height: 4px;
}

audio::-webkit-media-controls-mute-button {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .header h1 {
        font-size: 1.8em;
        margin-bottom: 3px;
    }
    
    .header p {
        margin-bottom: 8px;
    }
    
    .nav-container {
        padding: 8px 12px;
    }
    
    .nav-buttons {
        gap: 8px;
    }
    
    .nav-button {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 10px;
    }
    
    .nav-icon {
        font-size: 12px;
        margin-right: 3px;
    }
    
    .navigation-buttons {
        gap: 8px;
        margin-top: 6px;
    }
    
    audio {
        height: 45px;
        margin: 12px auto;
        border-radius: 22px;
    }
    
    audio::-webkit-media-controls-play-button {
        width: 28px;
        height: 28px;
    }
    
    audio::-webkit-media-controls-current-time-display,
    audio::-webkit-media-controls-time-remaining-display {
        font-size: 11px;
    }
    
    .book-header {
        margin: 12px;
    }
    
    .book-header img {
        max-width: 80px;
    }
}

/* 确保音频播放器在非常小的屏幕上仍然可见 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    audio {
        height: 40px;
        margin: 10px auto;
    }
    
    audio::-webkit-media-controls-play-button {
        width: 24px;
        height: 24px;
    }
}

/* 固定底部音频播放器，确保始终可见 */
footer {
    position: sticky;
    bottom: 0;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    padding: 8px 10px;
}

footer audio {
    margin: 0 auto;
}