code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}

/* 夜间模式的CSS变量定义 */
.night-mode {
  --conBgcolor: #333333;
  --textColor: #ffffff;
  --linkColor: #ffffff;
  --theme-color: #42b983; 
}

.night-mode body {
  background-color: var(--conBgcolor);
  color: #d7d7d7;
}
.night-mode .markdown-section strong {
    color: #f5f5f5;
}

.night-mode .comment-infos b, .comment-infos-unGravatar b {
    display: inline-block;
    margin-right: 5px;
    font-size: 16px;
    color: #bfbfbf;
    vertical-align: middle;
}
.night-mode #pagenavi span {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}
.night-mode #comment-post textarea,
.night-mode #comment-post input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.night-mode #comment-post textarea:focus,
.night-mode #comment-post input:focus {
    outline: none; 
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


.night-mode #comment-post .btn {
    width: 30%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #025ab9;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.night-mode #comment-post .btn:hover {
    background-color: #004895;
}

.night-mode .comment-header {
    margin: 20px 0;
    padding: 10px;
    background-color: #505050;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.night-mode .plcomment {
    margin-bottom: 20px;
    clear: both;
    padding: 10px;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #424242;
    position: relative;
    color: white;
}

.night-mode .comment-content {
    margin-top: 10px;
    line-height: 1.6;
    color: #ddd;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 3px;
}

.night-mode span.com-reply {
    color: #007BFF;
    cursor: pointer;
}

.night-mode span.com-reply:hover {
    color: #0056b3;
}

.night-mode #pagenavi span {
    background-color: #3e5369;
    color: white;
    border-color: #004895;
}

.night-mode #pagenavi a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #666;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    background-color: #505050;
    transition: background-color 0.3s, color 0.3s;
}

.night-mode #pagenavi a:hover {
    background-color: #007BFF;
    color: white;
}


.night-mode footer,
.night-mode .footinfo,
.night-mode .copyright,
.night-mode p.right-aligned-info,
.night-mode .li.blog-lates a,
.night-mode .toc-link,
.night-mode .blog-header-logo img,
.night-mode a.blog-header-logo,
.night-mode .search1 input,
.night-mode .search1 input:focus,
.night-mode .search1 .clear-button svg,
.night-mode .link-item.current-page {
  color: var(--textColor);
  background-color: var(--conBgcolor);
}

.night-mode footer,
.night-mode .blog-footer {
  background-color: var(--conBgcolor);
}

.night-mode .search1 input {
  border-color: rgba(255, 255, 255, 0.1);
}

.night-mode .search1 input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 5px var(--theme-color);
}

.night-mode .highlighted {
    background-color: #616161;
}

.night-mode span.category-toggle {
    color: #cbcbcb;
}

.night-mode .search1 {
    margin-bottom: 20px;
    padding: 6px;
    border-bottom: 1px solid #333333;
}

.night-mode .markdown-section h1 {
    color: #d9d9d9;
    text-decoration-line: underline;
    text-decoration-color: #6a69ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.night-mode .markdown-section h2 {
    color: #d9d9d9;
    text-decoration-line: underline;
    text-decoration-color: #6ba1ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.night-mode .markdown-section h3 {
    color: #d9d9d9;
    text-decoration-line: underline;
    text-decoration-color: #69c9ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}
.night-mode .markdown-section h4 {
    color: #d9d9d9;
    text-decoration-line: underline;
    text-decoration-color: #69c9ff;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}
.night-mode a#current-link {
    color: #6d92e9;
}
.night-mode .anchor span {
          color: #d9d9d9; 
}

.night-mode aside.sidebar ul li a {
   color: #d7d7d7;
}
.night-mode aside.sidebar {
    background-color: var(--conBgcolor);
}
.night-mode button.sidebar-toggle {
    background-color: var(--conBgcolor);
}
.night-mode .markdown-section p.tip, .markdown-section tr:nth-child(2n) {
    background-color: #bbbbbb;
    color: #676767;
}
.night-mode .page_toc ul a {
    color: #adadad;
    text-decoration: none;
    font-weight: 300;
    line-height: 1.6em;
}
span#theme-toggle {
    position: fixed;
    bottom: 0;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    margin-left: 245px;
}

@media (max-width: 768px) {
span#theme-toggle {
margin: 0px 0px 50px 240px;
}
}

.footinfo {
    line-height: 2;
    padding-block: 20px;
    text-align: center !important;
}

p.right-aligned-info {
    color: #8a8f8d;
}
footer {
    margin-top: 60px;
    background-color: var(--conBgcolor);
}

footer .list-inline {
    margin: 0;
    padding: 0
}

footer .copyright {
    font-size: 14px;
    margin-bottom: 0;
    text-align: center
}
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.blog-header {
    flex: 0 0 auto;
}

.blog-container {
    flex: 1 0 auto;
}

.blog-footer {
    flex: 0 0 auto;
}

.sidebar {
  padding-top: 0;
}

.search1 {
  margin-bottom: 20px;
  padding: 6px;
  border-bottom: 1px solid #eee;
}

