﻿.service-box{
    width: 100%;
    display: block;
    position: relative;
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    background-color: #fafafa;
}
.service-banner-box{
    width: 100%;
    height: calc((300 / 1920) * 100vw);
    display: block;
    position: relative;
}
.service-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
    box-sizing: border-box;
    padding: 40px 0;
    padding-bottom: 80px;
}
.service-title-box{
    margin-bottom: 60px;
}
.service-categroy-box{
    text-align: center;
}
.service-categroy{
    width: 160px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 20px;
    background-color: #f5f5f5;
    line-height: 40px;
    font-size: 16px;
    color: #666;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all .3s linear;
}
.service-categroy:hover,
.service-categroy.active{
    background-color: #007efc;
    color: #fff;
}
.service-info-box{
    margin-top: 40px;
}
.service-info{
    width: 100%;
    display: block;
    position: absolute;
    height: 0;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    pointer-events: none;
}
.service-info.active{
    display: block;
    height: initial;
    overflow: initial;
    position: static;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    transition: all .3s linear;
}
.service-info-edit{
    font-size: 16px;
    line-height: 2;
    color: #666;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    letter-spacing: 0.06em;
}


@media only screen and (max-width: 1200px){
    .service-box{
        margin-top: 100px;
        min-height: calc(100vh - 100px);
    }
}
@media only screen and (max-width: 1000px){
    .service-box{
        margin-top: 62px;
        min-height: calc(100vh - 62px);
    }
    .service-all-box{
        width: 750px;
    }
}
@media only screen and (max-width: 768px){
    .service-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .service-title-box {
        margin-bottom: 40px;
    }
    .service-categroy{
        width: 140px;
        margin: 0 10px;
    }
    .service-info-box{
        margin-top: 20px;
    }
}
@media only screen and (max-width: 550px){
    .service-box{
        margin-top: 38px;
        min-height: calc(100vh - 38px);
    }
    .service-all-box{
        width: 95vw;
        padding: 20px 0;
    }
    .service-title-box {
        margin-bottom: 20px;
    }
    .service-categroy{
        width: calc((100% - 10px) / 3 );
        margin: 0;
        margin-right: 5px;
        line-height: 40px;
        font-size: 12px;
    }
    .service-categroy:last-child{
        margin-right: 0;
    }
    .service-info-box{
        margin-top: 20px;
    }
    .service-info-edit{
        font-size: 14px;
        line-height: 1.6;
    }
}


@media only screen and (min-width: 1001px){
    .service-categroy-box,
    .service-info-edit,
    .service-info-box{
        opacity: 0;
    }
    .service-categroy-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .service-info-edit.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .service-info-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}