/* packageF/wxFriendExtend/friendRanking/friendRanking.wxss */

view,
text {
  box-sizing: border-box;
}

.rank-wrap {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 50rpx 30rpx calc(120rpx + env(safe-area-inset-bottom)) 30rpx;
  background-color: var(--bgColor);
  background-image: url("https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/activity_index@2x.png");
}

.user-info {
  display: flex;
  align-items: center;
  padding-left: 10rpx;
}

.user-info .avatar {
  width: 120rpx;
  height: 120rpx;
  border-radius: 50%;
  border: 3px solid #eee;
  overflow: hidden;
}

.user-info .avatar .img {
  width: 120rpx;
  background: pink;
}

.user-info .user-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120rpx;
  margin-left: 20rpx;
  padding-bottom: 11rpx;
}

.user-info .user-content .user-name {
  font-size: 36rpx;
  color: #fff;
}

.user-info .user-content .user-rank .user-rank-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2rpx 20rpx;
  font-size: 24rpx;
  color: #eee;
  background-color: #f14e4e;
}

.invitation {
  display: flex;
  align-items: center;
  height: 120rpx;
  padding: 0 32rpx;
  margin-top: 41rpx;
  background-color: #fff;
  border-radius: 20rpx;
}

.invitation .invitation_text {
  flex: 1;
  line-height: 24rpx;
  color: #333;
}

.invitation .invitation_text .num {
  font-size: 30rpx;
  color: #ff2c29;
}

.invitation .invitation_see {
  font-size: 24rpx;
  color: #595959;
}

.rank-info {
  margin-top: 30rpx;
  background-color: #fff;
  border-radius: 20rpx;
}

.rank-info .rank-top {
  position: relative;
  padding: 15rpx 0;
}

.rank-info .title {
  margin-bottom: 25rpx;
  text-align: center;
  font-size: 18px;
  font-weight: bolder;
  letter-spacing: 4rpx;
  color: var(--bgColor);
}

.rank-info .title-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bgColor);
  opacity: 0.2;
}

.rank-info .hander {
  display: flex;
  width: 630rpx;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.hander .hander-left {
  width: 100rpx;
}

.hander .hander-center {
  flex: 1;
  text-align: left;
  padding-left: 87rpx;
}

.hander .hander-right {
  width: 216rpx;
}

.rank-list {
  margin-top: 25rpx;
  padding-bottom: 35rpx;
}

.rank-list .item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 660rpx;
  margin: 0 auto;
  margin-top: 25rpx;
  box-sizing: border-box;
  padding: 5rpx 15rpx;
  border-radius: 10rpx;
  overflow: hidden;
  background-color: #f5f5f5;
}

.rank-list .item:nth-child(-n+3) .item-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bgColor);
  opacity: 0.1;
}

.rank-list .left {
  position: relative;
  width: 100rpx;
  height: 100rpx;
  background-image: url("https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/rank_4@2x.png");
  overflow: hidden;
}

.rank-list .item:nth-child(1) .left {
  background-image: url("https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/rank_1@2x.png");
}

.rank-list .item:nth-child(2) .left {
  background-image: url("https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/rank_2@2x.png");
}

.rank-list .item:nth-child(3) .left {
  background-image: url("https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/rank_3@2x.png");
}

.left .friend-img {
  position: absolute;
  top: 54%;
  left: 49%;
  transform: translate(-50%, -50%);
  width: 82rpx;
  height: 82rpx;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.99;
}

.left .friend-rank {
  position: absolute;
  bottom: 0;
  right: 0;
  display: inline-block;
  width: 35rpx;
  height: 35rpx;
  background: #f14e4e;
  border-radius: 50%;
  font-size: 10px;
  line-height: 30rpx;
  text-align: center;
  color: #fff;
}

.item .center {
  flex: 1;
  text-align: left;
  padding-left: 25rpx;
  color: var(--bgColor);
}

.item .right {
  font-size: 24rpx;
  color: #f14e4e;
}

.rank-list .more {
  margin-top: 48rpx;
  font-size: 24rpx;
  color: #f14e4e;
  text-align: center;
}

.sharePopup .poster-img {
  width: 100%;
  height: 100%;
  border-radius: 10rpx;
}

.sharePopup .tipText {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  text-align: center;
  margin-bottom: -20rpx;
  color: #fff;
}

.rank-empty {
  font-size: 16px;
  color: #999;
  text-align: center;
  margin-top: 80rpx;
}
