@charset "utf-8";
/*CSS Info ======================================================================
File Name: global.css
Editor: Sophia
Last Editor: Sharon
CreateDate:2010/11/26
LastDate: 2021/01/06
Version: 3.0
---------------------------
【 Table of Contents 】
	DIV XHTML 頁面
	Free Style
	使用 jQuery
	
	內容置中， 100% 寬度
    Responsive Design
    *--》 Smaller than 960: Smaller than the standard base grid
    *--》 Tablet Portrait: Between 768px and 959px
    *--》 All Mobile Sizes: Less than 767px
    *--》 Just Mobile Landscape: Between 480px and 767px
    *--》 Just Mobile Portrait: Less than 479px

    -------------------Temp
    *--》超大螢幕：目標 1440 螢幕，內容 1360 ，新的 base grid                           (1380 以上 )
	*--》普通寬螢幕：目標 1280 螢幕，內容 1200                                                     (1220 ～ 1379)
    *--》 Smaller than 960: Smaller than the standard base grid，目標 1024   (977 ～ 1219)
    *--》 Tablet Portrait 752: Between 768px and 975px                                         ( 768 ～ 976px)
    *--》 All Mobile Sizes: Less than 767px                                                                 (767 以下 )
    *--》 Just Mobile Landscape: Between 480px and 767px                                 ( 480 ～ 767px)
    *--》 Just Mobile Portrait: Less than 479px                                                           (479 以下 )
  -------------------


  
=================================================================================*/

/*===============================================================================
                               Browser-CSS Reset
=================================================================================*/
@import "Reset.css";

/*===============================================================================
                                     全域設定
=================================================================================*/

/* #Basic Styles
================================================== */
body {
    background-color: #fff;
    color: #545454;
}

/* #Typography
================================================== */
/*#region Typography */
h1 {
    font-size: 3em;
    line-height: 1.35em;
    margin-bottom: 14px;
}

h2 {
    font-size: 2.25em;
    line-height: 1.35em;
    margin-bottom: 10px;
    color: #606060;
    font-weight: bold;
}

h2.pagetittle {
    padding: 70px 0 10px 0;
    text-align: center;
}

h3 {
    font-size: 1.875em;
    line-height: 1.35em;
    margin-bottom: 8px;
}

h4 {
    font-size: 1.5em;
    line-height: 1.35em;
    margin-bottom: 4px;
}

h5 {
    font-size: 1.25em;
    line-height: 1.5em;
}

h6 {
    font-size: 1.125em;
    line-height: 1.3125em;
}

h1,
h3,
h4,
h5,
h6 {
    color: #000000;
}

.subheader {
    color: #3a3a3a;
}

a {
    text-decoration: none;
    color: #fc5d8a;
}

a:hover {
    color: #65c2f2;
}

p {
    font-family: " 微軟正黑體 ", Arial;
    line-height: 2em;
    text-align: left;
    letter-spacing: 0.0625em;
}

#Wrap {
    _overflow: visible;
    _height: 1px;
    zoom: 1;
}

#Wrap:after {
    content: ".";
    display: block;
    height: 1px;
    clear: both;
    visibility: hidden;
    font-size: 0;
    line-height: 0;
    margin: -1px 0 0 0;
}

.clearfix:before,
.clearfix:after {
    content: "\0020";
    display: block;
    height: 0;
    overflow: hidden;
}

.clearfix:after {
    /* 修正 Float 撐開 DIV*/
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* Hides from IE-mac \*/
* html .clearfix {
    height: 1%;
}

/* End hide from IE-mac */
/*#endregion */
/*===============================================================================
                         以下是全域版面設定
=================================================================================*/
body {
    min-width: 320px;
    overflow-x: auto;
}

/* 視覺化全版
    -----------------------------------*/
/*#region wrapper */
.wrapper {
    width: 1360px;
    margin: 0 auto;
    padding: 0;
}

.gotop {
    border-radius: 50%;
    background-color: #d7f1ff;
    position: fixed;
    right: 20px;
    bottom: 10px;
    display: inline-block;
    z-index: 80;
    width: 50px;
    height: 50px;
}

.gotop img {
    /*border-radius: 50%;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
    -webkit-box-shadow: 0px 2px 10px rgb(0 0 0 / 30%);
    box-shadow: 0px 2px 10px rgb(0 0 0 / 30%);*/
    max-width: 100%;
    width: 100%;
}

.Breadcrumb {
    margin: 1rem 0;
}

.Breadcrumb span:nth-child(3) a {
    color: #545454;
}

.Breadcrumb span:nth-child(3) a:hover {
    color: #545454;
}

@media only screen and (min-width: 1220px) and (max-width: 1379.99px) {
    .wrapper {
        width: 1200px;
    }
}

@media only screen and (min-width: 977px) and (max-width: 1219.99px) {
    .wrapper {
        width: 960px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 976.99px) {
    .wrapper {
        width: 752px;
    }
}

@media only screen and (max-width: 767.99px) {
    html,
    body {
        overflow-x: hidden;
    }

    .wrapper {
        width: 100%;
    }

    #Main.wrapper {
        width: calc(100% - 20px);
    }

    .Breadcrumb {
        max-width: calc(100% - 2rem);
    }

    h2 {
        max-width: calc(100% - 2rem);
    }
}
/*#endregion */

/*-----------------FastMenu-----------------*/

#FastScroll {
    position: fixed;
    right: 20px;
    bottom: 35px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scrollItem {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 圓形按鈕基礎樣式 - 質感玻璃擬態 */
.scroll-btn {
    width: 60px;
    height: 60px;
    background: rgba(215, 241, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid #65c2f2;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #026496;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.scroll-btn i {
    font-size: 1.5rem;
}

.scroll-btn .btn-text {
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
    letter-spacing: 0.5px;
    line-height: 1;
}

.scroll-btn:hover {
    background: #026496;
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 83, 125, 0.35);
}

/* GoTop 按鈕 */
.scroll-btn.gotop {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    border-color: transparent;
    color: #0e5e87;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

#FastScroll .gotop {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
}

.scroll-btn.gotop img {
    width: 24px;
    height: auto;
    transition: filter 0.3s;
}

.scroll-btn.gotop .btn-text {
    margin-top: 1px;
    font-size: 0.78rem;
    letter-spacing: 0.35px;
    color: #0e5e87;
}

/* 明確覆蓋 hover 背景，避免白底 + 白字 / 白圖同色 */
.scroll-btn.gotop:hover {
    background: #026496;
    border-color: #fff;
    color: #fff;
}

.scroll-btn.gotop:hover img {
    filter: brightness(0) invert(1);
}

.scroll-btn.gotop:hover .btn-text {
    color: #fff;
}

/* LINKS 展開開關 */
.toggle-trigger {
    background: #0e5e87;
    color: #fff;
    border-color: #fff;
}

.toggle-trigger i {
    transition: transform 0.4s ease;
}

#FastScroll.expanded .toggle-trigger i {
    transform: rotate(45deg);
}

/* 社交項目群組容器 */
.scroll-items-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 動態顯示邏輯 */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

#FastScroll.expanded .scroll-items-group {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    overflow: visible; /* 展開後允許 hover transform 溢出，不被裁切 */
    padding-top: 8px;  /* 為 translateY(-5px) 上移預留空間 */
    padding-bottom: 5px; /* 增加與切換鈕的間隔 */
}

