/**Layout css**/
html {
    margin: 0;
    padding: 0;
    overflow:auto;
}

/*-------------------------------------------
首頁背景
----------------------------------------------*/
.index_bg {
    font-family: "Microsoft JhengHei", "微軟正黑體", "Microsoft YaHei", sans-serif;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-image: url("../images/nextlogo.png"),linear-gradient(161.71deg, #035F79 60.35%, #C2E1C7 96.4%);
    /* 关键修改：把垂直偏移从 -190px 调整为更小的负值（如 -100px），或 0/正数 */
    background-position: center -60px, center;
    background-repeat: no-repeat, no-repeat;
    background-size: 100%, cover;
    background-attachment: fixed;
}

/*.nextlogo {
  width: 60%;
  height: auto;
  margin-top: 7%;
}*/
.nextlogo {
    width: 90%;
    height: auto;
    margin-top: 2%;
    mix-blend-mode: screen;
}

.slogan {
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
    color: #FFFFFF;
}

.slogan1 {
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    width: 315;
    height: 27;
    top: 202px;
    left: 44px;
    angle: 0 deg;
    opacity: 1;
    color: #FFFFFF;
}

a {
    text-decoration: none;
    color: #1D9AB4;
}

er {
    text-decoration: none;
    color: #036779;
}



/* --------------------------------------------
內頁背景
---------------------------------------------- */
.inner_bg {
    font-family: "Microsoft JhengHei", "微軟正黑體", "Microsoft YaHei", sans-serif;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-image: url("../images/nextlogo_inner.png"), linear-gradient(180deg, #035f79 0px, #c2e1c7 100px, #FFF 100px);
    /* background-blend-mode: overlay, normal; */
    background-position: center -250px, center;
    /* 第一個值給 SVG：水平置中，垂直往上偏移 180px */
    /* 第二個值給 漸層：置中對齊 */
    background-repeat: no-repeat, no-repeat;
    background-size: 60% auto, cover;
    /* size 分開設定：SVG 自動，漸層 cover */
    background-attachment: fixed;
}

/* 最外圍區域 */
.main {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    height: 100vh;
    /* 撐滿整個視窗高度 */
}

header {
    flex: 0 0 auto;
    z-index: 10;
    top: 0;
    width: 100%;
}

/* Header高低 */
.top-header {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    font-family: Century Gothic;
    font-weight: bold;
}

.back {
    width: 100%;
    background-color: rgba(194, 225, 199, .6);
    text-align: left;
    color: #035f79;
    line-height: 2rem;
}

.main_content {
    flex: 1 1 auto;
    /* 自動填滿剩餘空間 */
    overflow-y: auto;
    width: 100%;
    height: auto;
}

.inner_title {
    font-size: 2rem;
    color: #035F79;
    text-align: center;
    font-weight: 600;
    margin-bottom: .5rem;
}

/*--------------------------------------------------------------
# 首頁登入表單
--------------------------------------------------------------*/
.custom-input-group {
    background-color: rgba(255, 255, 255, 0.2);
    /* 半透明背景 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 細微邊框 */
    border-radius: 50px !important;
    /* 大圓角 */
    padding-left: 15px;
    /* 給左邊 Icon 一點空間 */
    overflow: hidden;
    /* 確保內容不超出圓角 */
    transition: all 0.3s;
    margin-top: 20px;
}

    .custom-input-group .input-group-text {
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.8) !important;
        padding-right: 5px;
    }

.custom-input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    height: 50px;
    /* 控制高度 */
    box-shadow: none !important;
    /* 移除點擊時的藍光 */
}

    /* 調整 Placeholder 的顏色 */
    .custom-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

.custom-input-group .bi {
    font-size: 1.3rem;
    /* 加大 */
    color: white;
    vertical-align: middle;
    -webkit-text-stroke: 0.5px white;
    /* 加粗 */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    /* 讓圖示稍微發光 */
}

