/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f7f7fb;
    color: #1f2937;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.nw-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.nw-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.nw-header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.nw-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.nw-search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
    color: #111827;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.nw-search-input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.nw-search-input::placeholder {
    color: #9ca3af;
}

.nw-search-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.35rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease-out;
}

.nw-search-btn:hover {
    color: #fb923c;
}

.nw-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nw-btn-login {
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.nw-btn-login:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
    color: #fb923c;
}

.nw-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #111827;
}

.nw-logo-mark {
    min-width: 36px;
    width: auto;
    padding: 0 6px;
    height: 28px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #fb923c, #fb7185);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.nw-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.92rem;
    color: #4b5563;
}

.nw-nav a {
    position: relative;
    padding-bottom: 0.15rem;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
}

.nw-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #fb923c, #fb7185);
    transition: width 0.18s ease-out;
}

.nw-nav a:hover {
    color: #111827;
}

.nw-nav a:hover::after {
    width: 100%;
}

.nw-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.nw-nav-toggle span {
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: all 0.2s ease-out;
}

/* Hero */
.nw-hero {
    padding: 3.25rem 0 2.5rem;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 45%);
}

.nw-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: center;
}

.nw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.8);
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.9rem;
}

.nw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(to right, rgba(251, 146, 60, 0.1), rgba(251, 113, 133, 0.1));
    color: #fb923c;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.nw-kicker.small {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}

.nw-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.nw-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.nw-hero h1 span {
    background: linear-gradient(to right, #fb7185, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nw-hero-lead,
.nw-sub {
    font-size: 0.98rem;
    color: #4b5563;
    max-width: 34rem;
    margin-bottom: 1.1rem;
    line-height: 1.7;
}

.nw-sub.small {
    font-size: 0.9rem;
    color: #6b7280;
}

.nw-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.nw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.15s ease-out;
}

.nw-btn.primary {
    background: linear-gradient(to right, #fb923c, #fb7185);
    color: #fff;
    box-shadow: 0 12px 24px rgba(251, 146, 60, 0.25);
}

.nw-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(248, 113, 113, 0.32);
}

.nw-btn.ghost {
    background: #fff;
    color: #111827;
    border-color: rgba(0, 0, 0, 0.08);
}

.nw-btn.ghost:hover {
    background: rgba(31, 41, 55, 0.9);
}

.nw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.nw-hero-meta span {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.nw-hero-card {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    padding: 1rem 1rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.nw-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.nw-pill-status {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    font-size: 0.78rem;
}

.nw-hero-card h2 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.nw-hero-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.7rem;
}

.nw-hero-card-list {
    list-style: none;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.nw-hero-card-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.nw-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f97316;
}

/* Sections */
.nw-section {
    padding: 3rem 0;
}

.nw-section-muted {
    background: rgba(247, 247, 251, 0.5);
}

.nw-section-head {
    margin-bottom: 2rem;
}

.nw-section-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.nw-section-header {
    margin-bottom: 1.1rem;
}

.nw-section-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.nw-section-header p {
    font-size: 0.85rem;
    color: #9ca3af;
}

.nw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem;
}

.nw-book-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.75rem;
}

