@charset "UTF-8";

/* ==========================================
   🌴 主題：Hainan Island Summer Passion (海南島夏日熱情風)
   版本：Ver 5.1 (字體清晰優化版)
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

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

/* 🌟 夏日低彩度色票 (提升了文字對比度) */
:root {
  --bg-color: #FAFAFA;         /* 乾淨明亮的背景 */
  --sand-color: #F4EBE1;       /* 淺沙灘色 */
  --text-main: #1A1A1A;        /* 更深的碳黑，解決模糊感 */
  --text-light: #555555;       /* 加深淺灰，提升辨識度 */
  --accent-color: #D67A62;     /* 暖陽橘 (低彩度) */
  --ocean-green: #8DB2A6;      /* 鼠尾草/海浪綠 (低彩度) */
  --tip-bg: #EAF0EF;           /* 海風微綠底色 */
  --tag-bg: #FFFFFF;           /* 標籤底色 */
  --border-color: #E2E8E4;     /* 柔和邊線 */
}

/* 🌟 清爽捲軸美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { 
  background: var(--ocean-green); 
  border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

body {
  margin: 0; padding: 0;
  background-color: var(--bg-color);
  font-family: 'Varela Round', 'Nunito', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 18px; /* 恢復成較舒適的 18px */
  font-weight: 400; /* 明確指定基礎字重 */
  overflow-x: hidden;
  
  /* 🌟 關鍵修正：強制開啟字體抗鋸齒，讓電腦螢幕字體更銳利 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 引入思源宋體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;700&display=swap');

h1, h2, h3, h5, .desktop-only-title, .tip-title, .price {
  /* 將 Noto Sans TC 改為 Noto Serif TC，並加上 serif 結尾 */
  font-family: 'Montserrat', 'Noto Serif TC', serif; 
  letter-spacing: 1px; /* 明體字距稍微拉開會更優雅 */
  font-weight: 700;
}
/* ==========================================
   1. 頂部閱讀進度條 (暖陽橘)
========================================== */
.progress-container { width: 100%; height: 4px; background: transparent; position: fixed; top: 0; left: 0; z-index: 9999; }
.progress-bar { 
  height: 100%; 
  background: var(--accent-color); 
  width: 0%; 
}

/* ==========================================
   2. 導覽目錄 (渡假白膠囊)
========================================== */
.toc-nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; gap: 12px; padding: 15px 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: 500; padding: 8px 20px;
  border-radius: 30px; 
  background-color: var(--tag-bg);
  border: 1px solid var(--border-color); 
  transition: all 0.3s ease; white-space: nowrap; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.toc-nav a:hover, .toc-nav a:active {
  background-color: var(--ocean-green);
  color: #FFF;
  border-color: var(--ocean-green);
  box-shadow: 0 4px 10px rgba(141, 178, 166, 0.3);
}
@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(30px); 
  filter: blur(4px);           
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              filter 1s ease;
  will-change: opacity, transform;
}

@media (max-height: 500px) and (orientation: landscape) {
  .fade-in-up .spot-header, .fade-in-up .image-secondary, .fade-in-up .text-primary, .trip-tip.fade-in-up {
    transform: translateY(15px); 
    filter: blur(2px);           
    transition-duration: 0.6s;   
  }
}

.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.1s; }
.fade-in-up.visible .text-primary { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.2s; }
.trip-tip.fade-in-up.visible { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.1s; }

/* ==========================================
   4. Hero 滿版視覺 (清新海島風)
========================================== */
.hero-header {
  position: relative; width: 100%; height: 75vh; min-height: 400px;
  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(0,0,0,0.2) 0%, rgba(141,178,166,0.4) 100%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-content h1 {
  color: #FFF; 
  font-size: 3rem; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 15px; line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);    
}
.hero-content .subtitle { 
  color: #FFF; font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; 
  background: rgba(0,0,0,0.2); padding: 5px 15px; border-radius: 20px; backdrop-filter: blur(4px);
  display: inline-block;
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .subtitle { font-size: 0.95rem; }
}

/* ==========================================
   5. 麵包屑導覽 (沙灘風)
========================================== */
.breadcrumb-nav { max-width: 1000px; margin: 0 auto; padding: 25px 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); }
.breadcrumb-nav li:not(:last-child)::after { content: "/"; font-size: 1rem; margin-left: 8px; color: var(--border-color); }
.breadcrumb-nav a { color: var(--ocean-green); 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; }

