/* 全局属性 */
:root {
	--menu-width: 100px;
	--body-backimg:url(../images\/3\.jpg);
	--body-backs-1:100%;
	--body-backs-2:auto;
	--theme-focus-color: #38b3ff;
	--theme-color: white;
	--theme-nav-backcolor:rgba(255,255,255,.1);
	--card-box-shadowcolor:white;
	--card-box-shadow: 0 0 5px -1px var(--card-box-shadowcolor);
	--card-backcolor: rgba(255, 255, 255, 0.8);
	--btn-backcolor:white;
	--btn-textcolor:black;
	--a-color:#2b8dc5;
	--time-color:rgba(200,200,200,0.8);
}


/* 全局样式 */
a{
	text-decoration: none;
}
body,div,ul{
	margin: 0;
	padding: 0;
}
body{
	overflow-y: hidden;
}
.tbtn {
	border-radius: 15px;
	box-shadow: -10px -10px 18px 0 rgba(255, 255, 255, 0.5),
		10px 10px 18px 0 rgba(0, 0, 0, 0.1),
		10px 10px 18px 0 rgba(255, 255, 255, 0.5) inset,
		-10px -10px 18px 0 rgba(0, 0, 0, 0.1) inset;
	text-align: center;
	transition: .3s linear;
}

.tbtn:hover {
	box-shadow: -10px -10px 18px 0 rgba(0, 0, 0, 0.05),
		10px 10px 18px 0 rgba(255, 255, 255, 0.1),
		-10px -10px 18px 0 rgba(255, 255, 255, 0.5) inset,
		10px 10px 18px 0 rgba(0, 0, 0, 0.1) inset
}

.card {
	box-shadow: var(--card-box-shadow);
	background-color: var(--card-backcolor);
	border-radius: 15px;
}

.nof::after {
	content: '';
	width: 0;
	height: 0;
	display: block;
	clear: both;
}

button{
	outline: none;
	border-radius: 15px;
	padding: 10px 17px;
	border: 1px solid #ccc;
	cursor: pointer;
	background-color: var(--btn-backcolor);
	color: var(--btn-textcolor);
}

button:hover{
	
	border: 1px solid var(--theme-focus-color);
	
}
/* 登录窗口 */
#login{
	height: 100vh;
	
}
#login .form{
	width: 60%;
	margin: 15% auto;
	max-width: 350px;
	overflow: hidden;
	
}

#login .form>div{
	text-align: center;
}

#login .form .tit>img{
	width: 50%;
}
#login .user,#login .pass{
	margin: 10px;
}
#login .in,#login .findpass{
	animation: danru .3s linear;
	padding-top: 15px;
	border-top: 1px solid #ccc;
	margin-top: 10px;
	padding-bottom: 15px;
	display: none;
}
#login .in.active,#login .findpass.active{
	display: block;
}
#login input{
	outline: none;
	padding: 10px 10px 10px 15px;
	border: 1px solid #ccc;
	border-radius: 8px;
}
#login .btns>div{
	width: 50%;
	padding:10px 0;
	float: left;
	transition: .3s;
}
#login .btns>.l{
	border-top: 1px solid #ccc;
	border-right: 1px solid #ccc;
	cursor: pointer;
	border-top-right-radius: 15px;
	box-sizing: border-box;
	box-shadow: -1px 1px 15px -10px #000 inset;
}
#login .btns>.f{
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	cursor: pointer;
	border-top-left-radius: 15px;
	box-sizing: border-box;
	box-shadow: 1px 1px 15px -10px #000 inset;
}
#login .btns>div.active{
	border: none;
	box-shadow: none;
	color: var(--theme-focus-color);
}
/* 菜单与主体样式 */

body {
	background: var(--body-backimg);

	background-size: var(--body-backs-1) var(--body-backs-2);
}

.main {
	transition: .3s linear;
	/* width: 100%; */
	
	margin: 10px auto;
	margin-top: 0;
	margin-left: 0;
	padding: 10px 5%;
	    margin-bottom: 25px;
}




.content {
	width: calc(100% - var(--menu-width) - 40px);
	min-height: 10px;
}