.nw-book-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nw-book-cover {
    position: relative;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 200 / 280;
    background: linear-gradient(135deg, #fb923c, #fb7185);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.nw-book-cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.nw-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-book-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.nw-book-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.nw-book-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(to right, #fb923c, #fb7185);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nw-book-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nw-book-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.nw-book-title a {
    color: inherit;
    transition: color 0.15s ease-out;
}

.nw-book-title a:hover {
    color: #fb923c;
}

.nw-book-author {
    font-size: 0.85rem;
    color: #6b7280;
}

.nw-book-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.nw-book-update {
    font-size: 0.85rem;
    color: #6b7280;
}

.nw-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.nw-book-tags span {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    font-size: 0.7rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nw-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.nw-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    text-align: center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.nw-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(251, 146, 60, 0.3);
}

.nw-category-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.nw-category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.nw-category-card p {
    font-size: 0.85rem;
    color: #6b7280;
}

.nw-card {
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    padding: 0.9rem 0.9rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.nw-card-title {
    font-weight: 700;
    color: #0f172a;
}

.nw-card-meta {
    font-size: 0.84rem;
    color: #6b7280;
}

.nw-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.nw-tag {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    font-size: 0.72rem;
    color: #9ca3af;
}

/* Footer */
.nw-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.4rem 0 1.9rem;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: #4b5563;
    background: #fff;
}

.nw-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nw-footer-left {
    color: #4b5563;
}

.nw-footer-links {
    display: flex;
    gap: 0.9rem;
}

.nw-footer-links a {
    color: #4b5563;
}

.nw-footer-links a:hover {
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .nw-header-center {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 0.75rem;
    }

    .nw-header-inner {
        flex-wrap: wrap;
    }

    .nw-header-right {
        gap: 0.75rem;
    }

    .nw-search-form {
        width: 100%;
    }

    .nw-btn-login {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    .nw-nav {
        display: none;
    }

    .nw-nav-toggle {
        display: flex;
    }

    .nw-nav.open {
        position: absolute;
        right: 1.25rem;
        top: 3.5rem;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0.75rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        display: flex;
        min-width: 10rem;
        z-index: 30;
    }

    .nw-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .nw-hero {
        padding: 2rem 0 1.5rem;
    }

    .nw-section {
        padding: 2rem 0;
    }

    .nw-book-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.25rem;
    }

    .nw-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .nw-category-card {
        padding: 1.25rem 0.75rem;
    }

    .nw-category-icon {
        font-size: 2rem;
    }

    .nw-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nw-book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .nw-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Book Detail Page Styles
   书籍详情页样式
   ============================================ */

/* 
   Book Header Section - 书籍头部区域
   包含：书籍封面、标题、作者、分类、状态、标签、操作按钮
*/
/* 书籍头部容器 - 渐变背景 */
.nw-book-header {
    padding: 2rem 0 3rem;
    background: linear-gradient(to bottom, rgba(251, 146, 60, 0.05), transparent);
}

/* 书籍头部内部布局 - 网格布局：左侧封面，右侧信息 */
.nw-book-header-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.nw-book-cover-large {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    aspect-ratio: 280 / 400;
}

.nw-book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-book-rating-large {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
}

.nw-rating-star {
    font-size: 1rem;
}

.nw-book-info-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.nw-breadcrumb a {
    color: #6b7280;
    transition: color 0.15s ease-out;
}

.nw-breadcrumb a:hover {
    color: #fb923c;
}

.nw-breadcrumb span {
    color: #9ca3af;
}

.nw-book-title-main {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.nw-book-meta-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nw-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nw-meta-label {
    color: #6b7280;
    font-weight: 500;
}

.nw-meta-value {
    color: #0f172a;
    font-weight: 600;
}

.nw-status-ongoing {
    color: #22c55e;
}

.nw-status-completed {
    color: #3b82f6;
}

.nw-status-hiatus {
    color: #f59e0b;
}

.nw-book-tags-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nw-tag-main {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.nw-book-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.nw-btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.nw-btn-favorite.favorited {
    background: #fef2f2;
    color: #ef4444;
    border-color: #ef4444;
}

.nw-btn-favorite.favorited:hover {
    background: #fee2e2;
}

/* Book Description Section */
.nw-book-description {
    padding: 2.5rem 0;
    background: rgba(247, 247, 251, 0.5);
}

.nw-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.nw-description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.nw-description-content p {
    margin-bottom: 1rem;
}

.nw-description-content p:last-child {
    margin-bottom: 0;
}

/* Chapters List Section */
.nw-book-chapters {
    padding: 2.5rem 0;
}

.nw-chapters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nw-chapters-controls {
    display: flex;
    gap: 0.5rem;
}

.nw-btn-ghost-small {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    color: #111827;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

.nw-btn-ghost-small:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
    color: #fb923c;
}

.nw-chapters-list {
    display: grid;
    gap: 0.5rem;
}

.nw-chapter-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    transition: all 0.2s ease-out;
    text-decoration: none;
    color: inherit;
}

.nw-chapter-item:hover {
    transform: translateX(4px);
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nw-chapter-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.nw-chapter-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
}

.nw-chapter-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
}

.nw-empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
}

/* 更多章节提示 */
.nw-chapters-more {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(251, 146, 60, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(251, 146, 60, 0.2);
    text-align: center;
}

.nw-chapters-more-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Pagination */
.nw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.nw-pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nw-pagination-btn:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
    color: #fb923c;
    transform: translateY(-1px);
}

.nw-pagination-info {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.nw-page-link {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-out;
}

.nw-page-link:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
    color: #fb923c;
    transform: translateY(-1px);
}

.nw-page-info {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Related Books Section */
.nw-related-books {
    padding: 2.5rem 0;
    background: rgba(247, 247, 251, 0.5);
}

/* Responsive - Book Detail */
@media (max-width: 768px) {
    .nw-book-header-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nw-book-cover-large {
        max-width: 180px;
        margin: 0 auto;
    }

    .nw-book-meta-main {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nw-book-actions {
        flex-direction: column;
    }

    .nw-book-actions .nw-btn {
        width: 100%;
        justify-content: center;
    }

    .nw-chapters-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nw-chapter-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .nw-chapter-number {
        font-size: 0.8rem;
    }

    .nw-chapter-title {
        font-size: 0.9rem;
    }

    .nw-chapter-meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nw-book-header {
        padding: 1.5rem 0 2rem;
    }

    .nw-book-cover-large {
        max-width: 150px;
    }

    .nw-book-title-main {
        font-size: 1.5rem;
    }

    .nw-section-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   Chapter Detail Page Styles
   章节内容页样式
   ============================================ */

/* 
   Chapter Header Section - 章节头部区域
   包含：面包屑导航、章节标题、所属书籍标题
*/
.nw-chapter-header {
    padding: 2rem 0 1.5rem;
    background: linear-gradient(to bottom, rgba(251, 146, 60, 0.05), transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 章节标题包装器 */
.nw-chapter-title-wrapper {
    margin-top: 1rem;
}

/* 章节主标题 */
.nw-chapter-title-main {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0.5rem 0;
}

/* 章节所属书籍标题 */
.nw-chapter-book-title {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* 
   Reading Controls Bar - 阅读控制栏
   包含：字体大小调整、夜间模式切换、字数统计
*/
.nw-reading-controls {
    padding: 1rem 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 60px;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* 控制栏内部布局 */
.nw-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* 左侧控制按钮组 */
.nw-controls-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 控制按钮 - 字体大小、夜间模式等 */
.nw-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

.nw-control-btn:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
    color: #fb923c;
}

.nw-control-btn:active {
    transform: scale(0.95);
}

/* 字体大小显示 */
.nw-font-size-display {
    min-width: 50px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

/* 控制按钮分隔线 */
.nw-control-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
}

/* 右侧字数统计 */
.nw-controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nw-chapter-word-count {
    font-size: 0.85rem;
    color: #6b7280;
}

/* 
   Chapter Content Section - 章节内容区域
   包含：章节正文内容
*/
.nw-chapter-content-section {
    padding: 2.5rem 0;
    background: #fff;
}

/* 章节内容容器 - 可调整字体大小 */
.nw-chapter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #1f2937;
    font-family: "Georgia", "Times New Roman", serif;
}

/* 章节内容段落样式 */
.nw-chapter-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

.nw-chapter-content p:last-child {
    margin-bottom: 0;
}

/* 章节内容标题 */
.nw-chapter-content h1,
.nw-chapter-content h2,
.nw-chapter-content h3 {
    margin: 2rem 0 1rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
}

.nw-chapter-content h1 {
    font-size: 1.75rem;
}

.nw-chapter-content h2 {
    font-size: 1.5rem;
}

.nw-chapter-content h3 {
    font-size: 1.25rem;
}

/* 章节内容列表 */
.nw-chapter-content ul,
.nw-chapter-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.nw-chapter-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* 章节内容引用 */
.nw-chapter-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #fb923c;
    background: rgba(251, 146, 60, 0.05);
    font-style: italic;
    color: #4b5563;
}

/* 夜间模式样式 */
body.dark-mode .nw-chapter-content-section {
    background: #0f172a;
}

body.dark-mode .nw-chapter-content {
    color: #e5e7eb;
}

body.dark-mode .nw-chapter-content h1,
body.dark-mode .nw-chapter-content h2,
body.dark-mode .nw-chapter-content h3 {
    color: #f9fafb;
}

body.dark-mode .nw-reading-controls {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nw-control-btn {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

body.dark-mode .nw-control-btn:hover {
    background: rgba(251, 146, 60, 0.2);
    border-color: #fb923c;
}

body.dark-mode .nw-font-size-display {
    color: #e5e7eb;
}

body.dark-mode .nw-control-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* 
   Chapter Navigation Section - 章节导航区域
   包含：上一章、返回目录、下一章
*/
.nw-chapter-navigation {
    padding: 2.5rem 0;
    background: rgba(247, 247, 251, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 章节导航内部布局 - 三列网格 */
.nw-chapter-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* 章节导航项 */
.nw-chapter-nav-item {
    display: flex;
    flex-direction: column;
}

/* 中间导航项（返回目录） */
.nw-chapter-nav-item:nth-child(2) {
    text-align: center;
}

/* 右侧导航项（下一章） */
.nw-chapter-nav-item:nth-child(3) {
    text-align: right;
}

/* 章节导航链接 */
.nw-chapter-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-out;
}

.nw-chapter-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(251, 146, 60, 0.05);
}

/* 中间导航链接样式 */
.nw-nav-center {
    align-items: center;
}

/* 右侧导航链接样式 */
.nw-nav-right {
    align-items: flex-end;
}

/* 禁用状态的导航链接 */
.nw-chapter-nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 导航标签（Previous/Next/All Chapters） */
.nw-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 导航标题（章节标题或书籍标题） */
.nw-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.nw-chapter-nav-link:hover .nw-nav-title {
    color: #fb923c;
}

/* Responsive - Chapter Detail */
@media (max-width: 768px) {
    /* 移动端：阅读控制栏调整 */
    .nw-reading-controls {
        top: 0;
        padding: 0.75rem 0;
    }

    .nw-controls-inner {
        flex-wrap: wrap;
    }

    .nw-controls-right {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    /* 移动端：章节内容字体和间距调整 */
    .nw-chapter-content {
        font-size: 1rem;
        line-height: 1.8;
        padding: 0 1rem;
    }

    .nw-chapter-content p {
        text-indent: 1.5em;
        margin-bottom: 1.25rem;
    }

    /* 移动端：章节导航改为单列 */
    .nw-chapter-nav-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nw-chapter-nav-item:nth-child(2),
    .nw-chapter-nav-item:nth-child(3) {
        text-align: left;
    }

    .nw-nav-center,
    .nw-nav-right {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    /* 小屏幕：章节头部调整 */
    .nw-chapter-header {
        padding: 1.5rem 0 1rem;
    }

    .nw-chapter-title-main {
        font-size: 1.5rem;
    }

    /* 小屏幕：章节内容进一步调整 */
    .nw-chapter-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .nw-chapter-content p {
        text-indent: 1em;
    }
}



