﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Noto+Serif:wght@400;700&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Noto Sans", "Noto Serif", system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
    display: block;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: button;
    -webkit-appearance: button;
}

::-moz-focus-inner {
    border: 0;
    padding: 0;
}

::-webkit-file-upload-button {
    appearance: button;
    -webkit-appearance: button;
    font: inherit;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    appearance: textfield;
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

    [type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }

::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
}

::-moz-focusring {
    outline: 1px dotted ButtonText;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

h1 {
    font-size: 2rem;
    padding: 0;
    margin: 0;
}

body {
    background-color: #e0ebf6;
    color: #333;
    line-height: 1.75;
    font-size: 1.125rem;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;

    > * {
        min-width: 0;
    }
}

.site__header {
    background-color: #87bef6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;

    @media (max-width:960px) {
        padding: 0.5rem 1rem;
    }

    .header__wrapper {
        width: min(100%, 75rem);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            text-decoration: none;

            @media (max-width:960px) {
                font-size: 1rem;
            }
        }

        nav {
            ul {
                list-style: none;
                margin: 0;
                padding: 0;
                display: flex;
                gap: 1.5rem;

                @media (max-width:960px) {
                    gap: .5rem;
                }

                li {
                    a {
                        color: #fff;
                        text-decoration: none;
                        font-size: 1.125rem;
                        font-weight: 500;
                        transition: color 0.2s ease;

                        @media (max-width:960px) {
                            font-size: .875rem;
                        }

                        &:hover {
                            color: #dbeafe;
                        }
                    }
                }
            }
        }
    }
}

.site__footer {
    background-color: #d3e0ee;

    .footer__wrapper {
        width: fit-content;
        margin: 0 auto;
        padding: 2rem 1rem 1rem;
        text-align: center;
        font-size: 0.875rem;
        color: #102744;

        address {
            width: min(100%, 50rem);
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: .5rem;
            font-size: 1rem;
            font-style: normal;
            line-height: 1.5;
        }
    }

    .copyright {
        background-color: #102744;
        color: #fff;
        font-size: .875rem;
        line-height: 1.75;
        text-align: center;
        margin: 1rem auto 0;
        padding: 0.5rem 1rem;
    }
}

.page__index {

    section {
        padding: 3rem 1rem;

        h2 {
            text-align: center;
            font-size: 1.75rem;
            margin: 1rem auto;
        }
    }

    #banner {
        width: min(100%, 75rem);
        margin: 1rem auto;
        padding: 0 1.5rem;
        text-align: center;

        img {
            border: 3px double #1a237e;
            border-radius: .5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            corner-shape: notch;
        }
    }

    hr {
        display: block;
        height: 0;
        width: min(100%, 67.5rem);
        margin: 2rem auto;
        border: none;
        border-top: 3px double #1a237e;
        border-radius: .25rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

#countdown {

    .countdown-display {
        display: flex;
        justify-content: center;
        gap: 1rem;
        font-size: 2rem;
        font-weight: bold;
        color: #1a237e;
    }

    .countdown-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .countdown-number {
        font-size: 3rem;
        color: #d32f2f;
    }

    .countdown-label {
        font-size: 1rem;
        color: #666;
    }

    .countdown-expired {
        text-align: center;
        font-size: 1.5rem;
        color: #666;
    }

    .registration-link {
        text-align: center;
        margin-top: 2rem;
    }

    .btn-register {
        display: inline-block;
        padding: .5rem 2rem;
        background: #1a237e;
        color: #fff;
        text-decoration: none;
        border: 3px double #1a237e;
        border-radius: .5rem;
        corner-shape: notch;
        font-size: 1.25rem;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: background 0.3s;

        &:hover {
            background-color: #e2e8f066;
            color: #1a237e;
        }
    }
}

