/* #################### 全局 #################### */
* {
	margin: 0;
	padding: 0;
	border: 0;
}

html, body, #main {
	color: #555;
	height: 100%;
}

aside {
	width: 300px;
	height: 100%;
	position: fixed;
	background: #262a30;
}

nav {
	height: 50px;
	/*background: #b9e1b1;*/
}

#content {
	height: 100%;
	padding-left: 300px;
	/*background: #f9f7ed;*/
}
/* #################### 全局 #################### */

/* #################### 导航 #################### */
nav #menu {
	float: right;
	padding-right: 20px;
}
nav ul li {
	float: left;
	padding: 10px;
	list-style: none;
}
nav ul li a{
	color: #555;
	font-size: 16px;
    text-decoration: none;
    font-weight: 600;
}
nav ul li a:hover {
	border-bottom: 1px solid;
}
/* #################### 导航 #################### */

/* #################### 侧边栏 #################### */
/* 搜索框 */
aside input {
	width: 290px;
	height: 50px;
	margin: 0;
	border: 0;
	padding: 0;
	left: 0;
	font-size: 14px;
	background: #131417;
	text-indent: 20px;
	outline: none;
	color: #87daff;
	position: absolute;
}

/* 搜索图标 */
aside #search #search-icon {
	position: absolute;
	top: 0;
	right: 0;
	color: #999;
	font-size: 20px;
	width: 40px;
	height: 50px;
	background: #131417;
	text-align: center;
	line-height: 2.5;
	text-decoration: none
}
aside #search #search-icon:hover {
	cursor: pointer;
	color: #87daff;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
}

aside #search .icon-active{
	color: #e06c75;
}

/* 滚动条 */
aside {
	overflow: auto;
}

/* 树目录位置 */
aside #tree {
	padding-top: 55px
}

/* 树目录 */
aside ul {
	padding: 0px 5px 5px 20px;
}
aside ul li {
	list-style: none;
	line-height: 25px;
}
aside ul li a {
	color: #999;
	font-size: 14px;
	text-decoration: none

}
aside ul li a:hover {
	color: #ccc;
	border-bottom: 1px solid #ccc;
	cursor:pointer;
}
aside #tree .active a,
aside #tree .active a:hover {
	color: #87daff;
	border-bottom: 1px solid #87daff;
}
/* #################### 侧边栏 #################### */

/* #################### 文章 #################### */
/* 作者 时间 相关 */
#post-author {
	font-size: 9px;
	position: absolute;
	top: 60px;
	right: 30px;
	color: #999;
}

#post-date {
	font-size: 9px;
	position: absolute;
	top: 80px;
	right: 30px;
	color: #999;
}

/* 文章各个元素间隔 */
#article {
	padding: 50px 30px;
}
#article * {
	margin: 30px 0;
}


#article ol,
#article ul {
	padding-left: 40px;
	/* line-height: 5px; */
	margin: 20px 0;
}

#article li {
	margin: 20px 0;
}

#article h1,
#article h2,
#article h3,
#article h4,
#article h5,
#article h6 {
	line-height: 40px;
	margin: 20px 0 15px;
}

#article h1 {
	font-size: 32px;
	font-weight: 900;
	padding-bottom: 10px;
	border-bottom: 2px solid #e06c75;
}

#article h2 {
	font-size: 25px;
	border-left: 3px solid #73b1e0;
	padding-left: 10px;
}

#article h3 {
	font-size: 22px
}

#article a {
	color: #e06c75;
	/* text-decoration: none; */
}

#article a:hover {
	border-bottom: 1px solid;
}

#article h1 a:hover{
	border-bottom: none;
}

#article code {
	border-radius: 3px;
    box-shadow: 0px 0px 5px #999;
}

#article p code {
	padding: 3px;
    background-color: #F3F4F4;
    margin: 0 5px;
    border: 1px solid #E7EAED;
}

#article img {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
	box-shadow: 0px 0px 8px #999;
}

#article pre {
	font-size: 14px;
	margin: 20px 0 15px;
}

#article p {
	margin: 0 0 10px;
	line-height: 30px
}

/* 表格处理 */
#article table {
  width: 100%;
  border: 0;
  margin: 20px 0 50px 0;
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 35px;
  border-radius: 8px;
  box-shadow: 0px 0px 5px #999;
}

