/* --------------------------- */
/*   海島旅遊雜誌風格（2025）   */
/*   與景點.css / 美食地圖一致   */
/* --------------------------- */

/* =========================
   全域變數
========================= */
:root {
  --nav-h: 56px;
  --ocean-dark: #0A6DCB;
  --ocean-light: #42A8FF;
  --white: #ffffff;

  --radius-btn: 10px;
  --radius-card: 14px;

  --shadow-card: 0 6px 18px rgba(0,0,0,0.08);
  --text-gray: #666;
}

/* =========================
   導覽列（完全同步美食地圖）
========================= */

nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 9999;
  background: rgba(10,109,202,.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  padding: .2rem 1.2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav img {
  height: 46px;
  display: block;
}

nav a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 15px;
}

nav a:hover {
  color: #63e6be;
}

/* 手機版 */
@media (max-width: 580px) {
  nav img {
    height: 40px;
  }

  nav a {
    font-size: 14px;
    margin-left: 0.8rem;
  }
}

/* --- 內容避免被 fixed nav 蓋住 --- */
body {
  padding-top: var(--nav-h);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
  color: #2d2d2d;
}



/* =========================
   HERO 主視覺
========================= */

.hero {
  position: relative;
  height: 68vh;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(0,105,148,0.25), rgba(0,105,148,0.05)),
              url("../圖片/20240211_153906.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;   
  align-items: center;       
  text-align: center;
}

.hero-overlay {
  background: rgba(0,0,0,0.45);
  padding: 28px 34px;
  border-radius: 12px;
  color: white;
  width: 90%;
  max-width: 650px;
  backdrop-filter: blur(3px);
  animation: floatUp 1s ease-out;
}

.hero-overlay h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-overlay p {
  font-size: 16px;
  opacity: 0.95;
}


/* =========================
   主內容區
========================= */

.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 22px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  border-left: 6px solid var(--ocean-light);
  padding-left: 16px;
  margin-bottom: 26px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 30px 36px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-card);
  animation: cardEntrance 0.8s cubic-bezier(0.22,1,0.36,1) backwards;
}

.card p { 
  color: var(--text-gray);
  margin-bottom: 12px;
}

.card ul { padding-left: 20px; }
.card li { margin-bottom: 10px; }


/* =========================
   CTA 按鈕
========================= */

.cta-btn {
  display: inline-block;
  padding: 14px 25px;
  background: var(--ocean-light);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-btn);
  font-weight: 700;
  transition: 0.3s;
}

.cta-btn:hover {
  background: var(--ocean-dark);
}


/* =========================
   動畫
========================= */

@keyframes floatUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


/* =========================
   手機版 RWD（<=768px）
========================= */

@media (max-width: 768px) {

  .hero {
    height: 60vh;
    min-height: 360px;
    padding: 0 20px;
  }

  .hero-overlay {
    max-width: 88%;
    padding: 22px 18px;
    border-radius: 10px;
  }

  .hero-overlay h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-overlay p {
    font-size: 14px;
    line-height: 1.5;
  }

  .container {
    padding: 0 16px;
  }

  .card {
    padding: 22px 20px;
    border-radius: 10px;
  }
}
/* 小琉球在哪裡？ — 左右兩欄 */
.map-box {
  padding: 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.map-grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
}

/* 文字區域 */
.map-grid .text-block {
  flex: 1;
}

/* 地圖 */
.map-grid iframe {
  flex: 1;
  max-width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
}

/* 按鈕 */
.map-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  font-size: 16px;
  background: #007bff;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* 取消底線 */
.map-btn,
.map-btn:hover,
.map-btn:visited,
.map-btn:active {
  text-decoration: none !important;
}


/* 手機版 → 改成上下排列 */
@media (max-width: 768px) {
  .map-grid {
    flex-direction: column;
  }

  .map-grid iframe {
    width: 100%;
  }
}


/* =====================
   船班 CTA 區塊
===================== */
.ferry-cta {
  background: linear-gradient(135deg, #e8f3ff, #ffffff);
  padding: 30px;
  border-radius: 16px;
  margin: 50px 0;
  text-align:center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.ferry-btn {
  margin-top: 12px;
  background: #ff7e57;
}

.ferry-btn:hover {
  background: #e9683f;
}
/* =====================
   小琉球地圖：左右版面
===================== */

.map-flex {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 32px;
}

.map-text {
  flex: 1;
}

.map-embed {
  flex: 1;
  min-height: 260px;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* 手機版改為上下排 */
@media (max-width: 768px) {
  .map-flex {
    flex-direction: column;
    padding: 22px;
  }

  .map-embed iframe {
    height: 250px;
  }
}
/* =======================
   🚨 自行開車警告提示
   ======================= */
.warning-tip {
  background: #ffd8d8;
  border-left: 6px solid #ff0000;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 10px;
  margin-bottom: 18px;
  color: #8a0000;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.15);
}
/* ============================
   🌊 HERO 底部波浪動畫
   ============================ */
.ocean-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.waves {
  position: relative;
  width: 100%;
  height: 90px;
  min-height: 9dvb;
  max-height: 70px;
}

.parallax > use {
  animation: waveMove 10s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 11s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 13s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 15s;
}

@keyframes waveMove {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/* -----------------------
   🌊 HERO 波浪（統一風格）
------------------------ */
.hero-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

/* ===================================================
   🐢 Emoji 海龜游動（保證會顯示的最終版本）
=================================================== */

/* 海龜會在這條軌道裡面游動 */
.turtle-track {
  position: relative;
  width: 100%;
  height: 60px;         /* 海龜活動空間 */
  margin-top: -30px;    /* 貼近波浪 */
  z-index: 50;
  overflow: visible;
}

/* 海龜容器 */
.emoji-turtle-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;         /* 最重要：海龜高度區 */
  overflow: visible;
  pointer-events: none;
}

/* 單隻海龜 */
.emoji-turtle {
  position: absolute;
  left: -60px;
  font-size: 34px;
  animation:
    swim var(--turtle-speed) linear forwards,
    float 3s ease-in-out infinite;
}

/* 左→右 游動 */
@keyframes swim {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 140px)); }
}

/* 上下浮動（像海浪） */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
/* 🔥 移除黑邊框與預設空白 */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff; /* 避免深色模式外框 */
}

/* 🔶 卡片上方 icon + 標題區塊 */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 大鵬灣 9127-D 路線圖 */
.route-image {
  margin-top: 20px;
  text-align: center;
}

.route-image img {
  width: 100%;
  max-width: 820px;   /* 不會太大，剛好卡片寬度 */
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* =========================
   票價
========================= */
.time-table, .fare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}

.time-table th, .fare-table th {
  background: #e6f2ff;
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.time-table td, .fare-table td {
  border-bottom: 1px solid #eee;
  padding: 8px 10px;
  text-align: center;
}

.fare-table tr:nth-child(even),
.time-table tr:nth-child(even) {
  background: #fafafa;
}

