/* 主内容开始 */
.main-container {
	display: flex;
	width: 100%;
	max-width: 1280px;
	height: calc(100vh - 198px);
	margin: 28px auto 0;
	background: white;
	border-radius: 3px;
	/* border: 1px solid #CCC;*/
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
        
        /* 左侧菜单样式 */
.sidebar {
	width: 250px;
	background: #1E88E5;
	/*padding: 10px 0; 菜单栏整体与顶部距离10PX*/
	display: flex;
	flex-direction: column;
	align-items: center;
}

.menu {
	list-style: none;
	width: 100%;
	/*margin-top: 10px; 纯菜单栏与整体距离10PX*/
}


.menu-item {
	font-size:16px;
	color: white;
	padding: 18px 30px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	opacity: 0.5; /* 设置为50%透明度 */
}

.menu-item:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-weight:bold;
	opacity: 1; /* 鼠标停留设置回不透明 */
}

.menu-item.active {	
	background: rgba(255, 255, 255, 0.15);
	color: white;
	font-weight:bold;
	opacity: 1; /* 选择后设置回不透明 */
}

.menu-item.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 5px;
	background: #fff;
}


.menu-icon {
	width: 24px;
	height: 24px;
	margin-right: 15px;
	object-fit: contain;
	filter: brightness(0) invert(1); /* 使图标变为白色 */
}

        
        /* 右侧内容区域 */
.content {
	flex: 1;
	padding-left: 38px;
	overflow-y: auto;
	position: relative;
}
        
        /* 美化滚动条 */
.content::-webkit-scrollbar {
	width: 5px;
}

.content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.content::-webkit-scrollbar-thumb {
	background: #60A9EC;
	border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
	background: #1E88E5;
}

.category-section {
	display: none;
	animation: fadeIn 0.5s ease;
}

.category-section.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}
        
        
        /* 产品网格 */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 25px;
}

.product-card {
	background: white;
	overflow: hidden;
	transition: transform 0.3s ease;
	position: relative;
	height: 160px;
}

.product-card:hover {
	transform: translateY(-5px);
}

.product-image {
	width: 160px;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
	opacity: 0.6; /* 设置为60%透明度 */
}

.product-card:hover .product-image {
	transform: scale(1.05);
	opacity: 1; /* 鼠标停留设置为回不透明 */
}

.product-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1F1F1F;
	overflow: hidden;
	width: 160px;
	height: 0;
	transition: height 0.5s ease;
	display: flex;
	justify-content: center;
	align-items: center;
}

.product-card:hover .product-overlay {
	height: 28%;
}

.detail-btn {
	background: #1F1F1F;
	color: #CCC;
	border: none;
	/*padding: 5px 15px;
	border-radius: 8px;	文字链接背景框*/
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card:hover .detail-btn {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.2s;
}

.detail-btn:hover {
	background: #1F1F1F;
	color: #FFF;
	transform: scale(1.05);
}
        
        /* 响应式设计 */
@media (max-width: 900px) {
	.main-container {
		flex-direction: column;
		height: auto;
	}

	.sidebar {
		width: 100%;
		padding: 15px 0;
	}

	.menu {
		display: flex;
		overflow-x: auto;
		margin-top: 10px;
	}

	.menu-item {
		padding: 15px 20px;
		white-space: nowrap;
	}

	.menu-item i {
		margin-right: 8px;
	}

	.top-nav {
		padding: 0 20px;
	}
}