/* 公共样式 */
* {
  box-sizing: border-box;
}
a,
a:link,
a:visited {
  color: #28c5c2;
  text-decoration: none;
}
a:hover {
  color: hsl(348, 100%, 70%);
  text-decoration: none;
}

/* 改造头部 */
#header {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: none;
  background-color: #ffffff;
  box-shadow: 0 3px 3px rgba(1, 43, 41, 0.03), 0 3px 6px rgba(1, 43, 41, 0.02);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

#blogTitle {
  height: 64px;
}

#blogLogo {
  float: left;
  display: block;
  width: 64px;
  height: 64px;
  background: url('https://img2022.cnblogs.com/blog/938908/202207/938908-20220715143647352-619641134.svg');
  background-size: 100% 100%;
  margin-right: 20px;
}

#blogTitle h1 {
  width: auto;
  margin-left: 0;
  margin-top: 0;
}

.headermaintitle {
  display: block;
  white-space: nowrap;
  padding-top: 7px;
  box-sizing: border-box;
  color: #28c5c2;
}

#blogTitle h2 {
  margin-left: 0;
  color: #c9c9c9;
}

#navigator {
  display: flex;
  align-items: center;
  background-color: transparent;
  line-height: 30px;
}

#navList li {
  background-color: transparent;
}

#navList a {
  border-right: none;
  padding-top: 0;
  height: 30px;
  border-radius: 4px;
}

#navList a:link,
#navList a:visited,
#navList a:active {
  color: #28c5c2;
}

#navList a:hover {
  background-color: hsl(348, 100%, 70%);
  color: #ffffff;
}

.blogStats {
  margin-left: 20px;
  margin-top: 0;
}

/* 改造底部 */
#footer {
  border-top: none;
  color: #c9c9c9;
  padding-bottom: 10px;
}

/* 改造首页 */
#home {
  margin: 0 auto;
  width: 100%;
}
#main {
  min-width: unset;
  padding: 20px 0;
}
#sideBar {
  padding-left: 0;
}
#sideBarMain {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background-color: rgba(235, 240, 241, 0.24);
  padding: 0 0 20px 0;
}
.catListTitle {
  margin-top: 0;
  border: none;
  text-align: left;
  padding: 4px 10px;
  color: #666666;
  border-bottom: 1px solid #efefef;
  font-weight: 400;
}
.sidebar-block {
  margin-top: 20px;
}

#profile_block {
  color: #c9c9c9;
}

.catListPostArchive ul,
#profile_block,
.catListLink ul {
  padding-left: 10px;
}

.catListEssay ul li,
.catListFeedback ul li,
.catListView ul li,
.RecentCommentBlock ul li,
.catListPostArchive ul li,
.catListLink ul li {
  margin-bottom: 10px;
}

.catListTag ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
}
.catListTag ul li {
  margin-right: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(1, 43, 41, 0.04);
}

.catListTag ul li:hover {
  box-shadow: 0 0 2px rgba(1, 43, 41, 0.12) inset;
}

.catListTag ul li a {
  display: block;
  padding: 4px 6px;
}

.catListBlogRank ul,
.catListEssay ul,
.catListFeedback ul,
.catListView ul,
.RecentCommentBlock ul {
  padding: 0 10px;
}

.liRank,
.liScore,
.recent_comment_author,
.recent_comment_body {
  color: #c9c9c9;
}

.day .dayTitle {
  border-bottom: none;
  margin-top: 0;
  text-align: left;
}

.day .dayTitle::before {
  content: '📆 ';
}

.day .postTitle {
  border-bottom: none;
  font-size: 160%;
}

.postTitle a:link,
.postTitle a:visited,
.postTitle a:active {
  color: #777777;
}

.postTitle a:hover {
  color: #28c5c2;
}

.postCon {
  color: #999999;
}

.postDesc {
  color: #c9c9c9;
}