/* 社交項目特定顏色 (Hover) */
.scroll-btn.fb:hover { background-color: #1877f2; border-color: #1877f2; }
.scroll-btn.yt:hover { background-color: #ff0000; border-color: #ff0000; }
.scroll-btn.contact:hover { background-color: #06b6d4; border-color: #06b6d4; }

@media only screen and (max-width: 47.9375em) {
    #FastScroll {
        right: 10px;
        bottom: 20px;
        gap: 8px;
    }
    .scroll-btn {
        width: 44px;
        height: 44px;
    }
    .scroll-btn i { font-size: 1.1rem; }
    .scroll-btn .btn-text { font-size: 8px; }
    .scroll-btn.gotop img { width: 20px; }
    .scroll-btn.gotop .btn-text {
        font-size: 7px;
        margin-top: 0;
    }
}


/*-----------------Header-----------------*/
#Header {
    background-color: #FFF;
}

#Banner {
    float: left;
    max-width: 760px;
    width: 100%;
    display: block;
    height: 70px;
    background-image: url(../../../images/EGIT-CIS.svg?t=20220225);
    background-repeat: no-repeat;
    background-position: 10px 10px;
    background-size: 375px 50px;
    cursor: pointer;
}

#Banner h1 {
    font-size: 1rem;
    text-indent: -99999px;
}

@media only screen and (min-width: 30em) and (max-width: 47.9375em) {
    #Banner {
        background-color: #FFF;
    }
}

@media only screen and (max-width: 47.9375em) {
    #Header {
        min-height: 53px;
    }
    
    #Banner {
        max-width: 100%;
        width: 100%;
        height: 53px;
        background-position: 10px 8px;
        background-size: auto 75%;
        background-color: #FFF;
    }
}

#Partner {
    display: block;
    height: 70px;
    margin-right: 10px;
    background-image: url(../../../images/MPN-Logo.png);
    background-repeat: no-repeat;
    background-position: right center;
}

@media only screen and (min-width: 30em) and (max-width: 47.9375em) {
    #Partner {
        display: none;
    }
}

@media only screen and (max-width: 47.9375em) {
    #Partner {
        display: none;
    }
}

/* 首頁專屬毛玻璃與實底 Header 樣式 */
.is-homepage:not(.fixed) #HeaderWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 52, 82, 0.28);
    background-image: linear-gradient(135deg, rgba(5, 85, 137, 0.32) 0%, rgba(20, 105, 150, 0.1) 50%, rgba(0, 79, 133, 0.29) 100%); /* 保留主題藍調，但提高透光感 */
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.is-homepage:not(.fixed) #Header {
    background-color: transparent;
}
.is-homepage:not(.fixed) #Banner,
.is-homepage:not(.fixed) #Partner {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    background-color: transparent !important;
}
.is-homepage:not(.fixed) #mainMenu {
    background-color: transparent;
    background-image: none;
    border-bottom: none;
}
/* 語言切換區塊透明時的白字與陰影對比 */
.is-homepage:not(.fixed) .Languages li a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.is-homepage:not(.fixed) .Languages > ul > li:after {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
/* 手機版漢堡選單圖示透明時為白色 */
.is-homepage:not(.fixed) .Menu label:after {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Menu
   --------------------*/
#mainMenu {
    /*clear: both;
     position: relative;*/
    background-color: #d7f1ff;
    /*f1f6f9*/
    background-image: url(../../../images/Nav_Background.png);
    background-repeat: repeat-x;
    background-position: left top;
    border-bottom: 1px solid #dcdcdb;
    transition: All .5s ease-out;
}

.fixed #mainMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    background: none;
    background-color: #d7f1ff;
    /*rgba(164,224,254,1 )*/
    border-bottom: none;
}

.fixed #mainMenu:before {
    display: none;
}

.Menu {
    float: left;
    padding-left: 100px;
}

.fixed .Menu {
    background-image: url(../../../images/EGIT-Logo.svg?t=20220225);
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 120px 50px;
}

.Menu input[type=checkbox] {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.Menu label {
    display: none;
    cursor: pointer;
    user-select: none;
}

.Menu ul {
    margin: 0.625em 0.625em 0.625em 1.625em;
    /*10/16*/
}

.Menu li {
    float: left;
    font-size: 1.25em;
    /*20/16*/
    padding-top: 0.375em;
    padding-bottom: 0.375em;
    border-bottom: 5px solid rgba(255, 255, 255, 0);
    position: relative; /* 子選單定位參考基準 */
}

.Home {
    display: none;
}

.Menu li a {
    display: block;
    color: #2c556b;
    font-weight: bold;
    line-height: 2em;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: rgba(86, 165, 206, 0.35);
    padding: 0 0.8em;
    /*6/16*/
    text-decoration: none;
}

/* 第一層選單游標提示 */
.Menu > ul > li:has(ul.subMenu) > a {
    cursor: default; /* 有子選單：展開而非跳轉 */
}

.Menu > ul > li:not(:has(ul.subMenu)) > a {
    cursor: pointer; /* 直接連結：跳轉頁面 */
}


.fixed .Menu li a {
    color: #00537d;
    font-weight: normal;
    border-right-color: rgba(119, 160, 181, 0.35);
}

.Menu li a:last-child {
    border-right: none;
}

.Menu li:hover {
    border-bottom: 5px solid #0e5e87
        /*rgba(2,100,150,0.6)*/
    ;
    -o-transition: border-bottom-color .25s linear;
    -webkit-transition: border-bottom-color .25s linear;
    -moz-transition: border-bottom-color .25s linear;
    -ms-transition: border-bottom-color .25s linear;
    transition: border-bottom-color .25s linear;
}

.fixed .Menu li:hover {
    border-bottom-color: #65c2f2;
}

/* 首頁專屬文字與狀態列顏色 */
.is-homepage:not(.fixed) .Menu > ul > li > a {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.is-homepage:not(.fixed) .Menu > ul > li > a:hover {
    color: #ffffff; /* 保持白色以維持最高對比度 */
    text-shadow: 0 1px 5px rgba(0,0,0,0.9); /* Hover 時加深陰影 */
}
/* 強制移除下拉選單所有選項的陰影，避免繼承或瀏覽器殘留 */
.is-homepage:not(.fixed) .Menu ul > li > ul.subMenu a {
    text-shadow: none !important;
}
.is-homepage:not(.fixed) .Menu > ul > li {
    border-bottom: 5px solid transparent;
}
.is-homepage:not(.fixed) .Menu > ul > li:hover {
    border-bottom-color: #65c2f2;
}


.is-homepage.fixed #mainMenu {
    background-color: #0e5e87; /* 品牌深藍 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.is-homepage.fixed .Menu li a {
    color: #ffffff;
    border-right-color: rgba(255, 255, 255, 0.2);
}
.is-homepage.fixed .Menu li a:hover {
    color: #65c2f2;
}
.is-homepage.fixed .Menu {
    background-image: none;
    position: relative;
}
.is-homepage.fixed .Menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 120px;
    height: 100%;
    background-image: url(../../../images/EGIT-Logo.svg?t=20220225);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 120px 50px;
    filter: brightness(0) invert(1);
    z-index: -1;
}
/* 修正實底狀態下 SubMenu 的文字對比（白底配深字） */
.is-homepage.fixed .Menu ul>li>ul.subMenu li a {
    color: #d0eefd;
    text-shadow: none;
}
.is-homepage.fixed .Menu ul>li>ul.subMenu > li:hover > a {
    color: #ffffff;
}

