﻿.news-box{
    min-height: 100vh;
    width: 100%;
    font-size: 0;
    margin: 0 auto;
    margin-top: 79px;
    background-color: #93a7b0;
}
.news-info-box.container{
    width: 1000px;
    max-width: 1000px;
    padding: 0;
    padding-bottom: 80px;
}
.news-title-box{
    background-color: #282d30;
    width: 100%;
    position: relative;
    text-align: center;
    padding: 53px 0;
}
.news-info{
    margin-bottom: 50px;
    display: block;
}
.news-info-year{
    font-size: 24px;
    letter-spacing: 0.06em;
    font-family: 'Shadows Into Light';
    color: var(--white);
    transition: all .3s linear;
}
.news-info-data{
    font-size: 20px;
    letter-spacing: 0.06em;
    font-family: 'Shadows Into Light';
    color: var(--white);
    transition: all .3s linear;
}
.news-info-all-box{
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 20px 0;
    margin-top: 10px;
}
.news-info-img{
    width: 300px;
    height: 260px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
}
.news-info-img span{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .3s linear;
}
.news-info-text-box{
    width: calc(100% - 300px);
    display: inline-block;
    vertical-align: middle;
    padding-left: 40px;
    padding-top: 10px;
}
.news-info-text-name{
    font-size: 18px;
    letter-spacing: 0.06em;
    color: var(--white);
    line-height: 40px;
    font-family: 'Noto Serif TC';
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    position: relative;
}
.news-info-text-name:after{
    content: '';
    width: 0%;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 5px;
    left: 0;
    background-color: #fff;
    transition: all .3s linear;
}
.news-info-text-text{
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #dddddd;
    margin-top: 5px;
    margin-bottom: 5px;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    min-height: 168px;
    transition: all .3s linear;
}
.news-info-text-view{
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--white);
    transition: all .3s linear;
}
.news-info-text-view i {
    margin-right: 5px;
}
.news-page_number-box{
    display: block;
    text-align: center;
}
.news-page_number-box .page-item{
    font-size: 16px;
}
.news-page_number-box .page-link{
    font-family: 'Shadows Into Light';
    color: var(--white);
    background-color: transparent;
    border: none;
    padding: 0 9px;
}
.news-page_number-box .page-item:focus{
    outline: none;
}
.news-page_number-box .page-link:focus {
    z-index: 2;
    outline: 0;
    box-shadow: none; 
}
.page-item.select .page-link{
    color: #282d30;
}
.news-page-data-box{
    width: 70px;
    display: inline-block;
    vertical-align: middle;
}
.news-page-name{
    width: calc(100% - 70px);
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-left: 25px;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: var(--white);
    font-family: 'Noto Serif TC';
}
.news-page-info-edit-box{
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 15px 0;
    margin-top: 10px;
}
.news-page-info-edit-img-box{
    width: 600px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    position: relative;
    background-color: #fff;
}
.news-page-info-edit-img{
    height: 520px;
}
.news-page-info-edit-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.news-page-info-edit{
    width: calc(100% - 600px);
    box-sizing: border-box;
    padding-left: 20px;
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 36px;
    color: var(--white);
    word-break: break-all;
    overflow: hidden;
}
.news-page-info-edit-img-box .slick-prev{
    width: 40px;
    height: 100%;
    top: 0;
    transform: none;
    left: 0;
    z-index: 1;
    background-color: rgba(0,0,0,0.15);
}
.news-page-info-edit-img-box .slick-next{
    width: 40px;
    height: 100%;
    top: 0;
    transform: none;
    right: 0;
    z-index: 1;
    background-color: rgba(0,0,0,0.15);
}

.news-page-menu-box{
    padding-top: 20px;
}
.news-page-arrow-box{
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 90px);
    text-align: right;
}
.news-page-arrow,
.news-page-menu{
    display: inline-block;
    vertical-align: middle;
}
.news-page-menu{
    margin: 0 25px;
}
.news-page-arrow a{
    font-size: 24px;
    letter-spacing: 0.06em;
    line-height: 30px;
    color: var(--white);
    font-family: 'Shadows Into Light';
    transition: all .3s linear;
}
.news-page-menu a{
    font-size: 24px;
    color: #555;
    transition: all .3s linear;
}

