/*由于 PC 相比移动端展示的内容多，所以遵从PC优先*/


/*导航部分*/

.header {
  width: 145px;
  padding: 54px 0 0 60px;
  font-family: Arial;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: #161616;
}

.logo {
  width: 117px;
  height: 72px;
  margin: 0 0 0 -16px;
  background: url(../../lib/images/logo_black.png) no-repeat;
  background-size: 100%;
}

.menu {
  display: none;
  width: 58px;
  height: 45px;
  position: absolute;
  top: 8px;
  right: 5px;
}

.menu-close {
  display: none;
}

.navmain {
  line-height: 35px;
  padding-top: 35px;
  font-size: 0.875em;
}

.navmain a,
.navfri a {
  color: #777;
}

.navmain a:hover,
.navfri a:hover {
  color: #fff;
}

.qrcode {
  margin-top: 20px;
}

.titlefri {
  font-size: 1.125em;
  color: #fff;
  font-weight: normal;
  padding: 40px 0 15px 0;
}

.navfri {
  line-height: 22px;
  font-size: 0.75em;
}


/*主体部分*/

.main {
  margin: 0 0 0 205px;
  padding: 100px 0 100px 25px;
  overflow: hidden;
}

.main.hide {
  height: 0;
  overflow: hidden;
}

.home,
.about {
  position: fixed;
  left: 205px;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.page.hide {
  display: none;
}

.tags {
  padding-bottom: 50px;
  height: 46px;
}

.tags li {
  float: left;
  width: 100px;
  margin: 0 10px 0 0;
  padding-bottom: 6px;
}

.tags a {
  display: block;
  text-align: center;
  background-color: #a2a2a2;
  color: #f9f9f9;
  height: 40px;
  line-height: 40px;
  border-radius: 3px;
  transition: background 0.25s ease-out 0s;
  font-size: 1em;
}

.tags a:hover,
.tags li.action>a {
  background-color: #161616;
  position: relative;
}

.tags a:hover:after,
.tags li.action>a:after {
  display: block;
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -3px;
  border-top: 6px solid #161616;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.news {
  min-height: 810px;
}

.news li.hide {
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

.news li.hot>a,
.news .imgbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.news li.hot>a img,
.news .imgbox img {
  width: 100%;
}

.news li.hot {
  width: 485px;
  height: 515px;
  margin: 0 25px 25px 0;
  position: relative;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
}

.news li.hot:hover .hot-close {
  opacity: 1;
}

.hot .hot-close:hover {
  background-color: #ff0;
}

.hot .hot-close {
  position: absolute;
  right: 28px;
  top: 25px;
  width: 32px;
  height: 32px;
  background-color: #f00;
  cursor: pointer;
  opacity: 0;
  transition: all 300ms ease-in-out;
}

.news li.item {
  width: 226px;
  height: 241px;
  margin: 0 25px 25px 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0);
  transition: all 0.6s ease-in-out;
}

.news li.item:hover {
  border-color: rgba(0, 0, 0, 1);
}

.news .imgbox {
  height: 160px;
}

.news li.item:hover .authorinfo {
  opacity: 1;
}

.authorinfo {
  width: 226px;
  height: 143px;
  padding: 20px 0 0 0;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  font-size: 0.75em;
  color: #fff;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.6s ease-out;
}

.authorinfo img {
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.nickname {
  width: 216px;
  height: 30px;
  margin: 0 auto;
  line-height: 30px;
  text-align: center;
  border-bottom: 1px dotted #616161;
  word-spacing: 10px;
}

.vote {
  text-align: center;
  line-height: 35px;
  color: #fff;
}

.intro {
  padding: 0 10px;
}

.intro .articletitle {
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: normal;
  font-size: 0.875em;
  color: #6c6c6c;
  padding: 6px 0 5px 0;
}

.intro .articleintro {
  color: #9e9e9e;
  font-size: 0.75em;
  height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/*底部*/

.footer {
  color: #7B7B7B;
  padding: 15px 0 0 0;
  font-size: .75em;
  margin: 0 25px 0 0;
  border-top: 1px dotted #a8a8a8;
}


/*文章展示*/

.article {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 100%;
  width: -moz-calc(100% - 230px);
  width: -webkit-calc(100% - 230px);
  width: calc(100% - 230px);
  margin: 0 0 0 205px;
  padding: 85px 0 85px 25px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  transition: left 0.6s ease-out;
}

.article.show {
  left: 0;
}

.article .content {
  max-width: 740px;
}

.article.show .article-close {
  display: block;
}

.article-close {
  display: none;
  background-color: #000;
  position: absolute;
  top: 25px;
  right: 25px;
  transition: top 0.3s ease-in;
}


/*适配平板设备*/

@media screen and (max-width: 960px) {

  /*导航部分*/
  .header {
    width: 100%;
    height: 60px;
    padding: 0;
    z-index: 999;
  }

  .logo {
    width: 80px;
    height: 50px;
    margin: 5px 8px 5px 25px;
  }

  .menu {
    display: block;
  }

  .navmain {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    left: 0;
    top: 60px;
    background-color: #0a0a0a;
    transition: all 300ms ease-in-out;
  }

  .navmain li {
    width: 50%;
    float: left;
    text-align: center;
    padding-top: 20px;
  }

  .expan {
    height: 125px;
    overflow: hidden;
  }

  .qrcode,
  .links {
    display: none;
  }

  /*内容主体*/
  .main {
    width: 96%;
    padding-left: 0;
    margin: 0 auto;
  }

  .home {
    left: 0;
    top: 60px;
  }

  .tags li {
    width: 16.66%;
    margin-right: 1.66%;
  }

  .news {
    margin-left: -2.6%;
  }

  .news li.hot .hot-close {
    display: none;
  }

  .news li.hot {
    width: 88%;
    float: none;
    margin: 10px auto;
    padding: 0 6%;
    background: #fff;
  }

  .news li.item {
    width: 47.4%;
    height: auto;
    margin-left: 2.6%;
    margin-right: 0px;
    border: 0;
    background-color: #fff;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);
  }

  .news .imgbox {
    box-sizing: border-box;
    padding: 10px;
    height: auto;
  }

  .authorinfo {
    color: #9e9e9e;
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    padding: 0px;
    opacity: 1;
  }

  .authorinfo img,
  .nickname {
    display: none;
  }

  .vote {
    color: #6c6c6c;
    padding: 0 10px;
  }

  .intro {
    text-align: center;
  }

  /*底部适配*/
  .footer {
    margin-right: 0;
    text-align: center;
  }

  .article {
    margin: 0;
    width: 96%;
    padding-left: 2%;
    padding-right: 2%;
  }

  .article-close {
    top: 85px;
    right: 2%;
    opacity: 0.3;
  }
}


/*适配手机*/

@media screen and (max-width:600px) {
  .news {
    margin-left: 0;
  }

  .news li.hot {
    width: auto;
    height: auto;
    margin: 0 0 10px;
    padding: 10px;
  }

  .news li.item {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
  }
}
