/*官網nav*/
.navbar-fixed-top{
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
/*上方藍條*/
.navbar-xl {
    display: none;
    padding-left: 33%;
}

@media (min-width: 1280px) {
    .navbar-xl {
        background-color: #f8f9fa;
        display: block;
    }
    .breadcrumb {
        margin-top: 90px;
    }
}

.border-div {
    background: rgb(186 243 240 / 1);;
    border-top: 28px solid rgb(186 243 240 / 1);
    border-left: 28px solid #f8f9fa;
    height: 0;
    padding-left: 8rem;
    padding-right: 8rem;
}

.ul-style {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-22px);
    max-width: 1310px;
    list-style: none;
    color: var(--ubot-darkgray) !important;
}
.ul-style a {
    color: var(--ubot-darkgray) !important;
}
.ul-style a:hover {
    color: var(--ubot-darkgray) !important;
    font-weight: bold;

}
.list-item {
    margin-right: 1.25rem;
}

.list-item:last-child {
    margin-right: 0;
}

/* 
--------------------------------------------------------
下方主要nav
-------------------------------------------------------- */
/*navbar-primary*/
.navbar-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    height: 64px;
}

/*大於1366*/
@media (min-width: 1366px){
    .navbar-primary {
        padding-right: 4rem;
        padding-left: 5rem;

    }
}
/*大於1366*/
@media (min-width: 1200px){
    .navbar-primary  {
        padding-right: 3rem;
        padding-left: 3rem;

    }
}

/*小於1280*/
@media (max-width: 1280px) {
    .navbar-primary {
        display: flex;
        justify-content: center;
    }
}
/*navbar-inner內部容器*/
.nav-inner{
    display: flex;
    align-items: center;
    gap:20px;
    max-width: 1360px;
    width:1360px
}

/*小於1280*/
@media (max-width: 1280px) {
    .nav-inner {
        justify-content: space-around;
        align-items: center;
    }
}

/*nav-left右邊ul和按鈕容器*/
.nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
/* 
--------------------------------------------------------
logo
-------------------------------------------------------- */
.logo-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.logo-header {
    width: 107px;
    height: 30px;
    position: relative;
    margin-bottom: 1.9rem;
}
/*小於1280*/
@media (max-width: 1280px) {
    .logo-header {
        margin-bottom: 0rem;
    }
}

/*大於1280*/
@media (min-width: 1280px) {
    .logo-header {
        width: 183px;
        height: 36px;
        margin-bottom: 1.9rem;
    }
}
.logo-header img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.navbar-brand-ebank {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size:14px;
    color:var(--ubot-logogray);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1.9rem;
    cursor: pointer;
}
.navbar-brand-ebank:before {
    content: " ";
    border: 1px solid #cecece;
    height: 90px;
    margin-right: 10px;
}
.navbar-brand-ebank:hover{
    cursor: default;
    text-decoration: none;
    color:var(--ubot-logogray);
}
/*小於1280*/
@media (max-width: 1280px) {
    .navbar-brand-ebank {
        margin-bottom: 0rem;
    }
}

/* 
--------------------------------------------------------
選單
-------------------------------------------------------- */
#main-menu {
    width: 700px;
    display: none;
    /* position: relative; */
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin: 0px;
    z-index: 30;
}

#main-menu ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 50px;
}

.outNav li {
    font-size: 18px;
    /* font-weight: bold; */
    list-style: none;
}

.outNav label {
    padding: 0.5rem;
    font-weight: 500;
}

.outNav label:hover {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgb(52 188 188 / 0.1);
    text-decoration: underline;
}

#main-menu a {
    font-size: 17px;
    display: block;
    width: 100%;
}

.navBigGroup,
.overNavBigGroup {
    position: fixed;
    max-height: 80vh;
    overflow: auto;
    width: fit-content;
    background-color: white;
    padding: 40px;
    gap: 50px 30px;
    transform: translate(-50%);
    border-radius: 10px;
    -webkit-box-shadow: 10px 10px 45px -26px rgba(39, 63, 179, 1);
    -moz-box-shadow: 10px 10px 45px -26px rgba(39, 63, 179, 1);
    box-shadow: 10px 10px 45px -26px rgba(39, 63, 179, 1);
}

.navBigGroup {
    display: flex;
}

/* 固定大屏幕上每行顯示六個 */
.overNavBigGroup {
    display: grid;
    grid-template-rows: repeat(2, 1fr); /* 保留 6 欄 */
    grid-auto-flow: column; /* 由上到下優先排列 */
    grid-gap: 30px;
}


