/* 产品中心页面专用CSS */

/* 产品页面样式 */

/* 商品信息区域 */
.products-container {
	padding: 40px 0;
	background-color: rgba(247, 249, 250, 1);
}

.products-layout {
	display: flex;
	gap: 20px;
	justify-content: center;
}

/* 左侧分类导航 */
.product-categories {
	width: 15%;
	flex-shrink: 0;
	padding: 15px 0;
	border-radius: 15px;
	background: #fff;
	font-size: 14px;
	/* 移除固定高度相关属性，让它完全由内容决定 */
}

.category-group {
	margin-bottom: 20px;
	position: relative; /* 为绝对定位橙色竖线提供参考 */
}

/* 标题前的橙色竖线 */
.category-title {
	font-size: 16px;
	font-weight: bold;
	padding: 10px;
	color: #333;
	position: relative; /* 为伪元素定位 */
	padding-left: 15px; /* 为竖线留出空间 */
}

/* 使用伪元素创建竖线 */
.category-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background-color: #ff6600;
}

.category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-list li {
	border-bottom: 1px solid #eee;
}

.category-list li a {
	display: block;
	padding: 10px;
	padding-left: 20px; /* 与标题的左内边距保持一致 */
	color: #666;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 14px;
	height: 60px;
	line-height: 50px;
}

.category-list li a:hover {
	color: #ff6600;
}

.category-list li a.active {
	color: #ffffff;
	background-color: #ff6600; /* 选中项的背景色改为橙色 */
}

/* 右侧产品展示 */
.product-display {
	width: 70%;
}

.product-grid {
	display: flex;
	flex-wrap: wrap;
	margin: -15px;
}

.product-box {
	background-color: #fff;
	display: flex;
	flex-direction: column;
	padding: 0 0 15px;
	border: none;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow: hidden;
	width: calc(33.333% - 30px);
	margin: 15px;
}

.product-image {
	border: none !important;
	overflow: hidden;
	height: 0;
	padding-bottom: 60%; /* 比例约为5:3，减小高度 */
	position: relative;
	margin-bottom: 15px;
	border-radius: 10px 10px 0 0;
}

.product-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	display: block;
	border: none !important;
	transition: transform 0.5s ease;
	&:hover {
		transform: scale(1.05);
	}
}

.product-title {
	font-size: 15px;
	font-weight: bold;
	margin: 0 0 10px;
	color: #333;
	padding: 0 25px;
}

.product-desc {
	font-size: 13px;
	color: #666;
	margin-bottom: 20px;
	line-height: 1.4;
	padding: 0 25px;
}

.product-btn {
	display: inline-block;
	padding: 4px 12px;
	background-color: transparent;
	color: #ff6600;
	text-decoration: none;
	font-size: 13px;
	margin-left: 25px;
	text-align: center;
	border: 1px solid #ff6600;
	width: fit-content;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.product-btn:hover {
	background-color: #ff6600;
	color: #fff;
}

.page-number,
.page-nav,
.page-dots {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	color: #666;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-size: 14px;
}

.page-number:hover,
.page-nav:hover {
	border-color: #ff6600;
	color: #ff6600;
	background-color: #fff8f2;
}

.page-number.active {
	background-color: #ff6600;
	border-color: #ff6600;
	color: #fff;
	font-weight: bold;
}

.page-nav.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	border-color: #ddd;
	color: #999;
	background-color: #f5f5f5;
}

.page-nav.disabled:hover {
	border-color: #ddd;
	color: #999;
	background-color: #f5f5f5;
}

.page-dots {
	border: none;
	width: auto;
	padding: 0 5px;
}

/* 移动端菜单按钮和抽屉样式 */
.mobile-menu-toggle {
	display: none;
	margin-bottom: 20px;
	width: 100%;
}

.mobile-menu-toggle button {
	width: 100%;
	padding: 12px 15px;
	background-color: #ff6600;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s;
}

.mobile-menu-toggle button:hover {
	background-color: #e55c00;
}

.mobile-drawer-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

.mobile-drawer {
	display: none;
	position: fixed;
	top: 0;
	right: -300px;
	width: 280px;
	height: 100%;
	background-color: white;
	z-index: 1001;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease;
	overflow-y: auto;
}

.mobile-drawer.open {
	right: 0;
}

.mobile-drawer-overlay.open {
	display: block;
}

.mobile-drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid #eee;
	background-color: #ff6600;
	color: white;
}

.mobile-drawer-header span {
	font-weight: bold;
	font-size: 16px;
}

.close-drawer {
	background: none;
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
}

.mobile-drawer-content {
	padding: 10px 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
	.products-layout {
		flex-direction: column;
	}

	.product-categories {
		width: 100%;
		margin-bottom: 20px;
	}

	.product-display {
		width: 100%;
	}

	.product-box {
		width: calc(33.333% - 30px);
	}

	.page-number,
	.page-nav {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 768px) {
	.product-categories {
		display: none; /* 在移动端隐藏原始分类导航 */
	}

	.mobile-menu-toggle {
		display: block; /* 在移动端显示菜单按钮 */
	}

	.product-box {
		width: calc(50% - 30px);
	}
}

@media (max-width: 576px) {
	.product-box {
		width: calc(100% - 30px);
	}

	.page-number,
	.page-nav {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}
}

header {
	background-color: rgba(34, 34, 34, 0.16);
	position: sticky !important;
	top: 0 !important;
	z-index: 1000 !important;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled-past-banner {
	background-color: #ffffff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

header.scrolled-past-banner .menu a {
	color: #333333 !important;
}

header.scrolled-past-banner .language-switch a {
	color: #333333 !important;
}

header.scrolled-past-banner .menu-toggle i {
	color: #333333 !important;
}

/* 修复header和footer的高度问�?*/
header .container {
	padding: 15px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	height: 60px;
	display: flex;
	align-items: center;
}

.logo-img-container img {
	height: 40px;
}

@media screen and (max-width: 768px) {
	.logo-img-container img {
		height: 30px;
	}
}

/* 三角形装饰样�?*/
.banner {
	position: relative;
}

.banner-triangle {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	width: 30px;
	height: 30px;
	background-color: #ff6600;
	clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	z-index: 100;
}