.postCon a:link,
.postCon a:visited,
.postCon a:active {
  text-decoration: none;
}

.c_b_p_desc_readmore {
  color: #777777 !important;
}
.c_b_p_desc_readmore::after {
  content: ' >';
}
.c_b_p_desc_readmore:hover {
  color: #28c5c2 !important;
}
.pager,
.topicListFooter {
  text-align: left;
  color: #777777;
  font-size: 12px;
  line-height: 1;
}
.pager a,
#nav_next_page a {
  display: inline-block;
  padding: 6px 10px;
  background-color: rgba(235, 240, 241, 0.44);
  border-radius: 4px;
  border: none;
  min-width: 36px;
  text-align: center;
  margin: 0 6px;
  font-size: 12px;
}
#homepage_top_pager {
  margin-bottom: 40px;
}
/* 改造详情页 */
#post_detail .postTitle {
  border-bottom: none;
  font-size: 24px;
  margin-bottom: 40px;
  text-align: center;
  padding-top: 20px;
}

#post_detail .postBody {
  border-top: 3px solid #f9f9f9;
  padding-top: 40px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  color: #777777;
  border-bottom: none;
}

#cnblogs_post_body ol {
  padding-left: 0;
}

#cnblogs_post_body p {
  margin-bottom: 20px;
}

#post_detail .postBody li > code,
#post_detail .postBody p > code {
  max-width: 100%;
  padding: 0 8px !important;
  margin: 0 4px !important;
  background: rgba(69, 123, 122, 0.1);
  border-radius: 4px !important;
  line-height: 1.6 !important;
  color: rgba(66, 97, 96, 0.68);
}

blockquote {
  position: relative;
  background: rgba(255, 198, 26, 0.1) !important;
  padding: 10px 10px 10px 20px !important;
  border-left: 3px solid hsl(45, 100%, 55%);
  color: hsl(39, 26%, 22%) !important;
  margin-bottom: 20px;
}

blockquote p {
  margin: 0 !important;
}

pre code.hljs {
  font-size: 14px;
}

#post_detail pre {
  position: relative;
  padding: 10px;
  background: #333;
  line-height: 1.5;
  border-radius: 4px;
}

#post_detail pre code {
  background: #333 !important;
  border: none !important;
  color: #bababa !important;
}

#post_detail pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#post_detail pre::-webkit-scrollbar-thumb {
  background-color: hsla(220, 4%, 58%, 0.5);
  border-radius: 6px;
}

#post_detail pre::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0);
}

#post_detail pre code .hljs-attribute,
#post_detail pre code .hljs-keyword {
  color: #569cd6;
}
#post_detail pre code .hljs-comment {
  color: #555;
}
#post_detail pre code .hljs-tag {
  color: #999;
}
#post_detail pre code .hljs-name {
  color: #e2276b;
}
#post_detail pre code .hljs-title,
#post_detail pre code .hljs-attr {
  color: #56d6b4;
}
#post_detail pre code .hljs-selector-tag,
#post_detail pre code .hljs-string,
#post_detail pre code .hljs-selector-class {
  color: #d6b056;
}
#post_detail pre code .hljs-number {
  color: #b5ce89;
}
#post_detail pre code .hljs-built_in {
  color: rgb(223, 105, 115);
}
#post_detail pre code .hljs-bash,
#post_detail pre code .hljs-meta {
  color: #669c78;
}

.postBody p em {
  font-style: normal;
  position: relative;
  z-index: 1;
  font-weight: 400;
  color: hsl(348deg 30% 66%);
}

.postBody p em::after {
  position: absolute;
  left: 1%;
  bottom: -1px;
  z-index: -1;
  display: inline-block;
  transform: rotate(-2deg);
  background-color: rgba(154, 3, 34, 0.08);
  content: '';
  width: 98%;
  height: 50%;
  border-radius: 0.8rem;
}

