:root {
    --bg-color: #F7F5F0; 
    --text-main: #3E3A39; 
    --text-light: #706C69;
    --accent-color: #A38F7A; 
    --hot-color: #D27263; 
    --cold-color: #6398D2; 
    --menu-bg: #EBE6DF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Serif TC', serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(247, 245, 240, 0.85), rgba(247, 245, 240, 0.85)), url('marble.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

/* 頂部導航列 */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
}

.top-nav-bar.scrolled {
    height: 60px;
    background-color: rgba(247, 245, 240, 0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-title-mini {
    margin-left: 150px; 
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.nav-title-en {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.top-nav-bar.scrolled .nav-title-mini {
    opacity: 1;
    transform: translateY(0);
}

/* 漢堡選單按鈕 */
.menu-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 原有標題 */
header { text-align: center; padding: 90px 20px 20px; } 
header h1 { font-size: 2.2rem; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 5px; }
header p { font-size: 0.9rem; color: var(--text-light); letter-spacing: 0.15em; }

/* 側滑選單 */
.side-nav { position: fixed; top: 0; left: -300px; width: 250px; height: 100%; background-color: var(--menu-bg); z-index: 999; transition: 0.4s ease-in-out; padding-top: 80px; box-shadow: 2px 0 10px rgba(0,0,0,0.05); }
.side-nav.open { left: 0; }
.nav-link { display: block; padding: 15px 30px; color: var(--text-main); text-decoration: none; font-size: 1.1rem; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent-color); padding-left: 35px; }
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); z-index: 998; opacity: 0; pointer-events: none; transition: 0.3s; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* 分頁切換設定 */
main { max-width: 900px; margin: 0 auto; padding: 20px; min-height: 60vh; }
.page-section { display: none; }
.page-section.active { display: block; }
.section-title { text-align: center; font-size: 1.5rem; margin: 30px 0; position: relative; }
.section-title::after { content: ''; display: block; width: 40px; height: 2px; background-color: var(--accent-color); margin: 10px auto 0; }

/* 故事區塊 */
.story-container { max-width: 600px; margin: 0 auto; text-align: justify; }
.story-text { margin-bottom: 20px; line-height: 2; }
.story-image { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(62, 58, 57, 0.12); margin: 30px 0; object-fit: cover; }

/* 最新消息 */
.news-list { max-width: 600px; margin: 0 auto; }
.news-item { border-bottom: 1px dashed #D0CBC3; padding: 20px 0; }
.news-date { color: var(--accent-color); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 5px; }

/* 菜單區塊 */
.promo-banner { text-align: center; margin: 0 auto 30px; padding: 15px; max-width: 600px; border: 1px solid var(--accent-color); color: var(--accent-color); border-radius: 4px; font-weight: 600; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.menu-category h3 { font-size: 1.2rem; border-bottom: 1px dashed #D0CBC3; padding-bottom: 10px; margin-bottom: 20px; color: var(--accent-color); }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.item-info { display: flex; align-items: center; gap: 8px; }
.item-note { font-size: 0.75rem; color: var(--text-light); }
.temp-indicator { display: inline-flex; gap: 2px; }
.dot { width: 8px; height: 12px; border-radius: 4px; }
.dot.hot { background-color: var(--hot-color); }
.dot.cold { background-color: var(--cold-color); }
.recommend::before { content: '👍'; font-size: 0.9rem; margin-right: 5px; }
.temp-legend { margin-top: 40px; font-size: 0.85rem; color: var(--text-light); display: flex; justify-content: center; gap: 20px; }

/* 頁尾與地圖區塊 */
footer { margin-top: 80px; padding: 60px 20px; text-align: center; border-top: 1px solid #EBE6DF; }
.info-grid { display: flex; justify-content: center; gap: 50px; margin-bottom: 30px; }
.info-item h4 { font-size: 1rem; color: var(--accent-color); margin-bottom: 10px; }
.map-container { max-width: 600px; margin: 0 auto 30px; }
.map-btn { display: inline-flex; align-items: center; justify-content: center; background-color: var(--accent-color); color: #fff; padding: 12px 28px; border-radius: 30px; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.05em; transition: 0.3s ease; box-shadow: 0 4px 15px rgba(163, 143, 122, 0.3); margin-bottom: 20px; }
.map-btn:hover { background-color: #8c7a67; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(163, 143, 122, 0.4); }
.map-iframe-wrapper { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* 開場轉場動畫 */
.splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; text-align: center; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; }
.splash-screen.fade-out { opacity: 0; visibility: hidden; }
.splash-content h2 { font-size: 2.2rem; font-weight: 600; color: var(--text-main); letter-spacing: 0.2em; margin-bottom: 10px; animation: slideUp 1s ease-out forwards; }
.splash-content p { font-size: 1rem; color: var(--accent-color); letter-spacing: 0.15em; animation: slideUp 1.2s ease-out forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Fade-in up 動畫 */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.in-view { opacity: 1; transform: translateY(0); }

/* 季節菜單按鈕樣式與顯示邏輯 */
.menu-toggle-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.season-tab { background-color: transparent; border: 2px solid var(--accent-color); color: var(--accent-color); padding: 10px 24px; border-radius: 30px; font-size: 1.05rem; font-family: inherit; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.season-tab:hover { background-color: rgba(163, 143, 122, 0.1); }
.season-tab.active { background-color: var(--accent-color); color: #fff; box-shadow: 0 4px 15px rgba(163, 143, 122, 0.3); }

.season-menu { display: none; }
.season-menu.active { display: block; animation: fadeInMenu 0.4s ease-in-out; }
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 手機版響應式設計 */
@media (max-width: 768px) {
    .menu-grid { grid-template-columns: 1fr; gap: 30px; }
    .info-grid { flex-direction: column; gap: 20px; }
    .nav-title-mini { margin-left: 80px; font-size: 1.05rem; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; } 
    .nav-title-en { display: block !important; font-size: 0.75rem; margin-left: 0; margin-top: 2px; } 
    .menu-toggle-tabs { flex-direction: column; padding: 0 40px; }
}

/* =========================================
   營業狀態卡片 
   ========================================= */
.store-status-card {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px 30px;
    text-align: center;
    max-width: 280px;
    margin: 10px auto 60px; 
    box-shadow: 0 10px 30px rgba(163, 143, 122, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.status-badge {
    display: inline-block;
    padding: 8px 30px;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

/* 營業中 (綠色) */
.status-badge.open {
    background-color: #8BC34A;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
    animation: pulseGreen 2s infinite; 
}

/* 即將休息 (橘色) */
.status-badge.closing-soon {
    background-color: #F59E0B; 
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulseOrange 2s infinite; 
}

/* 新增：週三熱銷中 (紅色) */
.status-badge.promo {
    background-color: #E53935; 
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    /* 1.5s 讓呼吸頻率快一點，帶有急促熱銷感 */
    animation: pulseRed 1.5s infinite; 
}

/* 新增：已售完 (無動畫深灰色) */
.status-badge.sold-out {
    background-color: #706C69; 
    box-shadow: none; 
}

/* 休息中 (咖啡灰色) */
.status-badge.closed {
    background-color: #A38F7A; 
    box-shadow: 0 4px 15px rgba(163, 143, 122, 0.4);
}

.store-hours-text {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* 各種呼吸燈特效 */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(139, 195, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); }
}
@keyframes pulseOrange {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}
