/* --- 分页 Pagination --- */
/* 列表页：page_html() 输出 .fenye.text-center > ul.pagination（ThinkPHP Bootstrap 驱动） */
/* 标签页：common/fenye.html 为 #tag-fenye .pagination.pagination-group，不受 .fenye 规则影响 */

.fenye.text-center {
	text-align: center;
}

/* 覆盖 pintuer / basic 的 .pagination（提高优先级） */
.fenye.text-center ul.pagination,
.fenye.text-center .pagination,
.dataTables_paginate .pagination,
.paging_simple_numbers .pagination {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	float: none;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	vertical-align: middle;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.fenye.text-center ul.pagination > li,
.fenye.text-center .pagination > li,
.dataTables_paginate .pagination > li,
.paging_simple_numbers .pagination > li {
	display: inline-flex !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	vertical-align: middle;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	list-style: none !important;
}

.fenye.text-center ul.pagination > li > a,
.fenye.text-center ul.pagination > li > span,
.fenye.text-center .pagination > li > a,
.fenye.text-center .pagination > li > span,
.dataTables_paginate .pagination > li > a,
.dataTables_paginate .pagination > li > span,
.paging_simple_numbers .pagination > li > a,
.paging_simple_numbers .pagination > li > span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 40px;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid #ddd !important;
	border-radius: 0 !important;
	box-shadow: 0 0 10px #eee;
	color: #666 !important;
	font-size: 16px;
	line-height: 1 !important;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fenye.text-center ul.pagination > li > a:hover,
.fenye.text-center .pagination > li > a:hover,
.dataTables_paginate .pagination > li > a:hover,
.paging_simple_numbers .pagination > li > a:hover {
	background: #2448a2 !important;
	color: #fff !important;
	border-color: #2448a2 !important;
}

.fenye.text-center ul.pagination > li.active > a,
.fenye.text-center ul.pagination > li.active > span,
.fenye.text-center .pagination > li.active > a,
.fenye.text-center .pagination > li.active > span,
.dataTables_paginate .pagination > li.active > a,
.dataTables_paginate .pagination > li.active > span,
.paging_simple_numbers .pagination > li.active > a,
.paging_simple_numbers .pagination > li.active > span {
	background: #2448a2 !important;
	color: #fff !important;
	border-color: #2448a2 !important;
	cursor: default;
	pointer-events: none;
}

.fenye.text-center ul.pagination > li.disabled > span,
.fenye.text-center ul.pagination > li.disabled > a,
.fenye.text-center .pagination > li.disabled > span,
.fenye.text-center .pagination > li.disabled > a,
.dataTables_paginate .pagination > li.disabled > span,
.dataTables_paginate .pagination > li.disabled > a,
.paging_simple_numbers .pagination > li.disabled > span,
.paging_simple_numbers .pagination > li.disabled > a {
	color: #bbb !important;
	background: #f5f5f5 !important;
	border-color: #e5e5e5 !important;
	box-shadow: none;
	cursor: not-allowed;
	pointer-events: none;
}

/* 兼容非 ul 结构的旧式分页（仅直接子级 a） */
.fenye > a {
	display: inline-block;
}

.fenye > a {
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 0 10px #eee;
	color: #666;
	line-height: 40px;
	padding: 0 14px;
	margin: 0 4px;
	display: inline-block;
	font-size: 16px;
	min-width: 40px;
	height: 40px;
	text-align: center;
	box-sizing: border-box;
}

.fenye > a:hover {
	background: #2448a2;
	color: #fff;
	border-color: #2448a2;
}

.fenye > a.active {
	background: #2448a2;
	color: #fff;
	border-color: #2448a2;
}

@media only screen and (min-width: 320px) and (max-width: 640px) {
	.fenye.text-center ul.pagination,
	.fenye.text-center .pagination,
	.dataTables_paginate .pagination {
		gap: 4px;
	}

	.fenye.text-center ul.pagination > li > a,
	.fenye.text-center ul.pagination > li > span,
	.fenye.text-center .pagination > li > a,
	.fenye.text-center .pagination > li > span,
	.dataTables_paginate .pagination > li > a,
	.dataTables_paginate .pagination > li > span,
	.paging_simple_numbers .pagination > li > a,
	.paging_simple_numbers .pagination > li > span {
		width: 36px;
		min-width: 36px;
		max-width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.fenye > a {
		padding: 0 8px;
		line-height: 36px;
		min-width: 36px;
		height: 36px;
		margin: 0 2px;
		font-size: 14px;
	}
}