.Menu ul li:hover ul.subMenu,
.Menu ul li:focus ul.subMenu,
.Menu ul > li:hover > ul.subMenu,
.Menu ul > li:focus > ul.subMenu {
    visibility: visible;
    opacity: 1;
    padding-top: 1px;
    margin-top: 5px;
}

.Menu ul>li>ul.subMenu {
    margin: 0;
    min-width: 14rem;
    position: absolute;
    top: 100% !important;
    opacity: 0;
    z-index: 10000;
    visibility: hidden;
    -o-transition: opacity .25s ease-out;
    -webkit-transition: opacity .25s ease-out;
    -moz-transition: opacity .25s ease-out;
    -ms-transition: opacity .25s ease-out;
    transition: opacity .25s ease-out;
    background-color: #0e5e87
        /*rgba(2,100,150,0.6)*/
    ;
}

.fixed .Menu ul>li>ul.subMenu {
    top: 70px;
    background: linear-gradient(180deg, rgba(236, 248, 255, 0.98) 0%, rgba(214, 238, 251, 0.98) 100%);
    border: 1px solid rgba(14, 94, 135, 0.1);
    box-shadow: 0 16px 36px rgba(14, 94, 135, 0.16);
}

.fixed .Menu ul>li>ul.subMenu li a {
    color: #0b4f73;
    text-shadow: none;
}

.fixed .Menu ul>li>ul.subMenu li a:hover {
    color: #083a56;
}

.Menu ul>li>ul>li {
    clear: both;
    border: none;
    font-size: .85em;
    width: 100%;
    margin: 0 0.25em 0 0;
}

.Menu ul>li>ul>li:hover {
    background-color: #65c2f2;
    -o-transition: background .25s ease-out;
    -webkit-transition: background .25s ease-out;
    -moz-transition: background .25s ease-out;
    -o-transition: background .25s ease-out;
    transition: background .25s ease-out;
    border: none;
}

.Menu ul>li>ul>li a {
    display: block;
    color: #fff;
    line-height: 1.75em;
    padding: 0 1.1em;
    border: none;
}

.is-homepage.fixed .Menu ul>li>ul.subMenu li a {
    color: #0b4f73;
    text-shadow: none;
}

.is-homepage.fixed .Menu ul>li>ul.subMenu > li:hover > a {
    color: #083a56;
}

.fixed .Home {
    display: inline;
}

@media only screen and (min-width: 30em) and (max-width: 47.9375em) {
    .Menu {
        padding-left: 16px;
    }


    .Menu ul {
        margin: 0.5em 0.25em 0.5em 5.5em;
    }

    .Menu li {
        font-size: 1em;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }

    .Menu li a {
        line-height: 1.5em;
        padding: 0 0.75em;
    }


    .Menu ul>li>ul.subMenu {
        top: 125px;
    }

    .fixed .Menu {
        background-size: 100px 42px;
        background-position: 10px center;
    }

    .Corner {
        top: 2px;
    }

    .Languages {
        top: 2px;
    }

    .Menu label:after {
        transform: translateY(-56%);
    }

    .fixed .Menu ul>li>ul.subMenu {
        top: 50px;
    }
}