#news {

    .sec__wrapper {
        width: min(100%, 62.5rem);
        margin: 2rem auto;
    }

    .news__list {
        width: 100%;
        padding: 0 1.5rem;
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 1.5rem;

        @media (max-width:960px) {
            grid-template-columns: 1fr auto;
        }

        .news__item {
            grid-column: 1 / -1;
            grid-row: span 1;
            display: grid;
            grid-template-columns: subgrid;
            align-items: start;
            background-color: #e2e8f066;
            border: 3px double #1a237e;
            border-radius: .5rem;
            padding: 1rem 1.75rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            corner-shape: notch;

            &:hover {
                background-color: #fff;
                box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
            }

            h3 {
                font-size: 1.25rem;
                color: #1a237e;

                @media (max-width:960px) {
                    grid-column: 1/-1;
                }
            }

            p {
                font-size: 1rem;
            }

            a {
                color: #1a237e;
                text-decoration: none;

                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}

#reports {
    .sec__wrapper {
        width: min(100%, 62.5rem);
        margin: 2rem auto;
    }

    .reports__list {
        width: 100%;
        padding: 0 1.5rem;
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(16rem,1fr));
        gap: 1.5rem;

        .report__item {
            display: grid;
            grid-template-columns: 1fr auto;
            background-color: #e2e8f066;
            border: 3px double #1a237e;
            border-radius: .5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            corner-shape: notch;

            &:hover {
                background-color: #fff;
                box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);

                img {
                    filter: brightness(1);
                }
            }

            img {
                grid-column: 1/-1;
                border-radius: .5rem .5rem 0 0;
                width: 100%;
                aspect-ratio: 3/2;
                object-fit: cover;
                corner-shape: notch;
                filter: brightness(.9);
                transition: .3s ease;
            }

            h3 {
                grid-column: 1/-1;
                padding: .75rem 1rem;
                font-size: 1.125rem;
                line-height: 1.5;
                color: #1a237e;
            }

            p {
                grid-column: 1/-1;
                padding: 0 1rem;
                font-size: 1rem;
                line-height: 1.5;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3; /* 顯示 3 行 */
                overflow: hidden;
            }

            a {
                font-size: 1rem;
                padding: .75rem 1rem;
                color: #1a237e;
                text-decoration: none;

                &:hover {
                    text-decoration: underline;
                }
            }

            small {
                padding: .75rem 1rem;
            }
        }
    }
}
/* Registration Page Styles */
.register-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.intro .section-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.lead {
    color: #475569;
    line-height: 1.5;
}

.registration-form {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    font-size: 1rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.section-desc {
    font-size: 0.875rem;
    color: #475569;
}

.sub-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field-label {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}

.text-input,
.select-input,
.file-input,
.text-area {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

    .file-input::file-selector-button,
    .file-input::-webkit-file-upload-button {
        margin-right: 0.75rem;
        padding: 0.45rem 0.9rem;
        border: none;
        border-radius: 0.5rem;
        background: #2563eb;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s ease;
    }

        .file-input::file-selector-button:hover,
        .file-input::-webkit-file-upload-button:hover {
            background: #1d4ed8;
        }

        .file-input::file-selector-button:active,
        .file-input::-webkit-file-upload-button:active {
            background: #1e40af;
        }

        .file-input::file-selector-button:focus,
        .file-input::-webkit-file-upload-button:focus {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }

    .text-input:focus,
    .select-input:focus,
    .file-input:focus,
    .text-area:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

.text-area {
    resize: vertical;
}

.hint {
    font-size: 0.85rem;
    color: #64748b;
}

.val-msg {
    font-size: 0.85rem;
    color: #dc2626;
}

.inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.inline-option {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .inline-option input {
        accent-color: #2563eb;
    }

.category-grid {
    gap: 1rem;
}

.category-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    font-size: 0.8rem;
    background: #fff;
}

    .category-item .chk {
        margin-top: 0.2rem;
        accent-color: #2563eb;
    }

.category-text {
    font-size: 0.8rem;
    line-height: 1.3;
}

.routine-grid {
    gap: 1rem;
}

.fee-grid {
    gap: 0.75rem;
}

.fee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    background: #fff;
}

    .fee-item .chk {
        accent-color: #2563eb;
    }

.payment-notes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.waiver-box {
    p {
        max-height: 20rem;
        overflow-y: auto;
        border: 1px solid #e2e8f0;
        padding: 1rem;
        border-radius: 0.75rem;
        background: #f8fafc;
        font-size: 1rem;
        line-height: 1.75;
        color: #475569;
    }
}

.bold {
    font-weight: 600;
}

.info-box {
    font-size: 0.75rem;
    color: #475569;
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #2563eb;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease;
}

    .submit-btn:hover {
        background: #1d4ed8;
    }

    .submit-btn:active {
        background: #1e40af;
    }

    .submit-btn:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

@media (max-width: 640px) {
    .registration-form {
        padding: 1.25rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
