/* ==========================================================================
   1. 品牌色彩體系與核心變數 (Reset & Custom Palette)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* 核心指定色彩 */
    --color-bg: #fff0d8;            /* 溫暖背景底色 */
    --color-title: #391b33;         /* 主題深邃標題色 */
    --color-pink: #eb60a2;          /* 亮麗桃粉 */
    --color-green: #24b369;         /* 活力青翠綠 */
    --color-blue: #2d83c5;          /* 晴空寶藍 */
    --color-yellow: #fbb316;        /* 陽光暖黃 */
    --color-yellow-light: #fde600;  /* 明亮金黃 */
    --color-red: #ef5160;           /* 典雅朱紅 */

    /* 淺色衍生色彩 */
    --color-pink-light: #fce7f1;
    --color-green-light: #e4f7ed;
    --color-blue-light: #e6f1f9;

    --border: #eedbc2;
    --white: #ffffff;
    --drawer-width: 310px;
    --header-height: 72px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-height);
}

body {
    /* font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
    color: var(--color-title);
    background-color: var(--color-bg);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ==========================================================================
   2. HTML 原生標籤 (h1~h6, table, select, option, img, a, ul, li, section)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-title);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--color-pink); }

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

li { margin-bottom: 0.35rem; }

section {
    padding: 4.5rem 0;
    position: relative;
}

/* 表格 Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(57, 27, 51, 0.05);
}

th, td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color: var(--color-title);
    color: #ffffff;
    font-weight: 700;
}

tr:hover td {
    background-color: var(--color-pink-light);
}

/* 下拉選單 Select & Option */
select {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    color: var(--color-title);
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23391b33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    cursor: pointer;
}

select:focus {
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(235, 96, 162, 0.2);
}

option { padding: 0.5rem; }

/* ==========================================================================
   3. 容器與 12 欄格線系統 (Container, Row, Col)
   ========================================================================== */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col {
    flex: 1 0 0%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-6  { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 0.75rem; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 0.75rem; }
    .col-md-10{ flex: 0 0 83.333333%; max-width: 83.333333%; padding: 0 0.75rem; }
    .col-md-12{ flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }
}

/* ==========================================================================
   4. 間距與輔助類別 (mt, mb, my, mx, pt, pb, py, px, text)
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-muted  { color: #6e4d68; }
.text-white  { color: #ffffff; }

/* 標籤徽章 */
.tag-pink   { background: var(--color-pink-light); color: var(--color-pink); border: 1px solid var(--color-pink); }
.tag-green  { background: var(--color-green-light); color: var(--color-green); border: 1px solid var(--color-green); }
.tag-blue   { background: var(--color-blue-light); color: var(--color-blue); border: 1px solid var(--color-blue); }
.tag-yellow { background: #fff8d6; color: #a36f00; border: 1px solid var(--color-yellow); }
.tag-red    { background: #ffebeb; color: var(--color-red); border: 1px solid var(--color-red); }

/* 按鈕系統 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--color-pink);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(235, 96, 162, 0.35);
}
.btn-primary:hover {
    background-color: #d8458b;
    color: var(--white);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--color-yellow);
    color: var(--color-title);
    box-shadow: 0 4px 14px rgba(251, 179, 22, 0.35);
}
.btn-secondary:hover {
    background-color: var(--color-yellow-light);
    color: var(--color-title);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border-color: var(--color-title);
    color: var(--color-title);
}
.btn-outline:hover {
    background: var(--color-title);
    color: var(--color-bg);
}
.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   5. Header 釘頂結構與自訂尺寸 LOGO (SVG, IMG, TEXT)
   ========================================================================== */
.header {
    background: rgba(255, 240, 216, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transform: none !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    position: relative;
}

/* Logo 基礎對齊與彈性樣式 */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0;
    line-height: 1;
}

/* 1. SVG 向量圖容器 (保證置中且等比例限制) */
.logo-svg-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: calc(var(--header-height) - 14px);
}
.logo-svg-wrapper svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
}

/* 2. 圖片模式 (自適應設定尺寸) */
.logo-img {
    display: block;
    object-fit: contain;
    max-height: calc(var(--header-height) - 14px);
    width: auto;
    border-radius: 0;
}

/* 3. 文字模式 */
.logo-text-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-title);
    white-space: nowrap;
}
.logo-icon {
    font-size: 1.4em;
    color: var(--color-pink);
    line-height: 1;
}
.logo-badge {
    background: var(--color-title);
    color: var(--color-yellow-light);
    font-size: 0.55em;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: middle;
}
.logo-text span {
    color: var(--color-pink);
}

