/* 博客园 CSS-only 主页皮肤：只粘贴到“页面定制 CSS 代码”即可 */
:root {
  --bk-bg: #02060c;
  --bk-panel: rgba(11, 21, 35, 0.72);
  --bk-panel-strong: rgba(8, 16, 28, 0.86);
  --bk-line: rgba(169, 207, 255, 0.16);
  --bk-text: #f5f8ff;
  --bk-muted: #aebbd0;
  --bk-accent: #66c6ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--bk-text);
  background:
    linear-gradient(180deg, rgba(2, 10, 18, 0.64), rgba(7, 17, 30, 0.86) 42%, rgba(3, 8, 15, 0.98) 78%, #02060c),
    linear-gradient(90deg, rgba(3, 12, 24, 0.92), rgba(6, 24, 44, 0.58) 45%, rgba(5, 13, 26, 0.9)),
    url("https://images.cnblogs.com/cnblogs_com/blogs/863894/galleries/2503294/o_260421162259_bf3dfca54601.jpeg") center top / cover fixed;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 76% 28%, rgba(62, 141, 255, 0.2), transparent 28%),
    radial-gradient(circle at 24% 72%, rgba(46, 167, 255, 0.12), transparent 32%);
  pointer-events: none;
}

a {
  color: var(--bk-accent);
  text-decoration: none;
}

a:hover {
  color: #4da6ff;
}

#home {
  width: min(1280px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 72px;
  background: transparent;
}

#header {
  display: block;
  min-height: 44px;
  background: transparent;
}

#blogTitle {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.7fr);
  column-gap: 48px;
  max-width: none;
  margin: 0;
  text-align: left;
}

#lnkBlogLogo,
#blogLogo {
  display: none;
}

#blogTitle h1 {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
}

#blogTitle h1 a {
  display: inline;
  color: #2d9dff;
  background-image: linear-gradient(90deg, #2d9dff 0%, #5fbdff 34%, #ffffff 50%, #5fbdff 66%, #2d9dff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-flow 4.8s linear infinite;
  box-shadow: none;
}

#blogTitle h2 {
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  max-width: 620px;
  margin: 0;
  color: #d9e4f5;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 650;
  line-height: 1.2;
}

#blogTitle h2:empty {
  display: none;
}

@keyframes title-flow {
  0% {
    background-position: 140% 50%;
  }

  100% {
    background-position: -140% 50%;
  }
}

#navigator {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  min-height: 0;
  background: transparent;
}

#navList {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navList li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#navList a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--bk-muted);
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

#navList a:hover {
  color: var(--bk-text);
  opacity: 1;
}

#main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 108px;
  background: transparent;
}

.blogStats,
#blog_stats,
#blog_stats_place_holder {
  display: none;
}

#mainContent {
  min-width: 0;
  float: none;
  background: transparent;
}

.forFlow {
  float: none;
  width: auto;
  margin: 0;
}

.day,
.entrylistItem,
.post {
  position: relative;
  margin: 0 0 48px;
  padding: 10px 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.day::after,
.entrylistItem::after,
.post::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(169, 207, 255, 0.2), transparent);
}

.dayTitle {
  margin: 0 0 18px;
  color: var(--bk-accent);
  font-size: 13px;
  font-weight: 800;
}

.postTitle,
.entrylistPosttitle {
  margin: 0 0 14px;
  border: 0;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.25;
}

.postTitle a,
.entrylistPosttitle a {
  color: var(--bk-text);
}

.postCon,
.c_b_p_desc,
.postBody {
  color: #d9e4f5;
  font-size: 16px;
  line-height: 1.85;
}

.postDesc,
.postDesc2,
.entrylistItemPostDesc {
  display: none;
}

.postSeparator {
  display: none;
}

.day .post {
  margin-bottom: 64px;
}

.day .post:last-child {
  margin-bottom: 0;
}

#sideBar {
  float: none;
  width: auto;
  margin: 0;
  background: transparent;
}

#sideBarMain {
  position: sticky;
  top: 24px;
}

.catListTitle,
.newsItem h3,
#blog-calendar caption {
  margin: 0 0 14px;
  color: var(--bk-text);
  font-size: 18px;
  font-weight: 850;
}

.catList,
.newsItem,
#sidebar_shortcut,
#sidebar_toptags,
#sidebar_postarchive,
#sidebar_recentposts {
  margin: 0 0 24px;
  padding: 0 0 22px 22px;
  border: 0;
  border-left: 2px solid rgba(169, 207, 255, 0.2);
  border-radius: 0;
  color: #d9e4f5;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#blog-calendar,
#sidebar_search,
#sidebar_categories:empty {
  display: none !important;
}

#sidebar_categories {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#sideBar ul {
  margin: 0;
  padding-left: 18px;
}

#sideBar li {
  margin: 8px 0;
  color: #d9e4f5;
}

#footer {
  width: min(1280px, calc(100% - 48px));
  margin: 40px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--bk-line);
  color: var(--bk-muted);
  text-align: left;
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

