/* ==========================================================================
   2026 中秋月圓素烤趣 - 專屬樣式表 (Midnight Indigo & Ember Glow)
   ========================================================================== */

:root {
    --bg-dark: #0b0f1d;
    --bg-surface: #12182d;
    --bg-surface-elevated: #1a2340;
    --primary-moon: #ffd166;
    --primary-moon-glow: rgba(255, 209, 102, 0.45);
    --accent-ember: #ff6b4a;
    --accent-ember-dark: #e76f51;
    --accent-green: #06d6a0;
    --text-main: #f8f9fa;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --border-glass: rgba(255, 209, 102, 0.18);
    --border-glass-active: rgba(255, 209, 102, 0.6);
    --glass-card-bg: rgba(22, 30, 56, 0.72);
    --shadow-deep: 0 20px 45px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(255, 209, 102, 0.2);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 重設與全域設定 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 動態星空與滿月光暈背景 */
.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 80% 15%, #253365 0%, #0d1222 65%, #070a14 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, #ffd166, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 230px 190px, rgba(255,255,255,0.7), rgba(0,0,0,0));
    background-size: 350px 350px;
    opacity: 0.65;
    animation: twinkleStars 12s infinite ease-in-out;
}

@keyframes twinkleStars {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.85; }
}

.glowing-moon {
    position: absolute;
    top: 8%;
    right: 10%;
    width: clamp(140px, 20vw, 240px);
    height: clamp(140px, 20vw, 240px);
    background: radial-gradient(circle at 35% 35%, #fffdf0 0%, #ffd166 60%, #f4a261 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(255, 209, 102, 0.45),
        0 0 120px rgba(255, 209, 102, 0.25),
        inset 0 0 35px rgba(255, 255, 255, 0.8);
    opacity: 0.88;
    filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.4));
    animation: floatMoon 8s ease-in-out infinite alternate;
}

@keyframes floatMoon {
    from { transform: translateY(0px) scale(1); }
    to { transform: translateY(-15px) scale(1.02); }
}

.lantern {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 15px rgba(255, 107, 74, 0.6));
    animation: swayLantern 6s ease-in-out infinite alternate;
}

.lantern-1 { top: 12%; left: 8%; animation-delay: 0s; }
.lantern-2 { top: 22%; right: 28%; animation-delay: -3s; }

@keyframes swayLantern {
    0% { transform: translateY(0) rotate(-6deg); }
    100% { transform: translateY(20px) rotate(6deg); }
}

/* 毛玻璃卡片通用樣式 */
.glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glass-active);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

/* 頂部導覽列 (遵守 RULES.md 規範) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
    background: rgba(11, 15, 29, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.85rem 2rem;
    background: rgba(11, 15, 29, 0.95);
    border-bottom-color: var(--border-glass);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 10px var(--primary-moon-glow));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-moon);
    background: rgba(255, 209, 102, 0.1);
}

/* 按鈕風格 */
.btn-primary, .btn-primary-outline, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-ember) 0%, #f77f00 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 74, 0.55);
    filter: brightness(1.08);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary-moon);
    border: 1.5px solid var(--primary-moon);
}

.btn-primary-outline:hover {
    background: var(--primary-moon);
    color: var(--bg-dark);
    box-shadow: 0 0 18px var(--primary-moon-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.pulse-btn {
    animation: buttonPulse 2.8s infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(255, 107, 74, 0.75), 0 0 15px rgba(255, 209, 102, 0.4); }
}

/* 主要版面設定 */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6.5rem 1.5rem 4rem;
}

/* Hero 區塊 */
.hero-section {
    padding: 3rem 0 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 820px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-moon);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-ember);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.main-title {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #ffd166 0%, #ff6b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.78em;
    margin-top: 0.3rem;
}

.subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

/* 倒數計時卡片 */
.countdown-wrapper {
    display: inline-block;
    padding: 1.5rem 2.2rem;
    margin-bottom: 2.5rem;
    border-color: rgba(255, 209, 102, 0.25);
    background: rgba(18, 24, 45, 0.85);
}

.countdown-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-moon);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-val {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.time-unit {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}

.time-colon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-ember);
    line-height: 1;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-accent {
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.35);
    background: rgba(255, 209, 102, 0.08);
    font-weight: 600;
}

/* 區段標題共通風格 */
.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-ember);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-ember), var(--primary-moon));
    margin: 0.8rem auto 1rem;
    border-radius: var(--radius-full);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 盛宴亮點 Grid */
