/* ====== 内容页样式 ====== */

body {
    overflow-x: hidden;
}

.single-page {
    padding: 0 0.3rem;
    background: #fff;
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
}

.single-page img {
    max-width: 100% !important;
    height: auto !important;
}

/* 面包屑 */
.breadcrumb {
    padding: 0.2rem 0;
    font-size: 0.24rem;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: #ee5a9a;
}

/* 小说头部 */
.novel-header {
    padding: 0.3rem 0;
}

.novel-header-inner {
    display: flex;
    gap: 0.3rem;
}

/* 封面图（左侧） */
.novel-cover {
    flex-shrink: 0;
    width: 2.8rem;
}

.novel-cover img {
    width: 100%;
    border-radius: 0.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 信息（右侧） */
.novel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.novel-title {
    font-size: 0.32rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

/* 元信息 */
.novel-meta {
    flex: 1;
}

.novel-meta .meta-row {
    padding: 0.06rem 0;
    font-size: 0.26rem;
    line-height: 1.5;
}

.novel-meta .meta-label {
    color: #999;
}

.novel-meta .meta-value {
    color: #333;
}

.novel-meta .meta-value a {
    color: #ee5a9a;
}

/* 按钮 */
.novel-buttons {
    padding: 0.2rem 0;
}

.novel-buttons a {
    display: block;
    text-align: center;
    padding: 0.25rem 0;
    border-radius: 0.08rem;
    font-size: 0.3rem;
    font-weight: bold;
}

.btn-read {
    background: #ff6b6b;
    color: #fff !important;
}

.btn-full {
    background: #ee5a9a;
    color: #fff !important;
}

/* 通用区块 */
.novel-section {
    padding: 0.3rem 0;
}

.section-title {
    font-size: 0.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2rem;
    padding-bottom: 0.1rem;
    border-bottom: 2px solid #ee5a9a;
}

/* 目录 */
.chapter-list {
    padding: 0.1rem 0;
}

.chapter-item {
    display: block;
    padding: 0.15rem 0;
    font-size: 0.26rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.chapter-item:last-child {
    border-bottom: none;
}

/* 内容简介 */
.novel-intro p {
    font-size: 0.26rem;
    color: #666;
    line-height: 1.8;
}

/* 精彩节选 */
.novel-excerpt p {
    font-size: 0.26rem;
    color: #555;
    line-height: 1.8;
}

.novel-excerpt img {
    max-width: 100%;
    margin: 0.1rem 0;
}

/* 上下一章 */
.single-nav {
    padding: 0.2rem 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.2rem;
}

.nav-prev, .nav-next {
    display: block;
    padding: 0.15rem 0;
}

.single-nav a {
    font-size: 0.24rem;
    color: #ee5a9a;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-nav a:hover {
    text-decoration: underline;
}

/* 相关推荐 */
.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.related-item {
    width: calc(50% - 0.1rem);
    display: flex;
    gap: 0.15rem;
    padding: 0.15rem 0;
}

.related-cover {
    width: 1.2rem;
    flex-shrink: 0;
}

.related-cover img {
    width: 100%;
    border-radius: 0.05rem;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.related-title {
    font-size: 0.22rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.05rem;
}

.related-author {
    font-size: 0.22rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====== 电脑端适配 ====== */
@media (min-width: 99999px) {
    .single-page {
        padding: 0 40px;
    }
    
    .breadcrumb {
        font-size: 14px;
        padding: 15px 0;
    }
    
    .novel-header {
        padding: 40px 0;
    }
    
    .novel-header-inner {
        gap: 40px;
    }
    
    .novel-cover {
        width: 220px;
    }
    
    .novel-cover img {
        border-radius: 8px;
    }
    
    .novel-info {
        justify-content: flex-start;
    }
    
    .novel-title {
        font-size: 30px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .novel-meta .meta-row {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .novel-buttons {
        padding: 15px 0;
    }
    
    .novel-buttons a {
        padding: 18px 0;
        font-size: 20px;
        border-radius: 8px;
    }
    
    .novel-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .novel-intro p, .novel-excerpt p {
        font-size: 17px;
        line-height: 2;
    }
    
    .single-nav {
        padding: 25px 0;
    }
    
    .single-nav a {
        font-size: 15px;
    }
    
    .related-list {
        gap: 20px;
    }
    
    .related-item {
        width: calc(33.33% - 14px);
        padding: 15px 0;
        gap: 15px;
    }
    
    .related-cover {
        width: 100px;
    }
    
    .related-cover img {
        border-radius: 6px;
    }
    
    .related-title {
        font-size: 16px;
    }
    
    .related-author {
        font-size: 13px;
    }
}