/* =============================================
   图书详情页样式 - 参考 bilinovel.com 设计
   ============================================= */

/* 主容器布局 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
}

.book-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
}

/* 图书头部信息 - 三栏布局 */
.book-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.book-cover-large {
    width: 200px;
    height: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

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

/* 更换封面按钮 */
.change-cover-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.change-cover-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) translateY(-2px);
}

.book-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-header-info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.book-header-info .author {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.book-header-info .author a {
    color: var(--primary-color);
}

/* 评分板块 */
.book-rating-section {
    background: linear-gradient(135deg, rgba(155, 126, 217, 0.08), rgba(139, 195, 74, 0.08));
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(155, 126, 217, 0.15);
}

.rating-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.douban-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: #00B51D;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    width: 18px;
    height: 18px;
    fill: #E0E0E0;
}

.rating-stars .star.filled {
    fill: #FFB800;
}

.rating-stars .star.half {
    fill: url(#star-gradient);
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

.book-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.book-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.book-tags .tag {
    padding: 6px 16px;
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
}

.book-tags .tag.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    color: #B8860B;
}

.book-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.book-actions .btn {
    padding: 12px 32px;
    font-size: 1rem;
}

.btn-read {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(155, 126, 217, 0.3);
}

.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(155, 126, 217, 0.4);
}

.btn-shelf {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-shelf:hover {
    background: var(--primary-color);
    color: white;
}

.btn-shelf.in-shelf {
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
}

.btn-collect {
    border: 1px solid #FF6B9D;
    color: #FF6B9D;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-collect:hover {
    background: #FF6B9D;
    color: white;
}

.btn-collect.collected {
    background: rgba(255, 107, 157, 0.1);
    color: #FF6B9D;
}

/* 图书简介 */
.book-intro {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.book-intro h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-intro h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.book-intro p {
    color: var(--text-secondary);
    line-height: 1.9;
    text-indent: 2em;
}

/* 章节列表 */
.chapter-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chapter-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chapter-header h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.chapter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.chapter-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.chapter-item {
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-item:hover {
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
}

.chapter-item.vip {
    position: relative;
}

.chapter-item.vip::after {
    content: 'VIP';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
    padding: 2px 4px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border-radius: 2px;
}

/* 暂无章节提示 */
.no-chapters {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.no-chapters p {
    margin: 0;
    font-size: 1rem;
}

.no-chapters .hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 获取章节提示 */
.fetch-chapters-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.fetch-chapters-prompt svg {
    color: var(--primary-color);
    opacity: 0.6;
}

.fetch-chapters-prompt p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.fetch-chapters-prompt .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.fetch-chapters-btn {
    margin-top: var(--spacing-md);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(155, 126, 217, 0.3);
}

.fetch-chapters-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 126, 217, 0.4);
}

.fetch-chapters-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fetch-chapters-btn .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 评论区域 */
.comment-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.comment-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.comment-form textarea {
    flex: 1;
    height: 80px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: none;
    color: var(--text-primary);
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
}

.comment-item .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-item .content {
    flex: 1;
}

.comment-item .username {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comment-item .time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 12px;
}

.comment-item .text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 992px) {
    .book-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .book-stats {
        justify-content: center;
    }
    
    .book-tags {
        justify-content: center;
    }
    
    .book-actions {
        justify-content: center;
    }
    
    .chapter-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .book-header {
        padding: 24px;
    }
    
    .book-cover-large {
        width: 150px;
        height: 210px;
    }
    
    .book-header-info h1 {
        font-size: 1.4rem;
    }
    
    .chapter-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rating-main {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .rating-score {
        font-size: 1.5rem;
    }
}

/* 更换封面弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.modal-body {
    padding: 24px;
}

.cover-preview {
    width: 150px;
    height: 210px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
}

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

.cover-upload-area {
    text-align: center;
}

.cover-upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(155, 126, 217, 0.3);
}

.upload-hint {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* =============================================
   分卷系列样式 - 参考 SeriesVolumes.tsx
   ============================================= */

.series-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.series-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.series-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.series-header h2 svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.series-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 6px;
}

.series-badge {
    padding: 4px 12px;
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.series-current {
    padding: 10px 20px;
    background: rgba(155, 126, 217, 0.04);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.series-current span {
    color: var(--primary-color);
    font-weight: 600;
}

.series-scroll-container {
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 126, 217, 0.3) transparent;
}

.series-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.series-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.series-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(155, 126, 217, 0.3);
    border-radius: 3px;
    transition: background 0.2s;
}

.series-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 126, 217, 0.5);
}