.menu,
.content {
	transition: .3s linear;
	float: left;
	margin: 10px;
	box-sizing: border-box;
}
@keyframes danru{
	from{
		opacity: 0;
	}
	to{
		opacity: 1;
	}
}
.content>div{
	animation:danru .3s linear;
	animation-fill-mode: forwards;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
}
.menu>ul{
	display: none;
}
.menu:hover{
	width: var(--menu-width) !important;
	height: auto;
	border-radius: 15px;
	background-image:none;

}
.menu>ul>li>a{
	color: black;
	font-size: 1.2em;
	
}
.menu>ul>li{
	list-style: none;
	margin: 20px 10%;
	
	text-align: center;
	cursor: pointer;
}
.menu>ul>li::after {
	content: '';
	width: 0;
	height: 0;
	display: block;
	clear: both;
}
.menu>ul>li:hover>a>div{
	box-shadow: -10px -10px 18px 0 rgba(0, 0, 0, 0.05),
		10px 10px 18px 0 rgba(255, 255, 255, 0.1),
		-10px -10px 18px 0 rgba(255, 255, 255, 0.5) inset,
		10px 10px 18px 0 rgba(0, 0, 0, 0.1) inset
}
.menu>ul>li>a>span{
	display: block;
	float: left;
	width: calc(100% - 60px);
	padding: calc((60px - 1.5em) / 2) 0;
	
}
/* @media (max-width:1150px) { */
	.menu>ul>li>a>span{
		display: none;
	}
	
/* } */
.menu>ul>li>a>div{
	
	width: 60px;height: 60px;
	float: none;
	margin: 0 auto;
	background-repeat: no-repeat;
	background-size: 60%;
	background-position: 50% 50%;
	border-radius: 50%;
}

.memoirs{
	background-image: url(../images/05.svg);
}
.message{
	background-image: url(../images/03.svg);
}
.setting{
	background-image: url(../images/04.svg);
}

.menu{
	background-image: url(../images/01.svg);
	width: 60px;height: 60px;
	background-repeat: no-repeat;
	background-size: 60%;
	background-position: 50% 50%;
	border-radius: 50%;
	background-color: var(--theme-color);
}

.menu:hover>ul{
	display: block;
	
}


/* 回忆录 */
.content{
	/* position: relative; */
	overflow-x: hidden;
	overflow-y: scroll;
	padding: 30px 30px 0 30px;
	height: calc(100vh - 100px);
}

.content::-webkit-scrollbar{
	width: 0;
}
#memoirs .timeline{
	height:1500px;
	float: left;
	width: 10px;
	box-sizing: border-box;
	border-left: 10px solid var(--time-color);
	border-radius: 5px;
}
#memoirs .item>p{
	font-size: 1.5em;
	
	margin: 0;
	padding-left: 15px;
}
#memoirs .item{
	width: calc(100% - 10px);
	float: left;
	padding-left: 15px;
	box-sizing: border-box;
}
#memoirs .item>div{
	float: left;
}
.d{
	width: 25px;height: 25px;
	
	background-color: var(--theme-color);
	border-radius: 50%;
	box-shadow: 0 0 5px -2px #000;
	position: relative;
	margin-left: -32px;
}
.d::before{
	content: '';
	display: block;
	width: 15px;height: 15px;
	background-color: var(--theme-focus-color);
	border-radius: 50%;
	box-shadow: 0 0 5px -2px #000;
	position: absolute;
	left: 5px;
	top: 5px;
	
}
#memoirs .item .line{
	width: calc(100% - 15px);
	height: 10px;
	background-color: var(--theme-color);
	border-radius: 5px;
	margin-top: 7.5px;
	margin-left: 10px;
}
#memoirs .media{
	width: 100%;
	padding: 5px 15px;
}
#memoirs .media .demo:hover{
	box-shadow: 0 0 10px 0 var(--theme-focus-color);
}
@keyframes tobig{
	from{
		left: calc(50% - 50px);
		top: calc(50% - 50px);
		height: 100px;
		width: 100px;
	}
	to{
		left: 20%;
		top: 20%;
		height: 60%;
		width: 60%;
	}
}
/* #memoirs .media .demo:active{
	animation: tobig .5s linear;
	animation-fill-mode: forwards;
	position: fixed;
	overflow: visible;
	
	height: 80%;
	width: 80%;
	box-shadow: none;
	z-index: 99999;
} */

