﻿.articles-box{
    width: 100%;
    display: block;
}
.articles-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
    box-sizing: border-box;
    padding: 100px 0;
}
.articles-category-box{
    position: relative;
    margin-bottom: 60px;
    box-sizing: border-box;
}
.articles-category-box.active{
    height: 46px;
    overflow: hidden;
}
.articles-category-list-box{
    position: relative;
    box-sizing: border-box;
    padding-right: 40px;
    border-bottom: 1px solid #ddd;
}
.articles-category-box.active .articles-category-list-box{
    height: 45px;
    padding-right: 50px;
}
.articles-category{
    display: flex;
    flex-wrap: wrap;
}
.articles-category>a{
    line-height: 25px;
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    padding: 10px 10px;
    position: relative;
    cursor: pointer;
    transition: all .3s linear;
}
.articles-category>a::after{
    content: '';
    width: 0%;
    height: 1px;
    background-color: #a67f78;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s linear;
}
.articles-category-tag-btn{
    width: 100%;
    display: block;
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
    transition: all .3s linear;
}
.articles-category-tag-btn p{
    width: 40px;
    display: inline-block;
    vertical-align: middle;
    line-height: 25px;
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    padding: 5px 5px;
    margin: 5px 0;
    text-align: center;
    cursor: pointer;
    pointer-events: all;
    transition: all .3s linear;
    border-left: 1px solid #ddd;
}
.articles-category-box.active .articles-category-tag-btn p>i{
    transform: rotateZ(180deg);
}
.articles-info{
    width: 380px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-right: calc(60px / 2);
}
.articles-info:nth-child(3n){
    margin-right: 0;
}
.articles-info:nth-child(n + 4){
    margin-top: calc(60px / 2);
}
.articles-info-img{
    width: 100%;
    height: 280px;
    display: block;
    overflow: hidden;
    position: relative;
}
.articles-info-category{
    display: inline-block;
    font-family: "Noto Sans TC";
    font-size: 12px;
    line-height: 1;
    text-align: left;
    padding: 4px 8px;
    border: solid 1px #323c53;
    letter-spacing: .1em;
    color: #323c53;
    margin: 10px 0;
}
.articles-info-text{
    font-family: "Noto Sans TC";
    font-size: 20px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    box-sizing: border-box;
    padding-left: 0.06em;
}