@media (max-width: 991px) {
    .logo-svg-wrapper,
    .logo-img {
        max-width: 200px;
        max-height: 40px;
    }
    .logo-text-wrapper {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   6. 電腦版水平選單 (>= 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .nav-toggle,
    .nav-backdrop,
    .nav-drawer {
        display: none !important;
    }

    .desktop-nav-container {
        display: block !important;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 6px;
    }

    .nav-item {
        position: relative;
    }

    .nav-item-wrapper {
        display: inline-flex;
        align-items: center;
    }

    .nav-link {
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.95rem;
        color: var(--color-title);
        font-weight: 700;
    }

    .nav-link:hover {
        color: var(--color-pink);
        background-color: rgba(235, 96, 162, 0.1);
    }

    .submenu-toggle-btn {
        background: none;
        border: none;
        padding: 0 4px 0 0;
        pointer-events: none;
        color: inherit;
    }
    .arrow-icon {
        font-size: 0.85rem;
        transition: transform 0.2s ease;
        display: inline-block;
    }

    /* Active 狀態標記 */
    .nav-item.active > .nav-item-wrapper > .nav-link,
    .nav-link.active {
        color: var(--color-pink) !important;
        background-color: var(--color-pink-light);
        position: relative;
    }

    .nav-menu > .nav-item.active > .nav-item-wrapper > .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 14px;
        right: 14px;
        height: 3px;
        background-color: var(--color-pink);
        border-radius: 2px;
    }

    /* 下拉選單與 Hover 防斷觸 */
    .nav-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        min-width: 220px;
        background: #ffffff;
        border: 2px solid var(--border);
        box-shadow: 0 10px 25px rgba(57, 27, 51, 0.1);
        border-radius: 12px;
        padding: 6px;
        list-style: none;
        z-index: 1050;
    }
    .nav-dropdown::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }

    .nav-dropdown .nav-dropdown {
        top: -6px;
        left: calc(100% + 4px);
    }
    .nav-dropdown .nav-dropdown::before {
        top: 0;
        left: -10px;
        width: 10px;
        height: 100%;
    }

    .nav-item:hover > .nav-dropdown {
        display: block !important;
        animation: navFadeIn 0.2s ease forwards;
    }

    .nav-item:hover > .nav-item-wrapper .arrow-icon {
        transform: rotate(90deg);
    }
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. 移動端右側滑出抽屜 (< 992px，平板與手機)
   ========================================================================== */
@media (max-width: 991px) {
    .desktop-nav-container {
        display: none !important;
    }

    /* 漢堡按鈕 */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 1001;
        flex-shrink: 0;
    }
    .nav-toggle span {
        width: 100%;
        height: 3px;
        background: var(--color-title);
        border-radius: 2px;
        pointer-events: none;
    }

    /* 全螢幕黑底遮罩 (高權重置頂) */
    .nav-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(57, 27, 51, 0.75) !important;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99998 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .nav-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* 右側抽屜本體 */
    .nav-drawer {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: var(--drawer-width) !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--color-bg) !important;
        z-index: 99999 !important;
        box-shadow: -8px 0 25px rgba(57, 27, 51, 0.25) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow: hidden !important;
        visibility: hidden;
    }
    .nav-drawer.open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1.25rem !important;
        border-bottom: 2px solid var(--border) !important;
        background: var(--color-bg) !important;
        flex-shrink: 0;
    }
    .drawer-title {
        font-weight: 800;
        font-size: 1.2rem;
        color: var(--color-title);
    }
    .drawer-close {
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        color: var(--color-title);
        cursor: pointer;
        padding: 0 4px;
    }

    .drawer-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        background: var(--color-bg) !important;
    }

    .nav-menu {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        width: 100%;
    }

    .nav-item {
        border-bottom: 1px solid var(--border) !important;
        display: block !important;
        width: 100%;
    }

    .nav-item-wrapper {
        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .nav-link {
        flex: 1 1 auto !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        color: var(--color-title) !important;
        font-weight: 700 !important;
        display: block !important;
    }

    .submenu-toggle-btn {
        flex: 0 0 50px !important;
        width: 50px !important;
        background: none !important;
        border: none !important;
        border-left: 1px solid var(--border) !important;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--color-title) !important;
    }
    .arrow-icon {
        font-size: 1.25rem;
        transition: transform 0.25s ease;
        display: inline-block;
        pointer-events: none;
    }

    .nav-item.active > .nav-item-wrapper > .nav-link,
    .nav-link.active {
        color: var(--color-pink) !important;
        background-color: var(--color-pink-light);
    }

    /* 多層折疊子選單 */
    .nav-dropdown {
        display: none !important;
        list-style: none !important;
        background: #ffe8c2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .nav-dropdown .nav-link {
        padding-left: 2rem !important;
    }
    .nav-dropdown .nav-dropdown .nav-link {
        padding-left: 3rem !important;
    }

    .nav-item.open > .nav-dropdown {
        display: block !important;
    }
    .nav-item.open > .nav-item-wrapper .submenu-toggle-btn .arrow-icon {
        transform: rotate(90deg);
        color: var(--color-pink);
    }

    .drawer-footer {
        padding: 1.25rem !important;
        border-top: 2px solid var(--border) !important;
        flex-shrink: 0;
        background: var(--color-bg) !important;
    }
}

/* ==========================================================================
   8. 滿版無邊框主視覺 (Hero Visual Full: 桌機 16:9 / 手機切換 postermobile.jpg)
   ========================================================================== */
