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

html {
	font-family: Microsoft YaHei, Segoe UI, Helvetica, sans-serif, simhei, simsun, -apple-system,
		BlinkMacSystemFont, Apple Color Emoji, Segoe UI Emoji;
}

a {
	color: #57a;
	text-decoration: none;
}
.content-on {
	padding-left: 250px;
}
.header-on {
	padding-left: 250px;
}
.on,
.header-on,
.content-on,
.off {
	transition: all 0.5s;
}

/* header */
#header {
	position: fixed;
	top: 0px;
	width: 100%;
	height: 50px;
	background: #7e8795;
	z-index: 98;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 4px 1px rgba(0, 0, 0, 0.15);
}

#logo {
	width: 40px;
	height: 40px;
	margin: 0 3px;
}
#title {
	font-size: 16px;
	color: #f0f0f0;
	padding: 5px 15px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#title a {
	line-height: 20px;
}

a.active {
	color: #9cc7b8;
	border-bottom: 1px solid #9cc7b8;
}

#menu {
	position: fixed;
	padding-right: 10px;
	right: 0px;
	display: flex;
	align-items: center;
}
#menu .menu-item {
	display: inline-block;
	padding: 10px;
	list-style: none;
}
#menu .menu-item-link {
	font-size: 20px;
	color: #f0f0f0;
}
#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: #eaebee;
	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: #3f4448;
	text-indent: 20px;
	color: #64cfff;
}
.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;
}
.directory-empty {
	cursor: pointer;
}
.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 {
	position: relative;
	padding: 0px 5px 5px 20px;
}
#sidebar ul li {
	list-style: none;
	white-space: nowrap;
}

#sidebar ul li a {
	color: #454545;
	font-size: 19px;
	font-weight: normal;
	text-decoration: none;
	transition: color 0.3s, border-bottom 0.3s;
}
#sidebar ul li a:hover {
	color: rgb(122, 122, 122);
	border-bottom: 1px solid #ccc;
	font-size: 19px;
	font-weight: normal;
}
#sidebar ul li.active a,
#sidebar ul li .active a {
	color: #9cc7b8;
	border-bottom: 1px solid #9cc7b8;
	font-size: 19px;
	font-weight: normal;
}

#sidebar .article-toc ul li i {
	color: #999;
	font-size: 8px;
	vertical-align: middle;
}
#sidebar .article-toc a.read {
	color: #c7bb9c;
	border-bottom: 0;
	-webkit-transition: 0.5s;
	-moz-transition: 0.5s;
	-ms-transition: 0.5s;
	-o-transition: 0.5s;
}

/* index */
#content {
	max-width: 850px;
	top: 50px;
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	margin: 80px auto 30px auto;
}

.index-li {
	margin: 20px 0 20px 0;
	border: 1px solid #c6c6c6;
	padding: 10px;
	border-radius: 5px;
}
.index-li a {
	color: #404040;
}
.index-brief {
	position: relative;
	padding: 5px 5px 10px 5px;
	font-size: 14px;
	color: #a3a3a3;
}
.index-li *:hover {
	color: #57a;
}
.index-title {
	margin: 5px 0;
	position: relative;
	font-size: 18px;
}

#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: #21a675 !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: #0c0807;
	background-color: #e0eee8;
	transition: all 0.2s;
}

/* article */
.article-meta * {
	position: relative;
	font-size: 12px;
	color: #acabab;
	padding: 0 5px 0 0;
}
#article-title {
	border-bottom: 2px solid #ddd;
}
#article-content {
	padding: 6px 0;
    line-height: 1.2;
    font-size: 20px;
}
#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;
	padding-bottom: 10px;
	border-bottom: 2px solid #ddd;
}
#article-content h2 {
	line-height: 45px;
	margin: 15px 0 10px;
	border-bottom: 1px solid #ddd;
}
#article-content h3 {
	line-height: 40px;
	margin: 10px 0 5px;
}
#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 p,
#article-content ul,
#article-content ol,
#article-content blockquote,
#article-content details,
#article-content figure,
#article-content table {
	line-height: 1.6;
	margin-top: 0;
	margin-bottom: 16px;
}
#article-content hr {
	width: 100%;
	display: inline-block;
	margin: 16px 0;
	border-top: 1px solid #dddddd;
}
#article-content > ul > li:has(input[type="checkbox"]) {
	margin-left: -40px;
}
#article-content > ul > li:has(ul input[type="checkbox"][disabled]) {
	margin-left: 0;
}
#article-content > ul > li:has(input[type="checkbox"][disabled])::marker {
	content: none;
}
#article-content > ul > li:has(ul input[type="checkbox"][disabled])::marker {
	content: initial;
}
#article-content dl dt {
	padding: 0;
	margin-top: 16px;
	font-size: 1em;
	font-style: italic;
	font-weight: 600;
}
#article-content dl dd {
	padding: 0 16px;
	margin-bottom: 16px;
}
#article-content blockquote {
	padding: 0 1em;
	color: #6a737d;
	border-left: 0.25em solid #dfe2e5;
}
#article-content > table {
	border-collapse: collapse;
	border: 1px solid #ddd;
}
#article-content > table td,
#article-content > table th {
	border: 1px solid #d1d9e0;
	padding: 6px 13px;
	min-width: 70px;
}
table tr:nth-child(2n) {
	background-color: #f6f8fa;
}
#article-content > p > code {
	background-color: #ced6de70;
	padding: 3px;
	border-radius: 2px;
}

/* footer */
#footer {
	font-size: 14px;
	height: 50px;
	color: #454545;
	text-align: center;
}
#footer a {
	color: #57a;
}
#footer p {
	padding: 5px;
}

.article-toc ul li {
	list-style: "◇ " !important;
}

.copyright-box {
	border-top: 1px solid #dddddd;
	margin: 15px 0;
}

/* 針對所有在新視窗開啟的外部連結，自動加上 ↗ 圖標 */
a[target="_blank"]::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f35d";  /* fa-arrow-up-right-from-square 的 Unicode */
	margin-left: 4px;  /* 文字與圖示間距 */
	font-size: 0.8em;  /* 圖示大小 */
	color: inherit;    /* 跟隨文字顏色 */
}

.mod {
	color: #a6daff;/* mod */
}