﻿.activity-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
    overflow: hidden;
}
.activity-banner-box{
    width: 100%;
    display: block;
    position: relative;
}
.activity-banner-bg{
    width: 100%;
    height: calc((360 / 1920) * 100vw);
    display: block;
    position: relative;
}
.activity-banner-text{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: 6;
}
.activity-banner-text h2>p{
    font-size: 36px;
    font-family: 'Noto Sans TC';
    color: #000;
    letter-spacing: 0.1em;
    line-height: 40px;
}
.activity-banner-text h2>span{
    font-size: 24px;
    font-family: 'Roboto';
    color: #666;
    letter-spacing: 0.1em;
    line-height: 40px;
    display: block;
    margin-top: 10px;
}

.activity-all-box{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 170px 0;
}
.activity-category-box{
    width: 260px;
    display: inline-block;
    vertical-align: top;
    position: relative;
}
.activity-category-title{
    font-size: 36px;
    font-family: 'Roboto';
    color: #000;
    letter-spacing: 0.1em;
    line-height: 40px;
    margin-bottom: 40px;
}
.activity-category-title.search-result{
    font-family: 'Noto Sans TC';
}

.activity-category{
    display: block;
    box-sizing: border-box;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.activity-category p{
    font-size: 18px;
    font-family: 'Noto Sans TC';
    opacity: 0.85;
    color: #000;
    letter-spacing: 0.1em;
    line-height: 40px;
    position: relative;
    transition: all .3s linear;
}
.activity-category::before{
    content: '';
    width: 4px;
    height: 24px;
    display: block;
    position: absolute;
    left: 0;
    top: calc(50% - 12px);
    background-color: #104a7b;
    transition: all .3s linear;
}
.activity-info-box{
    width: calc(100% - 260px);
    display: inline-block;
    vertical-align: top;
}
.activity-info{
    width: 100%;
    background-color: #fff;
    display: block;
    margin-bottom: 50px;
    transition: all .3s linear;
}
.activity-info:last-child{
    margin-bottom: 0;
}
.activity-info-img{
    width: 280px;
    height: 280px;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    position: relative;
}
.activity-info-text-box{
    width: calc(100% - 280px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    transition: all .3s linear;
}

.activity-info-date{
    width: 100%;
    display: block;
}
.activity-info-date p{
    width: 150px;
    font-size: 16px;
    color: #000;
    background-color: #f5f5f5;
    font-family: 'Roboto';
    letter-spacing: 0.1em;
    line-height: 50px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    text-align: center;
}
.activity-info-date span{
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    background-color: #104a7b;
    font-size: 16px;
    color: #fff;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    text-align: center;
}
.activity-info-name{
    line-height: 31px;
    font-size: 24px;
    color: #104a7b;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    margin: 10px 0;overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-info-text{
    line-height: 26px;
    font-size: 14px;
    min-height: 104px;
    color: #666;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    letter-spacing: 0.1em;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}





/* pages */
.activity-pages-info-box{
    box-sizing: border-box;
    padding: 3vw 2vw;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}
.activity-pages-info-date{
    width: 100%;
    display: block;
}
.activity-pages-info-date p{
    font-size: 16px;
    color: #000;
    font-family: 'Roboto';
    letter-spacing: 0.1em;
    line-height: 50px;
    background-color: #f5f5f5;
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    text-align: center;
}
.activity-pages-info-date span{
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    background-color: #104a7b;
    font-size: 16px;
    color: #fff;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    text-align: center;
}
.activity-pages-info-name{
    line-height: 40px;
    font-size: 36px;
    color: #000;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    margin: 50px 0;
}
.activity-pages-info-edit-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 40px 0;
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    line-height: 40px;
    font-size: 18px;
    color: #333;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
}
/* .activity-pages-info-edit-box *{
    font-weight: 300;
} */
.activity-pages-info-btn-box{
    width: 100%;
    display: block;
    margin-top: 30px;
    display: none;
}
.activity-pages-info-btn{
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.activity-pages-info-btn::after{
    content: '';
    width: 0%;
    height: 1px;
    background-color: #104a7b;
    position: absolute;
    bottom: 6px;
    left: 0;
    transition: all .3s ease;
}
.activity-pages-info-btn:nth-child(1)::after{
    left: initial;
    right: 0;
}
.activity-pages-info-btn i{
    font-size: 18px;
    color: #104a7b;
    display: inline-block;
    vertical-align: middle;
    line-height: 2;
}
.activity-pages-info-btn p{
    display: inline-block;
    vertical-align: middle;
    font-family: 'Roboto';
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 2;
    margin: 0 10px;
    color: #000;
    transition: all .3s linear;
}
.activity-pages-info-btn-box > span{
    display: inline-block;
    vertical-align: middle;
    font-family: 'Roboto';
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 2;
    margin: 0 30px;
    color: #000;
}




@media only screen and (max-width: 1600px){
    .activity-all-box{
        width: 1400px;
        padding: 150px 0;
    }
    
}
@media only screen and (max-width: 1400px){
    .activity-all-box{
        width: 1200px;
        padding: 120px 0;
    }
}
@media only screen and (max-width: 1200px){
    .activity-all-box{
        width: 1000px;
        padding: 100px 0;
    }
    .activity-category-box {
        width: 220px;
    }
    .activity-info-box {
        width: calc(100% - 220px);
    }
    .activity-info-name{
        font-size: 20px;
        line-height: 28px;
    }

}
@media only screen and (max-width: 1000px){
    .activity-box{
        min-height: calc(100vh - 63px);
        margin-top: 63px;
    }
    .activity-all-box{
        width: 750px;
        padding: 60px 0;
    }
    .activity-category-box{
        width: 100%;
        display: block;
        margin-bottom: 40px;
    }
    .activity-category-title{
        margin-bottom: 20px;
    }
    .rwd-activity-category{
        width: 100%;
        height: 46px;
        border: 1px solid #d1d1d1;
        font-size: 18px;
        color: #000;
        letter-spacing: 1px;
        text-align: center;
        display: block;
        line-height: 46px;
        position: relative;
        box-sizing: border-box;
        font-family: 'Noto Sans TC';
    }
    .rwd-activity-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 8px solid transparent;
        border-top: 10px solid #104a7b;
        border-left: 8px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 5%;
        box-sizing: border-box;
    }
    .activity-category-all-box{
        width: 100%;
        display: none;
        position: absolute;
        z-index: 2;
        box-sizing: border-box;
        border: 1px solid #d1d1d1;
        border-top: none;
        background-color: #fff;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
    }
    .activity-category::before{
        display: none;
    }
    .activity-category{
        padding: 5px 15px;
        margin-bottom: 0;
    }

    .activity-info-box{
        width: 100%;
        display: block;
        /* padding: 30px 60px; */
    }
    .activity-info-text-box{
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 20px;
    }
    .activity-info-text{
        min-height: 130px;
        -webkit-line-clamp: 5;
    }
    .activity-category:hover,
    .activity-category.active{
        background-color: #104a7b;
    }
    .activity-category:hover p,
    .activity-category.active p{
        color: #fff;
    }
}
@media only screen and (max-width: 768px){
    .activity-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .activity-banner-text h2>p{
        font-size: 28px;
        line-height: 34px;
    }
    .activity-banner-text h2>span{
        font-size: 18px;
        line-height: 34px;
        margin-top: 0;
    }
    .activity-category-title{
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 10px;
    }
    .activity-info-img{
        width: 200px;
        height: 200px;
    }
    .activity-info-text-box {
        width: calc(100% - 200px);
        padding-top: 10px;
    }
    .activity-info-date span,
    .activity-info-date p{
        width: 130px;
        line-height: 40px;
    }
    .activity-info-name{
        margin-bottom: 5px;
    }
    .activity-info-text {
        min-height: 78px;
        -webkit-line-clamp: 3;
    }
    .page{
        margin-top: 60px;
    }
    .activity-pages-info-name{
        font-size: 26px;
        line-height: 34px;
        margin: 40px 0;
    }
}
@media only screen and (max-width: 550px){
    .activity-box{
        min-height: calc(100vh - 47px);
        margin-top: 47px;
    }
    .activity-banner-bg{
        height: 100px;
    }
    .activity-all-box{
        width: 400px;
        padding: 20px 0;
    }
    .activity-banner-text h2>p{
        font-size: 18px;
        line-height: 26px;
    }
    .activity-banner-text h2>span{
        font-size: 14px;
        line-height: 26px;
        margin-top: 0;
    }
    .activity-category-box{
        margin-bottom: 20px;
    }
    .activity-category-title{
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 5px;
    }
    .rwd-activity-category{
        line-height: 36px;
        height: 36px;
        font-size: 16px;
    }
    .rwd-activity-category:after{
        border-right-width: 6px;
        border-top-width: 8px;
        border-left-width: 6px;
    }
    .activity-info{
        margin-bottom: 20px;
    }
    .activity-info-date p{
        font-size: 14px;
        margin-left: 5px;
    }
    .activity-info-date span{
        line-height: 36px;
    }
    .activity-info-name {
        font-size: 16px;
        line-height: 22px;
        margin: 5px 0;
    }
    .activity-info-text{
        line-height: 22px;
        font-size: 12px;
        -webkit-line-clamp: 3;
        min-height: 66px;
    
    }
    .activity-info-img {
        width: 100%;
        height: 400px;
        display: block;
    }
    .activity-info-text-box{
        width: 100%;
        display: block;
        padding-left: 0;
        padding-right: 0;
    }
    .page{
        margin-top: 40px;
    }
    .activity-pages-info-date span,
    .activity-pages-info-date p{
        width: 100px;
        line-height: 40px;
        font-size: 14px;
    }
    .activity-pages-info-name{
        font-size: 18px;
        line-height: 26px;
        margin: 20px 0;
    }
    .activity-pages-info-edit-box{
        padding: 20px 0;
        line-height: 26px;
        font-size: 14px;
    }
    .activity-pages-info-btn-box{
        margin-top: 10px;
        text-align: center;
    }
    .activity-pages-info-btn i{
        font-size: 16px;
    }
    .activity-pages-info-btn p{
        font-size: 16px;
        margin: 0 5px;
    }
    .activity-pages-info-btn-box > span{
        font-size: 16px;
    }
    .activity-category p{
        line-height: 30px;
        font-size: 16px;
    }
}
@media only screen and (max-width: 400px){
    .activity-info:nth-child(n){
        width: 100%;
        display: block;
        margin-right: 0;
    }
    .activity-all-box{
        width: 300px;
    }
    .activity-info-img {
        height: 300px
    }
    .page a {
        padding: 0 9px;    
    }
}





/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .activity-category-box,
    .activity-info{
        opacity: 0;
    }
	.activity-banner-text h2>p{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .activity-banner-text h2>span{
        animation: fade 1s ease 0.3s 1 both;
    }
    .activity-category-box.anima{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .activity-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
	.activity-info:hover .main-bg{
        transform: scale(1.1);
    }
	.activity-info:hover{
        box-shadow: 0 0 50px rgba(0, 0, 0, .1);
    }
    .activity-category:hover p,
    .activity-category.active p{
        color: #fff;
    }
    .activity-category.active::before,
    .activity-category:hover::before{
        width: 80%;
        height: 36px;
        top: calc(50% - 18px);
    }

    .activity-pages-info-box{
        opacity: 0;
    }
    .activity-pages-info-box.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .activity-pages-info-btn:hover p{
        color: #104a7b;
    }
    .activity-pages-info-btn:hover::after{
        width: 100%;
    }
}

