/* 基础复用样式 */
.text-light-opacity-80 {
    color: rgba(255,255,255,0.8) !important;
}
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.sidebar-card li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* 分类筛选栏 */
.category-filter-bar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
/* 类型切换 */
.type-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.type-tab.active {
    background-color:#0d6efd;
    color: #fff !important;
}
.type-tab:hover:not(.active) {
    background-color: #f1f1f1;
}
/* 分类树样式 */
.category-tree {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.category-level1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}
.category-level2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.category-item {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.category-item.active {
    background-color: #0d6efd;
    color: #fff;
}
.category-item:hover:not(.active) {
    background-color: #f1f1f1;
}
/* 筛选条件栏 */
.filter-condition-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}
.filter-group {
    display: flex;
    align-items: center;
}
.filter-label {
    font-weight: 500;
    color: #333;
    margin-right: 0.8rem;
    min-width: 60px;
}
.filter-option {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.8rem;
    transition: all 0.2s;
}
.filter-option.active {
    background-color: #0d6efd;
    color: #fff;
}
.filter-option:hover:not(.active) {
    background-color: #f1f1f1;
}
/* 作品卡片列表 */
.work-card-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.work-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.work-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    background: #fff;
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.work-card-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.work-card-body {
    padding: 0.8rem;
}
.work-card-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.work-card-title:hover {
    color:#0d6efd;
}
.work-card-author {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.work-card-status {
    font-size: 0.75rem;
    color: #fff;
    background-color: #0d6efd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.4rem;
}
.work-card-chapter {
    font-size: 0.8rem;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.page-link {
    color: #333;
}
.page-link:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}
/* 空数据样式 */
.empty-data {
    text-align: center;
    padding: 5rem 0;
    color: #999;
}
.empty-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #eee;
}