@charset "UTF-8";

/* Product center (/nr/) — grid cards; overrides legacy demo.css float layout */

.nr-page-head {
	background: linear-gradient(135deg, #f0f4fc 0%, #e8eef8 100%);
	border-bottom: 1px solid #e8ecf4;
	padding: 32px 16px 28px;
}

.nr-page-head__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.nr-page-head h1 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 12px;
	letter-spacing: 0.02em;
}

.nr-page-head p {
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
	color: #5a6578;
	max-width: 720px;
}

.nr-products-wrap {
	max-width: 1200px;
	margin: 32px auto 56px;
	padding: 0 16px;
	box-sizing: border-box;
}

.nr-section-title {
	margin: 0 0 20px;
	padding: 0 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	color: #1a1a2e;
	border-left: 4px solid #165dff;
	line-height: 1.3;
}

.nr-section-title--more {
	margin-top: 48px;
	border-left-color: #7eb8ff;
}

#wrap.nr-products-wrap {
	width: 100%;
	height: auto;
	overflow: visible;
	margin: 32px auto 56px;
}

/* Grid replaces float: left + 23% width from demo.css */
#wrap.nr-products-wrap .nr-products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	overflow: visible;
	max-width: 100%;
}

#wrap.nr-products-wrap .nr-products-grid::after {
	display: none;
}

#wrap.nr-products-wrap .nr-products-grid > li {
	float: none;
	width: auto;
	margin: 0;
	position: relative;
	list-style: none;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: #fff;
	border: 1px solid #e8ecf4;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(22, 93, 255, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#wrap.nr-products-wrap .nr-products-grid > li:hover {
	box-shadow: 0 10px 28px rgba(22, 93, 255, 0.12);
	transform: translateY(-2px);
}

#wrap.nr-products-wrap .nr-products-grid > li .a1 {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
	position: relative;
	background: #fff;
}

#wrap.nr-products-wrap .nr-products-grid > li .a1 img {
	display: block;
	width: 100%;
	height: 168px;
	object-fit: cover;
	object-position: center center;
}

#wrap.nr-products-wrap .nr-products-grid > li .a1 .divA {
	position: static;
	width: 100%;
	height: auto;
	padding: 14px 14px 12px;
	background: #fff;
	box-sizing: border-box;
	flex: 1 1 auto;
}

#wrap.nr-products-wrap .nr-products-grid > li .a1 .divA > .p1 {
	width: 100%;
	height: auto;
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a2e;
	white-space: normal;
}

#wrap.nr-products-wrap .nr-products-grid > li .a1 .divA > .p2 {
	width: 100%;
	height: auto;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #5a6578;
	white-space: normal;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* Hover overlay — CSS only, no slide-in JS */
#wrap.nr-products-wrap .nr-products-grid > li .a2 {
	position: absolute;
	inset: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	box-sizing: border-box;
	text-align: center;
	color: #fff;
	background: rgba(15, 23, 41, 0.82);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	pointer-events: none;
}

#wrap.nr-products-wrap .nr-products-grid > li:hover .a2 {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#wrap.nr-products-wrap .nr-products-grid > li .a2 .p4,
#wrap.nr-products-wrap .nr-products-grid > li .a2 .p5 {
	position: static;
	left: auto;
	top: auto;
	width: 100%;
	margin: 0;
	text-align: center;
	transition: none;
}

#wrap.nr-products-wrap .nr-products-grid > li .a2 .p4 {
	color: #9dd013;
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
}

#wrap.nr-products-wrap .nr-products-grid > li .a2 .p5 {
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 16px;
	max-height: 120px;
	overflow-y: auto;
}

#wrap.nr-products-wrap .nr-products-grid > li .a2 .p6 {
	display: none;
}

#wrap.nr-products-wrap .nr-products-grid > li .a2 .p7 {
	position: static;
	bottom: auto;
	left: auto;
	width: auto;
	min-width: 120px;
	height: auto;
	line-height: 1.4;
	padding: 8px 20px;
	margin: 0;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 20px;
	font-size: 14px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

#wrap.nr-products-wrap .nr-products-grid > li .a2 .p7:hover {
	border-color: #9dd013;
	color: #9dd013;
}

.nr-product-card--featured .a1::before {
	content: "推荐";
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: #165dff;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
}

@media (max-width: 1100px) {
	#wrap.nr-products-wrap .nr-products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 768px) {
	.nr-page-head {
		padding: 24px 16px 20px;
	}

	.nr-page-head h1 {
		font-size: 24px;
	}

	.nr-section-title {
		font-size: 18px;
	}

	#wrap.nr-products-wrap .nr-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	#wrap.nr-products-wrap .nr-products-grid > li .a1 img {
		height: 140px;
	}
}

@media (max-width: 480px) {
	#wrap.nr-products-wrap .nr-products-grid {
		grid-template-columns: 1fr;
	}

	#wrap.nr-products-wrap .nr-products-grid > li .a2 {
		display: none;
	}

	#wrap.nr-products-wrap .nr-products-grid > li .a1 .divA > .p2 {
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}
}

#wrap.nr-products-wrap .nr-products-grid > li .a1 img[src$=".svg"] {
	object-fit: contain;
	background: #f0f4fc;
}
