html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: Helvetica,
      Tahoma,
      Arial,
      "Microsoft YaHei",
      "微软雅黑",
      SimSun,
      "宋体",
      Heiti,
      "黑体",
      sans-serif;
  margin: 0;
  background-color: #f2f2f2;
}

ol {
  padding-left: 0 !important;
  margin-left: 40px;
}

li {
  margin-bottom: 5px;
}

a {
  color: #2962ff;
  text-decoration: none;
  transition-duration: 180ms;
}

a:hover {
  color: #0d47a1;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin: 40px 0 20px !important;
}

/* 通用以及主页CSS */

#header {
  /* 
  打开这个注释并开启#main里面的注释可以只让主题滚动
  position: fixed;
  top: 0px; 
  */
  height: 500px;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  background-image: url(https://images.cnblogs.com/cnblogs_com/camwang/1574852/o_heading-image.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-bottom: 160px;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.forFlow {
  margin-top: 25px;
}

.headermaintitle {
  font-size: 2.5rem;
  color: #eceff1;
  text-shadow: 0px 0px 6px #37474f;
}

.headermaintitle:hover {
  color: #fff;
  text-shadow: 0px 0px 10px #37474f;
}

#navList {
  margin: 0;
  height: 40px;
  line-height: 40px;
  padding-left: 0;
}

#navList li {
  list-style-type: none;
  display: inline;
}

#navList li a {
  font-size: 1.2rem;
  padding-left: 10px;
  padding-right: 10px;
  color: #eceff1;
  text-shadow: 0px 0px 6px #37474f;
}

#navList li a:hover {
  font-size: 1.3rem;
  color: #fff;
}

.blogStats {
  font-size: 0.9rem;
  color: #cfd8dc;
  text-shadow: 0px 0px 4px #37474f;
}

#main {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: #fefefe;
  margin-top: -120px;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
  box-shadow: 0 0rem 1rem rgba(0, 0, 0, .15);
}

#mainContent {
  order: 1;
  flex: 0 0 100%;
  max-width: 100%;
}

.day {
  display: flex;
  flex-direction: column;
  box-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, .04);
  transition: all 250ms;
  background-color: #fff;
  padding: 15px;
  border-bottom: 1px solid transparent;
  border-color: rgba(0, 0, 0, .08);
}

.day:hover {
  box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, .12);
}

.dayTitle {
  display: none;
}

.dayTitle a {
  color: #686868 !important;
}

.postTitle {
  padding-top: 15px;
  padding-bottom: 15px;
}

.postTitle2 {
  color: #263238;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.8rem;
}

.postBody img {
  max-height:500px;
}

.postCon {
  color: #37474f;
  font-size: 0.9rem;
  line-height: 1.3rem;
}

.postCon a {
  border: 1px solid transparent;
  border-radius: 3px;
  float: right;
  padding: 5px 16px;
  font-size: 0.8rem;
  margin-top: 30px;
  margin-right: 10px;
  text-decoration: none;
  display: table;
  color: #314659;
  border-color: #6c757d;
  transition: all 200ms;
}

.under-comment-box-nav {
  display:none!important;
}

.postCon a:hover {
  background-color: #6c757d;
  color: #fff;
}

.postCon a::after {
  content: " >>";
}

.postDesc {
  margin-top: -18px;
  color: #6c757d;
  font-size: 0.8rem;
  text-align: left;
  max-width: 550px;
  display: none;
}

.topicListFooter {
  margin: 0;
}

#sideBar {
  display: none;
}

#sideBarMain {
  margin-left: 20px;
  margin-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, .04);
  transition: all 250ms;
  background-color: #fff;
  border: 1px solid transparent;
  border-color: rgba(0, 0, 0, .08);
  border-radius: 5px;
}

.newsItem .catListTitle {
  display: none;
}

.comment_nav {
  padding: 25px 0px 15px 0px;
}

.comment_actions {
  width: ;
}

#blog-news {
  margin-bottom: 20px;
  line-height: 1.5rem;
  display: flex;
  flex-direction: column;
}

.img_avatar {
  box-shadow: 0rem 0rem 0.7rem rgba(0, 0, 0, .04);
  transition-duration: 250ms;
}