.search1 .input-wrap {
  display: flex;
  align-items: center;
}

.search1 .results-panel {
  display: none;
}

.search1 .results-panel.show {
  display: block;
}

.search1 input {
  outline: none;
  border: none;
  width: 100%;
  padding: 0.6em 7px;
  font-size: inherit;
  border: 1px solid transparent;
}

.search1 input:focus {
  box-shadow: 0 0 5px var(--theme-color, #42b983);
  border: 1px solid var(--theme-color, #42b983);
}

.search1 input::-webkit-search-decoration,
.search1 input::-webkit-search-cancel-button,
.search1 input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.search1 input::-ms-clear {
  display: none;
  height: 0;
  width: 0;
}

.search1 .clear-button {
  cursor: pointer;
  width: 36px;
  text-align: right;
  display: none;
}

.search1 .clear-button.show {
  display: block;
}

.search1 .clear-button svg {
  transform: scale(.5);
}

.search1 h2 {
  font-size: 17px;
  margin: 10px 0;
}

.search1 a {
  text-decoration: none;
  color: inherit;
}

.search1 .matching-post {
  border-bottom: 1px solid #eee;
}

.search1 .matching-post:last-child {
  border-bottom: 0;
}

.search1 p {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search1 p.empty {
  text-align: center;
}

.app-name.hide, .sidebar-nav.hide {
  display: none;
}
	.toc-link {
		color: rgb(189, 189, 189);
		font-size: 10px;
		padding-left: 10px;
	}

.blog-header-logo img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}
a.blog-header-logo {
    max-width: 130px;
    color: #505d6b;
    height: auto;
    display: block;
    margin: 0 auto;
    font-size: 35px;
    text-decoration: none;
}
.li.blog-lates a {
    color: #505d6b;
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-item.current-page {
    color: blue; 
}
  .anchor-list .list-item.highlighted::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 100%;
    vertical-align: middle;
    border-left: 5px solid transparent;
    margin-right: 10px;
  }

  .anchor-list .list-item.highlighted::before {
    border-left-color: var(--theme-color, #42b983);
  }
      .category-list {
        list-style-type: none; 
    }
    .category-name {
        cursor: pointer; 
        margin-bottom: 5px;
    }
    .category-articles {
        display: none; 
    }

    .expanded .category-articles {
        display: block;
        
    }
    li.category {
    list-style: none;
    margin: 0 0 0 15px;
}
a#current-link {
    color: #007bff;
}
 .anchor-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.anchor-list::-webkit-scrollbar {
    width: 8px;
}

.anchor-list::-webkit-scrollbar-track {
    background: transparent; 
}

.anchor-list::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.anchor-list::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.list-item {
    padding: 5px 0;
}

.highlighted {
    background-color: #f0f0f0;
}

.anchor-link {
    text-decoration: none;
    color: #0073e6;
}
@media only screen and (max-width: 768px) {
    .anchor-list {
        max-height: none;
        overflow-y: visible;
        padding: 10px;
    }
}
/* 通用评论样式 */
.plcomment {
    margin-bottom: 20px;
    clear: both;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: relative;
}

.avatar {
    float: left;
    width: 50px;
    height: 50px;
    margin: 12px 4px 0px 10px;
    border-radius: 50%;
}

.comment-infos,
.comment-infos-unGravatar {
    overflow: hidden;
}

.comment-infos b,
.comment-infos-unGravatar b {
    display: inline-block;
    margin-right: 5px;
    font-size: 16px;
    color: #333;
    vertical-align: middle;
}

.comment-time {
    color: #999;
    font-size: 14px;
    vertical-align: middle;
}

.comment-content {
    margin-top: 10px;
    line-height: 1.6;
    color: #444;
    background: #afafaf3b;
    padding: 5px;
}

.comment-reply {
    position: absolute;
    right: 10px;
    top: 10px;
    display: none;
}

.comment:hover .comment-reply {
    display: inline-block;
}

.comment-reply .comment-replay-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* 子评论特定样式 */
.comment-children {
    padding-left: 60px;
    margin-top: 20px;
}

.comment-children .avatar {
    position: relative;
    top: 0px;
}

/* 评论头部 */
.comment-header {
    margin: 20px 0;
    padding: 10px;
    background-color: #eee;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

#comment-post {
    margin-top: 20px;
}

#comment-post textarea,
#comment-post input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
   background-color: #ffffff;
}

#comment-post textarea:focus,
#comment-post input:focus {
    outline: none;
    border-color: #007BFF;
}

#comment-post .btn {
    width: 30%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

#comment-post .btn:hover {
    background-color: #0056b3;
}

#myModal {
    display: none; /* 默认隐藏 */
    margin-top: 10px;
}

.com_submit_p {
    display: block;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.com_submit_p a {
    color: #007BFF;
    text-decoration: none;
}

.com_submit_p a:hover {
    text-decoration: underline;
}

#pagenavi {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#pagenavi a, #pagenavi span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

#pagenavi a:hover {
    background-color: #007BFF;
    color: white;
}

#pagenavi span {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

.markdown-section strong {
    color: #000000;
}