.service{
  overflow: hidden;
}

.servicetxt h1{
    text-align: center;
    color: #000;
    margin-bottom: 50px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
}

.service .container{
    max-width: 100%;
}
.serviceimg .ssimgbox{
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}
/* 价格遮罩层初始状态：移出顶部 */
.price-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7); /* 半透明背景，可选 */
  color: #fff;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease-in-out; /* 动画过渡 */
  
  /* 关键：向上平移 100% 彻底隐藏 */
  transform: translateY(-100%); 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 预留换行符支持 */
.price-overlay p {
  white-space: pre-line;
  margin: 0;
}

/* 鼠标悬浮在触发器上时，将位移归零 */
.serviceimg:hover .price-overlay {
  transform: translateY(0);
}
.serviceimg img{
    width: 100%;
    transition: transform 0.8s ease;
    height: 100%;
    object-fit: cover;
}
.gallery-info {
    padding: 1em;
    text-align: center;
    border: 1px solid #ddd;
    background: #ddd;
}
.gallery-info h4 {
    font-size: 24px;
    color: #e3117c;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.serviceimg:hover img {
    transform: scale(1.1); /* 鼠标悬停时，图片放大1.2倍 */
}
.serviceimg {
    position: relative;
    overflow: hidden;
}
.service{
    padding-top: 5em ;
    padding-bottom: 5em;
}
@media (max-width: 440px) {
    .servicetxt h1{
        font-size: 32px;
    }
    .serviceimg img{
    object-fit: cover;
}
}