.postBody p strong {
  position: relative;
  z-index: 1;
  font-weight: 400;
  color: #927828;
}

.postBody p strong::before {
  position: absolute;
  left: -3%;
  top: -4px;
  z-index: -1;
  display: inline-block;
  transform: rotate(-2deg);
  background-color: rgba(255, 198, 26, 0.2);
  content: '';
  width: 103%;
  height: 100%;
  border-radius: 0.8rem;
}

.language-json::before,
.language-javascript::before,
.language-shell::before,
.language-css::before,
.language-scss::before,
.language-node::before,
.language-lua::before,
.language-typescript::before {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  color: #555;
}

.language-typescript::before {
  content: 'typescript';
}

.language-lua::before {
  content: 'lua';
}
.language-node::before {
  content: 'node';
}
.language-scss::before {
  content: 'scss';
}
.language-css::before {
  content: 'css';
}
.language-shell::before {
  content: 'shell';
}
.language-javascript::before {
  content: 'javascript';
}
.language-json::before {
  content: 'json';
}

#blog_post_info_block {
  border-top: 3px solid #f9f9f9;
  margin-top: 40px;
  padding-top: 40px;
}

#EntryTag {
  color: #c9c9c9;
  text-align: center;
}

#EntryTag a {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  padding: 4px 6px;
  box-shadow: 0 2px 5px rgba(1, 43, 41, 0.08);
  text-decoration: none;
  font-size: 14px;
  color: #ffffff !important;
  border-radius: 4px;
  background-color: #28c5c2;
}

#EntryTag a:hover {
  box-shadow: 0 0 2px rgba(1, 43, 41, 0.12) inset;
  background-color: hsl(348, 100%, 70%);
  color: #ffffff !important;
}

#blog_post_info {
  margin-top: 40px;
}

#green_channel {
  width: 100%;
  border-color: #f2f2f2;
  padding: 20px 0;
  margin-bottom: 40px;
}

#green_channel a:hover {
  transform: translateY(3px);
}

#green_channel a#green_channel_wechat,
#green_channel a#green_channel_weibo,
#green_channel a {
  background: hsl(348, 100%, 70%) !important;
  text-shadow: none !important;
  border-radius: 4px;
  box-shadow: none !important;
  padding: 6px 10px;
  transition: 0.2s ease-in-out;
}


#green_channel a#green_channel_wechat img,
#green_channel a#green_channel_weibo img {
  margin-left: auto;
  margin-right: auto;
}

#post_detail .author_avatar {
  margin-right: 10px;
}

#post_detail #div_digg {
  margin-top: 0;
  margin-right: 0;
}

#post_detail #post_next_prev {
  margin-top: 40px;
}

#vip_tip a.tip:visited,
#vip_tip a.tip:active {
  color: #dddddd;
}

#post_detail .postDesc {
  max-width: 900px;
  margin: 0 auto;
  font-size: 12px;
  color: #c9c9c9;
  float: none;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 40px;
  border-bottom: 3px solid #f9f9f9;
  padding-bottom: 40px;
}

#comment_nav {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  font-size: 12px;
}

#comment_nav a {
  padding-left: 0;
  margin-right: 10px;
}

#comment_form_container {
  padding-top: 40px;
  max-width: 900px;
  margin: 0 auto;
}

#commentform_title {
  background-image: none;
}

.comment_textarea {
  width: 100%;
}

#commentform_title {
  color: #c9c9c9;
  padding-left: 0;
}

#btn_comment_submit {
  border: none;
  width: 80px;
  height: 36px;
  padding: 0;
  text-align: center;
  line-height: 36px;
  color: #fff;
  background: linear-gradient(45deg, #28c5c2, #79e2b7);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(1, 43, 41, 0.08);
}

#btn_comment_submit:hover {
  box-shadow: none;
}

#commentbox_opt a {
  margin-left: 40px;
}

#tip_comment2 + p {
  color: #c9c9c9;
}