.navGroup {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media only screen and (min-width: 1070px) {
    .navBigGroup {
        max-width: 80vw;
    }

    .navBigGroup[id="menuSC04"] {
        transform: translate(-80%, 0%);
    }
    .overNavBigGroup {
        max-width: 90vw;
    }
    .overNavBigGroup[id="menuSC02"] {
        transform: translate(-40%, 0%);
    }
}

.navGroup .first a,
.navGroup .remain a {
    /* font-weight: bold; */
    cursor: pointer;
}

.navGroup .remain a:hover {
    color: var(--ubot-greenlake);
    background: var(--ubot-paleblue);
    text-decoration: none;
}

/* 隱藏原始的 checkbox */
.toggle-input {
    display: none;
}

/* 設定 navBigGroup overNavBigGroup的初始狀態為隱藏 */
.navBigGroup,
.overNavBigGroup {
    display: none;
}

/* 當 toggle-input 被選取時顯示 navBigGroup */
.toggle-input:checked+.toggle-label+.navBigGroup {
    display: flex;
}

/* 當 toggle-input 被選取時顯示 overNavBigGroup */
.toggle-input:checked+.toggle-label+.overNavBigGroup {
    display: grid;
}

.toggle-label {
	width: 100%;
	justify-content: center;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    margin-bottom: 0px !important;
}

.toggle-input:checked+.toggle-label {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgb(52 188 188 / 0.1);
    text-decoration: underline;
}

.navGroup .remain a {
    color: var(--ubot-fontgray);
    padding: 6px 3px;
}

.navGroup>.first span {
    color: var(--ubot-bmoblue) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--ubot-bmoblue);
    cursor: default;
}

.navGroup>.remain {
    display: flex;
    flex-direction: column;
}

.navArrow {
    width: 13px;
    height: 8px;
    background-image: url('../image/navArrow.svg');
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.toggle-input:checked~.toggle-label .navArrow {
    transform: rotate(180deg);
}

.openbtn {
    display: none;
}
/* 
--------------------------------------------------------
小電腦
-------------------------------------------------------- */
@media only screen and (max-width: 1000px) {
    .overNavBigGroup{
        grid-template-columns: repeat(4, 1fr);
    }
}
/* 
--------------------------------------------------------
電腦板
-------------------------------------------------------- */
@media only screen and (min-width: 1070px) {
    #main-menu {
        display: flex;
    }
    .openShortcut, #shortcut2.dropdown-menu {
        display: none;
    }
}

/* 
--------------------------------------------------------
手機板
-------------------------------------------------------- */

