@import "../styles/imgVar.less";
.keyboard {
  &__input {
    display: flex;
    &-item {
      position: relative;
      flex: 1;
      margin-right: 10px;
      height: 90px;
      border: 1px solid rgba(222, 222, 222, 1);
      line-height: 88px;
      text-align: center;
      font-size: 36px;
      box-sizing: border-box;
    }
    &-active {
      background: #fff url(@bot) no-repeat;
      background-position: center 70px;
      color: #3092ff;
    }
    .ignore-height {
      background-size: 4.267vw 2px;
    }
    &-item:last-child {
      margin: 0;
    }
    .keyboard__input-energy {
      border: solid 1px #37d868;
      .keyboard__input-icon {
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        margin: auto;
        width: 63px;
        height: 28px;
        background: url(@icon_energy) no-repeat;
        background-size: 63px 28px;
        z-index: 10;
      }
    }
    &-input {
      width: 100%;
      height: 90px;
      font-size: 0;
      line-height: 90px;
      background: #fff;
      .keyboard__input-energy {
        display: inline-block;
        border: none;
        width: 90px;
        height: 36px;
        transform: translateY(-50%);
        margin-top: 45px;
        vertical-align: top;
        line-height: 36px;
        text-align: center;
        font-size: 22px;
        font-weight: bold;
        font-style: normal;
        color: rgba(255, 255, 255, 1);
        background: rgba(9, 214, 81, 1);
        border-radius: 2px;
      }
      .keyboard__input-abroad {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0 20px;
        border: 0;
        letter-spacing: 0.2em;
        font-size: 36px;
        background: #fff;
        box-sizing: border-box;
        &::-webkit-input-placeholder {
          color: rgba(186, 186, 186, 1);
          letter-spacing: 0;
        }
      }
      .keyboard__input-text {
        display: inline-block;
        height: 100%;
        vertical-align: top;
        font-size: 36px;
        & + .keyboard__input-energy {
          margin-left: 10px;
        }
        &.keyboard__input-placeholder::before {
          position: absolute;
          content: attr(placeholder);
          color: rgba(186, 186, 186, 1);
        }
      }
      .keyboard__input-icon {
        position: relative;
        display: inline-block;
        height: 100%;
        width: 10px;
        vertical-align: top;
        font-size: 36px;
        z-index: 1;
      }
      .ignore-bg {
        background: url(@cursor) no-repeat left 1px center;
        background-size: 2px 1em;
      }
    }
  }
  &__content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #e1e3e7;
    text-align: center;
    user-select: none;
    box-shadow: 0 -2px 10px #e9e9e9;
    z-index: 100;
    //display: none;
    line-height: 1;
    .keyboard__bar {
      line-height: 90px;
      font-size: 0;
      color: #808388;
      text-align: right;
      background-color: #fff;
      .keyboard__btn {
        display: inline-block;
        width: 140px;
        padding-left: 71px;
        height: 90px;
        line-height: 90px;
        font-size: 26px;
        text-align: left;
        vertical-align: top;
        background-repeat: no-repeat;
        background-position: 24px center;
        background-size: 40px;
        box-sizing: border-box;
      }
      .keyboard__btn-overseas {
        background-image: url(@switch-overseas);
      }
      .keyboard__btn-close {
        background-image: url(@close);
      }
    }
    .ignore-max-width {
      max-width: 500px;
    }
    .keyboard__prefix,
    .keyboard__suffix {
      padding: 26px 8px 16px;
      margin: 0 auto;
      text-align: center;
      .keyboard__box {
        display: flex;
        margin-bottom: 14px;
        align-items: center;
        .keyboard__key {
          flex: 1;
          margin-right: 8px;
          font-size: 0;
          &-txt {
            display: inline-block;
            width: 100%;
            line-height: 90px;
            font-size: 30px;
            color: #0b0b0b;
            box-shadow: 0 2px 2px #d7d7d7;
            background-color: #fff;
            border-radius: 8px;
            z-index: 50;
          }
        }
        .keyboard__key-empty {
          &-txt {
            background-color: rgba(0, 0, 0, 0);
            box-shadow: none;
          }
        }
        .keyboard__key-empty--small {
          flex: 0.45;
          &-txt {
            background-color: rgba(0, 0, 0, 0);
            box-shadow: none;
          }
        }
        .keyboard__key-del {
          .keyboard__key-txt {
            height: 90px;
            background: #fff url(@delete) no-repeat center center;
            background-size: 41px;
          }
        }
        .keyboard__key--disaled {
          .keyboard__key-txt {
            color: #dadada;
            background-color: #fff;
          }
        }
        .keyboard__key:last-child {
          margin: 0;
        }
      }
    }
    .keyboard__key--hover {
      position: fixed;
      width: 11.5vw;
      height: 14.95vw;
      transform: translate(-50%, -100%);
      line-height: 14.95vw;
      text-align: center;
      color: #3092ff;
      font-size: 36px;
      box-shadow: 0 -2px 10px #e9e9e9;
      background: transparent url(@hover) no-repeat center/auto
        100%;
      z-index: 50;
    }
  }
}