/* Submit 按鈕樣式 */
.btn-submit {
    background-color: #1a95ad;
    /* 根據圖片色調挑選的藍綠色 */
    border: none;
    border-radius: 50px;
    padding: 12px;
    color: white;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

    .btn-submit:hover {
        background-color: #157a8e;
        transform: translateY(-2px);
        color: white;
    }

/*--------------------------------------------------------------
# 首頁四顆選單
--------------------------------------------------------------*/
.gradient-btn {
    position: relative;
    padding: 12px 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    display: block;
}

    /* 按鈕Border */
    .gradient-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 3px;
        /* 邊框厚度 */
        border-radius: 30px;
        background: linear-gradient(180deg, #bfeef3, #9fdce4, #7fcbd6);
        /* 挖空中間 */
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        /* 柔邊感 */
        box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4), 0 0 12px rgba(180, 240, 245, 0.35);
    }

    /* 懸停效果 Hover 微亮*/
    .gradient-btn:hover::before {
        filter: brightness(1.1);
    }

.qrqrrcode {
    display: block;
    width: fit-content;
    text-align: center;
    color: #FFFFFF;
    font-weight: 600;
}

.qrcode a {
    color: #FFFFFF;
}

/*--------------------------------------------------------------
# 內頁選單
--------------------------------------------------------------*/
.icon-box {
    padding: 15px 5px;
    /* 再次縮小內距，為文字騰出空間 */
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(19, 113, 136, 0.4);
    height: 100%;
    text-align: center;
    border-radius: 12px;
    /* 稍微減小圓角，視覺上比較俐落 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

    .icon-box:hover {
        border-color: #489b50;
        /* background-color: rgba(186, 218, 189, .3); */
    }

    .icon-box .iconimg {
        display: inline-flex;
        justify-content: center;
        margin-bottom: 10px;
        width: 50%;
        height: auto;
    }

a:hover .icon-box .iconimg {
    filter: sepia(120%) hue-rotate(130deg) brightness(.95);
}

a*a:lk .icon-box h3 {
    color: #137188;
    font-size: 1.2em;
    font-weight: 600;
    transition: ease-in-out 0.3s;
}

/*a:her .icon-box h3 {
  color: #489b50;
}

/*首頁多螢幕設定 ========================================*/

