/**index.wxss**/

page {
  background: #F6F6F6;
  height: auto;
  position: relative;
}
scroll-view::-webkit-scrollbar{
display: none;
width: 0;
height: 0;
color: transparent;
}
/* 前后衔接样式 */
/* .bg-box{
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 524rpx;
}
.bg{
  position: relative;
  
  width: 100%;
  height: 524rpx;
  vertical-align: bottom;
}
.bg-box .white-block{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70rpx;
  background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(248,248,248,0.52) 39%, #F6F6F6 100%);
} */

.bg-box{
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 492rpx;
}
.bg{
  position: relative;
  
  width: 100%;
  height: 492rpx;
  vertical-align: bottom;
}
.bg-box .white-block{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70rpx;
  background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(248,248,248,0.52) 39%, #F6F6F6 100%);
}
.swiper-box{
  /* 图片衔接就是要宽2像素才行 */
  /* width: 704rpx!important; */
  width: 702rpx!important;
  height: 276rpx;
  border-radius: 16rpx;
  position: absolute;
  left: 24rpx;
  bottom: -38rpx;
}
.swiper-box swiper-item{
  width: 702rpx!important;

}
.swiper-box swiper-item .block{
  height: 276rpx;
  width: 702rpx;
  vertical-align: bottom;

}

/* 轮播图及搜索框 */
swiper {
  width: 100%;
  /* height: 400rpx; */
  overflow: hidden;
}

swiper.pic-swiper {
  margin-top: 101rpx;
  padding: 10rpx 0;
  background: #fff;
  height: 400rpx;
}

swiper-item {
  font-size: 26rpx;
  font-weight: bold;
}

swiper.pic-swiper .img-box {
  font-size: 0;
}

.wx-swiper-dots {
  margin-bottom: 15rpx;
}

.banner-item {
  box-sizing: border-box;
}

.banner-item .img-box {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20rpx 10rpx;
}

.banner-item .img-box image {
  border-radius: 8rpx;
  box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
}

swiper.pic-swiper .banner {
  position: absolute;
  width: 690rpx;
  margin: 0 10rpx;
  height: 388rpx;
  border-radius: 8rpx;
  display: inline-block;
  box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
}

.top-navbar-box {
  display: flex;
  align-items: center;
  margin-left: 20rpx;
  color: #fff;
}

.top-navbar-box .shop-title {
  font-weight: bold;
  font-size: 36rpx;
}
.top-navbar-box .shop-info{
  color: #fff;
}

.shop-info {
  margin-left: 12rpx;
  display: flex;
  font-weight: bold;
  font-size: 24rpx;
}

.search-box {
  display: flex;
  padding-bottom: 20rpx;
  margin-top: 20rpx;
  position: relative;
  z-index: 99;
}

.top-search-input {
  margin-left: 20rpx;
  display: flex;
  align-items: center;
  width: 500rpx;
  border: 2rpx solid #006CE8;
  border-radius: 40rpx;
  height: 60rpx;
  background: #fff;
  box-sizing: border-box;
}

.top-search-swiper {
  height: 60rpx;
  line-height: 60rpx;
  margin-top: 0;
  font-size: 24rpx;
  color: #AAAAAA;
  margin-left: 28rpx;
}
.top-search-line {
  color: #DEDEDE;
  margin-right: 16rpx;
}

.top-search-text {
  width: 100rpx;
  font-weight: bold;
  font-size: 24rpx;
  color: #006CE8;
}

.search-input {
  display: flex;
  align-items: center;
  width: 702rpx;
  /* border: 2rpx solid #006CE8; */
  border-radius: 40rpx;
  height: 60rpx;
  background: #fff;
}

.search-swiper {
  height: 60rpx;
  line-height: 60rpx;
  margin-top: 0;
  font-weight: normal;
  font-size: 24rpx;
  color: #AAAAAA;
  margin-left: 28rpx;
}

.search-line {
  color: #DEDEDE;
  margin-right: 16rpx;
}

.search-text {
  width: 100rpx;
  line-height: 50rpx;
  text-align: center;
  border-radius: 25rpx;
  font-weight: bold;
  font-size: 28rpx;
  color: #FFF;
  background: #006CE8;
  margin-right: 10rpx;
}

.top-share {
  position: relative;
  text-align: center;
  margin-left: 16rpx;
}

.share-btn {
  position: absolute;
  top: 0;
  left: 0;
  height: 90rpx;
  text-align: center;
  background-color: transparent;
  /*按钮透明*/
  border: none;
}

.share-btn::after {
  border: none;
}

