﻿body {
}
body {
    color: #666666;
    font-size: 0.85rem;
    padding: 0;
    /*font-family: arial,微軟正黑體;*/
    /* background-image: url('/images/allbk.gif');*/
}

:root {
    /*--theme-color: #7fbf23;*/
    --theme-color: #6EA61E;
    --theme-color2: #537D17;
}

.select-list input[type="radio"],
.select-list input[type="checkbox"] {
    margin-right: 6px;
}

.select-list label {
    margin-right: 10px; /* 控制間距，想多寬就改這裡 */
}

a {
    color: var(--theme-color2);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

    a:hover {
        color: #636363;
    }

/* 全螢幕遮罩 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3); /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 靠上 */
    z-index: 1050; /* 蓋過所有畫面 */

    visibility: hidden; /* 初始隱藏 */
    opacity: 0;
    transition: opacity 0.3s ease; /* 加點動畫效果 */
}

    #overlay.show {
        visibility: visible;
        opacity: 1;
    }

#loadingBox {
    margin-top: 15%; /* 控制「偏上」 */
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
    text-align: center;
}


/*-- 導盲磚 */
.c, .u, .b {
    color: transparent !important;
    position: absolute;
    z-index: 1000;
    opacity: 0;
}

    .c:focus-visible, .u:focus-visible, .b:focus-visible {
        opacity: 1;
        color: #535456 !important;
    }

.u {
    position: relative;
}

.c:focus-visible {
    position: relative;
}

.b:focus-visible {
    color: #3a3a3a !important;
}

/*-- 上方連結 --*/
.topLinkBox {
    display: none;
}

@media (min-width: 992px) {
    .topLinkBox {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    main {
        padding-top: 95px; /* header 高度 (導覽 50px + 資訊列 45px) */
    }
}

.topLinkBox > a {
    position: relative;
    font-size: 1rem;
    padding-right: 20px;
}

    .topLinkBox > a:first-child {
        padding-right: 10px;
    }

    .topLinkBox > a:nth-child(n+2):nth-child(-n+3)::before {
        content: "";
        position: absolute;
        background-color: #ccc;
        width: 1px;
        height: 20px;
        right: 10px;
        top: 3px;
    }

.topLinkBox > a {
    color: #636363;
    font-weight: bold;
    text-decoration: none;
}

    .topLinkBox > a:hover {
        color: #367F9A;
        text-decoration: none;
        font-weight: bold;
    }

.btn-tnnu {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    font-weight: 600;
}

    .btn-tnnu:hover {
        background-color: #6CAF1E;
        border-color: #6CAF1E;
        color: #fff;
    }

    .btn-tnnu:disabled {
        background-color: #a9d86e;
        border-color: #a9d86e;
        color: #fff;
        opacity: 0.75;
    }

.text-tnnu {
    color: var(--theme-color2);
    font-weight: bold;
}

.bg-tnnu {
    background-color: var(--theme-color);
}

.btn-outline-tnnu {
    background-color: transparent;
    border-color: var(--theme-color);
    color: var(--theme-color);
    font-weight: 600;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    .btn-outline-tnnu:hover {
        background-color: var(--theme-color); /* hover 時填滿主題色 */
        border-color: var(--theme-color);
        color: #fff;
    }

    .btn-outline-tnnu:disabled {
        background-color: transparent;
        border-color: #a9d86e; /* 停用時的淡色邊框 */
        color: #a9d86e; /* 停用時的淡色文字 */
        opacity: 0.65;
    }