/* ============================================
   香港高鐵四小時生活圈 - 全域樣式表
   支援：index.html (主地圖), blog.html (博客), destinations/*.html (目的地詳情)
   ============================================ */

/* ===== 1. CSS 變數與重置 ===== */
:root {
    --primary-color: #e31837;
    --primary-dark: #b31237;
    --secondary-color: #00a650;
    --accent-color: #ff6b35;
    --warning-color: #ffc107;
    --info-color: #2196f3;
    --purple-color: #9c27b0;
    --yellow-color: #ffd200;
    
    --gray-100: #f8f9fa;
    --gray-200: #f0f0f0;
    --gray-300: #e0e0e0;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --white: #ffffff;
    --black: #000000;
    
    --font-family: 'Microsoft JhengHei', 'PingFang TC', 'Segoe UI', Roboto, sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-pill: 50px;
    
    --box-shadow-sm: 0 3px 10px rgba(0,0,0,0.05);
    --box-shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 15px 40px rgba(227, 24, 55, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f4ff 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== 2. 版型系統 ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* ===== 3. 排版樣式 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== 4. 導航欄 ===== */
.site-nav {
    background: var(--white);
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input {
    padding: 8px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-pill);
    width: 220px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
    width: 260px;
}

.nav-search button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav-search button:hover {
    color: var(--primary-color);
}

/* ===== 5. 頁首區域 ===== */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 40px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    border-left: 8px solid var(--primary-color);
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.subtitle {
    color: var(--gray-600);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ===== 6. 統計卡片 ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--gray-100);
    padding: 15px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    min-width: 160px;
    transition: transform var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===== 7. 圖例 ===== */
.legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line-color {
    width: 24px;
    height: 6px;
    border-radius: 3px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid;
}

/* ===== 8. 地圖容器 ===== */
.map-section-main {
    margin-bottom: 40px;
}

.map-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--box-shadow-lg);
    height: 650px;
    position: relative;
    overflow: hidden;
}

#railwayMap {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        radial-gradient(circle at 20% 30%, rgba(173, 216, 230, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(144, 238, 144, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 182, 193, 0.08) 0%, transparent 40%),
        var(--gray-100);
}

