/* 小说详情页 */
.novel-single {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.novel-cover {
    flex: 0 0 250px;
}
.novel-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.novel-info {
    flex: 1;
}
.novel-meta span {
    margin-right: 1rem;
    color: #666;
}
.shelf-btn {
    background: #8b5a2b;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}
.shelf-btn.remove {
    background: #ccc;
    color: #333;
}
.chapter-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.chapter-list li a {
    display: block;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #2c3e2f;
}
.chapter-list li a:hover {
    color: #8b5a2b;
}

/* 章节阅读页 */
.chapter-reader {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.chapter-header {
    text-align: center;
    margin-bottom: 2rem;
}
.nav-links {
    margin-top: 1rem;
}
.nav-links a {
    margin: 0 0.5rem;
    padding: 0.3rem 1rem;
    background: #f0f0f0;
    text-decoration: none;
    border-radius: 4px;
}
.chapter-content {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.tts-btn {
    background: #2c3e2f;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
}

/* 书架网格 */
.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}
.shelf-item {
    text-align: center;
}
.shelf-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.shelf-item h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.2rem;
}
.shelf-item p {
    font-size: 0.8rem;
    color: #666;
}

.novel-categories {
    margin: 0.5rem 0;
}
.novel-categories a {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3e2f;
    font-size: 0.85rem;
}
.novel-categories a:hover {
    background: #e0e0e0;
}

/* 打赏弹窗样式 */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reward-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}
.reward-modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}
.reward-modal-content .close:hover {
    color: #000;
}
.reward-qrcodes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.qrcode-item {
    text-align: center;
}
.qrcode-item img {
    width: 150px;
    height: 150px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.qrcode-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}
.reward-note {
    color: #999;
    font-size: 12px;
}