.series-books {
    display: flex;
    gap: 16px;
    min-width: max-content;
    padding-bottom: 4px;
}

/* 分卷图书卡片 - 参考 SeriesVolumes.tsx */
.series-book-card {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.series-book-card:hover {
    transform: translateY(-2px);
}

.series-book-card.disabled {
    cursor: default;
}

.series-book-card.disabled:hover {
    transform: none;
}

.series-cover-wrapper {
    position: relative;
    width: 140px;
    height: 187px; /* 3:4 比例 */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.series-book-card:not(.disabled):hover .series-cover-wrapper {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

.series-cover-wrapper.current {
    box-shadow: 0 0 0 2px var(--primary-color), 0 0 0 4px rgba(155, 126, 217, 0.2);
}

.series-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卷数标签 - 底部渐变背景 */
.series-volume-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 当前阅读标记 - 右上角圆形图标 */
.series-current-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(155, 126, 217, 0.5);
}

.series-current-badge svg {
    color: white;
    width: 12px;
    height: 12px;
}

.series-book-title {
    margin-top: 8px;
    padding: 0 2px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.series-book-card:not(.disabled):hover .series-book-title {
    color: var(--primary-color);
}

.series-book-card.current .series-book-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 空状态 */
.series-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* 暗色模式 */
.reader-container.dark-mode .series-section {
    background: var(--bg-card);
}

.reader-container.dark-mode .series-badge {
    background: rgba(155, 126, 217, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 主容器改为单栏布局 */
    .book-detail-wrapper {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* 图书头部改为上下布局 */
    .book-header {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    /* 封面居中显示 */
    .book-cover-large {
        width: 140px;
        height: 196px;
        margin: 0 auto;
    }

    /* 图书信息 */
    .book-header-info h1 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }

    .book-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .book-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    /* 标签 */
    .book-tags {
        justify-content: center;
    }

    /* 简介 */
    .book-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* 操作按钮 */
    .book-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .book-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* 右侧边栏移到底部 */
    .book-detail-sidebar {
        width: 100%;
        order: 2;
    }

    /* 作者卡片 */
    .author-card {
        padding: var(--spacing-md);
    }

    .author-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    /* 章节列表 */
    .chapter-section {
        margin-bottom: var(--spacing-md);
    }

    .chapter-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .chapter-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }

    .chapter-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }

    /* 分卷系列 */
    .series-scroll-container {
        padding: 12px;
    }

    .series-books {
        gap: 10px;
    }

    .series-book-card {
        width: 110px;
    }

    .series-cover-wrapper {
        width: 110px;
        height: 147px;
    }

    .series-book-title {
        font-size: 0.75rem;
        margin-top: 6px;
    }

    .series-volume-badge {
        font-size: 0.7rem;
        padding: 8px 6px 6px;
    }

    .series-current-badge {
        width: 18px;
        height: 18px;
    }

    .series-current-badge svg {
        width: 10px;
        height: 10px;
    }

    /* 评论区域 */
    .comment-section {
        margin-bottom: var(--spacing-md);
    }

    .comment-form textarea {
        min-height: 80px;
    }

    /* 面包屑 */
    .breadcrumb {
        font-size: 0.8rem;
        padding: var(--spacing-sm) 0;
    }
}

/* =============================================
   新版图书详情页布局（参考 linovelib）
   ============================================= */

/* 整体布局容器 */
.book-detail-wrapper {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 左侧主内容区 */
.book-detail-main {
    flex: 1;
    min-width: 0;
}

/* 右侧边栏 */
.book-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 新版图书头部 */
.book-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.book-cover-large {
    width: 180px;
    height: 252px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.book-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-header-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 图书元信息 */
.book-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.status-tag {
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-tag.completed {
    background: #fff3e0;
    color: #e65100;
}

.category-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.category-link:hover {
    text-decoration: underline;
}

.author-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.author-text a {
    color: var(--primary-color);
}

/* 统计信息 */
.book-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.book-tags .tag {
    padding: 4px 12px;
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-tags .tag:hover {
    background: rgba(155, 126, 217, 0.2);
}

/* 简介 */
.book-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 操作按钮 */
.book-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.book-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-read {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(155, 126, 217, 0.3);
}

.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 126, 217, 0.4);
}

.btn-shelf {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-shelf:hover {
    background: var(--bg-hover);
}

.btn-shelf.in-shelf {
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-download, .btn-recommend, .btn-share {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-download:hover, .btn-recommend:hover, .btn-share:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* 最新章节 */
.latest-chapters {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.chapter-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.chapter-link-item:hover {
    background: var(--bg-hover);
}

.chapter-link-item a {
    color: var(--text-primary);
    font-size: 0.9rem;
    flex: 1;
}

.chapter-link-item a:hover {
    color: var(--primary-color);
}

/* 作者卡片 */
.author-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.author-label {
    padding: 2px 8px;
    background: rgba(155, 126, 217, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.author-name {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.author-name:hover {
    color: var(--primary-color);
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.author-stat-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.author-stat-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-info {
    margin-bottom: 16px;
}

.author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.other-works h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.other-works-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.other-works-list li:last-child {
    border-bottom: none;
}

.other-works-list a {
    color: var(--text-primary);
    font-size: 0.85rem;
}

.other-works-list a:hover {
    color: var(--primary-color);
}

/* 评分卡片 - 美化版 */
.rating-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid #ffe58f;
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.rating-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d48806;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-card h4::before {
    content: '📚';
    font-size: 1rem;
}

.rating-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

.rating-score-large {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-stars-large {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-stars-large .star {
    width: 20px;
    height: 20px;
    fill: #E0E0E0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.rating-stars-large .star.filled {
    fill: #FFB800;
}

.rating-count-text {
    font-size: 0.85rem;
    color: #8c6e00;
    font-weight: 500;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-bar-label {
    font-size: 0.75rem;
    color: #8c6e00;
    width: 24px;
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 184, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB800 0%, #FF8C00 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 暗色主题适配 */
[data-theme="dark"] .rating-card {
    background: linear-gradient(135deg, #2c2518 0%, #1f1a10 100%);
    border-color: #4a3d1f;
}

[data-theme="dark"] .rating-card h4 {
    color: #ffc53d;
}

[data-theme="dark"] .rating-display {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .rating-count-text {
    color: #d4b106;
}

[data-theme="dark"] .rating-bar-label {
    color: #d4b106;
}

[data-theme="dark"] .rating-bar {
    background: rgba(255, 184, 0, 0.15);
}:
}

/* =============================================
   文字清晰度优化 - 提高对比度
   ============================================= */

/* 章节项文字优化 */
.chapter-item {
    color: #3A3A5A !important;
    font-weight: 500;
}

/* 暂无章节提示优化 */
.no-chapters {
    color: #5A5A7A !important;
}

/* 获取章节提示优化 */
.fetch-chapters-prompt p {
    color: #3A3A5A !important;
}

.fetch-chapters-prompt .hint {
    color: #5A5A7A !important;
}

/* 右侧边栏文字优化 */
.book-detail-sidebar .stat-label {
    color: #5A5A7A !important;
}

.book-detail-sidebar .author-stat-item .label {
    color: #5A5A7A !important;
}

.book-detail-sidebar .author-info p {
    color: #3A3A5A !important;
}

/* 章节列表文字优化 */
.chapter-link-item a {
    color: #2A2A4A !important;
}

/* 描述文字优化 */
.book-description {
    color: #3A3A5A !important;
}

/* 作者信息优化 */
.author-text {
    color: #3A3A5A !important;
}

/* 统计标签优化 */
.stat-label {
    color: #5A5A7A !important;
}

/* 深色主题适配 */
[data-theme="dark"] .chapter-item {
    color: #C8C8D8 !important;
}

[data-theme="dark"] .no-chapters {
    color: #A8A8B8 !important;
}

[data-theme="dark"] .fetch-chapters-prompt p {
    color: #C8C8D8 !important;
}

[data-theme="dark"] .fetch-chapters-prompt .hint {
    color: #A8A8B8 !important;
}

[data-theme="dark"] .book-detail-sidebar .stat-label {
    color: #A8A8B8 !important;
}

[data-theme="dark"] .book-detail-sidebar .author-stat-item .label {
    color: #A8A8B8 !important;
}

[data-theme="dark"] .book-detail-sidebar .author-info p {
    color: #C8C8D8 !important;
}

[data-theme="dark"] .chapter-link-item a {
    color: #D8D8E8 !important;
}

[data-theme="dark"] .book-description {
    color: #C8C8D8 !important;
}

/* =============================================
   豆瓣评分输入弹窗样式
   ============================================= */

.douban-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.douban-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

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

.douban-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.douban-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.douban-modal-header h3 svg {
    color: #FFB800;
}

.douban-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.douban-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.douban-modal-body {
    padding: 24px;
}

.douban-form-group {
    margin-bottom: 20px;
}

.douban-form-group:last-child {
    margin-bottom: 0;
}

.douban-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.douban-label svg {
    color: var(--primary-color);
}

.douban-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 16px;
    transition: all 0.2s;
}

.douban-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(155, 126, 217, 0.1);
}

.douban-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    padding: 12px 0;
}

.douban-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.douban-input-suffix {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 8px;
}

.douban-input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.douban-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
}

.douban-modal-footer .btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.douban-modal-footer .btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 深色主题适配 */
[data-theme="dark"] .douban-modal {
    background: #1E1E2E;
}

[data-theme="dark"] .douban-modal-header {
    border-bottom-color: #2E2E3E;
}

[data-theme="dark"] .douban-input-wrapper {
    background: #2E2E3E;
    border-color: #3E3E4E;
}

[data-theme="dark"] .douban-input-wrapper:focus-within {
    background: #1E1E2E;
}

[data-theme="dark"] .douban-modal-footer {
    background: #2E2E3E;
    border-top-color: #3E3E4E;
}

[data-theme="dark"] .author-text {
    color: #C8C8D8 !important;
}

[data-theme="dark"] .stat-label {
    color: #A8A8B8 !important;
}

/* =============================================
   分享弹窗样式
   ============================================= */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal {
    transform: translateY(0) scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.share-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.share-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.share-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

/* 分享类型切换 */
.share-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s;
}

.share-type-tab:hover {
    background: #f0f0f0;
}

.share-type-tab.active {
    background: rgba(212, 165, 165, 0.1);
    border-color: var(--primary-color, #D4A5A5);
    color: var(--primary-color, #D4A5A5);
}

/* 二维码分享 */
.share-content {
    text-align: center;
}

.qrcode-container {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
}

.qrcode-container canvas {
    display: block;
}

.qrcode-tip {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 16px;
}

.btn-download-qrcode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary-color, #D4A5A5);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-qrcode:hover {
    background: var(--primary-dark, #B88A8A);
    transform: translateY(-1px);
}

/* 链接分享 */
.share-link-box {
    display: flex;
    gap: 8px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 8px;
}

.share-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #333;
    outline: none;
}

.btn-copy-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--primary-color, #D4A5A5);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy-link:hover {
    background: var(--primary-dark, #B88A8A);
}

.btn-copy-link.copied {
    background: #52c41a;
}

/* 社交平台列表 */
.share-platforms {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.share-platforms h4 {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 16px;
    font-weight: 500;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #f8f8f8;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.platform-item:active {
    transform: translateY(0);
}

.platform-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.platform-item span {
    font-size: 0.75rem;
    color: #666;
}

/* 生成分享图片按钮 */
.share-image-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.btn-generate-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate-image:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 深色模式适配 */
[data-theme="dark"] .share-modal {
    background: #1E1E2E;
}

[data-theme="dark"] .share-modal-header {
    border-bottom-color: #2E2E3E;
}

[data-theme="dark"] .share-modal-header h3 {
    color: #E8E8F0;
}

[data-theme="dark"] .share-modal-close {
    color: #888;
}

[data-theme="dark"] .share-modal-close:hover {
    background: #2E2E3E;
    color: #E8E8F0;
}

[data-theme="dark"] .share-type-tab {
    background: #2E2E3E;
    color: #A8A8B8;
}

[data-theme="dark"] .share-type-tab:hover {
    background: #3E3E4E;
}

[data-theme="dark"] .share-type-tab.active {
    background: rgba(212, 165, 165, 0.15);
    color: var(--primary-color, #D4A5A5);
}

[data-theme="dark"] .qrcode-container {
    background: #2E2E3E;
    border-color: #3E3E4E;
}

[data-theme="dark"] .share-link-box {
    background: #2E2E3E;
    border-color: #3E3E4E;
}

[data-theme="dark"] .share-link-box input {
    color: #E8E8F0;
}

[data-theme="dark"] .share-platforms {
    border-top-color: #2E2E3E;
}

[data-theme="dark"] .platform-item {
    background: #2E2E3E;
}

[data-theme="dark"] .platform-item:hover {
    background: #3E3E4E;
}

[data-theme="dark"] .platform-icon {
    background: #1E1E2E;
}

[data-theme="dark"] .platform-item span {
    color: #A8A8B8;
}

[data-theme="dark"] .share-image-section {
    border-top-color: #2E2E3E;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .share-modal {
        width: 95%;
        max-height: 85vh;
    }

    .share-modal-body {
        padding: 16px;
    }

    .platform-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .platform-item {
        padding: 10px 6px;
    }

    .platform-icon {
        width: 38px;
        height: 38px;
    }

    .platform-icon svg {
        width: 22px;
        height: 22px;
    }

    .platform-item span {
        font-size: 0.7rem;
    }
}

/* =============================================
   移动端详情页优化 - 去边框、按钮图标化
   ============================================= */
@media (max-width: 768px) {
    /* 主容器 */
    .main-container {
        padding: 60px 0 80px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .book-detail-wrapper {
        display: block;
        gap: 0;
    }
    
    /* 面包屑隐藏 */
    .breadcrumb {
        display: none;
    }
    
    /* 图书头部 - 去边框和阴影 */
    .book-header {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 16px;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-bottom: 0;
    }
    
    .book-cover-large {
        width: 100px !important;
        height: 140px !important;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .book-header-info {
        min-width: 0;
        overflow: hidden;
    }
    
    .book-header-info h1 {
        font-size: 1.1rem !important;
        margin-bottom: 8px;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .book-meta {
        margin-bottom: 6px;
    }
    
    .book-meta .category-link,
    .book-meta .author-text {
        font-size: 0.8rem;
    }
    
    .book-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .stat-item .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-item .stat-value {
        font-size: 0.9rem;
    }
    
    .book-tags {
        display: none;
    }
    
    .book-description {
        display: none;
    }
    
    /* 隐藏PC端操作按钮 */
    .book-header-info .book-actions {
        display: none !important;
    }
    
    /* 移动端专属元素 - 显示 */
    .mobile-divider {
        display: block !important;
        height: 8px;
        background: var(--bg-primary, #f5f5f5);
        margin: 0;
    }
    
    /* 简介板块 - 移动端显示 */
    .book-intro {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 16px;
        margin-bottom: 0;
    }
    
    .book-intro h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .book-intro p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    /* 操作按钮区 - 移动端显示 */
    .mobile-actions-section {
        display: block !important;
        padding: 16px;
        background: transparent;
        margin-bottom: 0;
    }
    
    /* 操作按钮 - 显示图标+文字，网格布局 */
    .mobile-actions-section .book-actions {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 0;
        width: 100%;
    }
    
    .mobile-actions-section .book-actions .btn {
        flex: none;
        min-width: 0;
        padding: 10px 4px;
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        gap: 4px;
    }
    
    .mobile-actions-section .book-actions .btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .mobile-actions-section .book-actions .btn-read {
        grid-column: span 2;
        flex-direction: row;
        font-size: 0.9rem;
        padding: 12px 16px;
        background: linear-gradient(135deg, #9b7ed9, #b088f9);
    }
    
    .mobile-actions-section .book-actions .btn-shelf,
    .mobile-actions-section .book-actions .btn-download,
    .mobile-actions-section .book-actions .btn-recommend,
    .mobile-actions-section .book-actions .btn-share {
        background: var(--bg-card, #fff);
        border: 1px solid var(--border-color, #eee);
        color: var(--text-secondary);
    }
    
    /* 分卷系列 - 横向滑动 */
    .series-section {
        padding: 16px;
        margin-bottom: 0;
    }
    
    .series-header h2 {
        font-size: 1rem;
    }
    
    .series-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .series-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .series-books {
        display: flex;
        gap: 12px;
        padding-bottom: 8px;
    }
    
    /* 章节列表 - 去边框 */
    .chapter-section {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 16px;
        margin-bottom: 0;
    }
    
    .chapter-header h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .chapter-list {
        grid-template-columns: 1fr !important;
        gap: 6px;
        max-height: 300px;
    }
    
    .chapter-item {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 精彩推荐 - 移动端显示 */
    .mobile-recommend-section {
        display: block !important;
        padding: 16px;
        margin-bottom: 0;
    }
    
    .mobile-recommend-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .mobile-recommend-section .recommend-list {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }
    
    .mobile-recommend-section .recommend-list::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-recommend-section .recommend-item {
        min-width: 140px;
        max-width: 140px;
        flex-direction: column;
        padding: 12px;
        background: var(--bg-card, #fff);
        border-radius: 12px;
        border: 1px solid var(--border-color, #eee);
    }
    
    .mobile-recommend-section .recommend-cover {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .mobile-recommend-section .recommend-info {
        width: 100%;
    }
    
    .mobile-recommend-section .recommend-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-recommend-section .recommend-author {
        font-size: 0.75rem;
    }
    
    .mobile-recommend-section .recommend-meta {
        display: none;
    }
    
    /* 评论区 - 去边框 */
    .comment-section {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 16px;
        margin-top: 0;
    }
    
    .comment-header h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .comment-form {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 16px;
    }
    
    .comment-form textarea {
        height: 60px;
        font-size: 0.9rem;
    }
    
    .comment-form .btn {
        width: 100%;
    }
    
    /* 隐藏作者卡片 */
    .author-card {
        display: none !important;
    }
    
    /* 隐藏豆瓣评分 */
    .rating-card {
        display: none !important;
    }
    
    /* 隐藏点击榜 */
    .sidebar-section:not(.mobile-recommend-section) {
        display: none;
    }
    
    /* 侧边栏整体 - 移动端显示在主内容下方 */
    .book-detail-sidebar {
        display: block;
        width: 100%;
        padding: 0;
        margin-top: 0;
    }
    
    .book-detail-sidebar .sidebar-section {
        background: transparent;
        border: none;
        box-shadow: none;
    }
}

/* 精彩推荐样式 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 移动端专属元素 - PC端隐藏 */
.mobile-divider,
.mobile-actions-section,
.mobile-recommend-section {
    display: none;
}

/* 图书简介 - PC端显示在book-header内，不需要独立区块 */
.book-intro {
    display: none;
}

.recommend-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recommend-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.recommend-cover {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.recommend-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.recommend-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.recommend-meta svg {
    width: 12px;
    height: 12px;
}

.recommend-views {
    display: flex;
    align-items: center;
    gap: 3px;
}
