/**
 * 古籍阅读插件前端样式
 * 与子比主题风格保持一致
 */

/* 基础样式 */
.zab-breadcrumbs-wrap {
    margin-bottom: 20px;
}

.zab-breadcrumbs .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.zab-breadcrumbs .breadcrumb-item {
    color: var(--muted-color);
}

.zab-breadcrumbs .breadcrumb-item a {
    color: var(--main-color);
    text-decoration: none;
}

.zab-breadcrumbs .breadcrumb-item a:hover {
    color: var(--theme-color);
}

.zab-breadcrumbs .breadcrumb-item.active {
    color: var(--text-color);
}

/* 页面标题 */
.zab-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.zab-page-header .page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.zab-page-header .page-description {
    color: var(--muted-color);
    font-size: 16px;
    margin: 0;
}

/* 分类筛选 */
.zab-category-filter {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    background: var(--body-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
    text-decoration: none;
}

.category-tab.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.category-tab .count {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.8;
}

/* 书籍网格 */
.zab-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.book-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--theme-color);
}

.book-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.book-cover .cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .cover-image {
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-badge .price {
    background: var(--theme-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.vip-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-title a {
    color: var(--text-color);
    text-decoration: none;
}

.book-title a:hover {
    color: var(--theme-color);
}

.book-author {
    color: var(--muted-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.book-description {
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--muted-color);
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-actions {
    display: flex;
    gap: 10px;
}

.book-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
}

/* 空状态 */
.no-books-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    color: var(--muted-color);
}

.empty-state i {
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* 分页 */
.zab-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.zab-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 2px;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.zab-pagination .page-numbers:hover,
.zab-pagination .page-numbers.current {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* 侧边栏 */
.sidebar .widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar .widget-title {
    background: var(--body-bg-color);
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

/* 搜索组件 */
.search-form {
    padding: 20px;
}

.search-input-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 10px 15px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--theme-hover-color);
}

/* 热门书籍列表 */
.popular-books-list {
    padding: 20px;
}

.popular-book-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-book-item .rank {
    width: 24px;
    height: 24px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.popular-book-item .book-info {
    flex: 1;
    min-width: 0;
}

.popular-book-item .book-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.popular-book-item .book-title a {
    color: var(--text-color);
    text-decoration: none;
}

.popular-book-item .book-title a:hover {
    color: var(--theme-color);
}

.popular-book-item .book-author {
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 2px;
}

.popular-book-item .reading-count {
    font-size: 11px;
    color: var(--muted-color);
}

/* 最新书籍列表 */
.latest-books-list {
    padding: 20px;
}

.latest-book-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.book-cover-small {
    width: 50px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

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

.latest-book-item .book-info {
    flex: 1;
    min-width: 0;
}

.latest-book-item .book-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.latest-book-item .book-title a {
    color: var(--text-color);
    text-decoration: none;
}

.latest-book-item .book-title a:hover {
    color: var(--theme-color);
}

.latest-book-item .book-author {
    font-size: 12px;
    color: var(--muted-color);
    margin-bottom: 4px;
}

.latest-book-item .update-time {
    font-size: 11px;
    color: var(--muted-color);
}

/* 分类统计 */
.category-stats-list {
    padding: 20px;
}

.category-stat-item {
    margin-bottom: 8px;
}

.category-stat-item:last-child {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--body-bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--theme-color);
    color: #fff;
    text-decoration: none;
}

.category-name {
    font-size: 14px;
}

.book-count {
    font-size: 12px;
    background: var(--border-color);
    color: var(--muted-color);
    padding: 2px 6px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-link:hover .book-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zab-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .category-tabs {
        padding: 15px;
        gap: 8px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .book-card {
        margin-bottom: 15px;
    }
    
    .book-cover {
        height: 180px;
    }
    
    .book-info {
        padding: 12px;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .sidebar .widget {
        margin-bottom: 15px;
    }
    
    .popular-books-list,
    .latest-books-list,
    .category-stats-list {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .zab-books-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tab {
        justify-content: center;
    }
    
    .zab-page-header .page-title {
        font-size: 24px;
    }
    
    .book-meta {
        gap: 10px;
        font-size: 11px;
    }
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: #fbbf24;
    color: #92400e;
}

.status-badge.status-approved {
    background: #10b981;
    color: #fff;
}

.status-badge.status-rejected {
    background: #ef4444;
    color: #fff;
}

.status-badge.status-published {
    background: #10b981;
    color: #fff;
}

.status-badge.status-draft {
    background: #6b7280;
    color: #fff;
}

.status-badge.status-private {
    background: #8b5cf6;
    color: #fff;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============ 支付相关样式（子比风格） ============ */

/* VIP价格提示 */
.vip-free-notice {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.vip-price-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-price-tip {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(var(--theme-color-rgb), 0.1);
    border-radius: 4px;
    font-size: 12px;
}

/* 子比按钮样式适配 */
.but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.but.btn-block {
    display: flex;
    width: 100%;
}

.but.padding-lg {
    padding: 12px 20px;
}

.but.but-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.but.jb-red {
    background: #ff5722;
    color: #fff;
}

.but.jb-red:hover {
    background: #e64a19;
    color: #fff;
    text-decoration: none;
}

.but.jb-blue {
    background: #2196f3;
    color: #fff;
}

.but.jb-blue:hover {
    background: #1976d2;
    color: #fff;
    text-decoration: none;
}

.but.jb-green {
    background: #4caf50;
    color: #fff;
}

.but.jb-green:hover {
    background: #388e3c;
    color: #fff;
    text-decoration: none;
}

.but.jb-yellow {
    background: #ffc107;
    color: #333;
}

.but.jb-yellow:hover {
    background: #ffa000;
    color: #333;
    text-decoration: none;
}

.but.jb-hollow {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.but.jb-hollow:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    text-decoration: none;
}

.but.disabled,
.but:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 价格标记 */
.pay-mark {
    font-size: 0.9em;
    margin-right: 2px;
}

/* 登录按钮（signin-loader）*/
.signin-loader {
    cursor: pointer;
}

/* 书籍操作按钮区域 */
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secondary-actions {
    display: flex;
    gap: 8px;
}

.secondary-actions .but {
    flex: 1;
}

/* 阅读进度提示 */
.reading-progress {
    text-align: center;
    padding: 6px;
    background: rgba(var(--theme-color-rgb), 0.1);
    border-radius: 4px;
}

/* 章节操作按钮 */
.chapter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chapter-actions .but {
    min-width: 60px;
}

/* 子比主题辅助类 */
.mr3 { margin-right: 3px; }
.mr6 { margin-right: 6px; }
.ml3 { margin-left: 3px; }
.ml6 { margin-left: 6px; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mb6 { margin-bottom: 6px; }
.mb10 { margin-bottom: 10px; }
.em09 { font-size: 0.9em; }
.em12 { font-size: 1.2em; }
.em14 { font-size: 1.4em; }
.px12 { font-size: 12px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.ac { align-items: center; }
.jsb { justify-content: space-between; }
.jc { justify-content: center; }

.muted-color { color: var(--muted-color, #999); }
.muted-2-color { color: var(--muted-2-color, #666); }
.c-yellow { color: #ffc107; }
.c-red { color: #ff5722; }
.c-blue { color: #2196f3; }

/* 徽章 */
.badg {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badg.c-yellow {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ============ 付费内容提示区域 ============ */
.purchase-cta {
    position: relative;
    margin-top: 40px;
    padding: 60px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.95) 20%);
    text-align: center;
}

.cta-overlay {
    position: relative;
    z-index: 10;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.cta-icon {
    color: var(--muted-color);
    margin-bottom: 20px;
}

.cta-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cta-tip {
    color: var(--muted-color);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.purchase-option {
    padding: 15px;
    background: var(--body-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.purchase-option .option-label {
    font-size: 13px;
    color: var(--muted-color);
    margin-bottom: 5px;
}

.purchase-option .option-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 10px;
}

.vip-tip {
    padding: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* 章节购买按钮样式优化 */
.chapter-actions .zab-cashier-link {
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .purchase-cta {
        padding: 40px 15px;
    }
    
    .cta-content {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .purchase-option .option-price {
        font-size: 18px;
    }
}

/* ============ 书籍详情页 - 子比主题风格 ============ */

/* 书籍封面区域 */
.book-cover-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.book-cover-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 书籍头部信息 */
.book-header-info .article-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-color, #333);
}

.book-header-info .article-meta {
    font-size: 14px;
    margin-bottom: 15px;
}

.book-header-info .article-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-header-info .article-meta a:hover {
    color: var(--theme-color, #2271b1);
}

/* VIP价格提示 - 子比风格 */
.vip-price-tips .badg {
    margin-right: 5px;
}

/* 章节列表 - 网格布局 */
.zab-chapters-list {
    margin-top: 15px;
}

.zab-chapter-item {
    display: block;
    padding: 12px 15px;
    background: var(--body-bg-color, #f5f6f7);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-color, #333);
    overflow: hidden;
}

.zab-chapter-item:hover {
    background: var(--theme-color, #2271b1);
    border-color: var(--theme-color, #2271b1);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zab-chapter-item:hover .chapter-title {
    color: #fff !important;
}

.zab-chapter-item.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.zab-chapter-item.current .chapter-title {
    color: #fff !important;
}

.zab-chapter-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.zab-chapter-item.locked:hover {
    background: var(--body-bg-color, #f5f6f7);
    border-color: var(--border-color, #e5e5e5);
    color: var(--text-color, #333);
    transform: none;
}

.zab-chapter-item.locked .chapter-title {
    color: var(--muted-color, #999);
}

.zab-chapter-item .chapter-number {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.zab-chapter-item .chapter-title {
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.zab-chapter-item .chapter-bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b81;
    font-size: 18px;
}

.zab-chapter-item .chapter-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--muted-color, #999);
    font-size: 14px;
}

/* 相关推荐 */
.zab-book-card {
    display: block;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: transform 0.3s ease;
}

.zab-book-card:hover {
    text-decoration: none;
    transform: translateY(-5px);
}

.book-cover-mini {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.zab-book-card:hover .book-cover-mini {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 子比主题文本样式 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* 响应式优化 - 书籍详情页 */
@media (max-width: 768px) {
    .book-header-info .article-title {
        font-size: 22px;
    }
    
    .book-header-info .article-meta {
        font-size: 13px;
    }
    
    .zab-chapter-item {
        padding: 10px 12px;
    }
}

/* ============ 书库列表页 - 子比主题风格 ============ */

/* 书籍卡片 */
.zab-library-book-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.zab-library-book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.zab-library-book-card .book-cover-container {
    overflow: hidden;
    background: var(--body-bg-color, #f5f6f7);
}

.zab-library-book-card .book-cover-container img {
    transition: transform 0.5s ease;
}

.zab-library-book-card:hover .book-cover-container img {
    transform: scale(1.05);
}

.zab-library-book-card .book-title-item {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 42px; /* 确保两行标题的高度一致 */
}

.zab-library-book-card .book-title-item a {
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zab-library-book-card .book-title-item a:hover {
    color: var(--theme-color, #2271b1);
}

/* 响应式优化 - 书库列表 */
@media (max-width: 768px) {
    .zab-library-book-card .book-title-item {
        font-size: 14px;
        min-height: 38px;
    }
}

/* ============ 起点风格书籍详情页 ============ */

/* 书籍信息区布局 */
.zab-book-info-area {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.zab-book-cover-section {
    flex-shrink: 0;
    width: 200px;
}

.zab-book-cover-section .book-cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.zab-book-detail-section {
    flex: 1;
    min-width: 0;
}

/* 书名 - 起点风格 */
.zab-book-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: var(--text-color, #333);
}

/* 作者信息 */
.zab-book-author {
    font-size: 14px;
    color: var(--muted-color, #999);
}

.zab-book-author a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zab-book-author a:hover {
    color: var(--theme-color, #2271b1);
}

/* 书籍数据 - 起点风格 */
.zab-book-data {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.zab-book-data .data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zab-book-data .data-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-color, #2271b1);
    font-style: normal;
    line-height: 1;
    margin-bottom: 5px;
}

.zab-book-data .data-label {
    font-size: 12px;
    color: var(--muted-color, #999);
}

/* 标签 */
.zab-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 操作按钮区 - 起点风格 */
.zab-book-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zab-book-actions .but {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.zab-book-actions .btn-primary {
    min-width: 160px;
}

.zab-book-actions .btn-bookshelf.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* VIP提示 */
.zab-vip-tips {
    padding: 10px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 6px;
}

/* 阅读进度条 */
.zab-reading-progress {
    margin-top: 15px;
}

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--body-bg-color, #f5f6f7);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--muted-color, #999);
}

/* 作品简介 */
.zab-book-intro {
    margin-top: 20px;
}

.intro-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color, #333);
}

.intro-content {
    line-height: 1.8;
    color: var(--text-color, #666);
    font-size: 14px;
}

/* 章节目录 - 起点风格 */
.zab-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
}

.catalog-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color, #333);
}

.catalog-tools {
    display: flex;
    gap: 10px;
}

/* 章节列表 - 起点列表布局 */
.zab-catalog-list {
    max-height: 600px;
    overflow-y: auto;
}

.chapter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chapter-item {
    margin-bottom: 1px;
}

.chapter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--body-bg-color, #f8f9fa);
    border-left: 3px solid transparent;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: all 0.3s ease;
}

.chapter-link:hover {
    background: #fff;
    border-left-color: var(--theme-color, #2271b1);
    text-decoration: none;
    transform: translateX(3px);
}

.chapter-item.is-current .chapter-link {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left-color: #667eea;
}

.chapter-item.is-locked .chapter-link {
    opacity: 0.7;
}

.chapter-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chapter-icon {
    color: var(--muted-color, #999);
    font-size: 14px;
}

.chapter-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #333);
}

.chapter-link:hover .chapter-name {
    color: var(--theme-color, #2271b1);
}

.chapter-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--muted-color, #999);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 响应式 - 起点风格书籍页 */
@media (max-width: 768px) {
    .zab-book-info-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .zab-book-cover-section {
        width: 140px;
        margin: 0 auto;
    }
    
    .zab-book-title {
        font-size: 24px;
        text-align: center;
    }
    
    .zab-book-author {
        text-align: center;
    }
    
    .zab-book-data {
        gap: 20px;
        justify-content: center;
    }
    
    .zab-book-data .data-value {
        font-size: 18px;
    }
    
    .zab-book-tags {
        justify-content: center;
    }
    
    .zab-book-actions {
        justify-content: center;
    }
    
    .zab-book-actions .but {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .chapter-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .chapter-meta {
        gap: 10px;
        font-size: 11px;
    }
}

/* ============ 纵横风格书籍详情页 ============ */

/* 两栏布局 - 书籍详情页和书库页通用 */
.zab-book-layout,
.zab-library-layout {
    display: flex !important;
    gap: 20px;
    align-items: flex-start;
}

.zab-book-main,
.zab-library-main {
    flex: 1 !important;
    min-width: 0;
}

.zab-book-sidebar,
.zab-library-sidebar {
    flex-shrink: 0 !important;
    width: 300px !important;
}

/* 小工具容器样式 */
.zab-book-sidebar .widget,
.zab-book-sidebar .zab-widget,
.zab-library-sidebar .widget,
.zab-library-sidebar .zab-widget {
    margin-bottom: 20px;
}

.zab-book-sidebar .widget:last-child,
.zab-book-sidebar .zab-widget:last-child,
.zab-library-sidebar .widget:last-child,
.zab-library-sidebar .zab-widget:last-child {
    margin-bottom: 0;
}

/* 小工具内部包装器 - 用于没有标题的小工具 */
.zab-widget-inner {
    padding: 20px;
}

/* 隐藏空的内部包装器（有标题的小工具会有这个空元素） */
.zab-widget-inner:empty {
    display: none;
    padding: 0;
}

/* 小工具标题样式 - 子比主题风格 */
.zab-widget .box-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), transparent);
}

.zab-widget .box-header .title-theme {
    display: block;
}

.zab-widget .box-header .title-theme span {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color, #333);
    display: block;
}

/* 小工具内容区域 */
.zab-widget .box-body {
    padding: 20px;
}

/* 小工具内通用样式 */
.zab-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zab-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.zab-widget ul li:last-child {
    border-bottom: none;
}

.zab-widget ul li a {
    color: var(--text-color, #555);
    text-decoration: none;
    transition: color 0.3s;
}

.zab-widget ul li a:hover {
    color: var(--theme-color, #ff6700);
}

/* 书籍头部 - 纵横布局 */
.zab-zh-book-header {
    display: flex;
    gap: 30px;
}

.zab-zh-cover {
    flex-shrink: 0;
    width: 180px;
}

.book-cover-wrap {
    position: relative;
}

.cover-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 比例 (4/3 = 1.3333) */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    background: var(--body-bg-color, #f5f6f7);
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-image-box:hover .cover-image {
    transform: scale(1.05);
}

/* 封面标识 */
.cover-badge {
    position: absolute;
    z-index: 2;
}

.badge-vip {
    top: 8px;
    left: 8px;
}

.badge-vip .badg {
    background: rgba(0,0,0,0.75);
    font-size: 11px;
    padding: 3px 8px;
}

.badge-price {
    top: 8px;
    right: 8px;
}

.badge-price .badg {
    background: rgba(255,0,0,0.9);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
}

.badge-free {
    top: 8px;
    left: 8px;
}

.badge-free .badg {
    font-size: 12px;
    padding: 4px 10px;
}

.zab-zh-info {
    flex: 1;
    min-width: 0;
}

/* 书名 - 纵横风格 */
.zab-zh-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: var(--text-color, #333);
}

/* 标签栏 - 纵横风格 */
.zab-zh-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zh-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zh-label-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.zh-label-status.c-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.zh-label-status.c-yellow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.zh-label-category {
    background: var(--theme-color, #2271b1);
    color: #fff;
}

.zh-label-category:hover {
    opacity: 0.9;
    text-decoration: none;
}

.zh-label-tag {
    background: var(--body-bg-color, #f5f6f7);
    color: var(--muted-color, #999);
    border: 1px solid var(--border-color, #e5e5e5);
}

/* 数据统计 - 纵横风格 */
.zab-zh-stats {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.zh-stat-item {
    text-align: center;
}

.zh-stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color, #2271b1);
    line-height: 1;
    margin-bottom: 6px;
}

.zh-stat-item .stat-label {
    font-size: 12px;
    color: var(--muted-color, #999);
}

/* 最新章节 */
.zab-zh-latest {
    font-size: 14px;
    line-height: 1.8;
}

.latest-label {
    color: var(--muted-color, #999);
}

.latest-title {
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-title:hover {
    color: var(--theme-color, #2271b1);
    text-decoration: none;
}

.latest-time {
    font-size: 12px;
}

/* 操作按钮区 - 纵横风格 */
.zab-zh-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.zh-btn-main {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
}

.zh-btn {
    padding: 10px 24px;
    font-size: 14px;
}

.zh-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 价格显示 */
.zab-zh-price {
    font-size: 14px;
}

.price-label {
    color: var(--muted-color, #999);
}

.price-value {
    font-size: 20px;
    font-weight: 700;
}

.vip-tips {
    font-size: 12px;
}

/* 阅读进度 - 纵横风格 */
.zab-zh-progress {
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #e5e5e5);
}

.progress-info {
    font-size: 13px;
    color: var(--text-color, #666);
}

.progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--body-bg-color, #f5f6f7);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 作品简介 */
.zab-book-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color, #666);
    text-indent: 2em;
}

/* 章节预览 - 纵横风格 */
.zab-chapter-preview {
    background: var(--body-bg-color, #fafafa);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e5e5e5);
}

.preview-content {
    font-size: 14px;
    line-height: 2;
    color: var(--text-color, #555);
    text-indent: 2em;
    max-height: 400px;
    overflow-y: auto;
}

.preview-more {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #ddd);
    text-align: center;
}

.preview-more .but {
    padding: 10px 30px;
}

/* 手机扫码 */
.zh-mobile-read {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted-color, #999);
    cursor: default;
}

.zh-mobile-read input[type="checkbox"] {
    margin-right: 6px;
}

/* 选项卡 - 纵横风格 */
.zab-zh-tabs {
    border-bottom: 2px solid var(--border-color, #e5e5e5);
    margin-bottom: 30px;
}

.zh-tabs-nav {
    display: flex;
    gap: 0;
}

.zh-tab-item {
    padding: 15px 30px;
    font-size: 16px;
    color: var(--text-color, #666);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.zh-tab-item:hover {
    color: var(--theme-color, #2271b1);
    text-decoration: none;
}

.zh-tab-item.active {
    color: var(--theme-color, #2271b1);
    border-bottom-color: var(--theme-color, #2271b1);
    font-weight: 600;
}

.tab-count {
    font-size: 14px;
    color: var(--muted-color, #999);
    margin-left: 5px;
}

/* 简介区 - 纵横风格 */
.zh-book-intro {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.zh-book-intro .intro-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 20px;
    line-height: 1.6;
}

.zh-book-intro .intro-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color, #555);
    margin-bottom: 12px;
    text-indent: 2em;
}

/* 试读区 - 纵横风格 */
.zh-book-preview {
    padding-top: 30px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    margin-bottom: 20px;
}

.preview-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #333);
}

.preview-stats {
    font-size: 13px;
    color: var(--muted-color, #999);
}

.preview-actions {
    display: flex;
    gap: 15px;
}

.btn-toggle {
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-toggle:hover {
    text-decoration: none;
}

.preview-chapter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color, #ddd);
}

.preview-text {
    font-size: 14px;
    line-height: 2;
    color: var(--text-color, #444);
}

.preview-text p {
    margin-bottom: 1em;
    text-indent: 2em;
}

.preview-more {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color, #ddd);
    text-align: center;
}

.btn-continue {
    display: inline-block;
    padding: 10px 40px;
    background: var(--theme-color, #2271b1);
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: var(--theme-hover-color, #1a5a8a);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* 章节目录 - 纵横两列布局 */
.zh-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
}

.catalog-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #333);
    margin: 0;
}

.catalog-tools {
    display: flex;
    gap: 10px;
}

.btn-sort {
    padding: 6px 15px;
    font-size: 13px;
    background: transparent;
    border: 1px solid var(--border-color, #ddd);
    color: var(--muted-color, #999);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sort:hover {
    border-color: var(--theme-color, #2271b1);
    color: var(--theme-color, #2271b1);
}

.btn-sort.active {
    background: var(--theme-color, #2271b1);
    border-color: var(--theme-color, #2271b1);
    color: #fff;
}

.zh-chapter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.chapter-column {
    display: flex;
    flex-direction: column;
}

.chapter-row {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color, #e9e9e9);
    transition: background 0.3s ease;
}

.chapter-row:hover {
    background: var(--body-bg-color, #f9f9f9);
}

.chapter-row.is-reading {
    background: rgba(102, 126, 234, 0.05);
}

.chapter-link {
    display: block;
    font-size: 14px;
    color: var(--text-color, #555);
    text-decoration: none;
    padding-right: 50px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.chapter-link:hover {
    color: var(--theme-color, #2271b1);
    text-decoration: none;
}

.chapter-row.is-reading .chapter-link {
    color: var(--theme-color, #2271b1);
    font-weight: 600;
}

.chapter-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.badge-lock {
    color: var(--muted-color, #ccc);
}

.badge-reading {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--theme-color, #2271b1);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

/* 标签优化 - 纵横风格 */
.zh-label-main {
    background: transparent;
    border: 1px solid var(--border-color, #ddd);
    color: var(--muted-color, #666);
}

/* 价格信息显示 */
.zab-zh-price-info {
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    border-radius: 6px;
    border: 1px solid #ffcccc;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: #ff0000;
    margin-right: 10px;
}

.price-vip {
    font-size: 13px;
    color: var(--muted-color, #999);
}

/* 响应式 - 纵横风格 */
@media (max-width: 768px) {
    /* 移动端侧边栏布局调整 */
    .zab-book-layout,
    .zab-library-layout {
        flex-direction: column;
    }
    
    .zab-book-sidebar,
    .zab-library-sidebar {
        width: 100%;
        order: 2;
    }
    
    .zab-book-main,
    .zab-library-main {
        order: 1;
    }
    
    .zab-zh-book-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .zab-zh-cover {
        width: 160px;
        margin: 0 auto;
    }
    
    .cover-image-box {
        padding-bottom: 133.33%; /* 保持3:4比例 */
    }
    
    .badge-vip .badg,
    .badge-free .badg {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .badge-price .badg {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .zab-zh-title {
        font-size: 22px;
        text-align: center;
    }
    
    .zab-zh-labels {
        justify-content: center;
    }
    
    .zab-zh-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .zh-stat-item .stat-value {
        font-size: 20px;
    }
    
    .zab-zh-latest {
        text-align: center;
        font-size: 13px;
    }
    
    .zab-zh-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .zh-btn-main {
        padding: 10px 30px;
        font-size: 15px;
    }
    
    .zh-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .zh-mobile-read {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .zab-zh-price-info {
        text-align: center;
        padding: 10px 12px;
    }
    
    .price-main {
        font-size: 20px;
    }
    
    .price-vip {
        font-size: 12px;
        display: block;
        margin-top: 5px;
    }
    
    .zh-tab-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .preview-stats {
        font-size: 12px;
    }
    
    .zh-chapter-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .chapter-link {
        font-size: 13px;
    }
}

/* ============ 支付相关样式（子比风格） ============ */

/* VIP价格提示 */
.vip-free-notice {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.vip-price-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-price-tip {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(var(--theme-color-rgb), 0.1);
    border-radius: 4px;
    font-size: 12px;
}

/* 子比按钮样式适配 */
.but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.but.btn-block {
    display: flex;
    width: 100%;
}

.but.padding-lg {
    padding: 12px 20px;
}

.but.but-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.but.jb-red {
    background: #ff5722;
    color: #fff;
}

.but.jb-red:hover {
    background: #e64a19;
    color: #fff;
    text-decoration: none;
}

.but.jb-blue {
    background: #2196f3;
    color: #fff;
}

.but.jb-blue:hover {
    background: #1976d2;
    color: #fff;
    text-decoration: none;
}

.but.jb-green {
    background: #4caf50;
    color: #fff;
}

.but.jb-green:hover {
    background: #388e3c;
    color: #fff;
    text-decoration: none;
}

.but.jb-yellow {
    background: #ffc107;
    color: #333;
}

.but.jb-yellow:hover {
    background: #ffa000;
    color: #333;
    text-decoration: none;
}

.but.jb-hollow {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.but.jb-hollow:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    text-decoration: none;
}

.but.disabled,
.but:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 价格标记 */
.pay-mark {
    font-size: 0.9em;
    margin-right: 2px;
}

/* 登录按钮（signin-loader）*/
.signin-loader {
    cursor: pointer;
}

/* 书籍操作按钮区域 */
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secondary-actions {
    display: flex;
    gap: 8px;
}

.secondary-actions .but {
    flex: 1;
}

/* 阅读进度提示 */
.reading-progress {
    text-align: center;
    padding: 6px;
    background: rgba(var(--theme-color-rgb), 0.1);
    border-radius: 4px;
}

/* 章节操作按钮 */
.chapter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chapter-actions .but {
    min-width: 60px;
}

/* 子比主题辅助类 */
.mr3 { margin-right: 3px; }
.mr6 { margin-right: 6px; }
.ml3 { margin-left: 3px; }
.ml6 { margin-left: 6px; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mb6 { margin-bottom: 6px; }
.mb10 { margin-bottom: 10px; }
.em09 { font-size: 0.9em; }
.em12 { font-size: 1.2em; }
.em14 { font-size: 1.4em; }
.px12 { font-size: 12px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.ac { align-items: center; }
.jsb { justify-content: space-between; }
.jc { justify-content: center; }

.muted-color { color: var(--muted-color, #999); }
.muted-2-color { color: var(--muted-2-color, #666); }
.c-yellow { color: #ffc107; }
.c-red { color: #ff5722; }
.c-blue { color: #2196f3; }

/* 徽章 */
.badg {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badg.c-yellow {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ============ 付费内容提示区域 ============ */
.purchase-cta {
    position: relative;
    margin-top: 40px;
    padding: 60px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.95) 20%);
    text-align: center;
}

.cta-overlay {
    position: relative;
    z-index: 10;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.cta-icon {
    color: var(--muted-color);
    margin-bottom: 20px;
}

.cta-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cta-tip {
    color: var(--muted-color);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.purchase-option {
    padding: 15px;
    background: var(--body-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.purchase-option .option-label {
    font-size: 13px;
    color: var(--muted-color);
    margin-bottom: 5px;
}

.purchase-option .option-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 10px;
}

.vip-tip {
    padding: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* 章节购买按钮样式优化 */
.chapter-actions .zab-cashier-link {
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .purchase-cta {
        padding: 40px 15px;
    }
    
    .cta-content {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .purchase-option .option-price {
        font-size: 18px;
    }
}

/* ============ 书籍详情页 - 子比主题风格 ============ */

/* 书籍封面区域 */
.book-cover-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.book-cover-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 书籍头部信息 */
.book-header-info .article-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-color, #333);
}

.book-header-info .article-meta {
    font-size: 14px;
    margin-bottom: 15px;
}

.book-header-info .article-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-header-info .article-meta a:hover {
    color: var(--theme-color, #2271b1);
}

/* VIP价格提示 - 子比风格 */
.vip-price-tips .badg {
    margin-right: 5px;
}

/* 章节列表 - 网格布局 */
.zab-chapters-list {
    margin-top: 15px;
}

.zab-chapter-item {
    display: block;
    padding: 12px 15px;
    background: var(--body-bg-color, #f5f6f7);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-color, #333);
    overflow: hidden;
}

.zab-chapter-item:hover {
    background: var(--theme-color, #2271b1);
    border-color: var(--theme-color, #2271b1);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zab-chapter-item:hover .chapter-title {
    color: #fff !important;
}

.zab-chapter-item.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.zab-chapter-item.current .chapter-title {
    color: #fff !important;
}

.zab-chapter-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.zab-chapter-item.locked:hover {
    background: var(--body-bg-color, #f5f6f7);
    border-color: var(--border-color, #e5e5e5);
    color: var(--text-color, #333);
    transform: none;
}

.zab-chapter-item.locked .chapter-title {
    color: var(--muted-color, #999);
}

.zab-chapter-item .chapter-number {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.zab-chapter-item .chapter-title {
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.zab-chapter-item .chapter-bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b81;
    font-size: 18px;
}

.zab-chapter-item .chapter-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--muted-color, #999);
    font-size: 14px;
}

/* 相关推荐 */
.zab-book-card {
    display: block;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: transform 0.3s ease;
}

.zab-book-card:hover {
    text-decoration: none;
    transform: translateY(-5px);
}

.book-cover-mini {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.zab-book-card:hover .book-cover-mini {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 子比主题文本样式 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* 响应式优化 - 书籍详情页 */
@media (max-width: 768px) {
    .book-header-info .article-title {
        font-size: 22px;
    }
    
    .book-header-info .article-meta {
        font-size: 13px;
    }
    
    .zab-chapter-item {
        padding: 10px 12px;
    }
}

/* ============ 书库列表页 - 子比主题风格 ============ */

/* 书籍卡片 */
.zab-library-book-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.zab-library-book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.zab-library-book-card .book-cover-container {
    overflow: hidden;
    background: var(--body-bg-color, #f5f6f7);
}

.zab-library-book-card .book-cover-container img {
    transition: transform 0.5s ease;
}

.zab-library-book-card:hover .book-cover-container img {
    transform: scale(1.05);
}

.zab-library-book-card .book-title-item {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 42px; /* 确保两行标题的高度一致 */
}

.zab-library-book-card .book-title-item a {
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zab-library-book-card .book-title-item a:hover {
    color: var(--theme-color, #2271b1);
}

/* 响应式优化 - 书库列表 */
@media (max-width: 768px) {
    .zab-library-book-card .book-title-item {
        font-size: 14px;
        min-height: 38px;
    }
}

/* ============ 起点风格书籍详情页 ============ */

/* 书籍信息区布局 */
.zab-book-info-area {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.zab-book-cover-section {
    flex-shrink: 0;
    width: 200px;
}

.zab-book-cover-section .book-cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.zab-book-detail-section {
    flex: 1;
    min-width: 0;
}

/* 书名 - 起点风格 */
.zab-book-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: var(--text-color, #333);
}

/* 作者信息 */
.zab-book-author {
    font-size: 14px;
    color: var(--muted-color, #999);
}

.zab-book-author a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zab-book-author a:hover {
    color: var(--theme-color, #2271b1);
}

/* 书籍数据 - 起点风格 */
.zab-book-data {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.zab-book-data .data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zab-book-data .data-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-color, #2271b1);
    font-style: normal;
    line-height: 1;
    margin-bottom: 5px;
}

.zab-book-data .data-label {
    font-size: 12px;
    color: var(--muted-color, #999);
}

/* 标签 */
.zab-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 操作按钮区 - 起点风格 */
.zab-book-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zab-book-actions .but {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.zab-book-actions .btn-primary {
    min-width: 160px;
}

.zab-book-actions .btn-bookshelf.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* VIP提示 */
.zab-vip-tips {
    padding: 10px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 6px;
}

/* 阅读进度条 */
.zab-reading-progress {
    margin-top: 15px;
}

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--body-bg-color, #f5f6f7);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--muted-color, #999);
}

/* 作品简介 */
.zab-book-intro {
    margin-top: 20px;
}

.intro-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color, #333);
}

.intro-content {
    line-height: 1.8;
    color: var(--text-color, #666);
    font-size: 14px;
}

/* 章节目录 - 起点风格 */
.zab-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
}

.catalog-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color, #333);
}

.catalog-tools {
    display: flex;
    gap: 10px;
}

/* 章节列表 - 起点列表布局 */
.zab-catalog-list {
    max-height: 600px;
    overflow-y: auto;
}

.chapter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chapter-item {
    margin-bottom: 1px;
}

.chapter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--body-bg-color, #f8f9fa);
    border-left: 3px solid transparent;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: all 0.3s ease;
}

.chapter-link:hover {
    background: #fff;
    border-left-color: var(--theme-color, #2271b1);
    text-decoration: none;
    transform: translateX(3px);
}

.chapter-item.is-current .chapter-link {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left-color: #667eea;
}

.chapter-item.is-locked .chapter-link {
    opacity: 0.7;
}

.chapter-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chapter-icon {
    color: var(--muted-color, #999);
    font-size: 14px;
}

.chapter-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #333);
}

.chapter-link:hover .chapter-name {
    color: var(--theme-color, #2271b1);
}

.chapter-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--muted-color, #999);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 响应式 - 起点风格书籍页 */
@media (max-width: 768px) {
    .zab-book-info-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .zab-book-cover-section {
        width: 140px;
        margin: 0 auto;
    }
    
    .zab-book-title {
        font-size: 24px;
        text-align: center;
    }
    
    .zab-book-author {
        text-align: center;
    }
    
    .zab-book-data {
        gap: 20px;
        justify-content: center;
    }
    
    .zab-book-data .data-value {
        font-size: 18px;
    }
    
    .zab-book-tags {
        justify-content: center;
    }
    
    .zab-book-actions {
        justify-content: center;
    }
    
    .zab-book-actions .but {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .chapter-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .chapter-meta {
        gap: 10px;
        font-size: 11px;
    }
}

/* ============ 纵横风格书籍详情页 ============ */

/* 两栏布局 - 书籍详情页和书库页通用 */
.zab-book-layout,
.zab-library-layout {
    display: flex !important;
    gap: 20px;
    align-items: flex-start;
}

.zab-book-main,
.zab-library-main {
    flex: 1 !important;
    min-width: 0;
}

.zab-book-sidebar,
.zab-library-sidebar {
    flex-shrink: 0 !important;
    width: 300px !important;
}

/* 小工具容器样式 */
.zab-book-sidebar .widget,
.zab-book-sidebar .zab-widget,
.zab-library-sidebar .widget,
.zab-library-sidebar .zab-widget {
    margin-bottom: 20px;
}

.zab-book-sidebar .widget:last-child,
.zab-book-sidebar .zab-widget:last-child,
.zab-library-sidebar .widget:last-child,
.zab-library-sidebar .zab-widget:last-child {
    margin-bottom: 0;
}

/* 小工具内部包装器 - 用于没有标题的小工具 */
.zab-widget-inner {
    padding: 20px;
}

/* 隐藏空的内部包装器（有标题的小工具会有这个空元素） */
.zab-widget-inner:empty {
    display: none;
    padding: 0;
}

/* 小工具标题样式 - 子比主题风格 */
.zab-widget .box-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), transparent);
}

.zab-widget .box-header .title-theme {
    display: block;
}

.zab-widget .box-header .title-theme span {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color, #333);
    display: block;
}

/* 小工具内容区域 */
.zab-widget .box-body {
    padding: 20px;
}

/* 小工具内通用样式 */
.zab-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zab-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.zab-widget ul li:last-child {
    border-bottom: none;
}

.zab-widget ul li a {
    color: var(--text-color, #555);
    text-decoration: none;
    transition: color 0.3s;
}

.zab-widget ul li a:hover {
    color: var(--theme-color, #ff6700);
}

/* 书籍头部 - 纵横布局 */
.zab-zh-book-header {
    display: flex;
    gap: 30px;
}

.zab-zh-cover {
    flex-shrink: 0;
    width: 180px;
}

.book-cover-wrap {
    position: relative;
}

.cover-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 比例 (4/3 = 1.3333) */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    background: var(--body-bg-color, #f5f6f7);
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-image-box:hover .cover-image {
    transform: scale(1.05);
}

/* 封面标识 */
.cover-badge {
    position: absolute;
    z-index: 2;
}

.badge-vip {
    top: 8px;
    left: 8px;
}

.badge-vip .badg {
    background: rgba(0,0,0,0.75);
    font-size: 11px;
    padding: 3px 8px;
}

.badge-price {
    top: 8px;
    right: 8px;
}

.badge-price .badg {
    background: rgba(255,0,0,0.9);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
}

.badge-free {
    top: 8px;
    left: 8px;
}

.badge-free .badg {
    font-size: 12px;
    padding: 4px 10px;
}

.zab-zh-info {
    flex: 1;
    min-width: 0;
}

/* 书名 - 纵横风格 */
.zab-zh-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: var(--text-color, #333);
}

/* 标签栏 - 纵横风格 */
.zab-zh-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zh-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zh-label-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.zh-label-status.c-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.zh-label-status.c-yellow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.zh-label-category {
    background: var(--theme-color, #2271b1);
    color: #fff;
}

.zh-label-category:hover {
    opacity: 0.9;
    text-decoration: none;
}

.zh-label-tag {
    background: var(--body-bg-color, #f5f6f7);
    color: var(--muted-color, #999);
    border: 1px solid var(--border-color, #e5e5e5);
}

/* 数据统计 - 纵横风格 */
.zab-zh-stats {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.zh-stat-item {
    text-align: center;
}

.zh-stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color, #2271b1);
    line-height: 1;
    margin-bottom: 6px;
}

.zh-stat-item .stat-label {
    font-size: 12px;
    color: var(--muted-color, #999);
}

/* 最新章节 */
.zab-zh-latest {
    font-size: 14px;
    line-height: 1.8;
}

.latest-label {
    color: var(--muted-color, #999);
}

.latest-title {
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-title:hover {
    color: var(--theme-color, #2271b1);
    text-decoration: none;
}

.latest-time {
    font-size: 12px;
}

/* 操作按钮区 - 纵横风格 */
.zab-zh-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.zh-btn-main {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
}

.zh-btn {
    padding: 10px 24px;
    font-size: 14px;
}

.zh-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 价格显示 */
.zab-zh-price {
    font-size: 14px;
}

.price-label {
    color: var(--muted-color, #999);
}

.price-value {
    font-size: 20px;
    font-weight: 700;
}

.vip-tips {
    font-size: 12px;
}

/* 阅读进度 - 纵横风格 */
.zab-zh-progress {
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #e5e5e5);
}

.progress-info {
    font-size: 13px;
    color: var(--text-color, #666);
}

.progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--body-bg-color, #f5f6f7);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 作品简介 */
.zab-book-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color, #666);
    text-indent: 2em;
}

/* 章节预览 - 纵横风格 */
.zab-chapter-preview {
    background: var(--body-bg-color, #fafafa);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e5e5e5);
}

.preview-content {
    font-size: 14px;
    line-height: 2;
    color: var(--text-color, #555);
    text-indent: 2em;
    max-height: 400px;
    overflow-y: auto;
}

.preview-more {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #ddd);
    text-align: center;
}

.preview-more .but {
    padding: 10px 30px;
}

/* 手机扫码 */
.zh-mobile-read {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted-color, #999);
    cursor: default;
}

.zh-mobile-read input[type="checkbox"] {
    margin-right: 6px;
}

/* 选项卡 - 纵横风格 */
.zab-zh-tabs {
    border-bottom: 2px solid var(--border-color, #e5e5e5);
    margin-bottom: 30px;
}

.zh-tabs-nav {
    display: flex;
    gap: 0;
}

.zh-tab-item {
    padding: 15px 30px;
    font-size: 16px;
    color: var(--text-color, #666);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.zh-tab-item:hover {
    color: var(--theme-color, #2271b1);
    text-decoration: none;
}

.zh-tab-item.active {
    color: var(--theme-color, #2271b1);
    border-bottom-color: var(--theme-color, #2271b1);
    font-weight: 600;
}

.tab-count {
    font-size: 14px;
    color: var(--muted-color, #999);
    margin-left: 5px;
}

/* 简介区 - 纵横风格 */
.zh-book-intro {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.zh-book-intro .intro-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 20px;
    line-height: 1.6;
}

.zh-book-intro .intro-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color, #555);
    margin-bottom: 12px;
    text-indent: 2em;
}

/* 试读区 - 纵横风格 */
.zh-book-preview {
    padding-top: 30px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    margin-bottom: 20px;
}

.preview-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #333);
}

.preview-stats {
    font-size: 13px;
    color: var(--muted-color, #999);
}

.preview-actions {
    display: flex;
    gap: 15px;
}

.btn-toggle {
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-toggle:hover {
    text-decoration: none;
}

.preview-chapter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color, #ddd);
}

.preview-text {
    font-size: 14px;
    line-height: 2;
    color: var(--text-color, #444);
}

.preview-text p {
    margin-bottom: 1em;
    text-indent: 2em;
}

.preview-more {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color, #ddd);
    text-align: center;
}

.btn-continue {
    display: inline-block;
    padding: 10px 40px;
    background: var(--theme-color, #2271b1);
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: var(--theme-hover-color, #1a5a8a);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* 章节目录 - 纵横两列布局 */
.zh-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
}

.catalog-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #333);
    margin: 0;
}

.catalog-tools {
    display: flex;
    gap: 10px;
}

.btn-sort {
    padding: 6px 15px;
    font-size: 13px;
    background: transparent;
    border: 1px solid var(--border-color, #ddd);
    color: var(--muted-color, #999);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sort:hover {
    border-color: var(--theme-color, #2271b1);
    color: var(--theme-color, #2271b1);
}

.btn-sort.active {
    background: var(--theme-color, #2271b1);
    border-color: var(--theme-color, #2271b1);
    color: #fff;
}

.zh-chapter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.chapter-column {
    display: flex;
    flex-direction: column;
}

.chapter-row {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color, #e9e9e9);
    transition: background 0.3s ease;
}

.chapter-row:hover {
    background: var(--body-bg-color, #f9f9f9);
}

.chapter-row.is-reading {
    background: rgba(102, 126, 234, 0.05);
}

.chapter-link {
    display: block;
    font-size: 14px;
    color: var(--text-color, #555);
    text-decoration: none;
    padding-right: 50px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.chapter-link:hover {
    color: var(--theme-color, #2271b1);
    text-decoration: none;
}

.chapter-row.is-reading .chapter-link {
    color: var(--theme-color, #2271b1);
    font-weight: 600;
}

.chapter-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.badge-lock {
    color: var(--muted-color, #ccc);
}

.badge-reading {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--theme-color, #2271b1);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

/* 标签优化 - 纵横风格 */
.zh-label-main {
    background: transparent;
    border: 1px solid var(--border-color, #ddd);
    color: var(--muted-color, #666);
}

/* 价格信息显示 */
.zab-zh-price-info {
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    border-radius: 6px;
    border: 1px solid #ffcccc;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: #ff0000;
    margin-right: 10px;
}

.price-vip {
    font-size: 13px;
    color: var(--muted-color, #999);
}

/* 响应式 - 纵横风格 */
@media (max-width: 768px) {
    /* 移动端侧边栏布局调整 */
    .zab-book-layout,
    .zab-library-layout {
        flex-direction: column;
    }
    
    .zab-book-sidebar,
    .zab-library-sidebar {
        width: 100%;
        order: 2;
    }
    
    .zab-book-main,
    .zab-library-main {
        order: 1;
    }
    
    .zab-zh-book-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .zab-zh-cover {
        width: 160px;
        margin: 0 auto;
    }
    
    .cover-image-box {
        padding-bottom: 133.33%; /* 保持3:4比例 */
    }
    
    .badge-vip .badg,
    .badge-free .badg {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .badge-price .badg {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .zab-zh-title {
        font-size: 22px;
        text-align: center;
    }
    
    .zab-zh-labels {
        justify-content: center;
    }
    
    .zab-zh-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .zh-stat-item .stat-value {
        font-size: 20px;
    }
    
    .zab-zh-latest {
        text-align: center;
        font-size: 13px;
    }
    
    .zab-zh-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .zh-btn-main {
        padding: 10px 30px;
        font-size: 15px;
    }
    
    .zh-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .zh-mobile-read {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .zab-zh-price-info {
        text-align: center;
        padding: 10px 12px;
    }
    
    .price-main {
        font-size: 20px;
    }
    
    .price-vip {
        font-size: 12px;
        display: block;
        margin-top: 5px;
    }
    
    .zh-tab-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .preview-stats {
        font-size: 12px;
    }
    
    .zh-chapter-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .chapter-link {
        font-size: 13px;
    }
}

/* ============ 书库首页优化 - 专业在线阅读平台风格 ============ */

/* ========== 书评系统样式（完全参照子比主题评论） ========== */

