.scores {
  $blue-bg: #e5f5ff;
  background-color: #2e7ee9;
  padding: 0 5px 60px;

  .banner {
    height: 171px;
    margin: 0 -5px;

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

  .info {
    position: relative;
    height: 70px;
    text-align: center;
    line-height: 70px;

    span {
      color: $blue-bg;
      font-size: 15px;
    }

    a {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      text-decoration: underline;
      font-size: 14px;
      color: #fff;
    }
  }

  .score-list {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;

    .share {
      height: 40px;
      text-align: center;
      font-size: 16px;
      line-height: 40px;
      color: #09f;
      text-decoration: underline;
      background-color: $blue-bg;
    }

    th {
      width: 33.333333%;
    }

  }

  th {
    font-weight: normal;
  }

  .am-tabs {

    &-tar-bar-wrap {
      border: 0;
    }

    &-default-bar {
      padding: 10px 10px 0;
      background-color: $blue-bg !important;

      &-tab-active {
        background-color: #fff;
        color: #0D75E5;
      }

      &-tab {
        width: 80px;
        height: 40px;
        border-radius: 4px 4px 0 0;

        &::after {
          display: none !important;
        }
      }

      &-content {
        padding-top: 2px;
        line-height: 48px;
        font-size: 15px;
        color: #525B65;
      }
    }

    .title {
      display: flex;
      justify-content: space-around;
      height: 38px;
      background-color: #FFD66A;
      color: #333;
      font-size: 14px;
      line-height: 38px;
    }

    .tab-content {
      box-sizing: border-box;
      padding-top: 10px;
      background-color: #fff;
    }

    table {
      width: 100%;
      margin: 0;
      text-align: center;
      border-collapse: collapse;

      a {
        color: #09f;
        text-decoration: underline;
      }

      thead tr {
        height: 38px;
        background-color: #FFD66A;
        color: #333;
        font-size: 14px;
        line-height: 38px;
      }

      tbody tr {
        height: 50px;
        line-height: 50px;
      }
    }
  }

  .rank-list {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;

    .head {
      height: 68px;
      padding-top: 12px;
      text-align: center;
      color: #fff;
      margin-bottom: 15px;


      div:nth-child(1) {
        position: relative;
        margin-bottom: 5px;
        font-size: 18px;

        @mixin pseudo {
          content: '';
          display: block;
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          width: 25px;
          height: 11px;
          background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/ai-test/m/title-decoration.png") no-repeat;
          background-size: contain;
        }

        &::before {
          @include pseudo;
          left: 28%;
        }

        &::after {
          @include pseudo;
          right: 28%;
          transform: scaleX(-1) translateY(-50%);
        }
      }

      div:nth-child(2) {
        position: relative;

        span {
          color: #E5F5FF;
          font-size: 12px;
        }

        a {
          position: absolute;
          right: 10px;
          top: 50%;
          transform: translateY(-50%);
          text-decoration: underline;
          font-size: 14px;
          color: #fff;
        }
      }
    }

    .list {
      background: #fff;

      table {
        width: 100%;
        margin-top: 10px;
        border-collapse: collapse;
        border-spacing: 0;
        border: none;
        text-align: center;

        td, th {
          margin-right: -1px;
          padding: 0;
        }

        .avatar {
          margin-right: 6px;
        }

        td:nth-of-type(1) {
          width: 15%;
        }

        td:nth-of-type(2) {
          width: 35%;
          text-overflow: ellipsis;
          white-space: nowrap;
          overflow: hidden;
          text-align: left;
          //padding-left: 10%;
        }

        thead tr {
          height: 38px;
          line-height: 38px;
          background-color: #FFD76A;
          font-size: 14px;
          color: #333;
        }

        tbody tr {
          height: 49px;
          line-height: 49px;
          font-size: 12px;
          color: #333;

          td:nth-of-type(1) {
            font-size: 16px;

            img {
              width: 14px;
              height: 18px;
            }
          }

          td:nth-of-type(2) {
            img {
              width: 18px;
              height: 18px;
              border-radius: 50%;
            }
          }

          td:nth-of-type(3) {
            width: 20%;
          }

          td:nth-of-type(4) {
            div {
              width: 118px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;

            }
          }

          &:nth-child(even) {
            background: #f6fbff;
          }

          img {
            vertical-align: middle;
          }

          .score {
            color: #09f;
          }
        }
      }
    }

    .expand {
      height: 49px;
      line-height: 49px;
      text-align: center;
      background: #fff;
      color: #525C65;
      font-size: 14px;

      .iconfont {
        margin-left: 5px;
      }
    }
  }

  .btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    padding: 10px;
    color: #fff;
    font-size: 0;
    z-index: 100;

    button {
      width: 100%;
      height: 100%;
      font-size: 16px;
      color: #fff;
      border: none;
      outline: 0;
      -webkit-appearance: none;

      &.get-chance {
        background-color: #FFAE00;
      }

      &.available {
        background: linear-gradient(-90deg, rgba(0, 153, 255, 1) 0%, rgba(61, 177, 255, 1) 100%);
      }

      &.unavailable {
        background: #525C65;
      }
    }

    span {
      font-size: 12px;
    }
  }

  .rule-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .8);
    z-index: 100;
  }

  .rule {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 18px 25px 10px;
    background-color: #fff;
    border-radius: 5px;
    color: #525C65;
    text-align: center;

    div:nth-child(1) {
      font-size: 16px;
      margin-bottom: 15px;
    }

    div:nth-child(2) {
      max-height: 280px;
      overflow: auto;
      //height: 100%;
      font-size: 14px;
      margin-bottom: 16px;
      white-space: pre-wrap;
      text-align: left;
    }

    label {
      font-size: 14px;
      color: #555;
      opacity: .8;
    }

    .option {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 21px;
    }

    input {
      position: relative;
      width: 15px;
      height: 15px;
      margin-right: 8px;
      border: 1px solid #3799ff;
      border-radius: 2px;
      -webkit-appearance: none;


      &::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 3px;
        width: 10px;
        height: 6px;
        display: none;
        border-bottom: 1px solid #3799ff;
        border-left: 1px solid #3799ff;
        transform-origin: 5px 4px;
        transform: rotate(-45deg);
      }

      &:checked {
        &::after {
          display: block;
        }
      }
    }

    button {
      width: 94px;
      height: 30px;
      background: #09f;
      color: #fff;
      font-size: 14px;
      border-radius: 15px;
      -webkit-appearance: none;
      border: none;
      outline: 0;
    }

    .close {
      position: absolute;
      bottom: -60px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      display: block;
      font-size: 30px;
    }
  }

  .user-address-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .6);
    z-index: 100;
  }

  .user-address {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 309px;
    padding: 18px 26px 0;
    background: #fff;
    border-radius: 5px;
    text-align: center;

    .title {
      font-size: 16px;
      color: #525C65;
      text-align: center;
      margin-bottom: 17px;
    }

    .tip {
      font-size: 12px;
      color: #FFAE00;
      margin-bottom: 15px;
      text-align: left;
    }

    input {
      width: 250px;
      height: 40px;
      padding-left: 10px;
      border: 1px solid #DDD;
      margin-bottom: 10px;
      font-size: 13px;

      &::placeholder {
        color: #999;
      }
    }

    button {
      padding: 10px 45px;
      font-size: 15px;
      color: #fff;
      background: rgba(82, 92, 101, .3);
      border-radius: 17px;
      border: none;
      outline: 0;
      -webkit-appearance: none;

      &.available {
        background-color: #09f;
      }
    }

    .iconfont {
      position: absolute;
      bottom: -60px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 30px;
      color: #fff;
    }
  }

  .qrcode {
    padding-bottom: 40px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    $font-family-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;

    img {
      width: 110px;
      height: 110px;
      margin-bottom: 6px;
    }
  }
}