* {
	margin: 0;
	padding: 0;
	border: 0;
}

html{
	font-family: microsoft yahei,helvetica,simhei,simsun,sans-serif;
}

a {
    color: #069;
    text-decoration: none;
}
a:hover {
    color: #1A202C;
}
.content-on{
	padding: 14px 14px 14px 250px
}
.content-off{
 	padding: 14px;
}
.header-on{
	padding-left: 250px;
}
.on,
.header-on,
.content-on,
.content-off,
.off{
	transition: all 0.5s;
}
/* header */
#header {
	position:fixed;
	top: 0px;
	width: 100%;
	height: 50px;
	background: #1a202c;
	z-index: 98;
    display: flex;
    align-items: baseline;
    /* justify-content: space-between; */
	box-shadow: 0 4px 1px rgba(0,0,0,0.15);
}
#title {
	font-size: 20px;
	color: #ffffff;
	padding: 10px 15px;
}
#subtitle{
	color: #E6A23C;
}
#menu {
	position:fixed;
	padding-right: 20px;
	right: 0px;
}
#menu .menu-item {
    display: inline-block;
	padding: 10px;
	list-style: none;
}
#menu .menu-item-link{
	font-size: 12px;
	color: #ffffff;
}
#menu .menu-item-link:hover {
	border-bottom: 1px solid;
}

/* sidebar */
#totop-toggle{
	position: fixed;
    bottom: 80px;
    right: 50px;
}
#sidebar-toggle{
	top: 60px;
	left: 260px;
	position: absolute;
}
.toggle {
	border: none;
	height: 45px;
	width: 45px;
	border-radius: 50%;
	background-color: rgba(0,0,0,0.5);
	color: #fff;
	transition: all 0.3s ease-in-out;
	opacity: 0.5;
}
.toggle:hover {
	opacity: 1;
}
#sidebar {
	position: fixed;
	flex-grow:1;
	flex-shrink:1;
	flex-basis: 0;
	width: 250px;
	left: -250px;
	height: 100%;
	top: 0px;
	background: rgba(28, 36, 54, 0.9);
	z-index: 99;
}
#sidebar.on {
  left: 0;
}
#sidebar.off {
  left: -250px;
}
#search-input {
    position: absolute;
    width: 230px;
    height: 35px;
    margin: 5px 10px 5px 10px;
    border-radius: 5px;
    background: #2d3748;
    text-indent: 20px;
    color: #ffffff;
	border: 1px solid #4a5568;
}
.sidebar-toc {
	position: absolute;
	top: 0;
	color: #999;
	width: 50%;
	height: 30px;
	text-align: center;
	line-height: 30px;
	font-size: 13px;
	z-index: 100;
}
.sidebar-toc:hover {
	cursor: pointer;
	color: #9cc7b8;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
}
.toc-active{
	color: #9cc7b8;
	border-bottom: 1px solid #9cc7b8;
}
#site-toc {
	height: calc( 100% - 5px );
	padding-top: 5px;
}
#tree{
	height: calc( 100% - 50px );
	overflow: auto;
	margin-top: 50px;
}
#tree ul ul {
	display: none;
}
#sidebar ul {
	padding: 0px 5px 5px 20px;
}
#sidebar ul li {
	list-style: none;
	white-space: nowrap;
}
#sidebar ul li a {
	color: #e0e0f0;
	font-size: 14px;
}

#sidebar ul li a:hover{
	color: #ccc;
	border-bottom: 1px solid #ccc;
}
#sidebar .active a{
	color: #409EFF;
	border-bottom: 1px solid #409EFF;
}
.article-toc ul li i {
	color: #999;
	font-size: 8px;
	vertical-align: middle;
}
.article-toc .level_1 {
	margin-left: 0px;
}
.article-toc .level_2 {
	margin-left: 20px;
}
.article-toc .level_3 {
	margin-left: 40px;
}
.article-toc .level_4 {
	margin-left: 60px;
}
#sidebar .article-toc a.read{
	color: #7e8aa0;
	border-bottom: 0;
	-webkit-transition: 0.5s;
	-moz-transition: 0.5s;
	-ms-transition: 0.5s;
	-o-transition: 0.5s;
}
/* index */
.content{
	max-width: calc(100vw - 340px);
	min-height: calc(100vh - 130px);
	top: 50px;
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	margin: 50px auto auto auto;
}
body{
	background-color: #f8f9fa;
}
.index-li {
	margin: 20px 0 0 0;
	border-bottom: 1px solid #c6c6c6;
}
.index-li a{
	color: #404040;
}

