/*!
 * QZC Pagination - 数字页码导航
 * 白底圆角按钮 + 蓝色当前页，浅灰底容器；无 JS、无图片、无外部字体。
 * 颜色由 wp_add_inline_style() 注入 --qzc-accent，这里给的是回退值。
 */

:root {
	--qzc-accent: #1e73be;
}

/* ---------- 列表页数字页码 ---------- */

.qzc-pagination-nav {
	clear: both;
	margin: 28px 0 12px;
	padding: 18px 12px;
	background: #f7f9fc;
	border: 1px solid #eef2f8;
	border-radius: 12px;
	text-align: center;
}

.qzc-pagination-links {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 8px;
	line-height: 1;
}

.qzc-pagination-links .page-numbers {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 13px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 7px;
	box-shadow: 0 1px 2px rgba(27, 50, 90, 0.05);
	color: #4a5568;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	-webkit-transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
	transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.qzc-pagination-links a.page-numbers:hover,
.qzc-pagination-links a.page-numbers:focus {
	color: var(--qzc-accent);
	border-color: var(--qzc-accent);
	box-shadow: 0 2px 8px rgba(30, 115, 190, 0.12);
	text-decoration: none;
}

.qzc-pagination-links .page-numbers.current,
.qzc-pagination-links .page-numbers.current:hover {
	background: var(--qzc-accent);
	border-color: var(--qzc-accent);
	color: #fff;
	box-shadow: 0 3px 8px rgba(30, 115, 190, 0.28);
	font-weight: 600;
	cursor: default;
}

.qzc-pagination-links .page-numbers.dots {
	min-width: 24px;
	padding: 0 2px;
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: #9aa5b5;
	cursor: default;
}

.qzc-pagination-links .page-numbers.prev,
.qzc-pagination-links .page-numbers.next {
	padding: 0 16px;
	font-weight: 600;
}

.qzc-pagination-links .page-numbers.disabled {
	background: #f2f5fa;
	border-color: #eef2f8;
	box-shadow: none;
	color: #b9c2cf;
	cursor: default;
}

.qzc-pagination-stats {
	margin: 12px 0 0;
	color: #8a94a6;
	font-size: 12px;
}

.qzc-pagination-hint {
	margin: 0 0 14px;
	color: #8a94a6;
	font-size: 13px;
	text-align: right;
}

/* ---------- 文章内分页 <!--nextpage--> ---------- */

.qzc-post-pages {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 8px;
	clear: both;
	margin: 26px 0 18px;
	padding: 14px 12px;
	background: #f7f9fc;
	border: 1px solid #eef2f8;
	border-radius: 12px;
}

.qzc-post-pages-label {
	margin-right: 4px;
	color: #8a94a6;
	font-size: 13px;
}

.qzc-post-pages a.post-page-numbers,
.qzc-post-pages span.post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 7px;
	box-shadow: 0 1px 2px rgba(27, 50, 90, 0.05);
	color: #4a5568;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
}

.qzc-post-pages a.post-page-numbers:hover {
	color: var(--qzc-accent);
	border-color: var(--qzc-accent);
	text-decoration: none;
}

.qzc-post-pages span.post-page-numbers.current {
	background: var(--qzc-accent);
	border-color: var(--qzc-accent);
	color: #fff;
	font-weight: 600;
}

/* ---------- 评论翻页 ---------- */

[id^="comment-nav"] .nav-previous a,
[id^="comment-nav"] .nav-next a {
	display: inline-block;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 7px;
	color: #4a5568;
	font-size: 13px;
	text-decoration: none;
}

[id^="comment-nav"] .nav-previous a:hover,
[id^="comment-nav"] .nav-next a:hover {
	color: var(--qzc-accent);
	border-color: var(--qzc-accent);
	text-decoration: none;
}

/* ---------- 小屏 ---------- */

@media (max-width: 600px) {
	.qzc-pagination-nav {
		margin: 22px 0 8px;
		padding: 14px 8px;
	}

	.qzc-pagination-links {
		gap: 6px;
	}

	.qzc-pagination-links .page-numbers {
		min-width: 34px;
		height: 34px;
		padding: 0 9px;
		font-size: 13px;
	}

	.qzc-pagination-links .page-numbers.prev,
	.qzc-pagination-links .page-numbers.next {
		padding: 0 10px;
	}

	.qzc-pagination-links .page-numbers.dots {
		min-width: 18px;
	}
}