@media only screen and (min-width: 1200px) and (max-width: 1399px) {

    /* 內頁上方 */
    .inner_bg {
        background-position: center -250px, center;
        background-repeat: no-repeat, no-repeat;
        background-size: 60%, cover;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {

    /* 內頁上方 */
    .inner_bg {
        background-position: center -200px, center;
        background-repeat: no-repeat, no-repeat;
        background-size: 80%, cover;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .inner_bg {
        background-position: center -180px, center;
        background-repeat: no-repeat, no-repeat;
        background-size: 80%, cover;
    }

    .icon-box {
        padding: 10px 2px;
        /* 極小內距 */
    }

        .icon-box .iconimg {
            width: 40%;
            /* 稍微縮小圖片，避免擠壓文字 */
            margin-bottom: 5px;
        }

        .icon-box h3 {
            font-size: 0.85rem !important;
            /* 強制縮小字體，確保不折行 */
            white-space: nowrap;
            /* 視情況使用：若文字太長可改為 normal */
        }
}

@media only screen and (min-width: 576px) and (max-width: 768px) {
    .index_bg {
        background-image: url("../images/nextlogo.png"), linear-gradient(135deg, #035f79 70%, #c2e1c7 100%);
        background-position: center -180px, center;
        background-repeat: no-repeat, no-repeat;
        background-size: 120%, cover;
        background-attachment: fixed;
    }

    .nextlogo {
        width: 70%;
        height: auto;
        margin-top: 30%;
        mix-blend-mode: screen;
    }
    /*.nextlogo {
    width: 70%;
    height: auto;
    margin-top: 30%;
  }*/


    .slogan {
        font-size: 1rem;
        color: #ffffff;
        text-align: center;
        font-weight: bold;
        margin: 2rem 0 2rem 0;
        text-wrap: wrap;
    }

    /* 內頁上方 */
    .inner_bg {
        background-position: center -180px, center;
        background-repeat: no-repeat, no-repeat;
        background-size: 100%, cover;
    }

    .container {
        width: 90%;
        padding-top: 100px;
    }

    .custom-input-group {
        margin-top: 10px;
    }

    .gradient-btn {
        padding: 20px 10px;
        font-size: 1.2rem;
        font-weight: 600;
        border-radius: 15px;
    }

        /* 按鈕Border */
        .gradient-btn::before {
            border-radius: 15px;
        }

    .icon-box .iconimg {
        display: inline-flex;
        justify-content: center;
        margin-bottom: 10px;
        width: 45%;
        height: auticon-box h3;

{
    color: #137188;
    font-size: 1.1rem;
    font-weight: 600;
    transition: ease-in-out 0.3s;
}

}

@ut 0.3s;
}
}

@media only screen and (max-width: 575px) {
    .inner_bg {
        background-position: center -150px, center;
        background-repeat: no-repeat, no-repeat;
        background-size: 120%, cover;
    }

    .icon-box {
        padding: 10px 2px;
        /* 極小內距 */
    }

        .icon-box .iconimg {
            width: 40%;
            /* 稍微縮小圖片，避免擠壓文字 */
            margin-bottom: 5px;
        }

        .icon-box h3 {
            font-size: 0.85rem !important;
            /* 強制縮小字體，確保不折行 */
            white-space: nowrap;
            /* 視情況使用：若文字太長可改為 normal */
        }
}












/* ===== 多语言选择器优化 (图标+文字，融入渐变背景) ===== */
.language-wrapper {
    position: relative;
    display: flex;
    justify-content: left;
    /*margin: 1.5rem 0 0.5rem 0;*/ /* 根据页面间距微调 */
    z-index: 20;
}

    /* 隐藏原生 select，但保留以便原有 JS 操作 */
    .language-wrapper select {
        display: none;
    }

/* 自定义触发器（按钮样式） */
.custom-lang-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
    /*background: rgba(255, 255, 255, 0.18);*/
    /*backdrop-filter: blur(8px);*/
    -webkit-backdrop-filter: blur(8px);
    /*border: 1px solid rgba(255, 255, 255, 0.3);*/
    border-radius: 40px;
    /*padding: 8px 20px;*/
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    /*box-shadow: 0 4px 12px rgba(0, 40, 50, 0.2);*/
    /*min-width: 140px;*/
}

    .custom-lang-trigger i {
        font-size: 1.3rem;
        line-height: 1;
        /*color: rgba(255, 255, 255, 0.9);*/
    }

    .custom-lang-trigger .lang-name {
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .custom-lang-trigger .bi-chevron-down {
        font-size: 1rem;
        margin-left: 4px;
        opacity: 0.8;
        transition: transform 0.2s;
    }

    .custom-lang-trigger[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
    }

    .custom-lang-trigger:hover {
        /*background: rgba(255, 255, 255, 0.25);*/
        border-color: rgba(255, 255, 255, 0.5);
    }

/* 下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: calc(5%);
    /*transform: translateX(-50%);*/
    width: auto;
    min-width: 180px;
    background: rgba(0, 50, 60, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0, 30, 40, 0.5);
    z-index: 100;
    display: none;
    list-style: none;
    margin: 0;
}

    .lang-dropdown.show {
        display: block;
    }

    .lang-dropdown li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.15s;
        white-space: nowrap;
    }

        .lang-dropdown li:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .lang-dropdown li:active {
            background: rgba(255, 255, 255, 0.25);
        }

        /* 选项中的图标（国旗 emoji） */
        .lang-dropdown li .flag-emoji {
            font-size: 1.4rem;
            line-height: 1;
            filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
        }

/* 移动端适配 */
@media (max-width: 576px) {
    .custom-lang-trigger {
        /*padding: 10px 18px;*/
        font-size: 0.95rem;
        min-width: 70px;
    }

    .lang-dropdown {
        min-width: 160px;
    }

        .lang-dropdown li {
            padding: 12px 16px;
            font-size: 0.95rem;
        }
}



/* 手机端底部内容安全区适配 */
@media only screen and (max-width: 768px) {
    .layui-row:last-child {
        padding-bottom: 30px;
        padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.0-11.2 */
        padding-bottom: env(safe-area-inset-bottom);     /* iOS 11.2+ */
    }
}

/* 底部信息区域样式 */
.footer-info {
    margin-top: 2rem;       /* 与上方内容保持距离，可根据需要调整数值 */
    padding-bottom: 1.5rem; /* 与屏幕底部保持安全距离 */
}
.footer-info label {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* 手机端进一步优化底部间距 */
@media only screen and (max-width: 768px) {
    .footer-info {
        margin-top: 1.5rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        padding-bottom: calc(1rem + constant(safe-area-inset-bottom));
    }
}