body.active{
    overflow: hidden!important;
}

#titiePic{
    height: 260px;
    margin-top: 64px;
}

#titiePic > div{
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
}

#nav_top {
    white-space:nowrap;
}

a{  
    outline: none;
    text-decoration: none;
    transition: 1s;
}

a:focus,
a:hover{
    background: #ffbf47;
    border-radius: 5px;
    transition: 0s;
}

a:focus #logoImg,
a:hover #logoImg{
    border: 3px solid #ffbf47;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;    
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: #fff;
    /* 初始位置在畫面可見 */
    transform: translateY(0);
    transition: transform 0.3s ease;
}

header.hide {
    /* 當需要隱藏時，往上移出畫面 */
    transform: translateY(-100%);
}

#logoImg{
    width: 200px;
    border: 3px solid #fff;
    border-radius: 5px;
}

#logo_top:focus img{
    border: 2px solid #000;
}

#nav_top a{
    color: #000;
    transition: color 1s ease;
}

#nav_top a:hover{
    /* color: #a1a1a1; */
    transition: color 0s ease;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#splash.fade-out {
    opacity: 0;
}

#main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}
#main-content.fade-in {
    opacity: 1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.font-family-suisseIntl{
    font-family: SuisseIntl, sans-serif;
}

.worklink{
    /* height: 168px; */
}

.worklink.worklink_1{
    border-left: 3px solid #83af7b;
    border-right: 3px solid #83af7b;
    background: url('../images/scmp380x84.png') center top no-repeat;
    background-size: cover;
}

.worklink.worklink_2{
    border-left: 3px solid #dc836c;
    border-right: 3px solid #dc836c;
    background: url('../images/muex380x84.png') center top no-repeat;
    background-size: cover;
}

.worklink.worklink_3{
    border-left: 3px solid #5ca6c1;
    border-right: 3px solid #5ca6c1;
    background: url('../images/bfin380x84.png') center top no-repeat;
    background-size: cover;
}

.worklink.worklink_4{
    border-left: 3px solid #eeba56;
    border-right: 3px solid #eeba56;
    background: url('../images/aapi380x84.png') center top no-repeat;
    background-size: cover;
}

.worklink.worklink_2_1{
    background: url('../images/scmpn806x82.png') right top no-repeat;
    background-size: cover;
}

.worklink.worklink_2_2{
    background: url('../images/muexn806x82.png') right top no-repeat;
    background-size: cover;
}

.worklink.worklink_3_1{
    background: url('../images/aapin806x82.png') right top no-repeat;
    background-size: cover;
}

.worklink.worklink_3_2{
    background: url('../images/progressInquiry806x82.png') right top no-repeat;
    background-size: cover;
}

.worklink{
    background-size: cover!important;
    height: 93px;
    opacity: 1;
    transition: opacity 1s ease;
}
a:focus .worklink,
.worklink:hover{
    opacity: 0.5;
    transition: opacity 0s ease;
}

.worklink .wks{
    
    /* text-shadow: 1px 1px 0px #000; */
    font-size: 2.25rem;
    text-shadow: 2px 2px 0px #000;
    /* background-color: #000; */
    display: inline-block;
    width: fit-content;
    /* padding: 4px 8px; */
}

/* ------------ menu按鈕變化↓ ------------ */
#menu_S,
#menu_S_B {
    position: absolute;
    width: 27px;
    height: 27px;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    z-index: 1001; /* 確保在最上層 */
    right: 10px;
    top: 13px;
    /* background-color: #ffffff; */
    border-radius: 50px;
    transition: 1s ease;
}

#menu_S_B{
    right: 20px;
    top: 22px;
}

#menu_S:not(.active):hover{
    background-color: #000000;
    transition: 0s ease;
}

#menu_S:not(.active):hover span{
    background: white;
    transition: all 0s ease;
}

#menu_S span,
#menu_S_B span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: black;
    margin: auto;
    transition: all 1s ease;
}