.index-brief{
    position: relative;
	padding: 5px 5px 10px 5px;
	font-size: 14px;
	font-style: italic;
	color: #a3a3a3;
}

.index-li *:hover {
	color:#1399b5
}
.article-meta *{
	position: relative;
	font-style: italic;
	font-size: 12px;
	color: #acabab;
	padding: 0 5px 0 0;
}

.index-title {
	margin-top: 30px;
	position: relative;
	font-size: 24px;
}


#index-paginator {
  display: flex;
  justify-content: center;
  align-items: center;
}

#index-paginator .current,
#index-paginator .extend:hover,
#index-paginator .page-number:hover {
  color: #fff !important;
  background-color: #4CAF50 !important;
  border: #555 !important;
}
#index-paginator .extend,
#index-paginator .page-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0.3rem;
  font-size: 0.9rem;
  border-radius: 5px;
  color: white;
  background-color: #3a3a3a;
  transition: all 0.2s;
}
/* article */
#article-title {
	border-bottom: 2px solid #ddd;
}
#article-content {
	padding: 10px 0;
	border-bottom: 2px solid #ddd;
}
#article-content ol,
#article-content ul {
	padding-left: 40px;
}
#article-content li {
	margin: 5px 0;
}
#article-content h1 {
	line-height: 50px;
	margin: 20px 0 15px;
	font-size: 32px;
	padding-bottom: 10px;
	border-bottom: 2px solid #ddd;
}
#article-content h2 {
	line-height: 45px;
	margin: 15px 0 10px;
	font-size: 25px;
	padding-left: 10px;
	border-bottom: 1px solid #ddd;
}
#article-content h3 {
	line-height: 40px;
	margin: 10px 0 5px;
	font-size: 22px
}
#article-content h4,
#article-content h5,
#article-content h6 {
	line-height: 35px;
	margin: 5px 0 5px;
}
#article-content a:hover {
	border-bottom: 1px solid;
}
#article-content h1 a:hover{
	border-bottom: none;
}
#article-content img {
	max-width: 100%;
	height: auto;
}
#article-content pre {
	font-size: 14px;
	margin: 20px 0 15px;
}
#article-content blockquote{
	padding: 0 1em;
	color:#6a737d;
	border-left: .25em solid #dfe2e5;
}
#article-content p {
	line-height: 20px;
	margin-bottom: 10px;
}
#article-content ul code,
#article-content ol code,
#article-content p code {
	margin: 0 5px;
	background-color: rgba(27,31,35,.05);
	border-radius: 3px;
}
table {
  margin: auto auto 15px;
  width: 100%;
  min-height: .01%;
  overflow-x: auto;
  background: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left; 
  /* border: 1px solid black; */
}
table th {
	font-weight: bold;
	padding: 5px 10px;
	/* border: 1px solid black; */
}
table td {
	padding: 0 1px;
	/* border: 1px solid black; */
}

figure{
    overflow:auto
}

