/* 书库页面 - 顶部筛选板块样式 */

/* 主容器 - 改为垂直布局 */
.library-container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* 顶部筛选区域 */
.library-filters-top {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 筛选板块 - 每行一个类别 */
.library-filters-top .filter-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.library-filters-top .filter-section:last-child {
    border-bottom: none;
}

.library-filters-top .filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
    padding-left: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.library-filters-top .filter-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #F57F17;
    border-radius: 2px;
}

/* 标签容器 - 横向排列，占据剩余空间 */
.library-filters-top .reader-tags,
.library-filters-top .category-tags,
.library-filters-top .theme-tags,
.library-filters-top .plot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    align-items: center;
}

/* 标签样式 */
.library-filters-top .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
    min-height: 30px;
}

.library-filters-top .tag:hover {
    background: #fff3e0;
    border-color: #F57F17;
    color: #F57F17;
    transform: translateY(-2px);
}

.library-filters-top .tag.active {
    background: linear-gradient(135deg, #F57F17, #FF9800);
    border-color: #F57F17;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(245, 127, 23, 0.3);
}

/* 内容区域 - 占满整个宽度 */
.library-content {
    width: 100%;
    flex: 1;
}

/* 隐藏旧的侧边栏样式 */
.library-filters {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .library-filters-top .filter-section {
        gap: 15px;
    }
    
    .library-filters-top .filter-section h3 {
        min-width: 70px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .library-filters-top {
        padding: 15px;
        gap: 0;
    }
    
    .library-filters-top .filter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }
    
    .library-filters-top .filter-section h3 {
        min-width: auto;
        font-size: 15px;
    }
    
    .library-container {
        padding: 15px;
    }
    
    .library-filters-top .tag {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 28px;
    }
}

/* 排序选项区域样式微调 */
.library-content .sort-options {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* 小说网格区域 */
.library-content .novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 确保重置按钮样式 */
.reset-all-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-all-btn:hover {
    background: #fff3e0;
    border-color: #F57F17;
    color: #F57F17;
}

.reset-all-btn i {
    font-size: 12px;
}

