.page-order {
  font-size: 24rpx;

  image {
    width: 100%;
    height: 100%;
  }

  /* 搜索框 */
  .search-box {
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 99;
    left: 0;
    right: 0;
    top: 0;
    max-width: 750rpx;
    margin: auto;
    background: #fff;
    padding: 20rpx 30rpx;

    .back-icon {
      display: inline-block;
      width: 34rpx;
      height: 34rpx;
    }
    .search {
      width: 100%;
      height: 60rpx;
      background: #f5f5f5;
      border-radius: 60rpx;
      display: flex;
      align-items: center;

      .icon {
        width: 24rpx;
        height: 24rpx;
        font-size: 0;
        margin-left: 20rpx;
      }

      .text {
        color: #999;
        margin-left: 10rpx;
      }
    }
  }

  /* 筛选 */
  .tab {
    position: fixed;
    top: 98rpx;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20rpx 30rpx 30rpx;
    background: #fff;
    box-shadow: 0 6rpx 6rpx rgba(0,0,0,.01);
    border-radius: 0 0 10rpx 10rpx;
    .item {
      position: relative;
      line-height: 28rpx;
      padding: 0 10rpx;
      &::after {
        position: absolute;
        bottom: -10rpx;
        left: 14%;
        right: 14%;
        display: block;
        width: auto;
        height: 4rpx;
        border-radius: 4rpx;
        content: " ";
        font-size: 0;
        background: #fff;
      }
    }
    .item.active {
      font-weight: 600;
      &::after {
        background: linear-gradient(to right, #fc1b35, #fff);
      }
    }
  }

  /* 订单 */
  .order-box {
    padding-top: 178rpx;
    .item {
      background: #fff;
      border-radius: 10rpx;
      margin-top: 20rpx;
      padding: 0 30rpx;
      .shop-info {
        display: flex;
        align-items: center;
        position: relative;
        padding: 30rpx 0;
        overflow: hidden;
        .shop {
          flex: 1;
          display: flex;
          align-items: center;
          .icon {
            width: 24rpx;
            height: 24rpx;
            font-size: 0;
            margin-right: 10rpx;
          }
          .name {
            font-weight: 600;
            max-width: 88%;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
        .status {
          color: #fc1b35;
        }
        .order-complete {
          position: absolute;
          top: -20rpx;
          right: 64rpx;
          width: 90rpx;
          height: 90rpx;
          font-size: 0;
        }
        .del {
          width: 24rpx;
          height: 24rpx;
          font-size: 0;
          padding: 10rpx;
          background: #f3f3f3;
          border-radius: 50%;
          margin-left: 10rpx;
        }
      }
    }
  }

  /* 单商品 */
  .order-box {
    .item {
      .single-prod {
        display: flex;
        align-items: center;
        padding-bottom: 30rpx;
        .prod-img {
          width: 160rpx;
          height: 160rpx;
          border-radius: 10rpx;
          display: flex;
          justify-content: center;
          align-items: center;
          overflow: hidden;
          font-size: 0;
        }
        .text-box {
          flex: 1;
          margin-left: 20rpx;
          align-self: flex-start;
          position: relative;
          height: 160rpx;
          .name {
            max-height: 64rpx;
            line-height: 32rpx;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
          }
          .sku {
            margin-top: 10rpx;
            font-size: 20rpx;
            display: flex;
            align-items: center;
            .sku-text {
              color: #999;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 1;
              overflow: hidden;
              text-overflow: ellipsis;
              word-break: break-word;
              max-width: 70%;
              margin-right: 20rpx;
            }
            .activity-logo {
              margin-top: 4rpx;
              background: #fc1b35;
              color: #fff;
              padding: 4rpx 8rpx;
              border-radius: 6rpx;
              display: inline-block;
              white-space: nowrap;
              margin-right: 20rpx;
            }
            .activity-logo.pick-up {
              margin-right: 0;
            }
          }
          .price-box {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 4rpx;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            line-height: 1;
            .price {
              color: #333;
            }
            .count {
              color: #999;
              margin-right: 20rpx;
            }
          }
        }
      }
    }
  }

  /* 多商品 */
  .order-box {
    .item {
      .many-prods {
        position: relative;
        padding-bottom: 30rpx;
        .img-box {
          white-space: nowrap;
          .img {
            position: relative;
            display: inline-block;
            width: 130rpx;
            height: 130rpx;
            font-size: 0;
            border-radius: 10px;
            overflow: hidden;
            margin-left: 10rpx;
            &:first-child {
              margin-left: 0;
            }
          }
          .count {
            position: absolute;
            right: 0;
            bottom: 0;
            padding: 2rpx 14rpx;
            background: rgba(0,0,0,.3);
            font-size: 20rpx;
            line-height: 24rpx;
            border-radius: 10rpx 0 10rpx 0;
            color: #fff;
            font-family: PingFangSC-Medium, tahoma;
          }
        }
      }
    }
  }

  /* 操作 */
  .order-box {
    .item {
      .action-box {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 30rpx 0;
        box-shadow: 0 -6rpx 6rpx rgba(0,0,0,.01);
        .number-box {
          display: flex;
          align-items: baseline;
          margin-bottom: 16rpx;
          .price {
            color: #333;
            .score-apart {
              padding-left: 6rpx;
              font-size: 26rpx;
            }
          }
          .count {
            color: #999;
            margin: 0 20rpx;
          }
        }
        .btn-box {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          margin-left: auto;
          .btn {
            padding: 10rpx 26rpx;
            border: 2rpx solid #ddd;
            border-radius: 60rpx;
            margin-left: 20rpx;
          }
          .btn.btn-r {
            border-color: #fc1b35;
            color: #fc1b35;
          }
        }
      }
      .single-prod {
        .text-box {
          .sku {
            .presale-logo {
              display: flex;
              align-items: center;
              margin-top: 4rpx;
              white-space: nowrap;
              flex: 1;
              .activity-logo {
                margin-right: 0;
                margin-top: 0;
              }
            }
            .activity-logo.pick-up {
              + {
                .presale-logo {
                  margin-left: 20rpx;
                }
              }
            }
          }
        }
      }
    }
  }

  .price-box {
    font-size: 12px;
    .price{
      .big {
        font-size: 16px;
      }
    }
  }

  .number-box {
    font-size: 12px;
    .price{
      .big {
        font-size: 16px;
      }
    }
  }
}

.home {
  .home-icon {
    position: fixed;
    bottom: 190rpx;
    right: 30rpx;
    width: 120rpx;
    height: 120rpx;
  }
}
