body {
    background-color: #fff;
    margin: 0;
    width: min(100%, 1280px);
    margin-left: auto;
    margin-right: auto;
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.site-page {
    width: min(100%, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
}

.site-container,
.container {
    width: min(90%, 1280px);
    margin: 0 auto;
}

.site-banner {
    width: min(100%, 1280px);
    margin: 0 auto 24px;
    position: relative;
}

.site-banner > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.site-banner .site-banner-overlay {
    position: absolute;
    inset: 0;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    /* padding: 24px 28px; */
    /* background: linear-gradient(90deg, rgba(20, 83, 45, 0.55) 0%, rgba(20, 83, 45, 0.25) 45%, rgba(20, 83, 45, 0) 100%); */
}

.site-banner .site-banner-logo {
    width: 15%;
    margin-left:25%;
    height: auto;
    object-fit: contain;
}

.site-banner .site-banner-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 10%;
}

.site-banner .site-banner-logo-group .site-banner-logo {
    width: 12%;
    margin-left: 0;
}

.site-banner .site-banner-logo-group .site-banner-logo-second {
    width: 10%;
}

.site-banner .site-banner-title {
    text-align: end;
    color: #00ADEE;
    max-width: 50%;
    line-height: 1.25;
    margin: 0;
    margin-left:25%;
    padding-top:2rem;
    /* text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); */
}

a {
    font-weight: 600 !important;
    color: #00ADEE;
}

header {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    pointer-events: all;
    --tw-bg-opacity: 1;
    z-index: 100;
}

header > nav {
    width: 100%;
    max-width: none;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 0;
    background-color: #ffffff;
}

.head-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.head-lang {
    display: flex;
    align-items: center;
    gap: 12px;
}

.head-lang > a {
    margin-left: 0;
    line-height: 1;
    color: #00ADEE;
    pointer-events: all;
    cursor: pointer;
}

.head-lang > a::after {
    background-color: #00ADEE;
}

.head-action,
.head-fontsize > button {
    border: none;
    color: #00ADEE;
    font-size: 0.95rem;
    line-height: 1;
    padding: 6px 10px;
    background-color: transparent;
    border-radius: 999px;
    cursor: pointer;
    pointer-events: all;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.head-action:hover,
.head-fontsize > button:hover,
.head-action.active,
.head-fontsize > button.active {
    background-color: rgba(0, 173, 238, 0.14);
    color: #00ADEE;
}

.head-fontsize {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.font-size-small {
    font-size: 13px;
}

body.font-size-small p,
body.font-size-small li,
body.font-size-small h2,
body.font-size-small .btn-nav-form,
body.font-size-small .head-lang > a {
    font-size: 0.95rem;
}

body.font-size-medium {
    font-size: 16px;
}

body.font-size-medium p,
body.font-size-medium li,
body.font-size-medium h2,
body.font-size-medium .btn-nav-form,
body.font-size-medium .head-lang > a {
    font-size: 1.15rem;
}

body.font-size-large {
    font-size: 19px;
}

body.font-size-large p,
body.font-size-large li,
body.font-size-large h2,
body.font-size-large .btn-nav-form,
body.font-size-large .head-lang > a {
    font-size: 1.35rem;
}

body.text-only-mode img {
    display: none !important;
}

body.text-only-mode * {
    background-image: none !important;
}

body.text-only-mode .head-logo {
    width: auto;
    max-width: none;
    background: none !important;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

body.text-only-mode .head-logo::before {
    content: "SGMTS EOI";
    display: block;
    font-size: 1.1rem;
}

body.text-only-mode .head-logo::after {
    display: none;
}

.site-hero {
    background: linear-gradient(120deg, #f3f4dd 0%, #edf5f8 55%, #f7f7ef 100%);
    border-radius: 22px;
    margin-bottom: 40px;
    padding: 56px 0;
}

.site-hero h1 {
    color: #445636;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.site-hero p {
    max-width: 760px;
    font-size: 1.2rem;
}

.content-section {
    margin: 0 auto 28px;
}

.content-section .section-title {
    --tw-text-opacity: 1;
    color: #00ADEE;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 12px;
}

.content-section .section-box {
    --tw-bg-opacity: 1;
    background-color: rgb(224 244 255 / var(--tw-bg-opacity));
    border: 1px solid rgba(0, 173, 238, 0.24);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 173, 238, 0.2);
    padding: 3rem;
    line-height: 1.5rem;
}

.content-section .section-box p + p {
    margin-top: 14px;
    padding-top: 14px;
    /* border-top: 1px solid rgba(21, 128, 61, 0.24); */
}

.content-section .section-box-subtitle {
    --tw-text-opacity: 1;
    color: #00ADEE;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.content-section .section-box ul {
    margin-top: 8px;
    counter-reset: section-alpha;
}
.content-section .section-box ol li {
    list-style-type: decimal;
    margin-bottom: .5rem;
    padding-left: 1rem;
}
.content-section .section-box ul li {
    list-style-type: none;
    counter-increment: section-alpha;
    position: relative;
    margin-bottom: .5rem;
    margin-left: 2.1em;
    padding-left: 0;
}
.content-section .section-box ul li::before {
    content: "(" counter(section-alpha, lower-alpha) ")";
    position: absolute;
    left: -2.1em;
    top: 0;
    color: inherit;
}
.content-section .section-box ul .dash::before {
    content: "-";
    position: absolute;
    left: -1.1em;
    top: 0;
    color: inherit;
}

.content-section .section-box .section-box-image-full {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 14px;
}

.content-section .section-box .section-box-image-caption {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.captcha-challenge {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.captcha-instruction,
.captcha-feedback {
    margin: 0;
}

.captcha-canvas {
    display: block;
    width: 220px;
    max-width: 100%;
    height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(0, 173, 238, 0.3);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-input {
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #00ADEE;
    border-radius: 10px;
    background: #ffffff;
}

.captcha-refresh,
.captcha-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #00ADEE;
    background: #ffffff;
    color: #00ADEE;
    cursor: pointer;
    text-decoration: none;
}

.captcha-download {
    pointer-events: none;
    opacity: 0.55;
}

.captcha-download.is-ready {
    pointer-events: auto;
    opacity: 1;
    background: #00ADEE;
    color: #ffffff;
}

.captcha-feedback {
    color: #4a4a4a;
}

.site-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.site-image-grid > figure {
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
}

.site-image-grid > figure > img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.site-image-grid > figure > figcaption {
    font-size: 0.95rem;
    padding: 12px;
}

@media (max-width: 1024px) {
    header > nav {
        align-items: center;
        padding: 8px 12px;
    }

    .head-tools {
        gap: 10px;
        flex-wrap: wrap;
    }

    .head-action,
    .head-fontsize > button {
        font-size: 0.85rem;
        padding: 5px 9px;
    }
}

@media (max-width: 768px) {
    .site-page {
        padding-bottom: 56px;
    }

    .site-banner {
        margin-bottom: 16px;
    }

    .site-banner .site-banner-overlay {
        padding: 12px 14px;
        gap: 8px;
    }

        .captcha-row {
            flex-direction: column;
            align-items: stretch;
        }

        .captcha-input,
        .captcha-refresh,
        .captcha-download {
            width: 100%;
        }

    .site-banner .site-banner-logo {
        width: 110px;
    }

    .site-banner .site-banner-logo-group {
        margin-left: 0;
        gap: 10px;
    }

    .site-banner .site-banner-logo-group .site-banner-logo {
        width: 110px;
    }

    .site-banner .site-banner-logo-group .site-banner-logo-second {
        width: 88px;
    }

    .site-image-grid {
        grid-template-columns: 1fr;
    }

    .site-hero {
        padding: 40px 0;
        margin-bottom: 28px;
    }

    .site-hero p {
        font-size: 1.05rem;
    }

    .content-section .section-box {
        padding: 14px 14px;
    }

    .head-tools {
        width: 100%;
        justify-content: flex-start;
    }
}
