/* pages/orders/orders.wxss */
page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F4F4F4;
}

.container {
  display: flex;
  flex-direction: column;
}

.record-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  overflow-y: auto;
}

.record-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28rpx 30rpx 16rpx;

  >view {
      font-size: 32rpx;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.4);

      &.active {
          font-size: 32rpx;
          font-family: PingFangSC-Semibold, PingFang SC;
          font-weight: 600;
          color: #131415;
          position: relative;
          z-index: 2;

          &::before {
              content: "";
              position: absolute;
              left: 50%;
              margin-left: -17rpx;
              bottom: -12rpx;
              z-index: -1;
              width: 34rpx;
              height: 4rpx;
              background: #534E49;
          }
      }
  }
}

.record-list {
  flex: 1;
  overflow-y: scroll;
  box-sizing: border-box;
}

.list-item-group {
  padding-bottom: 88rpx;
}

.list-item {
  background: #FFFFFF;
  border-radius: 20rpx;
  margin: 24rpx 26rpx 0;
  padding: 24rpx 24rpx 20rpx;

  .item-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 30rpx;
    line-height: 48rpx;
    padding-bottom: 24rpx;
    border-bottom: 1px solid #F2F2F2;
    margin-bottom: 24rpx;
    
    .item-mid {
      color: #131415;
      font-size: 28rpx;
      color: #999999;
      font-weight: 400;
    }

    > text {
      color: #777777;
    }

    .red {
      color: #DDA64C;
    }
  }

  .item-content {
    display: flex;

    .goods-icon {
      width: 140rpx;
      height: 140rpx;
      margin-right: 24rpx;
      flex-shrink: 0;
      border-radius: 6px;
      overflow: hidden;
    }

    .goods-desc {
      flex: 1 auto;
      display: flex;
      flex-direction: column;
    }

    .goodsInfo {
      display: flex;
      justify-content: space-between;
      padding-top: 4rpx;
      .goods-name {
        flex: 1 auto;
        white-space: nowrap;
        overflow: hidden;
        font-weight: 600;
        font-size: 28rpx;
        text-overflow: ellipsis;
        max-width: 320rpx;
      }
      .goods-price {
        flex-shrink: 0;
        font-family: DINAlternate, DINAlternate;
        font-weight: bold;
        font-size: 28rpx;
        color: #131415;
        line-height: 48rpx;
      }
    }

    .goods-type {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12rpx;
      .goods-card {
        background: #FDF2E2;
        border-radius: 6rpx;
        font-size: 26rpx;
        color: #A76D1C;
        line-height: 36rpx;
        padding: 0 12rpx;
      }
      .goods-num {
        font-size: 28rpx;
        color: #777777;
        line-height: 36rpx;
      }
    }

  }

  .item-footer {
    padding-top: 18rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .order-price {
      font-weight: 600;
      font-size: 28rpx;
      color: #131415;
      line-height: 48rpx;

      .price {
        font-family: DINAlternate, DINAlternate;
        font-weight: bold;
        font-size: 28rpx;
        color: #FE2451;
        line-height: 48rpx;
      }
    }

    button {
      margin: 0;
      border-radius: 36rpx;
      background-color: #FFFFFF;
      border: 2rpx solid #DCDCDC;
      font-weight: 500;
      font-size: 28rpx;
      color: #333333;
      width: auto;
      padding: 10rpx 22rpx;
      line-height: 40rpx;
    }
    .sure {
      background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
      border-radius: 26rpx;
      border: none;
      color: #FFFFFF;
    }
  }
}

.empty-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -80%);
  font-size: 32rpx;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #999999;

  image {
    width: 408rpx;
    height: 204rpx;
  }

  .empty-text {
    font-size: 28rpx;
    color: #777777;
    line-height: 40rpx;
    text-align: center;
    padding-top: 36rpx;
  }
}