/* 導覽欄細部CSS */

.topBar{
    padding:5px 0;
}

.navbarOuterBox{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbarOuterBox .systemTitle{
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 10px;
}

/*PC主導覽Box 那整個長條*/
.navbarOuterBox .mainNav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    

}

/*PC主導覽Box 那整個長條裡的item*/
.navbarOuterBox .mainNav li {
    position: relative;
    text-align: center;
}

/* PC過渡,只要mainNav底下的所有 li 標籤,在發生CSS變化時都會經過0.3秒才變換完畢  */
.navbarOuterBox .mainNav li {
    /* background-color: #fff; */
    color: #fff;
    display: block;
    text-decoration: none;
    line-height: 20px;  /*原40px*/
    padding: 0 5px;
    min-width: 100px;
    transition: 0.3s;
    text-decoration:none;
    cursor: pointer;
    margin:0 3%;
    
}


/* PC滑鼠移入次選單上層按鈕保持變色*/
.navbarOuterBox .mainNav li:hover>a>div {
    color: black;
}


/*---------------------------------------------------------------*/

/*PC這裡開始就是子導覽 , top為100%就是到上層定位元素的最底下 */
.navbarOuterBox .mainNav .subNav {
    border: #ccc 1px solid;
    background-color: #fff;
    position: absolute;
    z-index: 99;
    left: -1px;
    top: 100%;
    min-width: 140px;
    display: none;
    font-size: 13px;
}

.navbarOuterBox .mainNav .subNav li {
    border-bottom: #ccc 1px solid;
}

.navbarOuterBox .mainNav .subNav li a {
    text-align: left;
}

.navbarOuterBox .mainNav .subNav li:last-child {
    border-bottom: none;
}

/*PC利用對上層元素的偽元素hover , 滑鼠滑入展開次選單*/
.navbarOuterBox .mainNav li:hover>ul {
    display: block;
}

/*---------------以上是PC情況下導覽欄的CSS----------------------------------*/


/*Moblie端的漢堡選單Icon 和 真實選單的 Box*/
.navbarIconBox {
    display: none;
    /* height: 40px; */
}

/*漢堡選單Icon的ul*/
.navbarIconBox .navbarIcon {
    position: relative;

}

/*漢堡選單Icon的ul > li*/
.navbarIconBox .navbarIcon .navbarIconLine {
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin-top: 5px;
    position: relative;
    transition: 0.3s;
}

/*Moblie真實"父"選單*/
.navbarIconBox .mainNav {
    position: absolute;
    border-top: 8px solid #003278;
    /* background-image: url(../../background/bg01.webp); */
    background-color: #f1f1f1;
    left: 0;
    right: 0;
    bottom: 0;
    /* top: 60px; */
    top: 33px;
    z-index: 50;
    /* padding: 0 10%;*/
    font-size: 20px;
    font-weight: 600;
    /*opacity 和 visibility 盡量搭配使用,opacity透明度為0還是在那裏, 但visibility:hidden則會隱藏*/
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.navbarIconBox .mainNav li {
    padding: 0 10%;
    background-color: #f1f1f1;
}

.navbarIconBox .mainNav li a {
    line-height: 40px;
    color: black;

}

/*---------------------------以下有10個不同的SVG圖檔,除了url不同,其他格式都一樣, 初步整合失敗,有空在弄-------------------*/


.navbarIconBox .mainNav>li:nth-child(1)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/bugle.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(2)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/bulb.svg) no-repeat center; */
    
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(3)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/cloud.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(4)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/calendar.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(5)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/bachelor-cap.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(6)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/quill.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(7)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/shop.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(8)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/book.svg) no-repeat center; */  
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(9)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/at.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(10)>a:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/user.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

/*---------------------------以上有10個不同的SVG圖檔, 初步整合失敗,有空在弄-------------------*/

/*------------------------------------------------------------------------------------------*/

/*這邊新增一個class 帶有轉動效果,之後讓hasSubNav節點新增or刪除這個class即可達到效果*/
.hasSubNavTurn::after {
    transform: rotateZ(0deg) !important;
}

