// about colors

@white: #FFFFFF;
@text-dark: #303131;
@green: #03A57B;
@input-color: #ACB7BF;
@error-red: #D94E4E;
.br() {
  border: 1px solid red;
}
// about assets url
@cnd-base-url: "https://cdnwww.yufuid.com/www2/static/";
@local-url: "/public/static/";

// about base style

.clear-float() {
  clear: both;
}
.base-wrapper() {
  width: 100%;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.base-content() {
  max-width: 1336px;
  margin: 0 auto;
}
.base-banner-title() {
  color: @text-dark;
  font-size: 32px;
  line-height: 48px;
  text-align: center;
  font-weight: 400;
}
.contact-us() {
  display: inline-block;
  height: 40px;
  padding: 0 30px;
  background-color: @green;
  border-radius: 20px;
  color: @white;
  font-size: 16px;
  text-align: center;
  border: none;
  outline: none;
  cursor: pointer;
  line-height: 40px;
}

.readmore() {
  .contact-us();
}

// 屏幕尺寸小于750时候一般文字的大小
.pad-normal-font() {
  font-size: 24px;
  line-height: 33px;
  font-weight: 300;
}

// cycle
.base-cycle() {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 2px solid @green;
  border-radius: 8px;
  box-sizing: border-box;
}

// about media
@pad: ~"only screen and (max-width: 1200px) and (min-width: 750px)";
@tablet: ~"only screen and (max-width: 750px) and (min-width: 450px)";
@mobile: ~"only screen and (max-width: 450px)";

.aboutus-banner-1 {
  color: @white;
  background-image: ~"url('@{cnd-base-url}img/aboutus-banner.png')";
  .clear-float();
}

.aboutus-banner-2-wrapper {
  color: @white;
  background-image: ~"url('@{cnd-base-url}img/aboutus-banner2.png')";
}
.aboutus-banner-2-content {
  text-align: center;
  padding: 40px 30px;
  height: 120px;
  display: table;
  .aboutus-banner-2-desc {
    display: table-cell;
    vertical-align: middle;
    font-size: 18px;
    line-height: 30px;
    color: @white;
    font-weight: 400;
  }
}

.aboutus-banner-3-content {
  padding: 113px 30px 140px;
  .aboutus-banner-3-items {
    margin-bottom: 52px;
  }
  .aboutus-banner-3-item {
    padding: 30px;
    float: left;
    width: 33%;
    box-sizing: border-box;
  }
  .aboutus-banner-3-item-img {
    width: 100%;
    height: 100%;
    max-width: 320px;
    max-height: 140px;
  }
  .aboutus-banner-3-desc {
    border-top: 1px solid #d8d8d8;
    padding-top: 24px;
    color: #6d6d6d;
    line-height: 26px;
    font-size: 16px;
    max-width: 904px;
    margin: 0 auto;
    text-align: center;
    font-weight: 300;
  }
}

.aboutus-banner-4-wrapper {
  min-height: 600px;
  box-sizing: border-box;
  background-color: @white;
  border-bottom: 1px solid #E3E3E3;
  .aboutus-banner-4-content {
    padding: 100px 0;
    .aboutus-banner-4-title {
      font-weight: 400;
      margin-bottom: 67px;
    }
    .aboutus-banner-4-container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 30px;
    }
    .aboutus-banner-4-left {
      box-sizing: border-box;
      float: left;
      width: 50%;
    }
    .aboutus-banner-4-right {
      box-sizing: border-box;
      float: left;
      width: 50%;
      padding-top: 42px;
      .aboutus-banner-4-right-box {
        float: right;
        padding: 30px 40px;
        border: 1px dashed #ececec;
        h5 {
          font-size: 20px;
          line-height: 28px;
          margin-bottom: 16px;
          font-weight: 300;
          color: @text-dark;
        }
        .aboutus-banner-4-right-box-contact {
          padding-left: 10px;
        }
        //& > div {
        //  float: right;
        //}
      }
    }
  }
}

@media screen and (max-width: 1200px) and (min-width: 750px){
  .aboutus-banner-3-content {
    padding: 100px 30px;
  }

  .aboutus-banner-4-wrapper {
    .aboutus-banner-4-content {
      .aboutus-banner-4-left {
        box-sizing: border-box;
        float: left;
        width: 50%;
      }
      .aboutus-banner-4-right {
        width: 50%;
        padding: 42px 0 0 20px;
        .aboutus-banner-4-right-box {
          float: right;
          padding: 20px 30px;
          h5 {
            font-size: 18px;
          }
          .aboutus-banner-4-right-box-contact {
            padding-left: 10px;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 750px){
  .aboutus-banner-2-content {
    text-align: center;
    padding: 40px 24px;
    height: auto;
    display: table;
    .aboutus-banner-2-desc {
      font-size: 14px;
      line-height: 22px;
    }
  }

  .aboutus-banner-3-content {
    padding: 30px 40px 60px;
    .aboutus-banner-3-items {
      margin-bottom: 40px;
    }
    .aboutus-banner-3-item {
      padding: 0;
      float: none;
      width: 90%;
      margin: 0 auto 10px;
    }
    .aboutus-banner-3-item-img {
      display: block;
      margin: 0 auto;
      width: 100%;
      height: auto;
    }
    .aboutus-banner-3-desc {
      padding-top: 20px;
      line-height: 16px;
      font-size: 12px;
      max-width: initial;
      width: auto;
    }
  }

  .aboutus-banner-4-wrapper {
    min-height: auto;
    .aboutus-banner-4-content {
      padding: 40px 40px 50px;
      .aboutus-banner-4-title {
        margin-bottom: 50px;
        font-size: 18px;
        line-height: 22px;
      }
      .aboutus-banner-4-container {
        padding: 0;
      }
      .aboutus-banner-4-left {
        float: none;
        width: auto;
      }
      .aboutus-banner-4-right {
        float: none;
        width: auto;
        padding-top: 30px;
        .aboutus-banner-4-right-box {
          float: none;
          width: auto;
          padding: 20px 30px;
          h5 {
            font-size: 14px;
            line-height: 22px;
            margin-bottom: 15px;
          }
        }
      }
    }
  }
}