pre,
code {
  border-radius: 6px;
}

.bk-post-toc {
  position: fixed;
  top: 210px;
  right: max(28px, calc((100vw - 1280px) / 2 - 260px));
  z-index: 20;
  width: 220px;
  max-height: calc(100vh - 220px);
  padding: 8px 0 8px 14px;
  border-left: 2px solid rgba(169, 207, 255, 0.22);
  color: var(--bk-muted);
  overflow: auto;
}

.bk-back-top {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--bk-accent);
  background: transparent;
  backdrop-filter: none;
  cursor: pointer;
  font: inherit;
  color: var(--bk-muted);
  font-size: 13px;
  line-height: 1.45;
  transition: color 160ms ease, transform 160ms ease;
}

.bk-back-top:hover {
  color: var(--bk-accent);
  transform: translateX(3px);
}

.bk-post-toc-title {
  margin: 0 0 10px;
  color: var(--bk-text);
  font-size: 14px;
  font-weight: 850;
}

.bk-post-toc a {
  display: block;
  padding: 6px 0;
  color: var(--bk-muted);
  font-size: 13px;
  line-height: 1.45;
  transition: color 160ms ease, transform 160ms ease;
}

.bk-post-toc a:hover,
.bk-post-toc a.is-active {
  color: var(--bk-accent);
  transform: translateX(3px);
}

.bk-post-toc a[data-level="3"] {
  padding-left: 14px;
}

.bk-post-toc a[data-level="4"] {
  padding-left: 28px;
}

#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4 {
  scroll-margin-top: 28px;
}

body.bk-post-page #main {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 54px;
}

body.bk-post-page #blogTitle {
  display: none;
}

body.bk-post-page #home {
  padding-top: 28px;
}

body.bk-post-page #navigator {
  margin-top: 0;
  padding: 10px 0;
}

body.bk-post-page #sideBar {
  display: none;
}

.bk-post-toc #sidebar_categories {
  display: block !important;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(169, 207, 255, 0.14);
}

.bk-post-toc .catList {
  margin: 0;
  padding: 0;
  border: 0;
}

.bk-post-toc .catListTitle {
  margin: 0 0 10px;
  font-size: 14px;
}

.bk-post-toc #sidebar_categories ul {
  padding-left: 0;
  list-style: none;
}

.bk-post-toc #sidebar_categories li {
  margin: 8px 0;
}

body.bk-post-page #blog_post_info_block,
body.bk-post-page #comment_form,
body.bk-post-page #comment_form_container,
body.bk-post-page #comments_pager_top,
body.bk-post-page #comments_pager_bottom,
body.bk-post-page .commentbox_main,
body.bk-post-page .commentform,
body.bk-post-page .feedback_area_title,
body.bk-post-page #comment_nav {
  color: #d9e4f5;
}

body.bk-post-page #green_channel {
  width: fit-content !important;
  max-width: 100%;
  margin: 22px 0 14px;
  padding: 10px;
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.48);
  backdrop-filter: blur(12px);
}

body.bk-post-page #green_channel a,
body.bk-post-page .comment_btn,
body.bk-post-page #btn_comment_submit,
body.bk-post-page input[type="button"],
body.bk-post-page input[type="submit"] {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(169, 207, 255, 0.2) !important;
  border-radius: 6px !important;
  color: var(--bk-text) !important;
  background: rgba(12, 24, 40, 0.72) !important;
  box-shadow: none !important;
  font-weight: 700;
}

body.bk-post-page #green_channel a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 6px 0 0 !important;
  float: none !important;
  line-height: 1;
  text-indent: 0 !important;
}

body.bk-post-page #green_channel a:hover,
body.bk-post-page .comment_btn:hover,
body.bk-post-page #btn_comment_submit:hover,
body.bk-post-page input[type="button"]:hover,
body.bk-post-page input[type="submit"]:hover {
  border-color: rgba(102, 198, 255, 0.46) !important;
  color: var(--bk-accent) !important;
}

body.bk-post-page #div_digg {
  display: none !important;
}

body.bk-post-page .diggit,
body.bk-post-page .buryit {
  display: inline-flex;
  width: auto;
  min-width: 72px;
  height: 42px;
  margin: 0 !important;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  color: var(--bk-muted);
  background: rgba(8, 16, 28, 0.5);
  background-image: none !important;
  box-shadow: none;
  cursor: pointer;
}

body.bk-post-page .diggnum,
body.bk-post-page .burynum {
  color: var(--bk-accent);
  font-weight: 850;
}

body.bk-post-page .diggit::after {
  content: "支持";
  margin-left: 6px;
  color: var(--bk-muted);
  font-size: 13px;
}

body.bk-post-page .buryit::after {
  content: "反对";
  margin-left: 6px;
  color: var(--bk-muted);
  font-size: 13px;
}

body.bk-post-page #author_profile {
  display: none !important;
}

body.bk-post-page #author_profile_info {
  float: none;
  color: var(--bk-muted);
}

body.bk-post-page #author_profile_detail {
  margin: 0;
}