@media only screen and (max-width: 47.9375em) {
    #mainMenu {
        position: relative;
    }

    .Menu {
        position: relative;
        padding-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .fixed #mainMenu {
        height: auto !important;
        min-height: 50px; /* Base height for logo/hamburger */
        max-height: 100vh;
    }

    .fixed #mainMenu.Cover {
        height: 100vh !important;
        overflow: hidden !important;
    }

    .fixed .Menu {
        background-image: none;
    }

    #MobileLogo { display: none; }

    .Menu ul {
        margin: 0;
    }

    .Menu li {
        border-bottom: 1px solid #dcdcdb;
        padding: 0.5em;
        box-sizing: border-box;
        font-size: 1rem; /* 覆蓋桌面版 1.25em，統一手機版基礎字體 (16px) */
    }

    .Menu li a:last-child {
        border-bottom: none;
    }

    .fixed .Menu li:hover {
        border-bottom-color: #797979;
        border-bottom-color: rgba(98, 98, 98, 0.95);
    }

    .Home {
        display: inline;
    }

    .Menu li a {
        border-right: none;
        padding: 0;
        line-height: 1.25em;
        font-size: 1rem; /* 統一字體大小 (16px) */
    }


    .Menu li:hover {
        border-bottom: 1px solid #dcdcdb;
    }

    .Menu ul {
        display: none;
        height: 100%;
    }

    .Menu label {
        position: relative;
        display: block;
        width: 100%;
        height: 2.5em;
        min-height: 2.5em;
        padding: 0 .45em;
        font-size: 1.25em;
        margin: 0;
        right: 20px;
        top: 0;
        cursor: pointer;
    }

    .fixed .Menu label {
        height: 2.5em;
        min-height: 2.5em;
        border-bottom: none;
    }

    .Menu label:after {
        position: absolute;
        right: .25em;
        top: 50%;
        transform: translateY(-50%);
        content: "\2261";
        font-size: 1.8em;
        font-weight: 700;
        line-height: 1;
        color: #505050;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
        transition: color .2s ease-out, text-shadow .2s ease-out;
    }

    .Menu input[type=checkbox]:checked~label:after {
        color: #666666;
    }

    .Menu label:hover:after,
    .Menu label:focus-visible:after {
        color: #2c556b;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    }

    .fixed .Menu label:after {
        color: #2c556b;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .fixed .Menu input[type=checkbox]:checked~label:after {
        color: #0e5e87;
    }

    .fixed .Menu label:hover:after,
    .fixed .Menu label:focus-visible:after {
        color: #00537d;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
    }


    .Menu input[type=checkbox]:checked~ul {
        clear: both;
        display: block;
    }

    .Menu input[type=checkbox]:checked~ul>li {
        width: 100%;
        text-align: left;
    }

    .Menu ul>li a:hover {
        font-weight: bold;
    }

    .Menu ul>li>ul.subMenu {
        position: static !important; /* 強制靜態定位，跟隨文件流 */
        display: block; /* 改為始終 block，用 max-height 控制顯示 */
        visibility: visible;
        max-height: 0; /* 用 max-height 替代 display:none */
        overflow: hidden; /* 隱藏超出的內容 */
        opacity: 0;
        margin-top: 0;
        -o-transition: max-height .5s ease-out, opacity .5s ease-out, margin-top .5s ease-out;
        -webkit-transition: max-height .5s ease-out, opacity .5s ease-out, margin-top .5s ease-out;
        -moz-transition: max-height .5s ease-out, opacity .5s ease-out, margin-top .5s ease-out;
        transition: max-height .5s ease-out, opacity .5s ease-out, margin-top .5s ease-out;
        background: none;
        top: auto !important; /* 覆蓋可能的絕對定位 */
        left: auto !important;
    }

    /* 修正：確保 subMenu 的 li 在所有狀態下都有正確的背景和文字顏色 */
    .Menu ul>li>ul.subMenu li {
        background-color: #878787;
        border-bottom: 1px solid #9b9b9b;
        -o-transition: background-color .75s ease-out;
        -webkit-transition: background-color .75s ease-out;
        -moz-transition: background-color .75s ease-out;
        transition: background-color .75s ease-out;
    }

    .Menu ul>li>ul.subMenu li a {
        color: #fff;
        font-size: 0.875rem; /* 統一第二層字體大小 (14px) */
    }

    .Menu ul>li>ul.subMenu li:last-child {
        border-bottom: none;
    }

    .Menu ul>li>ul.subMenu li:hover {
        background-color: #666666;
    }

    .Menu ul>li>ul.subMenu li a:hover {
        font-weight: normal;
    }

    .Menu ul>li.active>ul.subMenu {
        clear: both;
        display: block;
        height: auto; /* fallback for older browsers */
        height: -webkit-fit-content; /* Safari */
        height: -moz-fit-content; /* Firefox */
        height: fit-content; /* 标准语法 */
        min-height: fit-content;
        opacity: 1;
        background: none;
    }
    
    /* 第三層及更深層的 ul：確保靜態定位，自然顯示 */
    .Menu ul.subMenu ul {
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin-top: 0;
    }
    
    .Menu ul.subMenu ul li {
        padding-left: 1.5em; /* 縮排顯示層級 */
    }
}


/* 語言列與環輿園地
  ---------------------------  */
.Corner {
    float: right;
    width: 32px;
    margin: 0;
}

.Corner img {
    height: 36px;
    margin: 16px 0 16px 0px;
    vertical-align: middle;
}

.Languages {
    float: right;
    width: 60px;
    margin: 0 10px;
}

.Languages>ul>li {
    line-height: 2em;
    padding: 1em 0;
}

.Languages li a {
    color: #3a3a3a;
}

.Languages ul li a:hover,
.Languages ul li:hover a {
    color: #77cd3b;
}

.Languages>ul>li:after {
    content: "\25BC \0020";
    font-size: 0.75em;
    color: #727272;
    margin-left: 2px;
}

.fixed .Corner,
.fixed .Languages {
    display: none;
}

.Languages ul>li>ul {
    visibility: hidden;
    display: none;
    opacity: 0;
    margin: 0;
    position: absolute;
    top: 120px; /* 修正對齊 */
    -o-transition: opacity .25s ease-out;
    -webkit-transition: opacity .25s ease-out;
    -moz-transition: opacity .25s ease-out;
    -ms-transition: opacity .25s ease-out;
    transition: opacity .25s ease-out;
    background-color: #77cd3b;
    z-index:10001 ;
}

.Languages ul li:hover ul,
.Languages ul.menu li:focus ul {
    visibility: visible;
    opacity: 1;
    display: block;
}

.Languages ul li ul li {
    line-height: 1.5em;
    padding: .25em;
}

.Languages ul li a:hover ul li a,
.Languages ul li:hover ul li a {
    color: #fff;
}


.Languages ul>li>ul>li:hover {
    background-color: #4d8328;
}

@media only screen and (min-width: 48em) and (max-width: 61em) {
    #mainMenu > .wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 4.5em;
    }

    .Menu {
        float: none;
        padding-left: 16px;
        width: calc(100% - 92px);
        box-sizing: border-box;
    }

    .fixed .Menu {
        padding-left: 110px;
        background-size: 100px 42px;
        background-position: 8px center;
    }

    .fixed .Home {
        display: none;
    }

    .Menu > ul {
        margin: 0 0 0 1rem;
        display: flex;
        align-items: center;
    }

    .Menu > ul > li {
        float: none;
        font-size: 1em;
        padding-top: 0.375em;
        padding-bottom: 0.375em;
    }

    .Menu > ul > li > a {
        line-height: 1.5em;
        padding: 0 0.6em;
    }

    .Languages {
        float: none;
        position: relative;
        z-index: 10030;
        margin: 0 6px;
    }

    .Languages>ul>li {
        padding: 0.75em 0;
    }

    .Languages ul>li>ul {
        top: 100%;
        right: 0;
        left: auto;
        z-index: 10031;
    }
}

@media only screen and (max-width: 47.9375em) {
    .Corner {
        display: none !important;
    }

    .Languages {
        display: block !important;
        clear: both;
        position: absolute;
        top: 7px;
        right: 60px;
        height: auto;
        width: auto;
        z-index: 10001;
        float: none;
        margin: 0;
    }

    .Languages>ul>li {
        min-height: 2.5em;
        display: flex;
        align-items: center;
        line-height: 1.5em;
        padding: 0;
    }

    .Languages ul>li>ul {
        top: 35px;
        right: 0;
        left: auto;
    }

    .fixed .Languages {
        display: block !important;
        top: 30px;
    }
}









/*-----------------Content-----------------*/
#Content {
    background-color: #fff;
    /*width: 1024px;
	margin:0 auto;*/
    padding-top: 0;
    transition: All .5s ease-out;
}

.fixed #Content {
    padding-top: 80px;
}

@media only screen and (max-width: 47.9375em) {
    .fixed #Content {
        padding-top: 53px; /* Match Mobile Header Height */
    }
}

