:root {
    --page-bg: #ffd900;
    --panel-bg: #009a4f;
    --panel-bg-soft: #0ba85a;
    --panel-border: #f7f3e8;
    --accent: #ff5a19;
    --accent-dark: #0e358f;
    --text: #ffffff;
    --muted: #d8dcff;
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fff06a 0, #ffd900 240px, #ffc900 100%),
        var(--page-bg);
    color: var(--text);
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

.hero {
    overflow: hidden;
    padding: 24px 16px;
    background:
        linear-gradient(180deg, #fff06a 0, #ffd900 240px, #ffc900 100%),
        var(--page-bg);
}

.hero picture {
    display: block;
    width: min(100%, 1280px);
    margin: 0 auto;
}

.hero img {
    width: 100%;
    height: auto;
    border: 5px solid var(--panel-border);
    border-radius: 18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.event-page {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 56px 0 64px;
}

.event-card {
    position: relative;
    margin-bottom: 56px;
    padding: 56px clamp(18px, 4vw, 56px) 40px;
    border: 5px solid var(--panel-border);
    border-radius: 18px;
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}

.event-card h2,
.notice-bar h2 {
    position: absolute;
    left: 50%;
    top: 0;
    min-width: 240px;
    margin: 0;
    padding: 12px 58px;
    border: 5px solid var(--panel-border);
    border-radius: 999px;
    background: var(--accent-dark);
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.event-card h2::before,
.event-card h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    aspect-ratio: 1;
    background: url("../images/list-icon1.png") center / contain no-repeat;
    transform: translateY(-50%);
}

.event-card h2::before {
    left: 22px;
}

.event-card h2::after {
    right: 22px;
    transform: translateY(-50%) scaleX(-1);
}

.event-time {
    padding-block: 62px 34px;
}

.event-time p {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2.45rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-align: center;
}

.method-list {
    display: grid;
    gap: 28px;
}

.synthesis-block {
    position: relative;
    overflow: hidden;
    padding: 24px clamp(10px, 3vw, 34px) 28px;
    border-radius: 18px;
}

.synthesis-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(12px, 3vw, 36px);
    align-items: center;
    justify-items: center;
    margin-inline: auto;
    max-width: 820px;
}

.synthesis-card {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 350px);
}

.synthesis-card img {
    width: min(100%, 350px);
    aspect-ratio: 350 / 230;
    border: 3px solid #f6d85b;
    border-radius: 8px;
    object-fit: cover;
    background: #0d3575;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3);
}

.package-card img {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.combine-text {
    color: #ff2f6b;
    font-size: clamp(1.65rem, 4vw, 3rem);
    font-weight: 600;
    text-shadow:
        2px 2px 0 #fff,
        -2px 2px 0 #fff,
        2px -2px 0 #fff,
        -2px -2px 0 #fff;
}

.synthesis-result {
    width: min(100%, 760px);
    margin: 24px auto 0;
    padding: 12px 18px;
    border: 4px solid #fff4b2;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: clamp(1.1rem, 2.4vw, 1.65rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.synthesis-note {
    margin: 14px 0 0;
    color: #eaf6d1;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    text-align: center;
}

.method-item {
    display: grid;
    gap: 10px;
    align-items: start;
}

.method-label {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    padding: 6px 16px;
    border: 2px solid #fff8da;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.method-copy {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.55;
}

.method-copy strong {
    color: #ffe95a;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 2.4vw, 28px);
}

.prize-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    min-width: 0;
    padding: clamp(8px, 1.8vw, 18px);
    border: 4px solid #d8c8a4;
    border-radius: 12px;
    background: #f7f4e8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.prize-card img {
    width: 100%;
    aspect-ratio: 350 / 230;
    object-fit: cover;
    background: #fff;
}

.prize-card h3 {
    align-self: center;
    overflow: hidden;
    margin: 0;
    padding: 4px 0 6px;
    color: #0878b1;
    font-size: clamp(0.68rem, 1.45vw, 1.1rem);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    transform: translateY(4px);
    white-space: nowrap;
    text-shadow:
        1px 1px 0 #fff17c,
        -1px 1px 0 #fff17c,
        1px -1px 0 #fff17c,
        -1px -1px 0 #fff17c;
}

.notice-bar {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    overflow: hidden;
    margin-top: 32px;
    border-radius: 4px;
    background: #f4f1ee;
    color: #26243f;
    box-shadow: var(--shadow);
}

.notice-bar h2 {
    position: static;
    min-width: 0;
    width: 120px;
    height: 120px;
    min-height: 120px;
    display: grid;
    place-items: center;
    align-self: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--accent-dark);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    transform: none;
    white-space: nowrap;
}

.notice-bar ul {
    display: grid;
    place-items: center;
    margin: 0;
    padding: 28px 34px;
    list-style: none;
    text-align: center;
}

.notice-bar li {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    line-height: 2;
}

.site-footer {
    background: #161622;
    color: #fff;
    text-align: center;
}

.footer-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 28px 20px;
}

.rating-logo {
    width: 64px;
    height: auto;
}

.footer-rating p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
}

.copyright {
    padding: 16px;
    background: #ff7a18;
}

@media (max-width: 768px) {
    .event-page {
        width: min(100% - 22px, 640px);
        padding: 42px 0 48px;
    }

    .hero {
        padding: 0;
    }

    .hero picture {
        width: 100%;
    }

    .hero img {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .event-card {
        margin-bottom: 44px;
        padding: 42px 12px 24px;
        border-width: 3px;
        border-radius: 12px;
    }

    .event-time {
        padding-block: 54px 24px;
    }

    .event-card h2,
    .notice-bar h2 {
        min-width: 160px;
        width: auto;
        min-height: 0;
        padding: 9px 38px;
        border-width: 3px;
        font-size: clamp(1.15rem, 5vw, 1.65rem);
    }

    .event-time p {
        letter-spacing: -0.02em;
    }

    .event-card h2::before,
    .event-card h2::after {
        width: 18px;
    }

    .event-card h2::before {
        left: 14px;
    }

    .event-card h2::after {
        right: 14px;
    }

    .synthesis-block {
        padding-inline: 0;
    }

    .synthesis-flow {
        grid-template-columns: 1fr;
        gap: 18px;
        justify-items: center;
        text-align: center;
    }

    .combine-text {
        line-height: 1;
    }

    .prize-grid {
        gap: 8px;
    }

    .prize-card {
        border-width: 2px;
        border-radius: 8px;
        gap: 12px;
        padding-bottom: 12px;
    }

    .prize-card img {
        border: 0;
        border-radius: 0;
    }

    .prize-card h3 {
        padding: 6px 0 8px;
    }

    .notice-bar {
        grid-template-columns: 1fr;
    }

    .notice-bar ul {
        padding: 22px 24px;
    }

    .footer-rating {
        flex-direction: column;
        gap: 12px;
    }

    .footer-rating p {
        text-align: center;
    }
}
