[data-Lang="tc"] {
    font-family: "Noto Sans TC", sans-serif;
}

[data-Lang="sc"] {
    font-family: "Noto Sans SC", sans-serif;
}

a {
    text-decoration: none!important;
}

#NavbarDiv {
    top: 0;
    padding: 20px 160px 0;
    width: 100%;
    z-index: 9;
    box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
    transition: all .3s ease-in-out;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
}

#NavbarDiv.scrolling {
    transition: all .3s ease-in-out;
    background-color: rgba(255, 255, 255, .97);
}

#NavbarDiv.scrolling .t_navbar_sub {
    padding: 35px 0 35px 230px;
    transition: all .3s ease-in-out;
    background-color: rgba(231, 231, 231, .97);
}

.t_navbar_logo {
    width: 100%;
    min-width: 320px;
    max-width: 320px;
}

.t_navbar_nav {
    margin: 0 auto;
    width: 100%;
    max-width: 1515px;
    height: 100%;
}

.t_navbar_nav>ul {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.t_navbar_nav>ul>li {
    padding: 0 20px 20px;
    height: 100%;
    display: flex;
    justify-content: center;
}

.t_navbar_nav>ul>li.active>a {
    font-weight: bold;
}

.t_navbar_nav>ul>li>a.active{
    font-weight: bold;
    color: var(--hover-text-color)!important;
    text-decoration: none;
}

.t_navbar_nav ul li a {
    font-size: 14px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    cursor: pointer;
}

.t_navbar_right {
    gap: 20px;
    display: flex;
    flex-direction: row;
}

.t_navbar_wechat,
.t_navbar_lang {
    cursor: pointer;
    position: relative;
}

.t_navbar_wechat>img,
.t_navbar_lang>img {
    width: 100%;
    max-width: 28px;
}

.t_navbar_sub {
    left: 0;
    top: 120px;
    padding: 35px 0 35px 230px;
    width: 100%;
    gap: 120px;
    background-color: #e7e7e7;
    display: none;
    flex-direction: row;
    align-items: center;
    position: absolute;
}

.t_navbar_nav>ul>li.active::after {
    bottom: 0;
    border-bottom: 10px solid #e7e7e7;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    content: "";
    position: absolute;
    display: flex;
    justify-content: center;
}

.t_navbar_sub.active {
    display: flex;
}

.t_navbar_sub ul {
    column-gap: 40px;
    grid-template-columns: repeat(3, 1fr);
    display: grid;
}

.t_navbar_sub[data-sub-id="1"] ul {
    grid-template-columns: repeat(2, auto);
}

.t_navbar_sub[data-sub-id="2"] ul {
    grid-template-columns: repeat(1, auto);
}

.t_navbar_sub[data-sub-id="3"] ul {
    grid-template-columns: repeat(3, auto);
}

.t_navbar_sub[data-sub-id="4"] ul {
    grid-template-columns: repeat(1, auto);
}

.t_navbar_sub[data-sub-id="5"] ul {
    grid-template-columns: repeat(1, auto);
}

.t_navbar_sub[data-sub-id="6"] ul {
    grid-template-columns: repeat(1, auto);
}

.t_navbar_sub[data-sub-id="7"] ul {
    grid-template-columns: repeat(1, auto);
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(2) {
    grid-column-start: 1;
    grid-row-start: 2;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(3) {
    grid-column-start: 1;
    grid-row-start: 3;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(4) {
    grid-column-start: 2;
    grid-row-start: 1;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(5) {
    grid-column-start: 2;
    grid-row-start: 2;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(6) {
    grid-column-start: 2;
    grid-row-start: 3;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(7) {
    grid-column-start: 3;
    grid-row-start: 1;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(8) {
    grid-column-start: 3;
    grid-row-start: 2;
}

.t_navbar_sub[data-sub-id="3"] ul li:nth-child(9) {
    grid-row-start: 3;
}

.t_navbar_sub ul li {
    padding: 10px 0;
}

.t_navbar_sub[data-sub-id="1"] ul li {
    min-width: auto;
}

.t_navbar_nav ul li[data-li-id="1"] .t_navbar_sub ul li{
    padding-left: 40px;
    border-left: 1px solid lightgrey;
}

.t_navbar_nav ul li[data-li-id="1"] .t_navbar_sub ul li:nth-child(1) {
    border-left: 0;
    padding-left: 0;
}

.t_navbar_nav ul li[data-li-id="1"] .t_navbar_sub ul li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
}

.t_navbar_nav ul li[data-li-id="3"] .t_navbar_sub ul li{
    padding-left: 40px;
    border-left: 1px solid lightgrey;
}

.t_navbar_nav ul li[data-li-id="3"] .t_navbar_sub ul li:nth-child(-n+3) {
    border-left: 0;
    padding-left: 0;
}

.t_navbar_sub ul li a {
    text-transform: initial;
    display: flex;
}

.t_navbar_sub ul li a i {
    padding-right: 5px;
}

.t_navbar_label {
    font-size: 46px;
    line-height: 1;
    text-transform: uppercase;
}

.t_navbar_wechat_modal {
    top: 40px;
    right: 0;
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background-color: white;
    position: absolute;
    display: none;
}

.t_navbar_wechat_modal.active {
    display: flex;
}

.t_navbar_lang_modal {
    top: 40px;
    right: 0;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background-color: white;
    position: absolute;
    flex-direction: column;
    display: none;
}

.t_navbar_lang_modal.active {
    display: flex;
}

.t_navbar_lang_modal>div {
    padding: 12.5px 25px;
    font-size: 18px;
    transition: all .3s ease-in-out;
}

.t_navbar_lang_modal>div:hover {
    transition: all .3s ease-in-out;
    color: white;
    background-color: #f50303;
}

.t_mobile_menu_button {
    display: none;
    cursor: pointer;
    margin-right: 20px;
}

.t_mobile_menu_button i {
    font-size: 28px;
}

.t_header_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.t_header_master_top {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media screen and (min-width: 1200px) {
    .t_navbar_nav>ul>li:hover > a {
        font-weight: bold;
        color: var(--hover-text-color)!important;
        transition: all .3s ease-in-out;
    }
}

@media screen and (max-width: 1800px) {
    .t_navbar_sub {
        padding: 35px 0 35px 160px;
    }
}


@media screen and (max-width: 1600px) {
    #NavbarDiv {
        padding: 20px 40px 0;
    }

    .t_navbar_sub {
        padding: 35px 90px;
        gap: 60px;
    }

    #NavbarDiv.scrolling .t_navbar_sub {
        padding: 35px 90px;
    }

    .t_navbar_nav {
        padding: 0 35px;
    }

    .t_navbar_nav>ul>li {
        padding: 0 20px 20px;
    }
}

@media screen and (max-width: 1400px) {
    .t_navbar_nav ul li a {
        font-size: 13px;
    }

    .t_navbar_label {
        font-size: 24px;
    }
}

@media screen and (min-width: 1200px) {
    .t_navbar_nav>ul>li:hover .t_navbar_sub{
        display: flex;
    }

    .t_navbar_nav>ul>li:hover::after {
        bottom: 0;
        border-bottom: 10px solid #e7e7e7;
        border-right: 10px solid transparent;
        border-left: 10px solid transparent;
        content: "";
        position: absolute;
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 1199px) {

    .t_navbar_nav {
        padding: 15px;
    }
    
    .t_navbar_nav ul li[data-li-id="3"] .t_navbar_sub ul li:last-child{
        display: none;
    }
    
    .t_navbar_logo {
        max-width: 220px;
        min-width: auto;
    }

    .t_header_master_top {
        margin-bottom: 0;
        padding: 20px;
    }

    #NavbarDiv {
        padding: 0;
        flex-direction: row;
        justify-content: space-between;
    }

    header.active {
        background-color: white;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 9;
        position: absolute;
        display: flex;
        justify-content: flex-start;
    }

    header.active .t_header_master_top {
        box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
    }

    header.active #NavbarDiv {
        padding: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
    }

    header.active #NavbarDiv .t_header_row {
        width: 100%;
        justify-content: initial;
    }

    .t_navbar_wechat {
        display: none;
    }

    .t_mobile_menu_button {
        display: flex;
        z-index: 99;
    }

    .t_navbar_nav {
        display: none;
        overflow-y: auto;
    }

    .t_navbar_nav>ul {
        width: 100%;
        height: auto;
        flex-direction: column;
        justify-content: initial;
    }

    .t_navbar_nav>ul>li {
        padding: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        border-bottom: 1px solid var(--text-color);
    }

    .t_navbar_nav>ul>li>a {
        padding: 20px;
    }

    .t_navbar_sub {
        padding: 0;
        top: auto;
        position: relative;
        background-color: transparent;
    }

    .t_navbar_sub ul {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .t_navbar_sub ul li {
        margin: 0;
        padding: 20px;
    }

    #NavbarDiv.scrolling {
        background-color: white;
    }

    #NavbarDiv.scrolling .t_navbar_sub {
        padding: 0;
        background-color: transparent;
    }

    .t_navbar_label {
        display: none;
    }

    header.active .t_navbar_nav {
        display: flex;
        height: 100%;
    }

    .t_navbar_nav ul li a {
        font-size: 16px;
        align-items: flex-start;
    }

    .t_navbar_nav>ul>li.active::after {
        display: none;
    }

    .t_navbar_nav ul li .t_navbar_sub ul li {
        padding: 10px 20px 20px!important;
        border-left: 0!important;
    }
}