%state {
  width: 100%;
  height: 80rpx;
  font-size: 24rpx;
  @include flex(flex-start, null, 9rpx);
  padding-left: 32rpx;
  box-sizing: border-box;
  image {
    width: 30rpx;
    height: 30rpx;
  }
}

%info {
  width: 100%;
  padding: 32rpx;
  box-sizing: border-box;
  .info-title {
    font-size: 32rpx;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 700;
    margin-bottom: 16rpx;
  }
  .info-detail {
    width: 100%;
    padding: 32rpx;
    box-sizing: border-box;
    border-radius: 16rpx;
    background-color: #ffffff;
    @include flex(center, column, 16rpx);
    .info-box {
      width: 100%;
      @include flex(flex-start, null, 32rpx);
      text {
        font-size: 28rpx;
        &:nth-of-type(1) {
          width: 176rpx;
          text-align: start;
          color: rgba(0, 0, 0, 0.4);
        }
        &:nth-of-type(2) {
          color: #000000;
        }
      }
    }
  }
}
.order-detail {
  width: 100vw;
  min-height: 100vh;
  background-color: rgb(247, 247, 247);
  .detail-state {
    .state-error {
      @extend %state;
      background-color: #ffd2d2;
      color: #d40f0f;
    }
    .state-success {
      @extend %state;
      background-color: #c2efce;
      color: #0e852e;
    }
    .state-complete {
      @extend %state;
      background-color: #e0e0e0;
      color: rgba(0, 0, 0, 0.6);
    }
  }
  .product-detail {
    width: 100%;
    padding: 32rpx;
    box-sizing: border-box;
    background-color: #ffffff;
    .product-list {
      .product-item {
        @include flex(space-between, null, 32rpx);
        .item-left {
          width: 160rpx;
          height: 160rpx;
          border-radius: 8rpx;
          border: 2rpx solid #e7e7e7;
          image {
            width: 160rpx;
            height: 160rpx;
            border-radius: 8rpx;
          }
        }
        .item-right {
          flex: 1;
          height: 160rpx;
          @include flex(space-between, column);
          .right-title {
            width: 100%;
            height: 80rpx;
            font-size: 28rpx;
            color: #000000;
            font-weight: 600;
            //  多行文本溢出
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2; /* 控制显示的行数 */
            overflow: hidden;
            text-overflow: ellipsis;
          }
          .right-bottom {
            width: 100%;
            @include flex(space-between);
            color: #3d3d3d;
            font-size: 28rpx;
            .number {
              width: 130rpx;
              height: 48rpx;
              line-height: 48rpx;
              text-align: center;
              border-radius: 4rpx;
              background-color: #f4f4f4;
            }
          }
        }
      }
    }
    .load-more{
        margin-top: 34rpx;
        width: 100%;
        height: 40rpx;
        @include flex(center,null,8rpx);
        text{
            color: #EF530E;
            font-size: 24rpx;
        }
    }
  }
  .order-info {
    @extend %info;
  }
  .pay-info {
    @extend %info;
    .info-detail {
      .price {
        text {
          &:nth-of-type(2) {
            color: $primary-color;
            font-weight: 600;
          }
        }
      }
    }
  }
  .write-off {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 16rpx 32rpx;
    box-sizing: border-box;
    background-color: #FFFFFF;
    padding-bottom: calc(constant(safe-area-inset-bottom) + 12rpx); //兼容 IOS<11.2
    padding-bottom: calc(env(safe-area-inset-bottom) + 12rpx); //兼容 IOS>11.2
    .off-btn{
        width: 100%;
        background-color: $primary-color;
        font-size: 28rpx;
        height: 80rpx;
        text-align: center;
        line-height: 80rpx;
        color: #FFFFFF;
        font-weight: 600;
        border-radius: 16rpx;
    }
  }
}
