@import "src/assets/css/variable";
.bargain-func {
  padding: 8px;
  border-top: 8px solid $bg_f5f5f5;

  @mixin clean-button-style {
    background: transparent;
    border: none;
    -webkit-appearance: none;
  }

  @mixin row-common {
    width: 100%;
    padding: 0 10px;
    border-bottom: 1px solid $border_e7eaf1;
  }

  .intro-outer {
    width: 360px;
    height: 133px;
    border: 5px solid $color_FE2F2F;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .intro-inner {
    width: 341px;
    height: 118px;
    padding-top: 15px;
    background: $bg_FFF8EB;
    border: 1px solid $color_FE2F2F;
    border-radius: 3px;

    & > div {
      height: 100%;
    }

    p {
      font-size: $font_14;
    }

    .intro-outer {
        width: 100%;
        height: 133px;
        border: 5px solid $color_FE2F2F;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5px;
    }

    .intro-inner {
        width: 100%;
        height: 114px;
        padding-top: 15px;
        background: $bg_FFF8EB;
        border: 1px solid $color_FE2F2F;
        border-radius: 3px;
    }
    p:nth-child(1) {
      margin-bottom: 3px;
    }

    p:nth-child(2) {
      margin-bottom: 5px;
    }


    button {
      @include clean-button-style;
      width: 210px;
      height: 39px;
      border-radius: 20px;
      box-shadow: 0 5px $bg_FFA200;
      background: $bg_FFE400;
      font-size: $font_16;
      color: $color_FE2F2F;
    }
  }

  .indicator {
    color: $color_FE2F2F;
  }


  .status-outer {
    width: 360px;
    padding: 5px;
    background: $bg_FE2F2F;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .status-over {
    height: 99px !important;

    .time-tobuy {
      color: $color_FF4000;
      font-size: 12px;
      text-align: center;
      padding-top: 10px;
      .unit {
        color: $color_333;
      }

      .time {
        display: inline-block;
        width: 20px;
        height: 18px;
        background: $bg_666;
        border-radius: 2px;
        text-align: center;
        line-height: 18px;
        font-size: $font_12;
        color: $white;
      }

      .hour {
        margin-left: 7px;
      }

      .sec {
        margin-right: 5px;
      }

    }

  }

  .status-inner {
    width: 350px;
    height: 130px;
    padding: 0 10px;
    background: $white;
    border-radius: 3px;

    .first-row {
      @include row-common;
      padding: 13px 0;
      display: flex;
      justify-content: space-between;

      .bargain-over {
        display: inline-block;
        margin-left: 10px;
        padding: 0 4px;
        height: 18px;
        line-height: 18px;
        background-color: $bg_666;
        border-radius: 2px;
        font-size: 12px;
        color: $white;
      }

      .over {
        color: $color_999;
      }

      .time {
        display: inline-block;
        width: 20px;
        height: 18px;
        background: $bg_666;
        border-radius: 2px;
        text-align: center;
        line-height: 18px;
        font-size: $font_12;
        color: $white;
      }

      .hour {
        margin-left: 7px;
      }

      .sec {
        margin-right: 5px;
      }
    }

    .sec-row {
      @include row-common;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;

      & > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        border-radius: 50%;
      }

      button {
        @include clean-button-style;
        height: 26px;
        margin-left: 7px;
        background: $bg_FADD29;
        border-radius: 3px;
        font-size: $font_12;
        color: $redprice;
      }

      .name {
        font-size: 14px;
        color: $color_333;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    .third-row {
      @include row-common;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 7px 0;
      border: none;

      button {
        @include clean-button-style;
        padding: 3px 9px;
        border: 1px solid $border_f31;
        border-radius: 11px;
        color: $border_f31;
        font-size: $font_12;
      }
    }
  }
}

.overlay .bargain-close {
  color: #fff;
  font-size: 22px;
  position: relative;
  left: 50%;
  margin-left: -11px;
}

.bargain-success {

  width: 290px;
  height: 109px;
  padding: 15px 33px;
  background: $white;
  border-radius: 5px;
  text-align: center;
  margin: 100px auto 20px auto;


  .title {
    font-size: $font_16;
    margin-bottom: 5px;
  }

  p:nth-of-type(2) {
    font-size: $font_14;
    margin-bottom: 15px;
  }

  p:nth-of-type(3) {
    font-size: $font_12;
  }

  .indicator {
    color: $color_FE2F2F;
  }


  .moreMbc {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .6);
    z-index: 2;

    .content {
      width: 300px;
      height: 340px;
      background-color: $white;
      border-radius: 3px;
      margin: 130px auto 20px auto;
      position: relative;

      .title-box {
        width: 100%;
        height: 45px;
        text-align: center;
        color: $color_202426;
        font-size: 16px;
        line-height: 45px;
      }

      .more-bargain-list {
        width: 100%;
        height: 253px;
        overflow: auto;
        border-top: 1px solid $sp_e7eaf1;
        padding: 0 15px;
        background-color: $bg_f5f5f5;

        .bargain-item {
          border-bottom: 1px solid $sp_e7eaf1;
          height: 50px;
          display: flex;
          position: relative;

          .avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-top: 10px;
            margin-right: 10px;
          }


          .name {
            font-size: 14px;
            color: $color_333;
            max-width: 130px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 50px;
          }

          .bargain-status {
            line-height: 50px;
            color: $color_333;
            font-size: 14px;
            position: absolute;
            right: 0;
          }
        }

      }

    }

    .more-bargain-dec {
      width: 100%;
      position: absolute;
      bottom: 0;
      height: 42px;
      font-size: 12px;
      color: $color_FF4000;
      text-align: center;
      line-height: 42px;
    }


    .close {
      color: #fff;
      font-size: 22px;
      position: relative;
      left: 50%;
      margin-left: -11px;
    }
  }

}

.artifact-box, .use-artifact-box {
  text-align: center;

  .top-img {
    position: absolute;
    width: 135px;
    height: 67px;
    top: -67px;
    margin-left: -67px;
  }

  .top-tip {
    font-size: 16px;
    color: $color_333;
    height: 16px;
    line-height: 16px;
  }

  .middle-tip {
    font-size: 14px;
    color: $color_333;
    height: 14px;
    line-height: 14px;
    margin-top: 15px;
  }

  .btm-tip {
    font-size: 14px;
    color: $color_666;
    height: 14px;
    line-height: 14px;
    margin-top: 10px;
  }

  .use-artifact {
    background-color: $bg_fff;
    width: 84px;
    height: 24px;
    font-size: 14px;
    border: 1px solid $redprice;
    border-radius: 12px;
    margin: 20px auto 0 auto;
    color: $redprice;
  }

  .tubuy {
    display: inline-block;
    margin-top: 17px;
    width: 81px;
    height: 24px;
    background-color: $redprice;
    border-radius: 12px;
    font-size: 16px;
    color: $white;
    border: none;
  }

  .indicator {
    color: $color_FE2F2F;
  }
}

.artifact-box {
  width: 300px;
  height: 130px;
}

.use-artifact-box {
  width: 300px;
  height: 148px;

  .middle-tip {
    color: $color_666;
  }

}

