@charset "UTF-8";
/* ==========================================
   🏮 主題：Modern Oriental Zen (新中式禪意風)
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;600&family=Noto+Serif+TC:wght@400;500;700&display=swap');

/* 🌟 核心：啟動平滑捲動 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

/* 🌟 新中式古典色票 */
:root {
  --bg-color: #F7F4ED;         /* 宣紙米白 */
  --text-main: #2C2825;        /* 墨黑 */
  --text-light: #706863;       /* 淺墨灰 */
  --accent-color: #B23A28;     /* 硃砂紅 (經典故宮紅) */
  --tip-bg: #F0EBE1;           /* 仿古舊紙色 */
  --border-color: #D3C7B7;     /* 窗櫺邊框色 */
}

/* 滾動條美化 (配合中式風格) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #D3C7B7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

body {
  margin: 0; padding: 0;
  background-color: var(--bg-color);
  font-family: 'Noto Sans TC', sans-serif; /* 內文保持黑體易讀 */
  color: var(--text-main);
  line-height: 1.85; /* 中式排版需要更寬鬆的呼吸空間 */
  font-size: 18px;
  overflow-x: hidden;
}

/* 讓所有標題變成高質感的明體字 (仿宋/楷體感) */
h1, h2, h3, h5, .desktop-only-title, .price, .tip-title {
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 1.5px;
}

/* ==========================================
   1. 頂部閱讀進度條 (硃砂紅墨跡)
========================================== */
.progress-container { width: 100%; height: 3px; background: transparent; position: fixed; top: 0; left: 0; z-index: 9999; }
.progress-bar { height: 3px; background: var(--accent-color); width: 0%; box-shadow: 0 1px 5px rgba(178, 58, 40, 0.4); }

/* ==========================================
   2. 極簡導覽目錄 (宣紙毛玻璃)
========================================== */
.toc-nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(247, 244, 237, 0.85); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; gap: 15px; padding: 12px 20px; 
  border-bottom: 1px solid var(--border-color);
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start;
}
.toc-nav::-webkit-scrollbar { display: none; }
.toc-nav a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.95rem; font-weight: 400; padding: 6px 18px;
  border-radius: 4px; /* 中式不愛大圓角，改為微方正 */
  border: 1px solid transparent; 
  transition: all 0.3s ease; white-space: nowrap; 
  font-family: 'Noto Serif TC', serif; /* 目錄使用明體 */
}
.toc-nav a:hover, .toc-nav a:active {
  background: transparent; color: var(--accent-color); border-color: var(--accent-color);
}
@media (min-width: 768px) { .toc-nav { justify-content: center; } }

