/* 书籍页面专属样式：分类筛选 + 书籍列表 */
/* 书籍页头部：标题 + 分类筛选 */
.books-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
/* 分类筛选样式（与文章标签搜索逻辑一致） */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* 书籍列表样式 */
.books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.book-desc {
    flex: 1;
}

.book-link {
    margin-top: auto;
    align-self: flex-start;
}
.book-author {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
}
.book-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-link {
    font-size: 14px;
    color: #4682B4;
    text-decoration: none;
}
.book-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* 响应式 - 手机端（适配网格布局） */
@media (max-width: 768px) {
    /* 页面特定样式 */
    .books-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .books-list {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
}