.img_avatar:hover {
  box-shadow: 0rem 0rem 1rem rgba(0, 0, 0, .14);
}

#profile_block {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: 0;
  padding-left: 20px;
  padding-right: 20px;
  color: #314659;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-color: rgba(0, 0, 0, .08);
}

#profile_block a {
  color: #314659;
}

#profile_block a:hover {
  color: #6c757d;
}

#leftcontentcontainer {
  padding-left: 20px;
  padding-right: 15px;
}

.catListTitle {
  line-height: 2rem;
  font-weight: 400;
  margin: 0;
  font-size: 1.2rem;
}

#blog-sidecolumn ul {
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

#blog-sidecolumn a {
  color: #424242;
}

#blog-sidecolumn a:hover {
  color: #757575;
}

#blog-sidecolumn a:visited {
  color: #757575;
}

#footer {
  margin-top: 40px;
  padding-top: 24px;
  width: 100%;
  height: 80px;
  text-align: right;
  background-color: #263238;
  color: #f2f2f2;
  box-shadow: 0rem 0rem 1rem rgba(0, 0, 0, .3);
  font-size: 0.9rem;
  font-weight: 200;
  padding-right: 50px;
}

#poweredby {
  color: #bdbdbd;
  font-size: 0.8rem;
}


/* 文章页面CSS */

#post_detail {
  padding-top: 15px;
  padding-bottom: 25px;
  padding-left: 15px;
  padding-right: 15px;
  overflow: hidden;
  color: #313131;
  line-height: 1.8rem;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid transparent;
  font-family: -apple-system,
      BlinkMacSystemFont,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Segoe UI",
      "PingFang SC",
      "Hiragino Sans GB",
      "Microsoft YaHei",
      "Helvetica Neue",
      Helvetica,
      Arial,
      sans-serif;
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, .04);
}

#post_detail #topics .post {
  display: flex;
  flex-direction: column;
}

#post_detail ul {
  list-style-type: disc;
}

#post_detail .postDesc {
  order: 1;
  text-align: right;
  max-width: initial;
  margin-bottom: 14px;
}

#post_detail .postDesc a {
  color: #333;
}

#post_detail .postBody {
  order: 2;
}

#cb_post_title_url {
  font-weight: 300;
  color: #263238;
  font-size: 2rem;
  transition-duration: 150ms;
  border-bottom: 1px;
  border-color: #333;
}

#cb_post_title_url:hover {
  color: #455a64;
}

#cnblogs_post_body h2 {
  font-weight: 400;
  color: #263238;
}

.cnblogs-markdown pre {
  margin-top: 20px;
  margin-bottom: 20px;
}

#cnblogs_post_body pre .hljs {
  display: block;
  padding: 1rem !important;
  font-family: 'Fira Code', Consolas, monospace, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.3rem !important;
  background: #282a36 !important;
  color: #f8f8f2 !important;
  overflow-x: auto;
  border: none !important;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.18);
}

.hljs-built_in,
.hljs-selector-tag,
.hljs-section,
.hljs-link {
  color: #8be9fd;
}

.hljs-keyword {
  color: #ff79c6;
}

.hljs,
.hljs-subst {
  color: #f8f8f2;
}

.hljs-title {
  color: #50fa7b;
}

.hljs-string,
.hljs-meta,
.hljs-name,
.hljs-type,
.hljs-attr,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
  color: #f1fa8c;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion {
  color: #a6a2b1;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
  font-weight: bold;
}

.hljs-literal,
.hljs-number {
  color: #bd93f9;
}

.hljs-emphasis {
  font-style: italic;
}

@media screen and (-ms-high-contrast: active) {

  .hljs-addition,
  .hljs-attribute,
  .hljs-built_in,
  .hljs-builtin-name,
  .hljs-bullet,
  .hljs-comment,
  .hljs-link,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-params,
  .hljs-string,
  .hljs-symbol,
  .hljs-type,
  .hljs-quote {
      color: highlight;
  }

  .hljs-keyword,
  .hljs-selector-tag {
      font-weight: bold;
  }
}

#blog_post_info_block {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid transparent;
  border-color: #e2e2e2;
}

