﻿html, body {
    font-family: "Helvetica Neue", Helvetica, "Microsoft JhengHei", "\5FAE\8EDF\6B63\9ED1\9AD4", "\6A19\6977\9AD4", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #35435c;
}
/* .header / .container 的寬度統一寫在 site.css（含 62rem 以下改成 100% 的手機規則）。
   這裡以前又各寫了一份 min-width，載入順序在 site.css 之後，同權重後者勝，
   把 site.css 的手機規則整個蓋掉，手機上整頁被撐成 1200px 寬。 */
.topbar {
    position: relative;
    z-index: 1;
    background-color: white;
    box-shadow: 0 2px 20px 0 rgba(34, 53, 85, 0.5);
    height: 80px;
}

    .topbar::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 200;
        content: "";
        display: block;
        height: 4px;
        background-image: linear-gradient(90deg, #4693b5 0%, #49b8a1 100%);
    }

    .topbar .logo {
        display: inline-block;
        color: transparent;
        font-size: 0;
        width: 455px;
    }

        .topbar .logo img {
            width: 100%;
        }

.level {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.NavBar {
    height: 80px;
}
.menu {
    margin-left: auto !important;
    margin-top: auto !important;
    background-color: transparent !important;
    border-bottom: none !important;
    -ms-flex-item-align: end !important;
    align-self: end !important;
}
    .menu .el-menu.el-menu--horizontal {
        border-width: 0;
    }
.banner {
    height: 240px;
    width: 100%;
    min-width: 1022px;
    max-width: 100%;
    overflow: hidden;
    background-image: url("../images/header-bg.png");
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
}

    .banner::after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(60, 214, 185, 0);
        z-index: 1;
    }

.homemenubarBtn {
    color: rgb(100, 115, 145) !important;
    border-bottom-color: transparent !important;
}
.el-menu.el-menu--horizontal {
    border-bottom: 1px solid #e6e6e6;
}

.el-menu--horizontal {
    border-right: none;
}

    .el-menu, .el-menu--horizontal > .el-menu-item:not(.is-disabled):focus, .el-menu--horizontal > .el-menu-item:not(.is-disabled):hover, .el-menu--horizontal > .el-submenu .el-submenu__title:hover {
        background-color: #fff;
    }

.el-menu {
    border-right: 1px solid #e6e6e6;
    list-style: none;
    position: relative;
    margin: 0;
    padding-left: 0;
}

user agent stylesheet
ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
.menu .el-menu-item.is-active {
    /*border-bottom: 2px solid #f0b603 !important;*/
    background-color: #f0b603 !important;
    color: #223555 !important;
}

.el-menu--horizontal > .el-menu-item.is-active {
    /*border-bottom: 2px solid #409eff;*/
    color: #303133;
}

.menu .el-menu-item {
    font-size: 1rem;
    height: 80px !important;
    line-height: 5rem !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-weight: 700 !important;
}

.el-menu-item.is-active {
    color: #409eff;
}

.el-menu--horizontal > .el-menu-item {
    float: left;
    height: 60px;
    line-height: 3.75rem;
    margin: 0;
    /*border-bottom: 2px solid transparent;*/
    color: #909399;
}

.el-menu-item {
    font-size: 0.875rem;
    color: #303133;
    padding: 0 20px;
    cursor: pointer;
    -webkit-transition: border-color .3s, background-color .3s, color .3s;
    transition: border-color .3s, background-color .3s, color .3s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.el-menu-item, .el-submenu__title {
    height: 56px;
    line-height: 3.5rem;
    position: relative;
    -webkit-box-sizing: border-box;
    white-space: nowrap;
    list-style: none;
}

user agent stylesheet
li {
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

#toggle {
    /* 桌機不顯示。原本只用 visibility:hidden + margin-right:-40px 佔位，
       在 768–992px 之間容器已是 100% 寬，那 40px 會凸出畫面右側產生橫向捲軸 */
    display: none;
    margin-right: -40px;
    margin-top: 4px;
    z-index: 999;
    width: 40px;
    height: 40px;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease-out;
    visibility: hidden;
    opacity: 0;
}

    /* 三條橫線是 <div class="span">，不是 <span> 標籤（比照舊站 Header.vue 的 #toggle .span） */
    #toggle .span {
        display: block;
        border-radius: 10px;
        background: #35435c; 
        transition: all 0.3s ease-out;
        backface-visibility: hidden;
        height: 4px;
        margin: 5px 0;
    }

#top.active {
    transform: rotate(45deg) translateX(3px) translateY(5px);
}

#middle.active {
    opacity: 0;
}

#bottom.active {
    transform: rotate(-45deg) translateX(8px) translateY(-10px);
}

.menu {
    margin-left: auto !important;
    margin-top: auto !important;
    background-color: transparent !important;
    border-bottom: none !important;
    align-self: end !important;
}

    .menu .el-menu-item {
        font-size: 1rem;
        height: 80px !important;
        line-height: 5rem !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        font-weight: bold !important;
    }

        .menu .el-menu-item:focus {
            background-color: transparent !important;
            outline: 4px dashed #3ab0e6 !important;
            outline-offset: 2px !important;
        }

        .menu .el-menu-item:hover {
            outline: 0;
            background-color: transparent !important;
        }

    .menu .el-menu.el-menu--horizontal {
        border-width: 0;
    }

    .menu .el-menu-item.is-active {
        /*border-bottom: 2px solid #f0b603 !important;*/
        background-color: #f0b603 !important;
        color: #223555 !important;
    }

/* 橫幅的 min-width 跟 .container 一樣在 62rem 以下解除（site.css），避免 768–992px 之間橫幅比容器寬 */
@media only screen and (max-width: 62rem) {
    .banner {
        min-width: 100%;
    }
}

@media only screen and (max-width: 48rem) {
    .NavBar {
        padding: 0 10px;
    }

    /* 舊站 logo 固定 455px、圖 90%，在 390px 的手機上會超出畫面；改成吃剩餘寬度 */
    .topbar .logo {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

        .topbar .logo img {
            width: 90%;
            max-width: 410px;
        }

    #toggle {
        display: block;
        margin-right: 0;
        visibility: visible;
        opacity: 1;
        margin-top: 15px;
        margin-left: auto;
        flex: 0 0 auto;
    }

        #toggle .span {
            visibility: visible;
            opacity: 1;
        }

    .menu .el-menu-item {
        display: none;
    }

    /* 漢堡選單展開：貼在 topbar 下緣往下拉出整寬的清單（比照舊站 element-ui.scss 的 sm-menu mixin）。
       .menu 本身的 margin-left/margin-top 帶 !important，這裡要用同樣的 !important 才蓋得掉。 */
    .menu.active {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 !important;
        background-color: #fff !important;
        box-shadow: 0 8px 16px 0 rgba(34, 53, 85, 0.2);
        opacity: 0.98;
        z-index: 300;
    }

        .menu.active .el-menu-item {
            display: block;
            float: none;
            width: 100%;
            box-sizing: border-box !important; /* site.css 全域 content-box，100% + 左右 16px 內距會超出畫面 */
            height: 56px !important;
            line-height: 3.5rem !important;
            text-align: center;
            border-top: 1px solid #EAEAEB;
            font-size: 1.125rem;
        }
}