/* 产品页面样式 */

/* 基础容器 */
.page-wrapper {
	width: 100%;
	margin: 0 auto;
	padding: 0;
	position: relative;
	max-width: 1920px;
}

/* 全局样式 */
body {
	background-color: #f2f2f2;
	margin: 0;
	width: 100%;
	overflow-x: hidden;
}



/* 头部底部边框 */
.header-with-border {
	border-bottom: 1px solid #e3e3e3;
}

/* Mobile header styles removed - see global.css */

@media (max-width: 768px) {
	/* Header visibility handled by global.css */
	
	.category-banner {
		display: none !important;
	}

	.m-category-banner {
		display: block !important;
	}

	.m-product-category-bar {
		display: flex !important;
	}

	.m-mobile-products {
		display: block !important;
	}

	.main-content {
		display: none !important;
	}

	.m-mobile-card {
		position: relative;
	}

	.m-mobile-card .product-badge {
		position: absolute;
		top: 0vw;
		left: unset;
		right: 4vw !important;
		color: #0078ff;
		font-size: 2.5vw;
		
	}
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	width: 1920px;
	/* 全屏宽度 */
	max-width: 100%;
	margin: 0 auto;
	padding: 0 46px 0 88px;
	/* 左边88px，右边46px */
}

.logo {
	width: 52px;
	height: auto;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 87px;
	flex: 1;
	justify-content: center;
}

.nav-item {
	color: #000;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	transition: color 0.3s ease;
	position: relative;
}

.nav-item:hover {
	color: #0078ff;
}

.nav-item.active {
	color: #0078ff;
}

.nav-item.active::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #0078ff;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 21px;
	/* 与language-switch的margin-left保持一致 */
}

/* 栏目图片容器样式 */
.category-banner {
	width: 100%;
	height: 400px;
	background-color: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 86px;
	/* 126px - 40px(main-content的padding-top) = 86px */
}

.banner-content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.banner-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.m-category-banner {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 4vw;
}

.m-banner-content {
	width: 100%;
	padding: 0 !important;
}

.m-banner-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.m-product-category-bar {
	display: none;
	width: 100%;
	height: 10vw;
	background: #ffffff;
	align-items: center;
	border-bottom: 1px solid #e3e3e3;
}

