@import 'variable';

//
//.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);
//  }
//}
//
//body {
//  .screen();
//}
//
//.rules(@container-width) {
//  .hot-project-introducer {
//    width: @container-width;
//
//  }
//  /* .hot-project-banner start */
//
//  //@media screen and (min-width: 1281px) {
//  //  .hot-project-banner {
//  //    height: 600px;
//  //    width: 100%;
//  //    background: url('../images/hot_project/hot_project_banner.jpg') no-repeat center center;
//  //    background-size: cover;
//  //    text-align: center;
//  //    color: #fff;
//  //    h4 {
//  //      font-size: 48px;
//  //      font-weight: bold;
//  //      margin-top: 240px;
//  //      margin-bottom: 60px;
//  //    }
//  //    p {
//  //      font-size: 32px;
//  //      line-height: 42px;
//  //    }
//  //  }
//  //}
//
//  //@media screen and (max-width: 1281px) {
//  //  .hot-project-banner {
//  //    height: 470px;
//  //    width: 100%;
//  //    background: url('../images/hot_project/hot_project_banner.jpg') no-repeat center center;
//  //    background-size: cover;
//  //    text-align: center;
//  //    color: #fff;
//  //    h4 {
//  //      font-size: 54px;
//  //      font-weight: bold;
//  //      margin-top: 120px;
//  //      margin-bottom: 40px;
//  //    }
//  //    p {
//  //      font-size: 24px;
//  //      line-height: 36px;
//  //    }
//  //  }
//  //}
//
/* .hot-project-banner start */

.hot-project-banner {
  height: 470px;
  width: 100%;
  background: url('../images/hot_project/hot_project_banner.jpg') no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #fff;
  h4 {
    font-size: 54px;
    font-weight: bold;
    margin-top: 120px;
    margin-bottom: 40px;
  }
  p {
    font-size: 24px;
    line-height: 36px;
  }
}

/* .hot-project-banner end */

/* .hot-project-introducer start*/

.hot-project-introducer {
  padding: 0 0 60px 0;
  margin: 0 auto;
  & > ul {
    height: 180px;
    li {
      float: left;
      width: 25%;
      font-size: 18px;
      color: #000;
      line-height: 180px;
      text-align: center;
      font-weight: bold;
      &:before {
        content: '';
        display: inline-block;
        position: relative;
        top: -3px;
        width: 8px;
        height: 8px;
        margin-right: 40px;
        border-radius: 50%;
        background: #bb342e;
      }
      b {
        display: inline-block;
        position: relative;
        top: 20px;
        width: 46px;
        height: 46px;
        margin-right: 6px;
        background: url("../images/hot_project/tabs01.png") no-repeat -46px -13px;
      }
    }
    li:nth-child(2) > b {
      background-position: -176px -13px;
    }
    li:nth-child(3) > b {
      background-position: -329px -13px;
    }
    li:nth-child(4) > b {
      background-position: -450px -13pxpx;
    }
  }

  & > hr.line-separate {
    width: 100%;
    &:after {
      background: #01a9dd;
    }
  }

  .introducer {
    position: relative;
    width: 700px;
    margin: 0 auto;
    h2 {
      margin: 50px 0;
      font-size: 36px;
      font-weight: bold;
      text-align: center;
    }
    div {
      margin: 15px 0;
      position: relative;
    }
    label {
      float: left;
      font-size: 24px;
    }
    input[type="text"],
    textarea {
      float: left;
      width: 500px;
      font-size: 18px;
      border: 1px solid #939393;
      border: 1px solid #939393;
      border-radius: 10px;
      color: #7f7f7f;
      outline: none;

    }
    input[type="text"] {
      height: 40px;
      padding: 0 20px;
      line-height: 40px;
    }
    textarea {
      min-height: 100px;
      padding: 12px 20px;
      margin-bottom: 40px;
    }
    input[type="submit"] {
      display: block;
      width: 333px;
      height: 60px;
      margin: auto;
      line-height: 60px;
      border: none;
      font-size: 24px;
      color: #fff;
      background: #ff4a4b;
      border-radius: 10px;
      text-align: center;
    }
    p {
      position: absolute;
      left: 680px;
      top: 0;
      width: 200px;
      line-height: 40px;
      font-size: 18px;
      color: #ff4a4b;
    }
  }
}

/* .hot-project-introducer end*/

/* .hot-project-address start */