.highlights-section {
    padding: 4rem 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.highlight-card {
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.card-icon {
    font-size: 1.8rem;
}

.highlight-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 活動詳情 Grid */
.details-section {
    padding: 4rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.detail-card {
    padding: 1.8rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.detail-content h3 {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.price-free {
    color: var(--accent-green);
    font-size: 1.3rem;
}

.deadline-text {
    color: var(--accent-ember);
}

.sub-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 地圖整合 */
.map-container {
    overflow: hidden;
    padding: 0;
}

.map-embed-wrapper iframe {
    display: block;
}

.map-action-bar {
    padding: 1.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 24, 45, 0.9);
    flex-wrap: wrap;
    gap: 1.2rem;
}

.location-desc h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.location-desc p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
}

/* 報名表單區塊 */
.register-section {
    padding: 4rem 0;
}

.form-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2.8rem;
    background: rgba(18, 24, 45, 0.82);
}

.form-header {
    text-align: center;
    margin-bottom: 2.6rem;
}

.form-badge {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-moon);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.form-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.form-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
}

.tab-btn {
    padding: 0.55rem 1.3rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background: var(--primary-moon);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.35);
}

.form-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* 查詢模式 Box */
.query-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 2.2rem;
}

.query-input-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.query-btn {
    white-space: nowrap;
    padding: 0.75rem 1.6rem;
}

.query-message {
    margin-top: 0.8rem;
    font-size: 0.92rem;
    color: var(--accent-ember);
    font-weight: 500;
}

/* 表單控制元件 */
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.6rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-moon);
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
}

.required {
    color: var(--accent-ember);
}

.styled-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.styled-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary-moon);
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.25);
}

.styled-textarea {
    resize: vertical;
    min-height: 85px;
}

/* 步進數字按鈕 */
.number-stepper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.step-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--primary-moon);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-btn:hover {
    background: var(--primary-moon);
    color: var(--bg-dark);
}

.text-center {
    text-align: center;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Radio 卡片網格 (符合 RULES.md) */
.radio-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.radio-card-grid.grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-body {
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radio-badge {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
    display: block;
}

.radio-card-body p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.radio-card input[type="radio"]:checked + .radio-card-body {
    background: rgba(255, 209, 102, 0.12);
    border-color: var(--primary-moon);
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.2);
    transform: translateY(-2px);
}

.radio-card input[type="radio"]:checked + .radio-card-body .radio-badge {
    color: var(--primary-moon);
}

/* Checkbox 卡片清單 */
.checkbox-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.checkbox-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-card-body {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.check-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.check-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-body {
    background: rgba(6, 214, 160, 0.1);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(6, 214, 160, 0.2);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-body .check-title {
    color: var(--accent-green);
}

/* Turnstile 置中 */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0;
}

/* 按鈕群組 */
.form-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.btn-danger {
    padding: 0.85rem 1.5rem;
    background: rgba(231, 111, 81, 0.15);
    border: 1px solid var(--accent-ember-dark);
    color: #ff8b73;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    background: var(--accent-ember-dark);
    color: #ffffff;
}

.submit-btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.form-message {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid var(--accent-green);
    color: #55efc4;
}

.form-message.error {
    display: block;
    background: rgba(255, 107, 74, 0.15);
    border: 1px solid var(--accent-ember);
    color: #ff7675;
}

/* 頁尾 Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(7, 10, 20, 0.95);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-moon);
    margin-bottom: 0.4rem;
}

.footer-sub {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.copyright {
    font-size: 0.8rem;
    color: #64748b;
}

/* Scroll Reveal 動畫 */
.reveal, .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 飄動火星微粒 (Sparks) */
.floating-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.spark {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: var(--accent-ember);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-ember);
    opacity: 0;
    animation: riseUp 7s infinite linear;
}

@keyframes riseUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    15% { opacity: 0.9; }
    80% { opacity: 0.7; }
    100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ==========================================================================
   RWD 手機與平板適應
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        padding: 0.9rem 1.2rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .nav-menu .nav-link {
        display: none; /* 手機版簡化選單，保留主頁與報名按鈕 */
    }

    .nav-menu .nav-link[href="/"] {
        display: inline-block;
    }

    .btn-primary-outline {
        padding: 0.5rem 1rem;
        font-size: 0.88rem;
    }

    .main-title {
        font-size: 2.1rem;
    }

    .form-wrapper {
        padding: 2rem 1.4rem;
    }

    .query-input-group {
        flex-direction: column;
    }

    .time-box {
        min-width: 48px;
        padding: 0.4rem 0.5rem;
    }

    .time-val {
        font-size: 1.4rem;
    }

    .map-action-bar {
        flex-direction: column;
        text-align: center;
    }

    .map-btn {
        width: 100%;
    }
}
