* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 移除所有下划线 */
a {
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   布局容器
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* ==========================================================================
   头部导航
   ========================================================================== */



/* ==========================================================================
   热门搜索
   ========================================================================== */

.hot-keywords {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.keywords-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    padding: 6px 12px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
    font-weight: 500;
}

.keyword-tag.hot-1 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.keyword-tag.hot-2 {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
    border: none;
    transform: scale(1.02);
}

.keyword-tag.hot-3 {
    background: linear-gradient(45deg, #54a0ff, #5f27cd);
    color: white;
    border: none;
}

.keyword-tag:hover {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* ==========================================================================
   分类导航
   ========================================================================== */

.category-nav {
    margin-bottom: 25px;
    padding: 20px 0;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.cat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #666;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
}

.cat-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
}

.cat-item:hover {
    background: #fff;
    color: #4A90E2;
    border-color: #4A90E2;
}

/* ==========================================================================
   主布局
   ========================================================================== */

.main-layout {
    display: block;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

.main-content {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.sidebar {
    display: none;
}

/* ==========================================================================
   区块样式
   ========================================================================== */

.section-box {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 30px;
    overflow: hidden;
    border: none !important;
    position: relative;
}

.section-box::before {
    display: none !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: none !important;
    background: transparent !important;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.more-link {
    color: #4A90E2;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
}

.more-link:hover {
    color: #357ABD;
    background: #fff;
    border-color: #4A90E2;
}

/* ==========================================================================
   热门推荐 - 网格布局
   ========================================================================== */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 热门推荐网格 - 更多列 */
.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

/* 分类网格 */
.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.book-card {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
}

.book-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e6e6e6;
}



.book-cover {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.default-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.book-card:hover .book-cover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.book-card:hover .book-cover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.book-card:hover {
    transform: translateY(-3px);
}

/* 移除复杂的按钮样式，保持简洁 */

.book-details {
    margin-top: 10px;
}

.book-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.book-name span {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.book-card:hover .book-name span {
    color: #4A90E2;
}

.book-author {
    font-size: 12px;
    color: #999;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}

/* 作者文字部分省略号处理 */
.book-author svg + * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.book-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.book-tags .tag-item {
    background: #f8f9fa;
    color: #666;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #e6e6e6;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   最新更新 - 列表布局
   ========================================================================== */

.update-list {
    padding: 0;
}

.update-item {
    display: flex;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.update-item:last-child {
    border-bottom: none;
}

.update-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

.update-item:hover::before {
    width: 4px;
}

.update-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.update-item:hover .update-cover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.update-cover {
    position: relative;
    width: 60px;
    height: 80px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.8);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border-radius: 6px;
    display: block;
}

.update-cover .default-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    border-radius: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.update-item:hover .update-cover img {
    transform: scale(1.05);
}

.update-info {
    flex: 1;
    min-width: 0;
}

.update-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.update-title span {
    color: #333;
    transition: all 0.3s ease;
}

.update-item:hover .update-title span {
    color: #667eea;
}

.update-author {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.update-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.update-meta span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.category {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    border: 1px solid #2196f3;
}

.words {
    background: linear-gradient(45deg, #fff3e0, #ffcc02);
    color: #f57c00;
    border: 1px solid #ff9800;
}

.time {
    /* background: linear-gradient(45deg, #f3e5f5, #ce93d8); */
    color: #7b1fa2;
    /* border: 1px solid #9c27b0; */
}

/* ==========================================================================
   侧边栏
   ========================================================================== */

.sidebar-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
}

.sidebar-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.sidebar-header {
    padding: 15px 20px;
    background: rgba(248, 249, 252, 0.8);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 编辑推荐 */
.recommend-list {
    padding: 0;
}

.recommend-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.recommend-item:last-child {
    border-bottom: none;
}

.recommend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

.recommend-item:hover::before {
    width: 3px;
}

.recommend-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(3px);
}

.rank-num {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rank-top {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.rank-normal {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #666;
}

.recommend-item:hover .rank-num {
    transform: scale(1.1);
}

.recommend-info {
    flex: 1;
    min-width: 0;
}

.recommend-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.recommend-title a {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: all 0.3s ease;
}

.recommend-title a:hover {
    color: #667eea;
}

.recommend-author {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: #ecf0f1;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer a {
    color: #667eea;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
}

/* ==========================================================================
   新增页面样式
   ========================================================================== */

/* 书籍列表样式 */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.book-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: all 0.3s ease;
    align-items: flex-start;
    gap: 20px;
}

.book-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.book-item .book-cover {
    flex-shrink: 0;
    width: 80px;
}

.book-item .book-cover img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.book-item .book-info {
    flex: 1;
    min-width: 0;
}

.book-item .book-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.book-item .book-title a {
    color: #333;
    text-decoration: none;
}

.book-item .book-title a:hover {
    color: #007bff;
}

.book-item .book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.book-item .book-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.book-item .book-update {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.book-item .book-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* 已删除重复的分类筛选样式 - 统一使用.category-filter */

/* 标签云样式 */
.tag-cloud-container {
    margin: 30px 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag-item {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tag-count {
    font-size: 12px;
    opacity: 0.8;
}

/* 标签分类样式 */
.tag-categories {
    margin: 40px 0;
}

.char-group {
    margin-bottom: 30px;
}

.char-header {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.char-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.char-tag {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    color: #495057;
    font-size: 13px;
    transition: all 0.3s ease;
}

.char-tag:hover {
    background: #e9ecef;
    color: #333;
}

/* 阅读记录样式 */
.tabs-nav {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    border-bottom: 2px solid #f1f3f4;
}

.tab-item {
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-item:hover,
.tab-item.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.history-list {
    margin: 30px 0;
}

.history-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.history-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.history-item .book-cover {
    width: 60px;
    flex-shrink: 0;
}

.history-item .book-cover img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border-radius: 6px;
}

.read-progress {
    margin-top: 10px;
    font-size: 14px;
}

.progress-label {
    color: #666;
}

.chapter-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.chapter-link:hover {
    text-decoration: underline;
}

/* 使用说明样式 */
.usage-tips {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.tip-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.usage-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-tips li {
    padding: 8px 0;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 1399px) {
    .sidebar {
        display: none;
    }
    
/* 1399px以下book-grid样式已在八列网格布局中重新定义 */
}

@media (max-width: 768px) {
    * {
        max-width: 100% !important;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    


    .main-layout {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
    }

    .category-nav {
        width: 100%;
        overflow-x: visible;
        margin: 0 -10px;
        padding: 0;
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .category-container {
        flex-wrap: wrap;
        gap: 8px;
        overflow-x: visible;
        padding: 15px 10px;
        justify-content: flex-start;
    }
    
    .category-container::-webkit-scrollbar {
        display: none;
    }
    
    .cat-item {
        flex-shrink: 0;
        padding: 10px 15px;
        white-space: nowrap;
    }

/* 768px以下book-grid样式已在八列网格布局中重新定义 */
    
    /* 热门推荐移动端优化 - 每行3个 */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .book-cover {
        height: 180px;
        width: 100%;
        max-width: 100%;
    }
    
    .update-item {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .update-cover {
        width: 60px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .hot-keywords {
        padding: 12px 10px;
        margin: 0 -10px 15px -10px;
        width: calc(100% + 20px);
        box-sizing: border-box;
        overflow-x: visible;
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
    }
    
    .keywords-list {
        gap: 6px;
        overflow-x: visible;
        padding: 0 10px;
        flex-wrap: wrap;
    }
    
    .keywords-list::-webkit-scrollbar {
        display: none;
    }
    
    .keyword-tag {
        padding: 4px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }
    
    .section-box {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    

    
/* 480px以下book-grid样式已在八列网格布局中重新定义 */
    
    /* 热门推荐480px以下移动端优化 - 每行3个 */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .featured-grid .book-card {
        padding: 8px;
    }
    
    .featured-grid .book-name {
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    
    .featured-grid .book-name a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    .featured-grid .book-author {
        font-size: 10px;
        margin-bottom: 4px;
        gap: 2px;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .featured-grid .book-author svg + * {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
    }
    
    .featured-grid .author-icon {
        width: 10px;
        height: 10px;
        min-width: 10px;
    }
    
    .featured-grid .read-btn {
        padding: 4px 8px;
        font-size: 10px;
        gap: 2px;
        display: flex;
        align-items: center;
    }
    
    .featured-grid .read-icon {
        width: 12px;
        height: 12px;
    }
    
    .featured-grid .book-stats {
        padding: 4px 6px;
    }
    
    .featured-grid .stat-item {
        font-size: 9px;
        gap: 2px;
    }
    
    .featured-grid .stat-item svg {
        width: 10px;
        height: 10px;
        min-width: 10px;
    }
    
    .featured-grid .book-tags {
        margin-top: 4px;
        gap: 3px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .featured-grid .tag-item {
        font-size: 8px;
        padding: 1px 4px;
        border-radius: 2px;
        white-space: nowrap;
        flex-shrink: 0;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .section-header,
    .sidebar-header {
        padding: 12px 15px;
    }
    
    .recommend-item {
        padding: 8px 12px;
    }
    
    .keywords-list {
        gap: 4px;
        padding: 0 8px;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .keyword-tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .category-nav {
        margin: 0 -8px 15px -8px;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .category-container {
        padding: 15px 8px;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .cat-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .book-cover {
        height: 150px;
    }
    
    /* 热门推荐卡片在小屏幕上的优化 */
    .featured-grid .book-cover {
        height: 120px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    /* 移动端图片完美适配 - 强制设置 */
    .featured-grid .book-cover img {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 2px !important;
        box-sizing: border-box !important;
        transform: none !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* 禁用hover效果的transform以免影响图片显示 */
    .featured-grid .book-card:hover .book-cover img {
        transform: none !important;
    }
    
    /* 移动端简洁设计，无需overlay */
    
    .default-cover {
        font-size: 1.8rem;
    }
    
    .book-name {
        font-size: 12px;
    }
    
    .update-cover {
        width: 45px;
        height: 60px;
    }
    
    .update-cover .default-cover {
        font-size: 1rem;
    }
    
    .hot-keywords {
        margin: 0 -8px 15px -8px;
        padding: 10px 8px;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
    }
    
    .section-box {
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* ==========================================================================
   大屏幕优化
   ========================================================================== */

/* 超大屏幕优化 - 参考23qb设计 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 30px;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 22px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
        gap: 18px;
    }
}

/* ==========================================================================
   章节列表页面
   ========================================================================== */

.modern-chapter-list-page {
    padding: 20px 0;
}

.modern-book-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-book-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.modern-book-summary h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.modern-book-meta {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.modern-book-meta-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 500;
}

.modern-book-meta-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.modern-book-meta-item a:hover {
    opacity: 0.8;
}

.modern-book-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.modern-action-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.modern-action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.modern-action-btn.primary {
    background: #ff6b6b;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.modern-action-btn.primary:hover {
    background: #ff5252;
    color: white;
}

.modern-chapters-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    /* overflow: hidden; */
}

.modern-chapters-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modern-chapters-title {
    font-size: 1.8rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-chapters-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
}

.modern-chapters-content {
    padding: 30px;
}

.modern-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2px;
}

.modern-chapter-item {
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-chapter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    z-index: 10;
}

.modern-chapter-link {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    transition: all 0.3s ease;
}

.modern-chapter-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.modern-chapter-link:hover::before {
    width: 4px;
}

.modern-chapter-link:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding-left: 24px;
}

.modern-chapter-number {
    display: inline-block;
    min-width: 60px;
    color: #999;
    font-size: 13px;
    margin-right: 10px;
}

.modern-chapter-link:hover .modern-chapter-number {
    color: #667eea;
}

.modern-chapter-count {
    font-size: 0.8em;
    color: #999;
    margin-left: auto;
}

.modern-empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 响应式设计 */
/* 移动端样式 - 简洁版章节列表 */
@media (max-width: 768px) {
    .modern-chapter-list-page {
        padding: 0;
    }
    
    /* 移动端简化书籍信息 */
    .modern-book-summary {
        background: #f8f9fa;
        padding: 15px 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }
    
    .modern-book-summary::before {
        display: none;
    }
    
    .modern-book-summary h1 {
        font-size: 2rem;
        margin: 0 0 10px 0;
        color: #2c3e50;
        font-weight: 600;
        text-align: center;
    }
    
    .modern-book-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .modern-book-meta-item {
        font-size: 13px;
        color: #666;
        background: white;
        padding: 4px 8px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    .modern-book-meta-item a {
        color: #667eea;
        text-decoration: none;
    }
    
    .modern-book-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
    }
    
    .modern-action-btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px;
        text-decoration: none;
        border: 1px solid #e9ecef;
        background: white;
        color: #666;
        transition: all 0.2s ease;
    }
    
    .modern-action-btn.primary {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }
    
    .modern-action-btn:hover {
        background: #f0f0f0;
        transform: none;
    }
    
    .modern-action-btn.primary:hover {
        background: #5a6fd8;
    }
    
    /* 移动端标题栏 - 通过CSS添加 */
    .modern-chapter-list-page::before {
        content: '';
        display: block;
        height: 44px;
        background: white;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .modern-chapters-container {
        border-radius: 0;
        box-shadow: none;
        background: white;
        margin: 0;
    }
    
    .modern-chapters-header {
        padding: 15px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 44px; /* 位于移动端标题栏下方 */
        z-index: 10;
    }
    
    .modern-chapters-title {
        font-size: 1rem;
        color: #666;
        margin: 0;
        font-weight: 500;
        text-align: center;
    }
    
    /* 隐藏桌面端的图标，移动端不需要 */
    .modern-chapters-title-icon {
        display: none;
    }
    
    .modern-chapters-content {
        padding: 0;
    }
    
    /* 移动端章节列表 - 极简风格 */
    .modern-chapters-grid {
        display: block;
        background: white;
    }
    
    .modern-chapter-item {
        background: none;
        border-radius: 0;
        border-bottom: 1px solid #f5f5f5;
        margin: 0;
        transition: background-color 0.2s ease;
    }
    
    .modern-chapter-item:last-child {
        border-bottom: none;
    }
    
    .modern-chapter-item:active {
        background-color: #f0f0f0;
    }
    
    .modern-chapter-link:active {
        background-color: #e9ecef;
    }
    
    .modern-chapter-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: 16px;
        color: #333;
        background: none;
        border: none;
        border-radius: 0;
        transition: background-color 0.15s ease;
        box-shadow: none;
        text-decoration: none;
        min-height: 48px; /* 确保触摸友好 */
        -webkit-tap-highlight-color: transparent; /* 移除iOS点击高亮 */
    }
    
    .modern-chapter-link::before {
        display: none;
    }
    
    .modern-chapter-link:hover {
        background: none;
        transform: none;
        box-shadow: none;
        color: #333;
    }
    
    .modern-chapter-number {
        font-weight: 400;
        color: #2c3e50;
        min-width: 30px; /* 移动端最小宽度限制 */
        width: 30px; /* 固定宽度 */
        flex-shrink: 0; /* 不允许收缩 */
        text-align: left;
        line-height: 1.4;
        margin-right: 12px; /* 与标题间距 */
    }
    
    /* 右箭头指示器 */
    .modern-chapter-link::after {
        content: "›";
        color: #ccc;
        font-size: 18px;
        font-weight: 300;
        margin-left: 10px;
    }
    
    /* 章节数量信息 */
    .modern-chapter-count {
        font-size: 14px;
        color: #999;
        text-align: center;
        margin-top: 0;
    }
    
    /* 空状态优化 */
    .modern-empty-state {
        padding: 60px 20px;
        text-align: center;
        color: #999;
    }
    
    .modern-empty-state p {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .modern-empty-state small {
        font-size: 14px;
        color: #ccc;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕的优化 */
    .modern-book-summary {
        padding: 12px 16px;
    }
    
    .modern-book-summary h1 {
        font-size: 2rem;
    }
    
    .modern-book-meta-item {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .modern-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .modern-chapters-header {
        padding: 12px 16px;
    }
    
    .modern-chapters-title {
        font-size: 15px;
    }
    
    .modern-chapter-link {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .modern-chapter-number {
        min-width: 25px; /* 超小屏幕进一步减少宽度 */
        width: 25px; /* 固定宽度 */
        margin-right: 10px; /* 减少间距 */
        line-height: 1.3;
    }
    
    .modern-chapter-link::after {
        font-size: 16px;
    }
    
    .modern-chapter-count {
        font-size: 13px;
    }
    
    /* 空状态在小屏幕的调整 */
    .modern-empty-state {
        padding: 40px 16px;
    }
    
    .modern-empty-state p {
        font-size: 15px;
    }
    
    .modern-empty-state small {
        font-size: 13px;
    }
}

/* ==========================================================================
   小说列表页面 - 简化版
   ========================================================================== */

.book-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.book-card-simple {
    background: white;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.book-card-simple:hover::before {
    transform: scaleX(1);
}

.book-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.book-cover-simple {
    margin-bottom: 12px;
}

.book-cover-simple img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.book-card-simple:hover .book-cover-simple img {
    transform: scale(1.05);
}

.book-title-simple {
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-title-simple a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.book-title-simple a:hover {
    color: #667eea;
}

.book-author-simple {
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .book-grid-simple {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }
    
    .book-card-simple {
        padding: 12px;
    }
    
    .book-cover-simple img {
        height: 160px;
    }
    
    .book-title-simple {
        font-size: 13px;
    }
    
    .book-author-simple {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .book-grid-simple {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        padding: 12px 0;
    }
    
    .book-card-simple {
        padding: 10px;
    }
    
    .book-cover-simple img {
        height: 140px;
    }
    
    .book-title-simple {
        font-size: 12px;
    }
}

/* ==========================================================================
   搜索结果页面
   ========================================================================== */

.modern-search-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.modern-search-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
}

.modern-search-keyword {
    color: #667eea;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-search-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.modern-search-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.modern-search-item:hover::before {
    transform: scaleY(1);
}

.modern-search-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.modern-book-cover {
    flex-shrink: 0;
    position: relative;
}

.modern-book-cover img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.modern-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-search-item:hover .modern-book-cover img {
    transform: scale(1.05);
}

.modern-search-item:hover .modern-cover-overlay {
    opacity: 1;
}

.modern-book-info {
    flex: 1;
}

.modern-book-title {
    margin-bottom: 12px;
}

.modern-book-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.modern-book-title a:hover {
    color: #667eea;
}

.modern-book-meta {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.modern-book-meta span {
    background: rgba(102, 126, 234, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.modern-book-meta a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.modern-book-meta a:hover {
    color: #764ba2;
}

.modern-book-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-book-stats {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modern-no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.modern-no-results h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.modern-no-results p {
    color: #999;
    font-size: 1.1rem;
}

.search-suggestions {
    margin-top: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: left;
}

.search-suggestions p {
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.search-suggestions ul {
    list-style: disc inside;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-search-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .modern-book-cover {
        align-self: center;
    }
    
    .modern-book-meta {
        justify-content: center;
    }
    
    .modern-book-stats {
        justify-content: center;
    }
    
    .modern-search-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modern-search-item {
        padding: 15px;
        gap: 15px;
    }
    
    .modern-book-cover img {
        width: 70px;
        height: 95px;
    }
    
    .modern-book-title a {
        font-size: 1.1rem;
    }
    
    .modern-no-results {
        padding: 60px 15px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* ==========================================================================
   工具类
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ==========================================================================
   新增样式 - 参考铅笔小说网设计
   ========================================================================== */

/* 排行标记 */
.rank-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.rank-top {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    animation: glow 2s ease-in-out infinite alternate;
}

.rank-mid {
    background: linear-gradient(45deg, #54a0ff, #5f27cd);
}

.rank-normal {
    background: linear-gradient(45deg, #888, #666);
}

@keyframes glow {
    from { box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3); }
    to { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.6); }
}

/* 更新项目的"新"标记 */
.cover-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
}

.update-badge {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 标题样式优化 */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.title-icon {
    font-size: 24px;
}

.title-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.title-subtitle {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* SVG图标样式 */
.more-arrow, .read-icon, .author-icon, .meta-icon, .btn-icon, .chapter-icon, .title-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.more-link:hover .more-arrow {
    transform: translateX(3px);
}

/* 书籍标签 */
.book-tags, .tag-item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag-item {
    padding: 3px 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.tag-item.primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.tag-item.hot {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    animation: pulse 2s infinite;
}

.tag-item.complete {
    background: #2ed573;
    color: white;
    border: none;
}

.tag-item.ongoing {
    background: #ffa726;
    color: white;
    border: none;
}

/* 书籍统计信息 */
.book-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.book-card:hover .book-stats {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 11px;
}

.stat-item svg {
    opacity: 0.8;
}

/* 最新章节信息 */
.latest-chapter {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-chapter .chapter-icon {
    opacity: 0.6;
}

/* 更新状态标记 */
.status-complete {
    color: #2ed573 !important;
}

.status-ongoing {
    color: #ffa726 !important;
}

/* 侧边栏快速分类 */
.category-quick {
    padding: 15px;
}

.quick-cat {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    color: #666;
    background: rgba(248, 249, 252, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.quick-cat:hover {
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quick-cat:last-child {
    margin-bottom: 0;
}

/* 推荐列表优化 */
.recommend-category {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.recommend-stats {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* ==========================================================================
   书籍详情页专用样式 (避免与其他页面冲突)
   ========================================================================== */

.detail-page-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.detail-page-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px 16px 0 0;
}

.detail-cover-section {
    flex-shrink: 0;
    width: 200px;
}

.detail-cover-container {
    position: relative;
}

.detail-cover-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.cover-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.cover-container:hover .cover-mask {
    opacity: 1;
}

.cover-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.book-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(248, 249, 252, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.book-stats-grid .stat-item {
    text-align: center;
    color: #333;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.book-stats-grid .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info-section {
    flex: 1;
}

.detail-book-title {
    font-size: 36px;
    font-weight: 900;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.detail-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.detail-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.detail-tag-author {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.detail-tag-category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.detail-tag-words {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.detail-tag-status {
    color: white;
    box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
}

.detail-status-complete {
    background: linear-gradient(135deg, #2ed573 0%, #17a2b8 100%);
}

.detail-status-ongoing {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.detail-tag-update {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.3);
}

.detail-tag-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.author-link:hover, .category-link:hover {
    color: #667eea !important;
}

.detail-book-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.detail-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.detail-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.detail-btn-favorite {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.detail-btn-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.detail-btn-outline {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.detail-btn-outline:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.detail-btn-bookmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.detail-btn-bookmark:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #694b99 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.detail-book-intro {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.detail-intro-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
    word-break: break-all;
    overflow-wrap: break-word;
    max-height: none;
    display: block;
}

.detail-chapters-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.detail-chapters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px 16px 0 0;
}

.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.detail-title-icon {
    color: #667eea;
}

.detail-chapter-count {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
}

.detail-more-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail-more-link:hover {
    color: #764ba2;
}

.detail-more-arrow {
    transition: transform 0.3s ease;
}

.detail-more-link:hover .detail-more-arrow {
    transform: translateX(3px);
}

.detail-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-chapter-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 252, 0.8) 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
    position: relative;
}

.detail-chapter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-chapter-item:hover::before {
    opacity: 1;
}

.detail-chapter-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(248, 249, 252, 0.9) 100%);
}

.detail-chapter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.detail-chapter-link:hover {
    color: #667eea;
}

.detail-chapter-info {
    flex: 1;
}

.detail-chapter-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 显示省略号 */
}

.detail-chapter-time {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.detail-chapter-arrow {
    color: #ccc;
    transition: all 0.4s ease;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    padding: 6px;
}

.detail-chapter-link:hover .detail-chapter-arrow {
    color: #667eea;
    transform: translateX(5px);
    background: rgba(102, 126, 234, 0.2);
}

/* 书籍详情页响应式优化 */
@media (max-width: 768px) {
    .detail-page-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .detail-cover-section {
        width: 100%;
        text-align: center;
    }
    
    .detail-cover-image {
        width: 200px;
        height: 280px;
        margin: 0 auto;
    }
    
    .detail-book-title {
        font-size: 32px;
        text-align: center;
    }
    
    .detail-book-tags {
        justify-content: center;
        gap: 8px;
    }
    
    .detail-tag-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .detail-book-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .detail-action-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .detail-chapters-section {
        padding: 20px;
    }
    
    .detail-chapters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .detail-page-layout {
        padding: 15px;
        gap: 15px;
    }
    
    .detail-cover-image {
        width: 160px;
        height: 220px;
    }
    
    .detail-book-title {
        font-size: 26px;
    }
    
    .detail-tag-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .detail-action-btn {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }
    
    .detail-book-actions {
        gap: 8px;
    }
    
    .detail-chapters-section {
        padding: 15px;
    }
}

/* ==========================================================================
   页面加载动画
   ========================================================================== */

.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==========================================================================
   工具提示样式
   ========================================================================== */

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   消息提示样式
   ========================================================================== */

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 99999;  /* 提高z-index确保在最顶层 */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    max-width: 300px;  /* 限制最大宽度 */
    word-wrap: break-word;  /* 确保文字换行 */
}

.message.show {
    opacity: 1;
    transform: translateX(0);
}

.message.hide {
    opacity: 0;
    transform: translateX(100%);
}

.message-success {
    border-left-color: #27ae60;
}

.message-warning {
    border-left-color: #f39c12;
}

.message-error {
    border-left-color: #e74c3c;
}

/* 移动端消息提示优化 */
@media (max-width: 768px) {
    .message {
        top: 60px;  /* 避开移动端导航栏 */
        right: 15px;
        left: 15px;  /* 在移动端占满宽度 */
        max-width: none;
        font-size: 16px;  /* 移动端稍大的字体 */
        padding: 16px 20px;
        text-align: center;  /* 移动端居中显示 */
        transform: translateY(-100%);  /* 从顶部滑入而不是右侧 */
        border-left: none;
        border-top: 4px solid #3498db;
    }
    
    .message.show {
        transform: translateY(0);
    }
    
    .message.hide {
        transform: translateY(-100%);
    }
    
    .message-success {
        border-top-color: #27ae60;
    }
    
    .message-warning {
        border-top-color: #f39c12;
    }
    
    .message-error {
        border-top-color: #e74c3c;
    }
}

/* ==========================================================================
   滚动条样式
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* ==========================================================================
   头部滚动状态
   ========================================================================== */

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

/* ==========================================================================
   图片加载状态
   ========================================================================== */

/* 懒加载图片样式 - 支持 data-original 和 data-src */
img[data-src], img[data-original] {
    opacity: 0.6;
    filter: blur(2px);
    transition: all 0.3s ease;
}

img[data-src].loaded, img[data-original].loaded, img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* 图片加载中状态 */
img.loading {
    opacity: 0.3;
    filter: blur(3px);
}

/* 图片加载错误状态 */
img.error {
    opacity: 0.2;
    filter: grayscale(100%);
}

/* ==========================================================================
   响应式优化补充
   ========================================================================== */



/* 移动端样式优化 */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .category-nav {
        padding: 15px 0;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .category-container {
        gap: 8px;
        padding: 0 10px;
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .cat-item {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .hot-keywords {
        padding: 15px 0;
        margin: 0;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
    }
    
    .keywords-list {
        gap: 8px;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .keyword-tag {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        order: -1;
        margin-bottom: 20px;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    /* 热门推荐767px以下移动端优化 - 每行3个 */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .book-cover {
        height: 180px;
    }
    
    .book-name {
        font-size: 14px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .book-author {
        font-size: 12px;
    }
    
    .book-tags .tag-item {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .update-list {
        gap: 15px;
    }
    
    .update-item {
        padding: 15px;
    }
    
    .update-cover {
        width: 60px;
        height: 75px;
        flex-shrink: 0;
    }
    
    .update-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .update-author {
        font-size: 12px;
    }
    
    .update-desc {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .update-meta {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .update-meta span {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .title-subtitle {
        font-size: 12px;
    }
}

/* ==========================================================================
   加载状态优化
   ========================================================================== */

.book-cover.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 确保所有元素不超出视口 */
img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
}

/* 防止文本溢出 */
h1, h2, h3, h4, h5, h6, p, div, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
} 

/* ==========================================================================
   图片完美适配优化
   ========================================================================== */

/* 书籍封面图片通用适配规则 - 强制确保图片完整显示不被截断 */
.book-cover img, .update-cover img, .history-item .book-cover img,
.featured-grid .book-cover img, .category-grid .book-cover img,
.book-grid .book-cover img {
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* 默认封面使用 cover 模式 */
.book-cover img[src*="nocover"] {
    object-fit: cover !important;
}

/* 为图片容器添加统一的背景 */
.book-cover, .update-cover, .history-item .book-cover,
.featured-grid .book-cover, .category-grid .book-cover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

/* 专门针对移动端的强制修复 */
@media (max-width: 768px) {
    .featured-grid .book-cover img {
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
    }
    
    .book-card:hover .book-cover img {
        transform: none !important;
    }
}

/* ==========================================================================
   终极图片显示修复 - 最高优先级
   ========================================================================== */

/* 确保所有书籍封面图片完整显示，覆盖所有可能的冲突样式 */
html body .container .main-content .section-box .book-grid .book-card .book-cover img,
html body .container .main-content .section-box .featured-grid .book-card .book-cover img,
html body .container .main-content .section-box .category-grid .book-card .book-cover img {
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

/* 移动端额外强化 */
@media (max-width: 768px) {
    html body .container .main-content .section-box .featured-grid .book-card .book-cover img {
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
        scale: none !important;
    }
}

/* ==========================================================================
   列表页面样式
   ========================================================================== */

/* 页面标题 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header .breadcrumb {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.page-header .breadcrumb a {
    color: #4A90E2;
}

.page-header .breadcrumb a:hover {
    color: #357ABD;
}

.page-header .separator {
    margin: 0 8px;
    color: #999;
}

.page-header .current {
    color: #333;
    font-weight: 500;
}

.page-header .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.page-header .title-icon {
    font-size: 28px;
}

.page-header .title-text {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.page-header .title-subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px;
}

/* 分类筛选 */
.category-filter {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.category-filter .filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-filter .filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.category-filter .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter .filter-item {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter .filter-item:hover {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
    transform: translateY(-1px);
}

.category-filter .filter-item.active {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border-color: #4A90E2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 小说列表 */
.book-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.book-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    /* 移除过渡动画 */
    position: relative;
}

/* 移除列表页面书籍卡片悬停效果 */

.book-item .book-cover {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    overflow: hidden;
}

.book-item .cover-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.book-item .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    /* 移除图片过渡动画 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 移除旧的图片悬停缩放效果 */

.book-list .status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.book-list .status-badge.completed {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.book-list .status-badge.ongoing {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.book-item .book-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.book-item .book-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.book-item .book-title a {
    color: #333;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 移除颜色过渡动画 */
}

/* 移除标题链接悬停颜色变化 */

.book-item .book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    align-items: center;
}

.book-item .book-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.book-item .book-meta .icon {
    opacity: 0.7;
    /* 移除透明度过渡动画 */
}

/* 移除元数据图标悬停透明度变化 */

.book-item .book-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.book-item .latest-chapter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4A90E2;
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.book-item .latest-chapter .icon {
    opacity: 0.8;
}

.book-item .latest-chapter a {
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* 移除最新章节链接悬停颜色变化 */

.book-item .chapter-label {
    flex-shrink: 0;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.no-data-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-data h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.no-data p {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 移除返回首页按钮悬停效果 */

/* 分页样式 - 已合并到现代化分页样式中 */

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header .page-title {
        flex-direction: column;
        gap: 8px;
    }
    
    .page-header .title-text {
        font-size: 24px;
    }
    
    .page-header .title-subtitle {
        margin-left: 0;
        font-size: 14px;
    }
    
    .category-filter {
        padding: 15px;
    }
    
    .category-filter .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .category-filter .filter-options {
        gap: 8px;
    }
    
    .category-filter .filter-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .book-item {
        flex-direction: column;
    }
    
    .book-item .book-cover {
        width: 100%;
        height: 200px;
    }
    
    .book-item .book-info {
        padding: 15px;
    }
    
    .book-item .book-title {
        font-size: 16px;
    }
    
    .book-item .book-meta {
        gap: 6px;
        font-size: 10px;
        flex-wrap: wrap;
    }
    
    .book-item .book-meta span {
        padding: 3px 8px !important;
        font-size: 9px !important;
        border-radius: 12px !important;
        letter-spacing: 0.3px !important;
    }
    
    .book-item .book-meta span::before {
        font-size: 10px !important;
        margin-right: 2px !important;
    }
    
    .book-item .book-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .no-data {
        padding: 60px 20px;
    }
    
    .no-data-icon {
        font-size: 48px;
    }
    
    .no-data h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 20px;
    }
    
    .page-header .title-text {
        font-size: 20px;
    }
    
/* 移动端分类筛选已在主样式中定义 */
    
    .book-list {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .book-item .book-cover {
        height: 180px;
    }
    
    .book-item .book-info {
        padding: 12px;
    }
    
    .book-item .book-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .book-item .book-meta {
        margin-bottom: 8px;
    }
    
    .book-item .book-desc {
        margin-bottom: 10px;
    }
    
    .book-item .latest-chapter {
        padding-top: 8px;
        font-size: 12px;
    }
}

/* ==========================================================================
   分类列表页面增强样式 v11
   ========================================================================== */

/* 增强列表卡片样式 */
.book-item {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.book-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 移除悬停效果 */

/* 增强图片容器 */
.book-item .book-cover {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
}

.book-item .book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 移除图片悬停效果 */

.book-item .book-cover img {
    /* 移除过渡动画 */
}

/* 增强书籍信息 */
.book-item .book-title a {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    transition: color 0.3s ease !important;
}

/* 移除标题悬停效果 */

/* 美化元数据标签 */
/* 优化的元数据标签基础样式 */
.book-item .book-meta span {
    padding: 5px 12px !important;
    border-radius: 18px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* 作者标签 - 紫色系 */
.book-item .book-meta span:first-child {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.4) !important;
}

.book-item .book-meta span:first-child::before {
    content: '👤' !important;
    margin-right: 4px !important;
}

/* 分类标签 - 粉红色系 */
.book-item .book-meta span:nth-child(2) {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
    color: white !important;
    box-shadow: 0 3px 12px rgba(236, 72, 153, 0.4) !important;
}

.book-item .book-meta span:nth-child(2)::before {
    content: '📚' !important;
    margin-right: 4px !important;
}

/* 字数标签 - 青色系 */
.book-item .book-meta span:nth-child(3) {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
    box-shadow: 0 3px 12px rgba(6, 182, 212, 0.4) !important;
}

.book-item .book-meta span:nth-child(3)::before {
    content: '📝' !important;
    margin-right: 4px !important;
}

/* 时间标签 - 绿色系 */
.book-item .book-meta span:nth-child(4) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4) !important;
}

.book-item .book-meta span:nth-child(4)::before {
    content: '🕒' !important;
    margin-right: 4px !important;
}

/* 增强按钮容器 */
.book-item .book-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background: linear-gradient(145deg, #f8faff 0%, #f0f4f8 100%) !important;
    border-left: none !important;
    border-left: 3px solid transparent !important;
    padding: 24px 20px !important;
    gap: 12px !important;
    position: relative !important;
    min-width: 140px !important;
}

/* 移除操作按钮悬停效果 */

.book-item .book-actions a,
.book-item .book-actions button {
    display: inline-block !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.book-item .book-actions a::before,
.book-item .book-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

/* 移除按钮所有悬停效果 */

/* 详情按钮 */
.book-item .book-actions a:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

/* 阅读按钮 */
.book-item .book-actions a:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4) !important;
}

/* 收藏按钮 */
.book-item .book-actions button {
    background: #fff !important;
    color: #718096 !important;
    border: 2px solid #e2e8f0 !important;
    font-weight: 600 !important;
}

/* 收藏成功状态 */
.book-item .book-actions button:disabled,
.book-item .book-actions button.bookcase-added {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-color: #28a745 !important;
    cursor: not-allowed !important;
}

/* 增强最新章节链接 */
.book-item .latest-chapter a {
    color: #667eea !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

/* 移除最新章节链接悬停效果 */

/* 现代化分页样式 v24 */
.pagination-wrapper {
    margin: 50px 0 40px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.pagination a,
.pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: #fff;
    color: #475569;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.pagination a span {
    position: relative;
    z-index: 1;
}

.pagination a:hover::before {
    left: 100%;
}

.pagination a:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* 当前页样式 */
.pagination strong {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

/* 首页/末页按钮特殊样式 */
.pagination a:first-child,
.pagination a:last-child {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    font-weight: 600;
    border: 2px solid #e2e8f0;
}

.pagination a:first-child:hover,
.pagination a:last-child:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-color: transparent;
}

/* 省略号样式 */
.pagination span {
    color: #94a3b8;
    font-size: 18px;
    font-weight: bold;
    padding: 0 8px;
}

/* 状态徽章增强 */
.book-list .status-badge {
    border-radius: 16px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10 !important;
}

.book-list .status-badge.completed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4) !important;
}

.book-list .status-badge.ongoing {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4) !important;
}

/* 移动端优化 - 美化按钮样式 */
@media (max-width: 768px) {
    .book-item .book-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 16px 12px !important;
        gap: 8px !important;
        min-width: auto !important;
        background: linear-gradient(135deg, #f8faff 0%, #eef5ff 100%) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(79, 70, 229, 0.1) !important;
        margin: 16px 8px 20px 8px !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .book-item .book-actions a,
    .book-item .book-actions button {
        flex: 0 0 auto !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        text-align: center !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
        border: none !important;
        cursor: pointer !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        min-width: 80px !important;
        position: relative !important;
        overflow: hidden !important;
        letter-spacing: 0.5px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    }
    
    /* 详情按钮 - 蓝色主题 */
    .book-item .book-actions a:first-child {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }
    
    /* 阅读按钮 - 绿色主题 */
    .book-item .book-actions a:nth-child(2) {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
        color: white !important;
        box-shadow: 0 3px 8px rgba(17, 153, 142, 0.3) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }
    
    /* 收藏按钮 - 橙色主题 */
    .book-item .book-actions button,
    .book-item .book-actions a:last-child {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
        color: white !important;
        box-shadow: 0 3px 8px rgba(240, 147, 251, 0.3) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }

/* 移动端分页样式已在现代化分页中定义 */
}

/* 480px以下超小屏幕优化 */
@media (max-width: 480px) {
    .book-item .book-actions {
        padding: 10px 12px !important;
        gap: 6px !important;
        border-radius: 10px !important;
    }
    
    .book-item .book-actions a,
    .book-item .book-actions button {
        padding: 6px 3px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        min-height: 28px !important;
    }
    
/* 超小屏幕分页样式已在现代化分页中定义 */
}

/* 统一的八列网格布局样式 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    padding: 20px 0;
}

.book-card {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.book-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

.book-link img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px 8px 0 0 !important;
    display: block !important;
    min-height: 160px !important;
    max-height: 160px !important;
    flex-shrink: 0 !important;
}

.book-link h3 {
    margin: 8px 6px 4px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.book-link p {
    margin: 0 6px 8px 6px;
    color: #718096;
    font-size: 10px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .book-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .book-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .book-link img {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
    
    .book-link h3 {
        font-size: 11px;
        margin: 6px 4px 3px 4px;
    }
    
    .book-link p {
        font-size: 9px;
        margin: 0 4px 6px 4px;
    }
    
    /* 移动端热门推荐限制显示6本书 */
    .featured-grid .book-card:nth-child(n+7),
    .featured-grid .featured-card:nth-child(n+7) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .book-link img {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }
    
    .book-link h3 {
        font-size: 10px;
        margin: 4px 2px 2px 2px;
    }
    
         .book-link p {
         font-size: 8px;
         margin: 0 2px 4px 2px;
     }
 }
 
 /* 分类卡片样式 v29 */
 .category-cards-grid {
     display: grid;
     grid-template-columns: repeat(5, 1fr);
     gap: 20px;
     padding: 20px 0;
 }
 
 .category-card {
     background: #fff;
     border-radius: 12px;
     box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
     border: 1px solid rgba(0, 0, 0, 0.05);
     overflow: hidden;
     transition: all 0.3s ease;
 }
 
 .category-card:hover {
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
     transform: translateY(-2px);
 }
 
 .category-card-header {
     padding: 16px 16px 12px 16px;
     background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);
     border-bottom: 1px solid rgba(0, 0, 0, 0.05);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 
 .category-title {
     font-size: 16px;
     font-weight: 700;
     color: #1a202c;
     margin: 0;
 }
 
 .category-more {
     font-size: 12px;
     color: #667eea;
     text-decoration: none;
     font-weight: 600;
     transition: color 0.3s ease;
 }
 
 .category-more:hover {
     color: #4f46e5;
 }
 
 .category-book-list {
     padding: 16px 20px 20px 20px;
 }
 
 .category-book-item {
     display: flex !important;
     align-items: center !important;
     gap: 14px !important;
     padding: 10px 12px !important;
     border-radius: 8px !important;
     margin-bottom: 6px !important;
     transition: all 0.3s ease !important;
     min-height: 40px !important;
     box-sizing: border-box !important;
     border: 1px solid transparent !important;
 }
 
 .category-book-item:last-child {
     margin-bottom: 0 !important;
 }
 
 .category-book-item:hover {
     background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%) !important;
     border-color: rgba(102, 126, 234, 0.15) !important;
     transform: translateX(4px) !important;
     box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1) !important;
 }
 
 .book-rank {
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
     width: 24px !important;
     height: 24px !important;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
     color: white !important;
     font-size: 11px !important;
     font-weight: 700 !important;
     border-radius: 50% !important;
     flex-shrink: 0 !important;
     line-height: 1 !important;
     margin: 0 !important;
     padding: 0 !important;
     box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3) !important;
 }
 
 .book-rank.top-3 {
     background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
     box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
 }
 
 .book-title {
     flex: 1 !important;
     color: #334155 !important;
     text-decoration: none !important;
     font-size: 14px !important;
     font-weight: 500 !important;
     line-height: 24px !important;
     overflow: hidden !important;
     text-overflow: ellipsis !important;
     white-space: nowrap !important;
     transition: color 0.3s ease !important;
     display: block !important;
     margin: 0 !important;
     padding: 0 !important;
     height: 24px !important;
 }
 
 .book-title:hover {
     color: #667eea;
 }
 
 /* 暂无数据状态 */
 .category-no-data {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 40px 20px;
     text-align: center;
 }
 
 .no-data-icon {
     font-size: 32px;
     margin-bottom: 8px;
     opacity: 0.6;
 }
 
 .no-data-text {
     color: #94a3b8;
     font-size: 13px;
     margin: 0;
     font-weight: 500;
 }
 
 /* 响应式分类卡片 */
 @media (max-width: 1200px) {
     .category-cards-grid {
         grid-template-columns: repeat(4, 1fr);
         gap: 16px;
     }
 }
 
 @media (max-width: 992px) {
     .category-cards-grid {
         grid-template-columns: repeat(3, 1fr);
         gap: 16px;
     }
 }
 
 @media (max-width: 768px) {
     .category-cards-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 12px;
     }
     
     .category-card-header {
         padding: 12px;
     }
     
     .category-title {
         font-size: 14px;
     }
     
     .category-book-list {
         padding: 8px 12px 12px 12px;
     }
     
     .book-title {
         font-size: 12px;
     }
 }
 
 @media (max-width: 480px) {
     .category-cards-grid {
         grid-template-columns: repeat(1, 1fr);
         gap: 12px;
     }
 }

/* ===== 章节阅读页面样式 v1 ===== */
/* 面包屑导航 */
.chapter-breadcrumb {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #666;
}

.breadcrumb-item {
    color: #888;
    font-weight: 500;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* 章节阅读容器 */
.chapter-reader-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 章节阅读头部 */
.chapter-reader-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.chapter-book-info {
    margin-bottom: 10px;
}

.chapter-book-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.9;
}

.chapter-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 章节导航 */
.chapter-reader-nav {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.chapter-reader-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.chapter-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.chapter-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #495057;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e9ecef;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chapter-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.chapter-nav-btn:hover::before {
    left: 100%;
}

.chapter-nav-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.chapter-nav-btn svg {
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.chapter-nav-btn:hover svg {
    transform: scale(1.1);
}

.chapter-nav-disabled {
    background: linear-gradient(135deg, #f1f3f4 0%, #e9ecef 100%) !important;
    color: #9ca3af !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transform: none !important;
}

.chapter-nav-disabled::before {
    display: none !important;
}

.chapter-nav-disabled svg {
    opacity: 0.5;
}

/* 不同按钮的主题色 */
.chapter-nav-btn.nav-index {
    background: linear-gradient(135deg, #e8f4fd 0%, #ffffff 100%);
    color: #0066cc;
    border-color: #cce7ff;
}

.chapter-nav-btn.nav-index:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-color: #0066cc;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.25);
}

.chapter-nav-btn.nav-bookmark {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    color: #856404;
    border-color: #ffeaa7;
}

.chapter-nav-btn.nav-bookmark:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-color: #f39c12;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.25);
}

.chapter-nav-btn.nav-prev {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    color: #4a90e2;
    border-color: #d6ebff;
}

.chapter-nav-btn.nav-prev:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: #4a90e2;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.25);
}

.chapter-nav-btn.nav-next {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    color: #28a745;
    border-color: #d4edda;
}

.chapter-nav-btn.nav-next:hover {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.25);
}

/* 禁用状态主题色继承 */
.chapter-nav-disabled.nav-prev,
.chapter-nav-disabled.nav-next,
.chapter-nav-disabled.nav-index,
.chapter-nav-disabled.nav-bookmark {
    background: linear-gradient(135deg, #f1f3f4 0%, #e9ecef 100%) !important;
    color: #9ca3af !important;
    border-color: #dee2e6 !important;
}

/* 章节内容 */
.chapter-reader-content {
    padding: 40px 50px;
    line-height: 2.2;
    font-size: 16px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', serif;
    min-height: 400px;
}

.chapter-reader-content p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}

/* 悬浮工具栏 */
.chapter-float-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 移动端工具栏遮罩层 */
.chapter-toolbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 999;
}

/* 移动端时工具栏展开才显示遮罩层 */
@media (max-width: 768px) {
    .chapter-toolbar-expanded .chapter-toolbar-overlay {
        display: block;
    }
}

.toolbar-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.toolbar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.toolbar-menu {
    display: none;
    position: absolute;
    right: 60px;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chapter-toolbar-expanded .toolbar-menu {
    display: block;
}

.toolbar-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toolbar-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toolbar-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.toolbar-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.toolbar-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}



/* 夜间模式 */
.chapter-dark-mode .chapter-reader-container {
    background: rgba(45, 55, 72, 0.98);
    color: #e2e8f0;
}

.chapter-dark-mode .chapter-reader-content {
    color: #e2e8f0;
}

.chapter-dark-mode .chapter-reader-nav {
    background: rgba(26, 32, 44, 0.9);
}

.chapter-dark-mode .chapter-breadcrumb {
    background: rgba(45, 55, 72, 0.98);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.chapter-dark-mode .breadcrumb-current {
    color: #e2e8f0;
}

.chapter-dark-mode .toolbar-menu {
    background: rgba(45, 55, 72, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.chapter-dark-mode .toolbar-label {
    color: #e2e8f0;
}



/* 夜间模式下的移动端按钮容器 */
@media (max-width: 768px) {
    .chapter-dark-mode .chapter-reader-nav .chapter-nav-links {
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.8) 100%) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chapter-reader-container {
        border-radius: 10px;
    }
    
    .chapter-reader-header,
    .chapter-reader-nav {
        padding: 15px 20px;
    }
    
    .chapter-reader-nav {
        justify-content: center;
        align-items: center;
    }
    
    .chapter-reader-nav .chapter-nav-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
        padding: 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 252, 0.8) 100%);
        backdrop-filter: blur(8px);
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.5);
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .chapter-reader-nav .chapter-nav-btn {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        box-sizing: border-box;
        border-radius: 16px;
        font-weight: 600;
        border-width: 1px;
    }
    
    .chapter-reader-content {
        padding: 25px 20px;
        font-size: 15px;
        line-height: 2;
    }
    
    .chapter-nav-btn:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    }
    
    .chapter-nav-btn:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }
    
    .chapter-reader-nav .chapter-nav-btn svg {
        flex-shrink: 0;
        width: 14px;
        height: 14px;
    }
    
    .chapter-breadcrumb {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* 移动端工具栏优化 */
    .chapter-float-toolbar {
        right: 10px;
        bottom: 80px;
        top: auto;
        transform: none;
    }
    
    .toolbar-toggle {
        width: 52px;
        height: 52px;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
    
    .toolbar-menu {
        position: fixed;
        right: 15px;
        left: 15px;
        bottom: 150px;
        top: auto;
        transform: none;
        width: auto;
        min-width: auto;
        max-height: 60vh;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(4px);
        border: 2px solid rgba(102, 126, 234, 0.1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .toolbar-item {
        margin-bottom: 20px;
        padding: 15px;
        background: rgba(248, 249, 252, 0.6);
        border-radius: 12px;
        border-bottom: none;
    }
    
    .toolbar-item:last-child {
        margin-bottom: 0;
    }
    
    .toolbar-label {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
        color: #1a202c;
    }
    
    .toolbar-controls {
        gap: 12px;
        justify-content: center;
    }
    
    .toolbar-btn {
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        min-width: 80px;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    }
    
    /* 夜间模式移动端工具栏 */
    .chapter-dark-mode .toolbar-menu {
        background: rgba(45, 55, 72, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .chapter-dark-mode .toolbar-item {
        background: rgba(26, 32, 44, 0.6);
    }
    
    .chapter-dark-mode .toolbar-label {
        color: #e2e8f0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .chapter-reader-content {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .chapter-title {
        font-size: 20px;
    }
    
    .chapter-book-title {
        font-size: 16px;
    }
    
    /* 小屏幕按钮布局优化 - 保持并排 */
    .chapter-reader-nav .chapter-nav-links {
        gap: 2px;
        padding: 4px;
    }
    
    .chapter-reader-nav .chapter-nav-btn {
        min-width: 0;
        max-width: none;
        padding: 8px 10px;
        font-size: 12px;
        min-height: 36px;
        gap: 4px;
        flex: 1;
        text-align: center;
        box-sizing: border-box;
        border-radius: 14px;
        font-weight: 600;
    }
    
    .chapter-reader-nav .chapter-nav-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* 小屏幕工具栏进一步优化 */
    .chapter-float-toolbar {
        right: 8px;
        bottom: 60px;
    }
    
    .toolbar-toggle {
        width: 48px;
        height: 48px;
    }
    
    .toolbar-menu {
        right: 10px;
        left: 10px;
        bottom: 120px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .toolbar-item {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .toolbar-label {
        font-size: 13px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .toolbar-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 70px;
        flex: 1;
    }
    
    .toolbar-controls {
        gap: 8px;
    }
    
    /* 模态框小屏优化 */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
        max-height: 70vh;
    }
    
    
    
    .bookmark-go,
    .bookmark-remove {
        flex: 1;
        text-align: center;
        padding: 8px 16px;
    }

    .bookmark-go,
    .bookmark-remove {
        flex: 1;
        text-align: center;
        padding: 8px 16px;
    }
}
/* 章节阅读页面样式结束 */

/* ==========================================================================
   优化的目录列表功能 - 新增样式
   ========================================================================== */



/* 章节统计信息 */
.chapters-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.stat-icon {
    font-size: 14px;
}

/* 优化后的章节项目 */
.modern-chapter-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    transition: all 0.3s ease;
    gap: 15px;
}

.modern-chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modern-chapter-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap; /* 不换行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 显示省略号 */
}

.modern-chapter-arrow {
    color: #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.modern-chapter-link:hover .modern-chapter-arrow {
    color: #667eea;
    transform: translateX(5px);
}

.modern-chapter-link:hover .modern-chapter-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
}

/* 章节元数据 */
.modern-chapter-meta {
    padding: 0 20px 12px;
    text-align: right;
}

.chapter-date {
    font-size: 12px;
    color: #999;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
}



/* 优化的空状态 */
.modern-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.modern-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.modern-empty-state h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.modern-empty-state p {
    color: #999;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.back-to-detail {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-detail:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}



/* 增强的书籍元数据 */
.modern-book-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.modern-book-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.meta-icon {
    font-size: 14px;
    opacity: 0.9;
}

.modern-book-meta-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.modern-book-meta-item a:hover {
    opacity: 0.8;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .chapters-stats {
        justify-content: center;
    }
    
    .modern-chapters-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modern-book-meta {
        gap: 10px;
    }
    
    .modern-book-meta-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .modern-chapter-link {
        padding: 14px 20px;
        gap: 12px;
    }
    
    .modern-chapter-number {
        min-width: 20px; /* 减少移动端章节序号宽度 */
        height: 22px;
        font-size: 11px;
    }
    
    .modern-chapter-title {
        font-size: 13px;
        flex: 1; /* 占用剩余空间 */
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 隐藏溢出 */
        text-overflow: ellipsis; /* 显示省略号 */
    }
    
    .modern-chapters-grid.list-view .modern-chapter-link {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    
    .modern-book-meta-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .modern-chapter-link {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .modern-chapter-number {
        min-width: 18px; /* 超小屏幕进一步减少章节序号宽度 */
        height: 20px;
        font-size: 10px;
    }
    
    .modern-chapter-title {
        font-size: 12px;
        flex: 1; /* 占用剩余空间 */
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 隐藏溢出 */
        text-overflow: ellipsis; /* 显示省略号 */
    }
    
    .modern-chapter-arrow {
        font-size: 14px;
    }
    
    .chapter-date {
        font-size: 11px;
    }
    
    .modern-empty-state {
        padding: 40px 20px;
    }
}

/* ==========================================================================
   现代化分页导航样式
   ========================================================================== */

/* 分页导航包装器 */
.modern-pagination-wrapper {
    margin-top: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.modern-pagination-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modern-pagination-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 分页按钮样式 */
.modern-pagination-content .index-container-btn {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    justify-content: center;
}

.modern-pagination-content .index-container-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.5s ease;
}

.modern-pagination-content .index-container-btn:hover::before {
    left: 100%;
}

.modern-pagination-content .index-container-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 禁用状态按钮 */
.modern-pagination-content .index-container-btn.disabled-btn {
    color: #bbb;
    cursor: not-allowed;
    border-color: #f0f0f0;
    background: #f8f9fa;
    opacity: 0.6;
}

.modern-pagination-content .index-container-btn.disabled-btn:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #f0f0f0;
    background: #f8f9fa;
    color: #bbb;
}

.modern-pagination-content .index-container-btn.disabled-btn::before {
    display: none;
}

/* 页面选择下拉框 */
.modern-pagination-content #indexselect {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    background: white;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.modern-pagination-content #indexselect:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fff, #f8f9ff);
}

.modern-pagination-content #indexselect:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #fff, #f8f9ff);
    transform: translateY(-1px);
}

/* 添加页面指示器样式 */
.modern-pagination-content .page-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.modern-pagination-content .page-indicator .current-page {
    font-weight: 700;
    color: #4a5ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-pagination-wrapper {
        margin-top: 20px;
        padding: 20px 20px;
        border-radius: 12px;
    }
    
    .modern-pagination-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .modern-pagination-content .index-container-btn {
        padding: 14px 28px;
        width: 100%;
        max-width: 220px;
        justify-content: center;
        font-size: 15px;
    }
    
    .modern-pagination-content #indexselect {
        width: 100%;
        max-width: 220px;
        padding: 14px 20px;
        padding-right: 45px;
        font-size: 15px;
    }
    
    .modern-pagination-content .page-indicator {
        order: -1;
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-pagination-wrapper {
        margin-top: 15px;
        padding: 16px;
        border-radius: 10px;
    }
    
    .modern-pagination-content .index-container-btn {
        padding: 12px 24px;
        font-size: 14px;
        max-width: 200px;
    }
    
    .modern-pagination-content #indexselect {
        padding: 12px 18px;
        padding-right: 40px;
        font-size: 14px;
        max-width: 200px;
    }
    
    .modern-pagination-content .page-indicator {
        max-width: 200px;
        font-size: 12px;
    }
}

/* ==========================================================================
   现代化排行榜页面样式
   ========================================================================== */

/* 排行榜页面容器 */
.modern-rank-page {
    padding: 20px 0;
}

/* 面包屑导航 */
.modern-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-item {
    color: #999;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #5a6fd8;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 页面标题头部 */
.modern-page-header {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.page-header-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.2"/><circle cx="10" cy="90" r="0.5" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.title-icon {
    font-size: 32px;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 排行榜导航 */
.modern-rank-nav {
    margin-bottom: 30px;
}

.rank-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    gap: 8px;
    overflow-x: auto;
}

.rank-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
}

.rank-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.rank-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 16px;
}

.tab-text {
    font-size: 14px;
    display: inline; /* 桌面端显示完整文字 */
}

.tab-text-mobile {
    display: none; /* 桌面端隐藏缩写文字 */
}

/* 原有分类筛选样式已移至左侧栏布局部分 */

/* 排行榜内容 */
.modern-rank-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.rank-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.rank-info .rank-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.rank-info .rank-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.rank-stats .stat-item {
    text-align: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
    min-width: 100px;
}

.rank-stats .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rank-stats .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 排行榜列表 */
.modern-rank-list {
    padding: 0;
}

.rank-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    position: relative;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
    transform: translateX(5px);
}

.rank-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

.rank-item:hover::before {
    width: 4px;
}

/* 排名标识 */
.rank-number {
    position: relative;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.rank-badge.rank-top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-high {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.rank-badge.rank-normal {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
}

.crown-icon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    animation: float 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* 书籍封面 */
.rank-cover {
    position: relative;
    width: 90px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-item:hover .cover-img {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.rank-item:hover .cover-overlay {
    opacity: 1;
}

.read-btn {
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: #667eea;
    border-radius: 15px;
}

.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    color: white;
}

.status-badge.completed {
    background: #28a745;
}

.status-badge.ongoing {
    background: #667eea;
}

.latest-chapter {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-bottom: 8px;
}

.latest-label {
    color: #999;
}

.latest-link {
    color: #667eea;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.latest-link:hover {
    text-decoration: underline;
}

.book-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* 操作按钮 */
.rank-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 80px;
    flex-shrink: 0;
    align-self: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.read-btn {
    background: #667eea;
    color: white;
}

.read-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.bookmark-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.bookmark-btn:hover {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 10px;
}

/* 空状态 */
.modern-empty-state {
    text-align: center;
    padding: 80px 30px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.modern-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.modern-empty-state p {
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.back-home {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-rank-page {
        padding: 15px 0;
    }
    
    .page-header-bg {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .rank-tabs {
        padding: 6px;
        gap: 6px;
    }
    
    .rank-tab {
        padding: 10px 16px;
        min-width: 100px;
    }
    
    .tab-text {
        font-size: 13px;
    }
    
/* 移动端modern-category-filter样式已在主定义中处理 */
    
    .rank-content-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .rank-info .rank-title {
        font-size: 20px;
    }
    
    .rank-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        position: relative;
    }
    
    .rank-number {
        align-self: flex-start;
        width: auto;
    }
    
    .rank-cover {
        width: 80px;
        height: 106px;
        align-self: flex-start;
    }
    
    .rank-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .rank-stats-detail {
        width: 100%;
    }
    
    .stat-secondary {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-secondary .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .rank-latest {
        position: static;
        max-width: none;
        margin-top: 10px;
    }
    
    .rank-actions {
        position: static;
        opacity: 1;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .page-header-bg {
        padding: 25px 15px;
    }
    
    .page-title {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .rank-tabs {
        gap: 8px;
    }
    
    .rank-tab {
        /* width: 100%; */
        min-width: auto;
    }
    
    .rank-item {
        padding: 15px;
    }
    
    .book-title {
        font-size: 18px;
    }
    
    .book-meta {
        gap: 10px;
    }
    
    .rank-stats-detail {
        width: 100%;
    }
    
    .stat-primary {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

/* 移动端专用样式 */
.mobile-device .rank-item:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.mobile-device .rank-item:hover::before {
    width: 0 !important;
}

.mobile-device .filter-btn:hover {
    transform: none !important;
}

.mobile-device .cover-overlay {
    display: none !important;
}

/* 排行榜左右布局 */
.rank-main-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* 左侧分类栏 */
.rank-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 右侧内容区域 */
.rank-content-area {
    flex: 1;
    min-width: 0;
}

/* 排行榜主体 */
.modern-rank-content {
    width: 100%;
}

/* 分类筛选 - 重新设计为垂直布局 */
.modern-category-filter {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4ff;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options {
    display: flex;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.filter-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: #667eea;
    transform: translateX(4px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.category-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.category-name {
    flex: 1;
    text-align: center;
}

/* 排行榜列表样式 */
.modern-rank-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}

/* 排名徽章 */
.rank-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    position: relative;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    margin-bottom: 5px;
}

.rank-badge.rank-top {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-high {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-badge.rank-normal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.crown-icon {
    font-size: 20px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* 书籍封面 */
.rank-cover {
    position: relative;
    width: 80px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rank-cover:hover .cover-overlay {
    opacity: 1;
}

.read-btn {
    font-size: 12px;
    text-align: center;
    display: block;
}

.status-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.status-badge.completed {
    background: #28a745;
    color: white;
}

.status-badge.ongoing {
    background: #ffc107;
    color: #212529;
}

/* 书籍信息 */
.rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-main {
    flex: 1;
}

.book-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.book-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-title a:hover {
    color: #667eea;
}

.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 12px;
}

.book-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 数据统计 */
.rank-stats-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 200px;
}

.stat-primary {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-text {
    font-size: 12px;
    opacity: 0.9;
}

.stat-secondary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.stat-label {
    margin-right: 8px;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* 最新章节 */
.rank-latest {
    width: 200px;
    min-width: 200px;
}

.latest-chapter {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
}

.latest-label {
    color: #666;
    margin-right: 5px;
}

.latest-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.latest-link:hover {
    text-decoration: underline;
}

/* 操作按钮 */
.rank-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 80px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.detail-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.read-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.read-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 11px;
}

/* 右侧统计卡片 */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 20px;
}

.stats-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.stats-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stats-card-subtitle {
    font-size: 12px;
    color: #666;
}

.stats-number {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .rank-main-layout {
        gap: 20px;
    }
    
    .rank-sidebar {
        width: 250px;
    }
    
    .rank-stats-sidebar {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .rank-main-layout {
        flex-direction: row;
        gap: 15px;
    }
    
    .rank-sidebar {
        width: 120px;
        flex-shrink: 0;
    }
    
    .rank-stats-sidebar {
        display: none; /* 移动端隐藏右侧统计栏 */
    }
    
    .rank-content-area {
        flex: 1;
        min-width: 0;
    }
    
/* 768px以下modern-category-filter样式已合并到主定义 */
    
    .filter-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        min-width: auto;
    }
    
    .rank-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .rank-stats-detail {
        min-width: auto;
        justify-content: center;
    }
    
    .rank-latest {
        width: auto;
        min-width: auto;
    }
    
    .rank-actions {
        flex-direction: row;
        min-width: auto;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-rank-page {
        padding: 15px 0;
    }
    
    .modern-breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .page-header-bg {
        padding: 25px 20px;
    }
    
    .page-title {
        font-size: 22px;
        gap: 8px;
    }
    
    .title-icon {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    /* 移动端排行榜导航 - 缩小间距，让所有按钮显示在一行 */
    .rank-tabs {
        padding: 4px;
        gap: 2px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .rank-tab {
        padding: 6px 8px;
        min-width: auto;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        font-size: 11px;
    }
    
    .tab-icon {
        font-size: 12px;
    }
    
    .tab-text {
        display: none; /* 移动端隐藏完整文字 */
    }
    
    .tab-text-mobile {
        display: inline; /* 移动端显示缩写文字 */
        font-size: 10px;
        margin-left: 2px;
    }
    

    
    /* 移动端主布局 - 保持左右布局 */
    .rank-main-layout {
        gap: 15px;
    }
    
    .rank-sidebar {
        width: 120px;
        flex-shrink: 0;
    }
    
    .rank-content-area {
        flex: 1;
        min-width: 0;
    }
    
    /* 移动端分类筛选 - 保持垂直排列，缩小样式 */
    .modern-category-filter {
        padding: 15px 10px;
        border-radius: 12px;
        position: static;
    }
    
    .filter-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f4ff;
    }
    
    .filter-title {
        font-size: 14px;
        gap: 6px;
    }
    
    .category-icon {
        font-size: 14px;
    }
    
    .filter-options-category {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
        transform: none; /* 移动端禁用悬停动画 */
    }
    
    .filter-btn:hover {
        transform: none;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    /* 移动端排行榜内容 */
    .modern-rank-content {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    .modern-rank-list {
        gap: 12px;
        padding: 15px;
    }
    
    /* 移动端排行榜项目 - 保持水平布局但简化内容 */
    .rank-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .rank-item:hover {
        transform: none; /* 移动端禁用悬停动画 */
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .rank-item:hover::before {
        width: 0; /* 移动端禁用左边框动画 */
    }
    
    /* 移动端排名徽章 */
    .rank-number {
        min-width: 40px;
        width: 40px;
    }
    
    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .crown-icon {
        font-size: 14px;
        top: -5px;
        right: -5px;
    }
    
    /* 移动端书籍封面 */
    .rank-cover {
        width: 50px;
        height: 70px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .cover-overlay {
        display: none; /* 移动端隐藏悬停效果 */
    }
    
    .status-badge {
        top: 2px;
        right: 2px;
        padding: 1px 3px;
        font-size: 8px;
        border-radius: 3px;
    }
    
    /* 移动端书籍信息 - 简化布局，移除最新章节和操作按钮 */
    .rank-info {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }
    
    .book-main {
        width: 100%;
    }
    
    .book-title {
        font-size: 15px;
        font-weight: 600;
        margin: 0 0 6px 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .book-meta {
        gap: 6px;
        font-size: 10px;
        margin-bottom: 6px;
        flex-wrap: wrap;
    }
    
    .book-meta span {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        padding: 2px 5px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .meta-icon {
        font-size: 9px;
    }
    
    .book-intro {
        font-size: 11px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #666;
    }
    
    /* 移动端隐藏最新章节和操作按钮 */
    .latest-chapter,
    .rank-actions {
        display: none !important;
    }
    
    /* 移动端隐藏复杂的统计信息 */
    .rank-stats-detail,
    .rank-latest {
        display: none;
    }
    
    /* 移动端空状态 */
    .modern-empty-state {
        padding: 60px 20px;
    }
    
    .empty-icon {
        font-size: 48px;
    }
    
    .modern-empty-state h3 {
        font-size: 18px;
    }
    
    .modern-empty-state p {
        font-size: 13px;
    }
    
    .back-home {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modern-rank-page {
        padding: 10px 0;
    }
    
    .page-header-bg {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
    }
    
    .title-icon {
        font-size: 20px;
    }
    
    .page-subtitle {
        font-size: 12px;
    }
    
    /* 480px以下排行榜导航保持水平布局但进一步缩小 */
    .rank-tabs {
        gap: 1px;
        padding: 3px;
    }
    
    .rank-tab {
        padding: 5px 6px;
        min-width: auto;
        flex: 1;
        justify-content: center;
        font-size: 10px;
    }
    
    /* 超小屏幕分类筛选优化 */
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 超小屏幕排行榜项目 */
    .rank-item {
        padding: 12px;
        gap: 10px;
    }
    
    .rank-number {
        min-width: 40px;
        width: 40px;
    }
    
    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .rank-cover {
        width: 50px;
        height: 68px;
    }
    
    .book-title {
        font-size: 14px;
    }
    
    .book-meta {
        gap: 4px;
        font-size: 10px;
    }
    
    .book-meta span {
        padding: 1px 4px;
        font-size: 9px;
    }
    
    .book-intro {
        font-size: 11px;
        -webkit-line-clamp: 1; /* 超小屏幕只显示一行简介 */
    }
    
    .latest-chapter {
        font-size: 10px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .modern-empty-state {
        padding: 40px 15px;
    }
    
    .empty-icon {
        font-size: 36px;
    }
    
    .modern-empty-state h3 {
        font-size: 16px;
    }
    
    .modern-empty-state p {
        font-size: 12px;
    }
}