index.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. page{background-color: #f5f5f5;}
  2. .title{font-size: 42rpx;color: #333;line-height: 59rpx;margin-bottom: 32rpx;font-weight: 600;}
  3. .home-top{position: relative;height: 391rpx;padding-left: 40rpx;overflow: hidden;color: #fff;}
  4. .home-top-bg{width: 100%;height: 100%;position: absolute;left: 0;top: 0;z-index: -1;}
  5. .home-top-til{margin-top: 120rpx;font-size: 42rpx;line-height: 49rpx;text-indent: -0.5em;}
  6. .home-top-subtil{font-size: 26rpx;line-height: 37rpx;}
  7. .swiper-wrap{margin: -151rpx auto 32rpx;width: 670rpx;height: 320rpx;overflow: hidden;border-radius: 16rpx;position: relative;}
  8. .swiper{height: 100%;background:transparent;}
  9. .adv-item{height: 100%;}
  10. .swiper-wrap .pic{width: 100%;height: 100%;}
  11. .dots-container{position: absolute;right: 24rpx;bottom: 24rpx;display: flex;justify-content: center;}
  12. .dot {margin: 0 8rpx;width: 16rpx;height: 8rpx;background: #fff;border-radius: 4rpx;opacity: 0.7;}
  13. .dot.active {width: 36rpx;opacity: 1;}
  14. .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;}
  15. .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);}
  16. .buy-now-img{width: 166rpx;height: 134rpx;}
  17. .buy-now-text{flex: 1;}
  18. .buy-now-text-big{font-size: 36rpx;color: #333;line-height: 43rpx;}
  19. .buy-now-text-small{font-size: 24rpx;color: #999;line-height: 33rpx;letter-spacing: 1rpx;}
  20. .buy-now-icon{margin-right: 0;}
  21. .buy-now-icon .iconfont{font-size: 44rpx;}
  22. .type-nav{display: flex;align-items: center;margin-bottom: 32rpx;}
  23. .type-nav-item{flex: 1;text-align: center;position: relative;}
  24. .type-nav-item-til{font-size: 32rpx;color: #333;line-height: 45rpx;margin-bottom: 6rpx;font-weight: 500;}
  25. .type-nav-item-subtil{font-size: 24rpx;color: #999;line-height: 33rpx;font-weight: 400;}
  26. .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;}
  27. .product-list{display: flex;justify-content: space-between;flex-wrap: wrap;}
  28. .product-list::after{content: '';width: 200rpx;}
  29. .product-list-item{width: 200rpx;height: 200rpx;position: relative;margin-bottom: 18rpx;overflow: hidden;border-radius: 16rpx;text-align: center;}
  30. .product-list-item:nth-child(3n-1){margin-left: 10rpx;margin-right: 10rpx;}
  31. .product-list-item .product-img{width: 100%;height: 100%;}
  32. .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;padding-right: 16rpx;overflow: hidden;text-overflow: ellipsis;background: rgba(0, 0, 0, 0.4);}
  33. .rank-wrap{margin-bottom: 44rpx;border-radius: 16rpx;box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.04);}
  34. .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;}
  35. .rank-tab-item{flex: 1;position: relative;height: 86rpx;line-height: 86rpx;text-align: center;font-size: 28rpx;color: #333;}
  36. .rank-tab-item.active{color: #26D18B;}
  37. .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;}
  38. .rank-top{display: flex;justify-content: space-between;border-radius: 16rpx 16rpx 0 0 ;padding: 105rpx 29rpx 16rpx;background-color: #fff;position: relative;}
  39. .rank-top-item{width: 210rpx;text-align: center;}
  40. .rank-top-item.rank-top-2{width: 190rpx;padding-top: 12rpx;}
  41. .rank-top-item.rank-top-3{width: 170rpx;padding-top: 25rpx;}
  42. .rank-top-item.rank-top-3 .rank-top-text{bottom: 0;}
  43. .rank-top-imgwrap .rank-bg{position: absolute;}
  44. .rank-top-imgwrap .rank-left{left: 0;}
  45. .rank-top-imgwrap .rank-right{right: 0;}
  46. .rank-top-imgwrap .rank-center{bottom: 0;}
  47. .rank-top-1 .rank-right,
  48. .rank-top-1 .rank-left{width: 55rpx;height: 43rpx;bottom: 16rpx;z-index: 1;}
  49. .rank-top-1 .rank-center{width: 179rpx;height: 46rpx;left: 16rpx;z-index: 3;}
  50. .rank-top-2 .rank-right,
  51. .rank-top-2 .rank-left{width: 49rpx;height: 39rpx;bottom: 15rpx;z-index: 1;}
  52. .rank-top-2 .rank-center{width: 161rpx;height: 42rpx;left: 14rpx;z-index: 3;}
  53. .rank-top-3 .rank-right,
  54. .rank-top-3 .rank-left{width: 44rpx;height: 35rpx;bottom: 13rpx;z-index: 1;}
  55. .rank-top-3 .rank-center{width: 145rpx;height: 38rpx;left: 12rpx;z-index: 3;}
  56. .rank-top-photo{border: 1px solid transparent;background-clip: padding-box;position: relative;}
  57. .rank-top-photo::after {content: "";display: block;position: absolute;top: -1px;right: -1px;bottom: -1px;left: -1px;border-radius: 50%;background: linear-gradient(180deg, rgba(253, 227, 127, 1), rgba(251, 189, 78, 1)) 1 1;z-index: -1;}
  58. /* .rank-top-photo{border:1px solid;} */
  59. .rank-top-1 .rank-top-photo{border: 1px solid #FBBD4E;border-color: #FDE37F;}
  60. .rank-top-2 .rank-top-photo{width: 130rpx;height: 130rpx;border-color: #8DC3FF;}
  61. .rank-top-3 .rank-top-photo{width: 117rpx;height: 117rpx;border-color: #FBBD4E;}
  62. .rank-top-text{font-size: 20rpx;color: #fff;position: absolute;left: 0;right: 0;bottom: 4rpx;text-align: center;z-index: 4;}
  63. .rank-top-imgwrap{position: relative;margin-bottom: 12rpx;}
  64. .rank-top-bg{width: 100%;height: 61rpx;position: absolute;left: 0;bottom: 0;}
  65. .rank-top-photo{position: relative;width: 144rpx;height: 144rpx;border-radius: 50%;z-index: 2;}
  66. .rank-top-name{font-size: 28rpx;color: #333;line-height: 40rpx;font-weight: 500;}
  67. .rank-top-carbon{font-size: 20rpx;color: #999;}
  68. .my-rank-wrap{flex: unset;position: absolute;top: 24rpx;right: 0;align-items: center;display: flex;}
  69. .my-rank-photo{width: 80rpx;height: 80rpx;position: relative;right: -30rpx;box-sizing: border-box;border-radius: 50%;overflow: hidden;border: 2rpx solid #fff;}
  70. .my-rank-photo .photo{width: 100%;height: 100%;}
  71. .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);}
  72. .my-rank-text .my-rank{font-size: 28rpx;line-height: 40rpx;}
  73. .my-rank-text .my-rank-num{font-size: 20rpx;line-height: 28rpx;}
  74. .rank-list-header{display: flex;align-items: center;height: 68rpx;font-size: 24rpx;color: #666;text-align: center;}
  75. .rank-list-header-rank{width: 128rpx;}
  76. .rank-list-header-user{flex: 1;}
  77. .rank-list-header-carbon{width: 170rpx;margin-left: 0;padding-right: 40rpx;}
  78. .rank-list{overflow: hidden;background-color: #fff;padding: 0 40rpx 0 0;border-radius: 0 0 16rpx 16rpx;}
  79. .rank-list-item{display: flex;align-items: center;margin: 24rpx 0;padding-bottom: 31rpx;position: relative;}
  80. .rank-list-item::after{content: '';width: calc( 100% - 128rpx );height: 2px;background-color: #EDEEED;position: absolute;right: 0;bottom: 0;}
  81. .rank-list .rank-list-item:last-of-type::after{height: 0;}
  82. .rank-list-rank{width: 128rpx;text-align: center;font-size: 32rpx;color: #999;}
  83. .rank-list-user{flex: 1;display: flex;align-items: center;overflow: hidden;}
  84. .rank-list-user .photo{width: 88rpx;height: 88rpx;border-radius: 50%;margin-right: 24rpx;}
  85. .rank-list-user .name{font-size: 28rpx;color: #333;flex: 1;}
  86. .rank-list-carbon{width: 170rpx;margin-left: 0;font-size: 26rpx;color: #26D18B;line-height: 37rpx;}
  87. .rank-wrap >>> .nodata {width: auto;padding: 100rpx 0;background-color: #fff;border-radius: 16rpx;}
  88. .product-list .nodata{padding: 100rpx 0;}