.navbarIconBox .mainNav>li:nth-child(2)>a:after {
    content: "";
    transition: 0.3s;
    transform: rotateZ(-90deg);
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/chevron-down.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(4)>a:after {
    content: "";
    transition: 0.3s;
    transform: rotateZ(-90deg);
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/chevron-down.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(5)>a:after {
    content: "";
    transition: 0.3s;
    transform: rotateZ(-90deg);
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/chevron-down.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(6)>a:after {
    content: "";
    transition: 0.3s;
    transform: rotateZ(-90deg);
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/chevron-down.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}

.navbarIconBox .mainNav>li:nth-child(7)>a:after {
    content: "";
    transition: 0.3s;
    transform: rotateZ(-90deg);
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 4%;
    position: relative;
    top: 2px;
    background-size: contain;
    /* background: url(../../icon/chevron-down.svg) no-repeat center; */
    /* 或者 'cover'，取决于您想要的尺寸调整方式 */
}



/*Moblie真實"子"選單,預設先隱藏*/
.navbarIconBox .mainNav .subNav {
    overflow: hidden;
    max-height: 0px;
    transition: 0.5s;
    font-size: 16px;
}


/*下次請從這邊JS用監聽的方式,點擊父級元素添加此class,再次點擊移除此class*/
.subNavShow {
    overflow: auto !important;
    max-height: none !important;
    margin-left: 20%;
    font-size: 16px;
}



/*---------------以上是Mobile情況下導覽欄的CSS--------------------------------------------------*/



/*logo和 User Icon的CSS*/
.logoBox {
    text-align: center;
}

.logoBox .logo {
    width: 10%;
    min-width: 100px;
}

/*登入後的顯示*/
.logoBox .welcomeUserSpan {
    position: absolute;
    left: 85%;
    top: 40%;
}

/*用戶登出按鈕*/
.userLogOutBtn {
    padding: 1px 4px;
    border: 1px solid #450C73;
    border-radius: 5px;
    background-color: #fff;
    color: #666;
    margin-right: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.userLogOutBtn:hover {
    border: 1px solid #fff;
    color: #fff;
    background-color: #003278;
    border-radius: 5px;
}

/*預設看不到User Icon*/
.topBarUserBox .topBarUser {
    display: none;
    width: 6%;
    min-width: 25px;
}


/*---------------------------------------------------------------------*/



/*RWD響應*/
@media screen and (max-width:769px) {

    /*上方導覽欄改為Flex*/
    .topBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* margin-top: 5px; */
    }

    /* 隱藏PC的導覽欄 */
    .navbarOuterBox {
        display: none;
    }

    /* 開啟Mobile的漢堡選單 */
    .navbarIconBox {
        display: block;

    }

    /* 開啟漢堡選單 第一條線向"下"旋轉*/
    .navbarIconBox .navbarIcon:hover>.navbarIconLine:nth-child(1) {
        transform: rotateZ(41deg);
        /*修改變形的起點*/
        transform-origin: left center;
        /*修飾叉叉,別那麼銳利*/
        border-radius: 1px;
    }

    /* 開啟漢堡選單 點擊後中間的線消失 */
    .navbarIconBox .navbarIcon:hover>.navbarIconLine:nth-child(2) {
        opacity: 0;

    }

    /* 開啟漢堡選單 第三條線向"上"旋轉*/
    .navbarIconBox .navbarIcon:hover .navbarIconLine:nth-child(3) {
        transform: rotateZ(-43deg);
        /*修改變形的起點*/
        transform-origin: left center;
        /*修飾叉叉,別那麼銳利*/
        border-radius: 1px;
    }

    /*Logo在Flex排序為2*/
    .logoBox {
        order: 2;
    }

    /*UserIcon盒子改為Flex盒子,排序為3*/
    .topBarUserBox {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 5%;
        order: 3;
    }

    /*進入移動端視口寬度,則顯示User Icon*/
    .topBarUserBox .topBarUser {
        display: block;
    }

    .logoBox .welcomeUserSpan {
        display: none;
    }
}

@media screen and (max-width:450px) {
    .welcomeUserSpan{
        padding: 4px 10%
    }
}