page{background-color: #f5f5f5;}

.title{font-size: 42rpx;color: #333;line-height: 59rpx;margin-bottom: 32rpx;font-weight: 600;}

.home-top{position: relative;height: 391rpx;padding-left: 40rpx;overflow: hidden;color: #fff;}
.home-top-bg{width: 100%;height: 100%;position: absolute;left: 0;top: 0;z-index: -1;}
.home-top-til{margin-top: 120rpx;font-size: 42rpx;line-height: 49rpx;text-indent: -0.5em;}
.home-top-subtil{font-size: 26rpx;line-height: 37rpx;}

.swiper-wrap{margin: -151rpx auto 32rpx;width: 670rpx;height: 320rpx;overflow: hidden;border-radius: 16rpx;position: relative;}
.swiper{height: 100%;}
.adv-item{height: 100%;}
.swiper-wrap .pic{width: 100%;height: 100%;}

.dots-container{position: absolute;right: 24rpx;bottom: 24rpx;display: flex;justify-content: center;}
.dot {margin: 0 8rpx;width: 16rpx;height: 8rpx;background: #fff;border-radius: 4rpx;opacity: 0.7;}
.dot.active {width: 36rpx;opacity: 1;}

.buy-now{display: flex;box-sizing: border-box;padding-right: 54rpx;margin-top: 38rpx;margin-bottom: 32rpx;height: 112rpx;background: linear-gradient(to right,rgba(255,255,255,0) 20%,#fff 100% );box-shadow: 0px 0rpx 12rpx 0px rgba(0, 0, 0, 0.04);border-radius: 62rpx 100rpx 100rpx 0px;align-items: center;}
.buy-now-imgwrap{width: 270rpx;display: flex;align-items: flex-end;justify-content: center;margin-right: 37rpx;height: 100%;background: linear-gradient(90deg, #FFF900 20rpx, #FFD200 100%);border-radius: 62rpx 0px 61rpx 0px;box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.04);}
.buy-now-img{width: 166rpx;height: 134rpx;}
.buy-now-text{flex: 1;}
.buy-now-text-big{font-size: 36rpx;color: #333;line-height: 43rpx;}
.buy-now-text-small{font-size: 24rpx;color: #999;line-height: 33rpx;letter-spacing: 1rpx;}
.buy-now-icon{margin-right: 0;}
.buy-now-icon .iconfont{font-size: 44rpx;}

.type-nav{display: flex;align-items: center;margin-bottom: 32rpx;}
.type-nav-item{flex: 1;text-align: center;position: relative;}
.type-nav-item-til{font-size: 32rpx;color: #333;line-height: 45rpx;margin-bottom: 6rpx;font-weight: 500;}
.type-nav-item-subtil{font-size: 24rpx;color: #999;line-height: 33rpx;font-weight: 400;}
.type-nav-item.active .active-bg{width: 78rpx;margin-left: -39rpx;height: 54rpx;margin-top: -27rpx;position: absolute;left: 50%;top: 50%;z-index: -1;}

.product-list{display: flex;justify-content: space-between;flex-wrap: wrap;}
.product-list-item{width: 200rpx;height: 200rpx;position: relative;margin-bottom: 18rpx;overflow: hidden;border-radius: 16rpx;text-align: center;}
.product-list-item .product-img{width: 100%;height: 100%;}
.product-list-item .product-text{position: absolute;left: 0;bottom: 0;right: 0;height: 56rpx;line-height: 56rpx;font-size: 24rpx;color: #fff;padding-left: 16rpx;overflow: hidden;text-overflow: ellipsis;background: rgba(0, 0, 0, 0.4);}

.rank-wrap{margin-bottom: 44rpx;border-radius: 16rpx;box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.04);}
.rank-tab{display: flex;background-color: #fff;margin-bottom: 8rpx;box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.04);border-radius: 16rpx;}
.rank-tab-item{flex: 1;position: relative;height: 86rpx;line-height: 86rpx;text-align: center;font-size: 28rpx;color: #333;}
.rank-tab-item.active{color: #26D18B;}
.rank-tab-item.active::after{content: '';width: 130rpx;margin-left: -65rpx;height: 4rpx;background-color: #26D18B;border-radius: 2rpx;position: absolute;left: 50%;bottom: 0;}
.rank-top{display: flex;justify-content: center;border-radius: 16rpx 16rpx 0 0 ;padding: 105rpx 0 16rpx;background-color: #fff;position: relative;}
.rank-top-item{width: 210rpx;text-align: center;}
.rank-top-imgwrap{position: relative;margin-bottom: 12rpx;}
.rank-top-bg{width: 100%;height: 61rpx;position: absolute;left: 0;bottom: 0;}
.rank-top-photo{width: 144rpx;height: 144rpx;border-radius: 50%;}
.rank-top-name{font-size: 28rpx;color: #333;line-height: 40rpx;font-weight: 500;}
.rank-top-carbon{font-size: 20rpx;color: #999;}
.rank-wrap .rank-top-item:nth-child(2){transform: scale(0.9);transform-origin: bottom;}
.rank-wrap .rank-top-item:nth-child(3){transform: scale(0.8);transform-origin: bottom;}
.my-rank-wrap{flex: unset;position: absolute;top: 24rpx;right: 0;align-items: center;display: flex;}
.my-rank-photo{width: 80rpx;height: 80rpx;position: relative;right: -30rpx;box-sizing: border-box;border-radius: 50%;overflow: hidden;border: 2rpx solid #fff;}
.my-rank-photo .photo{width: 100%;height: 100%;}
.my-rank-text{padding: 7rpx 16rpx 0 45rpx;height: 80rpx;box-sizing: border-box;color: #fff;background: linear-gradient(139deg, #43D394 0%, #18C197 100%);box-shadow: 0px 10rpx 15rpx 0px rgba(0, 0, 0, 0.1), 0px 7rpx 14rpx 0px rgba(0, 0, 0, 0.08), 0px 3rpx 12rpx 0px rgba(0, 0, 0, 0.06);}
.my-rank-text .my-rank{font-size: 28rpx;line-height: 40rpx;}
.my-rank-text .my-rank-num{font-size: 20rpx;line-height: 28rpx;}
.rank-list-header{display: flex;align-items: center;height: 68rpx;font-size: 24rpx;color: #666;text-align: center;}
.rank-list-header-rank{width: 128rpx;}
.rank-list-header-user{flex: 1;}
.rank-list-header-carbon{width: 170rpx;margin-left: 0;}
.rank-list{overflow: hidden;background-color: #fff;padding: 0 40rpx 0 0;border-radius: 0 0 16rpx 16rpx;}
.rank-list-item{display: flex;align-items: center;margin: 24rpx 0;padding-bottom: 31rpx;position: relative;}
.rank-list-item::after{content: '';width: calc( 100% - 128rpx );height: 2px;background-color: #EDEEED;position: absolute;right: 0;bottom: 0;}
.rank-list .rank-list-item:last-of-type::after{height: 0;}
.rank-list-rank{width: 128rpx;text-align: center;font-size: 32rpx;color: #999;}
.rank-list-user{flex: 1;display: flex;align-items: center;overflow: hidden;}
.rank-list-user .photo{width: 88rpx;height: 88rpx;border-radius: 50%;margin-right: 24rpx;}
.rank-list-user .name{font-size: 28rpx;color: #333;flex: 1;}
.rank-list-carbon{width: 170rpx;margin-left: 0;font-size: 26rpx;color: #26D18B;line-height: 37rpx;}


