:root {
	--side-bar-width: 256px;
	--home-width: 1000px;
	--main-width: 700px;
	--default-font-size: 16px;
}

* {
	box-sizing: border-box;
}

html,
body {
	scroll-behavior: smooth;
	font-size: var(--default-font-size);
	font-family: "思源黑体 CN", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Fira Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
	height: 100%;
	width: 100%;
}

/* 字体加粗 */
strong {
	font-weight: 600;
}

/* 为ol, ul设置底边距 */
ol, ul {
	margin-bottom: 10px;
}
.cnblogs-markdown :not(pre,div,td)>code, .blogpost-body :not(pre,div,td)>code {
	line-height: 1.5;
	padding: 0 5px;
    margin: 0 3px;
    display: inline-block;
    overflow-x: auto;
    vertical-align: middle;
    border-radius: 3px;
}

#cnblogs_post_body ol {
	padding: 0;
	margin-left: 30px;
}

/* li 的上下外边距 */
#cnblogs_post_body ul li,
#cnblogs_post_body ol li {
	/* background: lightyellow; */
	margin-top: .25rem;
	margin-bottom: 0;
}

#cnblogs_post_body>pre, #cnblogs_post_body p {
	margin-bottom: 10px;
	margin-top: 0;
}

/* 引用块 */
.postBody blockquote {
	background: rgba(234,221,255,.5);
	border-radius: 5px;
	transition: border-radius .2s;
}
.postBody blockquote:hover {
	border-radius: 24px;
}

.blogpost-body blockquote {
	border-left: none;
}
blockquote > p {
	margin-top: 5px!important;
	margin-bottom: 5px!important;
}

table {
	margin-left: auto;
	margin-right: auto;
}

li > img + br {
	display: none;
}

.math {
	user-select: none;
}

img {
	opacity: .9;
}

li > img {
	display: inline-block;
	margin-left: 0px!important;
}

img + br {
	display: none;
}

img.medium-zoom-image {
	display: block;
	margin: 10px auto;
}

details {
	background: rgb(189,201,227,.7);
	border-radius: .4rem;
	padding: 2px 1rem;
}

details > pre {
	margin-bottom: 16px;
}

details > summary > a {
	color: #3f51b5!important;
	font-weight: bold;
	text-decoration: none!important;
}
details > summary > a:hover {
	color: #FF1744!important;
}

/* 背景设置 */ 
body.skin-simplememory {
	background: url(https://images.cnblogs.com/cnblogs_com/blogs/714506/galleries/2052243/o_211028085638_12242343423_p2.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

/* 标题设置 */
#topics .postTitle {
	font-size: 2.2rem;
}

/* h1 ~ h6 字体大小设置 */
#cnblogs_post_body h1 {
	font-size: 2rem;
}
#cnblogs_post_body h1 > code {
	font-size: 1.8rem;
}
#cnblogs_post_body h2 {
	font-size: 1.5rem;
}
#cnblogs_post_body h2 > code {
	font-size: 1.35rem;
}
#cnblogs_post_body h3 {
	font-size: 1.25rem;
}
#cnblogs_post_body h3 > code {
	font-size: 1.125rem;
}
#cnblogs_post_body h4 {
	font-size: 1.15rem;
}
#cnblogs_post_body h4 > code {
	font-size: 1.04rem;
}
#cnblogs_post_body h5 {
	font-size: 1.1rem;
}
#cnblogs_post_body h5 > code {
	font-size: .95rem;
}

.postBody {
	font-size: 1rem;
	line-height: 1.5;
}

/* 表单设置 */
.blogpost-body th, .blogpost-body td, .cnblogs-post-body th, .cnblogs-post-body td {
	background-color: rgba(255, 255, 255, .5);
}
#cnblogs_post_body th, .cnblogs-post-body th {
	background-color: transparent;
}

/* 代码块设置 */
.cnblogs-markdown :not(pre,div,td)>code, .blogpost-body :not(pre,div,td)>code {
	font-family: "Fira Code", consolas, monospace;
}
.cnblogs-markdown pre {
	white-space: pre!important
}

