/*!--------------------------------*\
   3-Jekyll Theme
   @author Peiwen Lu (P233)
   https://github.com/P233/3-Jekyll
\*---------------------------------*/
/*---------------------------------*\
   Fonts
\*---------------------------------*/
@font-face {
  font-family: "fontello";
  src: url("../font/fontello.eot");
  src: url("../font/fontello.eot#iefix") format("embedded-opentype"), url("../font/fontello.woff") format("woff"), url("../font/fontello.ttf") format("truetype"), url("../font/fontello.svg#fontello") format("svg");
  font-weight: normal;
  font-style: normal; }
.fontello, .post__toc-li:before {
  font-family: "fontello";
  speak: none;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

/*---------------------------------*\
   Base
\*---------------------------------*/
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

.float-half{
  border-bottom:1px solid #bbb;
  display:inline-block;
  width:48%;
  margin-bottom:10px;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  /*font-family: 'Monda', "PingFang SC", "Microsoft YaHei", sans-serif*/
  /*font-family: "Microsoft Yahei","Hiragino Sans GB",Helvetica,"Helvetica Neue","微软雅黑",Tahoma,Arial,sans-serif;*/
  font-family: 'Hiragino Sans GB','Helvetica Neue', Arial, STHeiti, 'Microsoft YaHei', 'WenQuanYi Micro Hei', SimSun, Song, sans-serif;
  font-size: 14px;
  overflow: hidden; }


a a:hover, a:visited, a:link, a:active {
  color: inherit;
  text-decoration: none;}

/*---------------------------------*\
   Tags
\*---------------------------------*/
#tags {
  position:fixed;
  top:0px;
  left:0px;
  bottom:0px;
  width: 165px;
  height: 100%;
  background: #474d57;
  border-right: 1px solid #3c4149;
  box-shadow: inset -15px 0 15px -15px #222;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none; }
  @media screen and (max-width: 585px) {
    #tags {
      display: none; } }

#avatar {
  width: 100px;
  height: 100px;
  margin: 55px auto 35px;
  border-radius: 50%;
  box-shadow: 0 0 0px 4px white, 0 0 4px 4px #eee;
  overflow: hidden;
  display: block; }
  #avatar:hover {
    -webkit-animation: spin .35s linear infinite;
    -moz-animation: spin .35s linear infinite;
    -ms-animation: spin .35s linear infinite;
    -o-animation: spin .35s linear infinite;
    animation: spin .35s linear infinite; }
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #avatar {
      -webkit-background-size: 100px 100px;
      -moz-background-size: 100px 100px;
      background-size: 100px 100px; } }

#tags__ul {
  margin: 0;
  padding: 0;
  font-size: 17px;
  border-top: 1px solid #3c4149;
  border-bottom: 1px solid #525965;
  list-style: none; }

.tags__li {
  padding: 12px 25px 9px 25px;
  border-top: 1px solid #525965;
  border-bottom: 1px solid #3c4149;
  cursor: pointer; }
  .tags__li.active {
    margin-right: -1px;
    color: #020202;
    background: #fafafa;
    border-right: 1px solid #fafafa;
    border-radius: 5px 0 0 5px;
    position: relative;
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none; }
    .tags__li.active:hover {
      color: #020202;
      background: #fafafa; }
    .tags__li.active:before, .tags__li.active:after {
      content: "";
      width: 6px;
      height: 6px;
      background: transparent;
      position: absolute;
      right: -3px; }
    .tags__li.active:before {
      top: -6px;
      border-right: 2px solid #fafafa;
      border-bottom: 2px solid #fafafa;
      border-radius: 0 0 6px 0; }
    .tags__li.active:after {
      bottom: -6px;
      border-right: 2px solid #fafafa;
      border-top: 2px solid #fafafa;
      border-radius: 0 6px 0 0; }

.post_count {
  font-size: 14px;
  float: right;
  color: #7c7c7c; }

#tags__bottom {
  width: 100%;
  height: 44px;
  border-top: 1px solid #3c4149;
  overflow: hidden;
  position: absolute;
  left: 0;
  bottom: 0; }
  #tags__bottom > .fontello, #tags__bottom > .post__toc-li:before {
    width: 50%;
    font-size: 18px;
    line-height: 44px;
    text-align: center;
    border-top: 1px solid #525965;
    float: left; }