#memoirs .media .demo{
	transition: .3s linear;
	height: 100px;
	width: 100px;
	margin: 10px;
	display: inline-block;
	overflow: hidden;
	text-align: center;
}

#memoirs .media .demo img{
	/* margin-left: -10%; */
	height: 100%;
	transition: .3s linear;
}
#memoirs .media .demo.open{
	position: fixed;
	width: 100%;height: 100%;
	left: 0;top: 0;
	z-index: 99999;
	background-color: rgba(0,0,0,0.5);
}
#memoirs .media .demo.open img{
	/* margin-left: -10%; */
	width: 80%;
	height: auto;
}
/* 导航栏 */
.top .nav{
	position: fixed;
}
.top{
	padding-bottom: 25px;
	
	width: 100%;
}

.top:hover .nav{
	
	top: 0;
	left: 0;
	margin-top: 0;
}


.nav{
	transition: .3s linear;
	width: 100%;
	height: 35px;
	margin-top: -43px;
	padding: 0 3%;
	padding-top: 5px;
	box-sizing: border-box;
	background-color:var(--theme-nav-backcolor);
	box-shadow:0 0px 5px 0 black;
	z-index: 999;
}
a.logo{
	margin-left: 3%;
	
}
.nav .me .headimg{
	width: 30px;height: 30px;
	overflow: hidden;
	border-radius: 50%;
	border: 1px solid var(--theme-color);
}
.nav .me .headimg img{
	height: 100%;
	/* margin-left: -10px; */
}
.nav .me{
	width: 50px;
	float: right;
	box-shadow: none;
	margin-top: -2.5px;
	background-color: transparent;
	transition: .3s linear;
}
.nav .me>.name{
	width: calc(100% - 100px);
	padding-top: 20px;
	text-align: center;
	float: left;
	display: none;
	font-size: 1.3em;
}
.nav .me>.msg{
	width: 100%;
	float: left;
	display: none;
	padding: 0 15px;
	box-sizing: border-box;
	font-size: 1.2em;
	font-weight: blod;
}
.nav .me>.msg a{
	color: var(--theme-focus-color);
	font-weight: normal;
	margin-left: 5px;
	
}
.nav .me>.msg button{
	margin: 5px auto;
	display: block;
}
.nav .me:hover>.name,.nav .me:hover>.msg{
	display: block;
}
.nav .me:hover{
	padding: 15px;
	width: 200px;
	float: right;
	margin-top: -2.5px;
	box-shadow: var(--card-box-shadow);
	background-color: var(--card-backcolor);
}
.nav .me:hover .headimg{
	float: left;
	margin: 5px;
	width: 60px;height: 60px;
	
}
.msg li:hover{
	border-bottom: 1px solid var(--theme-focus-color);
}
.msg li{
	list-style: none;
	padding: 5px 0;
	border-bottom: 1px solid #ccc;
	font-weight: bold;
	
}
.msg li:nth-last-child(1){
	border-bottom:none;
}


/* 留言板 */
#message{
	display: none;
}
.msgcard{
	border: 1px solid #ccc;
	border-radius: 15px;
	padding: 15px;
	margin: 10px 0;
}
#message .msgcard .name{
	padding: calc(25px - 0.6em) 15px;
	font-size: 1.2em;
	box-sizing: border-box;
	width: calc(100% - 50px);
	cursor: pointer;
}
#message .msgcard .name:hover{
	color: var(--theme-focus-color);
}
.msgcard>div{
	float: left;
}
#message .headimg{
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: auto 100%;
	border-radius: 50%;
	border: 2px solid #fff;
	width: 50px;height: 50px;
	background-image: url(../usermedia/headimg/me.jpg);
	box-sizing: border-box;
}