#Main {
    font-family: " 微軟正黑體 ", Arial;
    padding: 0 10px;
}

/*-----------------Footer ( Modernized Grid Layout ) -----------------*/
#Footer {
    font-family: " 微軟正黑體 ", Arial, sans-serif;
    background-color: #026496;
    color: #FFF;
    padding: 5rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#Footer a {
    color: #FFF;
    transition: all 0.3s ease;
}

#Footer .wrapper {
    display: grid;
    grid-template-columns: 1fr 0.8fr 2fr auto;
    gap: 3rem 2.5rem;
    align-items: start;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

#Footer #Logos {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    cursor: pointer;
    min-width: 280px;
    text-align: left;
}

#Footer .CompanyFullName {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #c8e6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#Footer #Logos::before {
    content: '';
    display: block;
    width: 220px;
    height: 60px;
    background-image: url(../../../images/footer-Logo.svg?t=20220225);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
}

#Footer #CopyRight {
    font-size: 0.875rem;
    color: rgba(200, 230, 255, 0.6);
    letter-spacing: 0.05em;
    margin: 0.5rem 0 0;
}

#Footer #Footer-Nav {
    padding-top: 0.5rem;
}

#Footer #Footer-Nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#Footer #Footer-Nav li {
    font-size: 1.05rem;
}

#Footer #Footer-Nav a {
    opacity: 0.85;
}

#Footer #Footer-Nav a:hover {
    color: #65c2f2;
    opacity: 1;
    padding-left: 0.5rem;
}

#Footer address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding-top: 0.5rem;
}

#Footer address p {
    margin: 0;
    line-height: 1.65;
    font-size: 0.97rem;
    color: #e0f2ff;
}

#Footer address span {
    display: inline-block;
    color: #fff;
}

#Footer address span::before {
    content: "|";
    margin: 0 0.75rem;
    opacity: 0.3;
}

#Footer address span:first-child::before {
    display: none;
}

#Footer .smaller {
    font-size: 0.8rem;
    color: rgba(200, 230, 255, 0.52);
    margin-top: 0.9rem;
    line-height: 1.55;
}

#Footer .linkgroup {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0;
    align-items: stretch;
    min-width: 200px;
}

.Footlink {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.Footlink:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    border-color: #65c2f2;
}

.Footlink img {
    height: 24px;
    width: auto;
}

.Footlink p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- RWD Footer ---
   各斷點中文與英文版（.en）混排，避免分組造成覆蓋問題
   ----------------------------------------------------------------
   ≥ 85.0625rem  ( 1362px~ )   : 4 欄
   64.0625 ~ 85rem ( 1025~1360px ) : 3 欄 grid-areas
   56.0625 ~ 64rem ( 898~1024px  ) : 2 欄 grid-areas
   48.0625em ~ 56rem ( 769~896px  ) : 2 欄 grid-areas
   ≤ 48em      ( ≤  768px    ) : Mobile 單欄
   ---------------------------------------------------------------- */

/* ≥ 85.0625rem：英文版欄寬比例 ( 必須在 min-width 內，避免低解析度被繼承覆蓋 ) */
@media only screen and (min-width: 85.0625rem) {
    .en #Footer .wrapper {
        grid-template-columns: 1.1fr 0.55fr 1.85fr auto;
    }
}

/* 64.0625rem ~ 85rem ( 1025 ~ 1360px )： 3 欄 grid-areas */
@media only screen and (max-width: 85rem) and (min-width: 64.0625rem) {
    #Footer .wrapper {
        grid-template-columns: minmax(15rem, 1fr) minmax(17rem, 1.35fr) minmax(11.5rem, 12.5rem);
        grid-template-areas:
            "brand nav    social"
            "brand contact contact";
        gap: 2.25rem 2rem;
        align-items: start;
    }
    #Footer #Logos { grid-area: brand; padding-right: 0.75rem; }
    #Footer #Footer-Nav { grid-area: nav; }
    #Footer #Footer-Nav ul { gap: 0.85rem; }
    #Footer #Footer-Nav li { font-size: 1rem; }
    #Footer address { grid-area: contact; gap: 1rem; max-width: none; }
    #Footer address p { font-size: 0.95rem; line-height: 1.65; }
    #Footer .smaller { margin-top: 1rem; }
    #Footer .linkgroup {
        grid-area: social;
        width: 100%;
        max-width: 12.5rem;
        justify-self: end;
        align-self: start;
        align-items: center;
        padding-top: 0;
    }
    #Footer .Footlink { width: 100%; }
    #Footer .Footlink a { display: flex; align-items: center; box-sizing: border-box; gap: 0.75rem; width: 100%; }

    /* EN： Nav 4 項改 2 欄； address 字略小；社群欄稍寬以容納英文標籤 */
    .en #Footer .wrapper {
        grid-template-columns: minmax(16rem, 1.1fr) minmax(9rem, 0.75fr) minmax(11.5rem, 13.5rem);
        gap: 2rem 2.5rem;
    }
    .en #Footer #Footer-Nav ul {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        gap: 0.75rem 2rem;
    }
    .en #Footer #Footer-Nav li { font-size: 1.05rem; }
    .en #Footer address p { font-size: 0.9rem; line-height: 1.7; }
    .en #Footer .linkgroup { max-width: 13.5rem; }
    .en .Footlink p { font-size: 0.85rem; }
}

/* ≤ 64rem ( ≤ 1024px )：共用重置為單欄 */
@media only screen and (max-width: 64rem) {
    #Footer { padding: 4rem 0; }
    #Footer .wrapper { grid-template-columns: 1fr; gap: 3rem; }
    #Footer #Logos { align-items: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 2rem; }
    #Footer #Footer-Nav { padding-top: 0; }
    #Footer #Footer-Nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.75rem; align-items: start; }
    #Footer #Footer-Nav li { font-size: 1rem; }
    #Footer #Footer-Nav a { display: block; }
    #Footer .linkgroup { flex-direction: row; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }
}