#icon-email {
  border-right: 1px solid #3c4149; }
  #icon-email:before {
    content: "\e800"; }

#icon-feed {
  border-left: 1px solid #525965; }
  #icon-feed:before {
    content: "\e802"; }

.tags-btn {
  color: #a6a6a7;
  -webkit-transition: color .3s, background .3s;
  -moz-transition: color .3s, background .3s;
  -ms-transition: color .3s, background .3s;
  -o-transition: color .3s, background .3s;
  transition: color .3s, background .3s; }
  .tags-btn:hover {
    color: #f7f7f7;
    background: #40464f; }

/*---------------------------------*\
   Posts List
\*---------------------------------*/
#posts-list {
  position:fixed;
  top:0px;
  bottom:0px;
  left:165px;
  width: 285px;
  height: 100%;
  background: rgba(250, 250, 250, 0.95);
  border-right: 1px solid #e5e8ec;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none; }
  @media screen and (max-width: 585px) {
    #posts-list {
      display:none; } }

#search-form {
  width: 100%;
  height: 65px;
  border-bottom: 1px solid #e5e8ec; }
  @media screen and (max-width: 585px) {
    #search-form {
      height: 51px;
      display: -webkit-flex;
      display: flex; } }

#mobile-avatar {
  width: 50px;
  height: 50px;
  -webkit-background-size: 50px 50px;
  -moz-background-size: 50px 50px;
  background-size: 50px 50px;
  display: none; }
  @media screen and (max-width: 585px) {
    #mobile-avatar {
      display: block;
      float: left; } }

#search-input {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px 20px 0;
  color: #2eb695;
  font-size: 18px;
  font-family: inherit;
  background: #f7f7f7;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;}
  #search-input::-webkit-input-placeholder {
    color: #cbcbcb;
    font-style: italic; }
  #search-input::-moz-placeholder {
    color: #cbcbcb;
    font-style: italic; }
  #search-input:-ms-input-placeholder {
    color: #cbcbcb;
    font-style: italic; }
  @media screen and (max-width: 585px) {
    #search-input {
      padding: 10px 10px 0;
      -webkit-flex: 1;
      flex: 1; } }

/*---------------------------------*\
   Post
\*---------------------------------*/
#post {
  position:fixed;
  top:0px;
  bottom:0px;
  left:450px;
  right:0px;
  height: 100%;
  color: #2c353d;
  font-size: 14px;
  line-height: 1.5;
  background: white;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; }
  #post ::selection {
    color: white;
    background: #33caa6;
    text-shadow: none; }
  #post ::-moz-selection {
    color: white;
    background: #33caa6;
    text-shadow: none; }
  @media screen and (max-width: 585px) {
    #post {
      position: relative;
      top:0px;
      bottom:0px;
      left:0px;
      right:0px;
      font-size: 14px; } }

@media print{
  #sidebar{
    display:none;
  }
  body{
    height:auto;
    overflow: visible;
  }
  #post {
    position: relative;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
    font-size: 14px; 
    overflow:visible;
    }

    a {
      text-decoration: underline;
    }
}


#post__content[data-showtraslate=english] .post__translate li:nth-of-type(odd){

}

#post__content[data-showtraslate=english] .post__translate li:nth-of-type(even){
  display:none;
}

#post__content[data-showtraslate=page] .post__translate{
  padding-left:0px;
  padding-right:0px;
  font-size:0px;
}

#post__content[data-showtraslate=page] .post__translate li{
  border-bottom:1px solid #bbb;
  display:inline-block;
  width:48%;
  padding-top:3px;
  padding-bottom:3px;
  font-size:14px;
}

#post__content[data-showtraslate=page] .post__translate li:nth-of-type(even){
  margin-left:4%;
}