.hero-visual-full {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    margin-top: 0;
    border: none;
    overflow: hidden;
    background-color: var(--color-title);
}

.hero-visual-picture {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* 電腦與平板 (>= 768px)：強制 16:9 滿版比例 */
/* @media (min-width: 768px) {
    .hero-visual-picture {
        aspect-ratio: 16 / 9;
    }
} */

/* 手機版 (<= 767px)：依 postermobile.jpg 圖片自適應比例展開 */
@media (max-width: 767px) {
    .hero-visual-picture {
        aspect-ratio: auto;
    }
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: none;
    border-radius: 0;
}

.hero-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2.5rem;
    background: linear-gradient(to top, rgba(57, 27, 51, 0.85) 0%, rgba(57, 27, 51, 0.25) 45%, transparent 100%);
    color: #ffffff;
    pointer-events: none;
}

.hero-visual-overlay .container {
    pointer-events: auto;
}

.hero-full-title {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-full-subtitle {
    font-size: 1.25rem;
    color: var(--color-yellow-light);
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
    .hero-visual-overlay {
        padding-bottom: 1.25rem;
    }
    .hero-full-title {
        font-size: 1.6rem;
    }
    .hero-full-subtitle {
        font-size: 0.95rem;
    }
    .hero-visual-overlay .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   9. 活動內容展示與排版卡片 (樂器、特展、闖關、流程)
   ========================================================================== */
.badge-pill {
    display: inline-block;
    background: var(--color-title);
    color: var(--color-yellow-light);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
}

.event-info-cards {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 15px rgba(57, 27, 51, 0.05);
}
.info-icon { font-size: 1.8rem; margin-bottom: 4px; }
.info-label { font-size: 0.85rem; color: #855f7d; }
.info-val { font-size: 1.15rem; font-weight: 800; color: var(--color-title); }

.section-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
}
.section-title { font-size: 2.2rem; }
.lead-text { font-size: 1.15rem; font-weight: 700; color: var(--color-title); }

.about-image-wrapper {
    position: relative;
    display: inline-block;
}
.about-img {
    border: 4px solid #ffffff;
    box-shadow: 0 12px 25px rgba(57, 27, 51, 0.12);
}
.about-image-badge {
    position: absolute;
    bottom: -12px;
    right: 20px;
    background: var(--color-yellow);
    color: var(--color-title);
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.highlight-boxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.highlight-pill {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.card {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    position: relative;
    box-shadow: 0 6px 15px rgba(57, 27, 51, 0.04);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(57, 27, 51, 0.1);
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
}
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.challenge-cta-section {
    background: #ffffff;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}
.cta-steps-row {
    max-width: 1100px;
    margin: 0 auto;
}
.cta-step-box {
    background: var(--color-bg);
    border: 2px dashed var(--color-pink);
    border-radius: 998px;
    padding: 6px;
}
.step-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-pink);
}
.step-txt {
    font-weight: 700;
    font-size: 0.95rem;
}

.table-responsive { overflow-x: auto; }
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.schedule-table th, .schedule-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.schedule-table th {
    background-color: var(--color-title);
    color: #ffffff;
    font-weight: 700;
}
.schedule-table tr:hover td {
    background-color: var(--color-pink-light);
}
.table-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
}

/* 闖關挑戰卡頁面專用元件 */
.challenge-board {
    background: #ffffff;
    border-radius: 16px;
    border: 3px dashed var(--color-pink);
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(57, 27, 51, 0.08);
}
.mission-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 2px solid transparent;
}
.border-pink   { border-color: var(--color-pink); }
.border-blue   { border-color: var(--color-blue); }
.border-yellow { border-color: var(--color-yellow); }
.border-green  { border-color: var(--color-green); }

.mission-icon { font-size: 2.2rem; margin-bottom: 4px; }
.mission-desc { font-size: 0.88rem; color: #633659; min-height: 48px; }
.stamp-box {
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85rem;
}
.stamp-pink   { background: var(--color-pink-light); color: var(--color-pink); }
.stamp-blue   { background: var(--color-blue-light); color: var(--color-blue); }
.stamp-yellow { background: #fff8d6; color: #8f6100; }
.stamp-green  { background: var(--color-green-light); color: var(--color-green); }

.rule-box {
    background: #fdf5e9;
    border: 2px solid var(--border);
    padding: 1.25rem;
    border-radius: 8px;
}

/* ==========================================================================
   10. 組織單位 RWD 頁尾 (Footer: 主辦/協辦/承辦/執行)
   ========================================================================== */
.footer {
    background-color: var(--color-title);
    color: #eedbc2;
}
.footer-org-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.org-group {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
}
.org-title {
    font-size: 1.15rem;
    color: var(--color-yellow-light);
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-pink);
    display: inline-block;
}
.org-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.org-list li {
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
    color: #eedbc2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.org-tag {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom-flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
.footer-links a { color: #eedbc2; font-size: 0.85rem; }
.footer-links a:hover { color: var(--color-yellow-light); }
.footer-links .sep { color: #66435f; margin: 0 0.5rem; }