:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2C3E50;
    --light: #F7F9FC;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    padding-bottom: 50px;
}

/* 背景裝飾 */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
}
.shape-1 { width: 300px; height: 300px; background: #FF9A9E; top: -50px; left: -50px; }
.shape-2 { width: 400px; height: 400px; background: #A1C4FD; bottom: -100px; right: -100px; }

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 30px 20px 20px; /* Reduced padding */
    background: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.badge {
    background: #E0F7FA;
    color: #006064;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.main-title {
    font-family: 'Fredoka One', 'Noto Sans TC', sans-serif;
    font-size: 2.2rem; /* Smaller title */
    line-height: 1.2;
    margin: 5px 0 10px;
    color: #FF6B6B;
    text-shadow: 2px 2px 0px white, 4px 4px 10px rgba(0,0,0,0.1);
}

.countdown-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFF3E0; /* Light orange pill */
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 5px;
    border: 1px solid #FFE0B2;
}

.time-block {
    background: transparent;
    color: #E65100;
    padding: 0;
    min-width: auto;
}

.time-block .number { font-size: 1rem; font-weight: bold; display: inline; }
.time-block .label { font-size: 0.8rem; opacity: 0.8; display: inline; margin-left: 2px; }
.separator { font-size: 1rem; color: #E65100; padding: 0 2px; font-weight: normal; }

/* Marquee */
.marquee-strip {
    background: #FFECB3;
    color: #F57C00;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.marquee-strip p {
    display: inline-block;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
    margin: 0;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Quick Nav */
.quick-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0 0 20px;
    padding: 0 15px;
}

.nav-item {
    text-decoration: none;
    text-align: center;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.2s;
}

.nav-item:hover { transform: translateY(-5px); }

.icon-circle {
    width: 50px; /* Smaller icons */
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: white;
}

.story-icon { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); color: #D81B60; }
.map-icon { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); color: #6A1B9A; }
.form-icon { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #00695C; }

/* Content Container */
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    color: var(--dark);
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: var(--primary);
    border-radius: 5px;
}

/* Timeline */
.timeline-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.timeline-row { display: flex; align-items: center; justify-content: space-between; }
.t-item { text-align: center; flex: 1; }
.t-time { display: block; font-weight: bold; font-size: 1.1rem; color: var(--primary); }
.t-desc { font-size: 0.85rem; color: #777; }
.t-line { flex: 1; height: 2px; background: #eee; margin: 0 10px; }

/* Search & Filter */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 1rem;
    outline: none;
}
.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.pill {
    background: white;
    border: 1px solid #eee;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    color: #666;
}
.pill.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

/* Booth Grid */
.booth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.booth-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s;
    border-bottom: 4px solid transparent;
}
.booth-card:active { transform: scale(0.98); }

.type-food { border-bottom-color: #FFB74D; }
.type-goods { border-bottom-color: #64B5F6; }
.type-game { border-bottom-color: #BA68C8; }

.booth-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.booth-class { font-weight: 900; color: #ccc; font-size: 1.2rem; }
.booth-tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: #eee; height: fit-content; }

.type-food .booth-tag { background: #FFF3E0; color: #E65100; }
.type-goods .booth-tag { background: #E3F2FD; color: #1565C0; }
.type-game .booth-tag { background: #F3E5F5; color: #7B1FA2; }

.booth-card h3 { margin: 0 0 6px 0; font-size: 1.1rem; color: var(--dark); }
.booth-desc { margin: 0 0 8px 0; font-size: 0.8rem; color: #666; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.booth-loc { margin: 0; font-size: 0.85rem; color: #888; display: flex; align-items: center; gap: 5px; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: popUp 0.3s ease;
}
@keyframes popUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #999; }
.full-map-btn { display: inline-block; margin-top: 15px; padding: 10px 20px; background: var(--secondary); color: white; border-radius: 10px; text-decoration: none; font-weight: bold; }

footer { text-align: center; color: #999; padding: 20px; font-size: 0.8rem; }

/* Event Day Mode (3/28) */
body.event-day-mode .countdown-container { display: none !important; }
body.event-day-mode .hero-section { padding: 20px 20px 10px; min-height: auto; margin-bottom: 15px; }
body.event-day-mode .main-title { font-size: 2rem; margin: 5px 0 10px; }
body.event-day-mode .badge { font-size: 0.9rem; padding: 4px 12px; margin-bottom: 5px; }