body.bk-post-page #author_profile_follow {
  margin: 0;
}

body.bk-post-page #author_profile img,
body.bk-post-page .author_avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px;
  opacity: 0.78;
}

body.bk-post-page #post_next_prev,
body.bk-post-page .postDesc,
body.bk-post-page #comment_nav,
body.bk-post-page .feedbackItem,
body.bk-post-page .feedbackCon,
body.bk-post-page .comment_vote {
  border-color: var(--bk-line);
}

body.bk-post-page #post_next_prev,
body.bk-post-page .feedbackItem {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bk-line);
}

body.bk-post-page #comment_nav,
body.bk-post-page .comment_vote {
  margin: 20px 0;
  text-align: left !important;
}

body.bk-post-page #comment_nav a,
body.bk-post-page .comment_vote a {
  margin-right: 12px;
}

body.bk-post-page .feedback_area_title {
  margin: 42px 0 18px;
  font-size: 20px;
  font-weight: 850;
}

body.bk-post-page .feedbackItem {
  padding-bottom: 18px;
}

body.bk-post-page .feedbackListSubtitle,
body.bk-post-page .feedbackManage,
body.bk-post-page .comment_date {
  color: var(--bk-muted);
}

body.bk-post-page .blog_comment_body,
body.bk-post-page .feedbackCon {
  color: #edf4ff;
  line-height: 1.8;
}

body.bk-post-page #comment_form {
  margin-top: 36px;
}

body.bk-post-page #commentform_title {
  margin: 0 0 14px;
  color: var(--bk-text);
  font-size: 18px;
  font-weight: 850;
}

body.bk-post-page #comment_form_container {
  width: min(720px, 100%);
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.62);
  overflow: hidden;
}

body.bk-post-page #tbCommentBody,
body.bk-post-page .comment_textarea {
  width: 100% !important;
  min-height: 260px !important;
  border: 0 !important;
  color: #edf4ff !important;
  caret-color: var(--bk-accent);
  background: rgba(3, 8, 15, 0.72) !important;
}

body.bk-post-page .commentbox_footer,
body.bk-post-page .commentbox_tab,
body.bk-post-page .commentbox_title,
body.bk-post-page .commentbox_toolbar,
body.bk-post-page .commentbox_main,
body.bk-post-page .commentbox_input,
body.bk-post-page .commentbox_preview {
  border-color: rgba(169, 207, 255, 0.14) !important;
  background: rgba(8, 16, 28, 0.82) !important;
  color: var(--bk-muted) !important;
}

body.bk-post-page .commentbox_tab.active,
body.bk-post-page .commentbox_tab:hover {
  color: var(--bk-accent) !important;
  background: rgba(12, 24, 40, 0.9) !important;
}

body.bk-post-page .commentbox_toolbar button,
body.bk-post-page .commentbox_toolbar a,
body.bk-post-page .commentbox_footer a {
  color: var(--bk-muted) !important;
  background-color: transparent !important;
}

body.bk-post-page .commentbox_toolbar button:hover,
body.bk-post-page .commentbox_toolbar a:hover,
body.bk-post-page .commentbox_footer a:hover {
  color: var(--bk-accent) !important;
}

body.bk-post-page #tbCommentBody::placeholder,
body.bk-post-page .comment_textarea::placeholder {
  color: rgba(174, 187, 208, 0.62);
}

body.bk-post-page #comment_form_container a,
body.bk-post-page #blog_post_info_block a,
body.bk-post-page #comment_nav a,
body.bk-post-page .feedbackItem a {
  color: #bfe4ff;
}

body.bk-post-page #comment_form_container a:hover,
body.bk-post-page #blog_post_info_block a:hover,
body.bk-post-page #comment_nav a:hover,
body.bk-post-page .feedbackItem a:hover {
  color: var(--bk-accent);
}

@media (max-width: 900px) {
  html,
  body {
    background-attachment: scroll;
  }

  #home {
    width: min(100% - 32px, 680px);
    padding-top: 24px;
  }

  #blogTitle {
    display: block;
  }

  #header {
    align-items: flex-start;
    gap: 16px;
  }

  #navList {
    justify-content: flex-start;
    gap: 8px 16px;
  }

  #main {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  #sideBarMain {
    position: static;
  }

  .bk-post-toc {
    display: none;
  }

  .bk-back-top {
    display: none;
  }
}

@media (max-width: 520px) {
  #home,
  #footer {
    width: min(100% - 24px, 680px);
  }

  #header {
    display: block;
  }

  #navigator {
    margin-top: 14px;
  }

  #main {
    margin-top: 56px;
  }

  .day,
  .entrylistItem,
  .post {
    padding: 6px 0 22px;
  }

  .catList,
  .newsItem,
  #sidebar_shortcut,
  #sidebar_toptags,
  #sidebar_postarchive,
  #sidebar_recentposts {
    padding: 6px 0 22px 18px;
  }

  #sidebar_categories {
    padding: 0;
  }

  .postTitle,
  .entrylistPosttitle {
    font-size: 24px;
  }
}
