﻿.knowledge-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 110px 0;
}
.knowledge-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 100px;
}
.knowledge-all-box .about-title-box{
    text-align: left;
}
.knowledge-category-box{
    margin-bottom: 80px;
}
.knowledge-category{
    font-family: "Roboto","Noto Serif TC";
    font-weight: 600;
    font-size: 18px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 30px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 60px;
    position: relative;
    transition: all .3s linear;
}
.knowledge-category::after{
    content: "";
    width: 0%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #78161b;
    transition: all .3s linear;
}
.knowledge-left-box{
    width: 920px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
}
.knowledge-info{
    width: 420px;
    display: inline-block;
    vertical-align: top;
    margin-right: 40px;
}
.knowledge-info:nth-child(n + 3){
    margin-top: 60px;
}
.knowledge-info-img{
    width: 100%;
    height: calc((320 / 420) * 420px);
    display: block;
    overflow: hidden;
    transition: all .3s linear;
}
.knowledge-info-text-box{
    margin-top: 30px;
}
.knowledge-info-text-name{
    font-family: "Noto Sans TC";
    font-size: 18px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.knowledge-info-text{
    margin-top: 15px;
}
.knowledge-info-date{
    font-family: "Roboto";
    font-size: 16px;
    line-height: 1;
    color: #666;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-top: 5px;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 2px solid #eee;
}
.knowledge-info-category{
    font-family: "Noto Sans TC";
    font-size: 16px;
    line-height: 1;
    color: #666;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
}
.knowledge-hotArticle-box{
    width: calc(100% - 920px);
    display: inline-block;
    vertical-align: top;
}
.knowledge-hotArticle-title{
    font-size: 18px;
    letter-spacing: 0.06em;
    font-family: "Noto Serif TC";
    font-weight: 700;
    color: #000;
    line-height: 1;
    box-sizing: border-box;
    padding: 0 30px;
}
.knowledge-hotArticle-info-box{
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
    margin-top: 25px;
}
.knowledge-hotArticle-info{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 27px 30px;
    border-bottom: 1px solid #eee;
    transition: all .3s linear;
}
.knowledge-hotArticle-info-date{
    font-family: "Roboto";
    font-size: 14px;
    line-height: 1;
    color: #666;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-top: 5px;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 2px solid #eee;
}
.knowledge-hotArticle-info-category{
    font-family: "Noto Sans TC";
    font-size: 14px;
    line-height: 1;
    color: #666;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
}
.knowledge-hotArticle-info-text-name{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 10px;
}
.knowledge-info-page{
    display: block;
    margin-top: 80px;
}





.knowledge-pages-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
}
.knowledge-pages-path-box{
    box-sizing: border-box;
    padding: 45px 0;
    border-bottom: 1px solid #eee;
}
.knowledge-pages-path{
    font-family: "Roboto","Noto Sans TC";
    font-weight: 300;
    color: #666;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
a.knowledge-pages-path{
    color: #000;
    margin-right: 40px;
}
a.knowledge-pages-path::after{
    content: "/";
    font-family: "Noto Sans TC";
    font-weight: 300;
    color: #ddd;
    display: block;
    position: absolute;
    left: calc(100% + 16px);
    top: 0;
    line-height: 24px;
}
a.knowledge-pages-path:hover{
    color: #78161b;
    transition: all .3s linear;
}
.knowledge-category::after{
    content: "";
    width: 0%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #78161b;
    transition: all .3s linear;
}

a.knowledge-pages-path:first-child{
    font-weight: 400;
}
.knowledge-pages-text-box{
    box-sizing: border-box;
    padding: 45px 0;
}
.knowledge-pages-date{
    font-family: "Roboto";
    font-size: 16px;
    line-height: 1;
    color: #666;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-top: 5px;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 2px solid #eee;
}
.knowledge-pages-category{
    font-family: "Noto Sans TC";
    font-size: 16px;
    line-height: 1;
    color: #666;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: middle;
}
.knowledge-pages-name{
    font-family: "Noto Sans TC";
    font-size: 36px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-top: 20px;
}
.knowledge-pages-img{
    text-align: center;
}
.knowledge-pages-edit{
    font-family: "Noto Sans TC";
    font-size: 18px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 2;
    margin-top: 30px;
}
.knowledge-pages-back-box{
    margin-top: 200px;
    text-align: center;
}
.knowledge-pages-back{
    position: relative;
}
.knowledge-pages-back span{
    font-size: 28px;
    line-height: 14px;
    color: #78161b;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 30px;
    transition: all .3s linear;
}
.knowledge-pages-back::after{
    content: "";
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    bottom: -8px;
    left: 0;
    background-color: #78161b;
    transform: scale(0);
    transition: all .3s ease;
    pointer-events: none;
}
.knowledge-pages-back p{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.knowledge-pages-arrow{
    position: fixed;
    top: calc(50vh - 12px);
}
.knowledge-pages-arrow::after{
    content: "";
    width: 0%;
    height: 2px;
    display: block;
    position: absolute;
    bottom: -8px;
    left: 0;
    background-color: #78161b;
    transition: all .3s ease;
    pointer-events: none;
}
.knowledge-pages-arrow-prev{
    left: calc((100vw - 1280px) / 2 - 150px);
}
.knowledge-pages-arrow-prev::after{
    left: initial;
    right: 0;
}
.knowledge-pages-arrow-next{
    right: calc((100vw - 1280px) / 2 - 150px);
}
.knowledge-pages-arrow span{
    font-size: 28px;
    line-height: 14px;
    color: #78161b;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.knowledge-pages-arrow p{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.knowledge-pages-arrow-prev span{
    margin-right: 15px;
}
.knowledge-pages-arrow-next span{
    margin-left: 15px;
}
.closeArrow{
    opacity: 0;
    pointer-events: none;
}


@media only screen and (max-width: 1580px){
    .knowledge-pages-all-box{
        width: 1000px;
    }
    .knowledge-pages-arrow-prev {
        left: calc((100vw - 1000px) / 2 - 150px);
    }
    .knowledge-pages-arrow-next {
        right: calc((100vw - 1000px) / 2 - 150px);
    }
}

@media only screen and (max-width: 1380px){
    .knowledge-pages-all-box{
        width: 700px;
    }
    .knowledge-pages-arrow-prev {
        left: calc((100vw - 700px) / 2 - 150px);
    }
    .knowledge-pages-arrow-next {
        right: calc((100vw - 700px) / 2 - 150px);
    }
}
@media only screen and (max-width: 1280px){
    .knowledge-all-box{
        width: 1000px;
    }
    .knowledge-left-box{
        width: 720px;
    }
    .knowledge-hotArticle-box {
        width: calc(100% - 720px);
    }
    .knowledge-info{
        width: 320px;
    }
    .knowledge-info-img{
        height: calc((320 / 420) * 320px);
    }
}
@media only screen and (max-width: 1000px){
    .knowledge-all-box{
        width: 750px;
    }
    .knowledge-left-box{
        width: 500px;
    }
    .knowledge-hotArticle-box {
        width: calc(100% - 500px);
    }
    .knowledge-info{
        width: 230px;
        margin-right: 20px;
    }
    .knowledge-info-img{
        height: calc((320 / 420) * 230px);
    }
    .knowledge-info-text-box {
        margin-top: 20px;
    }

    
    .knowledge-pages-arrow-prev {
        left: 40px;
    }
    .knowledge-pages-arrow-next {
        right: 40px;
    }
}
@media only screen and (max-width: 768px){
    .knowledge-box{
        padding: 85px 0;
        padding-bottom: 40px;
    }
    .knowledge-all-box{
        width: 550px;
        padding-bottom: 20px;
    }
    .knowledge-category-box{
        margin-bottom: 40px;
    }
    .rwd-knowledge-category{
        width: 100%;
        height: 40px;
        border: 1px solid #888;
        text-align: center;
        display: block;
        font-family: "Noto Sans TC";
        font-size: 18px;
        color: #000;
        letter-spacing: 0.06em;
        line-height: 40px;
        position: relative;
        box-sizing: border-box;
    }
    .rwd-knowledge-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 6px solid transparent;
        border-top: 8px solid #000;
        border-left: 6px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 4px);
        right: 15px;
        box-sizing: border-box;
    }
    .knowledge-category-all-box{
        width: 100%;
        position: absolute;
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
        display: none;
    }
    .knowledge-category{
        width: 100%;
        display: block;
        line-height: 30px;
        text-align: center;
        box-sizing: border-box;
        padding: 5px 0;
        margin-right: 0;
    }
    .knowledge-category.active{
        background-color: #78161b;
        color: #fff;
    }
    .knowledge-left-box{
        width: 100%;
    }
    .knowledge-info{
        width: 265px;
        margin-right: 20px;
    }
    .knowledge-info:nth-child(2n){
        margin-right: 0;
    }
    .knowledge-info:nth-child(n + 3) {
        margin-top: 30px;
    }
    .knowledge-info-img{
        height: calc((320 / 420) * 265px);
    }
    .knowledge-hotArticle-box {
        width: 100%;
        margin-top: 60px;
    }

    .knowledge-pages-all-box{
        width: 550px;
    }
    .knowledge-pages-path-box{
        display: none;
    }
    .knowledge-pages-text-box{
        padding: 25px 0;
    }
    .knowledge-pages-name{
        font-size: 24px;
    }
    .knowledge-pages-back-box{
        margin-top: 40px;
    }
    .knowledge-pages-arrow-box{
        width: 550px;
        max-width: 100%;
        display: flex;
        display: -webkit-flex;
        justify-content: space-between;
        margin: 0 auto;
        box-sizing: border-box;
        padding-top: 40px;
    }
    .knowledge-pages-arrow-prev{
        position: static;
    }
    .knowledge-pages-arrow-next{
        position: static;
    }
}
@media only screen and (max-width: 550px){
    .knowledge-box{
        padding-bottom: 20px;
    }
    .knowledge-all-box{
        width: calc(100vw - 40px);
    }
    .knowledge-category-box{
        margin-bottom: 20px;
    }
    .rwd-knowledge-category{
        font-size: 16px;
    }
    .knowledge-info:nth-child(n){
        width: 100%;
        margin-right: 0px;
    }
    .knowledge-info:nth-child(n + 2) {
        margin-top: 20px;
    }
    .knowledge-info-img{
        height: calc((320 / 420) * (100vw - 40px));
    }
    .knowledge-info-text-box{
        margin-top: 10px;
    }
    .knowledge-info-text-name{
        font-size: 16px;
    }
    .knowledge-info-text{
        margin-top: 10px;
    }
    .knowledge-info-date{
        font-size: 14px;
        padding-top: 2px;
        padding-right: 5px;
        margin-right: 5px;
        border-right: 1px solid #eee;
    }
    .knowledge-info-category{
        font-size: 14px;
    }
    .knowledge-info-page{
        margin-top: 40px;
    }
    .page a{
        margin: 0 10px;
    }
    .knowledge-hotArticle-box{
        margin-top: 20px;
    }
    .knowledge-hotArticle-title{
        font-size: 16px;
        padding: 0;
    }
    .knowledge-hotArticle-info-box{
        margin-top: 10px;
    }
    .knowledge-hotArticle-info{
        padding: 15px 0;
    }

    .knowledge-pages-all-box{
        width: calc(100vw - 40px);
    }
    .knowledge-pages-text-box {
        padding: 15px 0;
    }
    .knowledge-pages-date{
        font-size: 14px;
        padding-top: 2px;
        padding-right: 5px;
        margin-right: 5px;
    }
    .knowledge-pages-category{
        font-size: 14px;
    }
    .knowledge-pages-name{
        font-size: 20px;
        margin-top: 5px;
    }
    .knowledge-pages-edit{
        font-size: 16px;
        margin-top: 10px;
        line-height: 1.4;
    }
    .knowledge-pages-arrow-box{
        width: calc(100vw - 40px);
        padding-bottom: 40px;
    }
    .knowledge-pages-back span{
        margin-right: 10px;
        font-size: 22px;
    }
    .knowledge-pages-back p{
        font-size: 14px;
    }
    .knowledge-pages-arrow-prev span{
        margin-right: 5px;
        font-size: 22px;
    }
    .knowledge-pages-arrow-next span{
        margin-left: 5px;
        font-size: 22px;
    }
    .knowledge-pages-arrow p{
        font-size: 14px;
    }
}



