/* =========================
   基本設定
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family:
        "Noto Sans TC",
        "Microsoft JhengHei",
        Arial,
        sans-serif;

    background: #f5f8f9;
    color: #263238;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================
   導覽列
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(255, 255, 255, 0.96);

    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #176b87;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar nav a {
    font-size: 14px;
    font-weight: 600;
    color: #555;

    transition: 0.3s;
}

.navbar nav a:hover {
    color: #176b87;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 620px;

    display: flex;
    align-items: center;

    padding: 80px 8%;

    background:
        linear-gradient(
            120deg,
            #176b87,
            #2586a2
        );

    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero-small {
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.85;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 82px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-theme {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;

    margin-top: 35px;

    padding: 13px 28px;

    border-radius: 50px;

    background: white;
    color: #176b87;

    font-weight: bold;

    transition: 0.3s;
}

.hero-button:hover {
    transform: translateY(-3px);
}


/* =========================
   Section
========================= */

.section {
    padding: 90px 6%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    display: block;

    color: #176b87;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 5px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 8px;
}

.section-title p {
    color: #777;
}

.section-title .section-note {
    max-width: 680px;
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================
   活動資訊
========================= */

.info-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.info-card {
    background: white;

    padding: 35px 20px;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: #777;
    font-size: 14px;
}

.organizer {
    max-width: 900px;

    margin: 40px auto 0;

    padding: 25px;

    background: #eef6f8;

    border-radius: 15px;

    text-align: center;
}

.organizer p {
    margin: 5px;
}


/* =========================
   活動議程
========================= */

.schedule-section {
    background: #eef4f6;
}

.schedule-list {
    max-width: 950px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.schedule-item {
    display: grid;

    grid-template-columns: 180px 1fr;

    align-items: center;

    background: white;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05);
}

.time {
    min-height: 85px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 15px;

    background: #176b87;

    color: white;

    font-size: 18px;

    font-weight: bold;

    white-space: nowrap;
}

.time span {
    font-size: 18px;
}

.time .dash {
    font-size: 18px;
    margin: 0 1px;
}

.schedule-content {
    padding: 18px 25px;
}

.schedule-content h3 {
    margin-bottom: 3px;
}

.schedule-content p {
    color: #777;

    font-size: 14px;
}


/* =========================
   場地介紹
========================= */

.venue-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.venue-card {
    background: white;

    padding: 35px 25px;

    text-align: center;

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}

.venue-card:hover {
    transform: translateY(-5px);
}

.venue-icon {
    font-size: 50px;

    margin-bottom: 15px;
}

.venue-card h3 {
    margin-bottom: 10px;
}

.venue-card p {
    color: #777;

    font-size: 14px;
}


/* =========================
   場地圖片
========================= */

.venue-images {
    max-width: 1100px;

    margin: 55px auto 0;
}

.venue-images-title {
    text-align: center;

    margin-bottom: 30px;
}

.venue-images-title h3 {
    font-size: 25px;

    margin-bottom: 5px;
}

.venue-images-title p {
    color: #777;

    font-size: 14px;
}

.image-group {
    margin-bottom: 45px;
}

.image-title {
    margin-bottom: 15px;

    padding-left: 15px;

    border-left:
        5px solid #176b87;
}

.image-title span {
    font-size: 18px;

    font-weight: bold;

    color: #176b87;
}

.venue-image-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.venue-image-card {
    overflow: hidden;

    background: white;

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.venue-image-card:hover {
    transform: translateY(-5px);
}

.venue-image-card img {
    display: block;

    width: 100%;

    height: 300px;

    object-fit: cover;
}

.venue-image-card p {
    padding: 15px;

    text-align: center;

    font-size: 14px;

    color: #666;
}


/* =========================
   攤位
========================= */

.booths-section {
    background: #eef4f6;
}

.filter-buttons {
    max-width: 1100px;

    margin: 0 auto 35px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}

.filter-btn {
    padding: 10px 18px;

    border: none;

    border-radius: 30px;

    background: white;

    color: #555;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #176b87;

    color: white;
}

.booth-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.booth-card {
    background: white;

    padding: 25px;

    border-radius: 18px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}

.booth-card:hover {
    transform: translateY(-5px);
}

.booth-area {
    display: inline-block;

    padding: 5px 10px;

    margin-bottom: 12px;

    border-radius: 20px;

    background: #e6f2f5;

    color: #176b87;

    font-size: 12px;

    font-weight: bold;
}

.booth-card h3 {
    font-size: 21px;

    margin-bottom: 10px;
}

.booth-card p {
    color: #666;

    font-size: 14px;

    min-height: 75px;
}

.booth-button {
    width: 100%;

    margin-top: 18px;

    padding: 10px;

    border: none;

    border-radius: 8px;

    background: #176b87;

    color: white;

    cursor: pointer;

    font-weight: bold;
}

.booth-button:hover {
    background: #12566d;
}


/* =========================
   任務
========================= */

.mission-grid {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.mission-card {
    position: relative;

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);
}

.mission-number {
    color: #176b87;

    font-size: 18px;

    font-weight: bold;

    margin-bottom: 10px;
}

.mission-card h3 {
    font-size: 25px;

    margin-bottom: 12px;
}

.mission-card p {
    color: #666;
}

.mission-tag {
    display: inline-block;

    margin-top: 20px;

    padding: 6px 12px;

    border-radius: 20px;

    background: #eef6f8;

    color: #176b87;

    font-size: 13px;
}


/* =========================
   認證書
========================= */

.certificate-grid {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.certificate-card {
    padding: 40px;

    text-align: center;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);
}

.certificate-icon {
    font-size: 50px;

    margin-bottom: 15px;
}

.certificate-card h3 {
    margin-bottom: 10px;
}

.certificate-card p {
    color: #777;

    margin-bottom: 20px;
}

.download-unavailable {
    display: inline-block;

    padding: 10px 20px;

    border-radius: 8px;

    background: #eaf0f2;

    color: #40545c;

    font-weight: bold;
}


/* =========================
   活動成果
========================= */

.results-section {
    background: #eef4f6;
}

.results-box {
    max-width: 750px;

    margin: auto;

    padding: 60px 30px;

    background: white;

    text-align: center;

    border-radius: 20px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}

.result-icon {
    font-size: 55px;

    margin-bottom: 15px;
}

.results-box h3 {
    font-size: 25px;

    margin-bottom: 10px;
}

.results-box p {
    color: #777;
}

.upload-placeholder {
    margin-top: 25px;

    padding: 20px;

    border: 2px dashed #c8d8dd;

    border-radius: 12px;

    color: #888;
}


/* =========================
   集點
========================= */

.points-section {
    background: #176b87;

    color: white;
}

.points-section .section-title span {
    color: #b9e5ef;
}

.points-section .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.points-box {
    max-width: 600px;

    margin: auto;

    text-align: center;
}

.points-number {
    font-size: 65px;

    font-weight: bold;

    line-height: 1;
}

.points-number small {
    font-size: 25px;

    opacity: 0.7;
}

.points-box > p {
    margin: 12px 0;
}

.progress {
    height: 15px;

    background: rgba(255, 255, 255, 0.25);

    border-radius: 20px;

    overflow: hidden;

    margin: 25px 0 15px;
}

.progress-bar {
    width: 0%;

    height: 100%;

    background: white;

    transition: 0.4s;
}

.reset-button {
    margin-top: 20px;

    padding: 8px 18px;

    border: 1px solid white;

    border-radius: 20px;

    background: transparent;

    color: white;

    cursor: pointer;
}


/* =========================
   Footer
========================= */

footer {
    padding: 45px 20px;

    background: #123f4f;

    color: white;

    text-align: center;
}

footer h3 {
    margin-bottom: 8px;
}

footer p {
    opacity: 0.85;

    font-size: 14px;
}

.footer-small {
    margin-top: 10px;

    font-size: 12px;
}


/* =========================
   Modal
========================= */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 2000;

    background: rgba(0, 0, 0, 0.6);

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;

    width: 100%;

    max-width: 600px;

    max-height: 85vh;

    overflow-y: auto;

    padding: 35px;

    background: white;

    border-radius: 20px;
}

.modal-close {
    position: absolute;

    top: 15px;

    right: 20px;

    border: none;

    background: none;

    font-size: 30px;

    cursor: pointer;

    color: #555;
}

.modal-content h2 {
    color: #176b87;

    margin-bottom: 15px;
}

.modal-content p {
    color: #666;

    margin-bottom: 15px;
}

.modal-check-button {
    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 8px;

    background: #176b87;

    color: white;

    cursor: pointer;

    font-weight: bold;
}


/* =========================
   RWD
========================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 0 3%;
    }

    .navbar nav {
        gap: 10px;
    }

    .navbar nav a {
        font-size: 12px;
    }

    .info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .booth-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .navbar {
        height: auto;

        padding: 15px;

        flex-direction: column;

        gap: 12px;
    }

    .navbar nav {
        width: 100%;

        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 5px;
    }

    .navbar nav a {
        white-space: nowrap;
    }


    .hero {
        min-height: 550px;

        padding: 60px 25px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-theme {
        font-size: 24px;
    }


    .section {
        padding: 65px 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }


    .info-grid {
        grid-template-columns: 1fr;
    }


    .schedule-item {
        grid-template-columns: 1fr;
    }

    .time {
        min-height: 65px;

        font-size: 17px;
    }

    .time span {
        font-size: 17px;
    }

    .time .dash {
        font-size: 17px;
    }


    .venue-grid {
        grid-template-columns: 1fr;
    }


    .venue-image-grid {
        grid-template-columns: 1fr;
    }

    .venue-image-card img {
        height: auto;
    }


    .booth-grid {
        grid-template-columns: 1fr;
    }


    .mission-grid {
        grid-template-columns: 1fr;
    }


    .certificate-grid {
        grid-template-columns: 1fr;
    }


    .filter-buttons {
        justify-content: flex-start;
    }

}


@media (max-width: 400px) {

    .hero h1 {
        font-size: 40px;
    }

    .time {
        font-size: 16px;
        gap: 5px;
    }

    .time span {
        font-size: 16px;
    }

    .time .dash {
        font-size: 16px;
    }

}
