.template-bg{
    height: 50vh;
    background:url(../assets/homepage/home_bg.jpg) no-repeat center;
    background-size: cover;
}
.template-top{
    text-align: left;
    padding-top: 20vh;
    padding-left: 5vw;
}
.template{
    padding: 5vw;
    display: flex;
}
.template .left{
    width: 240px;
    padding-right: 20px;
}
.template .neirong{
    flex: 1;
}
.template .left .search{
    position: relative;
    margin-bottom: 20px;
}
.template .left .search input{
    width: 140px;
    padding-left: 20px;
    padding-right: 40px;
    height: 34px;
    border-radius: 25px;
    border:solid 1px #dcdcdc;
}
.template .left .search input:focus{
    outline:solid 1px rgb(0, 199, 92);
    border:none;
}
.template .left .search .btn{
    position: absolute;
    top:10px;
    right:30px;
    width: 20px;
}
.template .left .search .btn:hover{
    cursor: pointer;
}
.template .left .search .btn img{
    width: 20px;
    height: 20px;
}
.classes .title{
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
}
.classes ul li{
    padding: 12px 5px;
}
.classes ul li:hover{
    cursor: pointer;
}
.classes ul li.active a{
    color: rgb(0, 199, 92);
}
.template-list-row{
    display: flex;
    flex-wrap: wrap;
}
.template-list-item{
    width: 30%;
    border: solid 1px #dcdcdc;
    margin: 10px;
    max-width: 386px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    transition: all .15s linear;
    -moz-transition: all .15s linear;
    -webkit-transition: all .15s linear;
    -o-transition: all .15s linear;
}
.template-list-item:hover{
    cursor: pointer;
}
.template-list-item:hover .title>div:nth-child(2){
    display: none;
}
.template-list-item:hover .title>div:nth-child(3){
    display: block;
}
.template-list-item img{
    width: 100%;
}
.template-list-item .title{
    display: flex;
    padding: 10px 20px;
}
.template-list-item .title>div:nth-child(1){
    color: #666;
    font-size: 18px;
    flex: 1;
}
.template-list-item .title>div:nth-child(2),
.template-list-item .title>div:nth-child(3){
    text-align: right;
    width: 100px;
    color: #999;
}
.template-list-item .title>div:nth-child(3){
    display: none;
}
.template-list-item .bottom-area{
    border-top: solid 1px #dcdcdc;
    padding: 20px;
}
.template-list-item .bottom-area .btn-area{
    float: right;
}
.template-list-item .bottom-area .btn-area>.template-btn{
    display: inline-block;
    border: solid 1px #dcdc;
    padding: 10px 15px;
    border-radius: 25px;
    margin-top: -5px;
}
.template-list-item .bottom-area .price{
    color: #27c24c;
    font-size: 22px;
}
.template-list-item .bottom-area .btn-area>.template-btn:not(:last-child){
    margin-right: 10px;
}
.template-list-item .bottom-area .btn-area>.template-btn.active{
    background-color: #27c24c;
    border: solid 1px #27c24c;
    color: #fff;
}
.slider-container {
    width: 100%; /* 容器宽度 */
    height: 250px;
    overflow: hidden; /* 隐藏溢出的部分 */
    position: relative; /* 定位容器 */
}

.slider-container img {
    width: 100%; /* 图片宽度 */
    transition: transform 5s ease; /* 平滑过渡效果 */
}

.slider-container:hover img {
    transform: translateY(calc(-100% + 250px)); /* 鼠标悬停时移动图片 */
}
/* 手机屏幕 */
@media screen and (max-width: 767px) {
    .template{
        display: block;
    }
    .template .left{
        width: unset;
    }
    .template .left .search{
        width: calc(100% - 40px);
    }
    .template .left .search input{
        width: 100%;
    }
    .template .left .search .btn{
        right:  -40px;
    }
    .classes ul li{
        display: inline-block;
    }
    .template-list-row{
        display: block;
    }
    .template-list-item{
        width: 100%;
        margin: 10px 0;
    }
}
