body{ background-color: #F8F8F8; } #main{ padding-bottom: .32rem; } /* 板心 */ .sectionContainer{ display: flex; justify-content: center; } .elementorContainer{ max-width: 13.2rem; flex: 1; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } /* 轮播图 */ .swiperContainer { width: 100%; height: 5.6rem; position: relative; overflow: hidden; } .swiperContainer .swiper-slide img{ width: 100%; height: 100%; } .tabContainer{ height: 1.5rem; display: flex; align-items: center; justify-content: center; } .tabContainer .tabItem{ position: relative; display: flex; align-items: center; justify-content: center; height: .48rem; padding: 0 .52rem; cursor: pointer; } .tabItem .tabName{ font-size: .26rem; color: #000000; font-weight: 400; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .tabItem.active .tabName{ font-weight: bold; } .tabItem .tabUnderline{ background-color: rgba(209, 75, 241, 1); width: .82rem; height: .06rem; position: absolute; bottom: -.02rem; display: none; } .tabItem.active .tabUnderline{ display: block; } .tabItem .tabLink{ width: .02rem; position: absolute; right: 0; top: 0; height: 100%; } .tabContainer .tabItem:last-child .tabLink{ display: none; } /* <-- start 新的商品模块 */ .newGoodsContainer{ display: -ms-grid; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: .4rem .34rem; height: auto; } .newGoodsItem{ height: 4.5rem; display: flex; flex-direction: column; background-color: #fff; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; position: relative; overflow: hidden; border-radius: .04rem; font-size: 0; cursor: pointer; } .newGoodsTag{ position: absolute; z-index: 1; top: 0; left: 0; color: #FFF; background-color: rgba(74, 134, 98, 1); border-radius: 0 0 .12rem 0; padding: 0 .06rem; max-width: 1rem; font-size: .12rem; } .goodsImgBox{ padding: .12rem .06rem; height: 2.78rem; } .goodsImgBox img{ width: 100%; height: 100%; } .goodsCoverImg{ width: 100%; height: 100%; } .goodsInfo{ flex: 1; padding: .02rem .12rem .12rem .12rem; display: flex; flex-direction: column; } .goodsTitleBox{ height: .65rem; } .goodsTitle{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .2rem; word-break: break-all; color: #000; } .goodsTitle .preTag{ border-radius: .04rem; color: #FFF; background-color: cornflowerblue; font-size: .12rem; padding: .02rem .04rem; vertical-align: middle; } .goodsPriceInfo{ display: flex; align-items: center; justify-content: space-between; height: 1; } .goodsPriceInfo .goodsPrice{ color: rgba(220, 90, 77, 1); font-weight: bold; font-size: .22rem; flex: 1; } .goodsCollect{ display: flex; align-items: center; } .goodsCollect .collectNumber{ color: #999999; font-size: .14rem; max-width: .8rem; padding-left: .04rem; } .goodsCollect img{ width: .16rem; height: .16rem; } .goodsReviews{ display: flex; align-items: center; padding-top: .1rem; } .reviewsNumber{ display: flex; flex: 1; color: #999999; font-size: .14rem; } .reviewsNumber .number{ padding-right: .04rem; max-width: 1rem; } .reviewsNumber .text{ flex: 1; } /* end 新的商品模块 --> */ /* <-- start 新闻中心模块 */ .newConterContainer .tabContainer{ padding-top: .5rem; } .newConterItem{ border: .01rem dashed #000000; display: flex; align-items: center; padding: .2rem .2rem .2rem .14rem; margin-bottom: .26rem; } .newsDateBox{ margin-left: .6rem; width: 1.4rem; } .newsDateBox p{ font-size: .34rem; font-weight: bold; color: #000; line-height: 1; } .newsDateBox p.year{ font-size: .18rem; color: #999999; padding-top: .04rem; } .newConterImg{ font-size: 0; } .newConterImg img{ width: 1.52rem; height: 1rem; } .newConterInfo{ flex: 1; display: flex; align-items: center; padding-left: .32rem; } .newConterInfo .newConterTitle{ font-size: .18rem; color: #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; flex: 1; padding-right: .24rem; line-height: 1.4; } .newsInfoRl{ display: flex; align-items: center; } .newsInfoRl .rlDate{ font-size: .2rem; color: #999999; display: none; } .newsInfoRl .newsMore{ border: .02rem solid #999999; border-radius: .22rem; height: .46rem; min-width: 1.5rem; max-width: 2rem; box-sizing: border-box; padding: 0 .32rem; display: flex; align-items: center; justify-content: space-between; color: #999999; font-size: .18rem; } .newsInfoRl .newsMore p{ flex: 1; } /* end 新闻中心模块 --> */ /* <-- start 超级交易模块 */ .superDealContainer{ margin-bottom: .8rem; } .superDealTitle{ font-size: .26rem; font-weight: bold; color: #000000; text-align: center; padding-bottom: .16rem; padding-top: .5rem; } .superDealContainer .newGoodsContainer{ grid-gap: .24rem .2rem; margin-bottom: .36rem; } /* end 超级交易模块 --> */ /* <-- start 盟友模块 */ .partnersTitle{ font-weight: bold; font-size: .36rem; color: #000; margin-bottom: .12rem; } .partnersList{ display: -ms-grid; display: grid; grid-template-columns: repeat(8, 1fr); grid-gap: .24rem .12rem; } .partnersItem{ height: .5rem; font-size: 0; display: flex; align-items: center; justify-content: center; } .partnersItem .partnersLogo{ object-fit: contain; width: 1rem; height: 100%; } /* end 盟友模块 --> */ @media (max-width: 1320px) { #main{ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .sectionContainer{ padding: 0 .12rem 0 .12rem; } .newGoodsContainer{ grid-template-columns: repeat(3, 1fr); grid-gap: .3rem .24rem; } .partnersList{ grid-template-columns: repeat(6, 1fr); } } @media (max-width: 899px) { .swiperContainer{ height: 4.6rem; } .superDealContainer{ margin-bottom: .5rem; } .newGoodsContainer{ grid-template-columns: repeat(2, 1fr); grid-gap: .2rem .14rem !important; } .newGoodsItem{ height: 5.2rem; } .newGoodsTag{ padding: 0 .1rem; max-width: 1.5rem; font-size: .2rem; border-radius: 0 0 .18rem 0; } .goodsImgBox{ height: 3rem; } .newGoodsTag{ font-size: .24rem; } .goodsTitleBox{ height: .92rem; } .goodsTitle{ font-size: .28rem; line-height: 1.3; } .goodsTitle .preTag{ font-size: .2rem; padding: .02rem .06rem; } .goodsPriceInfo .goodsPrice{ font-size: .32rem; } .goodsCollect .collectNumber{ font-size: .22rem; padding-left: .08rem; } .goodsCollect img{ width: .24rem; height: .24rem; } .superDealTitle{ font-size: .3rem; padding-bottom: .32rem; } .superDealContainer .newGoodsContainer{ margin-bottom: .42rem; } .reviewsNumber{ font-size: .22rem; } .partnersList{ grid-template-columns: repeat(4, 1fr); } .newConterItem{ padding: .24rem .2rem .24rem .14rem; } .newConterItem .newsDateBox{ display: none; } .newsInfoRl .rlDate{ display: block; } .newConterItem .newConterImg img{ width: 1.88rem; height: 1.4rem; } .newConterItem .newConterInfo{ flex-direction: column; justify-content: space-between; min-height: 1.4rem; } .newConterInfo .newConterTitle{ flex: none; font-size: .28rem; line-height: 1.3; } .newConterItem .newsInfoRl{ justify-content: space-between; width: 100%; } .newsInfoRl .newsMore{ min-width: 1.2rem; max-width: 1.6rem; padding: 0 .2rem; font-size: .2rem; } } @media (max-width: 750px) { .swiperContainer{ height: 3.6rem; } .tabContainer .tabItem{ flex: 1; padding: 0 !important; height: .66rem; max-width: 33%; border-radius: .12rem; } .tabItem .tabName{ font-size: .28rem; } .tabItem .tabUnderline{ width: .7rem; } .newGoodsContainer{ grid-gap: .12rem .12rem !important; } .partnersTitle{ margin-bottom: .12rem; } .partnersList{ grid-template-columns: repeat(3, 1fr); } .partnersItem{ height: .7rem; } }