body {
    background: #f5f7fb;
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    color: #1e2a3e;
    padding-top: 70px;
}
/* 导航栏阴影 */
.navbar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: #fff !important;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #3b5b9b !important;
}
.navbar-brand i {
    color: #e67e22;
    margin-right: 6px;
}
.footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}
/* 卡片与章节列表优化 */
.book-cover-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s;
}
.book-info {
    padding: 1.8rem 2rem;
}
.book-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e2a3e;
}
.book-meta {
    font-size: 0.95rem;
    color: #6c86a3;
    margin-bottom: 1.2rem;
    border-left: 3px solid #e67e22;
    padding-left: 12px;
}
.book-desc {
    line-height: 1.6;
    color: #334e68;
    margin-top: 1rem;
}
.chapter-section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    padding: 1.5rem 1.8rem;
    margin-top: 2rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 5px solid #e67e22;
    padding-left: 15px;
    margin-bottom: 1.5rem;
    color: #1f2d3d;
}
/* 章节列表网格 / 列表响应式 */
.chapter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.8rem 1rem;
}
.chapter-item {
    background: #f8fafc;
    border-radius: 40px;
    transition: all 0.2s;
    border: 1px solid #e9edf2;
}
.chapter-item a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #2c3e66;
    font-weight: 400;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 40px;
}
.chapter-item a:hover {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
    box-shadow: 0 2px 6px rgba(230,126,34,0.2);
}

.comment-section {
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
            padding: 1.8rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        .comment-form {
            background: #fefefe;
            padding: 1.5rem;
            border-radius: 16px;
            border: 1px solid #eef2f6;
        }
        .form-group label {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }
        .form-control {
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            padding: 0.75rem 1rem;
            transition: all 0.2s;
        }
        .form-control:focus {
            border-color: #e67e22;
            box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
        }
        .btn-submit {
            background: #e67e22;
            border: none;
            border-radius: 40px;
            padding: 0.7rem 2rem;
            font-weight: 600;
            color: white;
            transition: all 0.2s;
        }
        .btn-submit:hover {
            background: #d35400;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(230,126,34,0.3);
        }
        .comment-list {
            margin-top: 2rem;
        }
        .comment-item {
            background: #fafbfd;
            border-radius: 16px;
            padding: 1rem 1.2rem;
            margin-bottom: 1rem;
            border-left: 4px solid #e67e22;
        }
        .comment-nickname {
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }
        .comment-nickname i {
            color: #e67e22;
            margin-right: 6px;
        }
        .comment-time {
            font-size: 0.75rem;
            color: #94a3b8;
            margin-left: 1rem;
            font-weight: normal;
        }
        .comment-content {
            color: #334e68;
            line-height: 1.5;
            margin-top: 0.5rem;
            padding-left: 1.8rem;
        }
        .empty-comments {
            text-align: center;
            color: #94a3b8;
            padding: 2rem;
            background: #fafbfd;
            border-radius: 16px;
        }
        .alert-message {
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .reading-container {
    background: #fffef7;
    border-radius: 28px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
    padding: 2rem 2.5rem;
    margin: 1.5rem 0;
}
.reading-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #e2e8f0;
    color: #2d3748;
}
.reading-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
    min-height: 55vh;
}
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.nav-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.8rem 0;
    border-radius: 50px;
    font-weight: 600;
    background: #edf2f7;
    color: #2c5282;
    transition: 0.2s;
}
.nav-btn i {
    margin: 0 6px;
}
.nav-btn:hover {
    background: #e67e22;
    color: white;
    text-decoration: none;
}
.disabled-nav {
    opacity: 0.5;
    pointer-events: none;
    background: #e9ecef;
    color: #8ba0bc;
}
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}
.badge-hot {
    background: #e67e22;
    color: #fff;
    font-size: 0.7rem;
    margin-left: 8px;
    vertical-align: middle;
}


.reading-card
{
    background:#fff;
    padding:1em;
    line-height:2;
    border-radius:1em;
}
.pbtime
{
    font-size:13px;
    color:#666;
}
#chapterTitle
{
    font-size:1.5em;
}
#chapterContent
{
    font-size:16px;
    line-height:2;
}

#navButtons
{
    margin:1em 0px;
    font-size:1em;
}
#navButtons a{
    margin:0 1em;
}

.tip-box{position:fixed;top:20%;left:50%;transform:translateX(-50%);background:#333;color:#fff;padding:12px 24px;border-radius:8px;display:flex;align-items:center;gap:10px;z-index:9999;box-shadow:0 2px 10px rgba(0,0,0,0.2);}
.tip-close{cursor:pointer;font-size:18px;color:#ccc;}
.tip-close:hover{color:#fff;}

@media (max-width: 768px) 
{
    body {
        padding-top: 60px;
    }
    .book-title {
        font-size: 1.6rem;
    }
    .book-info {
        padding: 1.2rem;
    }
    .chapter-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.6rem;
    }
    .chapter-section {
        padding: 1rem;
    }
     .comment-section {
                padding: 1rem;
            }
            .comment-form {
                padding: 1rem;
            }


}

@media (min-width: 768px) and (max-width: 991.98px) {
    .chapter-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}


@media (max-width: 576px) 
{
    .reading-container {
        padding: 1.2rem;
    }
    .reading-title {
        font-size: 1.4rem;
    }
    .reading-content {
        font-size: 1rem;
    }
}