.m-product-category-content {
	width: 100%;
	max-width: 750px;
	margin: 0 auto;
	padding: 0 2.13vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.m-category-title {
	color: #0078ff;
	font-size: 3.7333vw;
}

.m-category-next {
	width: 3.5vw;
	height: 3.5vw;
	background: none;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.m-category-next svg {
	width: 5vw;
	height: 5vw;
}

.m-category-next.open svg {
	transform: rotate(90deg);
}

.m-category-dropdown {
	display: none;
	width: 100%;
	background: #ffffff;
	position: absolute;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.m-category-dropdown.open {
	display: block;
}

.m-category-list {
	list-style: none;
	margin: 0;
	padding: 0 16px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.m-category-item {
	line-height: 4;
	display: flex;
	align-items: center;
	font-size: 3.2vw;
	color: #333333;
	border-bottom: 1px solid #e3e3e3;
}

.m-category-item.active {
	color: #0078ff;
}

.m-mobile-products {
	display: none;
	width: 100%;
	background: #f2f2f2;
	padding: 2vw 3vw;
	box-sizing: border-box;
}

.m-mobile-section-title {
	font-size: 20px;
	color: #000000;
	margin: 0 0 2vw 0;
}

.m-mobile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.4vw;
}

.m-mobile-card {
	background: #ffffff;
	border-radius: 1.33vw;
	padding: 3vw 0 5vw 0;
	text-align: center;
}

.m-mobile-product-title {
	font-size: 3.7333vw;
	margin: 2vw;
	color: #000;
	font-weight: 500;
}

.m-mobile-product-subtitle {
	font-size: 2.667vw;
	color: #717171;
	margin: 0 0 1.6vw 0;
}

.m-mobile-product-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 244/230;
	object-fit: contain;
}

.m-mobile-learn-btn {
	display: inline-block;
	padding: 0 2vw;
	font-size: 2.6777vw;
	line-height: 6vw;
	color: #000;
	text-decoration: none;
	border: 1px solid #000;
	border-radius: 0.6vw;
}



.m-category-next.open svg {
	transform: rotate(90deg);
}

.search-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.language-switch {
	position: relative;
	width: 31px;
	height: 31px;
	background-color: #0078ff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	outline: none;
	padding: 0;
}

.lang-text {
	font-size: 12px;
	color: #ffffff;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.language-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 120px;
	background-color: #ffffff;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	margin-top: 8px;
}

.language-switch:hover .language-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-item {
	padding: 12px 16px;
	font-size: 14px;
	color: #333333;
	cursor: pointer;
	transition: background-color 0.2s ease;
	display: block;
	text-decoration: none;
}

.dropdown-item:hover {
	background-color: #f5f5f5;
}




/* 响应式设计 */
/* 1920px及以上 - 保持固定尺寸，居中显示 */
@media (min-width: 1920px) {
	.page-wrapper {
		max-width: 1920px;
		margin: 0 auto;
	}

	.nav-container {
		width: 1920px;
		padding: 0 46px 0 88px;
		/* 确保在1920px下精确的左右间距 */
	}

}

/* 1920px以下的响应式设计 */
@media (max-width: 1919px) {
	.nav-container {
		width: calc(100% - 100px);
		margin: 0 auto;
		padding-left: 50px;
		padding-right: 50px;
	}

	.category-banner {
		height: 350px;
		margin-bottom: 130px;
	}
}

@media (max-width: 1599px) and (min-width: 1366px) {
	.nav-container {
		width: calc(100% - 80px);
		margin: 0 auto;
		padding-left: 40px;
		padding-right: 40px;
	}

	.footer-row-one,
	.footer-row-three {
		padding-left: 40px;
		padding-right: 40px;
	}

	.category-banner {
		height: 320px;
		margin-bottom: 86px;
	}
}

@media (max-width: 1366px) {
	.nav-container {
		width: calc(100% - 60px);
		margin: 0 auto;
		padding-left: 30px;
		padding-right: 30px;
	}

	.footer-row-one,
	.footer-row-three {
		padding-left: 30px;
		padding-right: 30px;
	}

	.category-banner {
		height: 280px;
		margin-bottom: 86px;
	}
}

@media (max-width: 1024px) {

	.nav-container,
	.footer-row-one,
	.footer-row-three {
		padding-left: 20px;
		padding-right: 20px;
	}

	.category-banner {
		height: 250px;
		margin-bottom: 86px;
	}
}

@media (max-width: 768px) {

	.nav-container,
	.footer-row-one,
	.footer-row-three {
		padding-left: 15px;
		padding-right: 15px;
	}


	.nav-menu {
		gap: 20px;
	}

	.nav-item {
		font-size: 14px;
	}

	.footer-row-one {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.footer-contact {
		flex-direction: column;
		gap: 20px;
	}

	.footer-row-three {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.floating-icons {
		bottom: 20px;
		right: 20px;
		gap: 10px;
	}

	.floating-icon {
		width: 45px;
		height: 45px;
	}

	.category-banner {
		height: 200px;
		margin-bottom: 86px;
	}
}

@media (max-width: 480px) {

	.nav-container,
	.main-content,
	.footer-row-one,
	.footer-row-three {
		padding-left: 15px;
		padding-right: 15px;
	}


	.main-content {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.nav-menu {
		gap: 15px;
	}

	.nav-item {
		font-size: 13px;
	}

	.sidebar-title {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.category-item {
		height: 32px;
		margin-bottom: 20px;
		padding: 12px 15px;
		font-size: 12px;
	}

	.page-title {
		font-size: 20px;
		margin-bottom: 25px;
		text-align: right;
		width: 100%;
	}

	.product-card {
		position: relative;
		padding: 15px;
		height: 280px;
	}

	.product-image img {
		width: 100%;
		height: auto;
		aspect-ratio: 244/230;
		object-fit: contain;
	}

	.product-title {
		font-size: 16px;
		margin-top: 41px;
	}

	.product-subtitle {
		height: 16px;
		font-size: 15px;
		font-weight: normal;
		line-height: 31px;
		letter-spacing: 0px;
		color: #717171;
		margin-bottom: 20px;
	}

	.learn-more-btn {
		padding: 8px 16px;
		font-size: 13px;
		text-decoration: none;
		/* 确保在小屏幕上链接也没有下划线 */
	}

	.category-banner {
		height: 150px;
		margin-bottom: 86px;
	}
}