@import "normalize";
@import 'iconfont';
@import 'variable';

body {
  font-family: Microsoft YaHei, simhei, Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.732;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6, ul, li, b, p, dl, dt, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

a {
  text-decoration: none;
  color: #000;
}

.clear {
  &:after {
    content: '';
    display: block;
    clear: both;
  }
  &:before {
    content: '';
    display: table;
  }
}

input, textarea, select, a {
  &:active,
  &:focus {
    outline: none;
  }
}

hr.line-separate {
  position: relative;
  width: 80%;
  margin: 0 auto;
  border: none;
  border-bottom: 1px solid #8c8c8c;
  &:after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 72px;
    height: 3px;
    margin-left: -36px;
    background: #8c8c8c;
  }
}

/*header begin*/
#header {
  .container {
    width: @container-width;
    margin: 0 auto;
    position: relative;
  }
  .logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
  }
  .nav {
    font-size: 16px;
    span {
      float: left;
      padding: 20px 0 10px;
      margin-right: @container-width / 34; // 30px;
      &.last-one {
        margin-right: 0;
      }
    }
    a {
      display: block;
      color: #383838;
      font-weight: bold;
      padding: 10px;
      border-bottom: 3px solid transparent;
      &:hover,
      &.active {
        border-bottom-color: #000;
      }
    }
  }

}

/*header end*/
/*footer begin*/
#footer {
  padding: 60px 0 80px;
  text-align: center;
  background: #2e2e2e;
  color: #fff;
  font-size: 14px;
  line-height: 26px;
  h3 {
    font-size: 24px;
  }
  h2 {
    font-size: 60px;
    font-weight: bold;
    margin: 50px auto 30px;
  }
  address {
    font-style: normal;
    color: #aeaeae;
    a {
      color: #00a4d8;
      cursor: pointer;
    }
  }
  .copyright {
    margin-top: 80px;
    color: #aeaeae;
    span {
      color: #fff;
    }
  }
}

/*footer end*/

/*.banner begin*/
.banner {
  background: url(https://res.fudou6.com/c/4/20160730/tayYmFubmVy_1920x677.jpg) no-repeat center center;
  background-size: cover;
  padding-top: 120px;
  padding-bottom: 160px;
  .banner-box {
    margin: 0 auto;
    color: #fff;
    h1 {
      margin-top: 0;
      margin-bottom: 35px;
      text-align: center;
      font-weight: normal;
      font-size: 64px;
    }
    p {
      font-size: 20px;
      line-height: 35px;
    }
  }
}

/*.banner 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) {
  #header {
    .container {
      width: @cw;
      .nav {
        padding-left: @cw / 4;
      }
    }
  }
  .banner {
    .banner-box {
      width: @cw;
    }
  }
}
body {
  .screen();
}