/* 分页样式 - 简洁版本 */

/* 分页容器 */
.pagination-container {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

/* 分页信息 */
.pagination-info {
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

/* 分页列表 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
}

/* 分页项目 */
.page-item {
    margin: 0;
    display: inline-block;
}

/* 分页链接 */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* 分页链接悬停效果 */
.page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    text-decoration: none;
}

/* 分页链接焦点效果 */
.page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* 当前页样式 */
.page-item.active .page-link {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

.page-item.active .page-link:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* 禁用状态 */
.page-item.disabled .page-link {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
}

/* 首页末页按钮 */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    min-width: 50px;
    font-weight: 600;
    font-size: 12px;
}

/* 上一页下一页按钮 */
.page-item.prev .page-link,
.page-item.next .page-link {
    min-width: 60px;
    font-weight: 600;
    font-size: 12px;
}

/* 兼容性样式 */
.nextpage {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.nextpage .pagination {
    margin: 0;
}

/* 确保分页在搜索结果页面正确显示 */
.search-results .pagination-container,
.list_area .nextpage {
    margin-top: 0;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container,
    .nextpage {
        padding: 12px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-link {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .pagination-info {
        margin-bottom: 8px;
        font-size: 11px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        min-width: 40px;
        font-size: 11px;
    }
    
    .page-item.prev .page-link,
    .page-item.next .page-link {
        min-width: 45px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .page-link {
        min-width: 26px;
        height: 26px;
        font-size: 11px;
        padding: 3px 5px;
    }
    
    .pagination-container,
    .nextpage {
        padding: 8px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        min-width: 36px;
    }
}
