/*通用css*/
.fr{
	float: right;
}
.fl{
	float:left;
}


.clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
	content: "";
	display: block;
	height: 0;
	clear:both;
	visibility: hidden;
}
.clearfix{
	*zoom: 1;/*ie6清除浮动的方式 *号只有IE6-IE7执行，其他浏览器不执行*/
}
.line1{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}
.line2{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.line3{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.line4{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}
.mtop20{
    margin-top: 20px;
}
.mtop30{
    margin-top: 30px;
}
body{
    padding-top:50px;
}
.static{
    position: fixed;
    top: 60px;
}

/*导航栏*/
.topNav{
    position: fixed;
    top:0;
    left:0;
    z-index: 1000;
    height: 50px;
    width:100%;
    display: flex;
}
.topNav .navBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topNav .navbgcolor{
    display: flex;
    height: 50px;
    align-items: center;
}
.topNav .navbgcolor li{
    display: inline-block;
    position: relative;
    line-height: 50px;
    align-items: center;
}
.topNav .navbgcolor li a{
    line-height: 50px;
    display: inline-block;
    padding: 0 15px;
    box-sizing: border-box;
    width:100%;
}
.topNav a:hover{
    opacity: .7;
}
.topNav .navbgcolor li.logo a{
    padding-left:0;
}
.topNav .navbgcolor li ul, .subnav{
    display: none;
    position: absolute;
    z-index: 1001;
    top: 50px;
    left:0;
    width: 220px;
}
.topNav .navbgcolor li ul li, .subnav a{
    display: block;
    line-height: 2.5;
}
.topNav .navbgcolor li ul li a{
    line-height: 2.5;
    display: inline-block;
    padding: 0 15px;
    width:100%;
}
.showSearch{
    position: relative;
}
.searchBtn{
    position: absolute;
    right: 10px;
    top:7px;
    background: #fff;
    border:none;
    cursor: pointer;
}
.searchBtn i{
    font-size: 14px;
}
.searchInput{
    line-height: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 15px;
    padding : 0 28px 0 10px;
    border:none;
}
/*首页*/
.toprecommendBox{
    border-radius: 6px;
    border:1px solid #ddd;
    position: relative;
    
}
.toprecommendTip{
    position: absolute;
    top: 5px;
    right: 0;
    z-index: 99;
    color: #fff;
    font-size: 12px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.toprecommendBox ul::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    margin-left: -10px;
    border-top: 40px solid #443dec;
    border-left: 40px solid transparent;
}
.toprecommendBox .toprecommendItem{
    display: flex;
    margin: 12px 0;
    height: 60px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    
}
.toprecommendBox .toprecommendItem:last-child{
    border-bottom: none;
    padding-bottom: 0;
}
.toprecommendBox .toprecommendItem .toprecommendItemImgBox{
    width: 35%;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}
.toprecommendBox .toprecommendItem .toprecommendItemImgBox img{
    width: 100%;
    min-height: 60px;
}
.toprecommendItemContent{
    width: 65%;
    padding-left: 10px;
    box-sizing: border-box;
}
.toprecommendItemContent h4{
    font-weight: bold;
}
.topbannerBox{
    padding-top:0;
    padding-bottom: 0;
}
.topbannerItem{
    width: 100%;
    height: 100%;
    position: relative;
    
}
.topbannerItem img{
    width: 100%;
    min-height:100%;
}
.topbannerItem .topbannerText{
    font-size: 18px;
    line-height: 2.2;
    background-color: rgba(0,0,0, 0.5);
    color:#fff;
    position: absolute;
    left:0;
    right: 0;
    bottom: 40px;
    padding: 0 8px;
}
.topCate{
    margin-top: 25px;
}
li.topcateItemFirst{
    display: flex;
    margin-bottom: 15px;
}
.topcateImgBox{
    width: 90px;
    height: 80px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 6px;
}
.topcateImgBox img{
    width: 100%;
    min-height: 80px;
}
.topcateContent{
    width: 90px;
    flex-grow: 1;
}
.topcateContent h4{
    font-weight: bold;
    font-size: 15px;
}
.topcateContent div{
    color:gray;
}
.topcateItem{
    margin: 6px 0;
}

/*图片列表样式*/
.picList{
    margin-top:10px;
}
.picListItem{
    border-radius: 8px;
    padding: 10px;
    border:1px solid #ededed;
    margin-bottom: 15px;
}
.picListItem:hover, .blogListItem:hover{
    box-shadow: #a9a9a9 0 0 20px;
}

.picListImgBox{
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.picListImgBox img{
    width: 100%;
    min-height: 120px;
}
.picListImgBox .picListImgCatename, .blogListImgbox .blogListgCatename{
    position: absolute;
    top:8px;
    left: 0;
    line-height: 26px;
    font-size: 13px;
    background-color: rgba(0,0,0,0.6);
    padding-right: 10px;
    padding-left: 5px;
    border-top-right-radius: 13px;
    border-bottom-right-radius: 13px;
    color:#fff;
}
.picListContent h4{
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0;
    height:20px;
    line-height: 20px;
}
.picListFooter{
    border-top:1px solid #ededed;
    display: flex;
    margin-top: 15px;
    padding-top: 15px;
    align-items: center;
    justify-content: space-between;
}
.picListFooter div{
    display: flex;
    align-items: center;
}
/*博客列表样式*/
.blogListItem{
    display: flex;
    padding: 14px 10px 10px 10px;
    border-bottom: 1px solid #ededed;
}
.blogListItem .blogListImgbox{
    width: 20%;
    min-width: 20%;
    height: 90px;
    overflow: hidden;
    margin-right: 20px;
    border-radius: 8px;
    position: relative;
}
.blogListItem .blogListImgbox img{
    width: 100%;
    min-height: 90px;
}
.blogListItem .blogListContent{
    width: 50%;
    flex-grow: 1;
}
.blogListItem .blogListContent h4{
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}
.blogListFooter{
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    align-items: center;
}
.blogListFooter div{
    margin-right: 15px;
    display: flex;
    align-items: center;
}


/*分页*/
.pagebar{
	padding: 20px 0;
	display: flex;
	justify-content: flex-end;
}
.pagebar .page{
	display: inline-block;
	padding: 5px 10px;
	margin: 0 3px;
	border:1px solid #f0f0f0 ;
}

.pagebar .now-page{
	border:none;
	background-color:#4284E2;
	color:#eee;
}

/*侧边栏*/
.sidebarItem{
    width:100%;
    margin-bottom: 20px;
}
/*侧边栏热门文章*/
.hotPostBox li{
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #ededed;
}
.hotPostBox li:last-child{
    border-bottom: none;
}
.hotPostBox li a{
    line-height: 25px;
    color:#444;
}
.hotPostBox li a:hover{
    line-height: 25px;
    color:#111;
}
.hostPosts{
    color:#d4d4d4;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
    width:20px;
    text-align: center;
}
.hostPosts-0{
    color: #0c7ff2;
}
.hostPosts-1{
    color: #5cbcff;
}
.hostPosts-2{
    color: #95e7ff;
}

/*侧边栏标签列表*/
.tagsBox ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.tagsBox ul li{
    width: 48%;
    background-color:#eee;
    text-align: center;
    line-height: 2;
    margin-bottom: 5px;
    font-size: 13px;
}

/*侧边栏评论*/
.newcommentBox{
	display: flex;
}
.newcommentImg{
	margin-right: 10px;
	max-width: 60px;
	max-height: 60px;
}
.newcommentCont{
	flex-grow: 1;
}
.newcomments li{
	padding: 15px 0;
	border-bottom: 1px solid #ddd;
}
.newcomments li:first-child{
	padding-top:0;
}
.newcomments li:last-child{
	border:none;
	padding-bottom:0;
}

/*侧边栏友情链接*/
.linkBox ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.linkBox ul li{
    width: 50%;
    text-align: center;
    line-height: 2;
    margin-bottom: 5px;
    font-size: 13px;
}

/*底部信息*/
.footer{
    padding: 10px 0;
    line-height: 1.8;
}
.footer span{
    margin-right: 20px;
}

/*文章详情*/
.articleBox{
    border:1px solid #e2e2e2;
    padding: 15px;
    border-radius:8px;
}
.articleBox h1{
	font-weight: bold;
}
.articleBox img{
    max-width: 100%;
}
.articleBox .articleInfo{
    padding-top:10px;
    margin-bottom: 15px;
    color: #666;
    display: flex;
}
.articleBox .articleInfo span{
    margin-right: 20px;
    display: flex;
    align-items: center;
}
.articleBox .articleTags{
    padding-top:20px;
}
.articleBox .articleTags a{
    margin-left: 10px;
}
.moreArticle .picList{
    margin-top: 0;
}
.articleContent{
    line-height: 1.5;
}
.articleContent p{
    margin-bottom:8px;
}

/*评论*/
#postcmt .layui-inline{
	margin-right: 0;
}

#postcmt .layui-input-inline{
	margin-right: 0;
	width: 100%;
}

#postcmt .inputList{
	display: flex;
	justify-content: space-between;
}
#postcmt .layui-inline{
	width: 30%;
	flex-grow: 0;
}