@media only screen and (max-width: 1070px) {

    #main-menu {
        max-height: 500px !important;
        height: fit-content;
        gap: 5px;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: white;
        justify-content: start;
        flex-direction: column;
        overflow-y: scroll !important;
        -webkit-box-shadow: 0px 30px 30px 0px rgb(39 63 179 / 26%);
        -moz-box-shadow: 0px 30px 30px 0px rgb(39 63 179 / 26%);
        box-shadow: 0px 30px 30px 0px rgb(39 63 179 / 26%);
    }

    .openbtn {
        display: block;
        z-index: 100;
    }

    .navBigGroup {
        width: 100%;
        position: static;
        padding: 0px;
        gap: 0px;
        flex-direction: column;
    }

    .overNavBigGroup {
        width: 100%;
        position: static;
        padding: 0px;
        gap: 0px;
        grid-auto-flow: row
    }

    /* 當 toggle-input 被選取時顯示 overNavBigGroup */
    .toggle-input:checked+.toggle-label+.overNavBigGroup {
        display: flex;
        flex-direction:column
    }

    .navGroup {
        gap: 10px;
        padding: 10px 0px;
        width: 100%;
        align-items: center;
    }

    .navGroup .remain a {
        border-bottom: 1px solid var(--ubot-warmblue);
        text-align: center;
    }

    .navGroup .remain a:last-child {
        border-bottom: none;
    }


    .navBigGroup[id=menuSC01] .navGroup {
        padding: 0;
    }

    .navGroup .remain {
        display: none;
        position: static;
        transform: translate(0%);
        width: 100%;
        background: var(--ubot-paleblue);
        -webkit-box-shadow: 0px 0px 2px var(--ubot-greenlake);
        -moz-box-shadow: 0px 0px 2px var(--ubot-greenlake);
        box-shadow: inset 0px 0px 2px var(--ubot-greenlake);
    }

    .navActive {
        display: flex !important;
        align-items: center;
    }


    .menuShow {
        display: flex !important
    }

    .navBigGroup,
    .overNavBigGroup {
        background-color: var(--ubot-softgray);
        /* padding: 5px 0px; */
        width: 100%;
        transform: translate(0%);
        -webkit-box-shadow: 0px 0px 0px 0px rgba(39, 63, 179, 1);
        -moz-box-shadow: 0px 0px 0px 0px rgba(39, 63, 179, 1);
        box-shadow: 0px 0px 0px 0px rgba(39, 63, 179, 1);
    }

    .openShortcut {
        display: flex;
    }

    /*電腦版*/
    @media only screen and (max-width: 768px) {
        .nav-btn {
            display: none;
        }
    }
    @media only screen and (min-width: 768px) {
        .nav-btn {
            display: flex !important;
            margin-left: 20px;
            gap: 10px;
            flex-wrap: nowrap !important;
        }
        .openShortcut, #shortcut2.dropdown-menu {
            display: none;
        }
    }

    ul.no-style {
        display: initial;
        list-style-type: none;
        margin-block-start: initial;
        margin-block-end: initial;
        margin-inline-start: initial;
        margin-inline-end: initial;
        padding-inline-start: initial;
    }

    .outNav {
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

/* 
--------------------------------------------------------
手機板的選單漢堡
-------------------------------------------------------- */
.openbtn {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.openbtn .openbtn-area {
    transition: all .8s;
    -webkit-transition: all .8s; /* Safari 前缀 */
    width: 50px;
    height: 50px;
}

.openbtn span {
    position: absolute;
    background: var(--ubot-darkgray);
    display: inline-block;
    border-radius: 3px;
    left: 12px;
    height: 3px;
    transition: all .4s;
    width: 50%;
}
.openbtn span:nth-of-type(1) {
    top: 16px;
}

.openbtn span:nth-of-type(2) {
    top: 24px;
}

.openbtn span:nth-of-type(3) {
    top: 32px;
}

.openbtn.active span:nth-of-type(1) {
    width: 45%;
    top: 18px;
    left: 14px;
    transform: translateY(6px) rotate(-45deg);
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    width: 45%;
    top: 30px;
    left: 14px;
    transform: translateY(-6px) rotate(45deg);
}

.openbtn.active .openbtn-area {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg); /* Safari 前缀 */

}

.openShortcut {
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.5s ease;
    color: var(--ubot-darkgray);
}

.shortcutRotate {
    transform: rotate(180deg);
}

/*帳號設定捷徑*/
#shortcut1.dropdown-menu ,
#shortcut2.dropdown-menu {
    cursor: pointer;
    top: auto;
    left: auto;
}

#shortcut2.dropdown-menu {
    top: 100%;
    right: 5px;
}

#shortcut2Hr {
    margin: 10px 0;
}

@media (min-width: 768px) and (max-width: 1280px) {
    #shortcut1.dropdown-menu {
        top: 48px;
    }
}

/* 
--------------------------------------------------------
舊nav設定
-------------------------------------------------------- */
/* .navbar-header{
	float: left;
    white-space:nowrap; 
}
.navbar-brand img,
.navbar-brand-ebank img{
	width: 90%;
}
.navbar-brand,
.navbar-brand-ebank {
	padding-right: 0;
}
.navbar-default .navbar-brand {
  margin-right: 5px;
  margin-left: 20px;
  width: 181px;
  min-height: 70px;
  background: url("../image/logo_UBOT.png") no-repeat 0 50%;
  }

.navbar-default .navbar-toggle .icon-bar {
    background-color: #009999;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: #f8f8f8;
}
.navbar-nav > li > a {
    margin-left: 15px;
	margin-top: 10px;
	display: block;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color:  #009999;
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color:  #009999;
  background-color: #e7e7e7;
}
.navbar-toggle {
    margin-top: 13px;
    margin-bottom: 15px;
    border: 0px ;
    border-radius: 0px;
}
.navbar li a span:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00859a;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}
.container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse {
    margin-right: -15px;
    margin-left: -15px;
    background-color: #f8f8f8;
	padding-left: 15px;
	padding-right: 15px;
}
body .gridContainer.clearfix .navbar.navbar-default.navbar-fixed-top {
    height: 71px;
}
@media (max-width: 1200px){
	body .gridContainer.clearfix .navbar.navbar-default.navbar-fixed-top {
    height: 61px;
}
	.navbar-default .navbar-brand {
	  margin-right: 0px;
	  margin-left: 10px;
	  height: 60px;
	  background: url(../image/logoE.png) no-repeat 0 50%;
	}
}
@media (min-width: 768px){
	.navbar-header {
		float: left;
	}
}
@media screen and (max-width: 320px){
    .navbar-brand-ebank {letter-spacing: 0px;}
}
 */