/* 地理區域 */
.region {
    position: absolute;
    border-radius: var(--border-radius-md);
    opacity: 0.06;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.guangdong { 
    background: var(--primary-color); 
    left: 20%; top: 20%; 
    width: 50%; height: 55%; 
}

.guangzhou { 
    background: var(--secondary-color); 
    left: 35%; top: 40%; 
    width: 22%; height: 28%; 
}

.shenzhen { 
    background: var(--accent-color); 
    left: 22%; top: 65%; 
    width: 16%; height: 22%; 
}

.east-guangdong { 
    background: var(--secondary-color); 
    left: 62%; top: 22%; 
    width: 28%; height: 32%; 
}

.north-guangdong { 
    background: var(--accent-color); 
    left: 32%; top: 12%; 
    width: 28%; height: 28%; 
}

.fujian { 
    background: var(--purple-color); 
    left: 75%; top: 18%; 
    width: 22%; height: 38%; 
}

.jiangxi { 
    background: var(--info-color); 
    left: 18%; top: 8%; 
    width: 22%; height: 22%; 
}

/* 車站標記 */
.station {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid;
    z-index: 100;
    cursor: pointer;
    transition: all var(--transition-fast);
    transform: translate(-50%, -50%);
    box-shadow: var(--box-shadow-sm);
}

.station:hover {
    transform: translate(-50%, -50%) scale(1.8);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.station-label {
    position: absolute;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: var(--box-shadow-sm);
    z-index: 50;
    white-space: nowrap;
    pointer-events: none;
    border-left: 3px solid;
    transition: all var(--transition-fast);
    opacity: 0.85;
    font-weight: 500;
}

.station:hover + .station-label {
    opacity: 1;
    background: var(--white);
    z-index: 1001;
    font-weight: bold;
    transform: scale(1.05);
}

/* 車站資訊卡 */
.station-info {
    position: absolute;
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    width: 300px;
    box-shadow: var(--box-shadow-lg);
    z-index: 10000;
    display: none;
    border-top: 6px solid;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.station-info h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.time-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--border-radius-pill);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 區域標籤 */
.region-label {
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    color: rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

/* 時間尺度 */
.time-scale {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255,255,255,0.95);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    z-index: 50;
    backdrop-filter: blur(5px);
}

.time-scale h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1rem;
}

.time-bar {
    height: 10px;
    width: 250px;
    background: linear-gradient(90deg, 
        #4CAF50 0%, 
        #FFC107 33%, 
        #FF9800 66%, 
        #F44336 100%);
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
}

.time-marker {
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
}

.time-marker:nth-child(1) { left: 0%; }
.time-marker:nth-child(2) { left: 33%; }
.time-marker:nth-child(3) { left: 66%; }
.time-marker:nth-child(4) { left: 100%; }

/* ===== 9. 篩選面板 ===== */
.filter-result-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.filter-panel {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--box-shadow-md);
    min-width: 350px;
    max-width: 400px;
}

.result-panel {
    flex: 2;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--box-shadow-md);
    display: flex;
    flex-direction: column;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.filter-header h2 {
    color: var(--gray-800);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-icon {
    font-size: 1.2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.result-header h2 {
    color: var(--gray-800);
    font-size: 1.5rem;
}

.result-stats {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.result-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.result-text {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.search-container {
    margin-bottom: 25px;
}

.search-box {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

/* 藥丸按鈕 */
.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    padding: 10px 18px;
    border-radius: var(--border-radius-pill);
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pill-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pill-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.line-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* 活動篩選標籤 */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    min-height: 40px;
}

.active-filter-tag {
    background: #f0f7ff;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cce0ff;
}

.active-filter-tag .remove-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.active-filter-tag .remove-btn:hover {
    background: #0066cc;
    color: var(--white);
}

/* 重置按鈕 */
.reset-btn {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== 10. 車站卡片 ===== */
.station-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: 600px;
}

.station-list::-webkit-scrollbar {
    width: 6px;
}

.station-list::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
}

.station-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.station-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--box-shadow-sm);
    border-left: 6px solid;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gray-300);
}

.station-card h4 {
    color: var(--gray-800);
    margin-bottom: 12px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-time {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-line {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-region {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

/* ===== 11. 目的地詳情頁面專屬 ===== */

/* 英雄區域 */
.destination-hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.destination-hero:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}

.hero-breadcrumb {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.hero-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.hero-title h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.station-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 快速資訊欄 */
.quick-info-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 25px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* 內容導航 */
.content-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px;
    z-index: 900;
}

.anchor-links {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.anchor-links::-webkit-scrollbar {
    display: none;
}

.anchor-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.anchor-link:hover {
    color: var(--primary-color);
}

.anchor-link.active {
    color: var(--primary-color);
}

.anchor-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* 主要內容區 */
.destination-main {
    padding: 50px 0;
    background: var(--gray-100);
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 350px;
}

/* 內容區塊 */
.content-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-sm);
}

.content-section h2 {
    color: var(--gray-800);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lead {
    font-size: 1.2rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 引言區塊 */
.overview-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: var(--border-radius-md);
    margin: 25px 0;
    border-left: 6px solid var(--primary-color);
}

.overview-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-700);
}

.overview-highlights {
    margin-top: 25px;
}

.overview-highlights h3 {
    color: var(--gray-800);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.overview-highlights ul {
    list-style: none;
    padding: 0;
}

.overview-highlights li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-highlights li:last-child {
    border-bottom: none;
}

/* 統計盒子 */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.stat-box .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* 標籤頁系統 */
.transport-tabs,
.food-city-tabs {
    margin: 20px 0;
}

.tab-buttons,
.city-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tab-btn,
.city-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.tab-btn:hover,
.city-tab:hover {
    color: var(--primary-color);
}

.tab-btn.active,
.city-tab.active {
    color: var(--primary-color);
}

.tab-btn.active::after,
.city-tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content,
.city-content {
    display: none;
}

.tab-content.active,
.city-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 交通資訊 */
.transport-info {
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
}

.transport-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius-md);
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-item .label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.highlight-item .value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gray-800);
}

.transport-list {
    list-style: none;
    padding: 0;
}

.transport-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.transport-list li:last-child {
    border-bottom: none;
}

.transport-table {
    width: 100%;
    border-collapse: collapse;
}

.transport-table th,
.transport-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.transport-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

/* 景點網格 */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.attraction-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.attraction-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attraction-card:hover .attraction-image img {
    transform: scale(1.1);
}

.attraction-image .rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-weight: bold;
}

.attraction-content {
    padding: 20px;
}

.attraction-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.attraction-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.attraction-tags {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.attraction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.map-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* 美食網格 */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.food-item {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid var(--gray-200);
}

.food-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.food-info {
    padding: 15px;
}

.food-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.food-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 美食街卡片 */
.street-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.street-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border-left: 6px solid var(--primary-color);
}

.street-card h4 {
    color: var(--gray-800);
    margin-bottom: 12px;
}

.street-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* 牛肉部位網格 */
.beef-parts .parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.part-item {
    background: var(--gray-100);
    padding: 15px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.part-name {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.part-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.part-time {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
}

/* 店家列表 */
.shop-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.shop-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-200);
}

.shop-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 住宿卡片 */
.accommodation-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.accommodation-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.accommodation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.acc-image {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 160px;
}