/* ==========================================
   3. 沉浸式微動畫 (高階骨牌錯落版)
========================================== */
.fade-in-up .spot-header, .fade-in-up .image-secondary, .fade-in-up .text-primary, .trip-tip.fade-in-up { 
  opacity: 0; transform: translateY(20px); filter: blur(3px); 
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.fade-in-up.visible .spot-header { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0s; }
.fade-in-up.visible .image-secondary { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.2s; }
.fade-in-up.visible .text-primary { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.4s; }
.trip-tip.fade-in-up.visible { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.2s; }

/* ==========================================
   4. Hero 滿版視覺 (中式暖墨遮罩)
========================================== */
.hero-header {
  position: relative; width: 100%; height: 70vh; min-height: 480px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center; margin-bottom: 0;
}
.hero-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  /* 暖色調的黑遮罩，帶出一點歷史感 */
  background: linear-gradient(to bottom, rgba(44, 40, 37, 0.3) 0%, rgba(44, 40, 37, 0.8) 100%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-content h1 {
  color: #FFFFFF; font-size: 2.8rem; font-weight: 500; margin-bottom: 20px; line-height: 1.4;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);    
}
.hero-content .subtitle { color: #EAEAEA; font-size: 1.15rem; font-weight: 300; letter-spacing: 3px; }
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content .subtitle { font-size: 1rem; }
}

/* ==========================================
   5. 麵包屑導覽 (東方簡約)
========================================== */
.breadcrumb-nav { max-width: 1000px; margin: 0 auto; padding: 30px 20px 10px 20px; }
.breadcrumb-nav ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb-nav li { display: flex; align-items: center; font-size: 0.85rem; color: var(--text-light); letter-spacing: 1px; }
.breadcrumb-nav li:not(:last-child):::after { content: "、"; font-size: 0.85rem; margin-left: 8px; color: var(--border-color); }
.breadcrumb-nav a { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb-nav a:hover { color: var(--accent-color); }
.breadcrumb-nav li[aria-current="page"] { color: var(--text-main); font-weight: 600; }
/* 麵包屑之間的小箭頭分隔符號 */
.breadcrumb-nav li:not(:last-child)::after {
  content: "❯"; 
  font-size: 0.65rem;
  margin-left: 8px;
  color: #D3CFC6; /* 極淡的燕麥灰，不搶視覺 */
}


/* ==========================================
   6. 文章主體 (詩意排版)
========================================== */
.content-wrapper { position: relative; width: 100%; padding-top: 40px; }
.magazine-article { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px 20px; }
.spot-section { margin-bottom: 70px; }

/* 標題加上中式紅印直條 */
.spot-header h2 { 
  font-size: 1.8em; color: var(--text-main);
  border-left: 4px solid var(--accent-color); 
  padding-left: 18px; margin-bottom: 20px; 
}

/* 🌟 印章風格標籤 (Seal Tags) */
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.tags span {
  display: inline-block; background-color: transparent; color: var(--accent-color); 
  font-size: 0.85rem; font-weight: 400; padding: 4px 12px; border-radius: 2px; 
  border: 1px solid var(--accent-color); letter-spacing: 2px; transition: all 0.3s ease; cursor: default;
  font-family: 'Noto Serif TC', serif;
}
.tags span:hover { background-color: var(--accent-color); color: #FFF; box-shadow: 0 4px 10px rgba(178, 58, 40, 0.2); }

.spot-content { display: flex; flex-direction: column; gap: 40px; }
.text-primary p { margin-bottom: 1.8em; text-align: justify; font-weight: 400; letter-spacing: 0.5px; }

/* 🌟 畫軸風格圖片 (Scroll Image Styling) */
.image-gallery { display: flex; flex-direction: column; gap: 40px; }
.image-item { margin: 0; padding: 0; display: flex; flex-direction: column; }
.image-secondary img { 
  width: 100%; height: auto; 
  border-radius: 0px; /* 傳統畫作無圓角 */
  padding: 8px; /* 留白邊框 */
  background-color: #FFF;
  border: 1px solid var(--border-color); /* 外層細線 */
  box-shadow: 2px 4px 15px rgba(0,0,0,0.04);
}
.image-secondary figcaption { 
  margin-top: 15px; font-size: 0.85em; color: var(--text-light); 
  text-align: center; line-height: 1.6; font-family: 'Noto Serif TC', serif;
}

@media (min-width: 768px) {
  .spot-content { flex-direction: row; align-items: flex-start; }
  .spot-content.reverse { flex-direction: row-reverse; }
  .text-primary { flex: 6; }
  .image-secondary { flex: 4; position: sticky; top: 100px; } 
}

/* Day蛙 專屬 Tip 樣式 (新中式便箋版) */
.trip-tip { 
  background-color: transparent; padding: 30px; border-radius: 0; margin: 40px 0 60px 0; 
  border-top: 1px solid var(--accent-color); border-bottom: 1px solid var(--accent-color);
  position: relative;
}
.trip-tip::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; right: 0;
  border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); pointer-events: none;
}
.tip-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.mascot-avatar {
  width: 70px; height: 70px; border-radius: 50%; object-fit: cover; 
  border: 2px solid var(--accent-color); background-color: #fff; padding: 2px;
}
.tip-title { color: var(--accent-color); font-weight: 700; font-size: 1.15rem; letter-spacing: 2px; }
.trip-tip p { margin: 0; font-size: 0.95em; color: var(--text-main); }
.section-divider { border: 0; height: 1px; background-color: var(--border-color); margin: 80px 0; position: relative; }
.section-divider::after {
  content: "✦"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background-color: var(--bg-color); padding: 0 15px; color: var(--accent-color); font-size: 0.8rem;
}

/* ==========================================
   7. 行程推薦區塊 (古樸卡牌)
========================================== */
.tour-section { max-width: 1000px; margin: 60px auto 40px auto; padding: 0 20px; }
.desktop-only-title { display: none; } 

.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel-track { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 20px; padding: 15px 5px; flex: 1; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }

.tour-card { 
  min-width: 250px; flex: 0 0 calc(50% - 10px); 
  background: #FFF; border-radius: 0; border: 1px solid var(--border-color); 
  box-shadow: 2px 4px 15px rgba(0,0,0,0.03); text-align: left; 
  transition: all 0.4s ease; display: flex; flex-direction: column; overflow: hidden; 
}
.tour-card:hover { transform: translateY(-5px); box-shadow: 2px 10px 25px rgba(178, 58, 40, 0.1); border-color: var(--accent-color); }

.tour-photo { width: 100%; height: 160px; overflow: hidden; padding: 6px; background: #FFF; box-sizing: border-box;}
.tour-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tour-card:hover .tour-photo img { transform: scale(1.05); }

.tour-info { padding: 20px 20px 25px 20px; }
.tour-card h5 { font-size: 1.15rem; margin: 0 0 12px 0; color: var(--text-main); line-height: 1.4; } 
.tour-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }
.price { color: var(--accent-color); font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; }

.btn-sleek { 
  display: block; text-align: center; background: transparent; color: var(--accent-color); 
  text-decoration: none; padding: 10px 20px; border: 1px solid var(--accent-color); 
  border-radius: 2px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; 
  font-family: 'Noto Serif TC', serif; letter-spacing: 1px;
}
.btn-sleek:hover { background: var(--accent-color); color: #FFF; }

.nav-btn { 
  background: #FFF; border: 1px solid var(--border-color); color: var(--text-main);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; 
  font-size: 1rem; display: flex; align-items: center; justify-content: center; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); z-index: 10; flex-shrink: 0; transition: all 0.3s ease;
}
.nav-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }

@media (max-width: 768px) { .tour-card { flex: 0 0 calc(85% - 10px); } }

/* ==========================================
   8. 電腦大螢幕：新中式宣紙懸浮卡牌
========================================== */
@media (min-width: 1440px) {
  .content-wrapper { display: flex; justify-content: center; }
  .magazine-article { width: 1000px; flex-shrink: 0; }
  .tour-section {
    position: absolute; top: 0; right: 0; height: 100%;
    width: calc((100vw - 1000px) / 2); min-width: 320px; margin: 0; padding: 0;
  }
  .carousel-wrapper {
    position: sticky; top: 15vh; width: 290px; margin: 0 auto;
    background: rgba(247, 244, 237, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(211, 199, 183, 0.5); border-radius: 4px;
    padding: 30px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  }
  .desktop-only-title {
    display: block; font-size: 1.3rem; text-align: center; color: var(--accent-color);
    margin: 0 0 20px 0; border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
  }
  .carousel-track { flex-direction: column; gap: 20px; max-height: 65vh; overflow-y: auto; padding: 5px; }
  .nav-btn { display: none; }
  .tour-card {
    flex: 0 0 auto; width: 100%; margin: 0;
    background: #FFF; box-shadow: none; border: 1px solid var(--border-color);
  }
  .tour-card:hover { border-color: var(--accent-color); }
}

/* ==========================================
   9. 手機版：古典印信懸浮按鈕
========================================== */
.mobile-cta {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: none; 
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.btn-mobile-elegant {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(178, 58, 40, 0.95); /* 硃砂紅半透明 */
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #FFF; padding: 12px 28px; border-radius: 4px; /* 方正微圓角 */
  font-weight: 500; font-size: 1rem;
  box-shadow: 0 8px 25px rgba(178, 58, 40, 0.3); 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  text-decoration: none; letter-spacing: 2px; white-space: nowrap; 
  font-family: 'Noto Serif TC', serif;
}

.cta-icon { color: #FFF; font-size: 1.1rem; opacity: 0.8; }
.mobile-cta.hide { transform: translate(-50%, 80px); opacity: 0; pointer-events: none; }
@media (max-width: 991px) { .mobile-cta { display: block; } }