#article table th {
  background: #73b1e0;
  font-weight: 800;
  font-size: 18px;
  text-align: left;
  line-height: 35px;
  color: #FFF;
}

#article table tr:nth-child(odd) {
  background: #F4F4F4;
}

#article table td, table th {
  padding: 5px 20px 5px 20px
}

#article table tr:first-child th:first-child {
  border-top-left-radius: 3px;
}

#article table tr:first-child th:last-child {
  border-top-right-radius: 3px;
}

#article table tr:last-child td:first-child {
  border-bottom-left-radius: 3px;
}

#article table tr:last-child td:last-child {
  border-bottom-right-radius: 3px;
}

/* #################### 文章 #################### */

/* #################### 点击目录动画 #################### */
aside #tree ul ul {
	display: none;
}
/* #################### 点击目录动画 #################### */

/* #################### 文章索引 #################### */

aside #toc {
	padding-top: 55px;
}

aside #toc a.read{
	/*color: #e06c75;*/
	color: #87daff;
	border-bottom: 0;
	-webkit-transition: 0.5s;
	-moz-transition: 0.5s;
	-ms-transition: 0.5s;
	-o-transition: 0.5s;
}

aside #toc a{
	color: #999;
	border-bottom: 0;
	-webkit-transition: 0.2s;
	-moz-transition: 0.2s;
	-ms-transition: 0.2s;
	-o-transition: 0.2s;
}

aside #toc a:hover{
	/*color: #87daff;*/
	color: #e5c07b;
	padding-left: 20px;
	-webkit-transition: 0.1s;
	-moz-transition: 0.1s;
	-ms-transition: 0.1s;
	-o-transition: 0.1s;
}

/* #################### 文章索引 #################### */

/* #################### 主页 #################### */

#articleList {
	position: relative;
}

#articleList .article-li {
	margin: 20px;
	height: 200px;
	border-radius: 5px;
	box-shadow: 1px 1px 8px #999;
	list-style: none;
	border: 1px solid #999;
	transition:all 0.4s ease-in-out 0s;
	position: relative;
}

#articleList .article-li:hover {
	transform: scale(1.01);
}

#articleList .article-digest * {
	word-wrap: break-word;
	font-size: 14px;
	color: #555;
	text-decoration: none;
	cursor:auto;
	border-radius: none;
	box-shadow: none;
}

#articleList .article-digest {
	padding: 30px;
    position: relative;
    top: 35px;
    width: 90%;
}
#articleList .article-digest p {
	text-indent: 2em;
	overflow : hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

#articleList .article-date{
	position: relative;
	background: #e06c75;
	color: #f9f7ed;
	padding: 10px;
	top: -5px;
	border-radius: 2px;
	margin-left: 30px;
}

#articleList .article-read, #articleList .article-top{
    position: absolute;
    background: #e06c75;
    color: #f9f7ed;
    padding: 10px;
    border-radius: 2px;
    right: -6px;
    margin-top: 140px;
    text-decoration: none;
	z-index: 1;
}

#articleList .article-top {
	margin-top: 20px;
}

#articleList .article-title {
	position: relative;
	color: #555;
	text-decoration: none;
	font-size: 24px;
	font-weight: bold;
    top: 50px;
	right: 110px;
	z-index: 2;
}


.hljs {
	padding: 1.5em;
}

blockquote {
	padding: 16px;
    margin: 0 0 24px;
    border-left: 8px solid #dddfe4;
    background: #eef0f4;
    overflow: auto;
}

/* #################### 自适应 #################### */

/* 当浏览器窗口不超过最大800px时(意思就是小于800px时) */

@media screen and (max-width: 800px) {
	aside {
		display: none;
	}

	#content {
		padding-left: 0;
	}

	canvas#live2dcanvas {
		display: none;
	}
}

/*竖屏*/
@media all and (orientation : portrait) {

	aside {
		display: none;
	}

	#content {
		padding-left: 0;
	}

	canvas#live2dcanvas {
		display: none;
	}

}
#fixed-btn {
	position: fixed;
	right: -40px;
	bottom: 10px;
}
#fixed-btn a {
	display: block;
	width: 36px;
	height: 36px;
	margin: 10px 0;
	line-height: 36px;
	text-align: center;
	color: #555555;
	font-size: 24px;
	background-color:#f6f6f6;
	border-radius: 5px;
	box-shadow: 0 0 5px 0 ;
	cursor: pointer;
	text-decoration: none;
}
