/* A小说 - 前端样式 */

/* 章节页面 - 黑色主题设计 */
body.single-chapter,
body.single-chapter #page,
body.single-chapter #primary,
body.single-chapter #main,
body.single-chapter .site,
body.single-chapter .site-main,
body.single-chapter .site-content,
body.single-chapter .content-area,
body.single-chapter article,
body.single-chapter .entry-content,
body.single-chapter .post,
body.single-chapter .hentry {
    background: #000000 !important;
    color: #ffffff !important;
}

/* 章节页面容器优化 */
body.single-chapter .site-main,
body.single-chapter .content-area,
body.single-chapter article {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

body.single-chapter .entry-content {
    padding: 0 !important;
}

/* 章节标题优化 */
body.single-chapter .entry-title,
body.single-chapter h1.entry-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 30px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.single-chapter .entry-header,
.single-chapter .entry-title,
.single-chapter h1,
.single-chapter h2,
.single-chapter h3,
.single-chapter h4,
.single-chapter h5,
.single-chapter h6 {
    color: #ffffff !important;
    background: transparent !important;
}

.single-chapter p,
.single-chapter div,
.single-chapter span,
.single-chapter li {
    color: #e0e0e0 !important;
    line-height: 1.8;
}

/* 章节内容容器 - 统一简洁设计 */
.chapter-content {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin: 0 0 30px 0 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.chapter-preview-container {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin: 0 0 30px 0 !important;
    position: relative !important;
}

.chapter-preview-content {
    background: transparent !important;
    color: #ffffff !important;
    padding: 12px !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
    max-height: 400px !important;
}

.chapter-content p,
.chapter-preview-content p {
    color: #e8e8e8 !important;
    font-size: 18px !important;
    line-height: 2.0 !important;
    margin-bottom: 24px !important;
    text-indent: 2em !important;
    font-weight: 400 !important;
}

/* 章节元信息 - PC横版设计 */
.chapter-meta {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 20px 30px !important;
    border-radius: 12px !important;
    margin: 0 0 30px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
}

.chapter-meta-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 30px !important;
}

/* 左侧基本信息 - 封面图和文字 */
.chapter-basic-info {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex: 1 !important;
}

/* 小说封面 */
.novel-cover-wrapper {
    flex-shrink: 0 !important;
}

.novel-cover-small {
    width: 60px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.novel-cover-placeholder {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
}

.novel-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.novel-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.novel-title:hover {
    color: #4a90e2 !important;
    text-decoration: none !important;
}

.chapter-number {
    color: #e8e8e8 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* 右侧状态信息 */
.chapter-status-info {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* 限时免费进度条 */
.free-reading-progress {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 200px !important;
}

.progress-label {
    color: #4a90e2 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.progress-bar-container {
    flex: 1 !important;
    height: 6px !important;
    background: rgba(23, 162, 184, 0.2) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    position: relative !important;
}

.progress-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #17a2b8, #20c997) !important;
    border-radius: 3px !important;
    width: 0% !important;
    transition: width 0.3s ease !important;
}

.progress-time {
    color: #999999 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    min-width: 60px !important;
    text-align: right !important;
}

/* 免费/付费标识 - 简洁设计 */
.free-notice {
    background: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.paid-notice {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.free-reading-notice {
    background: rgba(23, 162, 184, 0.1) !important;
    color: #17a2b8 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(23, 162, 184, 0.3) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

/* 章节导航 - 简洁大气设计 */
.single-chapter .chapter-navigation {
    background: #111111 !important;
    padding: 30px 40px !important;
    border-radius: 12px !important;
    margin: 30px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
}

.single-chapter .nav-button {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    min-width: 120px !important;
    text-align: center !important;
}

.single-chapter .nav-button:hover {
    background: #4a90e2 !important;
    border-color: #4a90e2 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

.single-chapter .nav-button:disabled {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #666666 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}





/* 内容渐变遮罩 */
.single-chapter .content-fade-overlay {
    background: linear-gradient(transparent, #000000) !important;
}

/* 评论和评分区域 - 统一简洁设计 */
.single-chapter .chapter-rating-comments,
.single-chapter .novel-rating-summary,
.single-chapter .comment-form-section,
.single-chapter .comments-list {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 30px 40px !important;
    border-radius: 12px !important;
    margin: 30px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
}

.single-chapter .comment-form-section h4,
.single-chapter .novel-rating-summary h3 {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.single-chapter .comment-item,
.single-chapter .review-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin: 20px 0 !important;
    transition: all 0.2s ease !important;
}

.single-chapter .comment-item:hover,
.single-chapter .review-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.single-chapter .comment-author,
.single-chapter .user-name {
    color: #4a90e2 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.single-chapter .comment-content,
.single-chapter .review-content {
    color: #e8e8e8 !important;
    line-height: 1.7 !important;
    margin: 15px 0 !important;
    font-size: 15px !important;
}

.single-chapter .comment-date,
.single-chapter .review-date {
    color: #999999 !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* 评论头部信息优化 */
.single-chapter .comment-header,
.single-chapter .review-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.single-chapter .comment-user-info,
.single-chapter .review-user {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* 表单元素 - 简洁设计 */
.single-chapter textarea,
.single-chapter input[type="text"],
.single-chapter input[type="email"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.single-chapter textarea:focus,
.single-chapter input[type="text"]:focus,
.single-chapter input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #4a90e2 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}

.single-chapter .submit-review-btn,
.single-chapter .submit-reply-btn {
    background: #4a90e2 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.single-chapter .submit-review-btn:hover,
.single-chapter .submit-reply-btn:hover {
    background: #357abd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

/* 全局章节页面样式覆盖 */
body.single-chapter,
body.single-chapter #page,
body.single-chapter #content,
body.single-chapter .site-content,
body.single-chapter .content-area,
body.single-chapter .hentry,
body.single-chapter .post {
    background: #000000 !important;
    color: #ffffff !important;
}

/* 覆盖主题默认样式 */
body.single-chapter * {
    color: inherit !important;
}

body.single-chapter h1,
body.single-chapter h2,
body.single-chapter h3,
body.single-chapter h4,
body.single-chapter h5,
body.single-chapter h6 {
    color: #ffffff !important;
}

body.single-chapter p,
body.single-chapter div,
body.single-chapter span {
    color: #e0e0e0 !important;
}
 

/* 确保WordPress默认内容区域也是黑色 */
body.single-chapter .wp-block-group,
body.single-chapter .wp-block-columns,
body.single-chapter .wp-block-column {
    background: transparent !important;
}

/* 星级评分样式 */
.single-chapter .rating-stars .star {
    color: #ffc107 !important;
}

.single-chapter .rating-stars .star.empty {
    color: #666666 !important;
}

/* 消息提示样式 - 简洁设计 */
.single-chapter .axiaoshuo-message {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 20px 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.single-chapter .success-message {
    background: rgba(40, 167, 69, 0.1) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: #28a745 !important;
}

.single-chapter .error-message {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #dc3545 !important;
}

/* 移除了阅读模式切换按钮，现在使用底部工具栏 */

/* 阅读进度条 */
#reading-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: rgba(255,255,255,0.1) !important;
    z-index: 9998 !important;
}

#progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #4a90e2, #28a745) !important;
    width: 0% !important;
    transition: width 0.3s ease !important;
}

/* 浅色模式样式 */
body.single-chapter.light-mode {
    background: #ffffff !important;
    color: #333333 !important;
}

body.single-chapter.light-mode #reading-progress {
    background: rgba(0,0,0,0.1) !important;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .single-chapter .chapter-content,
    .single-chapter .chapter-preview-content,
    .single-chapter .chapter-rating-comments,
    .single-chapter .comment-form-section,
    .single-chapter .comments-list,
    .single-chapter .chapter-purchase-overlay {
        padding: 12px !important;
        margin: 20px 0 !important;
        border-radius: 10px !important;
    }
    
    /* 移动端chapter-meta调整为垂直布局 */
    .single-chapter .chapter-meta {
        padding: 20px !important;
        margin: 20px 0 !important;
        border-radius: 10px !important;
    }
    
    .chapter-meta-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .chapter-basic-info {
        width: 100% !important;
        gap: 15px !important;
    }
    
    .novel-cover-small {
        width: 50px !important;
        height: 65px !important;
    }
    
    .novel-cover-placeholder {
        width: 50px !important;
        height: 65px !important;
        font-size: 18px !important;
    }
    
    .novel-title {
        font-size: 18px !important;
    }
    
    .chapter-number {
        font-size: 14px !important;
    }
    
    .chapter-status-info {
        width: 100% !important;
    }
    
    .free-reading-progress {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .progress-time {
        min-width: 50px !important;
    }
    
    .single-chapter .chapter-content p,
    .single-chapter .chapter-preview-content p {
        font-size: 16px !important;
        line-height: 1.8 !important;
        margin-bottom: 20px !important;
    }
    
    .single-chapter .chapter-navigation {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 24px !important;
        border-radius: 10px !important;
    }
    
    .single-chapter .nav-button {
        width: 100% !important;
        text-align: center !important;
        padding: 16px 24px !important;
        font-size: 15px !important;
    }
    
    .single-chapter .comment-item,
    .single-chapter .review-item {
        padding: 20px !important;
        border-radius: 6px !important;
    }
    
    .single-chapter .purchase-chapter-btn,
    .single-chapter .purchase-novel-btn,
    .single-chapter .login-btn,
    .single-chapter .signup-btn {
        padding: 12px 20px !important;
        margin: 8px 4px !important;
        font-size: 13px !important;
    }
    

}

/* 小说目录页面 - 黑色主题设计 */
.novel-meta {
    margin: 0;
    padding: 0;
 
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.novel-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    pointer-events: none;
}

.novel-hero-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
  
    position: relative;
    z-index: 1;
}

/* 左侧封面区域 */
.novel-cover-section {
    flex-shrink: 0;
    width: 200px;
}

.novel-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.novel-cover:hover {
    transform: translateY(-4px);
}

.novel-cover-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #888;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 右侧信息区域 */
.novel-info-section {
    flex: 1;
    color: #ffffff;
}

/* 1. 状态角标（小巧样式） */
.novel-status-badge {
    margin-bottom: 10px;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-ongoing {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
}

.status-completed {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #ffffff;
}

.status-paused {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #000000;
}

/* 2. 标题 */
.novel-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 3. 评分和评论区域 */
.novel-rating-section {
    margin-bottom: 15px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 16px;
    color: #e0e0e0;
}

.rating-percentage {
    font-weight: 600;
    color: #4a90e2;
}

.rating-separator {
    color: #b0b0b0;
}

.reviews-count {
    font-weight: 500;
    color: #b0b0b0;
}

.no-rating {
    font-size: 16px;
    color: #888888;
    font-style: italic;
}

/* 4. 作者信息 */
.novel-author-section {
    margin-bottom: 7x;
    font-size: 16px;
}

.author-label {
    color: #b0b0b0;
}

.author-name {
    color: #ffffff;
    font-weight: 600;
    margin-left: 5px;
}

/* 5. 小说简介 */
.novel-summary {
    margin-bottom: 8px;
    position: relative;
}

.summary-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
    padding: 11px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.summary-content.expanded {
    max-height: none;
}

.summary-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.summary-content.expanded::after {
    opacity: 0;
}

.summary-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    background: rgb(255 255 255 / 0%);
    border: 0;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.summary-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.toggle-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.summary-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon svg {
    width: 16px;
    height: 16px;
}

/* 6. 限时免费区域 */
.free-reading-section {
    margin-bottom: 15px;
}

.free-reading-active {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
}

.free-reading-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.free-reading-badge {
    font-size: 14px;
    font-weight: 600;
    color: #4a90e2;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.free-reading-countdown {
    flex: 1;
    min-width: 0;
}

.countdown-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.countdown-label {
    font-size: 12px;
    color: #b0b0b0;
    flex-shrink: 0;
}

.countdown-timer {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 0;
    text-align: center;
}

.countdown-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 7. 操作按钮区域 */
.novel-action-section {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.start-reading-btn,
.subscribe-novel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-reading-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.start-reading-btn:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.subscribe-novel-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.subscribe-novel-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #dc4c64);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.subscribe-novel-btn.subscribed {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.subscribe-novel-btn.subscribed:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.subscribe-novel-btn.purchased {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    cursor: default;
}

.subscribe-novel-btn.purchased:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: none;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.subscribe-novel-btn.free {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    cursor: default;
}

.subscribe-novel-btn.free:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: none;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.subscribe-novel-btn.disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
    cursor: not-allowed;
    opacity: 0.7;
}

.subscribe-novel-btn.disabled:hover {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    transform: none;
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 700;
}

/* 星级评分样式 */
.star {
    display: inline-block;
    font-size: 16px;
}

.star.full {
    color: #ffd700;
}

.star.half {
    color: #ffd700;
}

.star.empty {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .novel-hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .novel-cover-section {
        width: 160px;
    }
    
    .novel-cover,
    .novel-cover-placeholder {
        height: 220px;
    }
    
    .novel-title {
        font-size: 24px;
    }
    
    .novel-rating-section {
        justify-content: center;
    }
    
    .novel-action-section {
        width: 100%;
        justify-content: center;
    }
    
    .start-reading-btn,
    .subscribe-novel-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .novel-hero-section {
        padding: 20px 15px;
    }
    
    .novel-cover-section {
        width: 140px;
    }
    
    .novel-cover,
    .novel-cover-placeholder {
        height: 200px;
    }
    
    .novel-title {
        font-size: 20px;
    }
    
    .novel-action-section {
        flex-direction: column;
    }
    
    .start-reading-btn,
    .subscribe-novel-btn {
        width: 100%;
    }
}

/* Tab导航和内容样式 */
.novel-tabs-container {
    margin: 30px 0;
 
    border-radius: 0;
    overflow: hidden;
    color: #ffffff;
}

.novel-tab-nav {
    display: flex;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0;
    width: fit-content;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: transparent;
    color: #ffffff;
    border-bottom: 2px solid rgba(74, 144, 226, 0.6);
}

.tab-btn.active {
    background: transparent;
    color: #ffffff;
    border-bottom: 2px solid #4a90e2;
}

.novel-tab-content {
 
    margin-top: 20px;
 
}

.novel-tabs-container .tab-pane {
    padding: 0;
    min-height: 200px;
    background: transparent;
    border: none;
    color: #ffffff;
}

/* 关于Tab样式 */
.novel-stats {
   
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.stats-top-row {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
}

.stat-item {
    font-size: 14px;
    color: #b0b0b0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-item strong {
    color: #666666;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}



.novel-content {
    margin-bottom: 30px;
}

.novel-content h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #ffffff;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.content-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc;
}

.content-wrapper p {
    margin-bottom: 15px;
    color: #cccccc;
}

/* 章节列表样式 */
.novel-chapters {
 
}

.novel-chapters h3 {
    margin: 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #2a2a2a, #333333);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #444444;
}

/* 卷分组样式 - 手风琴 */
.volume-accordion {
    margin: 0 0 20px 0;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #2a2a2a;
    overflow: hidden;
}

.volume-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.volume-header:hover {
    background: #333333;
}

.volume-title {
    margin: 0;
    padding: 18px 25px;
    background: linear-gradient(135deg, #444444, #333333);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    position: relative;
}

.volume-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.volume-name {
    flex: 1;
    margin-right: 15px;
}

.chapter-count {
    font-size: 13px;
    font-weight: normal;
    opacity: 0.8;
    margin-right: 15px;
}

.volume-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.volume-header.expanded .volume-icon {
    transform: rotate(90deg);
}

.volume-icon svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.volume-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.volume-chapters {
    background: #1a1a1a;
    padding: 20px;
}

/* 章节网格布局 - 一排2个 */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background: #1a1a1a;
}

.chapter-item {
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chapter-item:hover {
    background: #333333;
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.chapter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    text-decoration: none !important;
    color: #cccccc;
    transition: color 0.3s ease;
    border-bottom: none !important;
}

.chapter-link:hover {
    color: #4a90e2;
    text-decoration: none !important;
}

.chapter-link:focus {
    text-decoration: none !important;
    outline: none;
}

.chapter-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 15px;
}

.chapter-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    color: inherit;
    text-decoration: none !important;
}

.chapter-date {
    font-size: 12px;
    color: #999999;
    margin-bottom: 0;
    font-weight: normal;
}

.chapter-status {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 章节状态标签 */
.paid-chapter,
.free-chapter,
.purchased-chapter,
.chapter-price,
.free-reading-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 15px;
    text-align: center;
    white-space: nowrap;
}

.paid-chapter {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.free-chapter {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.purchased-chapter {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.chapter-price {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.free-reading-tag {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

/* 章节预览和购买提示样式 - 优化版本 */
.chapter-preview-container {
    position: relative !important;
    margin: 20px 0 !important;
    background: #111111 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.chapter-preview-content {
    position: relative !important;
    max-height: 400px !important;
    overflow: hidden !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 12px !important;
}

.chapter-preview-content p {
    margin-bottom: 15px !important;
    text-indent: 2em !important;
    color: #e8e8e8 !important;
}

/* 底部渐变隐藏效果 */
.chapter-preview-content::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100px !important;
    background: linear-gradient(transparent, #111111) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.content-fade-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 150px !important;
    background: linear-gradient(transparent, #111111) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.chapter-purchase-overlay {
    position: relative !important;
    z-index: 2 !important;
    background: #1a1a1a !important;
    padding: 40px 24px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    color: #ffffff !important;
}

.purchase-prompt {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.lock-icon {
    display: inline-block !important;
    font-size: 24px !important;
    margin: 0 0 16px 0 !important;
    color: #888888 !important;
}



.purchase-prompt h3 {
    font-size: 22px !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.purchase-prompt p {
    font-size: 15px !important;
    color: #b0b0b0 !important;
    margin-bottom: 24px !important;
    line-height: 1.5 !important;
}

.price-info {
    margin: 20px 0 !important;
}

.price-info .price {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    display: inline-block !important;
}



.user-balance {
    font-size: 14px !important;
    color: #888888 !important;
    margin: 12px 0 !important;
    display: block !important;
    text-align: center !important;
    font-weight: 400 !important;
}



.purchase-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 32px !important;
    width: 100% !important;
    align-items: center !important;
}



.login-btn, .signup-btn, .purchase-chapter-btn, .purchase-novel-btn, .subscribe-novel-btn {
    width: 100% !important;
    max-width: 280px !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
}

.login-btn {
    background: #007cba !important;
    color: #ffffff !important;
}

.login-btn:hover {
    background: #005a87 !important;
    color: #ffffff !important;
}



.signup-btn {
    background: #28a745 !important;
    color: #ffffff !important;
}

.signup-btn:hover {
    background: #218838 !important;
    color: #ffffff !important;
}



.purchase-chapter-btn, .purchase-novel-btn, .subscribe-novel-btn {
    background: #dc3545 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
}

.purchase-chapter-btn:hover, .purchase-novel-btn:hover, .subscribe-novel-btn:hover {
    background: #c82333 !important;
    color: #ffffff !important;
}

.purchase-btn.disabled {
    background: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto 8px auto !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 15px !important;
    font-weight: 500 !important;
    max-width: 200px !important;
    width: auto !important;
}

.insufficient-credits {
    font-size: 14px !important;
    color: #dc3545 !important;
    margin: 12px 0 0 0 !important;
    display: block !important;
    text-align: center !important;
    font-weight: 400 !important;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .chapter-purchase-overlay {
        margin: 10px !important;
        padding: 15px !important;
    }
    
    .purchase-prompt {
        padding: 15px !important;
    }
    
    .purchase-prompt h3 {
        font-size: 18px !important;
    }
    
    .purchase-prompt p {
        font-size: 13px !important;
    }
    
    .lock-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }
    
    .lock-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .price-info .price {
        font-size: 18px !important;
        padding: 6px 12px !important;
    }
    
    .user-balance {
        font-size: 12px !important;
    }
    
    .purchase-buttons {
        gap: 10px !important;
        margin-top: 15px !important;
    }
    
    .login-btn, .signup-btn, .purchase-chapter-btn, .purchase-novel-btn, .subscribe-novel-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* 章节页面样式 */
.chapter-meta {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}

.nav-button {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background: #005a87;
    color: white;
}

.nav-button:disabled,
.nav-button.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 评分和评论样式 */
.chapter-rating-comments,
.novel-comments-section {
    margin: 30px 0;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
}

/* 评分统计样式 */
.novel-rating-summary {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
}

.novel-rating-summary h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding: 0;
}

.rating-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-number {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.score-max {
    font-size: 18px;
    font-weight: 400;
    color: #b0b0b0;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #ffc107;
}

.star.full {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
}

.star.empty {
    color: #444444;
}

.rating-count {
    font-size: 14px;
    color: #b0b0b0;
}

.no-rating {
    color: #b0b0b0;
    font-size: 16px;
    font-style: italic;
}

/* 评论表单样式 */
.comment-form-section {
    margin-top: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.form-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.rating-input-section {
    margin-bottom: 20px;
}

.rating-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.rating-stars-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars-input input[type="radio"] {
    display: none;
}

.rating-stars-input label {
    font-size: 28px;
    color: #444444;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    padding: 4px;
    border-radius: 4px;
}

.rating-stars-input label:hover,
.rating-stars-input label:hover ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-stars-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.comment-input-section {
    margin-bottom: 20px;
}

.novel-comment-rating-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.novel-comment-rating-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.novel-comment-rating-form textarea::placeholder {
    color: #888888;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-review-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-review-btn:hover {
    background: linear-gradient(135deg, #357abd, #2868a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.submit-review-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-prompt {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 评论列表样式 */
.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 15px;
}

.comment-user-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-author {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-rating .rating-stars {
    display: flex;
    gap: 1px;
}

.comment-rating .rating-stars .star {
    font-size: 14px;
}

.rating-number {
    font-size: 13px;
    font-weight: 500;
    color: #b0b0b0;
}

.comment-date {
    color: #888888;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.comment-content {
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 14px;
    margin-left: 48px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-size: 15px;
    font-style: italic;
    font-style: italic;
    padding: 20px;
}

/* 消息提示 */
.axiaoshuo-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .chapter-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .axiaoshuo-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* 章节页面的限时免费提示 */
.chapter-meta .free-reading-notice {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.chapter-meta .free-reading-notice strong {
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 章节状态样式增强 */
.free-notice {
    color: #4caf50;
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
}

.paid-notice {
    color: #f44336;
    background: #ffebee;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #f44336;
}

.chapter-meta .free-reading-notice {
    color: #ff9800;
    background: #fff3e0;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #ff9800;
}

/* 章节列表中的限时免费标识 */
.chapter-item .free-reading-tag {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 3px rgba(255, 152, 0, 0.3);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.countdown-timer {
    animation: pulse 2s ease-in-out infinite;
}

.free-reading-title {
    animation: pulse 3s ease-in-out infinite;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .free-reading-active {
        padding: 10px 12px;
    }
    
    .free-reading-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .free-reading-badge {
        font-size: 13px;
        justify-content: center;
    }
    
    .countdown-info {
        justify-content: center;
        margin-bottom: 4px;
    }
    
    .countdown-label {
        font-size: 11px;
    }
    
    .countdown-timer {
        font-size: 12px;
        padding: 1px 4px;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    /* Tab响应式样式 */
    .novel-tab-nav {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .tab-pane {
        padding: 0;
    }
    
    .stats-top-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .stat-item strong {
        font-size: 11px;
    }
    
    .tag-item {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .novel-content h4 {
        font-size: 16px;
    }
    
    /* 手风琴响应式 */
    .volume-title {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .volume-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 12px;
    }
    
    .volume-name {
        margin-right: 10px;
    }
    
    .chapter-count {
        font-size: 12px;
        margin-right: 10px;
    }
    
    /* 章节网格响应式 - 移动端改为单列 */
    .chapter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .volume-chapters {
        padding: 15px;
    }
    
    .chapter-link {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .chapter-info {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .chapter-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .chapter-date {
        font-size: 11px;
        margin-bottom: 0;
    }
    
    .chapter-status {
        align-self: flex-start;
    }
    
    /* 评论区域响应式 */
    .rating-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .rating-score {
        align-self: flex-start;
    }
    
    .comment-form-section {
        padding: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .comment-content {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .submit-review-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 平板设备响应式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .chapter-grid {
        gap: 12px;
        padding: 18px;
    }
    
    .chapter-link {
        padding: 14px;
    }
    
    .chapter-info {
        margin-right: 12px;
    }
    
    .chapter-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .chapter-date {
        font-size: 11px;
        margin-bottom: 0;
    }
}

/* 回复功能样式 */
.review-item {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.review-item:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.review-reply {
    background: #222;
    margin-left: 20px;
    margin-top: 10px;
    padding: 15px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.user-avatar {
    font-size: 24px;
    color: #4a90e2;
    background: #2a2a2a;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

.review-date {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.rating-stars {
    color: #28a745;
    font-size: 16px;
}

.rating-number {
    color: #ccc;
    font-size: 13px;
}

.review-content {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 15px;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.reply-btn {
    background: transparent;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.reply-count {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.replies-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.reply-form-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.reply-form textarea {
    width: 100%;
    min-height: 90px;
    padding: 14px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.reply-form textarea::placeholder {
    color: #999;
}

.reply-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.submit-reply-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-reply-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.submit-reply-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-reply-btn {
    background: transparent;
    color: #888;
    border: 1px solid #666;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    color: #fff;
    border-color: #888;
    background: rgba(255, 255, 255, 0.05);
}

/* 回复功能响应式样式 */
@media (max-width: 768px) {
    .review-item {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .review-reply {
        margin-left: 12px;
        padding: 14px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .user-info {
        gap: 10px;
    }
    
    .user-avatar {
        font-size: 20px;
        min-width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .review-date {
        font-size: 11px;
    }
    
    .review-content {
        font-size: 14px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    .review-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .reply-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .reply-count {
        font-size: 12px;
    }
    
    .reply-form textarea {
        min-height: 80px;
        padding: 12px;
        font-size: 13px;
    }
    
    .reply-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-reply-btn,
    .cancel-reply-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================== 底部工具栏和目录侧边栏 ==================== */

/* 底部工具栏 */
#chapter-toolbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s ease !important;
    min-height: 60px !important;
}

/* 工具栏隐藏状态 */
#chapter-toolbar.hidden {
    transform: translateY(120%) !important;
}

/* 左侧区域 */
.toolbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* 右侧区域 */
.toolbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* 章节标题显示 */
.chapter-title-display {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 200px !important;
    opacity: 0.9 !important;
}

.toolbar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    color: #e0e0e0 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    min-width: 40px !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
}

.toolbar-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #4a90e2 !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.toolbar-item svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    opacity: 0.9 !important;
    transition: opacity 0.3s ease !important;
}

.toolbar-item:hover svg {
    opacity: 1 !important;
}

/* 导航按钮特殊样式 */
.nav-item {
    flex-direction: row !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    background: rgba(74, 144, 226, 0.2) !important;
    border: 1px solid rgba(74, 144, 226, 0.3) !important;
}

.nav-item:hover {
    background: rgba(74, 144, 226, 0.3) !important;
    border-color: rgba(74, 144, 226, 0.5) !important;
}

.nav-item span {
    font-size: 12px !important;
}

/* 目录按钮特殊样式 */
#toc-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
}

#toc-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 白天模式工具栏样式 */
body.single-chapter.light-mode #chapter-toolbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1) !important;
}

body.single-chapter.light-mode .chapter-title-display {
    color: #000000 !important;
}

body.single-chapter.light-mode #chapter-toolbar .toolbar-item,
body.single-chapter.light-mode .toolbar-item {
    color: #000000 !important;
}

body.single-chapter.light-mode #chapter-toolbar .toolbar-item:hover,
body.single-chapter.light-mode .toolbar-item:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #0066cc !important;
}

body.single-chapter.light-mode #chapter-toolbar .toolbar-item svg,
body.single-chapter.light-mode .toolbar-item svg {
    fill: #000000 !important;
}

body.single-chapter.light-mode #chapter-toolbar .toolbar-item:hover svg,
body.single-chapter.light-mode .toolbar-item:hover svg {
    fill: #0066cc !important;
}

body.single-chapter.light-mode #chapter-toolbar .nav-item,
body.single-chapter.light-mode .nav-item {
    background: rgba(74, 144, 226, 0.1) !important;
    border: 1px solid rgba(74, 144, 226, 0.2) !important;
    color: #0066cc !important;
}

body.single-chapter.light-mode #chapter-toolbar .nav-item:hover,
body.single-chapter.light-mode .nav-item:hover {
    background: rgba(74, 144, 226, 0.2) !important;
    border-color: rgba(74, 144, 226, 0.4) !important;
    color: #0066cc !important;
}

body.single-chapter.light-mode #chapter-toolbar .nav-item svg,
body.single-chapter.light-mode .nav-item svg {
    fill: #0066cc !important;
}

body.single-chapter.light-mode #toc-toggle {
    background: rgba(0, 0, 0, 0.1) !important;
}

body.single-chapter.light-mode #toc-toggle:hover {
    background: rgba(0, 0, 0, 0.15) !important;
}

body.single-chapter.light-mode #toc-toggle svg {
    fill: #000000 !important;
}

/* 白天模式目录侧边栏样式 */
body.single-chapter.light-mode #toc-sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.single-chapter.light-mode .toc-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.single-chapter.light-mode .toc-header h3 {
    color: #000000 !important;
}

body.single-chapter.light-mode #toc-close {
    color: #000000 !important;
}

body.single-chapter.light-mode #toc-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

body.single-chapter.light-mode .toc-novel-info {
    background: rgba(0, 0, 0, 0.02) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.single-chapter.light-mode .toc-novel-info .novel-name {
    color: #0066cc !important;
}

body.single-chapter.light-mode .toc-novel-info .novel-id {
    color: #666666 !important;
}

body.single-chapter.light-mode .toc-chapter-link {
    color: #000000 !important;
    border-left: 3px solid transparent !important;
}

body.single-chapter.light-mode .toc-chapter-link:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0066cc !important;
    border-left-color: #0066cc !important;
}

body.single-chapter.light-mode .toc-chapter-link.current-chapter {
    background: rgba(74, 144, 226, 0.1) !important;
    color: #0066cc !important;
    border-left-color: #0066cc !important;
}

body.single-chapter.light-mode .toc-chapter-number {
    color: #666666 !important;
}

body.single-chapter.light-mode .toc-chapter-link:hover .toc-chapter-number,
body.single-chapter.light-mode .toc-chapter-link.current-chapter .toc-chapter-number {
    color: #0066cc !important;
}

body.single-chapter.light-mode .toc-no-chapters {
    color: #666666 !important;
}

/* 白天模式全局文字颜色覆盖 - 必须放在最后以确保优先级 */
body.single-chapter.light-mode p,
body.single-chapter.light-mode div,
body.single-chapter.light-mode span {
    color: #000000 !important;
}

/* 白天模式章节预览和购买覆盖层样式 */
body.single-chapter.light-mode .chapter-preview-container {
    background: #ffffff !important;
}

body.single-chapter.light-mode .chapter-preview-content {
    color: #000000 !important;
}

body.single-chapter.light-mode .chapter-preview-content p {
    color: #333333 !important;
}

body.single-chapter.light-mode .chapter-preview-content::after {
    background: linear-gradient(transparent, #ffffff) !important;
}

body.single-chapter.light-mode .content-fade-overlay {
    background: linear-gradient(transparent, #ffffff) !important;
}

body.single-chapter.light-mode .chapter-purchase-overlay {
    background: #f8f9fa !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.single-chapter.light-mode .purchase-prompt h3 {
    color: #000000 !important;
}

body.single-chapter.light-mode .purchase-prompt p {
    color: #666666 !important;
}

body.single-chapter.light-mode .user-balance {
    color: #666666 !important;
}

body.single-chapter.light-mode .insufficient-credits {
    color: #dc3545 !important;
}

body.single-chapter.light-mode .lock-icon {
    color: #666666 !important;
}

/* 目录侧边栏 */
#toc-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -400px !important;
    width: 400px !important;
    height: 100vh !important;
    background: #111111 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 2000 !important;
    transition: left 0.3s ease !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#toc-sidebar.active {
    left: 0 !important;
}

.toc-header {
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #1a1a1a !important;
}

.toc-header h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

#toc-close {
    background: none !important;
    border: none !important;
    color: #e0e0e0 !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

#toc-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.toc-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px 0 !important;
}

.toc-chapters {
    display: flex !important;
    flex-direction: column !important;
}

.toc-chapter-link {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 12px 24px !important;
    text-decoration: none !important;
    color: #e0e0e0 !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease !important;
}

.toc-chapter-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #4a90e2 !important;
    border-left-color: #4a90e2 !important;
}

.toc-chapter-link.current-chapter {
    background: rgba(74, 144, 226, 0.1) !important;
    color: #4a90e2 !important;
    border-left-color: #4a90e2 !important;
}

.toc-chapter-number {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #999999 !important;
}

.toc-chapter-link:hover .toc-chapter-number,
.toc-chapter-link.current-chapter .toc-chapter-number {
    color: #4a90e2 !important;
}

.toc-chapter-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* 目录小说信息样式 */
.toc-novel-info {
    padding: 16px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.toc-novel-info .novel-name {
    color: #4a90e2 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.toc-novel-info .novel-id {
    color: #999999 !important;
    font-size: 12px !important;
    font-family: monospace !important;
}

/* 目录无章节提示样式 */
.toc-no-chapters {
    padding: 40px 24px !important;
    text-align: center !important;
    color: #999999 !important;
    font-style: italic !important;
}

/* 确保章节内容字体调整生效 */
.single-chapter .chapter-preview-content,
.single-chapter .entry-content,
.single-chapter .post-content,
.single-chapter .content {
    transition: font-size 0.3s ease !important;
}

.single-chapter .chapter-preview-content p,
.single-chapter .entry-content p,
.single-chapter .post-content p,
.single-chapter .content p {
    transition: font-size 0.3s ease !important;
    line-height: 1.6 !important;
}

/* 移动端工具栏和目录适配 */
@media (max-width: 768px) {
    /* 移动端工具栏 */
    #chapter-toolbar {
        padding: 10px 16px !important;
        min-height: 55px !important;
    }

    #chapter-toolbar.hidden {
        transform: translateY(130%) !important;
    }

    .toolbar-left {
        gap: 8px !important;
    }

    .toolbar-right {
        gap: 6px !important;
    }

    .chapter-title-display {
        font-size: 12px !important;
        max-width: 120px !important;
    }

    .toolbar-item {
        min-width: 35px !important;
        padding: 5px 8px !important;
        font-size: 9px !important;
    }

    .toolbar-item svg {
        width: 16px !important;
        height: 16px !important;
    }

    .nav-item {
        padding: 6px 10px !important;
    }

    .nav-item span {
        font-size: 11px !important;
    }

    #toc-toggle {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
    }
    
    /* 移动端目录侧边栏 */
    #toc-sidebar {
        width: 320px !important;
        left: -320px !important;
    }
    
    .toc-header {
        padding: 16px 20px !important;
    }
    
    .toc-header h3 {
        font-size: 16px !important;
    }
    
    .toc-chapter-link {
        padding: 10px 20px !important;
    }
}

/* 阅读历史页面样式 */
.reading-history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.reading-history-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.reading-history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.reading-history-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    position: relative;
}

.reading-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    border-color: #555;
}

.reading-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.reading-history-delete-btn {
    display: inline-block;
    background: rgba(220, 53, 69, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.reading-history-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.reading-history-delete-btn svg {
    width: 12px;
    height: 12px;
}

.reading-history-cover {
    width: 90px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0 !important;
}

.reading-history-content {
    flex: 1 !important;
    min-width: 0 !important;
}



.reading-history-novel-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-history-novel-title:hover {
    color: #4CAF50;
    text-decoration: none;
}

.reading-history-progress {
    margin-bottom: 12px;
}

.reading-history-progress-text {
    color: #cccccc;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.reading-history-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.reading-history-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.reading-history-last-chapter {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-history-continue-btn {
    display: inline-block;
    background: rgba(76, 175, 80, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.reading-history-continue-btn:hover {
    background: rgba(76, 175, 80, 0.9);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.reading-history-empty {
    text-align: center;
    color: #888;
    font-size: 18px;
    margin-top: 50px;
    padding: 40px;
    background-color: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #333;
}

.reading-history-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #555;
}

.reading-history-login-prompt {
    text-align: center;
    color: #888;
    font-size: 18px;
    margin-top: 50px;
    padding: 40px;
    background-color: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #333;
}

.reading-history-login-btn {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.reading-history-login-btn:hover {
    background-color: #1976D2;
    text-decoration: none;
    color: white;
}

/* 添加一些特殊效果 */
.reading-history-item .reading-history-cover {
    transition: transform 0.3s ease;
}

.reading-history-item:hover .reading-history-cover {
    transform: scale(1.02);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reading-history-item {
    animation: fadeInUp 0.5s ease-out;
}

.reading-history-item:nth-child(1) { animation-delay: 0.1s; }
.reading-history-item:nth-child(2) { animation-delay: 0.2s; }
.reading-history-item:nth-child(3) { animation-delay: 0.3s; }
.reading-history-item:nth-child(4) { animation-delay: 0.4s; }
.reading-history-item:nth-child(5) { animation-delay: 0.5s; }
.reading-history-item:nth-child(6) { animation-delay: 0.6s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .reading-history-container {
        padding: 15px;
    }
    
    .reading-history-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .reading-history-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reading-history-item {
        padding: 15px;
        gap: 12px;
    }
    
    .reading-history-cover {
        width: 70px !important;
        height: 90px !important;
    }
    
    .reading-history-novel-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .reading-history-progress-text {
        font-size: 12px;
    }
    
    .reading-history-content {
        min-width: 0;
        overflow: hidden;
    }
    
    .reading-history-last-chapter {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
    }
    
    .reading-history-continue-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .reading-history-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .reading-history-delete-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .reading-history-container {
        padding: 10px;
    }
    
    .reading-history-title {
        font-size: 20px;
    }
    
    .reading-history-item {
        padding: 12px;
        gap: 10px;
    }
    
    .reading-history-cover {
        width: 60px !important;
        height: 80px !important;
    }
    
    .reading-history-novel-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .reading-history-progress-text {
        font-size: 11px;
    }
    
    .reading-history-last-chapter {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .reading-history-continue-btn,
    .reading-history-delete-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .reading-history-actions {
        gap: 5px;
    }
}