﻿.service-box{
    width: 100%;
    display: block;
    position: relative;
    font-size: 0;
    margin-top: 80px;
    background-color: #f5f5f5;
}
.service-info-img{
    width: 60px;
    height: 60px;
}
.service-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    z-index: 2;
    padding: 0 15px;
    padding-top: 100px;
    padding-bottom: 60px;
}
.service-info{
    display: inline-block;
    width: 260px;
    height: 260px;
    background-color: #fff;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    margin-left: 43.333px;
    margin-bottom: 43.333px;
    outline: none;
    position: relative;
}
.service-info:nth-child(4n + 1){
    margin-left: 0;
}
.service-info-fixed{
    width: 100%;
    height: 100%;
    display:flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
}
.service-info-text{
    font-size: 18px;
    color: #555;
    margin: 20px 0;
    letter-spacing: 2px;
}
.service-info-btn{
    width: 100px;
    height: 30px;
    line-height: 30px;
    background-color: #d3202f;
    font-size: 14px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    transition: all .3s linear;
}
.service-info-line-t{
    top: -1px;
    left: -1px;
    width: 0px;
    height: 1px;
}
.service-info-line-l{
    top: -1px;
    left: -1px;
    width: 1px;
    height: 0px;
}
.service-info-line-b{
    bottom: -1px;
    right: -1px;
    width: 0px;
    height: 1px;
}
.service-info-line-r{
    bottom: -1px;
    right: -1px;
    width: 1px;
    height: 0px;
}
.service-info-line-t,
.service-info-line-l,
.service-info-line-b,
.service-info-line-r{
    position: absolute;
    display: block;
    background-color: #d3202f;
    transition: all .3s linear;
}

/*<----------------Hover---------------->*/
.service-info:hover .service-info-line-t{
    width: 16px;
}
.service-info:hover .service-info-line-l{
    height: 16px;
}
.service-info:hover .service-info-line-b{
    width: 16px;
}
.service-info:hover .service-info-line-r{
    height: 16px;
}
.service-info:hover .service-info-btn{
    background-color: #960915;
}
@media only screen and (max-width: 1200px){
    .service-all-box{
        width: 1000px;
        padding-top: 80px;
        padding-bottom: 50px;
    }
    .service-info{
        width: 220px;
        height: 220px; 
        margin-left: 30px;
        margin-bottom: 30px;
    }
}
@media only screen and (max-width: 1000px){
    .service-box{
        margin-top: 62px;
    }
    .service-all-box{
        width: 800px;
        padding: 0 10px;
        padding-top: 70px;
        padding-bottom: 40px;
    }
    .service-info{
        width: 240px;
        height: 240px; 
    }
    .service-info:nth-child(n){
        margin-left: 30px;
    }
    .service-info:nth-child(3n + 1){
        margin-left: 0;
    }
}
@media only screen and (max-width: 800px){
    .service-all-box{
        width: 600px;
        padding: 0 10px;
        padding-top: 60px;
        padding-bottom: 40px;
    }
    .service-info{
        width: 180px;
        height: 180px; 
        margin-bottom: 20px;
    }
    .service-info:nth-child(n){
        margin-left: 20px;
    }
    .service-info:nth-child(3n + 1){
        margin-left: 0;
    }
    .service-info-text{
        font-size: 16px;
        margin: 10px 0 ;
    }
}
@media only screen and (max-width: 800px){
    .page-path-box{
        display: none;
    }
}
@media only screen and (max-width: 600px){
    .service-box{
        margin-top: 42px;
    }
    .service-all-box{
        width: 400px;
        padding: 0;
        padding-top: 50px;
        padding-bottom: 30px;
    }
    .service-info{
        width: 190px;
        height: 190px; 
    }
    .service-info:nth-child(n){
        margin-left: 20px;
    }
    .service-info:nth-child(2n + 1){
        margin-left: 0;
    }
    .service-info-text{
        font-size: 14px;
        margin: 5px 0 ;
    }
}
@media only screen and (max-width: 400px){
    .service-all-box{
        width: 300px;
        padding-top: 30px;
        padding-bottom: 20px;
    }
    .service-info{
        width: 145px;
        height: 145px; 
        margin-bottom: 10px;
    }
    .service-info:nth-child(n){
        margin-left: 10px;
    }
    .service-info:nth-child(2n + 1){
        margin-left: 0;
    }
    .service-info-text{
        font-size: 12px;
    }
    .service-info-btn{
        width: 80px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
    }
    .page-banner-title{
        font-size: 18px;
    }
}

/*animation*/
/*<-------------動畫------------->*/

@media only screen and (min-width: 1001px){
    .service-info{
        opacity: 0;
    }
    .service-info.active{
        animation: animation_fade 1s ease both;
    }
}