﻿
@media (min-width: 1200px) {
	.nyyly li {
		float: left;
		width: 25%;
	
	}
}

@media (max-width: 1200px) {
	.nyyly li {
		width: 100%;
		margin:5% auto;
	}
}

.nyyly {

}
.xuanfubg{ position:relative; overflow:hidden;}
.nyyly li .xuanfu{ display:none; overflow:hidden; width:100%; height:100%; background:url(../images/xuanfu.png); position:absolute; left:0; top:-100%;
  transition: transform 0.8s;
  animation-name: example;
  animation-duration: 4s;
  cursor:pointer;
}
@keyframes example {
  0%   { background:url(../images/xuanfu.png); left:0px; top:-100%;}
  25%  {background:url(../images/xuanfu.png); left:0; top:0;}
}
.nyyly li:hover .xuanfu{ display:block; top:0;}
.nyyly li:hover .xuanfu .ntext{ width:80%; margin:0 auto; text-align:center; padding-top:40%; font-family:"微软雅黑"; font-size:24px; color:#FFFFFF;}
.nyyly li:hover .xuanfu .ntext span{ font-size:16px;}
.nyyly .xuanfubg:hover .text h4{ color:#FFFFFF;}
.nyyly .xuanfubg:hover .text .date{ color:#FFFFFF;}

.nyyly li a {
	
	display: block;
	border:0;
	padding:0;
}

.nyyly li img{ width:100%; display:block; border:0;}

.nyyly li .text {
	margin: 20px 0 0;
}
.nyyly li .text h4 {
	margin: 0;
	font-size: 18px;
	font-weight: normal;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nyyly li .text .date {
	margin: 10px 0 0;
	color: #666;
}
.nyyly li .text i {
	height: 1px;
	background-color: #ccc;
	margin-top: 10px;
	display: block;
	position: relative;
}
.nyyly li .text i:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	background-color: #C7860F;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
}
.nyyly li:hover a {
     border:0;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
}
.nyyly li .text p {
	margin: 10px 0 0;
	height: 44px;
	word-break: break-all;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	color: #999;
	line-height: 22px;
}
.nyyly li a:hover .text i:after {
	width: 100%;
}