#favor{
    position: fixed;
    top: 0;
    left: 0;
		padding: 20px 40px;
    width: 100%;
    height: 100vh;
    z-index: 10010;
    background: #FFF;
    box-sizing: border-box;
    display: none;
    overflow-y:scroll;
}

#favor h3{
	text-align: center;
}

#favor.active{
    display:block;
}

#favor .bgBox{
	padding: 0;
	margin: 0;
	list-style: none;
	overflow: visible;
}

#favor .bgBox ul{
	display: flex;
	flex-wrap: wrap;
	width:calc(100vw - 80px);
}

#favor .bgBox ul li{
	position: relative;
}

#favor .del{
	position: absolute;
	top: 10px;
	right:10px;
	width: 30px;
	height: 30px;
	background: #FFF;
	border: 1px solid #ccc;
	font-size: 20px;
	padding: 0;
	margin: 0;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
}

#favor .del:hover{
	background: #000;
	color: #FFF;
}

#favor .closebox{
	width: 40px;
	height: 40px;
	margin: 10px 10px 0 auto;
	font-size: 40px;
	color: #ccc;
	padding:0;
	cursor: pointer;
	line-height: 1.0;
	text-align: center;
	/*background: #000;*/
	position:absolute;
	top: 0;
	right: 0;
}


#favor .closebox:hover{
	color: #000;
}

header #favorBtn{
	display: none;
}


header.favor #favorBtn{
	font-size: 12px;
	color: #000;
	display:flex;
	align-items: center;
	justify-content: center;
	background: #FFFF;
	position:absolute;
	top:100%;
	right:20px;
	width: 100px;
	height: 30px;
	cursor: pointer;
	border-radius:0 0 7px 7px;
	box-shadow: 3px 3px 5px #0006;
}

header.favor #favorBtn:hover{
	background: red;
	color: #FFF;
}


/* .bgBox
-------------------------------------------------*/

.bgBox ul{
	display: flex;
	list-style:none;
	padding:0;
	margin:0;
}


.bgBox::-webkit-scrollbar{
	width: 5px;
	height: 8px;
	background:linear-gradient(#999,#fff);;
	border-radius:5px;
	border-right: 1px solid #CCC;
	border-bottom: 1px solid #CCC;
}

.bgBox::-webkit-scrollbar-thumb{
	background:linear-gradient( #b0c4de,#4169e1);
	border-radius:4px;
}


.bgBox::-webkit-scrollbar{
	background: #FFF0;
	border: none;
}

.bgBox::-webkit-scrollbar-thumb{
	background: #FFF0;
}


.bgBox li{
	height: 100%;
	padding:10px;
	margin:0 5px 10px;
}

.bgBox li img{
    height:180px;
    width:auto;
    margin:0 auto 5px;
    display:block;
    border: 1px solid #ccc;
		cursor: pointer;
}

.bgBox li span{
	font-size: 14px;
	border: 1px solid #ccc;
	line-height: 1.0;
	display: block;
	width: 60px;
	margin: 0 auto;
	text-align: center;
	padding: 5px;
	border-radius:5px;
	cursor: pointer;
}

.bgBox li .hname{
	font-size: 14px;
	text-align: center;
}