/* ==========================================
   6. 文章主體 (簡潔明亮)
========================================== */
.content-wrapper { position: relative; width: 100%; padding-top: 30px; }
.magazine-article { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px 20px; }
.spot-section { margin-bottom: 60px; }
.spot-header h2 { 
  font-size: 1.8rem; 
  color: var(--text-main);
  position: relative;
  display: inline-block; 
  margin-bottom: 25px; 
  z-index: 1;
}
/* 標題底部的彩色螢光筆效果 (低彩度版) */
.spot-header h2::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 10px; width: 100%;
  background-color: rgba(214, 122, 98, 0.2); z-index: -1;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tags span {
  display: inline-block; background-color: var(--sand-color); color: var(--text-main); 
  font-size: 0.85rem; font-weight: 500; padding: 5px 12px; border-radius: 20px; 
  transition: all 0.3s ease; cursor: default; border: 1px solid transparent;
}
.tags span:hover { background-color: var(--ocean-green); color: #FFF; }

.spot-content { display: flex; flex-direction: column; gap: 30px; }
.text-primary p { margin-bottom: 1.8em; text-align: justify; color: var(--text-main); }

/* 單圖與照片說明 (寶麗來感) */
.image-gallery { display: flex; flex-direction: column; gap: 30px; }
.image-item { margin: 0; padding: 0; display: flex; flex-direction: column; }
.image-secondary img { 
  width: 100%; height: auto; border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06); 
}
.image-secondary figcaption { 
  margin-top: 12px; font-size: 0.85em; color: var(--text-light); 
  text-align: center;
}

@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: var(--tip-bg); 
  padding: 25px; 
  border-radius: 12px;
  border-left: 5px solid var(--ocean-green); 
  position: relative;
  margin: 30px 0 50px 0;
}
.tip-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.mascot-avatar { 
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; 
  border: 2px solid #FFF; background-color: #FFF; padding: 2px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.tip-title { color: var(--ocean-green); font-size: 1.1rem; }
.trip-tip p { margin: 0; font-size: 0.95em; color: var(--text-main); }

/* 段落分隔線 (波浪意象) */
.section-divider { 
  border: 0; height: 2px; 
  background-image: repeating-linear-gradient(to right, var(--ocean-green) 0, var(--ocean-green) 10px, transparent 10px, transparent 20px); 
  opacity: 0.3; margin: 60px 0; 
}

/* ==========================================
   7. 行程推薦區塊 (現代簡約卡片)
========================================== */
.tour-section { max-width: 1000px; margin: 50px 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: 260px; flex: 0 0 calc(50% - 10px); 
  background: #FFF; border-radius: 12px; border: 1px solid var(--border-color); 
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); text-align: left; 
  transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden;
}
.tour-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.tour-photo { width: 100%; height: 160px; overflow: hidden; }
.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; }
.tour-card h5 { font-size: 1.1rem; margin: 0 0 10px 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.2rem; margin-bottom: 20px; }

.btn-sleek { 
  display: block; text-align: center; background: var(--sand-color); color: var(--text-main); 
  text-decoration: none; padding: 10px 20px; border-radius: 8px; 
  font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease; 
}
.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 { background: var(--ocean-green); color: #FFF; border-color: var(--ocean-green); }

@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: transparent; border: none; padding: 0; box-shadow: none;
  }
  .desktop-only-title {
    display: inline-block; font-size: 1.2rem; color: var(--ocean-green);
    margin: 0 0 20px 0; border-bottom: 3px solid var(--accent-color);
    padding-bottom: 5px; font-weight: 700;
  }
  .carousel-track { flex-direction: column; gap: 20px; max-height: 70vh; overflow-y: auto; padding: 5px; }
  .nav-btn { display: none; }
  .tour-card { flex: 0 0 auto; width: 100%; margin: 0; }
}

/* ==========================================
   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: var(--ocean-green); 
  color: #FFF; padding: 14px 35px; border-radius: 50px; 
  font-weight: 600; font-size: 1rem;
  box-shadow: 0 8px 20px rgba(141, 178, 166, 0.4); 
  text-decoration: none; letter-spacing: 1px; white-space: nowrap; 
}

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