.cnblogs-markdown :not(pre,div,td)>code,
.blogpost-body :not(pre,div,td)>code {
	color: #008f83;
	font-size: .9rem;
	font-weight: 500;
	background: rgb(0, 143, 131, .035);
}

.cnblogs-markdown .hljs {
	display: block!important;
	overflow-x: auto!important;
	padding: 1em!important;
	background: #282c34!important;
	/* border: 1px solid white!important; */
	border-radius: 5px!important;
	font-family: "Fira Code", consolas, monospace!important;
	font-size: 15px!important
}

.hljs,.hljs-subst,.hljs-tag {
	color: #f8f8f2!important
}

.hljs-emphasis,.hljs-strong {
	color: #a8a8a2!important
}

.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-quote {
	color: #ae81ff!important
}

.hljs-meta,.hljs-regexp {
	color: #fd971f!important
}

.hljs-built_in,.hljs-builtin-name,.hljs-code,.hljs-section,.hljs-selector-class,.hljs-title {
	color: #a6e22e!important
}

.hljs-strong {
	font-weight: 700
}

.hljs-emphasis {
	font-style: italic!important
}

.hljs-attr,.hljs-name,.hljs-selector-tag,.hljs-symbol {
	color: #f74449!important
}

.hljs-attribute,.hljs-keyword {
	color: #66d9ef!important
}

.hljs-class .hljs-title,.hljs-params {
	color: #f8f8f2!important
}

.hljs-addition,.hljs-selector-attr,.hljs-selector-id,.hljs-selector-pseudo,.hljs-string,.hljs-template-variable,.hljs-type,.hljs-variable {
	color: #e6db74!important
}

.hljs-comment,.hljs-deletion {
	color: #999!important
}

/* 修改首页页面 */

.forFlow > .day {
	border-radius: 8px;
	margin-left: -50px;
	margin-right: -50px;
	padding: 10px 20px;
	background: rgba(255, 255, 255, .4);
}

.forFlow > .entrylist {
	margin-bottom: -30px;
}


/* 修改文章页面 */

/* 删除多余的显示内容 */
#blog_post_info_block {
	display: none;
}
#under_post_card1,
#under_post_card2 {
	display: none;
}

/* 侧栏样式 */
#side-bar,
.table-of-contents {
	overflow: hidden;
	font-size: .9rem;
	border-radius: .5rem;
	width: var(--side-bar-width);
	border: 10px transparent solid;
	position: fixed;
}

#side-bar {
	top: 50px;
	text-align: center;
	background: rgba(255, 255, 255, .4);
	left: calc((100vw - (var(--home-width) + var(--side-bar-width) * 2)) / 16 * 7);
}

.table-of-contents {
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .4);
	right: calc((100vw - (var(--home-width) + var(--side-bar-width) * 2)) / 16 * 7);
}

.table-of-contents li + ul {
	margin-left: 16px;
}

.table-of-contents li {
	margin: 8px auto;
	padding: 4px 8px;
}

.table-of-contents li:hover {
	border-radius: .3rem;
	background: rgba(255, 255, 255, .4)
}

#side-bar li > a,
.table-of-contents li > a,
.table-of-contents li > a span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#sideBarMain li:hover {
	border-radius: .3rem;
	background: rgba(255, 255, 255, .3);
}

.catListTitle {
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
}

.catListEssay,
.catListPostCategory.sidebar-block {
	background: transparent;
}

@media screen and (max-width: 1650px) {
	#side-bar {
		display: none;
	}
	.table-of-contents {
		display: none;
	}
}

/* 修改样式 */
#home {
	max-width: var(--home-width);
	border-radius: 1rem;
	background: rgba(255, 255, 255, .9);
}

#main {
	/* width: 760px; */
	margin-left: auto;
	margin-right: auto;

	display: flex;
	align-items: center;
	justify-content: center;
}

#main > #main-content {
	max-width: var(--main-width);
}

#footer {
	margin-top: 20px;
}

/* 评论 */
div.commentbox_main.comment_textarea {
	width: 100%;
}

