/* 全局變數 */
:root {
    --primary-color: #FF7043; /* 活力橙色，用於按鈕、強調 */
    --secondary-color: #FFA726; /* 溫暖橘色，用於背景、副標題 */
    --tertiary-color: #6D4C41; /* 深咖啡色，用於主要文字 */
    --background-light: #F4F0E8; /* 淺米色背景，溫暖舒適 */
    --background-dark: #3E2723; /* 深咖啡背景，用於導航和頁腳 */
    --text-light: #FFFFFF; /* 淺色文字 */
    --text-dark: #333333; /* 深色文字 */
    --card-bg: #FFFFFF; /* 卡片背景 */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 柔和的陰影 */
    --border-radius-lg: 15px; /* 大圓角 */
    --border-radius-sm: 8px; /* 小圓角 */
    --font-heading: 'Playfair Display', serif; /* 標題字體 */
    --font-body: 'Lato', sans-serif; /* 內文字體 */
    --transition-speed: 0.4s ease; /* 過渡動畫速度 */
}

/* 基本樣式重置和字體設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth; /* 平滑滾動 */
}

/* 主容器，用於限制內容最大寬度並居中 */
.main-container {
    width: 100%;
    max-width: 600px; /* 手機優先，限制最大寬度 */
    margin: 0 auto;
    background-color: transparent; /* 背景透明，讓 body 的背景顯示 */
}

/* 區塊內邊距 */
.section-padded {
    padding: 30px 15px; /* 手機上下左右內邊距 */
}

/* 標題共用樣式 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--tertiary-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* 動畫分隔線 */
.animated-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
    animation: pulseLine 2s infinite alternate; /* 新增動畫 */
}

@keyframes pulseLine {
    0% { transform: scaleX(0.8); opacity: 0.6; }
    100% { transform: scaleX(1); opacity: 1; }
}


/* 按鈕樣式 */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: bold;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 卡片基礎樣式 */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 25px;
}

/* 導航列 */
.navbar {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000; /* 確保在最上層 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.navbar .logo span {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar .nav-links {
    list-style: none;
    display: none; /* 預設在手機上隱藏 */
    flex-direction: column;
    position: absolute;
    top: 68px; /* 根據導航列高度調整 */
    left: 0;
    width: 100%;
    background-color: var(--background-dark);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.navbar .nav-links.active {
    display: flex; /* 當 active 時顯示 */
}

.navbar .nav-links li {
    text-align: center;
    margin: 10px 0;
}

.navbar .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 17px;
    padding: 8px 15px;
    transition: color var(--transition-speed), background-color var(--transition-speed);
    display: block;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
}

.menu-toggle {
    display: flex; /* 在手機上顯示漢堡選單 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* 漢堡選單動畫 */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* 英雄區塊 */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-bg.jpg') center/cover no-repeat; /* 假設有一張背景圖 */
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px; /* 手機上下更多空間 */
    height: 60vh; /* 調整高度，讓手機畫面更緊湊 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* 用於背景圖定位 */
}

/* 如果沒有hero-bg.jpg，可以考慮使用純色或漸變 */
/* .hero-section {
    background: linear-gradient(to bottom right, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */


.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 活動地點區塊 */
.location-card {
    text-align: center;
}