/* 56.0625rem ~ 64rem ( 898 ~ 1024px )： 2 欄 grid-areas */
@media only screen and (max-width: 64rem) and (min-width: 56.0625rem) {
    #Footer .wrapper {
        grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 13.5rem);
        grid-template-areas:
            "brand social"
            "nav nav"
            "contact contact";
        gap: 2rem 1.75rem;
        align-items: start;
    }
    #Footer #Logos { grid-area: brand; min-width: 0; border-bottom: none; padding-bottom: 0; padding-right: 1rem; }
    #Footer #Footer-Nav { grid-area: nav; padding-top: 0.25rem; }
    #Footer #Footer-Nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem 1.5rem; }
    #Footer #Footer-Nav li { font-size: 0.98rem; }
    #Footer address { grid-area: contact; gap: 0.9rem; }
    #Footer address p { font-size: 0.93rem; line-height: 1.6; }
    #Footer .smaller { font-size: 0.77rem; margin-top: 0.75rem; }
    #Footer .linkgroup { grid-area: social; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-self: end; width: 100%; max-width: 13.5rem; border-top: none; padding-top: 0; }
    #Footer .Footlink { width: 100%; }

    /* EN： Nav 2 欄；社群欄稍寬； address span 各佔一行 */
    .en #Footer .wrapper { grid-template-columns: minmax(0, 1.15fr) minmax(13rem, 14.5rem); }
    .en #Footer #Footer-Nav ul { grid-template-columns: repeat(2, max-content); gap: 0.75rem 2rem; }
    .en #Footer address span { display: block; margin-top: 0.3rem; }
    .en #Footer address span::before { display: none; }
    .en #Footer .linkgroup { max-width: 14.5rem; }
    .en .Footlink p { font-size: 0.85rem; }
}

/* 48.0625em ~ 56rem ( 769 ~ 896px )： 2 欄 grid-areas */
@media only screen and (max-width: 56rem) and (min-width: 48.0625em) {
    #Footer { padding: 3.5rem 0 4.5rem; }
    #Footer .wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(10.75rem, 12rem);
        grid-template-areas:
            "brand social"
            "nav nav"
            "contact contact";
        gap: 1.75rem 1.25rem;
        align-items: start;
    }
    #Footer #Logos { grid-area: brand; min-width: 0; border-bottom: none; padding-bottom: 0; gap: 1rem; }
    #Footer .CompanyFullName { font-size: 1.05rem; }
    #Footer #Footer-Nav { grid-area: nav; padding-top: 0.25rem; }
    #Footer #Footer-Nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.1rem; }
    #Footer #Footer-Nav li { font-size: 0.94rem; }
    #Footer address { grid-area: contact; gap: 0.7rem; padding-top: 0; }
    #Footer address p { font-size: 0.86rem; line-height: 1.5; }
    #Footer .smaller { font-size: 0.71rem; margin-top: 0.5rem; line-height: 1.45; }
    #Footer .linkgroup { grid-area: social; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-self: end; width: 100%; max-width: 12rem; border-top: none; padding-top: 0; }
    #Footer .Footlink { width: 100%; }

    /* EN：社群欄加寬容納長標籤； address span 各佔一行 */
    .en #Footer .wrapper { grid-template-columns: minmax(0, 1fr) minmax(12.5rem, 14rem); }
    .en #Footer address span { display: block; margin-top: 0.3rem; }
    .en #Footer address span::before { display: none; }
    .en #Footer .linkgroup { max-width: 14rem; }
    .en .Footlink p { font-size: 0.85rem; }
}

/* ≤ 48em ( ≤ 768px )： Mobile 單欄 */
@media only screen and (max-width: 48em) {
    #Footer { padding: 4rem 0 6rem; }
    #Footer .wrapper { text-align: center; }
    #Footer #Logos { align-items: center; text-align: center; }
    #Footer #Logos::before { background-position: center top; }
    #Footer #Footer-Nav { display: none; }
    #Footer #Footer-Nav ul { grid-template-columns: 1fr; gap: 0.9rem; }
    #Footer address { text-align: center; gap: 0.8rem; }
    #Footer address p { font-size: 0.9rem; line-height: 1.55; }
    #Footer address span { display: block; margin-top: 0.35rem; }
    #Footer address span::before { display: none; }
    #Footer .smaller { font-size: 0.74rem; margin-top: 0.6rem; line-height: 1.5; }
    #Footer .linkgroup { justify-content: center; border-top: none; padding-top: 0; }
    .Footlink:hover { transform: translateY(-5px); }
}

