@import 'variable';

/*.product-info start*/

.info-title {
  margin: 26px 0;
  height: 40px;
  line-height: 40px;
  position: relative;
  font-size: 28px;
  color: #2d2f33;
  padding-left: 10px;
  border-left: 10px solid #2d2f33;
}

@keyframes huxian {
  0% {
    transform: rotate(0deg)
  }
  100% {
    transform: rotate(360deg)
  }
}

.intro {
  position: relative;
  height: 408px;
  border-bottom: 1px solid #aaa;

  table {
    text-align: center;
    color: #3f3f3f;
    border-spacing: 0;
    thead th {
      width: 33.33%;
      font-size: 22px;
      line-height: 56px;
      font-weight: normal;
    }
    tbody {
      td {
        text-align: center;
        vertical-align: middle;
        font-size: 18px;
        line-height: 67px;
        border-left: 1px solid #eaeaea;
        a {
          font-weight: 500;
          color: #fff;
          padding: 19px 13px;
          background: #ff4a4a;
          border-radius: 10px;
        }
        &:nth-child(2) {
          color: #ff4a4a;
          strong {
            font-size: 36px;
          }
        }
        &:first-child {
          border-left: 0;
        }
      }
    }
    tfoot {
      td {
        padding-left: 100px;
        font-size: 18px;
        line-height: 106px;
        text-align: left;
        .balance {
          &:after {
            content: '万 / '
          }
        }
        .total {
          &:after {
            content: '万'
          }
        }

        .progress-bar {
          position: relative;
          display: inline-block;
          width: 365px;
          height: 13px;
          margin-left: 42px;
          border: 1px solid #ff4a4a;
          i {
            display: inline-block;
            position: absolute;
            left: 0;
            top: 0;
            height: 13px;
            width:0;
            background: #ff4a4a;
            transition: width 1s;
          }
        }
      }
    }
  }
  & > div {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 10px solid #ececec;
    position: absolute;
    right: 0px;
    top: 95px;
    p {
      width: 100%;
      height: 100%;
      text-align: center;
      line-height: 180px;
      font-size: 40px;
      color: #000;
    }
    & > div {
      position: absolute;
      top: -10px;
      left: -10px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 10px solid transparent;
      border-right-color: #ff4a4a;
      animation: huxian 1s infinite linear;
    }
  }
}

.appointment {
  width: 100%;
  height: 242px;
  border-bottom: 1px solid #aaa;
  p:nth-child(2) {
    font-size: 18px;
    color: #2d2f33;
    margin: 34px 0 24px;
    padding-left: 20px;
  }
  form {
    padding-left: 20px;
    input {
      outline: none;
      font-size: 14px;
      color: #939393;
      height: 48px;
      width: 246px;
      border: 1px solid #939393;
      padding-left: 14px;
      border-radius: 10px;
      margin-right: 45px;
    }
    input[type="submit"] {
      width: 86px;
      padding: 0;
      border: none;
      font-size: 18px;
      line-height: 48px;
      text-align: center;
      color: #fff;
      background: #ff4a4a;
      &:hover {
        background: #ec3737;
      }
    }
    .errorName,.errorTel {
      display: inline-block;
      width: 246px;
      height: 40px;
      padding-left: 7px;
      margin-left: 20px;
      line-height: 40px;
      font-size: 18px;
      color: #ff4a4a;
    }
    .errorTel {
      margin-left: 45px;
    }

  }

}

.detail {
  width: 100%;
  padding-bottom: 150px;
  table {
    width: 100%;
    color: #000;
    border-spacing: 0;
    td {
      padding: 25px 60px;
      vertical-align: top;
    }
    td {
      border-bottom: 1px solid #939393;
      border-right: 1px solid #939393;
      &:last-child {
        border-right: 0;
      }
    }
    tr:last-child td {
      border-bottom: 0;
    }
  }
}

/*.product-info end*/

.screen() {
  .media(@screen-width-small, @container-width-small);
  .media(@screen-width, @container-width);
  .media(@screen-width-large, @container-width-large);
}

.media(@sw, @cw) {
  @media screen and (min-width: @sw) {
    .rules(@cw);
  }
}

.rules(@cw) {
  .intro,
  .appointment,
  .detail {
    width: @cw;
    margin: 0 auto;
  }

  .intro > table {
    width: @cw/4*3;
  }
}

body {
  .screen();
}