/* 全局微軟正黑體與基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

:root {
  --primary-color: #1a4d3e; /* 典雅深綠 */
  --secondary-color: #c5a059; /* 高感奢華金 */
  --text-dark: #2c3e50;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 1. 上下文字跑馬燈 */
.ticker-bar {
  background-color: #67a9cf;
  color: #fff;
  height: 38px;
  overflow: hidden;
  position: relative;
}

.ticker-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.ticker-wrapper {
  transition: transform 0.6s ease-in-out;
}

.ticker-item {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ticker-item i {
  margin-right: 8px;
}

/* 2. Header 導覽列 */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo-icon {
  width: 200px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon img{
  width: 100%;
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
  color: #67a9cf;
  letter-spacing: 1px;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--primary-color);
  cursor: pointer;
}

.nav-button-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-btn {
  background-color: var(--white);
  border: 1px solid #dcdcdc;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

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

/* 下拉選單 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  min-width: 160px;
  padding: 8px 0;
  margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-dark);
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f0f4f2;
  color: var(--primary-color);
}

/* 3. Banner 半滿版輪播 */
.banner-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 550px;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.banner-text {
  text-align: center;
  color: var(--white);
  padding: 20px;
  max-width: 800px;
}

.banner-text h2 {
  font-size: 40px;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.banner-text p {
  font-size: 16px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
}

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

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: var(--secondary-color);
  width: 28px;
  border-radius: 10px;
}

/* 4. Content 主內容區 */
.content-wrapper {
  max-width: 1500px;
  margin: 30px auto;
  padding: 0 20px;
}

.title-price-bar {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.main-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.print-btn {
  background-color: var(--bg-light);
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.print-btn:hover {
  color: var(--white);
}

.pdf-download-btn {
  display: inline-block;
  padding: 10px 20px;
  color: #000;            /* 文字顏色 */
  text-decoration: none;     /* 去除底線 */
  border-radius: 5px;        /* 圓角 */
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.pdf-download-btn:hover {
  color: #fff; 
  background-color: #67a9cf; /* 滑鼠懸停顏色 */
  border: 1px solid #67a9cf;
}

.price-group {
  text-align: right;
}

.price-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
}

.price-amount {
  font-size: 30px;
  font-weight: bold;
  color: #d9534f;
}

.price-amount small {
  font-size: 14px;
  color: var(--text-light);
}

/* 錨點導覽 */
.anchor-nav-wrapper {
  background: #67a9cf;
  border-radius: 8px;
  position: sticky;
  top: 80px;
  z-index: 900;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.anchor-nav {
  display: flex;
  justify-content: space-around;
}

.anchor-link {
  color: var(--white);
  padding: 14px 10px;
  font-size: 15px;
  text-align: center;
  flex: 1;
  transition: background 0.3s;
  font-weight: bold;
}

.anchor-link.active, .anchor-link:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  font-weight: bold;
}

.section-block {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 35px;
  
  /* 關鍵新增：當點擊錨點跳轉時，讓區塊頂部自動向下空出選單高度，不壓到文字 */
  scroll-margin-top: 130px; 
}

.section-title {
  font-size: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 行程特色 */
.feature-list {
  margin-top: 15px;
  padding-left: 20px;
}

.feature-list li {
  margin-bottom: 10px;
}

/* 每日行程卡片 */
.day-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-card {
  display: flex;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.day-card-img {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.day-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary-color);
  color: #ffffff;
  padding: 4px 12px;
  font-weight: bold;
  border-radius: 4px;
}

.day-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day-card-info h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.day-card-info p {
  text-indent: 2em; /* 首行縮進 2 個字寬 */
  line-height: 1.6; /* 順便調整行高，讓中文閱讀更舒適 (可依個人喜好選用) */
}

.day-location {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
}

.day-desc {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 15px;
}

.day-meta {
  background: #fdfcf7;
  border-left: 3px solid var(--secondary-color);
  padding: 10px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stars {
  color: #f39c12;
}

/* 參考航班表格 */
.table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

.flight-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.flight-table th, .flight-table td {
  padding: 12px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
}

.flight-table th {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 日曆系統 */
.calendar-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.month-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.month-btn:hover {
  background-color: #67a9cf;
  color: #fff;
}

.month-label {
  font-weight: bold;
  font-size: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.cal-day-header {
  font-weight: bold;
  background-color: #eee;
  padding: 8px 0;
  font-size: 13px;
}

.cal-date-cell {
  background: #f9f9f9;
  border: 1px solid #eaeaea;
  min-height: 60px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-date-cell:hover {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
}

.cal-date-cell.has-tour {
  background: #f0f7f4;
}

.cal-tour-tag {
  font-size: 15px;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 2px;
  padding: 2px;
  margin-top: 4px;
}

/* 頁籤分頁 */
.tab-buttons {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

/* 5. Footer 頁尾 */
.main-footer {
  background-color: #11261f;
  color: #a3b8b0;
  padding: 40px 20px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #23473b;
  padding-bottom: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo {
  font-size: 20px;
  color: var(--white);
  font-weight: bold;
}

.terms-link {
  color: var(--secondary-color);
}

.footer-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #23473b;
  padding-top: 20px;
  font-size: 13px;
}

/* 手機版置底按鈕 (電腦版隱藏) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 14px;
  gap: 6px;
}

.line-btn { background-color: #06c755; }
.book-btn { background-color: var(--secondary-color); color: var(--text-dark); }

/* TOP 回頂部按鈕 */
.back-to-top-btn {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: #c49f59;
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 990;
  font-size: 18px;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* 彈出視窗 Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: var(--shadow);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.modal-form {
  margin-top: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.text-center { text-align: center; }
.qrcode-wrapper img { margin: 15px 0; }
.qrcode-hint { font-size: 13px; color: var(--text-light); }

/* 滾動淡入特效動畫 */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
  text-align: justify;
}

/* 6. 手機版 RWD 樣式優化 */
@media (max-width: 768px) {
  /* Header 置頂置中 */
  .header-container {
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .mobile-toggle-btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  /* 手機版選單三排按鈕 */
  .nav-menu {
    display: none;
    width: 100%;
    margin-top: 30px;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-button-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .nav-btn, .dropdown {
    width: 100%;
  }

  .nav-btn {
    justify-content: center;
    padding: 10px;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: #f2f2f2;
    text-align: center;
  }

  /* Banner 調整 */
  .banner-section {
    height: 45vh;
  }
  
  .banner-text h2 { font-size: 20px; }
  .banner-text p { font-size: 13px; }

  /* 內容調整 */
  .day-card {
    flex-direction: column;
  }

  .day-card-img {
    width: 100%;
    height: 200px;
  }

  /* 錨點導覽置頂跟隨 */
  .anchor-nav-wrapper {
    top: 0;
  }

  .anchor-link {
    font-size: 13px;
    padding: 10px 4px;
  }


  /* 置底列 */
  .mobile-bottom-bar {
    display: flex;
  }

  body {
    padding-bottom: 50px; /* 避免被置底列遮住 */
  }

  .footer-info-grid {
    flex-direction: column;
    gap: 8px;
  }
}
/* ==========================================
   手機版 (max-width: 768px) 錨點列置頂修正
   ========================================== */
@media (max-width: 768px) {
  
  /* 確保錨點外框在手機版滾動時黏在頂部，並且不被 Header 遮住 */
  .anchor-nav-wrapper {
    position: sticky;
    top: 80px; /* 搭配手機版 Header 的實際高度，若被 Header 蓋住可微調為 65px 或 0 */
    z-index: 950; /* 確保高於 content 但低於 Header */
    margin-left: -10px;  /* 讓手機版稍微展開滿版 */
    margin-right: -10px;
    border-radius: 0;   /* 置頂時貼合螢幕邊緣效果更佳 */
  }

  /* 手機版橫向滾動優化（若手機螢幕較窄，按鈕自動支援橫向滑動不擠壓） */
  .anchor-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* iOS 順暢滑動 */
  }

  .anchor-link {
    flex: 0 0 auto; /* 避免文字被壓縮 */
    padding: 12px 16px;
    font-size: 14px;
  }
}
/* 手機版 RWD 的滾動預留高度微調 */
@media (max-width: 768px) {
  .section-block {
    scroll-margin-top: 110px; /* 手機版選單較窄，預留約 110px */
  }
}

/* ==========================================
   日曆系統基礎與手機版縮小防擠壓修正
   ========================================== */

/* 1. 調整日曆邊距與間距，預防欄位被壓到 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px; /* 縮小網格間距（原本是 6px） */
  text-align: center;
  width: 100%;
}

.cal-date-cell {
  background: #f9f9f9;
  border: 1px solid #eaeaea;
  min-height: 70px;
  padding: 4px 2px; /* 縮減內邊距，留出更多空間 */
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box; /* 確保邊框不超出範圍 */
}

/* 2. 手機版 (max-width: 768px) 專屬日曆微縮 */
@media (max-width: 768px) {
  
  /* 縮減日曆外層容器的左右 Padding，讓日曆有更多展延空間 */
  .section-block {
    padding: 20px 10px; /* 從原本 30px 縮減到 10px，讓日曆往內縮 */
  }

  /* 網格間距調更小 */
  .calendar-grid {
    gap: 2px;
  }

  /* 星期頭部字體微縮 */
  .cal-day-header {
    font-size: 12px;
    padding: 6px 0;
  }

  /* 日期格子高度與字體優化 */
  .cal-date-cell {
    min-height: 48px;
    padding: 2px 1px;
    font-size: 12px;
  }

  /* 可出發標籤微縮，防止字體太寬把欄位推爆 */
  .cal-tour-tag {
    font-size: 9px;
    padding: 1px;
    line-height: 1.1;
    letter-spacing: -0.5px; /* 略微收緊字距 */
    word-break: break-all;
  }
}

/* ==========================================
   手機版 (max-width: 768px) 標題、PDF與金額置中
   ========================================== */
@media (max-width: 768px) {

  /* 1. 將整塊卡片改為垂直單欄排列，並全體置中 */
  .title-price-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  /* 2. 標題與 PDF 按鈕群組置中 */
  .title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* 3. 標題文字置中 */
  .main-title {
    text-align: center;
    font-size: 18px; /* 手機版標題字體微調更精緻 */
    margin-bottom: 12px;
  }

  /* 4. PDF 按鈕置中 */
  .print-btn {
    margin: 0 auto;
  }

  /* 5. 價格區塊置中 */
  .price-group {
    text-align: center;
    width: 100%;
  }
}

/* ==========================================
   手機版 (max-width: 768px) 航班表格卡片化修正
   ========================================== */
@media (max-width: 768px) {

  /* 1. 隱藏傳統表格標頭 */
  .flight-table thead {
    display: none;
  }

  /* 2. 表格與列轉為區塊卡片 */
  .flight-table, 
  .flight-table tbody, 
  .flight-table tr, 
  .flight-table td {
    display: block;
    width: 100%;
  }

  /* 3. 每一筆航班轉為獨立精緻卡片 */
  .flight-table tr {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  /* 4. 每行欄位改為左右對齊 (左邊標題，右邊內容) */
  .flight-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px;
    border: none;
    border-bottom: 1px dashed #eee;
    text-align: right;
    font-size: 14px;
  }

  /* 移除最後一行的虛線邊框 */
  .flight-table td:last-child {
    border-bottom: none;
  }

  /* 5. 利用 ::before 自動帶出欄位名稱 */
  .flight-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--primary-color);
    text-align: left;
    padding-right: 10px;
    white-space: nowrap;
  }

  /* 6. 「天數」欄位高亮顯示 */
  .flight-table td[data-label="天數"] {
    background-color: #f0f7f4;
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
  }
}

/* ==========================================
   電腦版：金額下方「立即報名付款」按鈕樣式
   ========================================== */
.price-group {
  flex-direction: column;
  align-items: flex-end; /* 讓金額與按鈕右對齊 */
}

.btn-signup-desktop {
  margin-top: 10px;
  padding: 10px 24px;
  background-color: #c89b53; /* 質感金色/棕色，可依您的主色系調整 */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 滑鼠懸停效果 */
.btn-signup-desktop:hover {
  background-color: #b0843e;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}


/* ==========================================
   手機版 (max-width: 768px) 隱藏此按鈕
   ========================================== */
@media (max-width: 768px) {
  
  /* 在手機版自動隱藏電腦版的報名按鈕 */
  .btn-signup-desktop {
    display: none !important;
  }
}

/* ==========================================
   手機版選單按鈕 (.mobile-toggle-btn) 放大修正
   ========================================== */
@media (max-width: 768px) {

    .mobile-toggle-btn {
        display: flex;             /* 改為 flex 確保內部圖示完美居中 */
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 15px;               /* 微調右側邊距 */
        top: 10px;                 /* 微調頂部距離 */
        
        /* 關鍵：控制放大尺寸與觸控範圍 */
        font-size: 28px !important;/* 放大圖示 (原本通常是 18px~20px) */
        width: 44px;               /* 加大可點擊範圍，提升手機體驗 */
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }

    /* 若按鈕內部包含 <i> 標籤、FontAwesome 或 SVG 圖示 */
    .mobile-toggle-btn i,
    .mobile-toggle-btn svg {
        font-size: 40px !important;
        width: 28px;
        height: 28px;
    }

    /* 若按鈕內部是用 span 畫出的三條線 (Hamburger) */
    .mobile-toggle-btn span {
        width: 26px;               /* 加長橫線 */
        height: 3px;                /* 加粗橫線 */
        background-color: #1d4d4f;  /* 您的品牌深綠色 */
        margin: 3px 0;
    }
}

/* ==========================================
   精選旅宿無縫自動跑馬燈 (RWD 樣式)
   ========================================== */
.hotel-marquee-section {
  background-color: #f4f7fa; /* 搭配畫面的淺灰藍背景 */
  padding: 40px 0;
  margin-top: 30px;
  overflow: hidden;
}

.marquee-header {
  text-align: center;
  margin-bottom: 25px;
}

.marquee-title {
  font-size: 30px;
  color: #1e293b;
  font-weight: bold;
  margin-bottom: 8px;
}

.marquee-subtitle {
  font-size: 14px;
  color: #64748b;
}

/* 跑馬燈軌道容器 */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 左右漸層淡出遮罩（增加視覺高級感） */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f4f7fa, transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f4f7fa, transparent);
}

/* 動畫軌道 (由右向左無限滑動) */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

/* 滑鼠懸停時暫停動態（方便使用者點擊） */
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

/* 旅宿卡片樣式 */
.hotel-card {
  width: 400px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.hotel-img-box {
  position: relative;
  width: 100%;
  height: 300px;
}

.hotel-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hotel-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.hotel-info h4 {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: bold;
}

.hotel-address {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 12px;
  /*white-space: nowrap;*/
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.stars {
  color: #1e293b;
  font-size: 14px;
  letter-spacing: 2px;
}

.detail-link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

/* Keyframes: 靜態與動畫由右至左平滑移動 */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* 精確移動一半寬度實現無縫銜接 */
  }
}

/* ==========================================
   手機版 (max-width: 768px) RWD 微調
   ========================================== */
@media (max-width: 768px) {
  .hotel-marquee-section {
    padding: 25px 0;
  }

  .marquee-title {
    font-size: 20px;
  }

  .marquee-subtitle {
    font-size: 12px;
    padding: 0 15px;
  }

  .marquee-group {
    gap: 12px;
    padding-right: 12px;
  }

  /* 手機版卡片縮小，確保畫面上一次能看到更多張卡片邊緣 */
  .hotel-card {
    width: 200px;
  }

  .hotel-img-box {
    height: 120px;
  }

  .hotel-info h4 {
    font-size: 14px;
  }

  /* 手機版淡出遮罩縮小 */
  .marquee-container::before,
  .marquee-container::after {
    width: 30px;
  }
}

/* ==========================================
   卡片基本轉場設定 (平滑動畫基礎)
   ========================================== */
.detail-link {
  text-decoration: none; /* 移除外層連結底線 */
  color: inherit;
  display: block;
}

.hotel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 設定平滑過渡 */
  will-change: transform;
}

.hotel-img-box {
  overflow: hidden; /* 確保圖片放大時不會超出容器 */
}

.hotel-img-box img {
  transition: transform 0.5s ease; /* 圖片放大平滑效果 */
}

.hotel-info h4 {
  transition: color 0.3s ease;
}


/* ==========================================
   電腦版專用：滑鼠懸停 (Hover) 效果
   ========================================== */
@media (min-width: 769px) {
  
  /* 1. 當滑鼠移入卡片時：卡片上浮 + 陰影加深 */
  .detail-link:hover .hotel-card {
    transform: translateY(-8px); /* 向上懸浮 8px */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* 加深立體陰影 */
  }

  /* 2. 當滑鼠移入卡片時：圖片微放大 (Zoom-in 效果) */
  .detail-link:hover .hotel-img-box img {
    transform: scale(1.08); /* 圖片放大 1.08 倍 */
  }

  /* 3. 當滑鼠移入卡片時：標題變色 (增加視覺反饋) */
  .detail-link:hover .hotel-info h4 {
    color: #0056b3; /* 可替換為您的品牌主色，例如藍色或金色 */
  }
}

/* ==========================================
   景點亮點與概要介紹區塊 樣式
   ========================================== */
.spots-highlights-section {
  margin: 30px 0;
  padding: 25px;
  background-color: #fcfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

/* 上方概要卡片框 */
.spots-summary-box {
  background-color: #f0f7f4;
  border-left: 4px solid #1d4d4f;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.spots-subtitle {
  color: #1d4d4f;
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 12px;
}

.spots-list.main-spots {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: #334155;
  font-size: 15px;
}

.ticket-included-desc {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.highlight-tag {
  color: #d97706;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

/* 下方景點介紹列表 */
.spots-main-title {
  color: #1d4d4f;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.spot-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px dashed #cbd5e1;
}

.spot-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.spot-text {
  flex: 1;
}

.spot-text h4 {
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 10px;
  font-weight: bold;
}

.badge-tag {
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.sub-info {
  font-size: 14px;
  color: #64748b;
  font-weight: normal;
}

.spot-text p {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.7;
}

.spot-sub-list {
  list-style: none;
  padding-left: 0;
}

.spot-sub-list li {
  margin-bottom: 8px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.6;
}

/* 雙圖片圖庫 (右側) */
.spot-gallery {
  display: flex;
  gap: 10px;
  width: 320px;
  flex-shrink: 0;
}

.spot-gallery img {
  width: 50%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ==========================================
   手機版 RWD 適應 (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
  .spots-summary-box {
    grid-template-columns: 1fr;
  }

  .spots-list.main-spots {
    grid-template-columns: 1fr;
  }

  .spot-item {
    flex-direction: column;
  }

  .spot-gallery {
    width: 100%;
  }

  .spot-gallery img {
    height: 140px;
  }
}

@media (max-width: 768px) {
  /* 外層容器：改為網格排列 */
  .tab-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 一行 3 個按鈕 */
    gap: 6px !important;                              /* 按鈕間距 */
    width: 100% !important;
    overflow: hidden !important;                      /* 絕不產生卷軸 */
  }

  /* 按鈕本體 */
  .tab-buttons .tab-btn {
    width: 100% !important;
    padding: 8px 4px !important;
    font-size: 13px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}


/* ==========================================
   1. 平常網頁顯示時：把列印區塊隱藏
   ========================================== */
.print-area {
  display: none;
}

/* ==========================================
   2. 列印模式 (@media print) 精準 1 頁控制
   ========================================== */
@media print {
  /* 設定 A4 單頁邊距 */
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  /* 關鍵點：當 body 帶有 .is-printing 時，把除了 .print-area 以外的所有東西徹底隱藏 */
  body.is-printing > *:not(.print-area) {
    display: none !important;
  }

  /* 顯示列印區域 */
  body.is-printing .print-area {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
  }

  /* 縮小文字與表格內距，保證 100% 容納於單一頁面 */
  .print-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 6px;
  }

  .itinerary-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #000;
    margin-bottom: 6px;
  }

  .itinerary-table th,
  .itinerary-table td {
    border: 1px solid #000;
    padding: 3px 5px;
    font-size: 11px;
    line-height: 1.3;
    vertical-align: top;
  }

  .itinerary-notes {
    font-size: 10px;
    line-height: 1.35;
  }

  .note-row {
    margin-bottom: 1.5px;
  }

  .justify-between {
    display: flex;
    justify-content: space-between;
  }

  .text-center {
    text-align: center;
    margin: 2px 0;
  }

  .print-area {
    display: none !important;
  }

}

/* 區塊外層容器 */
.food-section-container {
    max-width: 1500px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 區塊精緻大標題 */
.food-section-header {
    margin-bottom: 45px;
    position: relative;
}

.food-section-main-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--ink-dark);
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    font-weight: 600;
}

.food-section-main-title .title-sub {
    font-size: 1.5rem;
    color: var(--jade-green);
    font-weight: 400;
}

.food-section-deco-line {
    width: 60px;
    height: 3px;
    background-color: var(--jade-green);
    border-radius: 2px;
}

/* ==================== 樣式一：傳統雙欄圖文排版 ==================== */
.food-section-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.food-section-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-num-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
}

.card-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--jade-green);
    font-weight: bold;
    opacity: 0.8;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--ink-dark);
    margin: 0;
}

.card-content-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

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

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

.card-text-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-desc {
    margin: 0;
    font-size: 0.95rem;
    text-align: justify;
}

.highlight-desc {
    color: var(--text-main);
    font-weight: 500;
}

.sub-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-left: 2px solid var(--jade-green);
}

/* ==================== 樣式二：錯落雜誌風排版 ==================== */
.food-section-grid-mixed {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.food-section-left-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-item-block {
    background: #ffffff;
    padding: 10px 0 10px 15px;
}

.list-item-block .card-desc {
    color: var(--text-main);
    padding-left: 43px; /* 對齊標題文字 */
}

.food-section-right-focus {
    background: var(--jade-light);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(58, 125, 110, 0.1);
}

.focus-image-container {
    width: 100%;
    /*max-width: 320px;*/
    margin: 0 auto 25px auto;
    background: #ffffff;
    padding: 15px;
    border-radius: 50%; /* 契合原本白底圓形容器感 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.focus-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}

.focus-quote-box {
    padding-top: 15px;
}

.quote-tag {
    font-family: var(--font-serif);
    display: inline-block;
    color: var(--jade-green);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.quote-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-dark);
    line-height: 1.8;
    text-align: justify;
}

/* ==================== 樣式三：伴手禮精緻櫥窗排版 ==================== */
.gift-section-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.gift-info-sidebar {
    background: linear-gradient(135deg, var(--jade-light) 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 12px;
    border-right: 3px solid var(--jade-green);
}

.gift-subtitle-accent {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--jade-green);
    margin: 0 0 25px 0;
    position: relative;
}

.gift-item-detail {
    margin-bottom: 25px;
}

.gift-item-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--ink-dark);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.gift-item-p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: justify;
}

.highlight-culture {
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

/* 右側展示牆 */
.gift-display-gallery {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.gallery-row-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.gallery-img-frame {
    width: 100%;
    /*height: 200px;*/
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-meta {
    padding: 15px;
    background: var(--bg-accent);
    border-top: 1px solid var(--border-color);
}

.meta-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--jade-green);
    font-weight: bold;
    margin-bottom: 4px;
}

.meta-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gallery-footer-summary {
    background: var(--ink-dark);
    color: #ad0e0e;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.15);

}

.gallery-footer-summary p {
    margin: 0;
    letter-spacing: 0.5px;
}

.day-gallery {
  display: flex;
  gap: 10px; /* 小圖之間的間距 */
  margin: 15px 0; /* 上下邊距 */
}

.day-gallery img {
  width: calc(33.333% - 7px); /* 三張平均分佈 */
  height: 150px; /* 可依需求調整高度 */
  object-fit: cover; /* 確保圖片不變形 */
  border-radius: 6px; /* 圓角效果 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 小圖區塊排版與滑鼠移入效果 */
.day-gallery {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.day-gallery img.lightbox-trigger {
  width: calc(33.333% - 7px);
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.day-gallery img.lightbox-trigger:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* --- 燈箱背景與彈出視窗 --- */
.lightbox-modal {
  display: none; /* 預設隱藏 */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(0, 0, 0, 0.85); /* 半透明黑背景 */
  backdrop-filter: blur(5px); /* 背景模糊感 */
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* 放大後的圖片 */
.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease-out;
}

@media (max-width: 500px) {
  .lightbox-modal {
  top: 35em;
  height: 5%;
  padding: 5px;
}
    
}

/* 關閉按鈕 (右上角 X) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #bbb;
}

/* 縮放出現動畫 */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==================== RWD 響應式斷點設定 (手機與平板) ==================== */
@media (max-width: 992px) {
    .food-section-grid-mixed,
    .gift-section-layout {
        grid-template-columns: 1fr; /* 轉為單欄 */
        gap: 35px;
    }
    
    .food-section-right-focus {
        order: -1; /* 讓圖片在手機版優先顯示 */
    }
    
    .gift-info-sidebar {
        border-right: none;
        border-bottom: 3px solid var(--jade-green);
    }
}

@media (max-width: 768px) {
    .food-section-grid-2col,
    .gallery-row-images {
        grid-template-columns: 1fr; /* 全面轉為單欄排版 */
        gap: 25px;
    }
    
    .food-section-container {
        margin: 30px auto;
        padding: 20px 15px;
    }
    
    .food-section-main-title {
        font-size: 1.6rem;
    }
    
    .list-item-block .card-desc {
        padding-left: 0; /* 手機版還原間距 */
        margin-top: 8px;
    }
    
    .gallery-img-frame {
        /*height: 240px; /* 手機版放大櫥窗高度 */
    }
}