/* 热门书籍页面特定样式 */
.hot-tags {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.tags-label {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.filter-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
}

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

.filter-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-filter {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.clear-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sort-label {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.stats-section {
    margin-bottom: 40px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.weekly-section {
    margin: 50px 0;
}

.weekly-ranking {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    background: var(--bg-color);
    transition: all 0.3s;
    cursor: pointer;
}

.ranking-item:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: translateX(5px);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.rank-number.top-rank {
    background: var(--accent-color);
}

.rank-cover {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
}

.rank-author {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.rank-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trend {
    font-size: 0.9rem;
}

.trend.up {
    color: #4CAF50;
}

.trend.down {
    color: #F44336;
}

.trend.same {
    color: #FF9800;
}

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

.rank-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.rank-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* 列表视图样式 - 更新为与main.css一致的样式 */
.book-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.book-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    border-color: var(--primary-color);
}

.list-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.list-cover {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.list-info {
    flex: 1;
}

.list-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.list-author {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.list-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.list-rating .stars {
    color: #ffc107;
    font-size: 1rem;
}

.list-rating .rating-score {
    font-weight: 600;
    color: var(--text-color);
}

.raters-count {
    font-size: 0.85rem;
}

.list-tags {
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-summary {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 100px;
}

.list-action-btn {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.list-action-btn.borrow-btn {
    background: var(--gradient-primary);
    color: white;
}

.list-action-btn:hover {
    transform: translateY(-2px);
}

/* 作者区域样式 */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.author-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    border-color: var(--primary-color);
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.author-info {
    flex: 1;
    margin-bottom: 20px;
}

.author-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.author-books {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.author-count {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.author-btn {
    padding: 10px 20px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.author-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 分页样式 */
.pagination-section {
    margin: 40px 0;
    text-align: center;
}

.page-info {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.page-dots {
    padding: 0 10px;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .book-list-item {
        flex-wrap: wrap;
    }
    
    .list-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .hot-tags {
        padding: 15px;
    }
    
    .tags-container {
        justify-content: center;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .sort-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-item {
        padding: 12px;
    }
    
    .rank-info .rank-title {
        font-size: 1rem;
    }
    
    .book-list-item {
        padding: 15px;
    }
    
    .list-cover {
        width: 60px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .tags-container {
        gap: 8px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .book-list-item {
        padding: 15px;
    }
    
    .list-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}