@media only screen and (min-width: 769px){
    .knowledge-category.active,
    .knowledge-category:hover{
        color: #78161b;
    }
    .knowledge-category.active::after,
    .knowledge-category:hover::after{
        width: 100%;
    }
    .knowledge-info:hover .knowledge-info-img{
        box-shadow: 0 0 10px rgba(0, 0, 0, .35);
    }
    .knowledge-info:hover .main-bg{
        transform: scale(1.1);
    }

    .knowledge-hotArticle-info:hover{
        background-color: #eee;
    }
    .knowledge-pages-arrow:hover::after{
        width: 100%;
    }
    .knowledge-pages-back:hover::after{
        transform: scale(1);
    }

    .knowledge-category-box,
    .knowledge-info,
    .knowledge-hotArticle-box,
    .knowledge-info-page,
    .knowledge-pages-path-box,
    .knowledge-pages-text,
    .knowledge-pages-name,
    .knowledge-pages-img,
    .knowledge-pages-edit,
    .knowledge-pages-back-box{
        opacity: 0;
    }
    .knowledge-category-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .knowledge-info.anima,
    .knowledge-info-page.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .knowledge-hotArticle-box.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .knowledge-pages-path-box.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .knowledge-pages-text.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .knowledge-pages-name.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .knowledge-pages-img.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .knowledge-pages-edit.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .knowledge-pages-back-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}