* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #f8f8f8;
	min-height: 100vh;
	/* 确保页面高度至少为屏幕高度 */
	margin: 0;
	/* 清除body默认margin */
}
.divider-1 {
    height: 2px;
    background: #e74c3c;
    border: none;
}
/* 主容器调整 */
.box {
	padding-top: 56px;
	/* 与顶部导航栏高度一致 */
	padding-bottom: 60px;
	/* 与底部导航栏高度一致 */
	width: 100%;
	min-height: 100vh;
	/* 确保主容器充满屏幕高度 */
	box-sizing: border-box;
	/* 包含padding在高度计算内 */
}
a:hover {
    color: #ff9933;
}
/*顶部导航栏*/
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    background-color: #ff9933;
}

.nav-inner {
	width: 100%;
	/* 改为100%宽度，充分利用空间 */
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 56px;
	/* 固定高度，与padding-top对应 */
}

.nav-title {
	font-size: 25px;
	font-weight: bold;
	color: #333;
}

.zhongbu {
	width: 100%;
	display: grid;
}

/* 搜索容器样式 */
.search-container {
	width: 95%;
	/* 略微加宽，更充分利用空间 */
	height: 50px;
	display: flex;
	align-items: center;
	background-color: #f9fafc;
	border: 1px solid #ebecef;
	border-radius: 4px;
	padding: 4px 10px;
	margin: 10px auto;
	font-size: 16px;
}

.search-icon {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23606266' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.32 14.9l5.39 5.4a1 1 0 0 1-1.42 1.4l-5.38-5.38a8 8 0 1 1 1.41-1.41zM10 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12z'/%3E%3C/svg%3E");
	background-size: cover;
	margin-right: 5px;
}

.search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 16px;
	color: #303133;
	background-color: transparent;
}

/* 轮播图 */
.lunbo {
	width: 100%;
	justify-content: center;
	align-items: center;
	margin: 10px auto;
	height: auto;
}

/* 轮播图图片高度自适应 */
.carousel-item img {
	height: auto;
	max-height: 300px;
	/* 限制最大高度，避免图片过高 */
	object-fit: cover;
	/* 保持图片比例，填充容器 */
}

/* 商品分类 */
.category-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	/* 适当调整间距，确保在小屏幕也能显示 */
	padding: 15px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	/* 确保占满宽度 */
	box-sizing: border-box;
}

.category-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
}

.category-item-img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	margin-bottom: 8px;
}

.category-item-p {
	font-size: 14px;
	color: #333;
}

/* 商品广告 */
.zhongtu {
	width: 95%;
	justify-content: center;
	align-items: center;
	margin: 25px auto;
	height: auto;
}

.xuanchan {
	padding: 10px 0;
	border-radius: 10px;
}

/* 商品专场 */
.banner-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 10px;
	justify-items: center;
	padding: 10px;
	max-width: 1200px;
	width: 100%;
	/* 确保占满宽度 */
	margin: 0 auto;
	box-sizing: border-box;
}

.banner-item {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	display: block;
}

/* 新品上架 */
.xpsj {
	display: grid;
	justify-content: center;
	width: 100%;
	/* 确保占满宽度 */
}
.arrow-right {
    /*width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;*/
    margin-top:6px;
}
.shangjia {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    width: 100%;
    /* 与其他容器宽度保持一致 */
    margin: 0 auto;
    background-color: #ff9933;
    height: 46px;
}

.shangjia-h2 {
	font-size: 20px;
	font-weight: 400;
	padding: 20px 0;
	margin-bottom: 4px;
    margin-left:2%;
}

.shangjia-p {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    font-size: 18px;
    margin-left:36%;
}

/* 商品列表容器 */
.product-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 10px;
	width: 95%;
	/* 统一宽度 */
	margin: 0 auto;
	padding: 10px;
	box-sizing: border-box;
}

.product-item {
	text-align: center;
}

.product-item-img {
	width: 100%;
	height: 150px;
	display: block;
	margin: 0 auto 0px;
}
.product-item-img
.product-item-p {
	margin: 5px 0;
	font-size: 14px;
}

.price {
	font-size: 16px;
	color: #e60012;
	font-weight: bold;
}

/* 尾部导航栏 */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 10px 0;
	z-index: 999;
	height: 60px;
	/* 固定高度，与padding-bottom对应 */
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #999;
	text-decoration: none;
}

.nav-item-svg {
	font-size: 24px;
	margin-bottom: 4px;
}

.nav-item-span {
	font-size: 12px;
}


/* 隐藏内容 */

.ssym {
	display: none;/* 隐藏 */
}

.ssym-nav-inner {
	width: 100%;
	/* 改为100%宽度，充分利用空间 */
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 56px;
	/* 固定高度，与padding-top对应 */
}

.ssym-nav-title {
	font-size: 30px;
	font-weight: bold;
	color: #333;
}






