/* =========================================
   0. 字體定義 (Font Face Definitions)
   檔案格式：.woff2 (Web Open Font Format 2) - 更輕量、載入更快
   ========================================= */

/* --- 1. Lora (英文襯線體 - 優雅) --- */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/lara/Lora-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Lora';
    src: url('/fonts/lara/Lora-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Lora';
    src: url('/fonts/lara/Lora-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

/* --- 2. Noto Sans TC (中文黑體 - 清晰) --- */
@font-face {
    font-family: 'Noto Sans TC';
    src: url('/fonts/NotoSansTC/NotoSansTC-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Noto Sans TC';
    src: url('/fonts/NotoSansTC/NotoSansTC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Noto Sans TC';
    src: url('/fonts/NotoSansTC/NotoSansTC-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

/* =========================================
   0.1 基礎重置 & 變數定義
   ========================================= */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #333;
    --accent-color: #E8A2A2;
    --bg-color: #Fdfdfd;

    /* [核心字體設定] */
    --font-main: 'Lora', 'Noto Sans TC', serif;
    --font-eng: 'Lora', serif; /* 純英文標題用 */
    --font-serif: 'Noto Serif TC', serif; /* 中文襯線備用 */

    /* 配色變數 */
    --lace-bg: #F5F3F0;      
    --lace-border: #AC9F95;  
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;
    
    /* ✅ 給內容預留空間，避免被 Fixed Header 擋住 */
    padding-top: 140px; 

    font-family: var(--font-main);
    font-weight: 400; 
    
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================================
   0.2 特殊文字樣式 (Utility Classes)
   ========================================= */

h1, h2, h3, .page-main-title, .feed-title, .hero-title {
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 1px;
}

blockquote, .intro-text, .quote-style {
    font-family: var(--font-main);
    font-weight: 300;       
    font-style: italic;     
    color: #555;
}

.logo-text, .h-link, #searchBtn, .nav-item, .brand-name, .brand-slogan {
    font-family: var(--font-main);
}

.page-main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5d5d5d;
    margin: 40px 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 20px;
}

/* =========================================
   1. Header & Logo (保持原樣，確保 Fixed)
   ========================================= */
#header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002; 
    padding: 0; 
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: #444;
    text-transform: uppercase;
    line-height: 1.2;
}

.brand-slogan {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    line-height: 1.2;
}

.header-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 35px;
    align-items: center;
}

.h-link {
    text-decoration: none;
    color: #999;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: 0.3s;
}

.h-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

#searchBtn {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

#searchBtn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.search-content { text-align: center; width: 80%; position: relative; } 
.search-content input {
    width: 70%;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-bottom: 2px solid #333;
    background: transparent;
    outline: none;
    font-family: var(--font-main);
}
.submit-search {
    padding: 10px 30px;
    margin-top: 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
    font-family: var(--font-main);
}
.submit-search:hover { background-color: var(--accent-color); }

.close-search {
    position: absolute; top: 20px; right: 30px;
    font-size: 3rem; cursor: pointer;
}

.hamburger-btn, .mobile-drawer, .mobile-drawer-overlay {
    display: none;
}

/* =========================================
   2. 輪播圖 (Slider) - ✅ 4:3 比例
   ========================================= */
.hero-slider {
    position: relative;
    width: 94%; 
    max-width: 1200px;
    /* ✅ 強制比例為 4:3 (4080x3060) */
    aspect-ratio: 4 / 3;
    height: auto; 
    margin: 30px auto;
    border-radius: 25px;
    border: 4px double var(--lace-border);
    padding: 6px;
    background-color: var(--lace-bg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    background-clip: padding-box;
}
.slide.active { opacity: 1; }

/* 右下角文字標籤樣式 */
.slide-caption {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6); /* 半透明黑底 */
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-family: var(--font-eng, sans-serif);
    font-size: 1rem;
    letter-spacing: 1px;
    border-left: 4px solid #e53935; /* 紅色裝飾線 */
    backdrop-filter: blur(4px); /* 毛玻璃效果 */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s; /* 延遲進場動畫 */
    z-index: 5;
}

.slide.active .slide-caption {
    opacity: 1;
    transform: translateY(0);
}

.prev-btn, .next-btn {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none; padding: 10px 15px;
    cursor: pointer; font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s;
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.prev-btn:hover, .next-btn:hover {
    background: var(--lace-bg);
    color: var(--lace-border);
}

/* =========================================
   3. 電腦版導覽列 (Desktop Nav)
   ========================================= */
.mobile-grid-nav, .mobile-more-menu { display: none; }

.desktop-nav {
    background-color: var(--lace-bg);
    border-top: 2px solid var(--lace-border);
    border-bottom: 2px solid var(--lace-border);
    padding: 5px 0;
    margin-top: 0; 

    /* Smart Sticky 設定 */
    position: fixed; 
    top: 80px; 
    left: 0;
    width: 100%;
    z-index: 1001; 
    transition: transform 0.3s ease-in-out;
}

.desktop-nav.nav-hidden { transform: translateY(-100%); }
.desktop-nav.nav-visible { transform: translateY(0); }

.desktop-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0; margin: 0;
    flex-wrap: wrap;
}
.desktop-nav li { margin: 0; position: relative; }
.desktop-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    display: block;
    padding: 15px 12px;
    font-size: 0.85rem;
    transition: 0.3s;
}
.desktop-nav a:hover { 
    color: var(--accent-color);
    background-color: rgba(255,255,255,0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background-color: var(--lace-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 101;
    border: 2px solid var(--lace-border);
    border-top: none;
}
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-align: left;
    display: block;
}
.dropdown-content a:hover { background-color: rgba(255,255,255,0.5); }
.dropdown-item:hover .dropdown-content { display: block; }

/* =========================================
   4. 地圖區域 (Map Section)
   ========================================= */
.map-section { padding-bottom: 40px; }

h2.section-title {
    text-transform: uppercase;
    text-align: center;
    font-size: 1.8rem;
    margin: 60px 0 40px;
    letter-spacing: 2px;
    font-weight: 700;
}

.desktop-map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: auto; 
    aspect-ratio: 0.8; 
    margin: 0 auto;
}

.taiwan-map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.main-map-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }

/* 圓圈與方塊按鈕 */
.region-circle {
    position: absolute;
    width: 11%; 
    height: auto; 
    aspect-ratio: 1; 
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: clamp(12px, 1.4vw, 18px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: 0.3s;
    cursor: pointer;
}

.region-square {
    position: absolute;
    width: 11%;
    height: auto;
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: clamp(11px, 1.2vw, 16px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: 0.3s;
    cursor: pointer;
}

.region-circle:hover { background: var(--accent-color); color: #fff; box-shadow: 0 6px 15px rgba(0,0,0,0.2); border-color: var(--accent-color); }
.region-square:hover { background: #800020; color: #fff; box-shadow: 0 6px 15px rgba(0,0,0,0.2); border-color: #800020; }

.pos-north { top: 2%; left: 53%; transform: translateX(-50%); }
.pos-north:hover { transform: translateX(-50%) scale(1.1); }
.pos-central { top: 40%; left: 20%; transform: scale(1); }
.pos-central:hover { transform: scale(1.1); }
.pos-south { bottom: 15%; left: 42%; transform: translateX(-50%); }
.pos-south:hover { transform: translateX(-50%) scale(1.1); }
.pos-east { top: 45%; right: 10%; transform: scale(1); }
.pos-east:hover { transform: scale(1.1); }
.pos-islands { top: 5%; left: 34%; right: auto; transform: scale(1); }
.pos-islands:hover { transform: scale(1.1); }

.mobile-region-list { display: none; }

/* =========================================
   5. 文章列表 (Articles - 首頁用)
   ========================================= */
.articles-section { max-width: 1000px; margin: 0 auto; padding: 20px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.article-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s, opacity 0.5s ease; }
.article-card:hover { transform: translateY(-5px); }
.card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-info { padding: 15px; }
.card-info h3 { margin: 10px 0; font-size: 1.1rem; }
.card-info .tag { color: var(--accent-color); font-size: 0.9rem; }
.card-info .date { font-size: 0.8rem; color: #999; }
.hidden-card { display: none; opacity: 0; }
.load-more-container { text-align: center; margin-top: 40px; }
#loadMoreBtn { background: #fff; border: 1px solid #333; padding: 10px 30px; cursor: pointer; font-weight: bold; transition: 0.3s; }
#loadMoreBtn:hover { background: #333; color: #fff; }

/* =========================================
   6. Footer (頁尾)
   ========================================= */
#footer {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('/image/contact.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 50px 20px; text-align: center; margin-top: 80px;
}
.contact-circles { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.contact-btn { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.contact-btn img { width: 32px; height: auto; object-fit: contain; }
.contact-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }

/* =========================================
   7. Modals
   ========================================= */
.philosophy-modal, .tipping-modal, .biz-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 3000; justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
.poster-container { position: relative; max-width: 90%; max-height: 90vh; }
.poster-img { width: auto; height: auto; max-width: 100%; max-height: 90vh; border-radius: 4px; }
.close-poster { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer; z-index: 2001; }
.close-poster:hover { color: var(--accent-color); transform: rotate(90deg); }

.tipping-modal { background-color: #E0E0E0; overflow: hidden; }
.tipping-content { background-color: #fff; width: 95%; max-width: 1000px; max-height: 90vh; overflow-y: auto; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center; position: relative; margin: 20px auto; }
.close-tipping { position: absolute; top: 20px; right: 25px; font-size: 3rem; color: #333; cursor: pointer; transition: 0.3s; line-height: 1; z-index: 10; }
.close-tipping:hover { color: var(--accent-color); transform: rotate(90deg); }
.tipping-title { font-size: 2.4rem; font-weight: 900; color: #333; text-transform: uppercase; margin-bottom: 30px; letter-spacing: 2px; border-bottom: 2px solid #eee; padding-bottom: 20px; }
.tipping-img-container { margin-bottom: 35px; display: flex; justify-content: center; }
.tipping-img { width: 66%; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.tipping-details { text-align: left; }
.tipping-subtitle { font-size: 1.4rem; font-weight: 700; color: #333; margin-bottom: 20px; border-left: 5px solid var(--accent-color); padding-left: 15px; }

.table-container { overflow-x: auto; }
.tipping-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tipping-table th, .tipping-table td { border: 1px solid #ddd; padding: 15px 12px; text-align: left; vertical-align: middle; }
.tipping-table th { background-color: var(--lace-bg); color: #333; font-weight: 700; white-space: nowrap; font-size: 1.1rem; }
.coin-col { font-weight: 700; color: var(--lace-border); text-align: center !important; font-size: 1.2rem; }
.addr-col { display: flex; flex-direction: column; gap: 10px; min-width: 250px; }
.addr-text { word-break: break-all; font-family: monospace; color: #555; font-size: 1rem; line-height: 1.4; }
.copy-btn { background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 0.9rem; font-weight: bold; color: #333; transition: all 0.2s ease; align-self: flex-start; }
.copy-btn:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.copy-btn.copy-success { background-color: #4CAF50 !important; color: #fff !important; border-color: #4CAF50 !important; }

.biz-content { background-color: #fff; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: left; position: relative; color: #333; }
.close-biz { position: absolute; top: 20px; right: 25px; font-size: 2.5rem; color: #333; cursor: pointer; transition: 0.3s; line-height: 1; z-index: 10; }
.close-biz:hover { color: var(--accent-color); transform: rotate(90deg); }
.biz-header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 20px; }
.biz-header h2 { font-size: 2rem; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.biz-section { margin-bottom: 30px; }
.biz-section h3 { font-size: 1.4rem; color: var(--accent-color); margin-bottom: 15px; border-left: 4px solid #333; padding-left: 10px; }
.biz-contact { background-color: #f9f9f9; padding: 20px; border-radius: 8px; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   8. Specific Page Styles (分頁樣式)
   ========================================= */

/* Dining (New Style) & Entertainment & City Feed 通用 */
/* --- 搜尋框與篩選器容器 (若未來需要可保留) --- */
.filter-section { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.search-box { position: relative; width: 100%; max-width: 500px; }
.search-box input { width: 100%; padding: 12px 25px; border-radius: 30px; border: 1px solid #ddd; font-size: 1rem; outline: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); font-family: var(--font-main); }

/* --- Dining Hero Banner (New) --- */
.dining-hero {
    background-image: url('/image/dining/banner.png'); 
    background-size: cover; background-position: center; width: 100%; height: 45vh; min-height: 350px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 60px;
}
.dining-hero::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); }
.dining-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
.dining-hero-title { font-size: 3.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); margin: 0 0 15px; font-family: serif; }
.dining-hero-subtitle { font-size: 1.2rem; font-weight: 500; letter-spacing: 1px; font-family: sans-serif; opacity: 0.9; }

/* --- Entertainment Banner (New) --- */
.ent-hero-banner {
    width: 100%; height: 45vh; min-height: 350px;
    background-image: url('/image/entertainment/banner.png'); 
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 60px;
}
.ent-hero-banner::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.3); }
.ent-hero-overlay { position: relative; z-index: 2; background: rgba(255, 255, 255, 0.9); padding: 40px 60px; text-align: center; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); max-width: 90%; }
.ent-title { font-size: 2.8rem; font-weight: 800; color: #333; text-transform: uppercase; letter-spacing: 3px; margin: 0; font-family: serif; }
.ent-subtitle { margin-top: 15px; color: #666; font-weight: bold; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; }

/* Culture */
.culture-banner { width: 100%; aspect-ratio: 1344 / 768; background-image: url('/image/culture/banner.png'); background-size: cover; background-position: center; margin-bottom: 40px; }
.culture-row { display: flex; align-items: flex-start; gap: 60px; margin-bottom: 100px; }
.culture-text h2 { font-family: var(--font-serif); font-size: 2rem; color: #333; margin-bottom: 25px; border-bottom: 3px solid var(--accent-color); display: inline-block; padding-bottom: 10px; }
.culture-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: 10px 10px 0px rgba(232, 162, 162, 0.3); }

/* Transport */
.transport-banner { width: 100%; aspect-ratio: 1344 / 768; background-image: url('/image/transport/banner.png'); background-size: cover; background-position: center; margin-bottom: 40px; }
.transport-container { max-width: 1100px; margin: 0 auto 80px; padding: 0 20px; }
.transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.transport-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.transport-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.tp-img-wrapper { width: 100%; height: 220px; overflow: hidden; }
.tp-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.transport-card:hover .tp-img-wrapper img { transform: scale(1.05); }
.tp-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

/* Festivals */
.festivals-banner { width: 100%; aspect-ratio: 1344 / 768; background-image: url('/image/festivals/banner.png'); background-size: cover; background-position: center; margin-bottom: 40px; }
.season-section { max-width: 1000px; margin: 0 auto 80px; padding: 0 20px; }
.season-title { font-size: 1.8rem; color: #333; border-left: 5px solid var(--accent-color); padding-left: 15px; margin-bottom: 25px; display: flex; align-items: center; }
.festival-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-family: var(--font-main); }
.festival-table th, .festival-table td { padding: 15px; text-align: left; border-bottom: 1px solid #ddd; }
.festival-table th { background-color: #f9f9f9; color: #555; font-weight: 700; width: 25%; }

/* Search By City (Selection Page) */
.city-banner { width: 90%; max-width: 900px; margin: 40px auto 20px; aspect-ratio: 1344 / 768; border-radius: 25px; border: 8px solid #fff; outline: 2px dashed #dcb5b5; box-shadow: 0 10px 20px rgba(0,0,0,0.15); background-image: url('/image/search_by_city/banner.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.region-list-container { max-width: 1000px; margin: 0 auto 60px; padding: 0 20px; }
.region-block { display: flex; flex-direction: column; border-bottom: 1px solid #eee; padding: 40px 0; }
.region-block:last-child { border-bottom: none; }
.region-title { font-size: 2rem; font-weight: 700; color: #333; min-width: 200px; margin-bottom: 20px; position: relative; }
.region-title::after { content: ''; display: block; width: 40px; height: 3px; background-color: var(--accent-color); margin-top: 10px; }
.city-tags { display: flex; flex-wrap: wrap; gap: 15px; flex: 1; }
.city-btn { display: inline-block; text-decoration: none; color: #555; border: 1px solid #ccc; padding: 10px 25px; border-radius: 30px; font-family: var(--font-main); font-weight: 500; transition: 0.3s; background: #fff; }
.city-btn:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- [新增] City Feed / Entertainment Feed 共用卡片樣式 --- */
.feed-header { text-align: center; padding: 80px 20px 40px; background-color: #f9f9f9; margin-bottom: 50px; border-bottom: 1px solid #eee; }
.feed-header h1 { font-size: 3rem; color: #333; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px; }

/* Ent & City Grid (Shared) */
.feed-grid, .ent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto 100px; padding: 0 20px; }

/* Ent & City Card (Shared) */
.feed-card, .ent-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 1px solid #eee; height: 100%; }
.feed-card:hover, .ent-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.feed-img-box, .ent-img-box { width: 100%; height: 220px; overflow: hidden; position: relative; }
.feed-img, .ent-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feed-card:hover .feed-img, .ent-card:hover .ent-img { transform: scale(1.05); }

.feed-content, .ent-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.feed-tags, .ent-tags { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; font-weight: bold; }
.ent-tag { background: var(--lace-bg); color: #555; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; border: 1px solid #ddd; }

.feed-title, .ent-card-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 10px; color: #333; line-height: 1.3; }
.feed-intro, .ent-card-desc { font-size: 0.95rem; color: #666; line-height: 1.6; margin-bottom: 20px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-btn, .ent-btn { align-self: flex-start; padding: 10px 24px; background: #333; color: #fff; border-radius: 30px; font-size: 0.9rem; font-weight: bold; transition: background 0.3s; }
.feed-card:hover .feed-btn, .ent-card:hover .ent-btn { background: var(--accent-color); }

/* --- [新增] City Article (內文頁) 專屬樣式 --- */
.article-hero { width: 100%; height: 60vh; min-height: 400px; background-size: cover; background-position: center; position: relative; }
.article-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
.hero-content { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 900px; text-align: center; color: #fff; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-tags { margin-bottom: 15px; }
.hero-tag { background: var(--accent-color); color: #fff; padding: 5px 12px; font-size: 0.85rem; font-weight: bold; border-radius: 4px; margin: 0 5px; text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.2; margin: 0 0 10px; }
.hero-subtitle { font-size: 1.2rem; font-weight: normal; opacity: 0.9; font-family: var(--font-serif); }
.content-container { max-width: 800px; margin: 60px auto 100px; padding: 0 20px; }
.intro-text { font-size: 1.15rem; line-height: 1.8; color: #444; text-align: justify; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.transport-card { background-color: #f8f9fa; border-left: 5px solid var(--accent-color); padding: 25px; border-radius: 0 8px 8px 0; margin-bottom: 50px; }
.transport-title { font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.transport-info { font-size: 1rem; color: #555; line-height: 1.6; }

/* Timeline (時間軸) */
.itinerary-section-title { text-align: center; font-size: 1.8rem; margin-bottom: 40px; color: #333; text-transform: uppercase; letter-spacing: 2px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 0; width: 2px; background: #e0e0e0; }
.spot-card { position: relative; margin-bottom: 50px; }
.spot-dot { position: absolute; left: -36px; top: 5px; width: 14px; height: 14px; background: var(--accent-color); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent-color); }
.spot-time { font-weight: bold; color: var(--accent-color); font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; }
.spot-name { font-size: 1.5rem; font-weight: 700; margin: 0 0 5px; color: #222; }
.spot-address { font-size: 0.9rem; color: #888; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.spot-desc { font-size: 1rem; color: #555; line-height: 1.7; background: #fff; }
.btn-map-link { display: inline-block; background: #fff; border: 1px solid #ddd; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #555; text-decoration: none; transition: 0.3s; margin-left: 10px; vertical-align: middle; }
.btn-map-link:hover { background: #4285F4; color: #fff; border-color: #4285F4; }
.back-nav { text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; }
.btn-back { display: inline-block; text-decoration: none; color: #333; border: 1px solid #333; padding: 12px 35px; border-radius: 30px; font-weight: bold; transition: 0.3s; text-transform: capitalize; }
.btn-back:hover { background: #333; color: #fff; }

/* 城市列表 Banner */
.city-hero-banner { width: 100%; height: 40vh; min-height: 300px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 60px; }
.city-hero-overlay { background: rgba(255, 255, 255, 0.9); padding: 30px 60px; text-align: center; border: 1px solid #ccc; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 90%; border-radius: 15px; }
.city-name-title { font-size: 2.5rem; font-weight: 900; color: #333; text-transform: uppercase; letter-spacing: 2px; margin: 0; }

/* --- 離島特殊排版樣式 (Islands Specific) --- */
.island-section-wrapper { flex: 1; display: flex; flex-direction: column; gap: 25px; }
.island-separator { width: 100%; border-top: 2px dashed #ddd; position: relative; margin-top: 15px; margin-bottom: 15px; text-align: left; }
.separator-label { position: absolute; top: -12px; left: 0; background-color: #fff; padding-right: 15px; color: #d9534f; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   9. Back to Top Button
   ========================================= */
#backToTopBtn {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    width: 50px; height: 50px; border: none; border-radius: 50%;
    background-color: var(--accent-color, #e63946); color: white;
    font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
#backToTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTopBtn:hover { background-color: #333; transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.4); }
@media (max-width: 768px) { #backToTopBtn { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.2rem; } }

/* =========================================
   10. RWD 手機版設定
   ========================================= */
@media (max-width: 768px) {
    .header-container { padding: 10px 20px; }
    .header-links, .desktop-nav, .desktop-only { display: none !important; }
    .logo-img { height: 40px; }
    .brand-name { font-size: 1.2rem; }
    .brand-slogan { font-size: 0.7rem; white-space: normal; max-width: 140px; line-height: 1.1; margin-top: 2px; }
    
    .hamburger-btn { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 22px; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 0; margin-left: 10px; }
    .hamburger-btn span { width: 100%; height: 2px; background-color: #333; border-radius: 2px; transition: all 0.3s linear; }

    /* Mobile Drawer */
    .mobile-drawer { display: block; position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background-color: #fff; z-index: 4000; transition: right 0.3s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.1); overflow-y: auto; }
    .mobile-drawer.active { right: 0; }
    .mobile-drawer-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 3999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
    .mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

    .drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background-color: #f4f4f4; border-bottom: 1px solid #ddd; }
    .drawer-title { font-weight: 900; letter-spacing: 1px; font-size: 1.1rem; color: #333; }
    .drawer-close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; line-height: 1; color: #555; }
    .drawer-section { padding: 20px 0; border-bottom: 1px solid #eee; }
    .drawer-cat-title { font-size: 0.85rem; color: #888; padding: 0 20px 10px; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
    .drawer-list { list-style: none; padding: 0; margin: 0; }
    .drawer-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; text-decoration: none; color: #333; font-size: 1rem; border-bottom: 1px solid #f9f9f9; font-family: 'Noto Sans TC', sans-serif; }
    .drawer-link:active { background-color: #f0f0f0; }
    .drawer-link .arrow { color: #ccc; }

    /* ✅ RWD 手機版 Slider 修正：改用 1:1 或 4:5 比例，移除固定高度 */
    .hero-slider { 
        width: 96%; 
        height: auto; 
        aspect-ratio: 1 / 1; /* 手機版使用正方形，避免太高佔滿螢幕 */
        margin: 20px auto; 
        border-width: 3px; 
        padding: 4px; 
        border-radius: 15px; 
    }
    
    /* ✅ 手機版標籤縮小 */
    .slide-caption { 
        bottom: 15px; 
        right: 15px; 
        font-size: 0.85rem; 
        padding: 8px 15px; 
        max-width: 80%; /* 防止文字太長超出 */
    }
    
    .desktop-map-container { display: block !important; width: 100%; aspect-ratio: 0.7; margin: 20px auto; position: relative; }
    .region-circle, .region-square { width: 18%; font-size: 11px; padding: 5px; }

    .pos-north { top: 0% !important; left: 58% !important; }
    .pos-islands { top: 5% !important; left: 28% !important; right: auto !important; }
    .pos-central { top: 35% !important; left: 15% !important; }
    .pos-east { top: 48% !important; right: 5% !important; }
    .pos-south { bottom: 20% !important; left: 22% !important; }

    .article-grid, .restaurant-grid, .genre-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .feed-grid, .ent-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
    .region-block, .compact-block { flex-direction: row; align-items: center; }
    .region-title, .compact-title { margin-bottom: 0; }
    .region-block { align-items: flex-start; }
}

/* =========================================
   11. [NEW] 搜尋結果選單樣式
   ========================================= */
#search-results {
    position: absolute; top: 100%; left: 10%; width: 80%;
    background: white; border: 1px solid #ddd; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); max-height: 400px;
    overflow-y: auto; z-index: 1000; display: none; text-align: left;
}
.search-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid #eee; text-decoration: none; color: #333; transition: background 0.2s; }
.search-item:hover { background-color: #f9f9f9; }
.search-item:last-child { border-bottom: none; }
.result-img { width: 60px; height: 60px; flex-shrink: 0; margin-right: 15px; border-radius: 6px; overflow: hidden; background: #eee; }
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-content { flex-grow: 1; min-width: 0; }
.result-title { font-weight: bold; font-size: 0.95rem; color: #222; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-desc { font-size: 0.8rem; color: #666; margin-bottom: 6px; }
.tag-cat { display: inline-block; background: #e0f7fa; color: #006064; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.no-result { padding: 15px; text-align: center; color: #999; font-style: italic; }