#blog_post_info_block a {
  color: #37474f !important;
}

#blog_post_info_block a:hover {
  color: #607d8b;
}

#BlogPostCategory {
  width: 155px;
}

#EntryTag {
  width: 155px;
}

#green_channel {
  display: none;
}

#author_profile {
  display: none;
}

#div_digg {
  display: flex;
  justify-content: center;
  margin-right: 0px;
  margin-top: 10px;
  margin-bottom: 20px;
  float: none !important;
  width: 100%;
  font-size: 1.2rem !important;
}

.diggit {
  height: auto;
  width: auto;
  background: none;
  color: #3d3d3d;
}

.diggnum {
  color: #7cb342;
}

.burynum {
  color: #757575;
}

.buryit {
  height: auto;
  width: auto;
  background: none;
  color: #263238;
}

.diggnum::before {
  content: "支持：";
}

.burynum::before {
  content: "反对：";
}

#digg_tips {
  margin-left: 20px;
}

#comment_nav a {
  font-size: 0.9rem;
  color: #424242;
}

#comment_nav a:hover {
  color: #9e9e9e;
}

#comment_form_container>p:last-of-type {
  display: none !important;
}

#tbCommentAuthor {
  background: none;
  border: none;
  width: auto;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0;
}

#commentform_title {
  background: none;
  padding-left: 0px;
  font-size: 1.2rem;
}

.comment_my_posted img {
  display: none;
}

.comment_my_posted a {
  color: #424242;
  font-weight: 300;
}

.comment_my_posted a:hover {
  color: #9e9e9e;
}

.bq_post_comment {
  border-radius: 5px;
  color: #263238;
  background-color: #eceff1;
  padding-left: 20px;
}

#blog-comments-placeholder {
  margin-top: 20px;
  margin-bottom: 40px;
}

.feedback_area_title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.feedbackItem {
  display: flex;
}

.feedbackItem a {
  color: #263238;
  transition: all 200ms;
}

.feedbackItem a:hover {
  color: #546e7a;
}

.feedbackListSubtitle {
  width: 100%;
}

.feedbackManage {
  order: 1;
  float: right;
  width: 140px;
  font-size: 0.9rem;
}

.feedbackCon {
  order: 2;
  width: 100%;
  line-height: 3rem;
  padding-left: 20px;
  padding-right: 20px;
  color: #263238;
  border: 1px transparent;
  background-color: #f6f6f6;
  border-radius: 5px;
}

.comment_vote {
  line-height: 2rem;
  font-size: 0.9rem;
}

.comment_error {
  color: #e53935 !important;
}

.comment_digg:hover {
  color: #4caf50 !important;
}

.comment_bury:hover {
  color: #f44336 !important;
}

#tbCommentBody {
  display: block;
  width: 100%;
  height: 180px;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  overflow: auto;
  resize: vertical;
  cursor: text;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

#commentbox_opt a {
  display: none;
}

#btn_comment_submit {
  padding: .4rem 1.5rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: #37474f;
  border-radius: 5px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border-color: #37474f;
  border: 1px solid !important;
  height: auto;
  width: auto;
  white-space: unset;
  cursor: pointer;
  transition-duration: 150ms;
}

#btn_comment_submit:hover {
  background-color: #37474f;
  color: #eeeeee;
}

#login_tips {
  font-weight: 400;
  background: none;
  font-size: 0.9rem;
  padding-left: none;
  margin-top: 15px;
  margin-bottom: 15px;
}

#login_tips a {
  color: #314659;
}

#login_tips a:hover {
  color: #517594;
}

#tip_comment {
  display: none;
}

#tip_comment2 {
  color: #0c5460;
  font-size: 0.9rem;
  max-width: 260px;
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: .25rem;
}

/* 标签页 */

.PostListTitle {
  font-weight: 300;
  color: #263238;
}

#myposts {
  margin-left: 0;
  border: 1px solid transparent;
  border-color: rgba(0, 0, 0, .08);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, .04);
  border-radius: 5px;
  transition: 200ms;
}

#myposts:hover {
  box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, .08);
}

#myposts .PostList {
  font-size: 1.3rem;
  margin-right: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

