@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;
  min-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;
        }
      }
    }
  }
  .product-surplus {
    padding: 50px 0 50px 100px;
    font-size: 18px;
    span, p {
      float: left;
    }
    .balance:after {
      content: ' / '
    }

    .progress-bar {
      position: relative;
      margin-top: 7px;
      width: 365px;
      height: 13px;
      margin-left: 42px;
      border: 1px solid #ff4a4a;
      i {
        display: block;
        height: 13px;
        width: 0;
        background: #ff4a4a;
        transition: width 1s;
      }
    }
  }
  .product-status {
    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;
      &.status-11 {
        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*/

/* .modal-box start */

body {
  position: relative;
}

.modal-box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  .modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-top: -200px;
    margin-left: -300px;
    width: 600px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    div {
      &.modal-dialog-top {
        width: 100%;
        height: 80px;
        background: #ff4a4b;
        position: relative;
        a {
          display: inline-block;
          width: 46px;
          height: 46px;
          line-height: 46px;
          text-align: center;
          border-radius: 50%;
          border: 3px solid #fff;
          font-size: 42px;
          position: absolute;
          right: 27px;
          top: 15px;
          cursor: pointer;
          color: #fff;
        }
      }
      &.modal-dialog-content {
        position: relative;
        i {
          display: inline-block;
          width: 69px;
          height: 69px;
          background: url(https://res.fudou6.com/c/4/20160730/e86YXBwb2ludG1lbnQtc3VjY2VzcyA=_69x69.png) no-repeat;
          position: absolute;
          left: 90px;
          top: 8px;
        }
        h3 {
          font-size: 50px;
          font-weight: bold;
          color: #ff4a4a;
          margin: 43px 0;
          padding-left: 180px;
        }
      }
    }

    p {
      font-size: 24px;
      line-height: 28px;
      text-align: center;
    }

  }
}

/* .modal-box end */

/* .modal-box-erweima start */

.modal-box-erweima {
  display: none;
  position: fixed;
  left:0;
  top:0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,.5);
  .modal-dialog {
    width: 450px;
    height: 450px;
    position: fixed;
    left:50%;
    top:200px;
    margin-left: -225px;
    border-radius: 10px;
    background:#fff;
    overflow: hidden;
    .modal-dialog-top {
      position: relative;
      height: 50px;
      text-align: center;
      background: #ff4a4b;
    }
    .modal-dialog-bottom {
      padding-top: 40px;
      text-align: center;
      p {
        font-size: 26px;
      }
    }
    .modal-dialog-close {
      width: 30px;
      height: 30px;
      font-size: 20px;
      text-align: center;
      line-height: 30px;
      position: absolute;
      right:16px;
      top:10px;
      border-radius: 50%;
      border: 2px solid #fff;
      color: #fff;
      cursor: pointer;
    }
  }
}

/* .modal-box-erweima 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();
}




