﻿*,
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    box-sizing: border-box;
}

.highlight {
    background: #FB8700F2 !important;
    color: #000 !important;
}

.header {
    padding: 1.5rem 2.5rem;

}

.nav {
    padding: 0.5rem 0 0.5rem 2.5rem;
    background-color: #2861B8;
}

.nav .left {
    width: 80%;
    display: inline-block;
}

.nav .left a {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    font-size: 1.25rem;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    background: linear-gradient(to right, #95C6EAF2, #7091CDE6);
    margin: 0.25rem 0.125rem;
    border-radius: 56px;
    position: relative;
}

.nav .left a:hover {
    background: linear-gradient(to right, #FBCC3DF2, #FB8700F2);
    color: #fff;
}


.nav .right {
    width: 20%;
    margin-left: -0.5rem;
    padding-right: 0.5rem;
    text-align: right;
    display: inline-block;
    position: relative;
}

.nav .right .search {
    width: 100%;
    padding: 12px 36px 12px 12px;
    border-radius: 30px;
    font-size: 1.25rem;
    border: none;

}

.nav .right img {
    top: 15px;
    right: 20px;
    position: absolute;
    cursor: pointer;
}

.nav .right .resultList {
    width: 100%;
    max-height: 300px;
    top: 55px;
    position: absolute;
    text-align: left;
    background: #fff;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
}

.nav .right .resultList.open {
    display: block;
}

.nav .right .resultList li {
    padding: 4px 6px;
    cursor: pointer;
}

.nav .right .resultList li:hover {
    background: #FB8700F2;
}

.navMenu {
    display: none;
}

.kv {
    margin-bottom: 5%;
}

.kv img {
    width: 100%;
}

.contBlock {
    padding: 1% 0;
}

.contBlock:nth-child(even) {
    background: #F0F8FF;
}

.title_img {
    display: block;
    margin: 0 auto;
}

footer {
    background: #1A2F6E;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-evenly;
    padding: 14px 0;
}

footer div {
    display: flex;
    align-items: center;
}

footer div img {
    margin-right: 14px
}

footer .footer_info {
    display: block;
}

footer .phone {
    display: none;
}

footer .phone a {
    text-decoration: underline;
    display: inline-block;
    color: #fff;
}

.contBox {
    max-width: 75%;
    margin: 3rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contBox div,
.contBox a {
    width: 20%;
    border-radius: 8px;
    margin: 2% 0% 2% 6%;
    box-shadow: 1px 3px 5px 1px rgba(0, 0, 0, 0.2);
    display: block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.contBox div:nth-child(4n+1),
.contBox a:nth-child(4n+1) {
    margin-left: 0;
}

.contBox div p,
.contBox a p {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contBox div p span,
.contBox a p span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contBox div img,
.contBox a img {
    width: 100%;
    height: 120px;
    /* 圖片高度固定 */
    object-fit: cover;
    /* 裁剪圖片使其適應容器 */
    border-top: 1px solid #ddd;
}

.contBlock:nth-child(odd) .contBox p {
    background: #F0F8FF;
}

.contBox p {
    margin: 0;
    padding: 0 2%;
    font-size: 1.25rem;
    color: #1A2F6E;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.popupBlock {
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.3);
    top: 0;
    display: none;
}

.popupBox {
    position: absolute;
    width: 75%;
    height: 90%;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    top: 1%;
    left: 50%;
    transform: translate(-50%);
}

.popupBox ul ul {
    padding-left: 2rem;
    list-style: none;
}

.popupBox .closeBtn {
    display: flex;
    justify-content: flex-end;
}

.popupBox .closeBtn img {
    cursor: pointer;
}

.popupCont {
    overflow-y: auto;
    height: 90%;
    margin-top: 30px;
    font-size: 1.25rem;
}

.wrap img {
    width: 100%;
}

.wrap h1 {
    text-align: center;
    color: #1A2F6E;
    font-size: 2.25rem
}

.contBox .pagination {
    width: 100%;
    margin: 1rem auto 0;
    text-align: center;
    box-shadow: none;
}

.contBox .pagination button {
    color: #959595;
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px;
    outline: none;
    font: inherit;
    cursor: pointer;
}

.contBox .pagination button.active {
    color: #1A2F6E;
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px;
    outline: none;
    font: inherit;
    cursor: pointer;
}

.contBox.newsBox div {
    width: 100%;
    height: 100%;
    margin: 1% auto;
    box-shadow: none;
    cursor: auto;
}

.contBox.newsBox a {
    width: 60%;
    margin: 0 auto;
    padding: 1% 1% 1% 2%;
    border: 2px solid #1A2F6E;
    border-radius: 16px;
    text-align: left;
    color: #2861B8;
    background: #fff;
}

.contBox.newsBox a span {
    display: inline-block;
}

.contBox.newsBox a .newsDate {
    margin-right: 8px;
    color: #999;
}

.contBox.newsBox a .newsTitle {
    font-weight: 700;
    text-decoration: underline #2861B8;
}

.contBox.newsBox a:hover .newsTitle {
    color: #FB8700F2;
    text-decoration: underline #FB8700F2;
}

.contBox.qaBox {
    display: block;
}

.contBox.qaBox div {
    width: 100%;
    height: 100%;
    margin: 2% auto;
    box-shadow: none;
}

.contBox.qaBox .page-items button {
    width: 70%;
    margin: 0 auto;
    padding: 1% 1% 1% 2%;
    position: relative;
    z-index: 1;
    border: 2px solid #1A2F6E;
    border-radius: 16px;
    font-size: 1rem;
    text-decoration: none;
    text-align: left;
    color: #000;
    background: #fff;
}


.contBox.qaBox .qaAnswer {
    display: none;
}

.contBox.qaBox .qaAnswer.open {
    width: 70%;
    height: 100%;
    padding: 24px 16px 16px;
    margin: -16px auto 0;
    font-size: 16px;
    font-weight: normal;
    display: block;
    text-align: left;
    cursor: auto;
    color: #fff;
    background: #505C7D;
}

.contBox.antiWebBox {
    justify-content: center;
}

.contBox.antiWebBox a {
    width: 11.5%;
    margin-left: 1%;
}

.contBox.antiWebBox a:nth-child(4n+1) {
    margin-left: 1%;
}

.contBox.antiWebBox p {
    height: 60px;
    font-size: 12px;
}

.contBox.antiWebBox .antiImg {
    max-height: 100px;
    padding: 0 4px;
}

@media screen and (max-width: 1080px) {
    .header {
        padding: 1rem 2.5rem;
        position: relative;
    }

    .hamburger {
        width: 30px;
        height: 40px;
        position: absolute;
        top: 20px;
        right: 15px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: #2861B8;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }


    .hamburger span:nth-child(1) {
        top: 0px;
    }

    .hamburger span:nth-child(2),
    .hamburger span:nth-child(3) {
        top: 13px;
    }

    .hamburger span:nth-child(4) {
        top: 26px;
    }

    .hamburger.open span:nth-child(1) {
        top: 13px;
        width: 0%;
        left: 50%;
    }

    .hamburger.open span:nth-child(2) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .hamburger.open span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .hamburger.open span:nth-child(4) {
        top: 26px;
        width: 0%;
        left: 50%;
    }

    .nav,
    .nav .left,
    .nav .right {
        display: none;
    }

    .nav div a {
        font-size: 1.1rem;
    }

    .navMenu {
        display: none;
        background: #2861B8;
        margin: 0;
        padding: 0;
        text-align: center;
        font-size: 1.125rem;
        list-style: none;
    }

    .navMenu.open {
        display: block;
    }

    .navMenu li {
        padding: 1px 0;
        position: relative;
        cursor: pointer;
    }

    .navMenu li a {
        padding: 10px 0;
    }

    .navMenu li li:last-child {
        border: none;
    }

    .navMenu li a {
        width: 100%;
        color: #fff;
        display: block;
        text-decoration: none;
    }

    .navMenu li a:hover {
        background: #fff;
        color: #2861B8;
    }

    .navMenu .searchBox {
        width: 100%;
        margin-left: -0.5rem;
        padding: 0.5rem;
        border-bottom: 1px solid #fff;
        text-align: center;
        display: inline-block;
        position: relative;
    }

    .navMenu .searchBox div {
        width: 300px;
        margin: 0 auto;
        position: relative;
    }

    .navMenu .searchBox .search {
        width: 300px;
        padding: 8px 36px 8px 8px;
        border-radius: 30px;
        font-size: 1.1rem;
        border: none;
    }

    .navMenu .searchBox img {
        top: 9px;
        right: 20px;
        z-index: 2;
        position: absolute;
        cursor: pointer;
    }

    .navMenu .searchBox .resultList {
        width: 100%;
        max-height: 300px;
        top: 58px;
        z-index: 1;
        position: absolute;
        text-align: left;
        background: #fff;
        list-style: none;
        overflow-x: hidden;
        overflow-y: auto;
        display: none;
    }

    .navMenu .searchBox .resultList.open {
        display: block;
    }

    .navMenu .searchBox .resultList li {
        padding: 4px 6px;
        cursor: pointer;
    }

    .navMenu .searchBox .resultList li:hover {
        background: #FB8700F2;
    }

    .navMenu div a {
        font-size: 1.1rem;
    }

    .contBox div p,
    .contBox a p {
        font-size: 1rem;
    }

    .contBox.newsBox a {
        width: 80%;
    }

    .contBox.qaBox .page-items button {
        width: 80%;
    }

    .contBox.qaBox .qaAnswer.open {
        width: 80%;
    }

    .contBox.antiWebBox a {
        width: 15.5%;
    }

    footer {
        flex-direction: column;
    }

    footer div {
        margin: 0.5rem auto;
    }
}

@media screen and (max-width: 992px) {

    .contBox.newsBox,
    .contBox.qaBox {
        max-width: 80%;
    }

    .contBox.newsBox div {
        width: 90%;
    }


}

@media screen and (max-width: 768px) {

    .contBox div {
        width: 48%;
        margin: 1%;
    }

    .contBox div p {
        font-size: 1.25rem;
    }

    .contBox a {
        width: 48%;
        margin: 1%;
    }

    .contBox a p {
        font-size: 1.1rem;
    }

    .cont div {
        padding: 1.5rem 0;
    }

    .contBox.newsBox a .newsDate {
        display: block;
    }

    .contBox.newsBox div {
        width: 100%;
    }

    .contBox.antiWebBox a {
        width: 22.5%;
    }
}

@media screen and (max-width:576px) {

    /* .contBox div p {
        font-size: 1.1rem;
    } */
    .contBox.antiWebBox a {
        width: 30.5%;
    }

    footer {
        font-size: 20px;
    }

    footer .footer_info {
        display: none;
    }

    footer .phone {
        display: block;
    }

    footer .phone a {
        width: 50%;
    }

    footer .phone span:nth-child(1) {
        display: inline-block;
    }
}