@import '../../common/style/gp-match/palette.scss';



.press__create-game {
  --switch-width: 2em;
  --switch-node-size: 1em;
  --switch-node-left: 0px;

  width: 100%;
  min-height: 100vh;
  background: #fcfcfc url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/picker-bg.jpg) center top;
  background-size: cover;
  background-repeat: no-repeat;
  padding-bottom: 1.6rem;
}

.press__tips-box {
  position: fixed;
  top: 3.86rem;
  right: 0;
  display: flex;
  align-items: center;
  height: .48rem;
  padding: 0 .16rem;
  background: rgba(0, 0, 0, .8);
  z-index: 2;

  .press__tips-icon {
    width: .28rem;
    height: .28rem;
    margin-right: .16rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/font/icon/icon-warn.png) no-repeat;
    background-size: 100%;
  }

  .press__tips-text {
    font-size: .18rem;
    color: #fff;
  }
}

.press__create-meta {
  position: relative;
  width: 100%;
  height: 3.36rem;
  padding-top: .62rem;
  box-sizing: border-box;
  background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/create-top-banner.png) no-repeat;
  background-size: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;

  .press__logo-wrap {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid rgba(128, 126, 134, .34);
    background: rgba(196, 196, 196, .00);
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, .25);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    .press__logo {
      height: 1.34rem;
      object-fit: contain;
    }

    .press-upload {
      flex: inherit;
    }

    .press__icon-exchange-wrap {
      width: .36rem;
      height: .36rem;
      position: absolute;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, .41);
      display: flex;
      justify-content: center;
      align-items: center;

      .icon-exchange {
        font-size: .2rem;
        color: rgba(255, 255, 255, .75);
      }
    }
  }

  .press__create-name {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .16rem;
  }

  .press__input-text,
  .press__input-text ::v-deep .uni-input-input {
    color: $color-white;
    font-size: $font-l;
    line-height: .44rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 3rem;
  }

  .press__match-name {
    color: $color-white;
    font-size: $font-l;
    line-height: .44rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }

  .icon-edit {
    margin-left: .08rem;
    font-size: .28rem;
    color: $color-white;
  }
}

// 基本信息
.press__basic-info,
.press__prize-info {
  position: relative;
  width: 7.1rem;
  min-height: 3rem;
  border: 1px solid rgba(252, 252, 252, .6);
  background: linear-gradient(89deg,
  rgba(230, 234, 239, .7) 10.72%,
  rgba(252, 252, 252, .7) 94.4%);
  box-shadow: 0 0 .2rem 0 rgba(196, 193, 205, .77);
  margin: .24rem auto 0;
  padding: .28rem;
  padding-bottom: 0;
  box-sizing: border-box;
}

.press__basic-title-wrap {
  display: flex;

  .press__basic-title {
    color: #212124;
    font-size: .28rem;
    font-weight: 600;
  }

  .press__basic-title-icon {
    width: .4rem;
    height: .4rem;
    background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/chat-message-icon.png) no-repeat;
    background-size: 100%;
    margin-right: .08rem;
  }
}

.press__form-box {
  padding: .22rem 0;
  border-bottom: 1px solid rgba(33, 33, 36, .08);

  .press__form-wran-tips {
    text-align: right;
    font-size: .22rem;
    color: #e54545;
    margin-top: .12rem;
  }

  &:last-child {
    border-bottom: 0;
  }
}

.press__form {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .press__form-label {
    color: #212124;
    font-size: .28rem;
    text-align: left;
    flex-shrink: 0;
  }

  .press__form-value-wrap {
    display: flex;
    align-items: center;
    flex: 1;

    .press__form-value {
      color: rgba(33, 33, 36, .5);
      font-size: .28rem;
      text-align: right;
      display: block;
      width: 100%;
    }

    .icon-back {
      font-size: .2rem;
      color: rgba(33, 33, 36, .5);
      transform: rotate(180deg);
    }

    .press__form-icon-back {
      width: .1rem;
      height: .22rem;
      background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/right-back.png) no-repeat;
      background-size: 100%;
      margin-left: .2rem;
    }
  }
}

// 奖品配置
.press__prize-item {
  padding: .4rem 0;
  display: flex;
  box-sizing: border-box;
}

.press__prize-image {
  position: relative;
  width: 1.3rem;
  height: 1.3rem;

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

  .press__prize-edit-icon {
    width: .4rem;
    height: .4rem;
    background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/edit-icon.png) no-repeat;
    background-size: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
  }
}

// 输入框
.press__prize-input-box {
  margin-left: .24rem;
  flex: 1;
  width: auto;

  .press__prize-option {
    position: relative;
    display: flex;
    align-items: center;
    height: .72rem;
    width: auto;
    padding: 0 .16rem;
    margin-bottom: .16rem;

    ::v-deep input,
    ::v-deep .uni-input-input,
    ::v-deep .press__prize-input {
      width: 100%;
      height: 100%;
      font-size: .24rem;
      color: #212124;
    }
  }

  .press__prize-name {
    position: relative;
    height: .72rem;
    width: auto;
    padding: 0 .16rem;

    .press__prize-name-input {
      position: relative;
      // display: flex;
      // align-items: center;
      // justify-content: center;
      color: #212124;
      font-size: .24rem;
      height: .74rem;
      width: 100%;
      resize: none;
    }
  }

  .press__prize-name::after,
  .press__prize-option::after,
  .text-black::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(33, 33, 36, .65);
    -webkit-transform: scale(.5);
    transform: scale(.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    pointer-events: none;
  }
}

// 文本
.press__prize-text-box {
  margin-left: .24rem;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .press__prize-text-title {
    color: #212124;
    font-size: .28rem;
    font-weight: 500;
  }

  .press__prize-text-desc {
    color: rgba(33, 33, 36, .75);
    font-size: .28rem;
    margin-top: .16rem;
  }
}

// 吸底按钮
.press__create-bottom-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.4rem;
  background: #f7f7f7;
  box-shadow: 0 .06rem .12rem 0 rgba(131, 131, 131, .25);
  border-top: 1px solid rgba(131, 131, 131, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;

  .press__gp-button--primary {
    width: 3.96rem;
    height: .72rem;
    line-height: .72rem;
    font-size: .4rem;
    color: #212124;
    font-family: 'PEACE';
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon/btn-normal.png) no-repeat;
    background-size: 100%;
    position: relative;
  }

  .press__preview-wrap {
    position: absolute;
    right: .72rem;
    top: 50%;
    transform: translateY(-50%);

    .press__preview-icon {
      width: .36rem;
      height: .36rem;
      background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/eyesOn-icon.png) no-repeat;
      background-size: 100%;
    }

    .press__preview-text {
      color: #212124;
      font-size: .2rem;
    }
  }
}