.location-card .click-tip {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.location-buttons {
    display: flex;
    flex-direction: column; /* 手機上按鈕垂直堆疊 */
    gap: 15px;
    margin-bottom: 25px;
}

.location-buttons button {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: 100%;
    text-align: left; /* 文字靠左 */
    line-height: 1.5;
}

.location-buttons button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.location-buttons button .location-name {
    font-weight: bold;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.location-buttons button .activity-name {
    font-size: 15px;
    display: block;
}

.location-buttons button .activity-date {
    font-size: 14px;
    opacity: 0.9;
    display: block;
}

.google-map {
    display: none; /* 初始隱藏 */
    margin-top: 20px;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.08);
}

.map-detail-info {
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.map-detail-info strong {
    color: var(--primary-color);
    font-size: 18px;
}

.map-detail-info p {
    font-size: 15px;
    margin-top: 5px;
    color: var(--tertiary-color);
}

.google-map iframe {
    border-radius: var(--border-radius-sm);
}

/* 飲品菜單區塊 */
.menu-section {
    background-color: #EFEBE9; /* 淺咖啡色背景 */
}

.menu-card {
    text-align: center;
    padding: 15px; /* 圖片卡片內邊距小一點 */
}

.menu-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.menu-image:hover {
    transform: scale(1.03); /* 放大效果 */
}

.image-caption {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.popular-drinks-card h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popular-item {
    color: var(--text-light);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.popular-item:hover {
    transform: translateX(5px); /* 輕微右移 */
}

.popular-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.popular-item p {
    font-size: 15px;
    opacity: 0.9;
}

/* 社群媒體區塊 */
.social-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px; /* 稍微大一點 */
}

.social-link {
    display: flex;
    flex-direction: column; /* 圖標和文字垂直排列 */
    align-items: center;
    text-decoration: none;
    color: var(--tertiary-color);
    gap: 10px;
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.social-link:hover {
    transform: scale(1.08);
    color: var(--primary-color);
}

.social-icon {
    width: 70px; /* 增大圖標 */
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.social-link span {
    font-size: 17px;
    font-weight: bold;
}

/* 系統通知 */
.notification-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #DCEDC8; /* 淺綠色背景 */
    color: #2E7D32; /* 深綠色文字 */
    border: 1px solid #8BC34A; /* 綠色邊框 */
    border-radius: var(--border-radius-sm);
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
}

.notification .dot {
    width: 10px;
    height: 10px;
    background-color: #4CAF50; /* 綠色點 */
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* 關於我們/聯絡與認證區塊 */
.about-card {
    text-align: center;
}

.about-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--tertiary-color);
}

.about-card p i {
    color: #4CAF50; /* 認證圖標綠色 */
    margin-right: 8px;
}

.about-card .contact-info-title {
    margin-top: 25px;
    color: var(--tertiary-color);
}


/* 頁腳 */
.footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 25px 15px;
    margin-top: auto; /* 將頁腳推到底部 */
    font-size: 14px;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* 桌面和平板響應式調整 */
@media screen and (min-width: 768px) {
    .main-container {
        max-width: 960px; /* 桌面平板最大寬度 */
    }

    .section-padded {
        padding: 50px 30px; /* 增大內邊距 */
    }

    .section-header h2 {
        font-size: 38px;
    }

    .section-header p {
        font-size: 18px;
    }

    /* 導航列桌面樣式 */
    .navbar {
        padding: 20px 40px;
    }

    .navbar .logo img {
        width: 50px;
        height: 50px;
    }

    .navbar .logo span {
        font-size: 24px;
    }

    .menu-toggle {
        display: none; /* 在桌面隱藏漢堡選單 */
    }

    .navbar .nav-links {
        display: flex; /* 在桌面顯示導航連結 */
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .navbar .nav-links li {
        margin: 0 15px;
    }

    .navbar .nav-links a {
        font-size: 18px;
    }

    .hero-section {
        padding: 120px 30px;
        height: 70vh; /* 桌面高度可以更大 */
    }

    .hero-section h1 {
        font-size: 60px;
    }

    .hero-section p {
        font-size: 22px;
    }

    .location-buttons {
        flex-direction: row; /* 桌面按鈕水平排列 */
        justify-content: center;
    }

    .location-buttons button {
        width: 48%; /* 讓兩個按鈕平分寬度 */
        padding: 20px 25px;
        font-size: 17px;
    }

    .map-detail-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* 內容過多時換行 */
    }

    .map-detail-info strong,
    .map-detail-info p {
        flex-basis: 48%; /* 平分空間 */
        text-align: left;
    }

    .menu-image {
        max-width: 700px; /* 限制菜單圖片在桌面上的最大寬度 */
        margin: 0 auto;
    }

    .popular-drinks-card {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 自動適應多欄 */
        gap: 20px;
        margin-top: 30px;
    }

    .popular-drinks-card h3 {
        grid-column: 1 / -1; /* 標題佔滿所有列 */
        margin-bottom: 0; /* 調整間距 */
    }

    .popular-item {
        margin-bottom: 0; /* 在 grid 中不需要 margin-bottom */
    }

    .social-link {
        flex-direction: row; /* 在桌面讓圖標和文字水平排列 */
        gap: 15px;
    }

    .social-icon {
        width: 80px;
        height: 80px;
    }

    .social-link span {
        font-size: 18px;
    }

    .about-card p {
        font-size: 16px;
    }
}

/* 大桌面螢幕 */
@media screen and (min-width: 1024px) {
    .main-container {
        max-width: 1100px;
    }

    .hero-section h1 {
        font-size: 72px;
    }

    .hero-section p {
        font-size: 24px;
    }
}
/* 英雄區塊 */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-bg.jpg') center/cover no-repeat; /* 預設背景，若您的圖片路徑有誤則會顯示 */
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px; /* 手機上下更多空間 */
    height: 60vh; /* 調整高度，讓手機畫面更緊湊 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* 用於背景圖定位 */
}

/* 更新後的背景，請確保 assets 資料夾中有 hero-bg.jpg，或者將其替換為您的 "區塊背景一.png" 並更新路徑 */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/區塊背景一.png') center/cover no-repeat;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}