/* --- General --- */

body {
  /*font-family: 'Lora', 'Times New Roman', serif;*/
  line-height: 1.8;
  font-family:  'Segoe UI', 'Lora','Hiragino Sans GB', STHeiti, 'Microsoft Yahei', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  
}

/* --- Tables --- */

table {
  padding: 0;
}
table tr {
  border-top: 1px solid #cccccc;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}
table tr:nth-child(2n) {
  background-color: #f8f8f8;
}
table tr th {
  font-weight: bold;
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}
table tr td {
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}
table tr th :first-child,
table tr td :first-child {
  margin-top: 0;
}
table tr th :last-child,
table tr td :last-child {
  margin-bottom: 0;
}

/* --- 引用 --- */
blockquote {
  margin: 2em 0;
  padding: 10px 20px;
  position: relative;
  color: rgba(52,73,94,.8);
  background-color: rgba(192,91,77,.05);
  border-left: 3px solid rgba(192,91,77,.3);
  box-shadow: 1px 1px 2px rgba(0,0,0,.125);
}
blockquote p:first-child {
  margin-top: 1rem;
}

/* --- nav.html -- */
.navbar-custom {
  border-top: 3px solid #333;
  border-bottom: 1px solid #e8e8e8;
}

.navbar-light .navbar-brand {
  color: #333;
  text-decoration: none;
}

.navbar-light .navbar-brand:hover{
  color: #1abc9c;
  transition: all 0.2s;
}

/* --- sidebar -- */
.sidebar {
  -ms-flex-order: 0;
  order: 0;
  /* border-bottom: 1px solid rgba(0,0,0,.1); */
}

@media (min-width: 768px){
  .sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 4rem;
    z-index: 1000;
    height: calc(100vh - 4rem);
    border-right: 1px solid rgba(0,0,0,.1);
  }
}


/* --- toc -- */
.toc {
  position: -webkit-sticky;
  position: sticky;
  top: 4rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
  -ms-flex-order: 2;
  order: 2;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: .875rem;
}


/* --- content -- */
.content {
  -ms-flex-order: 1;
  order: 1;
}


/* --- post_preview.html --- */
.post-preview{
  padding: 1.2em 0;
  border-bottom: 1px solid #eee;
}

.post-preview-header{
  margin-bottom: 10px;
}

.post-preview-content .post-read-more{
  font-weight: 800;
  float: right;

}

.post-preview-content .post-read-more:hover{
  color: #1abc9c;
  text-decoration:none; 
  transition: all 0.2s;
}

.post-preview-footer a:hover{
  text-decoration:none; 
  color: #1abc9c;
  transition: all 0.2s;
}

.post-preview-footer .cate-label{
  background: #FFF5DE; 
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid #aaa;
  display: inline-block
}


.post-preview-footer .tag-label{
  background: rgb(215, 233, 204);
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid #aaa;
  display: inline-block
}

.paginator{
  margin: 2rem 0;
}

/* --- comment.html --- */
.comment{
  margin-top: 3em;
}

/* --- footer.html --- */
footer {
  padding: 30px 0;
  background: #f5f5f5;
  border-top: 1px #eaeaea solid;
  margin-top: 50px;
  font-size: 14px;
}

footer a:hover{
  text-decoration:none; 
  color: #1abc9c;
  transition: all 0.2s;
}


@media only screen and (min-width: 768px){
  footer {
    padding: 50px 0;
  }

  footer .footer-links {
      font-size: 18px; 
  }
}


/* --- single.html --- */
.post-header {
  margin: 30px 0 20px;
}

.post-header h2 {
  font-size: 2em;
  line-height: 1.4;
  font-weight: 600;
}

.post-pager {
  padding-top: 2rem;
  margin: 10px 0 0;
  border-top: 1px solid #e6e6e6;
}

.relate-nav{
  padding: .125rem 1.5rem;
  border-left: 1px solid #eee;
}

@media only screen and (min-width: 768px) {
  .post-pager  {
    margin-top: 40px;
  }
}


.post-copyright{
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed #e6e6e6;
}
.post-copyright .copyright-item{
  margin: 5px 0;
}

.post-toc{
  margin-top: 4rem;
}

.post-toc .post-toc-title{
  margin: 10px 0 ;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
}
