/* 民宿入口網站 - 主要樣式表 */

/* 全域樣式 - 主要入口預設樣式 (Light Mode) */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #4a90e2;
  --accent-color: #ff6b6b;
  --success-color: #51cf66;
  --warning-color: #ffd43b;
  --danger-color: #ff8787;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
  --gradient-secondary: linear-gradient(135deg, #4a90e2 0%, #74b9ff 100%);
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-heavy: 0 8px 15px rgba(0,0,0,0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  
  /* 主題相關變數 */
  --theme-name: '台灣民宿';
  --theme-description: '探索台灣之美';
  --theme-hero-bg: linear-gradient(rgba(44,90,160,0.4), rgba(74,144,226,0.4)), url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1200');
  --theme-icon: '🏠';
  --theme-color-1: #2c5aa0;
  --theme-color-2: #4a90e2;
  --theme-color-3: #74b9ff;
  --theme-color-4: #a8d8ff;
  
  /* Light/Dark Mode 變數 */
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-color: #343a40;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255,255,255,0.95);
  --navbar-scrolled-bg: rgba(255,255,255,0.98);
  --dropdown-bg: #ffffff;
  --input-bg: #ffffff;
  --input-border: #ced4da;
  --modal-bg: #ffffff;
  --overlay-bg: rgba(0,0,0,0.5);
  --footer-bg: #343a40;
  --footer-text: #ffffff;
  --footer-link: rgba(255,255,255,0.8);
  --footer-border: #495057;
  --switcher-bg: rgba(255,255,255,0.9);
  --switcher-bg-hover: rgba(255,255,255,0.95);
  --drawer-bg: rgba(255,255,255,0.98);
  --hover-bg: rgba(0,0,0,0.1);
  --nav-hover-bg: rgba(44,90,160,0.1);
}

/* Dark Mode 變數 */
[data-color-scheme="dark"] {
  --primary-color: #4a90e2;
  --secondary-color: #74b9ff;
  --accent-color: #ff8787;
  --success-color: #51cf66;
  --warning-color: #ffd43b;
  --danger-color: #ff6b6b;
  --light-color: #495057;
  --dark-color: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #74b9ff 100%);
  --gradient-secondary: linear-gradient(135deg, #74b9ff 0%, #a8d8ff 100%);
  --shadow-light: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-medium: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-heavy: 0 8px 15px rgba(0,0,0,0.5);
  
  /* Dark Mode 專用變數 */
  --bg-color: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-color: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-color: #495057;
  --card-bg: #2d2d2d;
  --navbar-bg: rgba(26,26,26,0.95);
  --navbar-scrolled-bg: rgba(26,26,26,0.98);
  --dropdown-bg: #2d2d2d;
  --input-bg: #343a40;
  --input-border: #495057;
  --modal-bg: #2d2d2d;
  --overlay-bg: rgba(0,0,0,0.7);
  --footer-bg: #1a1a1a;
  --footer-text: #f8f9fa;
  --footer-link: #adb5bd;
  --footer-border: #495057;
  --switcher-bg: rgba(45,45,45,0.9);
  --switcher-bg-hover: rgba(45,45,45,0.95);
  --drawer-bg: rgba(26,26,26,0.98);
  --hover-bg: rgba(255,255,255,0.1);
  --nav-hover-bg: rgba(74,144,226,0.2);
}

/* 宜蘭主題 */
[data-theme="yilan"] {
  --primary-color: #2d5016;
  --secondary-color: #4a7c59;
  --accent-color: #7fb069;
  --success-color: #51cf66;
  --warning-color: #ffd43b;
  --danger-color: #ff8787;
  --light-color: #f0f8f0;
  --dark-color: #1a3409;
  --gradient-primary: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
  --gradient-secondary: linear-gradient(135deg, #7fb069 0%, #a3d977 100%);
  --shadow-light: 0 2px 4px rgba(45,80,22,0.1);
  --shadow-medium: 0 4px 6px rgba(45,80,22,0.15);
  --shadow-heavy: 0 8px 15px rgba(45,80,22,0.25);
  
  /* 主題相關變數 */
  --theme-name: '宜蘭';
  --theme-description: '山林秘境，自然純淨';
  --theme-hero-bg: linear-gradient(rgba(45,80,22,0.4), rgba(74,124,89,0.4)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200');
  --theme-icon: '🏔️';
  --theme-color-1: #2d5016;
  --theme-color-2: #4a7c59;
  --theme-color-3: #7fb069;
  --theme-color-4: #a3d977;
}

/* 台南主題 */
[data-theme="tainan"] {
  --primary-color: #8B4513;
  --secondary-color: #CD853F;
  --accent-color: #D2691E;
  --success-color: #32CD32;
  --warning-color: #FFD700;
  --danger-color: #DC143C;
  --light-color: #FFF8DC;
  --dark-color: #2F1B14;
  --gradient-primary: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
  --gradient-secondary: linear-gradient(135deg, #D2691E 0%, #F4A460 100%);
  --shadow-light: 0 2px 4px rgba(139,69,19,0.1);
  --shadow-medium: 0 4px 6px rgba(139,69,19,0.15);
  --shadow-heavy: 0 8px 15px rgba(139,69,19,0.25);
  
  /* 主題相關變數 */
  --theme-name: '台南';
  --theme-description: '古都風華，文化底蘊';
  --theme-hero-bg: linear-gradient(rgba(139,69,19,0.4), rgba(205,133,63,0.4)), url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1200');
  --theme-icon: '🏛️';
  --theme-color-1: #8B4513;
  --theme-color-2: #CD853F;
  --theme-color-3: #D2691E;
  --theme-color-4: #F4A460;
}

/* 花蓮主題 */
[data-theme="hualien"] {
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --light-color: #eff6ff;
  --dark-color: #1e293b;
  --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
  --shadow-light: 0 2px 4px rgba(30,58,138,0.1);
  --shadow-medium: 0 4px 6px rgba(30,58,138,0.15);
  --shadow-heavy: 0 8px 15px rgba(30,58,138,0.25);
  
  /* 主題相關變數 */
  --theme-name: '花蓮';
  --theme-description: '太平洋畔，海天一色';
  --theme-hero-bg: linear-gradient(rgba(30,58,138,0.4), rgba(59,130,246,0.4)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200');
  --theme-icon: '🌊';
  --theme-color-1: #1e3a8a;
  --theme-color-2: #3b82f6;
  --theme-color-3: #60a5fa;
  --theme-color-4: #93c5fd;
}

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

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 導航列樣式 */
.navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 0.5rem 0;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.navbar.navbar-scrolled {
  background: var(--navbar-scrolled-bg) !important;
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-medium);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color) !important;
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
}

/* 主題切換按鈕樣式 */
.theme-toggle {
  border: none !important;
  background: transparent !important;
  color: var(--text-color) !important;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--border-radius) !important;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(var(--primary-color), 0.1) !important;
  color: var(--primary-color) !important;
  transform: scale(1.05);
}

.theme-toggle:focus {
  box-shadow: 0 0 0 2px var(--primary-color) !important;
  outline: none !important;
}

.theme-toggle .theme-icon-light,
.theme-toggle .theme-icon-dark {
  transition: all 0.3s ease;
}

[data-color-scheme="dark"] .theme-toggle .theme-icon-light {
  display: none !important;
}

[data-color-scheme="dark"] .theme-toggle .theme-icon-dark {
  display: inline-block !important;
}

[data-color-scheme="light"] .theme-toggle .theme-icon-light {
  display: inline-block !important;
}

[data-color-scheme="light"] .theme-toggle .theme-icon-dark {
  display: none !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(44,90,160,0.1);
  border-radius: var(--border-radius);
}

/* 主要內容區域 */
main {
  min-height: calc(100vh - 120px);
}

/* 首頁橫幅 */
.hero-section {
  height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: var(--theme-hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 主題圖示 */
.hero-section::before {
  content: var(--theme-icon);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.3;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* AI搜尋框樣式 */
.ai-search-box {
  /* background: rgba(255, 255, 255, 0.95); */
  /* backdrop-filter: blur(10px); */
  /* border-radius: 20px; */
  /* padding: 10px; */
  margin-top: -30px;
  /* position: relative; */
  /* z-index: 10; */
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

.ai-search-container {
  max-width: 800px;
  margin: 0 auto;
}

.ai-search-header {
  text-align: center;
  margin-bottom: 30px;
}

.ai-search-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-search-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.ai-search-input-group {
  margin-bottom: 20px;
}

.ai-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 3px solid var(--input-border);
  border-radius: 10px;
  padding: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.ai-search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.15), var(--shadow-medium);
}

.ai-search-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-left: 15px;
  margin-right: 10px;
}

.ai-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 10px;
  font-size: 1rem;
  background: transparent;
  color: var(--text-color);
}

.ai-search-input::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.ai-search-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 40px;
  padding: 12px 25px;
  font-weight: 600;
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
  margin-left: 10px;
}

.ai-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color), 0.4);
  background: var(--gradient-secondary);
}