/* 開啟狀態：三點縮合，變成兩條叉叉 */
#menu_S.active span:nth-child(1),
#menu_S_B.active span:nth-child(1) {
    transform: translateX(-5px) translateY(6px) rotate(45deg);
    width: 30px;
    height: 4px;
    border-radius: 5px;
    background: white;
}
#menu_S.active span:nth-child(2),
#menu_S_B.active span:nth-child(2) {
    opacity: 0;
}
#menu_S.active span:nth-child(3),
#menu_S_B.active span:nth-child(3) {
    transform: translateX(-6px) translateY(-7px) rotate(-45deg);
    width: 30px;
    height: 4px;
    border-radius: 5px;
    background: white;
}

/* === Menu浮動層 === */
#menu_content_float {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 1);
    /* clip-path: circle(0 at calc(100%) 45px); */
    clip-path: circle(0 at 0 0);
    transition: clip-path 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: start;
    overflow: auto;
}

#menu_content_float.active {
    /* clip-path: circle(150% at calc(100%) 45px); */
    transition: clip-path 0.6s ease-in;
}

.menu-inner {
    color: white;
}

.menu-inner h2 {
    margin-bottom: 20px;
}

.menu-inner ul {
    list-style: none;
    padding: 0;
}

.menu-inner li {
    margin: 5px 0;
}

.menu-inner a {
    color: white;
    text-decoration: none;
    font-size: 1.125em;
    transition: 1s;
}

footer > div{
    max-width: 1920px;
}

footer a{
    color: white;
    transition:  1s;
}

.menu-inner a:hover,
footer a:hover {
    /* color: #99bacb; */
    transition:  0s;
}
/* ------------ menu按鈕變化↑ ------------ */
.news_box{
    cursor: pointer;
    height: 100%;
}

.news_img_box{
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.news_img_box > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#video_box{
    height: calc(100vh - 260px);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下分散 */
}

.news_img_box img{
    transition: .5s;
}

.news_img_box:hover img{
    transform: scale(1.1);
}

.titleHr{
    height: 15px;
    border-top: 1px solid #404040;
    width: calc(100% - 40px);
}

/* -------- 移至頂端 -------- */
#back-to-top {
    left: calc(100% - 110px);
    bottom: 45px;
    display: none;
    padding: 8px;
    font-size: 1.125rem;
    line-height: 0;
    cursor: pointer;
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: #000;
    border: 2px solid #fff;
    opacity: .6;
    z-index: 3;
    transition: 0.3s;
}

#back-to-top.BTTbottom{
    bottom: -5px;
}

#back-to-top:hover {
    opacity: 1;
}

#back-to-top>span {
    line-height: 30px;
    font-size: 1.438rem;
}

/* -------- 移至頂端 END -------- */

/* 僅保留無障礙所需的最小樣式 */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    z-index: 1050;
    background: #0d6efd;
    color: #fff;
    border-radius: .25rem;
}        

@media (max-width:1679.99px) {
}

@media (max-width:1375.99px) {
}

@media (max-width:1023.99px) {
    #nav_top{
        display: none;
    }

    #video_box{
        height: calc(100vh - 520px);
        min-height: 350px;
    }

    #titiePic{
        height: 130px;
    }

    .worklink{
        height: 100px;
    }

    .worklink.worklink_2_1{
        background: url('../images/scmpn380x84.png') right top no-repeat;
        background-size: cover;
    }

    .worklink.worklink_2_2{
        background: url('../images/muexn380x84.png') right top no-repeat;
        background-size: cover;
    }

    .worklink.worklink_3_1{
        background: url('../images/aapin380x84.png') right top no-repeat;
        background-size: cover;
    }

    .worklink.worklink_3_2{
        background: url('../images/progressInquiry380x84.png') right top no-repeat;
        background-size: cover;
    }

    /* .worklink.worklink_1{
        background: url('../images/scmp271x112.png') left top no-repeat;
    } */

    /* .worklink.worklink_2{
        background: url('../images/muex.png') left top no-repeat;
    } */

    /* .worklink.worklink_3{
        background: url('../images/bfin806x82.png') left top no-repeat;
    } */

    /* .worklink.worklink_4{
        background: url('../images/aapi.png') left top no-repeat;
    } */
}

@media (max-width:991.99px) {
    
    
}

@media (max-width:767.99px) {
    .worklink{
        /* height: 152px; */
    }

    #video_box{
        /* height: calc(100vh - 400px); */
        display: none;
    }

    .worklink .wks{
        font-size: 1.5rem;
    }

    
}

@media (max-width:575.99px) {
    #logoImg{
        width: 220px;
    }
}