.msgcard .con{
	padding-top: 10px;
	width: 100%;
	box-sizing: border-box;
	margin: 5px;
	overflow: hidden;
	white-space: pre;
	text-overflow: ellipsis;
	      display: -webkit-box;
	      -webkit-line-clamp:2;
	      -webkit-box-orient:vertical;
}
.msgcard .con.all{
	text-overflow: unset;
	word-break: break-all;
	white-space: pre-wrap;
	word-wrap: break-word;
	      display: block;
	      -webkit-line-clamp:none;
	      -webkit-box-orient: unset;
}
.msgcard .showall{
	width: 100%;
	margin: 5px;
	color: var(--theme-focus-color);
	cursor: pointer;
}
.msgcard .time{
	font-size: 0.5em;
	box-sizing: border-box;
	padding: 5px ;
	width: 50%;
	border-top: 1px solid #ccc;
	padding-top: 10px;
	color: #555;
}
.fun{
	width: 50%;
	border-top: 1px solid #ccc;
	text-align: right;
	padding-top: 5px;
}
.msgcard [name="comment"],.msgcard [name="del"]{
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: auto 80%;
	border-radius: 15px;
	width: 50px;height: 30px;
	
	background-image: url(../images/07.svg);
	box-sizing: border-box;
}
.msgcard [name="del"]{
	background-image: url(../images/08.svg);
	
}
.msgcard .text{
	width: 100%;
	padding: 5px;
	box-sizing: border-box;
}
.msgcard .text textarea{
	border-radius: 15px;
	border: 1px solid var(--theme-focus-color);
	width: 100%;
	height: 50px;
	resize: none;
	display: none;
	outline: none;
}
.msgcard .text textarea:-moz-window-inactive{
	width: 0;
}
.msgcard .text [name="addcom"]{
	padding: 5px 10px;
	display: none;
}
.msgcard .text a[name="swcom"]{
	color: var(--a-color);
	float: right;
}
#message .msgcard .commlist{
	width: 100%;
	height: 0;
	overflow: hidden;
	transition: .3s linear;
}
#message .msgcard .commlist  li{
	list-style: none;
	border-bottom: 1px solid #ccc;
	padding: 5px ;
}
#message .msgcard .commlist  li::after{
	content: '';
	display: block;
	width: 0;height: 0;
	clear: both;
}
#message .msgcard .commlist  li:nth-last-child(1){
	border-bottom: none;
}
#message .msgcard .commlist .headimg{
	width: 35px;height: 35px;
	float: left;
}
#message .msgcard .commlist a{
	text-decoration: none;
	color: var(--a-color);
}
#message .msgcard .commlist li>.c{
	float: left;
	width: calc(100% - 35px);
	font-size: 0.9em;
	padding: calc(15px  - 0.45em) 5px;
	box-sizing: border-box;
}

/* 设置页面 */

#setting{
	display: none;
}
#setting .sets{
	float: left;
	width: 100%;
	margin: 10px 0;
}
#setting .tit{
	font-size: 1.6em;
	font-weight: bold;
	width: 100%;
}
.colorsel{
	display: inline-block;
	position: relative;
	top: 10px;
}
.colorsel .a{
	width: 35px;height: 35px;
	background-color: white;
	cursor: pointer;
}
.colorsel .b{
	display: none;
	position: absolute;
	padding: 10px;
	z-index: 99999;
}
/* .colorsel .b{
	display: block;
	
	
} */

.colorsel .slider{
	position: relative;
	width: 90%;
	height: 10px;
	border-radius: 5px;
	background-image: linear-gradient(90deg,#000,transparent);
	margin: 10px auto;
	
}
.colorsel .slider>.k{
	position: absolute;
	left: 0%;
	top: -5px;
	width: 15px;
	height: 20px;
	background-color: white;
	border-radius: 5px;
	cursor: pointer;
}
.colorsel button{
	float: right;
}
#setting select{
	outline: none;
}



/* 自适应效果 */

@media (max-width:768px) {
	#memoirs .media .demo{
		width: 90px;height: 90px;
	}
	.menu{
		display: none;
		position: fixed;
		height: auto;
		border-radius: 15px;
		background-image:none;
		bottom: 0;
		left: 0;
		width: auto;
		z-index: 99998;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
	}
	.menu>ul{
		display: block;
		text-align: center;
		
	}
	.menu>ul>li{
		display: inline-block;
		margin: 10px 10px;
	}
	.menu>ul>li>a>div{
		float: left;
		width: 40px;height: 40px;
		
	}
	.menu:hover{
		width: 100% !important;
	}
	.main{
		width: 90%;
	}
	.content{
		width: 100%;
		margin: 0;
		height: calc(100vh - 120px);
		margin-top: 10px;
	}
	.top .nav{
		margin-top: 0;
	}
	#login .form{
		width: 100%;
	}
}