/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 小说信息头部 */
.chapter-header {
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chapter-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.chapter-name {
    font-size: 20px;
    font-weight: normal;
    color: #6c757d;
    margin: 0 0 15px 0;
}

.chapter-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
    margin-top: 15px;
}

.chapter-info {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 5px;
    color: #6c757d;
    font-size: 14px;
}

.chapter-info i {
    margin-right: 5px;
}

.novel-link, .category-link {
    color: #007bff;
    text-decoration: none;
}

.novel-link:hover, .category-link:hover {
    text-decoration: underline;
}

/* 章节内容主体 */
.chapter-content {
    min-height: 400px;
}

.chapter-nav-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.chapter-nav-bottom .col-xs-6 {
    padding: 0 5px;
}

.chapter-text {
    line-height: 1.8;
    font-size: 16px;
    padding: 20px 0;
}

.content-wrapper {
    text-align: justify;
    word-wrap: break-word;
}

.content-wrapper p {
    margin-bottom: 1.2em;
    text-indent: 2em;
}


/* 阅读设置 */
.setting-group {
    margin-bottom: 15px;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* 相关推荐 */
.recommendation-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.recommendation-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recommendation-link {
    display: block;
    text-decoration: none;
}

.recommendation-cover {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

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

.recommendation-info {
    padding: 8px 10px;
    background: #fff;
}

.recommendation-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-meta {
    font-size: 12px;
    color: #6c757d;
}

.recommendation-views i {
    margin-right: 3px;
}


/* 背景色主题 */
body.bg-sepia .chapter-text {
    background-color: #f4ecd8;
    color: #5c4b37;
}

body.bg-dark .chapter-text {
    background-color: #2d3748;
    color: #e2e8f0;
}

body.night-mode {
    background-color: #1a202c;
    color: #cbd5e0;
}

body.night-mode .panel,
body.night-mode .breadcrumb {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.night-mode .panel-heading {
    background-color: #4a5568;
    border-color: #718096;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .chapter-title {
        font-size: 20px;
    }

    .chapter-name {
        font-size: 18px;
    }

    .chapter-text {
        font-size: 15px;
        padding: 15px 0;
    }

    .chapter-info {
        display: block;
        margin-bottom: 8px;
    }

    .nav-text {
        display: inline !important;
    }


    .setting-group {
        margin-bottom: 12px;
    }

    .chapter-nav .col-xs-4,
    .chapter-nav-bottom .col-xs-4 {
        padding: 0 2px;
    }
}

@media (max-width: 480px) {
    .chapter-title {
        font-size: 18px;
    }

    .chapter-name {
        font-size: 16px;
    }

    .chapter-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .content-wrapper p {
        text-indent: 1.5em;
    }

    .nav-text {
        font-size: 12px;
    }

    .chapter-nav .col-xs-4,
    .chapter-nav-bottom .col-xs-4 {
        padding: 0 1px;
    }

    .btn-chapter-nav,
    .btn-chapter-catalog {
        padding: 8px 5px;
        font-size: 11px;
    }
}