$color: #1471CA; // 1471CA
$hover: #0D62B3; // 0D62B3

@import "compass/reset";
@import "fa";


.pull-left{
  float: left;
}
.pull-right{
  float: right;
}
a{
  color: $color;
  &:hover{
    color: $hover;
  }
}

html{font-size:10px}
@media (min-width: 352px){html{font-size:11px !important}}
@media (min-width: 384px){html{font-size:12px !important}}
@media (min-width: 480px){html{font-size:15px !important}}
@media (min-width: 640px){html{font-size:20px !important}}

body{
  font-size: 1.2rem;
  background: #fff;
  word-wrap: break-word;
  transition: all .3s ease-out 0s;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}


.header{
  position: relative;
  height: 4.6rem;
  padding: 1rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 2px 1px rgba(0,0,0,0.06);
  box-sizing: border-box;
  .logo{
    display: inline-block;
    img{
      width: auto;
      max-height: 2.6rem;
      vertical-align: top;
    }
  }
}
.menu-btn{
  position: absolute;
  left: 1rem;
  top: 50%;
  margin-top: -1.25rem;
  .icon-bar{
    display: block;
    width: 2rem;
    height: .1rem;
    background: #999;
    border-radius: 1px;
    transition: all .3s ease-out 0s;
    @media (min-width: 352px){height: 1px;}
    @media (min-width: 384px){height: 1px;}
    @media (min-width: 480px){height: 2px;}
    @media (min-width: 640px){height: 2px;}
  }
  .icon-bar-2,.icon-bar-3{
    margin-top: .5rem;
  }
  .icon-bar-3{}
  .navbar-toggle{
    padding: .6rem .4rem;
    border: 0;
    background: none;
    &:active,&:focus{
      outline: 0;
    }
  }
}
.header-search{
  position: absolute;
  right: 1rem;
  .fa-search{
    height: 2.6rem;
    width: 2.6rem;
    font-size: 2rem;
    line-height: 2.6rem;
    color: #999;
  }
}
.search-wrap{
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.95);
  .search-form{
    position: relative;
    padding: .8rem;
    padding-right: 4.2rem;
    background: #eee;
    box-shadow: 0 0 1px 0 rgba(0,0,0,.2);
    &:before{
      font-family: 'FontAwesome';
      position: absolute;
      left: 1.5rem;
      top: .9rem;
      line-height: 3.2rem;
      font-size: 16px;
      color: #999;
      content: "\e91f";
    }
  }
  .search-input{
    display: block;
    width: 100%;
    height: 3.2rem;
    padding: .5rem .8rem .5rem 2.5rem;
    font-size: 1.4rem;
    background: #fff;
    border: .1rem solid #ddd;
    line-height: 2rem;
    border-radius: .3rem;
    outline: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
  }
  .search-close{
    position: absolute;
    top: .8rem;
    right: 0;
    width: 4.2rem;
    text-align: center;
    font-size: 1.2rem;
    text-decoration: none;
    line-height: 3.2rem;
  }
}

nav.mobile-x-menu, .navbar-nav{
  position: fixed;
  z-index: 9999;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 80%;
  height: 100%;
  padding: 4.6rem 0 2rem;
  margin: 0;
  background: $color;
  box-sizing: border-box;
  .nav, &>ul {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    border-top: 1px solid rgba(10,10,10,.06)!important;
    overflow-y: auto;
    & > li {
      position: relative;
      font-size: 1.6rem;
      & > a {
        display: block;
        padding: 0 2rem;
        line-height: 4.2rem;
        border: 0;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(10,10,10,.06)!important;
        &:active,&:focus{
          background: $hover;
        }
      }
    }
  }
  .sub-menu{
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
    background: rgba(0,0,0,.06);
    li{
      a{
        padding: 0 2rem;
        display: block;
        color: #fff;
        line-height: 4rem;
        text-decoration: none;
        border-bottom: 1px solid rgba(10,10,10,.03)!important;
      }
    }
  }

  .m-dropdown{
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 4.2rem;
    height: 4.2rem;
    line-height: 4.2rem;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    transition: all .3s ease-out 0s;
    i{
      font-size: 2rem;
      line-height: 4.2rem;
      transition: all .3s ease-out 0s;
    }
  }
  .menu-open>.m-dropdown i{
    transform:rotate(180deg);
    transition: all .3s ease-out 0s;
  }
}

.menu-on {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  transform: translateX(80%);
  transition: all .3s ease-out 0s;
  .navbar-on-shadow{
    display: block;
  }
  .menu-btn{
    position: fixed;
    z-index: 99999;
    top: 2.3rem;
    left: -3.8rem;
    .icon-bar{
      background: #fff;
      transform: rotate(-45deg) translate(-.1rem, .3rem);
      transition: all .3s ease-out 0s;
    }
    .icon-bar-2{
      display: none;
    }
    .icon-bar-3{
      transform: rotate(45deg) translate(-.1rem, -.3rem);
    }
  }
}
.navbar-on-shadow {
    display: none;
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    content: '';
    background: rgba(0,0,0,0.3);
}