.share-text {
  font-weight: normal;
  font-size: 22rpx;
  color: #fff;
  white-space: nowrap;
}

.recommended-box {
  /* height: 80rpx; */
  margin-bottom: 20rpx;
  position: absolute;
  left: 24rpx;
  top: 254rpx;
  width: 726rpx;
}

.recommended-swiper {
  /* height: 80rpx; */
  white-space: nowrap;
}
  

.recommended-text {
  margin-left: 20rpx;
  display: inline-block;
  padding: 6rpx 12rpx;
  background: rgba(255, 255, 255, .5);
  text-align: center;
  border-radius: 22rpx 22rpx 22rpx 22rpx;
  font-size: 24rpx;
  color: #222222;
}
.container{
  padding-left:24rpx;
  padding-right: 24rpx;
}
.container .bg-sear {
  position: fixed;
  z-index: 999;
  width: 100%;
  line-height: 56rpx;
  background: #fff;
  padding: 20rpx 0;
  text-align: center;
  top: 0;
}

.bg-sear .section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60rpx;
  background: #fff;
  z-index: 1;
  border-radius: 50rpx;
  width: 92%;
  margin: auto;
  left: 4%;
  background: #eeeeee;
}

.bg-sear .section .placeholder {
  display: block;
  font-size: 28rpx;
  color: #999;
}

.bg-sear .section .search-img {
  width: 32rpx;
  height: 32rpx;
  margin-right: 10rpx;
}

/* 分类栏目 */
.swiper-grid-box {
  /* padding: 16rpx 0; */
  margin-bottom: 20rpx;
  border-radius: 16rpx;
  background: #fff;
  margin-top: 296rpx;
  /* margin-top: 300rpx; */
}

.swiper-grid-box .grid-box .van-grid{
  border-radius: 16rpx;
}
.grid-box{
  display: grid;
  /* 列规则：5列等宽（1fr 代表"剩余空间等份分配"） */
  grid-template-columns: repeat(5, 1fr);
  /* 行列间距：10rpx（小程序常用 rpx 适配多端） */
  gap: 16rpx;
  /* 容器内边距：避免网格贴边 */
  padding: 20rpx 0;
}

.grid-box,.swiper-grid{
  /* padding-top: 20rpx; */
}

.swiper-grid {
  margin-top: -10rpx;
  border-radius: 16rpx;
  background-color: #fff;
  height: 175rpx;
}
.my-grid-item{
  position: relative;
  text-align: center;
  margin-bottom: 20rpx;
}
.my-grid-item .van-grid-item__content {
  padding: 0rpx;
  /* margin-top: 20rpx; */
  padding-top: 30rpx;
}

.my-grid-item .label{
  font-size: 16rpx;
  color: #FFFFFF;
  padding: 4rpx 8rpx;
  border-radius: 14rpx;
  background: #FF5030;
  position: absolute;
  left: 50%;
  top:0rpx;
  white-space: nowrap;
}
.swiper-grid-image{
  width:100rpx;
  height:100rpx;
  border-radius: 32rpx;
}
.swiper-grid .swiper-grid-image{
  width:72rpx;
  height:72rpx;
  border-radius: 50%;
}
.swiper-grid-text {
  font-weight: normal;
  font-size: 24rpx;
  color: #222222;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 120rpx;
  text-align: center;
  /* line-height:2.4; */
  letter-spacing: normal;
  margin-top: 24rpx;
}


.notice-box{
  display: flex;
  align-items: center;
  margin-bottom: 20rpx;
  padding: 20rpx 24rpx;
  background: #FFFFFF;
  border-radius: 16rpx 16rpx 16rpx 16rpx;
}

.notice-box .icon{
  width: 30rpx;
  height: 30rpx;
}

.notice-box .text{
  font-weight: bold;
  font-size: 24rpx;
  color: #222222;
  margin-left: 20rpx;
}

.adv{
  width: 100%;
  height: 236rpx;
  margin-bottom: 20rpx;
}

.bonus-box {
  display: flex;
}

.content-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 192rpx;
  height: 64rpx;
  background: #FFFFFF;
  border-radius: 16rpx 16rpx 16rpx 16rpx;
}
.content-bonus+.content-bonus{
  margin-left: 20rpx;
}

.bonus-text {
  margin-left: 10rpx;
  font-size: 24rpx;
}

