.balance {
  width: 100vw;
  min-height: 100vh;
  background-color: rgb(247, 247, 247);
  padding: 32rpx;
  padding-bottom: 50rpx;
  box-sizing: border-box;
  .balance-header {
    width: 100%;
    height: 304rpx;
    background: url("@/static/image/user/consumptionPrice_bg.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
    padding: 0 48rpx;
    padding-top: 48rpx;
    box-sizing: border-box;
    .header-top {
      @include flex(space-between, null, null);
      .price-left {
        @include flex(center, column, 10rpx);
        text {
          &:nth-of-type(1) {
            font-size: 56rpx;
            background: linear-gradient(180deg, #ffffff 0%, #b8cdff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 600;
            // background: linear-gradient(180deg, #ffffff 0%, #ffd5b8 100%);
            // -webkit-background-clip: text;
            // -webkit-text-fill-color: transparent;
          }
          &:nth-of-type(2) {
            color: #ffffff;
            font-size: 28rpx;
          }
        }
      }
      .price-right {
        width: 160rpx;
        height: 64rpx;
        text-align: center;
        line-height: 64rpx;
        font-size: 32rpx;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.4);
        border: 2rpx solid rgba(255, 255, 255, 0.39);
        color: #ffffff;
        border-radius: 50rpx;
      }
    }
    .header-bottom {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 64rpx);
      height: 96rpx;
      border-top: 2rpx solid rgba(255, 255, 255, 0.4);
      @include flex(flex-start, null, 104rpx);
      .text-box {
        @include flex(flex-start, null, 16rpx);
        text {
          &:nth-of-type(1) {
            color: rgba(255, 255, 255, 0.8);
            font-size: 24rpx;
          }
          &:nth-of-type(2) {
            color: #ffffff;
            font-size: 32rpx;
            font-weight: 600;
          }
        }
      }
    }
  }
  .balance-container {
    width: 100%;
    margin-top: 32rpx;
    .text-tab {
      @include flex(flex-start, null, 64rpx);
      view {
        color: rgba(0, 0, 0, 0.4);
        font-size: 32rpx;
        padding-bottom: 10rpx;
      }
      .active {
        position: relative;
        color: rgba(0, 0, 0, 0.9);
        &::after {
          content: "";
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          bottom: 0;
          width: 32rpx;
          height: 8rpx;
          background-color: #ff604e;
          border-radius: 4rpx;
        }
      }
    }
    .record-list {
      margin-top: 16rpx;
      width: 100%;
      background-color: #ffffff;
      border-radius: 16rpx;
      .record-item {
        width: 100%;
        height: 168rpx;
        border-bottom: 2rpx solid #f1f1f1;
        padding: 32rpx 24rpx 32rpx 32rpx;
        box-sizing: border-box;
        @include flex(space-between, null, null);
        .item-left {
          @include flex(center, column, 16rpx);
          align-items: flex-start;
          text {
            &:nth-of-type(1) {
              color: rgba(0, 0, 0, 0.9);
              font-size: 28rpx;
              font-weight: 600;
            }
            &:nth-of-type(2) {
              color: rgba(0, 0, 0, 0.4);
              font-size: 28rpx;
            }
          }
        }
        .item-right {
          font-size: 28rpx;
          color: #ea5c1e;
          font-weight: 900;
        }
      }
      .no-more {
        width: 100%;
        height: 100rpx;
        text-align: center;
        line-height: 100rpx;
        font-size: 24rpx;
        color: rgba(0, 0, 0, 0.24);
      }
    }
    .empty {
      margin-top: 96rpx;
      width: 100%;
      @include flex(flex-start, column, 32rpx);
      image {
        width: 320rpx;
        height: 320rpx;
        display: block;
      }

      text {
        font-weight: 600;
        font-size: 28rpx;
        color: rgba(0, 0, 0, 0.4);
      }
    }
  }
}
