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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.navbar {
    background: #1a1a2e;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #e0e0e0;
    text-decoration: none;
}

.logo span {
    color: #e94560;
}

.navbar nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color .2s;
}

.navbar nav a:hover {
    color: #e94560;
}

.main-content {
    min-height: calc(100vh - 120px);
    padding: 24px 0;
}

.series-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: #1a1a2e;
    border-radius: 12px;
}

.series-cover {
    flex-shrink: 0;
    width: 180px;
}

.series-cover img {
    width: 100%;
    border-radius: 8px;
}

.series-info h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.series-info .author {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.series-info .desc {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 12px;
}

.total-chapters {
    color: #e94560;
    font-weight: 600;
    font-size: 14px;
}

h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e94560;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

.chapter-list {
    display: grid;
    gap: 6px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1a1a2e;
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background .2s;
}

.chapter-item:hover {
    background: #16213e;
}

.ch-number {
    font-weight: 600;
    color: #e94560;
    min-width: 100px;
}

.ch-title {
    color: #aaa;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
}

.page-link {
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: #1a1a2e;
    border-radius: 6px;
    transition: background .2s;
}

.page-link:hover {
    background: #16213e;
}

.page-info {
    color: #888;
    font-size: 14px;
}

.reader-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.nav-btn {
    padding: 10px 20px;
    background: #1a1a2e;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
    text-align: center;
}

.nav-btn:hover {
    background: #e94560;
}

.nav-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
}

.chapter-title {
    text-align: center;
    font-size: 22px;
    margin: 16px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

.reader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.page-container {
    width: 100%;
    max-width: 800px;
}

.page-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.footer {
    background: #1a1a2e;
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 13px;
    margin-top: 40px;
}

.footer a {
    color: #e94560;
    text-decoration: none;
}

@media (max-width: 640px) {
    .series-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .series-cover {
        width: 140px;
    }

    .series-info h1 {
        font-size: 22px;
    }

    .reader-nav {
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1;
        min-width: 100px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .ch-number {
        min-width: 80px;
        font-size: 13px;
    }
}