/*秒杀*/
.seckill-box {
  margin: 20rpx;
  padding: 20rpx;
  background: linear-gradient(91deg, #FFEEEE 0%, #FFFFFF 18%, #FFFFFF 100%);
  display: flex;
  position: relative;
  overflow: hidden;
}

.seckill-time {
  width: 160rpx;
  text-align: center;
}

.seckill-title {
  font-weight: 800;
  font-size: 28rpx;
}

.more-icon {
  position: absolute;
  display: flex;
  align-items: center;
  height: 100%;
  top: 0;
  right: 0;
  width: 40rpx;
  background-color: #fff;
}

.times {
  margin-top: 8rpx;
  margin-bottom: 8rpx;
  font-size: 20rpx;
  color: #AAAAAA;
}

.seckill-content {
  display: flex;
}

.seckill-product-box {
  margin-left: 30rpx;
}

.seckill-Price {
  position: relative;
  font-weight: bold;
  font-size: 24rpx;
  color: #FF4A39;
}

.price-bg {
  position: absolute;
}

.price-num {
  position: absolute;
  left: 10rpx;
}

.custom-class {
  background-color: #FFFFFF;
}

.recommended-card {
  position: relative;
  margin: 20rpx 0;
  padding: 20rpx;
  background-color: #FFFFFF;
  display: flex;
  width: 670rpx;
  overflow: hidden;
}

.new-text {
  text-align: center;
}

.new-text-two {
  width: 120rpx;
}

.recommended-Price {
  text-align: center;
  height: 32rpx;
  background: #FFEEEC;
  border-radius: 16rpx;
  font-weight: bold;
  font-size: 24rpx;
  color: #FF4A39;
}

/* 分页分类 */
.tab-box{
  white-space: nowrap;
  margin-bottom: 20rpx;
  overflow-x: auto;
}
 
.tab-box .tab{
  display: inline-block;
  font-size: 32rpx;
  color: #222222;
  margin-right: 44rpx;
  padding-bottom: 10rpx;
}
.tab-box .tab .icon{
  width: 105rpx;
  height: 29rpx;
}
.tab-box .tab.active{
  font-weight: 800;
  font-size: 36rpx;
  position: relative;
}

.tab-box .tab.active::after{
  content: '';
  display: block;
  width: 80rpx;
  height: 18rpx;
  background: linear-gradient( 90deg, #006CE8 0%, rgba(0,108,232,0.45) 43%, rgba(0,108,232,0.2) 79%, rgba(0,108,232,0) 100%);
  border-radius: 10rpx 10rpx 10rpx 10rpx;
  position: absolute;
  left: calc(50% - 40rpx);
  bottom: 0;
}





/* 每日上新 */
.content {
  text-align: justify;
  display: flex;
  justify-content: space-between;
}
.reset-localization{
  text-align: center;
  font-size: 26rpx;
  color: #AAAAAA;
}
.swiper-card-box {
  margin-bottom: 20rpx;
  height: 470rpx;
  /* margin-left: 3%; */
  /* width: 96%; */
  width: 344rpx;
}

.wx-swiper-dots-horizontal .wx-swiper-dot {
  width: 24rpx;
  height: 8rpx;
  border-radius: 4rpx;
}

.swiper-card {
  /* margin-top: 10rpx; */
  height: 462rpx;
  background: #FFFFFF;
  border-radius: 16rpx;
}

.swiper-card-img {
  height: 462rpx;
  width: 344rpx;
  border-radius: 16rpx;
  vertical-align: bottom;
}

.item {
  background-color: #fff;
  /* margin-top: 20rpx; */
  margin-bottom: 14rpx;
  display: inline-block;
  width: 344rpx;
  border-radius: 16rpx;
  overflow: hidden;
  padding-bottom: 16rpx;
}

.item-ava {
  width: 40rpx;
  height: 40rpx;
  border-radius: 16rpx;
}

.heart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 8rpx;
  margin-top: 20rpx;
}

.name-price {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 36rpx;
  color: #FF4D3A;
}

.item-img {
  width: 100%;
  vertical-align: bottom;
}

.item-title {
  font-weight: bold;
  font-size: 28rpx;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: 'PingFang SC-Medium';
  color: #1e1e1e;
  padding: 0 20rpx;
  /* height: 40rpx; */
  line-height: 40rpx;
  /* background-color: turquoise; */
}

.item .name {
  padding: 0 15rpx;
  margin-top: 20rpx;
  padding-bottom: 10rpx;
  align-items: center;
  font-size: 22rpx;
  font-family: 'PingFang SC-Medium';
}

.name image {
  flex: 0 0 auto;
}

.item-title-box {
  display: flex;
  position: relative;
  z-index: 2;
}

.name-title {
  font-weight: normal;
  font-size: 22rpx;
  color: #AAAAAA;
}

.tag-box{
  display: flex;

}
.tag-box .tag{
  width: 68rpx;
  height: 32rpx;
  line-height: 32rpx;
  text-align: center;
  background: #FFF1E2;
  border-radius: 8rpx 8rpx 8rpx 8rpx;
  border: 1rpx solid #006CE8;
  font-size: 22rpx;
  color: #006CE8;
}
.tag-box .text{
  font-size: 22rpx;
  color: #BC9264;
  margin-left: 10rpx;
}
.name text:last-child {
  color: #c4c4c4;
  text-decoration: underline;
  line-height: 10rpx;

}

.rank-box{
  display: flex;
  align-items: center;
  background: #FCECDA;
  border-radius: 8rpx 8rpx 8rpx 8rpx; 
  margin-top: 10rpx;
}

.rank-box .icon{
  width: 40rpx;
  height: 44rpx;
}
.rank-box .text{
  font-size: 22rpx;
  color: #BC9264;
  margin-left: 10rpx;
}

.rank-box .top{
  width: 72rpx;
  height: 36rpx;
}

.left,
.right {
  display: inline-block;
  vertical-align: top;
  width: 344rpx;
}

.stepper-box {
  display: flex;
  align-items: center;
}

.stepper-minus {
  width: 40rpx;
  height: 40rpx;
  background-color: #F0F0F0;
  font-size: 40rpx;
  text-align: center;
  line-height: 40rpx;
}

.stepper-num {
  width: 80rpx;
  height: 40rpx;
  background-color: #F0F0F0;
  text-align: center;
  line-height: 40rpx;
  margin-left: 4rpx;
}

.stepper-add {
  margin-left: 4rpx;
  width: 40rpx;
  height: 40rpx;
  background-color: #F0F0F0;
  font-size: 40rpx;
  text-align: center;
  line-height: 40rpx;
}

.tips {
  height: 60rpx;
  line-height: 60rpx;
  text-align: center;
  font-size: 24rpx;
  color: #AAAAAA;
}
.loading-box{
  text-align: center;
  line-height: 80rpx;
  height: 80rpx;
}
.popup-box {
  padding: 20rpx;
}

.popup-detail {
  display: flex;
  align-items: center;
}

.shop-price {
  font-family: PingFang SC, PingFang SC;
  font-weight: 800;
  font-size: 48rpx;
  color: #FF4D3A;
}

.shop-detail {
  margin-top: 24rpx;
  display: flex;
  align-items: center;
}

.shop-isselect {
  font-weight: normal;
  font-size: 24rpx;
  color: #AAAAAA;
}

.shop-info {
  font-family: PingFang SC, PingFang SC;
  font-weight: 800;
  font-size: 24rpx;
  color: #222222;
}

.shop-address-info {
  width: 500rpx;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  font-size: 32rpx;
}

.position-icon{
  width: 36rpx;
  height: 36rpx;
  vertical-align: bottom;
}

.popup-line {
  border: 2rpx solid #F0F0F0;
}

.shop-color {
  margin-top: 28rpx;
}

.color-text {
  font-family: PingFang SC, PingFang SC;
  font-weight: 800;
  font-size: 28rpx;
}

.color-btn-box {
  display: flex;
  align-items: centers;
  margin-top: 10rpx;
}

.color-btn {
  width: 136rpx;
  height: 64rpx;
  background: #006CE8;
  border-radius: 32rpx;
  font-weight: normal;
  font-size: 28rpx;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.popup-num-box {
  margin-top: 40rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-button-box {
  background: #FFFFFF;
  box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  border-radius: 32rpx 32rpx 0rpx 0rpx;
  display: flex;
  justify-content: center;
}

.bottom-button {
  width: 702rpx;
  height: 80rpx;
  background: #006CE8;
  border-radius: 40rpx;
  margin-top: 30rpx;
  font-family: PingFang SC, PingFang SC;
  font-weight: bold;
  font-size: 28rpx;
  color: #FFFFFF;
  text-align: center;
  line-height: 80rpx;
}

/* 纵向滚动容器：隐藏垂直滚动条 */
.tab-box::-webkit-scrollbar {
  width: 0; /* 滚动条宽度设为0（关键） */
  height: 0; /* 横向滚动时设置高度为0 */
  display: none; /* 直接隐藏 */
}

/* 可选：针对滚动轨道和滑块的进一步隐藏 */
.tab-box::-webkit-scrollbar-track {
  display: none;
}
.tab-box::-webkit-scrollbar-thumb {
  display: none;
}