.slider{
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
.slider:after{
    content: '';
    display: block;
    width: 100%;
    padding-top: 50%;
}
.slider ul{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.slider li{
    list-style: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
/* 解决js阻塞页面显示首屏 */
.slider li:first-child{
    z-index: 1;
}
.slider li img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.slider .dot{
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 5;
    font-size: 0;
}
.slider .dot span{
    display: inline-block;
    width: .5rem;
    height: .5rem;
    margin-left: .5rem;
    border: 1px solid #fff;
    border-radius: 50%;
}
.slider .dot .cur{
    background-color: #fff;
}
.slider{
  .slider-nav{
    position: absolute;
    z-index: 10;
    bottom: 1.4rem;
    height: .5rem;
    right: .8rem;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
    span{
      display: inline-block;
      width: .5rem;
      height: .5rem;
      margin: 0 .2rem;
      background: rgba(200,200,200,.7);
      border-radius: .5rem;
    }
    .active{
      background: rgba(255,255,255, .9);
    }
  }
  .slider-title{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem 6rem 1rem 1rem;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(0,0,0,.5);
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    a{
      display: block;
      width: 100%;
      color: #fff;
      text-decoration: none;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}




.archive-list{
  margin: 0 0 2rem;
  padding: 1rem 0;
  .post-list{
    list-style: none;
    padding: 0;
  }
  .item{
    padding: 1rem;
    border-bottom: 1px solid #EFEFEF;
    overflow: hidden;
  }
  .item-thumb{
    position: relative;
    float: left;
    width: 10rem;
    height: 6.8rem;
    overflow: hidden;
    background: #eee;
  }
  .item-img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translate(50%,50%);
    img{
      position: absolute;
      height: 100%;
      width: auto;
      vertical-align: top;
      transform: translate(-50%,-50%);
    }
  }
  .item-category{
    position: absolute;
    left: .5rem;
    top: .5rem;
    padding: .3rem .5rem;
    font-size: 1rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    border-radius: .2rem;
    text-decoration: none;
  }
  .item-content{
    position: relative;
    margin-left: 11rem;
  }
  .item-title{
    margin: 0 0 1rem;
    line-height: 1;
    font-weight: 500;
    a{
      font-size: 1.6rem;
      line-height: 2rem;
      color: #333;
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      text-decoration: none;
      span{
        color: #e0b228;
      }
      .sticky-post{
        display: inline-block;
        padding: 0 .5rem;
        margin-top: .1rem;
        font-size: 1rem;
        line-height: 1.8rem;
        color: #fff;
        background: $color;
        font-weight: 300;
        border-radius: .2rem;
        vertical-align: top;
      }
    }
  }
  .item-meta{
    width: 100%;
    color: #999;
    font-size: 1.2rem;
    text-align: right;
    .item-meta-li{
      display: inline-block;
      vertical-align: top;
      line-height: 1.8rem;
    }
    .date{
      float: left;
    }
    .comments{
      margin-left: .5rem;
    }
    .fa-message-square{
      position: relative;
      top: .1rem;
    }
    a{
      color: #999;
      text-decoration: none;
    }
  }
}


.entry-head{
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.entry-title{
  padding: 0.5rem 0 1rem;
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 1.4;
}
.page-title{
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}
.entry-meta{
  font-size: 1.3rem;
  color: #999;
  line-height: 1.4;
  a{
    color: #999;
    text-decoration: none;
  }
  .entry-time{
    margin-right: 1rem;
  }
  .entry-views{
    margin-left: 1rem;
  }
}


.entry{
  padding: 1rem 0;
}
.entry-content{
  padding: 0 1.5rem;
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
  h1,.h1,h2,.h2,h3,.h3{
    margin: 2.5rem 0 1.5rem;
    line-height: 1.4;
    font-weight: 500;
  }
  h1,.h1{
    font-size: 2.1rem;
    font-weight: 500;
  }
  h2,.h2{
    padding-bottom: 1rem;
    font-size: 1.9rem;
    border-bottom: 1px solid #efefef;
    font-weight: 500;
  }
  h3,.h3{
    padding-left: 1rem;
    font-size: 1.7rem;
    line-height: 1.2;
    border-left: .3rem solid $color;
    font-weight: 500;
  }
  h4,.h4{
    font-size: 1.6rem;
    font-weight: 500;
  }
  h5,.h5{
    font-size: 1.5rem;
    font-weight: 500;
  }
  h6,.h6{
    font-size: 1.5rem;
    font-weight: normal;
  }
  p{
    margin-bottom: 1.5rem;
  }
  strong, b{
    font-weight: 600;
  }
  em{
    font-style: italic;
  }
  blockquote, pre{
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #555;
    background: #f3f3f3;
    border-left-color: #e3e3e3;
    p:last-child{
      margin-bottom: 0;
    }
    ul,ol{
      margin-bottom: 0;
    }
  }
  pre{
    overflow: auto;
  }
  ul,ol{
    padding: 1rem 1rem 1rem 1.5rem;
    margin-bottom: 1.5rem;
    list-style: outside;
  }
  li{
    margin-bottom: .6rem;
    &:last-child{
      margin-bottom: 0;
    }
  }
  img{
    max-width: 100%;
    height: auto;
    vertical-align: top;
  }
  video{
    display: block;
    width: 100%;
    height: auto;
  }
  iframe,embed{
    display: block;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    max-height: 50rem;
  }
  .aligncenter{
    display: block;
    margin: 0 auto;
    text-align: center;
    img{
      margin: 0 auto;
    }
  }
  .alignleft{
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
  }
  .alignright{
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
  }
  input, button, select, textarea,.wp-caption{
    max-width: 100%;
  }
  .wp-caption-text{
    padding-top: .5rem;
    text-align: center;
    text-indent: 0;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #666;
  }
}

.load-more{
  display: block;
  margin: 1.5rem 1rem 0;
  padding: 0.8rem 1rem;
  line-height: 1.4;
  font-size: 1.2rem;
  text-align: center;
  text-decoration: none;
  color: $color;
  border-radius: .3rem;
  border: 1px solid $color;
  &:active,&:focus,&:hover{
    outline: 0;
  }
  &.loading{
    font-size: 0!important;
    opacity: 0.5!important;
    &:after{
      font-size: 1.2rem;
      content: 'Loading...';
    }
  }
  &.disabled{
    background: #eee!important;
    color: #999!important;
    border: 1px solid #ccc!important;
  }
}
.load-more-wrap{
  display: flex;
  justify-content: space-between;
  width: 100%;
  .load-more{
    width: 100%;
  }
}
.load-more-half{
  margin: 1.5rem 1rem 0;
}

.entry-related-title{
  margin: 2rem 1rem .5rem;
  font-size: 1.6rem;
  font-weight: 500;
}

.entry-comments{
  padding: 1rem;
  margin-bottom: 1rem;
  .required{
    color: red;
  }
  .comment-form-author,.comment-form-email{
    position: relative;
    margin: .5rem 0;
    label{
      position: absolute;
      left: 0;
      top: 0;
      width: 5rem;
      color: #999;
      text-align: center;
      line-height: 2.8rem;
    }
    input{
      display: block;
      width: 100%;
      padding: .5rem 1rem;
      line-height: 1.6rem;
      padding-left: 5.2rem;
      box-sizing: border-box;
      border: 1px solid #eee;
      outline: 0;
    }
  }
}
.comment-reply-title,.comments-title{
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 500;
}
.logged-in-as{
  font-size: 1.2rem;
}
.comment-form-comment {
  padding-top: 1rem;
  margin-bottom: .5rem;
  textarea{
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #eee;
    outline: 0;
  }
}
.form-submit .submit{
  display: block;
  width: 100%;
  padding: .8rem 0;
  text-align: center;
  font-size: 1.4rem;
  background: $color;
  color: #fff;
  border: 0;
  &:focus,&:active{
    background-color: $hover;
    outline: 0;
  }
}

.comments-list{
  padding: 0;
  margin: 0 -.5rem 2rem;
  list-style: none;
  .comment{
    padding: 1rem .5rem .5rem;
    border-bottom: 1px solid #eee;
  }
  .even{
    background: #f9f9f9;
  }
  .odd{
    background: #fff;
  }
  .children{
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #eee;
    &>li:last-child{
      border-bottom: 0;
    }
  }
  .reply{
    padding-left: 5rem;
    margin-bottom: .5rem;
    font-size: 1.2rem;
    line-height: 1.4rem;
    text-align: right;
    a{
      text-decoration: none;
    }
  }
  .comment{
    &:hover{
      .reply{
        visibility: visible;
      }
    }
  }
}
.comment-author{
  float: left;
  width: 4rem;
  margin-right: 1rem;
  img{
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
  }
}
.comment-body{
  .nickname{
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    color: #333;
  }
  .comment-time{
    margin-left: 1rem;
    font-size: 1.2rem;
    font-weight: normal;
    color: #999;
  }
  .comment-awaiting-moderation{
    margin: .5rem 0;
    color: #666;
    font-weight: bold;
  }
}
.comment-text{
  padding-left: 5rem;
  margin-top: .5rem;
  font-size: 1.4rem;
  p{
    margin-bottom: 0;
  }
}

.err404{
  margin: 0;
  padding: 2rem 1rem;
  font-size: 2.6rem;
  text-align: center;
  color: #333;
}
.err404-desc{
  font-size: 1.4rem;
  line-height: 1.6;
  padding: .5rem 1rem 2rem;
  text-align: center;
  color: #666;
}

.footer{
  padding: 1.5rem 1rem;
  color: #999;
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
  background: #f5f5f5;
  border-top: 1px solid #eee;
}