.ai-search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.suggestion-label {
  color: #6c757d;
  font-weight: 500;
  margin-right: 10px;
}

.suggestion-btn {
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.ai-search-status {
  text-align: center;
  padding: 20px;
  background: rgba(var(--primary-color), 0.05);
  border-radius: 15px;
  border: 1px solid rgba(var(--primary-color), 0.1);
}

.ai-thinking {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 500;
}

.ai-thinking i {
  font-size: 1.2rem;
  margin-right: 10px;
}

/* 搜尋框樣式 */
.search-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-heavy);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-box .form-label {
  color: white;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.search-input-group {
  position: relative;
}

.search-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.search-btn {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  transition: var(--transition);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* AI搜尋框響應式設計 */
@media (max-width: 768px) {
  .ai-search-box {
    padding: 25px 20px;
    margin-top: -100px;
  }
  
  .ai-search-title {
    font-size: 1.5rem;
  }
  
  .ai-search-subtitle {
    font-size: 1rem;
  }
  
  .ai-search-input-wrapper {
    flex-direction: column;
    padding: 15px;
  }
  
  .ai-search-input {
    margin-bottom: 15px;
    text-align: center;
  }
  
  .ai-search-btn {
    width: 100%;
    margin-left: 0;
  }
  
  .ai-search-suggestions {
    justify-content: center;
  }
  
  .suggestion-label {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* 卡片樣式 */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* 價格標籤 */
.price-tag {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* 評分星星 */
.rating {
  color: #ffc107;
  margin: 0.5rem 0;
}

.rating i {
  margin-right: 2px;
}

/* 篩選側邊欄 */
.filter-sidebar {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-title {
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.custom-checkbox {
  margin-bottom: 0.5rem;
}

/* 分頁樣式 */
.pagination .page-link {
  color: var(--primary-color);
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
  color: var(--secondary-color);
  background-color: var(--light-color);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

/* 按鈕樣式 */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* 文章樣式 */
.article-card {
  /* border-left: 4px solid var(--primary-color); */
  padding-left: 1rem;
}

.article-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.article-meta i {
  margin-right: 0.5rem;
}

/* 標籤 */
.tag {
  background: var(--light-color);
  color: var(--dark-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* 頁尾樣式 */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-section h5 {
  color: var(--footer-text);
  margin-bottom: 1rem;
  font-weight: bold;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--footer-link);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--footer-text);
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--footer-link);
}

/* 社群媒體圖示 */
.social-icons a {
  color: var(--footer-link);
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* 主題切換器樣式 */
.theme-switcher {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  background: var(--switcher-bg);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 10px;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
}

.theme-switcher:hover {
  background: var(--switcher-bg-hover);
  transform: translateY(-50%) scale(1.05);
}

.theme-option {
  display: block;
  width: 40px;
  height: 40px;
  margin: 5px 0;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-option:hover {
  transform: scale(1.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-option.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.theme-option::before {
  content: attr(data-icon);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  z-index: 2;
}

/* 預設主題按鈕 */
.theme-default {
  background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
}

/* 宜蘭主題按鈕 */
.theme-yilan {
  background: linear-gradient(135deg, #2d5016 0%, #7fb069 100%);
}

/* 台南主題按鈕 */
.theme-tainan {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

/* 花蓮主題按鈕 */
.theme-hualien {
  background: linear-gradient(135deg, #1e3a8a 0%, #60a5fa 100%);
}

/* 主題描述提示 */
.theme-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-color);
  color: white;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.theme-option:hover .theme-tooltip {
  opacity: 1;
  visibility: visible;
}

.theme-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dark-color);
}

/* 主題特色元素 */
.theme-accent-border {
  border-left: 4px solid var(--accent-color);
}

.theme-gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.theme-card-hover {
  transition: var(--transition);
}

.theme-card-hover:hover {
  background: var(--light-color);
  border-color: var(--accent-color);
}

/* 主題色彩展示 */
.theme-colors {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.theme-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-color-1 { background: var(--theme-color-1); }
.theme-color-2 { background: var(--theme-color-2); }
.theme-color-3 { background: var(--theme-color-3); }
.theme-color-4 { background: var(--theme-color-4); }

/* 手機版 Drawer 選單樣式 */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--drawer-bg);
  backdrop-filter: blur(15px);
  z-index: 1050;
  transition: left 0.3s ease-in-out;
  box-shadow: var(--shadow-heavy);
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
}

.mobile-drawer.show {
  left: 0;
}

.mobile-drawer-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-brand {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: var(--hover-bg);
}

.mobile-drawer-nav {
  padding: 1rem 0;
  display: block !important;
}

.mobile-drawer-nav .nav-item {
  margin: 0;
  display: block;
  list-style: none;
}

.mobile-drawer-nav .nav-link {
  color: var(--text-color) !important;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.mobile-drawer-nav .nav-link:hover,
.mobile-drawer-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: var(--nav-hover-bg);
  padding-left: 2rem;
}

.mobile-drawer-nav .nav-link i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.mobile-drawer-nav .dropdown-menu {
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    transform: none;
    flex-direction: row;
    padding: 8px;
    border-radius: 20px;
  }
  
  .theme-option {
    width: 35px;
    height: 35px;
    margin: 0 3px;
  }
  
  .theme-option::before {
    font-size: 1rem;
  }
  
  .theme-tooltip {
    bottom: 60px;
    right: 50%;
    top: auto;
    transform: translateX(50%);
  }
  
  .theme-tooltip::after {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-color);
    border-left-color: transparent;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .search-box {
    margin-top: -30px;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .theme-switcher {
    padding: 6px;
  }
  
  .theme-option {
    width: 30px;
    height: 30px;
    margin: 0 2px;
  }
  
  .theme-option::before {
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* 主題動畫效果 */
@keyframes themeTransition {
  0% {
    opacity: 0.8;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.theme-transition {
  animation: themeTransition 0.5s ease-in-out;
}

/* 主題特定的裝飾元素 */
.theme-decoration {
  position: relative;
  overflow: hidden;
}

.theme-decoration::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  opacity: 0.1;
  transform: rotate(45deg);
  transition: var(--transition);
}

.theme-decoration:hover::before {
  opacity: 0.2;
  transform: rotate(45deg) scale(1.1);
}

/* 主題色彩指示器 */
.theme-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid white;
  box-shadow: var(--shadow-light);
  z-index: 10;
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
  .theme-switcher {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .theme-switcher:hover {
    background: rgba(0, 0, 0, 0.9);
  }
}

.mobile-drawer-nav .dropdown-item {
  /* color: rgba(255,255,255,0.8); */
  padding: 0.5rem 1.5rem 0.5rem 3rem;
  transition: var(--transition);
}

.mobile-drawer-nav .dropdown-item:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.mobile-drawer-nav .dropdown-divider {
  border-color: rgba(255,255,255,0.2);
  margin: 0.5rem 0;
}

/* 遮罩層 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .search-box {
    margin-top: -50px;
    padding: 1.5rem;
  }
  
  .navbar-nav {
    display: none; /* 隱藏原本的導航選單 */
  }
  
  .mobile-drawer-nav .navbar-nav {
    display: block; /* 確保 drawer 內的導航選單顯示 */
  }
  
  .filter-sidebar {
    margin-bottom: 1rem;
  }
  
  /* 確保手機版時顯示 drawer 按鈕 */
  .navbar-toggler {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .mobile-drawer {
    display: none;
  }
  
  .drawer-overlay {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .search-box {
    padding: 1rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 載入動畫 */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 收藏按鈕 */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: var(--transition);
}

.favorite-btn:hover,
.favorite-btn.active {
  color: var(--accent-color);
  background: white;
  box-shadow: var(--shadow-medium);
}

/* 工具提示 */
.tooltip-inner {
  background: var(--dark-color);
  border-radius: var(--border-radius);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--dark-color);
}

/* 模態視窗 */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

.modal-header {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* 表單樣式 */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* 麵包屑導航 */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* 警告訊息 */
.alert {
  border: none;
  border-radius: var(--border-radius);
  border-left: 4px solid;
}

.alert-success {
  border-left-color: var(--success-color);
  background: rgba(81, 207, 102, 0.1);
  color: #2d5a2d;
}

.alert-danger {
  border-left-color: var(--danger-color);
  background: rgba(255, 135, 135, 0.1);
  color: #721c24;
}

.alert-warning {
  border-left-color: var(--warning-color);
  background: rgba(255, 212, 59, 0.1);
  color: #664d03;
}

/* 圖片畫廊 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Leaflet 地圖樣式 */
.map-container {
    height: 302px !important;
    min-height: 302px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: var(--border-radius);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
}

.custom-marker {
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow-medium);
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    color: var(--dark-color);
}

/* 附近景點卡片 */
.attraction-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

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

.attraction-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 附近美食卡片 */
.restaurant-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.restaurant-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* 顏色輔助類 */
.text-orange {
    color: #fd7e14 !important;
}

/* 備用地圖樣式 */
.fallback-map {
    min-height: 300px;
    transition: var(--transition);
}

.fallback-map:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

/* 頁面標頭圖片樣式 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    transition: transform 20s ease-out;
}

.hero-section:hover .hero-bg {
    transform: scale(1.05);
}

.hero-section .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 8px 16px;
}

.hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.hero-section .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

/* 標頭動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-section p,
.hero-section .d-flex {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    animation-delay: 0.2s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    animation-delay: 0.4s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section .d-flex {
    animation-delay: 0.6s;
}

/* 房型介紹樣式 */
.room-types-section {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.room-type-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 0.5rem;
    position: relative;
    scroll-behavior: smooth;
}

.room-type-tabs::before,
.room-type-tabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

.room-type-tabs::before {
    left: 0;
    background: linear-gradient(to right, var(--light-color), transparent);
}

.room-type-tabs::after {
    right: 0;
    background: linear-gradient(to left, var(--light-color), transparent);
}

.room-type-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.room-type-tabs-container {
    display: flex;
    min-width: max-content;
    gap: 0;
}

.room-type-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-weight: 500;
    color: var(--dark-color);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.room-type-tab:hover {
    color: var(--primary-color);
    background: rgba(44, 90, 160, 0.05);
}

.room-type-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(44, 90, 160, 0.1);
}

.room-type-content {
    display: none;
}

.room-type-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.room-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.room-type-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.room-type-price {
    text-align: right;
}

.room-type-price .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.room-type-price .unit {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.room-type-gallery {
    height: 300px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.room-type-gallery .main-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.room-type-gallery .main-image:hover {
    transform: scale(1.02);
}

.room-type-gallery .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.room-type-gallery .main-image:hover .image-overlay {
    opacity: 1;
}

.room-type-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.room-type-amenities h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.room-type-amenities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.room-type-amenities li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.room-type-amenities i {
    color: var(--success-color);
    margin-right: 0.5rem;
    width: 16px;
}

.room-type-specs {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.room-type-specs h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.spec-label {
    color: var(--dark-color);
    font-weight: 500;
}

.spec-value {
    color: var(--secondary-color);
    font-weight: 600;
}

.room-type-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.room-type-actions .btn {
    min-width: 150px;
}

.room-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-type-actions .btn.favorited {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.room-type-actions .btn.favorited:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .room-type-gallery {
        height: 250px;
    }
    
    .room-type-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .room-type-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .room-type-price {
        text-align: left;
    }
    
    .room-type-actions {
        flex-direction: column;
    }
    
    .room-type-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .room-types-section {
        padding: 1rem;
    }
    
    .room-type-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .room-type-price .price {
        font-size: 1.5rem;
    }
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section {
        height: 400px !important; /* 手機版也提高高度 */
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
    }
    
    .hero-section .d-flex span {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .hero-section {
        min-height: 500px; /* 桌面版最小高度 */
    }
}

/* Page Header 樣式 */
.page-header {
    height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page-header {
        height: 400px;
    }
}

@media (min-width: 1200px) {
    .page-header {
        height: 400px;
    }
}

/* ===== Swiper 樣式 ===== */

/* 新進民宿推薦 Swiper */
.block-swiper {
    width: 100%;
    padding: 20px 0 60px 0;
    position: relative;
}

.block-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.block-swiper .card {
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.block-swiper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Swiper 導航按鈕樣式 */
.block-swiper .swiper-button-next,
.block-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.block-swiper .swiper-button-next:after,
.block-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.block-swiper .swiper-button-next:hover,
.block-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Swiper 分頁指示器樣式 */
.block-swiper .swiper-pagination {
    bottom: 20px;
}

.block-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.block-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}


/* 熱門民宿推薦區塊特定樣式 */
.popular-bnb-swiper .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: calc(1.5em * 3); /* 固定為三行高度 */
}

/* 新進民宿推薦區塊特定樣式 */
.new-bnb-swiper .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: calc(1.5em * 3); /* 固定為三行高度 */
}

/* 文章推薦區塊特定樣式 */
.articles-swiper .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: calc(1.5em * 4); /* 固定為四行高度 */
}

/* 圖片來源標示樣式 */
.image-source {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.image-source a {
    color: white;
    text-decoration: none;
}

.image-source a:hover {
    color: white;
    text-decoration: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .block-swiper .swiper-button-next,
    .block-swiper .swiper-button-prev
    {
        width: 36px;
        height: 36px;
    }
    
    .block-swiper .swiper-button-next:after,
    .block-swiper .swiper-button-prev:after{
        font-size: 14px;
    }
    
    .block-swiper{
        padding: 10px 0 50px 0;
    }
}

@media (max-width: 576px) {
    .block-swiper .swiper-button-next,
    .block-swiper .swiper-button-prev
    {
        display: none;
    }
    
    .block-swiper .swiper-pagination
    {
        bottom: 10px;
    }
}

/* 導航列切換按鈕樣式 */
.navbar-toggler {
    border: 1px solid var(--dark-color);
    border-radius: var(--border-radius);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* 分頁樣式 */
.pagination {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.pagination li {
    display: inline-block;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.pagination li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination li.active {
    background: linear-gradient(135deg, #009688, #00bcd4);
    color: #fff;
    border: 1px solid #009688;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.4);
}

.pagination li.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border: 1px solid #e0e0e0;
}

.pagination li.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination li a,
.pagination li span {
    display: block;
    text-align: center;
    color: #333;
    text-decoration: none;
    padding: 10px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 36px;
    font-size: 14px;
    box-sizing: border-box;
}

.pagination li a:hover {
    background-color: rgba(0, 150, 136, 0.1);
    color: #009688;
    text-decoration: none;
}

.pagination li.active a,
.pagination li.active span {
    color: #fff;
    font-weight: 600;
}

.pagination li.active a:hover,
.pagination li.active span:hover {
    background-color: transparent;
    color: #fff;
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
}

.pagination li.disabled a:hover,
.pagination li.disabled span:hover {
    background-color: transparent;
    color: #ccc;
}

/* 分頁按鈕圖示樣式 */
.pagination li a i {
    font-size: 12px;
}

/* 響應式設計 */
@media (max-width: 576px) {
    .pagination {
        gap: 3px;
        margin: 20px 0;
        padding: 0 10px;
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 8px 10px;
        min-width: 32px;
        font-size: 12px;
    }
}

/* 超小螢幕優化 */
@media (max-width: 375px) {
    .pagination {
        gap: 2px;
        padding: 0 5px;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 6px 8px;
        min-width: 28px;
        font-size: 11px;
    }
}

/* 圖片來源標籤樣式 */
.image-source {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    z-index: 10;
    transition: var(--transition);
}

.image-source:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 收藏按鈕樣式 */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-light);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.favorite-btn:hover i {
    color: var(--danger-color);
}

.favorite-btn.active i {
    color: var(--danger-color);
}

/* 響應式設計 - 圖片來源標籤 */
@media (max-width: 768px) {
    .image-source {
        font-size: 0.7rem;
        padding: 3px 6px;
        bottom: 6px;
        right: 6px;
    }
    
    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .favorite-btn i {
        font-size: 1rem;
    }
}