.under-comment-nav {
  display: none;
}

#blog-comments-placeholder {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.feedback_area_title {
  border: none;
  padding-left: 0;
  font-weight: 400;
  color: #c9c9c9;
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
}

.feedbackItem {
  margin-bottom: 10px;
}

.feedbackCon {
  padding: 20px 0;
  background-image: none;
  border-bottom: 1px dashed #f2f2f2;
}

.comment_vote {
  margin-top: 20px;
}

.entrylistItemPostDesc a:hover,
#post_detail .postDesc a:hover,
.feedbackListSubtitle a:hover {
  color: #28c5c2;
}

.commentbox_tab:hover, .commentbox_tab.active {
  border-bottom: 2px solid #28c5c2 !important;
}

.entrylistTitle,
.PostListTitle {
  text-align: left;
  border-bottom: none;
  color: #c9c9c9;
  font-size: 16px;
}

#myposts {
  margin-left: 0;
}

#myposts .postTitl2 {
  font-size: 16px;
  font-weight: bold;
}

.entrylistItem,
#myposts .PostList {
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 10px;
}

#myposts .postDesc2 {
  color: #c9c9c9;
}

.entrylistTitle::before {
  content: '📆 ';
}

.entrylistPosttitle {
  border-bottom: none;
  padding-bottom: 10px;
  font-size: 16px;
}

.entrylistItemPostDesc {
  color: #c9c9c9;
  margin-top: 10px;
  padding-bottom: 10px;
}

.entrylistPostSummary {
  color: #999999;
}

#taglist .small,
#taglist_title {
  color: #c9c9c9;
}

#cnblogs_post_body pre + h2,
.blog_comment_body pre + h2,
#cnblogs_post_body p + h2,
.blog_comment_body p + h2 {
  margin-top: 40px;
}

#cnblogs_post_body pre + h3,
.blog_comment_body pre + h3,
#cnblogs_post_body p + h3,
.blog_comment_body p + h3 {
  margin-top: 30px;
}

#cnblogs_post_body pre + h4,
.blog_comment_body pre + h4,
#cnblogs_post_body p + h4,
.blog_comment_body p + h4 {
  margin-top: 20px;
}

.diggit {
  background-image: none;
  background: #28c5c2;
}
.buryit:hover,
.diggit:hover {
  transform: translateY(3px);
}
#div_digg .burynum,
#div_digg .diggnum {
  color: #ffffff;
}
.buryit {
  background-image: none;
  background: #c9c9c9;
}
.diggit,
.buryit {
  border-radius: 4px;
  position: relative;
  transition: 0.2s ease-in-out;
}

.diggit::after,
.buryit::after {
  display: block;
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  color: #ffffff;
}

.diggit::after {
  content: '支持';
}
.buryit::after {
  content: '反对';
}

.author_profile_info a:visited,
.author_profile_info a:active,
.author_profile_info a:link {
  text-decoration: none;
}

#author_profile_info {
  display: flex;
  align-items: center;
}

.author_avatar {
  padding-top: 0;
  padding-left: 0;
  border-radius: 4px;
  overflow: hidden;
}

#mainContent .forFlow {
  padding-right: 20px;
}

.postSeparator {
  border-color: #efefef;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

#HistoryToday,
#under_post_kb,
#cnblogs_c2,
#under_post_news,
#cnblogs_c1,
#opt_under_post,
#ad_t2 {
display: none;
}
#under_post_card2,
#under_post_card1 {
text-align: center;
margin-top:10px;
}
#under_post_card1 {
margin-top:40px;
}

@media only screen and (max-width: 767px) {
  #blogTitle h2,
  #blogTitle h1,
  .blogStats {
    display: none;
  }
  #navList {
    padding-right: 20px;
  }
  #navList a {
    width: 3em;
  }
  #mainContent {
    padding: 0 20px;
  }
  #sideBar {
    margin-top: 20px;
  }
}