.news-page-share-box{
    cursor: pointer;
    position: relative;
    font-size: 24px;
    letter-spacing: 0.06em;
    line-height: 30px;
    color: var(--white);
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
.news-page-share-box>span{
    font-family: 'Shadows Into Light';
    display: inline-block;
    transition: all .3s linear;
}
.news-page-share{
    width: 138px;
    display: block;
    padding: 5px 15px;
    background-color: #fff;
    border-radius: 5px;
    position: absolute;
    top: calc(100% + 5px);
    left: 25px;
    font-size: 0;
    opacity: 0;
    pointer-events: none;
    transition: all .3s linear;
}
.news-page-share-box:hover .news-page-share,
.news-page-share.open{
    opacity: 1;
    pointer-events: auto;
}
.news-page-share:after{
    content: '';
    display: block;
    border-bottom: 5px solid var(--white);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: absolute;
    top: -5px;
    left: 30px;
}
.news-page-share a{
    width: 48px;
    line-height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    color: var(--white);
    transition: all .3s linear;
}
.news-page-share a:nth-child(1){
    font-size: 24px;
    background-color: #4267b2;
    letter-spacing: 0em;
    margin-right: 10px;
}
.news-page-share a:nth-child(2){
    background-color: #00b900;
    font-size: 16px;
    letter-spacing: 0.06em;
    font-weight: 900;
    font-family: "roboto";
}

.news-page_number-box .page-link:hover{
    color: #282d30;
}
.news-info:hover .news-info-year,
.news-info:hover .news-info-data{
    color: #111b1f;
}
.news-info:hover .news-info-img span{
    transform: scale(1.1);
}
.news-info:hover .news-info-text-name:after{
    width: 100%;
}
.news-info:hover .news-info-text-view{
    letter-spacing: 0.2em;
}
.news-page-share-box:hover>span{
    transform: translateX(10px);
}
.news-page-share a:hover{
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.news-page-arrow a:hover{
    color: #282d30;
}
.news-page-menu a:hover{
    color: #fff;
}


@media only screen and (max-width: 1000px){
    .news-info-box.container{
        width: 95%;
    }
    .news-page-info-edit-img-box{
        width: 350px;
    }
    .news-page-info-edit-img{
        height: calc((260 / 300) * 350px);
    }
    .news-page-info-edit{
        width: calc(100% - 350px);
    }
}
@media only screen and (max-width: 768px){
    .news-info-img{
        width: 200px;
        height: 173px;
    }
    .news-info-text-box {
        width: calc(100% - 200px);
        padding-top: 0;
        padding-left: 20px;
    }
    .news-info-text-text{
        -webkit-line-clamp: 5;
        min-height: 105px; 
    }
    .news-page-info-edit-img-box{
        width: 100%;
    }
    .news-page-info-edit-img{
        height: calc((260 / 300) * 95vw);
    }
    .news-page-info-edit{
        width: 100%;
        padding-left: 0;
        padding-top: 20px;
    }
}
@media only screen and (max-width: 550px){
    .news-box{
        margin-top: 70px;
    }
    .news-title-box{
        padding: 30px;
    }
    .news-info-img{
        width: 150px;
        height: 130px;
    }
    .page-path-box{
        padding: 15px 0;
    }
    .news-info{
        margin-bottom: 20px;
    }
    .news-info-year{
        font-size: 18px;
    }
    .news-info-data{
        font-size: 16px;
    }
    .news-info-text-box {
        width: calc(100% - 150px);
        padding-top: 0;
        padding-left: 10px;
    }
    .news-info-text-name{
        font-size: 16px;
        line-height: 30px;
    }
    .news-info-text-text{
        font-size: 12px;
        -webkit-line-clamp: 4;
        min-height: 72px; 
    }
    .news-info-text-view{
        font-size: 12px;
    }
    .news-page-data-box {
        width: 60px;
    }
    .news-page-name{
        width: calc(100% - 60px);
        font-size: 18px;
        padding-left: 10px;
    }
    .news-page-info-edit-box{
        padding: 10px 0;
    }
    .news-page-info-edit{
        line-height: 2;
        font-size: 14px;
    }
    .news-page-menu-box{
        padding-top: 10px;
    }
    .news-page-share-box{
        font-size: 20px;
    }
    .news-page-arrow a,
    .news-page-menu a{
        font-size: 20px;
    }
    .news-page-share a{
        width: 38px;
        height: 38px;
        line-height: 38px;
    }
    .news-page-share a:nth-child(1){
        font-size: 20px;
    }
    .news-page-share a:nth-child(2){
        font-size: 12px;
    }
    .news-page-share {
        width: 118px;
        left: 19px;
    }
}
@media only screen and (max-width: 340px){
    .news-info-img{
        display: block;
        width: 100%;
        height: 277px;
    }
    .news-info-all-box{
        padding: 10px 0;
    }
    .news-info-text-box {
        width: 100%;
        padding-top: 10px;
        padding-left: 0;
        display: block;
    }
    .news-info-text-text{
        min-height: inherit;
        margin: 0;
        margin-bottom: 10px;
    }
    .news-info-text-name{
        line-height: 24px;
    }
    .news-info{
        margin-bottom: 30px;
    }
    .page-path{
        font-size: 12px;
    }
}



/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .news-info,
    .news-page_number-box,
    .news-page-name,
    .news-page-info-edit-box,
    .news-page-share-box,
    .news-page-arrow, 
    .news-page-menu{
        opacity: 0;
    }
    .news-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .news-page_number-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .news-page-name-box.anima .news-page-data-box{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .news-page-name-box.anima .news-page-name{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .news-page-info-edit-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .news-page-share-box.anima{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .news-page-arrow-box.anima .news-page-arrow, 
    .news-page-arrow-box.anima .news-page-menu{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}