/* ===== 作品与章节美化（版式重构） ===== */
.spcl-novel-wrap {
    margin: 0 auto;
    padding: 30px 24px;
    background: #fdfaf5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" opacity="0.02"/><path d="M20 20 L30 15 L40 20 L35 30 Z" fill="%23d4af37" opacity="0.04"/></svg>') repeat;
    font-family: "PingFang SC", "Microsoft YaHei", serif;
    box-shadow: 0 0 30px rgba(139,90,43,0.08) inset;
    border: 1px solid #e8d5b5;
    border-radius: 4px;
}

.single-novel_book .spcl-novel-wrap { max-width: 1100px; }
.single-novel .spcl-novel-wrap { max-width: 860px; padding: 40px 28px; }

/* 重置主题布局，确保内容居中 */
body.single-novel_book .site-content .content-container,
body.single-novel_book .content-area,
body.single-novel .site-content .content-container,
body.single-novel .content-area {
    display: block !important;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    float: none;
}

/* 隐藏主题默认章节标题 */
body.single-novel h1.entry-title {
    display: none;
}

/* 自定义章节标题 */
.spcl-chapter-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3e2723;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

/* 面包屑导航 */
.spcl-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 25px;
    color: #8b7355;
    padding: 10px 0;
    border-bottom: 1px dashed #d4b896;
}
.spcl-breadcrumb a { color: #5a3e2b; text-decoration: none; font-weight: 500; }
.spcl-breadcrumb a:hover { color: #b89b5e; }
.spcl-breadcrumb span { color: #3e2723; font-weight: 600; }

/* 卷名美化 */
.spcl-novel-header {
    background: #f7f2e8;
    border-left: 4px solid #c9a96e;
    padding: 14px 24px;
    margin: 0 0 30px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a3a2a;
    letter-spacing: 1px;
    border-radius: 2px;
}

/* 作品头部（封面 + 信息） */
.novel-book-header {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: flex-start;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8d5b5;
}

/* 封面 */
.book-cover-wrapper {
    flex-shrink: 0;
    width: 280px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #c0b09a;
    background: #fff;
    transition: all 0.3s;
}
.book-cover-wrapper:hover {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15), 0 12px 28px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.book-cover-wrapper img { width: 100%; height: auto; display: block; }

/* 文字信息区 */
.book-meta { flex: 1; min-width: 250px; }

/* 书名（独占一行，无下划线装饰，仅加粗大字） */
.book-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3e2723;
    margin: 0 0 10px;
    line-height: 1.3;
    display: block;
}

/* 作者、状态、阅读、字数合并一行 */
.book-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #8b7355;
}

/* 作者标签 */
.book-author {
    color: #5a3e2b;
    font-weight: 500;
}

/* 连载状态（无背景） */
.book-status {
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0;
    background: none !important;
    border-radius: 0;
}
.status-serial { color: #d4af37; }
.status-completed { color: #2e7d32; }
.status-paused { color: #8b7355; }

.book-views, .book-word-count {
    white-space: nowrap;
}

/* 内容简介卡片 */
.book-description {
    font-size: 1rem;
    color: #4a3a2a;
    line-height: 1.85;
    margin-top: 15px;
    padding: 20px 24px;
    background: #fdf9f3;
    border: 1px solid #f0e8d5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139,90,43,0.05);
}

/* 目录区域 */
.novel-volume-list { margin-top: 30px; padding-top: 0; border-top: none; }
.volume-list-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #3e2723;
    margin-bottom: 25px;
}
.volume-list-title::before,
.volume-list-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a96e, transparent);
}
.volume-list-title::before { background: linear-gradient(to left, transparent, #c9a96e, transparent); }

.volume-item { margin-bottom: 25px; }
.volume-name { font-size: 1.2rem; font-weight: 700; color: #5a3e2b; border-bottom: 1px solid #d4af37; padding-bottom: 6px; margin-bottom: 12px; display: inline-block; }
.volume-chapter-count { font-size: 0.85rem; color: #8b7355; font-weight: normal; margin-left: 6px; }
.chapter-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; list-style: none; padding: 0; margin: 0; }
.chapter-list li { padding: 8px 0; border-bottom: 1px dashed #f0e8d5; }
.chapter-list li a { color: #4a3a2a; text-decoration: none; font-size: 1.05rem; transition: color 0.2s; display: block; }
.chapter-list li a:hover { color: #d4af37; padding-left: 10px; }

/* 章节导航 */
.spcl-novel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
    padding: 20px 0;
    border-top: 1px solid #e8d5b5;
    border-bottom: 1px solid #e8d5b5;
    gap: 15px;
}
.spcl-novel-nav a {
    display: inline-block;
    padding: 10px 24px;
    background: #fffdf7;
    border: 1px solid #d4af37;
    border-radius: 25px;
    color: #5a3e2b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}
.spcl-novel-nav a:hover {
    background: #d4af37;
    color: #fff;
    border-color: #b8932e;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}
.spcl-novel-nav .disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #bbb;
    cursor: default;
    pointer-events: none;
}
.novel-catalog {
    max-width: none !important;
    padding: 10px 24px !important;
    background: #fffdf7 !important;
    border: 1px solid #d4af37 !important;
    border-radius: 25px !important;
    color: #5a3e2b !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}
.novel-catalog:hover {
    background: #d4af37 !important;
    color: #fff !important;
    border-color: #b8932e !important;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3) !important;
}

/* 章节阅读页正文 */
#spcl-novel-content { padding: 10px 0; }
#spcl-novel-content > * {
    text-indent: 2em !important;
    margin-bottom: 1.4em;
    line-height: 2.05;
    font-size: 1.25rem;
    color: #3c3428;
    letter-spacing: 0.06em;
    word-break: break-word;
}

/* 短代码作品网格 */
.novel-books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; margin: 30px 0; }
.novel-book-card { background: #fffdf7; border: 1px solid #e8d5b5; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(139,90,43,0.06); transition: all 0.3s; text-align: center; }
.novel-book-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(139,90,43,0.15); border-color: #d4af37; }
.book-cover-link { text-decoration: none; color: inherit; }
.book-cover { height: 240px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 3rem; background-color: #f4efe6; }
.book-cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.book-title { font-size: 1.2rem; font-weight: 700; color: #3e2723; padding: 15px 10px 5px; margin: 0; }
.book-excerpt { padding: 0 15px 20px; font-size: 0.9rem; color: #6b5a4b; line-height: 1.6; }

/* 响应式 */
@media (max-width: 768px) {
    .novel-book-header { flex-direction: column; align-items: center; text-align: center; }
    .book-cover-wrapper { width: 200px; }
    .book-title { font-size: 1.8rem; }
    .book-info-row { justify-content: center; }
    .spcl-novel-nav { flex-direction: column; align-items: stretch; }
    .spcl-novel-nav a { max-width: 100%; text-align: center; }
    #spcl-novel-content > * { font-size: 1.15rem; line-height: 1.9; letter-spacing: 0.05em; }
}