/**
 * Qing 产品网格（分页）样式。
 *
 * 结构：.qing-pg
 *   > .qing-pg-grid（栅格）
 *       > .qing-pg-card（卡片）
 *           > a.qing-pg-media > img（悬停放大）
 *           > .qing-pg-body（标题 / 描述 / 按钮）
 *               > a.qing-pg-btn（正常描边、卡片悬停实心） > .qing-pg-btn__text + .qing-pg-btn__ico
 *   > nav.qing-pg-pager（数字分页：上一页圆 + 页码 + 下一页箭头）
 *
 * 数值/配色由控件覆盖，此处提供默认表现与两态过渡。
 */

.qing-pg {
	width: 100%;
	box-sizing: border-box;
}

.qing-pg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

/* -------- 卡片 -------- */
.qing-pg-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(17, 34, 64, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.qing-pg-card:hover {
	box-shadow: 0 16px 40px rgba(17, 34, 64, 0.14);
}

/* 图片区：固定比例，图片居中；悬停放大。 */
.qing-pg-media {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 92%;
	background-color: #ffffff;
	overflow: hidden;
}

.qing-pg-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
	box-sizing: border-box;
	transform: scale(1);
	transition: transform 0.45s ease;
	will-change: transform;
}

.qing-pg-card:hover .qing-pg-media img {
	transform: scale(1.06);
}

/* 文字区。 */
.qing-pg-body {
	display: flex;
	flex-direction: column;
	padding: 20px 22px 24px;
}

.qing-pg-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.qing-pg-title a {
	color: #1a2233;
	text-decoration: none;
	transition: color 0.25s ease;
}

.qing-pg-card:hover .qing-pg-title a {
	color: #1e50c8;
}

.qing-pg-desc {
	margin: 0 0 18px;
	color: #8a94a3;
	font-size: 14px;
	line-height: 1.7;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* -------- 详情按钮：正常描边 / 卡片悬停实心 -------- */
.qing-pg-btn {
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 11px 20px;
	border: 1px solid #1e50c8;
	border-radius: 30px;
	color: #1e50c8;
	background-color: transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.qing-pg-card:hover .qing-pg-btn {
	background-color: #1e50c8;
	color: #ffffff;
	border-color: #1e50c8;
}

/* 圆形箭头图标：背景固定不随悬停变化，仅箭头（图标）颜色在卡片悬停时改变。 */
.qing-pg-btn__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #1e50c8;
	color: #ffffff;
	flex: 0 0 auto;
	transition: color 0.3s ease;
}

/* 卡片悬停：图标背景保持不变，仅箭头颜色变化。 */
.qing-pg-card:hover .qing-pg-btn__ico {
	color: #ffffff;
}

.qing-pg-btn__ico svg {
	width: 12px;
	height: 12px;
	display: block;
}

.qing-pg-empty {
	color: #8a94a3;
	font-size: 14px;
}

/* -------- 数字分页 -------- */
.qing-pg-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 34px;
}

.qing-pg-pager .qing-pg-pages {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

/* 页码：默认纯数字；当前页蓝色实心圆。 */
.qing-pg-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border-radius: 50%;
	color: #6b7688;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.qing-pg-pager a.page-numbers:hover {
	color: #1e50c8;
}

.qing-pg-pager .page-numbers.current {
	background-color: #1e50c8;
	color: #ffffff;
	font-weight: 700;
}

.qing-pg-pager .page-numbers.dots {
	min-width: auto;
	background: none;
}

/* 上一页 / 下一页：圆形容器承载箭头。 */
.qing-pg-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #8a94a3;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* 上一页默认呈灰色实心圆（对齐设计稿）。 */
.qing-pg-nav.qing-pg-prev {
	background-color: #dcdcdc;
	color: #ffffff;
}

.qing-pg-nav.qing-pg-next {
	background-color: transparent;
}

.qing-pg-nav svg {
	width: 16px;
	height: 16px;
	display: block;
}

.qing-pg-nav.is-disabled {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}

.qing-pg-nav.qing-pg-next:hover {
	color: #1e50c8;
}

/* -------- 响应式 -------- */
@media (max-width: 1024px) {
	.qing-pg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.qing-pg-grid {
		grid-template-columns: 1fr;
	}
}