@media screen and (max-width: 585px) {
  .post__translate li{
    font-size:18px !important;
  }
}

#post__toc {
  position:absolute;
  left:0px;
  right:0px;
  bottom:0px;
  top:65px;
  width:100%;
  overflow-y:scroll;
  display: block;
  user-select: none;}

#post__toc-title {
  padding-top:10px;
  text-align:center;
  color: #474d57;
  font-size: 1.2em;
  display: block; }

#post__toc-ul {
  margin-bottom:100px;
  padding: 0px 10px 20px 15px;
  line-height: 1.6;
  font-size: 16px; 
  }

.post__toc-li.active{
  color:#ff1700;
}

.post__toc-li {
  color: #474d57;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden; }
  .post__toc-li > a:hover {
    color: red; }

.post__toc-h1 {
  font-size: 1.1em;
  list-style: none; }

.post__toc-h2 {
  font-size: 1em; }

.post__toc-h3 {
  margin-left: 12px;
  font-size: 0.9em; }
  .post__toc-h3 + .post__toc-h2 {
    padding-top: .25em; }

.post__toc-h4 {
  margin-left: 24px;
  font-size: 0.8em; }
  .post__toc-h4 + .post__toc-h3 {
    padding-top: .25em; }

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid rgba(102, 128, 153, 0.15); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  font-weight: bold;
  line-height: 1.1;
  color: inherit; }

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small {
  font-weight: 400;
  line-height: 1;
  color: #999999; }

h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small {
  font-size: 65%; }

h1, h2, h3 {
  margin-top: 30px;
  margin-bottom: 20px; }

h4, h5, h6 {
  margin-top: 25px;
  margin-bottom: 15px; }

h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small {
  font-size: 75%; }

h1, .h1 {
  font-size: 36px; }

h2, .h2 {
  font-size: 30px; }

h3, .h3 {
  font-size: 24px; }

h4, .h4 {
  font-size: 18px; }

h5, .h5 {
  font-size: 14px; }

h6, .h6 {
  font-size: 12px; }

p {
  margin: 0 0 10px; }

img +p.caption{
  display:none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px; }

table th, table td {
  padding: 8px;
  line-height: 20px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dddddd; }

#post__title {
  /*margin: 0;*/
  /*padding-top: 1.1em;*/
  /*font-size: 2em;*/ }

#post__content > p, #post__content > ul, #post__content > ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em; }
#post__content > ol > li {
  margin: .5em 0; }
#post__content li > p {
  margin: 0; }
#post__content a {
  color: #0e83cd;
  word-break: break-all; }
  #post__content a:hover {
    text-decoration: underline; }
#post__content img {
  max-width: 100%;
  border: 2px solid #e5e8ec;
  border-radius: 0; }

strong {
  font-weight: bold; }

blockquote {
  margin: 0 0 15px;
  padding: 15px 20px;
  border-left: 5px solid #ddd;
  font-size: 14px;
  background-color: rgba(102, 128, 153, 0.05); }

blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child {
  margin-bottom: 0; }

kbd {
  padding: .2em .3em .1em;
  font-size: .75em;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  background: white;
  background: -webkit-linear-gradient(left, #f6f4f4, white, #f6f4f4);
  background: -moz-linear-gradient(left, #f6f4f4, white, #f6f4f4);
  background: -ms-linear-gradient(left, #f6f4f4, white, #f6f4f4);
  background: -o-linear-gradient(left, #f6f4f4, white, #f6f4f4);
  background: linear-gradient(left, #f6f4f4, white, #f6f4f4);
  border-color: #fbfaf9 #f0eeed #e1dfdf;
  border-width: .25em .3em .4em;
  border-style: solid;
  border-radius: .25em;
  vertical-align: .3em; }

iframe {
  margin-top: 1.5em; }
  @media screen and (max-width: 585px) {
    iframe {
      height: 260px; } }

#pjax{
  padding:0 5% 30px;
}

#disqus_thread {
  padding: 30px 0;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box; }

#copyright {
  margin: 0;
  padding-top: 1em;
  font-size: .9em;
  text-align: center;
  border-top: 2px solid rgba(229, 232, 236, 0.5); }
  #copyright > a {
    color: #2eb695; }
    #copyright > a:hover {
      text-decoration: underline; }

#post__date{
  color:#8c8c8c;
}