/*===============================================================================
                         General Setting
=================================================================================*/
.Clear {
    clear: both;
    /* 以下新增 */
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

.Dispear {
    display: none;
}

.Show {
    display: block;
}

/*----------------- 文字顏色標註設定 -----------------*/
.Note {
    /* 備註 灰字 */
    font-size: small;
    color: #666666;
}

.Alert {
    /* 紅 */
    color: #CC0000;
}

.Alert2 {
    /* 桃紅 */
    color: #FF3366;
}

.Near {
    /* 橘 */
    color: #FF9933;
}

.sr-only {
    /* 只讓螢幕閱讀器看到 */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*----------------- 文字格式設定 -----------------*/
.smallWords {
    font-size: small;
}

.AddHeight {
    line-height: 1.5em;
}

/*----------------- 文字靠齊設定 -----------------*/
.txtLeft {
    text-align: left;
}

.txtCeter {
    text-align: center;
}

.txtRight {
    text-align: right;
}

/*----------------- 圖片靠齊設定 -----------------*/
.imgMiddle {
    vertical-align: middle;
}

/*----------------- 指標 -----------------*/
.clickable {
    cursor: pointer;
}

.unclickable {
    cursor: default;
}

/*=========================================================================
     Responsive Web Design Grid System
  =========================================================================  */
/*#region Grid System */
.columns {
    float: left;
    display: inline;
    margin-left: 20px;
    margin-right: 20px;
}

/* New Base Grid       1360
     -----------------------*/
.one.columns {
    width: 45px;
}

.two.columns {
    width: 130px;
}

.three.columns {
    width: 215px;
}

.four.columns {
    width: 300px;
}

.five.columns {
    width: 385px;
}

.six.columns {
    width: 470px;
}

.seven.columns {
    width: 555px;
}

.eight.columns {
    width: 640px;
}

.nine.columns {
    width: 725px;
}

.ten.columns {
    width: 810px;
}

.eleven.columns {
    width: 895px;
}

.twelve.columns {
    width: 980px;
}

.thirteen.columns {
    width: 1065px;
}

.fourteen.columns {
    width: 1150px;
}

.fifteen.columns {
    width: 1235px;
}

.sixteen.columns {
    width: 1320px;
}

.one-third.columns {
    width: 413px;
}

.two-thirds.columns {
    width: 865px;
}

/* Grid       1200
     -----------------------*/
@media only screen and (min-width: 76.25em) and (max-width: 86.1875em) {
    .one.columns {
        width: 35px;
    }

    .two.columns {
        width: 110px;
    }

    .three.columns {
        width: 185px;
    }

    .four.columns {
        width: 260px;
    }

    .five.columns {
        width: 335px;
    }

    .six.columns {
        width: 410px;
    }

    .seven.columns {
        width: 485px;
    }

    .eight.columns {
        width: 560px;
    }

    .nine.columns {
        width: 635px;
    }

    .ten.columns {
        width: 710px;
    }

    .eleven.columns {
        width: 785px;
    }

    .twelve.columns {
        width: 860px;
    }

    .thirteen.columns {
        width: 935px;
    }

    .fourteen.columns {
        width: 1010px;
    }

    .fifteen.columns {
        width: 1085px;
    }

    .sixteen.columns {
        width: 1160px;
    }

    .one-third.columns {
        width: 360px;
    }

    .two-thirds.columns {
        width: 760px;
    }

}


/* Base Grid       960
     -----------------------*/
@media only screen and (min-width: 61.0625em) and (max-width: 76.1875em) {
    .columns {
        margin-left: 10px;
        margin-right: 10px;
    }

    .one.columns {
        width: 40px;
    }

    .two.columns {
        width: 100px;
    }

    .three.columns {
        width: 160px;
    }

    .four.columns {
        width: 220px;
    }

    .five.columns {
        width: 280px;
    }

    .six.columns {
        width: 340px;
    }

    .seven.columns {
        width: 400px;
    }

    .eight.columns {
        width: 460px;
    }

    .nine.columns {
        width: 520px;
    }

    .ten.columns {
        width: 580px;
    }

    .eleven.columns {
        width: 640px;
    }

    .twelve.columns {
        width: 700px;
    }

    .thirteen.columns {
        width: 760px;
    }

    .fourteen.columns {
        width: 820px;
    }

    .fifteen.columns {
        width: 880px;
    }

    .sixteen.columns {
        width: 940px;
    }

    .one-third.columns {
        width: 300px;
    }

    .two-thirds.columns {
        width: 620px;
    }
}

/* #Tablet (Portrait)  752
================================================== */
@media only screen and (min-width: 48em) and (max-width:61em) {
    .columns {
        margin-left: 10px;
        margin-right: 10px;
    }

    .one.columns {
        width: 27px;
    }

    .two.columns {
        width: 74px;
    }

    .three.columns {
        width: 121px;
    }

    .four.columns {
        width: 168px;
    }

    .five.columns {
        width: 215px;
    }

    .six.columns {
        width: 262px;
    }

    .seven.columns {
        width: 309px;
    }

    .eight.columns {
        width: 356px;
    }

    .nine.columns {
        width: 403px;
    }

    .ten.columns {
        width: 450px;
    }

    .eleven.columns {
        width: 497px;
    }

    .twelve.columns {
        width: 544px;
    }

    .thirteen.columns {
        width: 591px;
    }

    .fourteen.columns {
        width: 638px;
    }

    .fifteen.columns {
        width: 685px;
    }

    .sixteen.columns {
        width: 732px;
    }

    .one-third.columns {
        width: 230px;
    }

    .two-thirds.columns {
        width: 482px;
    }
}

/*  # All Mobile    767↓
================================================== */
@media only screen and (max-width: 47.9375em) {
    .columns {
        margin-left: 10px;
        margin-right: 10px;
    }

    .one.columns,
    .two.columns,
    .three.columns,
    .four.columns,
    .five.columns,
    .six.columns,
    .seven.columns,
    .eight.columns,
    .nine.columns,
    .ten.columns,
    .eleven.columns,
    .twelve.columns,
    .thirteen.columns,
    .fourteen.columns,
    .fifteen.columns,
    .sixteen.columns,
    .one-third.columns,
    .two-thirds.columns {
        width: 300px;
    }
}


/* #Mobile (Landscape)  480 ～ 767
================================================== */
@media only screen and (min-width: 30em) and (max-width: 47.9375em) {
    .columns {
        margin-left: 10px;
        margin-right: 10px;
    }

    .one.columns,
    .two.columns,
    .three.columns,
    .four.columns,
    .five.columns,
    .six.columns,
    .seven.columns,
    .eight.columns,
    .nine.columns,
    .ten.columns,
    .eleven.columns,
    .twelve.columns,
    .thirteen.columns,
    .fourteen.columns,
    .fifteen.columns,
    .sixteen.columns,
    .one-third.columns,
    .two-thirds.columns {
        width: 420px;
    }
}


/* =========================================================================
   手機版：完全合併為單行導航列 ( 全站統一 )
   ========================================================================= */
@media only screen and (max-width: 47.9375em) {
    /* 隱藏原生兩行式 Header & 擬似元素 */
    #Header, .Menu::before {
        display: none !important;
    }
    
    /* 導航列容器標準化 */
    #mainMenu {
        height: 60px !important;
        position: relative; /* 預設相對定位 ( 內頁 ) */
        background-color: #d7f1ff; /* 內頁預設淺藍背景 */
        border-bottom: 1px solid #dcdcdb;
        z-index: 1000;
        transition: background-color .3s ease;
    }

    /* 首頁初始狀態：重疊在 Banner 上且透明 */
    .is-homepage:not(.fixed) #mainMenu {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        background-color: transparent !important;
        background-image: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    /* 固定狀態 ( 全站 )：深藍實色 */
    .fixed #mainMenu {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px !important;
        background-color: #0e5e87 !important;
        background-image: none !important;
        border-bottom: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 10000;
    }

    #mainMenu .wrapper {
        height: 100%;
        position: relative;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important; /* 確保選單不被切掉 */
    }

    /* 確保 Menu 本身不浮動干擾 */
    .Menu {
        float: none !important;
        width: 100%;
        padding: 0;
        margin: 0;
        position: static;
    }
    
    /* 1. 點選跳轉 Logo */
    #MobileLogo {
        display: flex;
        position: absolute;
        left: 15px;
        top: 12px; /* (60px - 36px) / 2 = 12px 垂直置中 */
        width: 110px;
        height: 36px;
        background-image: url(../../../images/EGIT-Logo.svg?t=20220225);
        background-repeat: no-repeat;
        background-position: left center;
        background-size: contain;
        z-index: 10002; /* 必須高於選單容器 (10001)，確保在選單展開時仍可見 */
        pointer-events: auto;
    }
    /* 顏色適配：固定狀態用白色 */
    .fixed #MobileLogo {
        filter: brightness(0) invert(1);
    }
    /* 首頁初始狀態改回白色 Logo，保留陰影增強可讀性 */
    .is-homepage:not(.fixed) #MobileLogo {
        filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.45));
    }

    /* 2. 漢堡按鈕區域 */
    .Menu label {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100% !important;
        z-index: 10003;
        background: transparent !important;
        cursor: pointer;
    }
    .Menu label:after {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        content: "\2630" !important; /* ☰ */
        font-size: 1.8em !important;
        color: #505050; /* 內頁預設深灰 */
        line-height: 1;
    }
    /* 顏色適配：首頁或固定狀態用白色 */
    .fixed .Menu label:after,
    .is-homepage:not(.fixed) .Menu label:after {
        color: #ffffff !important;
        text-shadow: none !important;
    }

    /* 3. 語系切換區域 */
    .Languages {
        display: block !important;
        position: absolute;
        right: 70px; /* 在漢堡左側，漢堡寬 60px + 10px 間距 */
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10002; /* 與 Logo 相同層級，確保在選單之上 */
        width: auto !important;
        float: none !important;
    }
    .Languages > ul > li > a {
        color: #3a3a3a !important; /* 內頁預設深色 */
        font-weight: bold;
    }
    .Languages > ul > li:after {
        color: #727272 !important;
    }
    /* 顏色適配：首頁或固定狀態用白色 */
    .fixed .Languages li a,
    .fixed .Languages > ul > li:after,
    .is-homepage:not(.fixed) .Languages li a,
    .is-homepage:not(.fixed) .Languages > ul > li:after {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* 4. 下拉選單展開樣式 ( 抽屜 ) */
    /* 關鍵：覆蓋桌面版 flex 佈局，讓選單依內容自然撐高 */
    .Menu > ul {
        display: none;   /* 預設隱藏 */
        position: absolute;
        top: 60px;       /* 從 #mainMenu 底部展開 */
        left: 0;
        right: 0;
        width: auto;
        max-width: 100vw;
        height: auto;    /* 不受 60px 高度限制 */
        max-height: calc(100vh - 120px); /* 最大高度：視窗高度減去 header，留些空間 */
        background-color: #0e5e87;
        z-index: 10001;  /* 必須高於 .fixed #mainMenu 的 z-index: 10000 */
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto; /* 內容過多時可滾動 */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Fixed 狀態下，選單容器也要 fixed，並從視窗頂部 60px 開始 */
    .fixed .Menu > ul {
        position: fixed !important;
        top: 60px !important;
    }
    
    /* 漢堡勾選後才顯示選單：#btnMenu 與 ul 是同層兄弟節點 */
    .Menu #btnMenu:checked ~ ul {
        display: block;
    }
    .Menu > ul > li {
        width: 100%;
        max-width: 100%;
        float: none;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background-color: #0e5e87;
        font-size: 1rem; /* 覆蓋桌面版 1.25em (16px) */
    }
    .Menu > ul > li > a {
        color: #ffffff;
        display: block;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        line-height: 1.4;
    }

    /* 覆蓋桌面 fixed 規則，避免手機抽屜第一層文字變深色看不清 */
    .fixed .Menu > ul > li > a {
        color: #ffffff;
        border-right: none;
    }
    
    /* 第一層選單 hover 狀態 */
    .Menu > ul > li:hover,
    .Menu > ul > li.active {
        background-color: rgba(0, 0, 0, 0.15); /* 修正對比度：變深而非變亮，與 L2/L3 一致，從 5.62:1 提升到 8.71:1 */
    }
    
    /* ===== 修復： subMenu 層級定位問題 ===== */
    /* 第二層選單（ subMenu）：跟隨文件流，不使用絕對定位 */
    .Menu > ul > li > ul.subMenu {
        position: static;
        top: auto;
        left: auto;
        display: none;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin: 0;
    }
    

    /* 第二層選單項目樣式 */
    .Menu > ul > li > ul.subMenu > li {
        background-color: rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-left: 0;
    }
    
    .Menu > ul > li > ul.subMenu > li > a {
        padding: 0.625rem 1.25rem 0.625rem 0.9375rem;
        font-size: 0.875rem; /* 14px */
        color: rgba(255, 255, 255, 0.95);
    }

    /* 手機 fixed 狀態：覆蓋桌面 fixed 深色字，維持抽屜選單可讀性 */
    .fixed .Menu > ul > li > ul.subMenu > li > a,
    .fixed .Menu > ul > li > ul.subMenu ul li a {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: none;
    }

    /* 首頁 fixed 狀態：覆蓋 .is-homepage.fixed 桌面深色字規則（手機抽屜需白字） */
    .is-homepage.fixed .Menu > ul > li > ul.subMenu > li > a,
    .is-homepage.fixed .Menu > ul > li > ul.subMenu ul li a {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: none;
    }
    
    /* 第二層選單 hover 狀態 - 確保文字清晰可見 */
    .Menu > ul > li > ul.subMenu > li:hover {
        background-color: #0e5e87; /* 修正對比度：從 #65c2f2 (1.99:1) 改為 #0e5e87 (7.07:1) */
    }
    
    .Menu > ul > li > ul.subMenu > li:hover > a {
        color: #ffffff;
        font-weight: 500;
    }

    .is-homepage.fixed .Menu > ul > li > ul.subMenu > li:hover > a,
    .is-homepage.fixed .Menu > ul > li > ul.subMenu ul li:hover > a {
        color: #ffffff !important;
    }
    
    /* 第三層及更深層的 ul：繼承 static，自然顯示 */
    .Menu > ul > li > ul.subMenu ul {
        position: static;
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .Menu > ul > li > ul.subMenu ul li {
        background-color: rgba(0, 0, 0, 0.25);
        padding-left: 0;
    }
    
    .Menu > ul > li > ul.subMenu ul li a {
        padding: 0.5rem 1.25rem 0.5rem 1.875rem;
        font-size: 0.8125rem; /* 13px */
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* 第三層選單 hover 狀態 - 確保文字清晰可見 */
    .Menu > ul > li > ul.subMenu ul li:hover {
        background-color: #0e5e87; /* 修正對比度：從 #65c2f2 (1.99:1) 改為 #0e5e87 (7.07:1) */
    }
    
    .Menu > ul > li > ul.subMenu ul li:hover a {
        color: #ffffff;
        font-weight: 500;
    }

    /* 展開狀態時，漢堡按鈕固定在右上，避免掉到抽屜底部 */
    .fixed #mainMenu.Cover .Menu label {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 60px !important;
        height: 60px !important;
        min-height: 60px !important;
        z-index: 10050 !important;
    }

    .fixed #mainMenu.Cover .Menu label:after {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #ffffff !important;
    }
}

/* =========================================================================
   手機版內頁修正：防止破版、確保圖示可見
   ========================================================================= */
@media only screen and (max-width: 47.9375em) {
    /* 防止容器寬度超出 viewport */
    #Wrap, .wrapper, .container, #Main, #MainCont {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        margin: 0 !important;
        float: none !important;
        overflow: visible !important; /* 修正多重卷軸問題 */
    }

    /* 麵包屑縮小與換行 */
    .Breadcrumb {
        padding: 10px 15px !important;
        font-size: 0.9em !important;
        line-height: 1.4 !important;
        word-break: break-all;
    }

    /* 頁面標題 (H2) 縮小與換行 */
    h2.pagetittle {
        padding: 20px 15px 10px 15px !important;
        font-size: 1.5em !important;
        line-height: 1.3 !important;
        word-break: break-all;
    }

    /* 調整內容邊距 */
    #MainCont {
        padding: 0 15px 40px 15px !important;
    }
}

/*#endregion */

