:root {
    --primary-color: #244a57;
    --secondary-color: #2e8b57;
    --accent-color: #d95f4a;
    --text-color: #24323d;
    --muted-color: #667784;
    --bg-color: #ffffff;
    --soft-bg: #f4f8f7;
    --footer-bg: #eef4f2;
    --border-color: #dbe6e2;
    --font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a,
button {
    transition: 0.25s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 88px 0;
}

header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(36, 50, 61, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hero {
    background: linear-gradient(135deg, #f5fbf8 0%, #dceee7 100%);
    text-align: center;
    padding: 132px 20px 116px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.12rem;
    max-width: 820px;
    margin: 0 auto 32px;
    color: var(--muted-color);
}

.section-title {
    text-align: center;
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
}

.section-intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted-color);
}

.notice-box {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 18px;
    background: #f8fcfb;
    border: 1px solid var(--border-color);
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    margin-top: 42px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(36, 50, 61, 0.07);
    border: 1px solid rgba(219, 230, 226, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(36, 50, 61, 0.12);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.card p {
    color: var(--muted-color);
}

.about-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 46px;
}

.about-wrap > div {
    flex: 1;
    min-width: 280px;
}

.about-image {
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(36, 50, 61, 0.14);
}

.about-copy h2,
.contact-panel h2 {
    color: var(--primary-color);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 18px;
}

.about-copy p {
    color: var(--muted-color);
    margin-bottom: 14px;
}

.contact-section {
    background: var(--primary-color);
    color: #f7fbfa;
}

.contact-panel {
    text-align: center;
}

.contact-panel p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(247, 251, 250, 0.88);
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card {
    min-width: 220px;
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

footer {
    background: var(--footer-bg);
    padding: 58px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 32px;
}

.footer-content h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.footer-content p,
.footer-content li,
.footer-bottom p {
    color: var(--muted-color);
}

.footer-list {
    list-style: none;
}

.footer-list li + li {
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.link-button {
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

.link-button:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(46, 139, 87, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.remaining-box {
    background: #fff5f2;
    border: 2px dashed var(--accent-color);
    padding: 16px 30px;
    border-radius: 12px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.line-btn {
    background: #06c755;
    font-size: 1.2rem;
    padding: 18px 42px;
    box-shadow: 0 14px 28px rgba(6, 199, 85, 0.22);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 29, 35, 0.58);
    z-index: 2000;
}

.modal.is-open {
    display: flex;
}

.modal-dialog {
    width: min(760px, 100%);
    max-height: 86vh;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(20, 29, 35, 0.25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #eef4f2;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: #e3eeea;
}

.modal-body {
    padding: 24px;
    max-height: calc(86vh - 84px);
    overflow-y: auto;
}

.modal-body h4 {
    margin: 18px 0 8px;
    color: var(--primary-color);
    font-size: 1.08rem;
}

.modal-body p,
.modal-body li {
    color: var(--muted-color);
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body p + p,
.modal-body ul,
.modal-body h4 {
    margin-top: 12px;
}

@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.95rem;
    }

    .footer-links {
        gap: 10px;
    }

    .modal {
        padding: 16px;
    }

    .modal-header,
    .modal-body {
        padding: 18px;
    }
}

@media (max-width: 560px) {
    nav {
        align-items: flex-start;
        padding: 16px 0;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .contact-grid {
        gap: 16px;
    }

    .contact-card {
        width: 100%;
    }
}
