*{
    margin:0;
}

.wrapper{
    max-width:1310px; width:1310px;
    margin:0px auto;
}
.wrapper ul { padding:0px; margin:0px;}
.wrapper li{
    position: relative; float:left;
    width: 406px;  margin:0px; 
    height: 260px;
    list-style:none;
    padding:0px;
    display: inline-block;
    perspective: 300px;
  }
  .wrapper li img { width:100%; height:100%;}
  .picBox{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform-style: preserve-3d;
    transform-origin: 50% 50% -130px;
    animation: 200ms ease-out 0ms 1 normal forwards;
  }

.wrapper li .show { }
.wrapper li .show:before{ position:absolute; z-index:1; top:0px; left:0px; content:" "; background: rgba(0,0,0,.2);  width:100%; height:100%; }
.wrapper li .show p { position: absolute; z-index:2; top:0px; left:0px; line-height:260px; text-align: center;font-family: 'Oswald';color:#fff; width:100%; font-size:28px; text-transform:capitalize; }
.wrapper li .show p:before { position:absolute; z-index:3; top:60%; left:45%; content:" "; background: #f1aa11;  width:10%; height:3px; }



.show,
.hide{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
	
  }
  
  
  @font-face {
  font-family: 'Oswald';
    font-style: normal;


  src: url(../fonts/Oswald-Regular.ttf) ;
 
}
  
.hide{
    color:#212121;
    background: url(../images/jsbg.jpg) no-repeat center top rgba(255,255,255,1);  background-size:100% 100%; 
    text-align:center;
    line-height:260px;
    transform: translate3d(0,0,-1px);
	
	
	
    /* 3D空间内移动一个元素的位置 */
}

.hide h3 {line-height:260px;  font-family: 'Oswald-Bold';color:#212121;text-transform:capitalize;}

.in-top .hide,
.out-top .hide
 {
    transform-origin: 0% 100%;
    transform: translate3d(0, -100%, 0) rotate3d(1,0,0,90deg);
}
.in-top .picBox{
    animation-name: in-top;
    animation-play-state: running;
}
.out-top .picBox{
    animation-name: out-top;
    animation-play-state: running;
}
@keyframes in-top {
    from  {transform: rotate3d(0,0,0,0deg)}
    to    {transform: rotate3d(-1,0,0,90deg)}
} 

@keyframes out-top {
    from {transform: rotate3d(-1,0,0,90deg)}
    to   {transform: rotate3d(0,0,0,0deg)}
}
.in-right .hide,
.out-right .hide {
          transform-origin: 0% 0% ;
          transform: translate3d(100%, 0, 0) rotate3d(0,1,0,90deg); 
}
.in-right .picBox{
    animation-name: in-right;
    animation-play-state: running;
}
.out-right .picBox{
    animation-name: out-right;
    animation-play-state: running;
}
@keyframes in-right {
    from  {transform: rotate3d(0,0,0,0deg)}
    to    {transform: rotate3d(0,-1,0,90deg)}
}

@keyframes out-right {
    from  {transform: rotate3d(0,-1,0,90deg)}
    to    {transform: rotate3d(0,0,0,0deg)}
}

.in-bottom .hide,
.out-bottom .hide {
          transform-origin: 0% 0%;
          transform: translate3d(0, 100%, 0) rotate3d(-1,0,0,90deg);
}
.in-bottom .picBox{
    animation-name: in-bottom;
    animation-play-state: running;
}
.out-bottom .picBox{
    animation-name: out-bottom;
    animation-play-state: running;
}
@keyframes in-bottom {
    from  {transform: rotate3d(0,0,0,0deg)}
    to    {transform: rotate3d(1,0,0,90deg)}
}
@keyframes out-bottom {
    from  {transform: rotate3d(1,0,0,90deg)}
    to    {transform: rotate3d(0,0,0,0deg)}
}
.in-left .hide,
.out-left .hide {
          transform-origin: 100% 0;
          transform: translate3d(-100%,0,0) rotate3d(0,-1,0,90deg);
}
@keyframes in-left {
    from  {transform: rotate3d(0,0,0,0deg)}
    to    {transform: rotate3d(0,1,0,90deg)}
}
@keyframes out-left {
    from  {transform: rotate3d(0,1,0,90deg)}
    to    {transform: rotate3d(0,0,0,0deg)}
}
.in-left .picBox{
          animation-name: in-left;
          animation-play-state: running;
}
.out-left .picBox{
          animation-name: out-left;
          animation-play-state: running;
}