@media only screen and (min-width: 1001px){
    .articles-pages-all-box{
        width: 1000px;
        padding: 40px 0;
    }
}
.articles-pages-info-title{
    font-family: "Noto Sans TC";
    font-size: 32px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.4;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.articles-pages-info-name{
    font-family: "Noto Sans TC";
    font-size: 20px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 1.4;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.articles-pages-info-box .index-articles-info-category{
    display: inline-block;
    vertical-align: middle;
    margin-top: 0;
}
.articles-pages-info-category-box{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    margin-top: 5px;
}
.articles-pages-info-category{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin-right: 10px;
}
.articles-pages-info-date{
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    /* margin-left: 10px; */
    font-family: 'Roboto';
    font-weight: 300;
    color: #666;
    letter-spacing: 0.06em;
    transition: all .3s linear;
}
.articles-pages-info-img{
    margin-top: 40px;
}
.articles-pages-info-edit{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 18px;
    color: #000;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    margin-top: 40px;
}
.articles-pages-info-back {
    display: block;
    text-align: center;
    margin-top: 60px;
    transition: all .3s linear;
}
.articles-pages-info-back a{
    width: 200px;
    display: inline-block;
    border: 1px solid #323c53;
    font-family: "Noto Sans TC";
    font-size: 18px;
    line-height: 38px;
    letter-spacing: 0.06em;
    color: #323c53;
    transition: all .3s linear;
}
.articles-pages-info-back a>i{
    margin-right: 10px;
}



@media only screen and (max-width: 1200px){
    .articles-all-box{
        width: 1000px;
        padding: 80px 0;
    }
    .articles-info {
        width: 320px;
        margin-right: calc(40px / 2);
    }
    .articles-info:nth-child(n + 4) {
        margin-top: calc(40px / 2);
    }
    .articles-info-img{
        height: calc((280 / 380) * 320px);
    }
}
@media only screen and (max-width: 1000px){
    .articles-all-box{
        width: 750px;
        padding: 60px 0;
    }
    .articles-info {
        width: 240px;
        margin-right: calc(30px / 2);
    }
    .articles-info:nth-child(n + 4) {
        margin-top: calc(30px / 2);
    }
    .articles-info-img{
        height: calc((280 / 380) * 240px);
    }
    .articles-info-text{
        font-size: 18px;
    }
}
@media only screen and (max-width: 768px){
    .articles-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .articles-info:nth-child(n){
        width: 265px;
        margin-right: 20px;
        margin-top: 0;
    }
    .articles-info:nth-child(2n){
        margin-right: 0;
    }
    .articles-info:nth-child(n + 3){
        margin-top: 20px;
    }
    .articles-info-img{
        height: calc((280 / 380) * 265px);
    }
    .articles-category-box{
        margin-bottom: 20px;
    }
    .articles-pages-info-name{
        font-size: 18px;
    }
}
@media only screen and (max-width: 550px){
    .articles-all-box{
        width: calc(100vw - 40px);
        padding: 20px 0;
    }
    .articles-info:nth-child(n){
        width: calc(100vw - 40px);
        margin-top: 0;
        margin-right: 0;
    }
    .articles-info:nth-child(n + 2){
        margin-top: 20px;
    }
    .articles-info-img{
        height: calc((280 / 380) * (100vw - 40px));
    }
    .articles-info-category{
        padding: 4px;
        margin: 5px 0;
    }
    .articles-info-text{
        font-size: 16px;
    }
    .articles-pages-info-title{
        font-size: 22px;
    }
    .articles-pages-info-name{
        font-size: 16px;
    }
    .articles-pages-info-category{
        font-size: 14px;
    }
    .articles-pages-info-tag-box{
        margin-bottom: 15px;
    }
    .articles-pages-info-edit{
        font-size: 16px;
        line-height: 1.4;
        margin-top: 15px;
    }
    .articles-pages-info-back{
        margin-top: 20px;
    }
    .articles-pages-info-back a{
        font-size: 18px;
        line-height: 38px;
    }
}
@media only screen and (max-width: 320px){
    .articles-info:nth-child(n){
        width: calc(100vw - 40px);
    }
    .articles-info:nth-child(n){
        margin-right: 0;
    }
    .articles-info:nth-child(n + 2){
        margin-top: 20px;
    }
    .articles-info-img{
        height: calc((280 / 380) * (100vw - 40px));
    }
}




@media only screen and (min-width: 769px){
    
    .articles-category>a:hover:after,
    .articles-category>a.active:after{
        width: 100%;
    }
    .articles-category>a:hover,
    .articles-category>a.active{
        color: #a67f78;
    }
    .articles-info:hover .main-bg{
        transform: scale(1.1);
    }
    .articles-category-tag-btn:hover p{
        color: #323c53;
    }
    .articles-category-tag:hover,
    .articles-category-tag.active,
    .articles-pages-info-tag:hover{
        color: #323c53;
    }
    .articles-pages-info-back a:hover{
        background-color: #8f8681;
        border-color: #8f8681;
        color: #fff;
    }
}
/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .articles-category-box,
    .articles-pages-info-title,
    .articles-pages-info-date,
    .articles-pages-info-img,
    .articles-pages-info-edit,
    .articles-pages-info-back{
        opacity: 0;
    }
    .articles-category-box.anima{
        animation: fade 1s linear 0s 1 both;
    }
    .articles-pages-info-title.anima{
        animation: fadeInDown 1s linear 0s 1 both;
    }
    .articles-pages-info-date.anima{
        animation: fadeInRight 1s linear 0s 1 both;
    }
    .articles-pages-info-img.anima{
        animation: fade 1s linear 0s 1 both;
    }
    .articles-pages-info-edit.anima{
        animation: fade 1s linear 0s 1 both;
    }
    .articles-pages-info-back.anima{
        animation: fadeInUp 1s linear 0s 1 both;
    }

}