#myposts .postTitl2 a {
  color: #263238;
  transition-duration: 200ms;
  line-height: 2rem;
}

#myposts .postTitl2 a:hover {
  color: #546e7a;
}

#myposts .postDesc2 {
  font-size: 0.9rem;
  color: #757575;
}

/* 随笔分类页面 */

.entrylistTitle {
  font-weight: 300;
  color: #263238;
  margin-bottom: 12px;
}

.entrylistDescription {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.entrylistItem {
  display: flex;
  flex-direction: column;
  box-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, .04);
  transition: all 250ms;
  background-color: #fff;
  padding: 25px;
  border: 1px solid transparent;
  border-color: rgba(0, 0, 0, .08);
  border-radius: 5px;
}

.entrylistItem:hover {
  box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, .12);
}



.entrylistPosttitle {
  padding-top: 5px;
  padding-bottom: 15px;
}

.entrylistItemTitle {
  color: #263238 !important;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.8rem;
}

.c_b_p_desc_readmore {
  border: 1px solid transparent;
  border-radius: 3px;
  float: right;
  padding: 5px 16px;
  font-size: 0.8rem;
  margin-top: 30px;
  margin-right: 10px;
  text-decoration: none;
  display: table;
  color: #314659;
  border-color: #6c757d;
  transition: all 200ms;
}

.c_b_p_desc_readmore:hover {
  background-color: #6c757d;
  color: #fff;
}

.c_b_p_desc_readmore::after {
  content: " >>";
}

.entrylistPostSummary {
  color: #37474f;
  font-size: 0.9rem;
  line-height: 1.3rem;
}

.entrylistItemPostDesc {
  margin-top: -18px;
  color: #6c757d;
  font-size: 0.8rem;
  text-align: left;
  max-width: 550px;
  display: none;
}

.entrylistItemPostDesc a {
  color: #455a64;
}

.entrylistItemPostDesc a:hover {
  color: #90a4ae;
}

#homepage_top_pager {
 display:none;
}

#homepage_bottom_pager  .pager{
  text-align: right;
  padding-right: 30px;
  color: #333;
  font-size: 14px !important;
}

#nav_next_page {
  padding: 15px;
}
#nav_next_page a {
  color: #333;
}

#homepage_bottom_pager .pager a {
  border: none;
  color: #333;
}


@media (min-width: 800px) {
  #main {
      max-width: 800px;
      border-radius: 5px;
      padding: 25px;
  }

  #mainContent {
      padding-right: 20px;
      padding-left: 20px;
  }

  .day {
      padding-top: 25px;
      padding-bottom: 25px;
      padding-left: 25px;
      padding-right: 20px;
      margin-bottom: 25px;
      border: 1px solid transparent;
      border-color: rgba(0, 0, 0, .08);
      border-radius: 5px;
  }

  #post_detail {
      border-radius: 5px;
      margin-top: 20px;
      margin-bottom: 25px;
      padding: 30px;
  }

  .dayTitle {
      display: block;
  }

  .entrylistItemPostDesc {
      display: block;
  }
}

#under_post_news {
  display: none;
}

@media (min-width: 992px) {
  #main {
      max-width: 960px;
  }

  #mainContent {
      flex: 0 0 76%;
      max-width: 76%;
  }

  #sideBar {
      display: block;
  }

}

@media (min-width: 1200px) {
  #main {
      max-width: 1140px;
  }
}

#ad_t2,
#ad_c1,
#under_post_news,
#ad_c2,
#under_post_kb,
#cnblogs_c1,
#cnblogs_c2 {
  display: none !important;
}

/* inline codeblock */
#cnblogs_post_body
code,
.md-fences {
  background: #f7f7f9 !important;
  border-radius: 3px !important;
  border-color: #fff!important;
  color: #222 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  font-family: Consolas,monospace,sans-serif !important;
  font-size: 0.935em !important;
}

blockquote {
  border-left: 4px solid #ddd;
  color: #666;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 0 15px
}

blockquote p {
  color: #666
}

blockquote cite::before {
  content: '-';
  padding: 0 5px
}

// 广子
.cnblogs_ch a, .under-post-card a, .under_post_card2 a {
  color: #0d47a1;
}