@path: "F:\workcode\website\zgh\less";
@import "./animate.css";
@import "./swiper.min.css";
@import "./config";
@import "./iconfont.css";
@import "./element";
@import "./transition";
@import "@{path}/zgh";
body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  line-height: 1em;
  //max-width:1200px;
  margin:0 auto;
}

* {
  box-sizing: border-box;
}

a {
  color: #000;
}
@media screen and (min-width: 780px) {
  html {
    font-size: 30px !important;
  }
}

.color-red {
  color: @color-red;
}

.border-red {
  border: 1px solid @color-red;
}

.background-red {
  background-color: @color-red;
}
.common-background{
  background-color: @common_cl !important;
}
.common-top {
  padding-top: @m-top !important;
}

.common-bottom {
  padding-bottom: @m-bottom;
}

.common-color {
  color: @common_cl !important;
}

.common-active {
  background: @common_cl;
  color: #fff !important;
}

.common-active-border {
  color: @common_cl !important;
  font-weight: bold;
  position: relative;
  &:after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: @common_cl;
  }
  //  border-bottom: 3px solid @common_cl !important;
}

.common-btn {
  padding: 0 20px;
  .m-h(82);
  .m-lh(82);
  text-align: center;
  color: #fff;
  font-family: '微软雅黑';
  border-radius: unit(84/@value, rem);
  background: #aaa;
  .fs(14);
  border: none !important;
}

.common-label {
  @h: 100;
  width: 80%;
  box-sizing: content-box;
  overflow: hidden;
  position: relative;
  color: #666666;
  //  &:after {
  //      display: block;
  //      width: 100%;
  //      height: 100%;
  //      position: absolute;
  //      top: 0;
  //      left: 0;
  //      border: 1px solid #000;
  //      opacity: .5;
  //      z-index: -1;
  //      border-radius: unit(@h/2, px);
  //  }
  i {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    .m-w(60);
    .m-lh(@h);
    font-size: 18px;
    color: #666666;
    font-weight: normal;
    z-index: 5;
  }
  .form-control,
  input[type="text"] {
    .m-h(@h);
    border: none;
    box-shadow: none;
    /*color: #fff;*/
    /*opacity: .7;*/
    font-size: 14px;
    margin: 0;
    padding: 0 0 0 30px;
    &.input-code {
      width: 65%;
    }
  }
  ::-webkit-input-placeholder {
    color: #666666;
  }
  .send-code-btn {
    display: block;
    width: 35%;
    .m-h(@h);
    .m-lh(@h);
    border: none;
    color: #666666;
    background: #fff;
    font-size: 14px;
    &:before {
      content: '';
      height: 18px;
      border-left: 1px solid #ccc;
      float: left;
      margin-top: @h/4px - 9px;
    }
  }
}

.common-banner {
  img {
    width: 100%;
  }
}

.mainBox {
  height: 100%; //  padding-top:@m-top;
  //  padding-bottom: @m-bottom;
  box-sizing: border-box;
  overflow-x: hidden;
  //      overflow-y: scroll;
}

.wp {
  margin: 0 auto;
  padding: 0 unit(30/2, px);
  box-sizing: border-box;
}

.line {
  background: #eee;
  .m-h(5);
}

