body{overflow: hidden;}
.box{height: 100%;}
.box .pic{height: 300px;margin-top: 150px;position:relative;transform-style: preserve-3d;perspective: 800px;}
.box .pic img{width: 300px;position: absolute;
-webkit-box-reflect:below 0 -webkit-linear-gradient(top,rgba(0,0,0,.1),rgba(0,0,0,.5));
transition: 1s;}
.box .pic .now{transform: translateZ(100px);}
.box .pic .front{transform: rotateY(45deg) translateZ(-100px);}
.box .pic .back{transform: rotateY(-45deg) translateZ(-100px);}

/* 响应式布局 - 移动端适配 */
@media screen and (max-width: 768px) {
  .box .pic {
    height: 200px;
    margin-top: 100px;
  }
  .box .pic img {
    width: 200px;
  }
  .box .pic .now {
    transform: translateZ(80px);
  }
  .box .pic .front, .box .pic .back {
    transform: rotateY(45deg) translateZ(-80px);
  }
}

@media screen and (max-width: 480px) {
  .box .pic {
    height: 150px;
    margin-top: 80px;
  }
  .box .pic img {
    width: 150px;
  }
  .box .pic .now {
    transform: translateZ(60px);
  }
  .box .pic .front, .box .pic .back {
    transform: rotateY(45deg) translateZ(-60px);
  }
}

/* 大图预览层样式 */
.preview-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preview-content {
  max-width: 90%;
  max-height: 90%;
}

.preview-content img {
  max-width: 100%;
  max-height: 100%;
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}