:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'STKaiti', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-bottom: 60px; /* 为底部菜单留出空间 */
}

.novel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.chapter-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.chapter-content {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 3rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.pagination-link {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
}

.sidebar.visible {
    transform: translateX(0);
}

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
}

.bottom-menu.visible {
    transform: translateY(0);
}

.chapter-link {
    display: block;
    padding: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
}

.chapter-link.active {
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .novel-container {
        padding: 1rem;
    }
    
    .chapter-title {
        font-size: 1.8rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bottom-menu .pagination {
        padding: 0 1rem;
    }
    
    .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 55vw;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
}

.sidebar.visible {
    transform: translateX(0);
}
}

/* 新增底部导航样式 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav.show {
    transform: translateY(-60px);
}

.nav-link {
    padding: 10px 20px;
    border-radius: 25px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}

.nav-link:hover {
    background: #e74c3c;
    transform: scale(1.05);
}