.post-guide{
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-moz-justify-content: space-between;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	padding: 1rem 0;
	border-bottom: 1px solid #ddd;
}
.space{
	color: #999; /* 更浅的灰色，表示不可点击 */
    background: transparent; /* 无背景 */
    border: none; /* 无边框 */
    cursor: default; /* 默认光标，表明不可点击 */
}
.post-guide .item {
	width: 50%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-moz-align-items: center;
	-webkit-align-items: center;
	align-items: center;
}
.post-guide .item a {
	font-size: 0.875rem;
}
.post-guide .left {
	-moz-justify-content: flex-start;
	-webkit-justify-content: flex-start;
	justify-content: flex-start;
}
.post-guide .right {
	-moz-justify-content: flex-end;
	-webkit-justify-content: flex-end;
	justify-content: flex-end;
}
/* footer */
#footer{
	font-size: 14px;
	height: 50px;
	background-color: #1a202c;
	color: #eDe0f0;
	text-align: center;
	border: 1px solid #2d3748;
}
#footer a {
    color: #409EFF;
}
#footer p {
    padding: 5px;
}
/* @media */
@media screen and (max-width: 850px) {

	#sidebar {
		opacity: 0.95;
	}
}

code {
    padding: 1px 5px;
    font-family: Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace;
    /* font-size: 0.91rem; */
    color: #e96900;
    background-color: #f8f8f8;
    border-radius: 2px;
}

pre code {
    padding: 0;
    color: #e8eaf6;
    background-color: #272822;
}

pre[class*="language-"] {
    padding: 1.2em;
    margin: .5em 0;
}

code[class*="language-"],
pre[class*="language-"] {
    color: #e8eaf6;
    white-space: pre-wrap !important;
} */

.line-numbers-rows {
    border-right-width: 0px !important;
}

.line-numbers {
    padding: 1.5rem 1.5rem 1.5rem 3.2rem !important;
    margin: 1rem 0 !important;
    background: #272822;
    overflow: auto;
    border-radius: 0.35rem;
    tab-size: 4;
}


pre {
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
    background: #272822;
    overflow: auto;
    border-radius: 0.35rem;
    tab-size: 4;
}

pre::before {
    content: "";
    height: 16px;
    margin-bottom: 0;
    display: block;
}

pre::after {
    content: " ";
    position: absolute;
    border-radius: 50%;
    background: #ff5f56;
    width: 12px;
    height: 12px;
    top: 0;
    left: 12px;
    margin-top: 12px;
    -webkit-box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
    box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
}

code {
    padding: 1px 5px;
    font-family: Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace;
    font-size: 0.91rem;
    color: #e96900;
    background-color: #f8f8f8;
    border-radius: 2px;
}

.code_copy {
    position: absolute;
    top: 0.7rem;
    right: 35px;
    z-index: 1;
    filter: invert(50%);
    cursor: pointer;
}

.code_lang {
    position: absolute;
    top: 1.2rem;
    right: 60px;
    line-height: 0;
    font-weight: bold;
    font-family: normal;
    z-index: 1;
    filter: invert(50%);
    cursor: pointer;
} 

.code-expand {
    position: absolute;
    top: 4px;
    right: 0px;
    filter: invert(50%);
    padding: 7px 10px;
    z-index: 1;
    cursor: pointer;
    transition: all .3s;
    transform: rotate(0deg);
}

.code-closed .code-expand {
    transform: rotate(-180deg) !important;
    transition: all .3s;
}

.code-closed pre::before {
    height: 0px;
}

pre code {
    padding: 0;
    color: #e8eaf6;
    background-color: #272822;
}

pre[class*="language-"] {
    padding: 1.2em;
    margin: .5em 0;
}

code[class*="language-"],
pre[class*="language-"] {
    color: #e8eaf6;
    white-space: pre-wrap !important;
}

/* 全局滚动条样式 - 适用于所有元素 */
::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
    height: 8px;
}

/* 滚动条轨道 - 背景颜色 */
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

/* 滚动条滑块 - 滚动条本身 */
::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.6); /* 深灰半透明 */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* 滚动条悬停效果 */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 100, 100, 0.8);
}

/* 针对侧边栏：更暗一些 */
.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.5);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(150, 150, 150, 0.7);
}

/* 主内容区：更浅，避免突兀 */
.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(180, 180, 180, 0.4);
}

.main-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(180, 180, 180, 0.6);
}

/* 可选：隐藏滚动条，鼠标悬停时显示 */
.main-content::-webkit-scrollbar {
    display: none;
}
.main-content:hover::-webkit-scrollbar {
    display: block;
}