@import '../../common/style/act/mixin/mixin.scss';
@import '../../common/style/act/layout/_layout-pvp.scss';
@import '../../common/style/act/button/_button-pvp.scss';
@import '../../common/style/act/icon/_icon-pvp.scss';

//  弹框背景--start
%dialog-bg-small {
  width: 7.32rem;
  height: 4.38rem;
  padding: .3rem 0 0 .4rem;
  background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/dialog_small_bg.png) no-repeat center center;
  background-size: contain;
}

.press-act:not(.press-act--hidden-tip) {
  &.press__cover {
    background-color: rgba(13, 19, 32, .8);
    background-image: linear-gradient(180deg, rgba(25, 48, 91, 0) 73%, #19305b 100%);

    ::v-deep {
      .uni-input-placeholder,
      .uni-input-input,
      .uni-textarea-textarea {
        font-size: .2rem;
        color: #9299c6;
      }
    }
  }

  .press__dialog {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    margin: auto;
    min-height: unset;
  }

  //  关闭X按钮的图片
  $dialog-close_bg: 'https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/dialog_close.png';

  .press__close {
    position: absolute;
    right: 0;
    top: .24rem;

    @include icon_img(1.96rem, .8rem, $dialog-close_bg, center center, contain);
  }

  .press__title {
    padding-left: .3rem;
    padding-top: .12rem;
    font-size: .26rem;
    color: $color-white;
    text-shadow: 0 0 .04rem #3967b3;
  }

  // 2填写手机号[

  .press__content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 5.08rem;
    max-height: 2.2rem;
    min-height: 2.2rem;
    text-align: center;
    overflow-y: scroll;
  }

  .press__box input {
    display: block;
    width: 3.68rem;
    height: .48rem;
    font-size: $font-xxs;
    color: $color-blue-3;
    background: #112237;
    border: 1px solid #35669e;
    padding: 0 .24rem;
  }

  .press__box input::input-placeholder {
    color: $color-blue-3;
  }

  .press__message {
    margin-bottom: .16rem;
    padding: 0;
    color: $color-blue-3;
    text-align: left;
    font-size: $font-xxs;
    max-height: .56rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .press__button-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    left: .4rem;
    right: 0;
    z-index: 2;
    bottom: .4rem;
  }

  .press__dialog-phone {
    @extend %dialog-bg-small;

    .press__button-wrap {
      a {
        display: block;
        font-family: 'GAMEFONT';
        margin-right: .6rem;

        &:last-child {
          margin-right: 0;
        }
      }

      .press__btn--cancel {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.24rem;
        height: .56rem;
        line-height: normal;
        font-size: .28rem;
        background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/btn/secondary_large_btn_icon_bg.png) no-repeat center center;
        background-size: contain;
      }

      .press__btn--sure {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.24rem;
        height: .56rem;
        line-height: normal;
        font-size: .28rem;
        background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/btn/primary_large_btn_icon_bg.png) no-repeat center center;
        background-size: contain;
      }
    }
  }

  // 2填写手机号]

  /* 协议 */
  .press__treaty-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
  }

  ::v-deep {
    .press__treaty-check {
      display: block;
      -webkit-appearance: none;
      width: .4rem;
      height: .4rem;
      margin-right: .08rem;
      flex-shrink: 0;
      outline: none;
      border: 0;
      margin-left: 0;
      background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/check.png) no-repeat center center;
      background-size: contain;
      cursor: pointer;
      visibility: visible;

      &:checked,
      &.press__act-checkbox--checked {
        background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/checked.png) no-repeat center center;
        background-size: contain;
      }
    }
  }

  .press__treaty-terms {
    text-align: left;
    font-size: .2rem;
    color: #82a0cc;
    line-height: 2;
  }

  .press__treaty-desc {
    text-decoration: underline;
  }

  /* 验证码 */
  .press__box {
    position: relative;
    width: 100%;

    .press__phone-number {
      width: 100%;
      height: .48rem;
      font-size: $font-xxs;
      color: $color-blue-3;
      padding: 0 .24rem;
      background: rgba(17, 34, 55, .5);
      border: 1px solid rgba(53, 102, 158, .5);

      &::placeholder {
        color: $color-blue-3;
      }
    }

    .press__code-wrap {
      display: flex;
      align-items: center;
      width: 100%;
      margin-bottom: .16rem;
    }

    .press-act-input-wrap {
      flex: 1;
      height: .48rem;
    }

    .press__code-number {
      width: 100%;
      height: 100%;
      font-size: $font-xxs;
      color: $color-blue-3;
      padding: 0 .24rem;
      background: rgba(17, 34, 55, .5);
      border: 1px solid rgba(53, 102, 158, .5);

      &::placeholder {
        color: $color-blue-3;
      }
    }

    .press__code-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      height: .48rem;
      font-size: $font-xxs;
      color: $color-blue-3;
      padding: 0 .24rem;
      margin-left: .16rem;
      white-space: nowrap;
      border: 1px solid #2d507b;
    }

    .press__code-btn--disabled {
      color: gray;
    }
  }

  &.press__cover {
    .press__button-wrap {
      margin: auto;
      padding: 0;
    }

    .press__box input {
      margin: auto;
      text-align: left;
    }
  }

  .press-act__container {
    display: flex;
    justify-content: center;
    padding-top: .32rem;
  }

  .press-act-award {
    width: 2.08rem;
    height: 2.74rem;
    padding: 0 .16rem .04rem;
    margin-right: .24rem;
    background: url(https://image-1251917893.file.myqcloud.com/Tip-wss/award/pvp/bg.png) no-repeat center;
    background-size: 100% 100%;

    &__content {
      .press__content {
        width: 4.3rem;
      }
    }

    &__title {
      font-size: .24rem;
      color: #fff;
      text-align: center;
      padding-top: .04rem;
      padding-bottom: .4rem;
      text-shadow: 0 0 .16rem rgba(77, 149, 241, .685533);
    }

    &__image {
      display: block;
      width: 1.12rem;
      height: 1.12rem;
      margin: 0 auto;
      margin-bottom: .32rem;
    }

    &__name {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: .2rem;
      font-weight: 600;
      color: #fff;
      line-height: .24rem;
      text-align: center;
      word-break: break-all;
    }
  }
}