/* Aklan 分页样式 - 从 btxia.css 提取并适配 aklan 主题 */

/* 分页容器 */
.pagination {
    margin-top: 10px;
    list-style: none;
    display: grid;
    grid-template-columns: 40px auto 40px;
}

/* 页码容器 */
.pages {
    display: flex;
    overflow-x: auto;
}
.pages::-webkit-scrollbar { display: none; }

/* 分页项 */
.page-item {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    flex: 0 0 auto;
    text-align: center;
    margin: 0 4px;
    border-radius: 50px;
    background: #bae6fd;
    padding: 0 6px;
}
.page-item:hover { background-color: #60a5fa; }
.page-item:hover > .page-link { color: #fff; }

/* 分页链接 */
.page-link {
    color: #007bff;
    text-decoration: none;
    display: inline-block;
}

/* 当前激活页 */
.page-item .active { background: #a78bfa; }
.page-item .active .page-link { color: #fff; }

/* 禁用状态 */
.disabled .page-link { color: #ccc; pointer-events: none; }

/* Aklan 特定样式 - 适配 aklan_flex 布局 */
.aklan-pagination .pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aklan-pagination .pages {
    display: flex;
    overflow-x: auto;
    justify-content: center;
    padding: 8px 0;
}

.aklan-pagination .page-item {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 18px;
    background: #e2e8f0;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.aklan-pagination .page-item:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.aklan-pagination .page-link {
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
}

.aklan-pagination .page-item:hover .page-link {
    color: #fff;
}

.aklan-pagination .page-item.active {
    background: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.aklan-pagination .page-item.active .page-link {
    color: #fff;
    font-weight: 600;
}

.aklan-pagination .page-item.disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.aklan-pagination .page-item.disabled .page-link {
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aklan-pagination .pagination {
        grid-template-columns: 30px auto 30px;
    }
    
    .aklan-pagination .page-item {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }
    
    .aklan-pagination .pages {
        padding: 4px 0;
    }
}

@media (max-width: 480px) {
    .aklan-pagination .pagination {
        grid-template-columns: 28px auto 28px;
    }
    
    .aklan-pagination .page-item {
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
        margin: 0 1px;
    }
}