.zgh-bottom-box {
  position: absolute;
  left: 0;
  bottom: -20px;
  display: block;
  width: 100%;
  max-height: 80%;
  transition: all 0.2s;
  z-index: 9999;
  transform: translate(0, 100%);
  //  overflow-x: hidden;
  //  padding-bottom: @m-bottom;
  &.active {
    bottom: 0px;
    transform: translate(0, 0);
  }
  .common-btn {
    //      position: fixed;
    height: @m-bottom;
    border-radius: 0;
    line-height: @m-bottom;
  }
  .select-attr {
    .img {
      @h: 100px;
      width: @h;
      height: @h;
      .mgR(20);
      .box {
        overflow: hidden;
        margin-top: -20px;
        width: @h;
        height: @h;
      }
      img {
        min-width: 100%;
        min-height: 100%;
      }
    }
    .attr {
      button {
        position: relative;
        display: inline-block;
        background: transparent;
        margin: 0 8px 10px 0;
        span {
          display: block;
          padding: 5px 10px;
          background: #eee;
          color: #666;
          border: 1px solid #eee;
          border-radius: 8px;
          &.disabled {
            border: 1px dashed #999;
            opacity: .2;
          }
        }
        input {
          position: absolute;
          top: 0;
          left: 0;
          appearance: none;
          display: block;
          width: 100%;
          height: 100%;
          &:checked + span {
            background: @common_cl2;
            color: #fff;
            border-color: @common_cl2;
          }
        }
      }
      .selectnum {
        @h: 30px;
        height: @h;
        line-height: @h;
        span {
          float: left;
          display: block;
          width: 40px;
          height: @h;
          /*padding: 8px 0;*/
          text-align: center;
          background: #eee;
          margin-left: 8px;
        }
      }
    }
  }
}

select {
  border: none;
}

.prod-h {
  position: relative;
  line-height: 18px;
  @L: 200;
  > a {
    display: block;
    .m-h(@L);
  }
  .prod-img {
    .m-w(@L);
    .m-h(@L);
    padding: 10px 0;
  }
  .prod-content {
    padding: 10px 0;
    .m-pdL(@L);
    .m-h(@L);
    width: 100%;
  }
}

.prod-v {
  width: 49%;
  max-width: 300px;
  background: #fff;
  margin-bottom: 2%;
  padding-bottom: 10px;
  float: left;
  &:nth-child(odd) {
    float: left;
  }
  &:nth-child(even) {
    float: right;
  }
  .prod-img {
    min-height: 100px;
    height: 200px;
    text-align: center;
    overflow: hidden;
    img {
      max-height: 100%;
      max-width: 100%;
    }
  }
  .prod-content {
    .m-pdL(30);
    .m-pdR(30);
    .m-fs(26);
  }
  .row2 {
    .m-h(78);
    .m-mgB(10);
    .m-mgT(10);
    line-height: 1.5;
  }
}

.goTop {
  @L: 60;
  position: absolute;
  right: 20px;
  bottom: 50%;
  cursor: pointer;
  z-index: 999;
  .m-w(@L);
  .m-h(@L);
  background: @common_cl url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABV0lEQVRoQ+3Y0a3CMAyFYXsDRmEjYBNGYAPoRncT2MAoQBFwGxLHx22QzAsvJf2/mFZQph9/8Y/3UwCWnmBMICZg3IH4Chk30Pxx1wmIyDoVMvOfuTSzgBtARLZEdHycd8fMJw+EC+Ajfux2QcABmXg3BBRQiHdBwACV8XAEBKCMhyLMgEL88KjdZO5A5gvbBCjFM3O6lZKIpFuoC6IZUBs/7rwXogmgjfdEqAGt8V4IFcAa74GoBqDi0YgqADoeiSgCvOJRiK8A73gEIguYK96KmATMHW9B/AMsFd+KeAMsHd+CeAJ6idciboDe4jUI7jW+GiEiZyJaTfzhGMbf8x6PQzRrfvkpfkkTmPqz0U18YRLDeA28IrqLzyBuna93oT0RXZj5oBnv3MeKSOpMjyvv73MHoM8XAPSOateLCWh3DH18TAC9o9r1YgLaHUMfHxNA76h2vStfOe4XhHs7pgAAAABJRU5ErkJggg==) no-repeat center;
  background-size: 50%;
  transition: all .5s;
  opacity: 0;
  &.active {
    bottom: 20px;
    opacity: 1;
    background-color: @common_cl2;
  }
  &:hover {
    background-color: @common_cl;
  }
}