.acc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-weight: bold;
}

.acc-content {
    flex: 1;
    padding: 20px;
}

.acc-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.acc-rating {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 10px;
}

.acc-features {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.acc-features span {
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.acc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.book-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* 行程時間軸 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.time {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.activity h4 {
    color: var(--gray-800);
    margin-bottom: 5px;
}

.day-block {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.day-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

/* 旅遊貼士 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tip-card h4 {
    color: var(--gray-800);
    margin-bottom: 10px;
}

.tip-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===== 12. 邊欄小工具 ===== */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-sm);
}

.sidebar-widget h3 {
    color: var(--gray-800);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

/* 作者卡片 */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* 旅行摘要 */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
    border-bottom: none;
}

.download-guide-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius-md);
    margin-top: 20px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.download-guide-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

/* 附近車站 */
.nearby-stations ul {
    list-style: none;
    padding: 0;
}

.nearby-stations li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.nearby-stations li:last-child {
    border-bottom: none;
}

.nearby-stations a {
    display: flex;
    justify-content: space-between;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.nearby-stations a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.station-time {
    color: var(--primary-color);
    font-weight: 600;
}

/* 熱門文章 */
.popular-posts ul {
    list-style: none;
    padding: 0;
}

.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts a {
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--gray-700);
}

.popular-posts a:hover {
    color: var(--primary-color);
}

.popular-posts img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

.post-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* 主題標籤 */
.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-tag {
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.topic-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 廣告卡片 */
.ad-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.ad-content {
    text-align: center;
}

.ad-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.ad-card h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.ad-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--white);
    color: #667eea;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.ad-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== 13. 相關目的地 ===== */
.related-destinations {
    padding: 50px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
    text-align: center;
}

.related-info h4 {
    color: var(--gray-800);
    margin-bottom: 8px;
}

.related-info .time {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== 14. 評論區 ===== */
.comments-section {
    padding: 50px 0;
    background: var(--gray-100);
}

.comments-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.comment-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
}

.comment-form h3 {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
}

.rating-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
}

.star {
    transition: color 0.2s;
}

.star.hover,
.star.selected {
    color: #ffc107;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    resize: vertical;
}

.comment-form button {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comment-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.comment-list {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: bold;
    color: var(--gray-800);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.comment-rating {
    color: #ffc107;
    font-weight: 600;
}

.comment-content {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== 15. 頁尾 ===== */
.blog-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 50px 0 0;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h4,
.footer-links h4,
.footer-categories h4,
.footer-subscribe h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-about p {
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-categories li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-categories a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-categories a:hover {
    color: var(--white);
    padding-left: 5px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.subscribe-form input::placeholder {
    color: var(--gray-500);
}

.subscribe-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.subscribe-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.subscribe-note {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 25px 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===== 16. 返回頂部按鈕 ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: var(--box-shadow-md);
    z-index: 999;
    transition: all var(--transition-fast);
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* ===== 17. 空狀態 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ===== 18. 列印樣式 ===== */
@media print {
    .site-nav,
    .content-nav,
    .sidebar,
    .footer-subscribe,
    .comments-section,
    #backToTop,
    .ad-card,
    .download-guide-btn {
        display: none !important;
    }
    
    .content-wrapper {
        display: block;
    }
    
    .main-content {
        width: 100%;
    }
    
    .destination-hero {
        height: 300px;
    }
}

/* ===== 19. 響應式設計 ===== */
@media (max-width: 1400px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .filter-result-section {
        flex-direction: column;
    }
    
    .filter-panel {
        max-width: 100%;
    }
    
    .station-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .map-container {
        height: 550px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .hero-title h1 {
        font-size: 2.8rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comments-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 140px;
        padding: 10px 15px;
    }
    
    .map-container {
        height: 450px;
    }
    
    .legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .station-list {
        grid-template-columns: 1fr;
    }
    
    .pill-container {
        gap: 6px;
    }
    
    .pill-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .filter-result-section {
        gap: 20px;
    }
    
    .destination-hero {
        height: 350px;
    }
    
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .station-badges {
        gap: 10px;
    }
    
    .badge {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .quick-info-bar .info-grid {
        grid-template-columns: 1fr;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr;
    }
    
    .accommodation-card {
        flex-direction: column;
    }
    
    .acc-image {
        width: 100%;
        height: 200px;
    }
    
    .transport-highlight {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .anchor-links {
        gap: 15px;
    }
    
    .anchor-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .nav-search input {
        width: 180px;
    }
    
    .nav-search input:focus {
        width: 200px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .hero-title h1 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .transport-highlight {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .author-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== 20. 動畫效果 ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: slideInUp 0.5s ease;
}

/* ===== 21. 工具類別 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}