#post__author{
  margin-left:10px;
  color:#8c8c8c;
}

#post__author a{
  color:#0e83cd;
}

#post__category{
  margin-left:10px;
  color:#8c8c8c;
}

#post__category a{
  color:#0e83cd;
}

figure figcaption{
  display: none;
}

/*---------------------------------*\
   Vendors
\*---------------------------------*/
@-webkit-keyframes fadeIn {
  from {
    -webkit-transform: translateY(30px);
    opacity: 0; }

  to {
    -webkit-transform: translateY(0);
    opacity: 1; } }
@-moz-keyframes fadeIn {
  from {
    -moz-transform: translateY(30px);
    opacity: 0; }

  to {
    -moz-transform: translateY(0);
    opacity: 1; } }
@-ms-keyframes fadeIn {
  from {
    -ms-transform: translateY(30px);
    opacity: 0; }

  to {
    -ms-transform: translateY(0);
    opacity: 1; } }
@-o-keyframes fadeIn {
  from {
    -o-transform: translateY(30px);
    opacity: 0; }

  to {
    -o-transform: translateY(0);
    opacity: 1; } }
@keyframes fadeIn {
  from {
    transform: translateY(30px);
    opacity: 0; }

  to {
    transform: translateY(0);
    opacity: 1; } }
@-webkit-keyframes fadeOut {
  from {
    -webkit-transform: translateY(0);
    opacity: 1; }

  to {
    -webkit-transform: translateY(-30px);
    opacity: 0; } }
@-moz-keyframes fadeOut {
  from {
    -moz-transform: translateY(0);
    opacity: 1; }

  to {
    -moz-transform: translateY(-30px);
    opacity: 0; } }
@-ms-keyframes fadeOut {
  from {
    -ms-transform: translateY(0);
    opacity: 1; }

  to {
    -ms-transform: translateY(-30px);
    opacity: 0; } }
@-o-keyframes fadeOut {
  from {
    -o-transform: translateY(0);
    opacity: 1; }

  to {
    -o-transform: translateY(-30px);
    opacity: 0; } }
@keyframes fadeOut {
  from {
    transform: translateY(0);
    opacity: 1; }

  to {
    transform: translateY(-30px);
    opacity: 0; } }
@-webkit-keyframes flash {
  from, to {
    color: inherit;
    -webkit-transform: translateX(0); }

  35% {
    color: #f8645a;
    -webkit-transform: translateX(-0.75em); } }
@-moz-keyframes flash {
  from, to {
    color: inherit;
    -moz-transform: translateX(0); }

  35% {
    color: #f8645a;
    -moz-transform: translateX(-0.75em); } }
@-ms-keyframes flash {
  from, to {
    color: inherit;
    -ms-transform: translateX(0); }

  35% {
    color: #f8645a;
    -ms-transform: translateX(-0.75em); } }
@-o-keyframes flash {
  from, to {
    color: inherit;
    -o-transform: translateX(0); }

  35% {
    color: #f8645a;
    -o-transform: translateX(-0.75em); } }
@keyframes flash {
  from, to {
    color: inherit;
    transform: translateX(0); }

  35% {
    color: #f8645a;
    transform: translateX(-0.75em); } }
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg); }

  to {
    -webkit-transform: rotate(359deg); } }
@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg); }

  to {
    -moz-transform: rotate(359deg); } }
@-o-keyframes spin {
  from {
    -o-transform: rotate(0deg); }

  to {
    -o-transform: rotate(359deg); } }
@-ms-keyframes spin {
  from {
    -ms-transform: rotate(0deg); }

  to {
    -ms-transform: rotate(359deg); } }
@keyframes spin {
  from {
    transform: rotate(0deg); }

  to {
    transform: rotate(359deg); } }
