
@import url(https://fonts.googleapis.com/css?family=Raleway:400,200,300,800);
figure.snip0017 {
  font-family: 'Raleway', Arial, sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 10px;
  margin-top: 600px;
  min-width: 600px;
  max-width: 310px;
  max-height: 400px;
  width: 100%;
   border: 1px solid white; 
  text-align: left;

background-image: url('../img/banner2.jpg');  
      
    /* 确保背景图片覆盖整个元素 */  
    background-size: cover;  
      
    /* 确保背景图片不会重复 */  
    background-repeat: no-repeat;  
      
    /* 设置背景图片的位置（可选） */  
    background-position: center center; 

}
figure.snip0017 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
figure.snip0017 img {
  max-width: 100%;
  opacity: 1;
  width: 100%;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
  border-radius:10px;
  border: 2px solid white; 
}
figure.snip0017 figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 30px 3em;
  width: 100%;
  height: 100%;
}
figure.snip0017 figcaption::before {
  position: absolute;
  top: 30px;
  right: 30px;
  bottom: 30px;
  left: 100%;
  border-left: 4px solid rgba(255, 255, 255, 0.8);
  content: '';
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.5);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
figure.snip0017 h2,
figure.snip0017 p, 
figure.snip0017 a, 
figure.snip0017 img{

  margin: 0 0 5px;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s,-webkit-transform 0.35s,-moz-transform 0.35s,-o-transform 0.35s,transform 0.35s;
}
figure.snip0017 h2 {
  word-spacing: -0.15em;
  font-weight: 300;
  text-transform: uppercase;
  -webkit-transform: translate3d(30%, 0%, 0);
  transform: translate3d(30%, 0%, 0);
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
  padding-left: 25px; 
}
figure.snip0017 h2 span {
  font-weight: 800;
}
figure.snip0017 p {
  font-weight: 200;
  -webkit-transform: translate3d(0%, 30%, 0);
  transform: translate3d(0%, 30%, 0);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
   padding-left: 25px; 
}
figure.snip0017 a {
  font-weight: 200;
  -webkit-transform: translate3d(0%, 30%, 0);
  transform: translate3d(0%, 30%, 0);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
   position:absolute; top:40px; right:15px;border-radius:15px; background:#6dba44; color:#fff; text-decoration:none; font-size:20px; text-align:center; height:30px; line-height:20px; padding:5px 10px;
}
figure.snip0017:hover a{opacity: 1; }

figure.snip0017:hover img {
  opacity: 1; border-radius:10px;
}
figure.snip0017:hover figcaption h2 {
  opacity: 1;
  -webkit-transform: translate3d(0%, 0%, 0);
  transform: translate3d(0%, 0%, 0);
  -webkit-transition-delay: 0.4s;
  transition-delay: 0.4s;
}
figure.snip0017:hover figcaption p {
  opacity: 0.9;
  -webkit-transform: translate3d(0%, 0%, 0);
  transform: translate3d(0%, 0%, 0);
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
}

figure.snip0017:hover figcaption img {
  opacity: 0.9;
  -webkit-transform: translate3d(0%, 0%, 0);
  transform: translate3d(0%, 0%, 0);
  -webkit-transition-delay: 0.8s;
  transition-delay: 0.6s;

width: 120px;
height:100px;
margin-left: 20px; 
margin-bottom: 10px;
border: 1px solid white; 
border-radius:10px;
}

figure.snip0017:hover figcaption::before {
  background: rgba(255, 255, 255, 0);
  left: 30px;
  opacity: 1;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}


/* Demo purposes only */
html {
  height: 500px;
}
body {
  background-color: #212121;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 500px;
  background-image: url("../img/banner3.jpg")
}



@media (max-width: 768px){

body{ display:block!important; padding-top:30px;}

figure.snip0017{ margin-top:20px; width:100%; min-width:inherit; max-width:inherit; margin:30px 0 0 0;}
figure.snip0017 h2{ font-size:16px;}
figure.snip0017 p{ font-size:14px;}
figure.snip0017:hover figcaption img{ width:70px; height:50px;}

}

