/* ===== RS 模板迁移补充样式（BadouCMS） ===== */

/* 首页热门品类：网格布局（与 RS 原模板一致） */
.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}
.category-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border-radius: 0.75rem;
	padding: 0.75rem;
	transition: all 0.25s ease-in-out;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid #f0f0f0;
}
.category-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #e0e0e0;
}
.category-card-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.category-info {
	flex: 1;
	min-width: 0;
}
.category-name {
	font-size: 0.9rem;
	font-weight: 500;
	color: #2c3e4e;
	display: block;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.category-img-wrapper {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	background: #f8f9fa;
	border-radius: 0.5rem;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.category-img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	display: block;
}
@media (max-width: 767.98px) {
	.category-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
	.category-img-wrapper,
	.category-img {
		width: 60px;
		height: 60px;
	}
	.category-name {
		font-size: 0.8rem;
		white-space: normal;
		word-break: break-word;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.category-card {
		padding: 0.5rem;
	}
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.category-img-wrapper,
	.category-img {
		width: 70px;
		height: 70px;
	}
	.category-name {
		font-size: 0.85rem;
	}
}

/* 分页：配合 BadouCMS 的分页结构，还原 RS 的青绿色当前页 */
.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.pagination .page-item.page-link,
.pagination .page-link {
	margin-left: -1px;
}
/* BadouCMS 的数字页码是 li.page-num > a.page-link，需要清掉 li 自身的边框，避免双框 */
.pagination > li.page-num {
	padding: 0;
	margin: 0 0 0 -1px;
	border: 0;
	background: transparent;
	color: inherit;
	line-height: normal;
}
.pagination > li.page-num > .page-link {
	margin-left: 0;
}
.pagination .page-item.active .page-link,
.pagination .page-item.active > .page-link {
	color: #fff;
	background-color: #17a2b8;
	border-color: #17a2b8;
}
.pagination .page-item.disabled .page-link {
	color: #17a2b8;
	background-color: #fff;
	border-color: #dee2e6;
}

/* 留言/评论小图标 */
.media img.mr-3 {
	width: 25px;
	height: 25px;
	object-fit: cover;
}
.codeimg {
	cursor: pointer;
}
