#myInput {
  display: none;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  height: 60px;
  @include tr(transform, 0.4s);
  .logo {
    img {
      height: 30px;
      display: block;
      margin: 15px 0;
    }
  }
  .sl-phone {
    font-size: 20px;
    position: absolute;
    z-index: 100;
    right: 80px;
    top: 20px;
  }
  .sl-search {
    font-size: 20px;
    position: absolute;
    z-index: 100;
    right: 45px;
    height: 60px;
    line-height: 60px;
  }
  label.myInput {
    display: inline-block;
    width: 25px;
    height: 61px;
    cursor: pointer;
    margin: 0;
    z-index: 100;
    position: absolute;
    right: 0px;
    top: 0;
    transition: $tr4;
    overflow: hidden;
    .menu {
      margin-top: 20px;
      width: 25px;
      .bar {
        height: 3px;
        width: 25px;
        border-radius: 50px;
        margin: 5px 0;
        display: block;
        position: relative;
        background-color: #666666;
        -moz-transition: 0.4s;
        -o-transition: 0.4s;
        -webkit-transition: 0.4s;
        transition: 0.4s
      }
    }
  }
}

#myInput:checked~header {
  //transform: translateX(-120px);
  label.myInput {
    .bar {
      &:nth-of-type(1) {
        transform: translateY(8px) rotate(45deg);
      }
      &:nth-of-type(2) {
        transform: translateX(100px);
        transition: 0.6s;
      }
      &:nth-of-type(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
    }
  }
}

nav {
  width: 100%;
  height: 100%;
  position: fixed;
  right: -1px;
  top: 59px;
  z-index: 98;
  background: #fff;
  border: 1px solid #d9d9d9;
  visibility: hidden;
  opacity: 0;
  background-color: rgba(#000, .9);
  @include tr(all, 0.4s);
  &>ul {
    background-color: #333333;
    &>li {
      &>a {
        width: 100%;
        display: block;
        font-size: 16px;
        font-weight: lighter;
        line-height: 3em;
        color: #fff;
        text-align: center;
        border-bottom: 1px solid #484848;
        &.on {
          background-color: #d60011;
        }
      }
    }
  }
}

#myInput:checked~nav {
  visibility: visible;
  opacity: 1;
  @include tr(all, 0.4s);
}

.search-tan {
  background-color: rgba(#000, .9);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999999;
  visibility: hidden;
  opacity: 0;
  @include tr(all, 0.4s);
  .searh-bg{ position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }
  .search-main {
    text-align: center;
    padding-top: 20%;
    position: relative;
    z-index: 2;
    input[type="radio"] {
      display: none;
    }
    .item {
      height: 40px;
      line-height: 40px;
      display: inline-block;
      background-color: #d60011;
      color: #fff;
      text-align: center;
      border-radius: 40px;
      margin-right: 20px;
      overflow: hidden;
      font-size: 0;
      label {
        width: 40px;
        font-size: 20px;
        line-height: 40px;
        display: inline-block;
        vertical-align: middle;
        @include tr(all, 0.4s);
      }
      input {
        width: 0;
        padding: 0;
        margin: 0;
        font-size: 0;
        border: 0;
        vertical-align: middle;
        outline: none;
        color: #333;
        @include tr(width, 0.6s);
      }
      a {
        
        @include tr(transform, 0.6s);
      }
    }
    input[type="radio"]:checked+.item {
      background-color: #fff;
      width: auto;
      label {
        color: #464646;
        margin-left: 8px;
        @include tr(all, 0.4s);
      }
      input {
        width: 10em;
        padding: 0;
        margin: 0;
        font-size: 0;
        border: 0;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        @include tr(width, 0.6s);
      }
      a {
        font-size: 16px;
        line-height: 22px;
        width: 22px;
        display: inline-block;
        border-radius: 22px;
        color: #fff;
        background-color: #d60011;
        margin: 9px;
        vertical-align: middle;
        transform: rotate(360deg);
        @include tr(transform, 0.6s);
      }
    }
  }
  .close {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -13px;
    margin-top: -13px;
    width: 26px;
    height: 26px;
    display: block;
    z-index: 2;
    .bar {
      height: 3px;
      width: 26px;
      border-radius: 50px;
      margin: 5px 0;
      display: block;
      position: relative;
      background-color: #fff;
      -moz-transition: 0.4s;
      -o-transition: 0.4s;
      -webkit-transition: 0.4s;
      transition: 0.4s
    }
  }
}

#searchchange {
  display: none;
}

#searchchange:checked~.search-tan {
  visibility: visible;
  opacity: 1;
  @include tr(all, 0.4s);
  .close {
    .bar {
      &:nth-of-type(1) {
        transform: translateY(8px) rotate(45deg);
      }
      &:nth-of-type(2) {
        opacity: 0;
      }
      &:nth-of-type(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
    }
  }
}

article {
  margin-top: 60px;
}