/**
  @name planet demo
  @author kylin
*/

/* 清除浮动 */

.clearfix::after {
  content: '.';
  height: 0;
  display: block;
  clear: both;
  visibility: hidden;
}

/* 初始化样式 */

body, ul, li, span, h5, img {
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
}

body {
  position: relative;
  min-height: 100%;
  background-color: #2e2e43;
  color: #9498A1;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

a {
  text-decoration: none;
  color: #9498A1;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

li {
  list-style: none;
}

#container {
  min-height: 130vh;
}

/* 顶栏 */

header {
  letter-spacing: 1px;
  background-color: #2d2f42;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 20px;
  box-shadow: 0px 1px 7px 2px #12131b;
  z-index: 9;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 网站logo */

.logo-wrapper {
  float: left;
}

.logo {
  display: inline-block;
  background: url('../images/logo.png') no-repeat left center;
  background-size: 40px 40px;
  line-height: 50px;
  font-size: 20px;
  font-weight: bold;
  padding-left: 50px;
}

.logo span {
  color: #9498A1;
  transition: all 2s;
}

.logo span:hover {
  color: #cf6e7d;
  text-shadow: #9498a1 1px 0px 20px;
  transition: all 1s;
}

/* 全局导航栏 */

.global-navbar {
  float: left;
  margin-left: 10vw;
}

.global-navbar li {
  float: left;
  line-height: 50px;
  margin-right: 30px;
}

.global-navbar a {}

/* 导航栏搜索框 */

.nav-searchbox {
  float: left;
  line-height: 50px;
  width: 200px;
}

.nav-searchbox input {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  background-color: #12131b;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  outline: none;
  color: #9498A1;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.nav-searchbox input:focus {
  border-color: #cf6e7d;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px #cf6e7d;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.wrapper {
  height: 100%;
  margin-top: 50px;
  padding-bottom: 80px;
}

/* 网站主体 */

.main {
  font-size: 20px;
  background-color: transparent;
  width: 100vw;
  margin: 0 auto;
}

/* 左侧导航栏 */

.main-left {
  padding-top: 25px;
  width: 16%;
  height: 500px;
  float: left;
}

/* 左侧导航-频道 */

.main-square {
  font-size: 14px;
  font-weight: normal;
  margin: 0 10px 15px 0;
  float: right;
  /* padding-bottom: 10px; */
  /* border-bottom: 1px solid rgba( 255, 192, 203, .1); */
}

.main-square h5 {
  left: 10px;
  letter-spacing: 4px;
  position: relative;
  font-size: 14px;
  margin: 0 0 6px;
  padding: 0 0 0 10px;
  color: rgba(232, 154, 190, .7);
  font-weight: 400;
}

.main-square h5::before {
  content: '';
  width: 14px;
  height: 14px;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  background: no-repeat url('../images/main-square.png');
  background-size: 14px 14px;
}

.main-square li {
  height: 34px;
  width: 150px;
  margin: 0;
}

/* 频道子项目 */

.main-square-item {
  letter-spacing: 1px;
  display: block;
  border-radius: 4px;
  line-height: 34px;
  padding: 0 0 0 10px;
  transition: background 0.2s;
  font-weight: 300;
}

.main-square-item:hover {
  background-color: rgba( 255, 192, 203, .2);
  transition: background 0.2s;
}

.main-square-item span {
  display: inline-block;
  line-height: 34px;
  vertical-align: middle;
  margin-left: 4px;
}

.main-square-item img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* 内容主体  */

.main-middle {
  position: relative;
  padding-top: 25px;
  width: 66%;
  background-color: #212331;
  /* background-color: #212331; */
  min-height: 100%;
  float: left;
}

/* 文章 */

.main-middle-news {}

.news-info {
  display: block;
  margin: 50px auto;
  width: 80%;
}

.news-info-article {
  float: left;
  width: 60%;
}

.news-info-title {
  color: rgba(232, 154, 190, .7);
  font-size: 18px;
}

.news-info-title:hover {
  text-decoration: underline;
}

.news-info-meta {
  font-size: 12px;
}

.news-info-meta span {
  background-size: 13px 13px;
  padding-left: 16px;
  opacity: 0.7;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.news-square {
  background: url('../images/news-square.png') no-repeat left center;
}

.news-author {
  background: url('../images/news-author.png') no-repeat left center;
}

.news-hot {
  background: url('../images/news-hot.png') no-repeat left center;
}

.news-comment {
  background: url('../images/news-comment.png') no-repeat left center;
}

.news-time {
  background: url('../images/news-time.png') no-repeat left center;
}

.news-excerpt {
  margin: 0px 0 4px 0;
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  opacity: 0.7;
  width: 100%;
  text-indent: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  /* text-indent: 8px; */
}

.news-read a {
  margin: 10px 0;
  padding: 4px 12px;
  font-size: 14px;
  display: inline-block;
  color: rgb(232, 154, 190);
  opacity: 0.7;
  border-radius: 4px;
  border: 1px solid #bfbfbf;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out, border .2s ease-in-out;
}

.news-read a:hover {
  background-color: rgba( 232, 154, 190, 0.4);
  border: 1px solid rgba( 255, 192, 203, .1);
  color: #ddd;
  opacity: 1;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out, border .2s ease-in-out;
}

.news-info-img {
  float: right;
  background: url('../images/load-img.png') no-repeat;
  background-size: 200px 85px;
  width: 200px;
  height: 85px;
  opacity: 0.9;
}

.news-info-img img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  opacity: 1;
  /* box-shadow: 0px 1px 7px 2px #12131b */
}

/* 文章头部 */

.article-meta {
  padding: 10px 20px 0;
}

.article-title {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 2px;
}

.article-square {
  display: inline-block;
  font-size: 14px;
  background-color: rgba( 232, 154, 190, 0.2);
  color: #cf6e7d;
  font-weight: 400;
  border-radius: 2px;
  padding: 1px 4px;
  letter-spacing: 2px;
}

.article-author {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
}

.article-author::before {
  display: inline-block;
  content: '·';
  font-size: 20px;
  font-weight: 900;
  margin: 0 4px;
  color: rgba( 232, 154, 190, 0.4);
}

.article-time {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
}

/* 右侧导航栏 */

.main-right {
  padding: 10px 0;
  height: 1000px;
  float: left;
  width: 18%;
}

.right-ads {
  margin: 10px 10px;
  line-height: 200px;
  border-radius: 2px;
  background-color: rgba(148, 152, 161, .2);
  font-size: 16px;
  color: #9498A1;
  text-align: center;
}

.right-ctx {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

/* 底部信息 */

footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  line-height: 80px;
  text-align: left;
  opacity: 1;
  text-align: center;
  margin-bottom: 4px;
}

.footer-icon {
  margin-left: 16%;
  margin-right: 18%;
  background-color: #212331;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.footer-icon a {
  display: inline-block;
  margin: 0 20px;
}

.footer-icon img {
  height: 30px;
  vertical-align: middle;
}