.hot-project-address {
  width: 100%;
  background: #1272ac;
  .hot-project-address-box {
    width: 800px;
    height: 100%;
    margin: 0 auto;
    padding-top: 118px;
    padding-bottom: 118px;
    position: relative;
    & > div {
      &:nth-child(1) {
        position: absolute;
        color: #fff;
        top: 40px;
        left: -60px;
        h2 {
          font-size: 32px;
          font-weight: bold;
          line-height: 42px;
        }
        p {
          font-size: 18px;
          line-height: 53px;
        }
      }
      &:nth-child(2) {
        width: 100%;
        position: relative;
        left: -80px;
        img {
          width: 100%;
        }
        a {
          width: 138px;
          height: 46px;
          text-align: center;
          line-height: 46px;
          font-size: 18px;
          font-weight: bold;
          border-radius: 26px;
          background: #fff;
          color: #000;
          position: absolute;
          right: -144px;
          z-index: 3;
          &:hover {
            background: #000;
            color: #fff;
          }
          &:nth-child(2) {
            top: 3%;
          }
          &:nth-child(3) {
            top: 23%;
          }
          &:nth-child(4) {
            top: 38%;
          }
          &:nth-child(5) {
            top: 56%;
          }
          &:nth-child(6) {
            top: 65%;
          }
          &:nth-child(7) {
            top: 74%;
          }
          &:nth-child(8) {
            top: 84%;
          }
          &:nth-child(9) {
            top: 94%;
          }
        }
      }
    }
  }
}

/* .hot-project-address end */

/* .hot-project-tabs start */

.hot-project-tabs {
  background: #f6f6f6;
  padding: 180px 0 160px 0;
  ul {
    width: @container-width;
    margin: 0 auto;
    border: 1px solid #43abb6;
    li {
      width: 25%;
      float: left;
      font-size: 16px;
      color: #000;
      text-align: center;
      background: #f6f6f6;
      transition-delay: .1s;
      transition: background .5s, color .5s;
      & > div {
        border-right: 1px solid #43abb6;
        height: 200px;
        padding-top: 160px;
        position: relative;
        &:before,
        &:after {
          content: '';
          position: absolute;
          top: 44px;
          left: 50%;
          margin-left: -58px;
          height: 115px;
          width: 115px;
          background: url(https://res.fudou6.com/c/4/20160801/by15pyq5qCH6aKYLTFfMDE=_480x240.png) 0 0 no-repeat;
          opacity: 0;
          transform: scale(0);
          transition-delay: .1s;
          transition: .5s;
        }
        &:before {
          transform: scale(1);
          opacity: 1;
        }

      }
      &:last-child > div {
        border-right: 0;
      }

      h4 {
        font-size: 28px;
        color: #43abb6;
        margin: 10px 0 20px;
      }
      &:nth-child(1) > div {
        &:before {
          background-position: -360px -120px;
        }
        &:after {
          background-position: -360px 0px;
        }
      }
      &:nth-child(2) > div {
        &:before {
          background-position: -240px -120px;
        }
        &:after {
          background-position: -240px 0px;
        }
      }
      &:nth-child(3) > div {
        &:before {
          background-position: -120px -120px;
        }
        &:after {
          background-position: -120px 0px;
        }

      }
      &:nth-child(4) > div {
        &:before {
          background-position: 0px -120px;
        }
        &:after {
          background-position: 0px 0px;
        }
      }
      &:hover {
        transition-delay: 0s;
        color: #fff;
        background: #43abb6;
        h4 {
          color: #fff;
        }
        & > div {
          &:before {
            opacity: 0;
            transform: scale(0);
          }
          &:after {
            opacity: 1;
            transform: scale(1);
          }
        }
      }
    }

  }
}

/* .hot-project-tabs end */

/* .modal-box start */
//body {
//  position: relative;
//}

.modal-box {
  display: none;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  position: fixed;
  .modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-top: -300px;
    margin-left: -450px;
    width: 830px;
    height: 600px;
    background: #fff;
    padding-left: 70px;
    h4 {
      margin-top: 69px;
      font-size: 35px;
      color: #000;
    }
    h3 {
      font-size: 45px;
      font-weight: bold;
      color: #ff4a4a;
      margin: 43px 0;
    }
    h6 {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 20px;
    }
    p {
      font-size: 18px;
      width: 331px;
      line-height: 28px;
    }
    img {
      position: absolute;
      right: 55px;
      top: 108px;
    }
    .modal-dialog-close {
      font-size: 42px;
      position: absolute;
      right: 27px;
      top: 9px;
      cursor: pointer;
    }
  }
}

/* .modal-box end */

/* .modal-box-success start */

.modal-box-success {
  display: none;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  position: fixed;
  .modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-top: -200px;
    margin-left: -250px;
    width: 500px;
    height: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    div {
      &:nth-child(1) {
        width: 100%;
        height: 80px;
        background: #ff4a4b;
        position: relative;
        h4 {
          line-height: 80px;
          font-size: 30px;
          color: #fff;
          padding-left: 50px;
        }
        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;
        }
      }
      &:nth-child(2) {
        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-success 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) {
  .hot-project-introducer,
  .hot-project-tabs ul {
    width: @cw;
  }
}

body {
  .screen();
}