/**
 * 分类资产分页组件样式
 * 符合代码规范：<400行
 * 使用独立前缀 folder-view-category- 保证面板独立性
 */

.folder-view-category-pagination {
    padding: 10px 20px;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    flex-shrink: 0;
    z-index: 10;
}

.folder-view-category-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* 每页数量选择 */
.folder-view-category-pagination-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-view-category-page-size-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.folder-view-category-page-size-select {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.folder-view-category-page-size-select:hover {
    border-color: var(--border-accent);
}

.folder-view-category-page-size-select:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 分页信息 */
.folder-view-category-pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.folder-view-category-pagination-separator {
    color: var(--border-primary);
}

/* 分页导航 */
.folder-view-category-pagination-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.folder-view-category-pagination-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-view-category-pagination-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    color: var(--text-accent);
}

.folder-view-category-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.folder-view-category-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.folder-view-category-pagination-page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-view-category-pagination-page-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    color: var(--text-accent);
}

.folder-view-category-pagination-page-btn.active {
    background: var(--gradient-primary);
    border-color: var(--border-accent);
    color: var(--text-primary);
    font-weight: 500;
}

.folder-view-category-pagination-page-btn.ellipsis {
    cursor: default;
    border: none;
    background: transparent;
}

.folder-view-category-pagination-page-btn.ellipsis:hover {
    background: transparent;
    border: none;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .folder-view-category-pagination-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .folder-view-category-pagination-page-size,
    .folder-view-category-pagination-info,
    .folder-view-category-pagination-nav {
        justify-content: center;
    }

    .folder-view-category-pagination-pages {
        flex-wrap: wrap;
    }
}

