.desc-box {
	margin-top: 10px !important;
	display: flex;
}

.desc-box .badge {
	font-family: Arial !important;
	font-weight: bold;
}

.desc-box .badge-score {
	color: #156ffb;
	font-weight:normal;
	background-image: linear-gradient(0deg, #fff, #f2f2f2);
}

.desc-box .badge-warning {
    color: #fff;
    background-color: #fc9f48;
}

.desc-box .badge-light-dark {
	background-image: linear-gradient(0deg, #f2f2f2, #eeeeee);
}

/* 顶部导航样式 */
.navtop-standingPosition {
	height: 60px;
	background: #fff;
	position: fixed;
	top: 60px;  /* 为头栏留出空间 */
	left: 0;
	right: 0;
	z-index: 998;  /* 降低z-index，确保hover效果不被遮挡 */
	border-bottom: 1px solid #f1f1f1;
}

.nav-top-page {
	height: 100%;
	padding: 0 20px;
	display: flex;
	align-items: center;
}

.return {
	display: inline-flex;
	align-items: center;
	color: #666;
	font-size: 13px;
	min-width: 60px;
	margin-right: 20px;
	text-decoration: none;
}

.return:hover {
	color: #2B6DE5;
	text-decoration: none;
}

.return i {
	font-size: 16px;
	margin-right: 4px;
}

.page-title {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin: 0;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - 100px);  /* 减去返回按钮的宽度 */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-desc {
	font-size: 12px;
	color: #999;
	margin: 0;
	font-weight: normal;
	max-width: 50%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 调整主内容区域布局 */
.col-sm-12 {
	margin-left: 240px;
	width: calc(100% - 240px);
	padding: 60px 0 20px;
	box-sizing: border-box;
}

/* 修改标语样式 */
.product-headline {
	background: #fff;
	color: #333;
	padding: 15px 20px;
	border-radius: 0;
	border: 1px solid #f1f1f1;
	margin-bottom: 20px;
	display: none;
}

.headline-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #333;
}

.headline-content {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

/* 商品列表容器 */
.products-container {
	min-height: calc(100vh - 200px);
	width: 100%;
	overflow: hidden;
	padding-top: 10px;
	padding-left: 15px;
}

.products-grid {
	display: block;
	margin: 0 -10px;
	width: calc(100% + 20px);
}

/* 商品卡片样式优化 */
.product-item {
	background: #ffffff;
	border: 1px solid #eee;
	transition: all 0.2s ease;
	display: inline-block;
	flex-direction: column;
	position: relative;
	cursor: pointer;
	margin: 0 10px 20px;
	vertical-align: top;
	box-sizing: border-box;
	width: calc((100% - 20px));
	z-index: 1;  /* 添加z-index以确保hover效果正常 */
	box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
}

.product-item:hover {
	border-color: #2B6DE5;
	box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	z-index: 2;  /* hover时提升层级 */
}

.product-header {
	padding: 15px;
	border-bottom: 1px solid #eee;
	position: relative;
	background: #f7f7f9;
}

.product-title {
	font-size: 15px;
	color: #333;
	margin: 0;
	line-height: 1.4;
	padding-right: 80px;  /* 为库存留出空间 */
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-tag {
	display: inline-flex;
	align-items: center;
	background: rgba(43, 109, 229, 0.1);
	color: #2B6DE5;
	padding: 2px 8px;
	font-size: 12px;
	border-radius: 2px;
	white-space: nowrap;
	margin-left: 8px;
	flex-shrink: 0;
}

.product-body {
	padding: 15px;
	padding-bottom: 0;  /* 移除底部padding */
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #ffffff;
}

.product-description {
	font-size: 13px;
	color: #666;
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.product-price-section {
	margin: 0;
	margin-top: auto;  /* 将价格部分推到底部 */
}

.price-main {
	display: flex;
	align-items: baseline;
	gap: 4px;
	color: #ff4d4f;  /* 改为红色 */
	margin-bottom: 4px;
}

.price-main .currency {
	font-size: 14px;
}

.price-main .amount {
	font-size: 20px;
	font-weight: 500;
}

.price-main .period {
	color: #999;
	font-size: 13px;
}

.btn-buy {
	padding: 12px;
	background: #2B6DE5;
	color: #fff;
	font-size: 13px;
	text-align: center;
	transition: all 0.2s ease;
	margin: 0 -15px 0;  /* 使按钮与卡片边缘对齐 */
	border-radius: 0;
	text-decoration: none;
	display: block;
}

.btn-buy:hover {
	background: #2259c7;
	color: #fff;
}

.sold-out {
	padding: 12px;
	background: #f8f9fa;
	color: #999;
	font-size: 13px;
	text-align: center;
	cursor: not-allowed;
	margin: 0 -15px 0;  /* 使按钮与卡片边缘对齐 */
}

/* 分页样式 */
.pagination-wrapper {
	margin-top: 30px;
	display: flex;
	justify-content: center;
}

/* 空状态样式 */
.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.empty-icon {
	font-size: 32px;
	margin-bottom: 15px;
	color: #ccc;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.navtop-standingPosition {
		top: 60px;  /* 移动端头栏更小 */
	}
	
	.category-nav {
		top: 120px;  /* 60px + 60px */
		height: calc(100vh - 106px);
	}
	
	.col-sm-12 {
		margin-left: 0;
		width: 100%;
		padding-top: 66px;
		padding-left: 10px;
		padding-right: 10px;
	}
	
	.page-desc {
		max-width: 200px;
	}
	
	.products-container {
	    padding-left: 2px !important;
	    padding-right: 2px !important;
	}
}

/* 折叠按钮样式 */
.sidebar-toggle {
	position: fixed;
	left: 20px;
	bottom: 90px;
	width: 40px;
	height: 40px;
	background: #2B6DE5;
	color: #fff;
	border-radius: 50%;
	display: none;  /* 默认隐藏 */
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(43, 109, 229, 0.3);
	transition: all 0.3s ease;
}

.sidebar-toggle:hover {
	background: #2259c7;
}

.sidebar-toggle i {
	font-size: 18px;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.sidebar-toggle {
		display: flex;  /* 移动端显示 */
	}
	
	.category-nav {
		transform: translateX(-240px);  /* 默认隐藏 */
		transition: transform 0.3s ease;
	}
	
	.category-nav.show {
		transform: translateX(0);  /* 显示侧栏 */
	}
}

/* 修复页面横向滚动 */
html, body {
	overflow-x: hidden;
	width: 100%;
}

/* 修复容器宽度 */
.row {
	margin: 0;
	width: 100%;
}

/* 响应式布局 - 直接计算宽度 */
@media (min-width: 576px) {
	.product-item {
		width: calc((100% - 50px) / 2);  /* 两列 */
	}
}

@media (min-width: 768px) {
	.product-item {
		width: calc((100% - 310px) / 2);  /* 两列 */
	}
}

@media (min-width: 1200px) {
	.product-item {
		width: calc((100% - 330px) / 3);  /* 三列 */
	}
}

@media (min-width: 1600px) {
	.product-item {
		width: calc((100% - 350px) / 4);  /* 四列 */
	}
}

@media (min-width: 2000px) {
	.product-item {
		width: calc((100% - 390px) / 6);  /* 六列 */
	}
}

.product-stock {
	position: absolute;
	top: 12px;
	right: 15px;
	background: rgba(0, 0, 0, 0.05);
	color: #666;
	padding: 3px 8px;
	font-size: 12px;
	border-radius: 2px;
	z-index: 2;
}

.price-original {
	font-size: 12px;
	color: #999;
}

.discount-tag {
	color: #ff4d4f;
	font-weight: bold;
	margin-right: 4px;
}

.layui-elem-quote {
	padding: 15px;
	margin: 0;
	width: calc(100vw - 280px);
}

.layui-elem-quote.grey-theme {
	margin-left: 15px;
}

@media (max-width: 768px) {
    .layui-elem-quote {
        padding: 10px;
		width: 100%;
    }
	.layui-elem-quote.grey-theme {
		margin-left: 0;
	}
}
/* 灰色主题提示框 */
.layui-elem-quote.grey-theme {
	border-left: 5px solid #e8e8e8;
	background-color: #f9f9f9;
}

/* 红色主题提示框 */
.layui-elem-quote.red-theme {
	border-left: 5px solid #ff4d4f;
	background-color: #fff2f0;
}

.alert-icon {
	position: relative;
}

.alert-icon.icon-success {
	position: relative;
}

.alert-icon.icon-error {
	position: relative;
}

.banner-desc {
	font-size: 14px;
	line-height: 1.5;
}

.banner-desc .first-line {
	color: #5a98db;
	display: block;
	font-size: 13px;
}

.banner-desc .second-line {
	color: #ba3772;
	display: block;
	font-size: 13px;
	margin-bottom: 0 !important;
}

.red-theme p {
	color: #ff4d4f;
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}

.small, small {
	font-size: 90% !important;
}

.ewy_tip {
    background-color: rgba(252, 241, 235, 1);
    color: rgba(254, 95, 71, 1) !important;
    margin-right: 2px;
    min-width: max-content;
    padding: 0 8px;
    height: 24px;
    line-height: 24px !important;
    font-size: 12px !important;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 8px;
}
.ewy_lcpu {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(-225deg, #DFFFCD 0%, #90F9C4 48%, #39F3BB 100%);
    background: linear-gradient(220.55deg, #97E8B5 0%, #5CB67F 100%);
    color: #fff !important;
    position: relative;
    float: right;

}
.ewy_mcpu {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
    color: #fff !important;
    position: relative;
    float: right;

}
.ewy_hcpu {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);
    color: #fff !important;
    position: relative;
    float: right;

}
.ewy_bandw {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    color: #fff !important;
    position: relative;
    float: right;

}
hr {
    margin-top: initial !important;
    border-top: 1px solid rgba(0, 0, 0, .1) !important;
}