.commentlist{
	margin-top:10px;
	border:1px solid #e6e6e6;
	padding:10px;
	border-radius: 6px;
}

.commentlist .comment{
	display: flex;
}
.commentlist .comment .commentImg{

	margin-right: 5px;
}
.commentlist .comment .commentImg img{

	border-radius: 8px;
}
.commentlist .comment .commentBody{
	flex-grow: 1;
	padding-top:5px;
}
.reply{
	cursor:pointer;
	color:#009688;
}
.reply:hover{
	opacity: .7;
}
.commentContent{
	padding: 5px;
	line-height: 1.6;
}

/*移动评论*/
#postcmt .mobilePostcmt .layui-inline{
	margin-right: 0;
}

#postcmt .mobilePostcmt .layui-input-inline{
	margin-right: 0;
	width: 100%;
}

#postcmt .mobilePostcmt .inputList{
	display: flex;
	justify-content: space-between;
}
#postcmt .mobilePostcmt .layui-inline{
	width: 30%;
	flex-grow: 0;
}

/*广告*/
.daBox{
    width: 100%;
}
.daBox img{
    width: 100%;
}







/*移动端样式*/
/*导航栏*/
.mobileTop{
    height: 50px;
    box-sizing: border-box;
    width:100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content:  space-between;
}
.mobileTop span{
    display: inline-block;
    line-height: 50px;
    height: 50px;
    padding: 0 10px;
}
.mobileNavBox{
    display: none;
    position: fixed;
    z-index:9999;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color: rgba(0,0,0, .5);
}
div.mobileNavBox{
    padding-top: 50px;
}
div.mobileNavBox .navbgcolor{
    height: auto;
}
div.mobileNavBox ul.nav{
    display: block;
}
div.mobileNavBox ul.nav li{
    display: block;
}

/*移动搜索*/
.mobileSearchBox{
    display: none;
    position: fixed;
    z-index:9999;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color: rgba(0,0,0, .5);
}
.mobileSearchBoxContent{
    box-sizing: border-box;
    width: 90%;
    padding: 30px;
    background-color: #393D49;
    color:#fff;
    margin: 70px auto 0;
    border-radius: 8px;
}
.mobileBtns{
    display: flex;
    justify-content: space-around;
}



