/* ═══════════════════════════════════════════════
   潮旅國際旅行社 - 主樣式表
   主色系：藍色 #1a6b9e、深藍 #0d4f7c、沙色 #f5ede0、白 #ffffff
   修改顏色請搜尋 :root 區塊並更換對應變數
════════════════════════════════════════════════ */

/* ─── CSS 變數（全站色彩與設定） ─── */
:root {
  --blue-dark:    #0d4f7c;
  --blue-main:    #1a6b9e;
  --blue-light:   #3a9bd5;
  --blue-pale:    #e8f4fc;
  --sand:         #f5ede0;
  --sand-dark:    #e8d5ba;
  --white:        #ffffff;
  --text-dark:    #1a2535;
  --text-mid:     #4a5568;
  --text-light:   #718096;
  --shadow:       0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 8px 32px rgba(26, 107, 158, 0.20);
  --radius:       12px;
  --radius-lg:    20px;
  --top-banner-h: 38px;
  --navbar-h:     64px;
  --bottom-banner-h: 52px;
  --transition:   all 0.3s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  /* 為上下固定 banner 留出空間 */
  padding-top: calc(var(--top-banner-h) + var(--navbar-h));
  padding-bottom: var(--bottom-banner-h);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section 標題樣式 ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header.left { text-align: left; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
  border-radius: 2px;
}
.section-header.left h2::after { left: 0; transform: none; }
.section-header p {
  color: var(--text-mid);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════
   上方固定 Banner（跑馬燈）
════════════════════════════════════════════════ */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-banner-h);
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* 靜態公司資訊列 */
.banner-static {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 6px;
  width: 100%;
  padding: 0 16px;
}
.banner-sep {
  opacity: 0.5;
}

/* 行程載入中提示 */
.tours-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   導覽列
════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--top-banner-h);
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo i { color: var(--blue-main); }

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
  font-size: 0.95rem;
}
.nav-links a:hover {
  background: var(--blue-pale);
  color: var(--blue-main);
}

/* 手機漢堡選單 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   Hero 主視覺 / 輪播
════════════════════════════════════════════════ */

/* ── 輪播外框 ── */
.carousel-hero { position: relative; overflow: hidden; }
.carousel      { position: relative; width: 100%; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── 通用 slide ── */
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* 第 1 格：直式海報（粉紅底色，保持比例置中） */
.slide-poster {
  background: #e8197a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-poster img {
  max-height: 100vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* 第 2 格：橫式 Banner（全寬覆蓋） */
.slide-banner {
  background: #d61779;
  min-height: 56vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
}
.slide-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 第 3 格：潮旅主視覺（原 hero 樣式） */
.slide-hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=85') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* slide 上的半透明遮罩 CTA（海報/banner 用） */
.slide-overlay {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}
.slide-cta { box-shadow: 0 4px 20px rgba(0,0,0,.3); }

/* ── 左右箭頭 ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: rgba(255,255,255,.45); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* ── 底部圓點 ── */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: .25s;
  padding: 0;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ── 底部 Banner 音樂節樣式 ── */
.banner-festival {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
}
.banner-festival-tag  { background:rgba(255,255,255,.2); border-radius:12px; padding:1px 8px; font-weight:800; }
.banner-festival-name { font-weight:800; letter-spacing:.02em; }
.d-mobile-none { }

/* ── 保留舊 .hero 選擇器相容性 ── */
.hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=85') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 79, 124, 0.75) 0%,
    rgba(26, 107, 158, 0.55) 50%,
    rgba(0, 0, 0, 0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 40px 20px;
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 向下滾動提示 */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════
   通用按鈕樣式
════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-card {
  background: var(--blue-pale);
  color: var(--blue-main);
  border-color: var(--blue-pale);
  padding: 10px 20px;
  font-size: 0.92rem;
  width: 100%;
  justify-content: center;
}
.btn-card:hover {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
  transform: translateY(-2px);
}
.btn-submit {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  border: none;
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ═══════════════════════════════════════════════
   Features 特色區
════════════════════════════════════════════════ */
.features {
  background: var(--sand);
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.feature-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.feature-item i {
  font-size: 2.4rem;
  color: var(--blue-main);
  margin-bottom: 16px;
}
.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.feature-item p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   行程介紹區
════════════════════════════════════════════════ */
.tours {
  padding: 80px 0;
  background: var(--white);
}

/* Tab 選單 */
.tab-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 40px;
  border: 2px solid var(--blue-light);
  background: var(--white);
  color: var(--blue-main);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover,
.tab-btn.active {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
  box-shadow: 0 4px 16px rgba(26, 107, 158, 0.25);
}

/* Tab 內容面板 */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 行程卡片 Grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ─── 行程卡片 ─── */
.tour-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* 卡片標籤（角標） */
.tour-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}
.tour-badge.popular   { background: #e85c3a; }
.tour-badge.family    { background: #e87d2a; }
.tour-badge.eco       { background: #2ea86e; }
.tour-badge.adventure { background: #7c3aed; }

/* 卡片圖片 */
.tour-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tour-card:hover .tour-image img { transform: scale(1.06); }

.tour-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  display: flex;
  justify-content: flex-end;
}
.tour-days {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 卡片內容 */
.tour-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tour-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-dark);
}
.tour-desc {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}
.tour-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: var(--blue-pale);
  border-radius: 8px;
}
.meta-item {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-item i { color: var(--blue-main); width: 14px; }
.meta-item.price { color: var(--blue-dark); font-weight: 700; }

/* ═══════════════════════════════════════════════
   關於我們
════════════════════════════════════════════════ */
.about {
  padding: 80px 0;
  background: var(--sand);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--blue-main);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.badge-number { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.badge-label  { display: block; font-size: 0.8rem; margin-top: 4px; opacity: 0.9; }

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text strong { color: var(--blue-dark); }

.about-stats {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 90px;
}
.stat-number { display: block; font-size: 2rem; font-weight: 900; color: var(--blue-main); }
.stat-label  { display: block; font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

.license-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blue-pale);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--blue-dark);
  font-weight: 600;
  border-left: 4px solid var(--blue-main);
}

/* ═══════════════════════════════════════════════
   聯絡我們
════════════════════════════════════════════════ */
.contact {
  padding: 80px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* 聯絡資訊卡 */
.contact-info h3,
.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.contact-btn i { font-size: 1.5rem; }
.contact-btn.line      { background: #06c755; color: var(--white); }
.contact-btn.phone     { background: var(--blue-main); color: var(--white); }
.contact-btn.email     { background: var(--blue-pale); color: var(--blue-dark); }
.contact-btn.facebook  { background: #1877f2; color: var(--white); }
.contact-btn.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: var(--white); }
.btn-label { display: block; font-weight: 700; line-height: 1.3; }
.btn-sub   { display: block; font-size: 0.82rem; opacity: 0.85; }

/* Radio 選項群組 */
.radio-group { display: flex; gap: 24px; padding: 10px 0; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.radio-label input[type="radio"] { accent-color: var(--blue-main); width: 16px; height: 16px; cursor: pointer; }

/* Footer 社群圖示 */
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white); font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--blue-light); transform: translateY(-2px); }

.contact-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mid);
  font-size: 0.9rem;
  padding: 12px 0;
}
.contact-hours i { color: var(--blue-main); }

/* 表單樣式 */
.contact-form-wrapper {
  background: var(--sand);
  padding: 32px;
  border-radius: var(--radius-lg);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label i { color: var(--blue-main); font-size: 0.85rem; }
.required { color: #e53e3e; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(58, 155, 213, 0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  text-align: center;
  padding: 32px;
  color: var(--blue-dark);
}
.form-success i { font-size: 3rem; color: #2ea86e; margin-bottom: 16px; }
.form-success p { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════
   2026 跟著海龜漫旅 — 特殊卡片樣式
════════════════════════════════════════════════ */

/* 2026 角標 */
.tour-badge.badge-2026 {
  background: linear-gradient(135deg, #e85c3a, #c0392b);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(232,92,58,0.4);
}

/* 官方合作特色行程角標 */
.tour-badge.badge-collab {
  background: linear-gradient(135deg, #e6a817, #c47f00);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(230,168,23,0.45);
}

/* 主打卡片外框強調 */
.tour-card--hero {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, #e85c3a, var(--blue-main)) border-box;
}

/* 年份小標 */
.tour-year-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  color: #e85c3a;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

/* 出發地價格列表 */
.tour-prices {
  background: var(--blue-pale);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}
.price-from { color: var(--text-mid); }
.price-val  { font-weight: 700; color: #e85c3a; }

/* 主打卡片按鈕 */
.btn-card--hero {
  background: linear-gradient(135deg, #e85c3a, #c0392b) !important;
  color: var(--white) !important;
  border-color: transparent !important;
}
.btn-card--hero:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Modal：海龜漫旅特殊 header ── */
.modal-header--turtle {
  background: linear-gradient(135deg, #0d4f7c, #1a6b9e, #2ea86e);
}
.modal-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
}
.modal-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 4px 0 8px;
}

/* 價格表格 */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.price-table tr { border-bottom: 1px solid var(--sand-dark); }
.price-table td { padding: 8px 12px; }
.price-table tr:last-child { border-bottom: none; }
.price-highlight { font-weight: 700; color: #e85c3a; text-align: right; }

/* 出發日期 chips */
.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.date-chip {
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid var(--blue-light);
  white-space: nowrap;
}

/* Day by Day 區塊 */
.day-blocks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.day-block {
  display: flex;
  gap: 14px;
  background: var(--sand);
  border-radius: 10px;
  padding: 14px;
  align-items: flex-start;
}
.day-label {
  background: var(--blue-main);
  color: var(--white);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.day-content { flex: 1; font-size: 0.88rem; color: var(--text-mid); }
.day-content strong { color: var(--blue-dark); display: block; margin-bottom: 6px; }
.day-content ul { padding-left: 16px; }
.day-content li { list-style: disc; margin-bottom: 3px; }

/* 注意事項框 */
.modal-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e1;
  border-left: 4px solid #f6c90e;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: #7d6608;
}
.modal-notice i { flex-shrink: 0; margin-top: 2px; color: #f6c90e; }

/* ═══════════════════════════════════════════════
   下方固定 Banner
════════════════════════════════════════════════ */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-banner-h);
  background: linear-gradient(90deg, var(--blue-dark), #0a3a5c);
  color: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0 20px;
}
.banner-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #06c755;
  color: var(--white);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.banner-line-btn:hover { background: #05b04a; transform: scale(1.04); }

/* ═══════════════════════════════════════════════
   Footer
════════════════════════════════════════════════ */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand h3 i { color: var(--blue-light); }
.footer-brand p { font-size: 0.9rem; margin-bottom: 4px; }
.footer-license { font-size: 0.78rem; opacity: 0.65; margin-top: 8px; }

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--blue-light); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact i { color: var(--blue-light); width: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════
   Modal（行程詳情彈出視窗）
════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  backdrop-filter: blur(3px);
}
.modal-overlay.active { display: block; }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 2001;
  width: min(600px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
.modal.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-mid);
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover { color: var(--blue-dark); }
.modal-header {
  padding: 24px 28px 16px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 { font-size: 1.5rem; font-weight: 800; }
.modal-tag { display: inline-block; margin-top: 6px; font-size: 0.88rem; opacity: 0.85; }
.modal-body { padding: 24px 28px; }
.modal-body h4 {
  font-weight: 700;
  color: var(--blue-dark);
  margin: 20px 0 8px;
  font-size: 1rem;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body ul { padding-left: 20px; }
.modal-body li {
  list-style: disc;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.modal-body p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.modal-body .btn { margin-top: 20px; }

/* ═══════════════════════════════════════════════
   回到頂部按鈕
════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottom-banner-h) + 16px);
  width: 44px;
  height: 44px;
  background: var(--blue-main);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 107, 158, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 900;
}
.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}
.back-to-top.visible { display: flex; }

/* ═══════════════════════════════════════════════
   梯次名額顯示
════════════════════════════════════════════════ */
.slot-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 8px;
  flex-wrap: wrap;
}
.slot-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.chip-ok       { background: #e6f9ee; color: #1a7a40; border: 1px solid #7bcca0; }
.chip-low      { background: #fff8e1; color: #a06000; border: 1px solid #f5c842; }
.chip-waitlist { background: #fff0f0; color: #c0392b; border: 1px solid #f5a0a0; }
.chip-full     { background: #f5f5f5; color: #777;    border: 1px solid #ccc;    }
.slot-date {
  font-size: 0.8rem;
  color: var(--text-secondary, #666);
}

/* 諮詢表單 — 梯次選擇 */
.label-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: #888;
  margin-left: 4px;
}

.slot-status-hint {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #888;
  min-height: 1.2em;
}

/* ═══════════════════════════════════════════════
   行程心理測驗
════════════════════════════════════════════════ */
.quiz-section {
  background: linear-gradient(135deg, #e8f4fc 0%, var(--sand) 100%);
  padding: 80px 0;
}
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.quiz-progress-bar { flex: 1; height: 6px; background: rgba(26,107,158,.15); border-radius: 3px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg,var(--blue-main),var(--blue-light)); border-radius: 3px; transition: width .4s ease; }
.quiz-step-label { font-size:.82rem; font-weight:600; color:var(--blue-main); white-space:nowrap; }
.quiz-card { background:var(--white); border-radius:var(--radius-lg); padding:36px 40px; box-shadow:var(--shadow); animation:quizFadeIn .35s ease; }
@keyframes quizFadeIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.quiz-q-icon { font-size:2.2rem; margin-bottom:10px; display:block; text-align:center; }
.quiz-question { font-size:clamp(1.1rem,2.5vw,1.35rem); font-weight:800; color:var(--blue-dark); text-align:center; margin-bottom:28px; }
.quiz-options { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.quiz-option { border:2px solid #e2e8f0; border-radius:var(--radius); padding:16px 14px; cursor:pointer; transition:var(--transition); text-align:center; background:var(--white); }
.quiz-option:hover { border-color:var(--blue-main); background:var(--blue-pale); transform:translateY(-2px); box-shadow:var(--shadow-hover); }
.quiz-option .opt-icon { font-size:1.8rem; display:block; margin-bottom:8px; }
.quiz-option .opt-text { font-size:.9rem; font-weight:600; color:var(--text-dark); display:block; }
.quiz-option .opt-sub  { font-size:.78rem; color:var(--text-light); display:block; margin-top:4px; }
.quiz-result { text-align:center; animation:quizFadeIn .4s ease; }
.quiz-result-badge { display:inline-block; background:linear-gradient(135deg,var(--blue-main),var(--blue-light)); color:#fff; font-size:.8rem; font-weight:700; padding:4px 16px; border-radius:20px; margin-bottom:10px; letter-spacing:.05em; }
.quiz-result-type { font-size:clamp(1.3rem,3vw,1.7rem); font-weight:800; color:var(--blue-dark); margin-bottom:6px; }
.quiz-result-desc { color:var(--text-mid); font-size:.95rem; margin-bottom:24px; line-height:1.7; }
.quiz-result-tour { background:var(--blue-pale); border:2px solid var(--blue-light); border-radius:var(--radius); padding:18px 24px; margin-bottom:24px; display:flex; align-items:center; gap:16px; text-align:left; }
.quiz-result-tour img { width:80px; height:80px; object-fit:cover; border-radius:10px; flex-shrink:0; }
.quiz-result-tour-info .tour-recommend-label { font-size:.75rem; font-weight:700; color:var(--blue-main); margin-bottom:4px; }
.quiz-result-tour-info .tour-recommend-name  { font-size:1.05rem; font-weight:800; color:var(--blue-dark); margin-bottom:4px; }
.quiz-result-tour-info .tour-recommend-meta  { font-size:.82rem; color:var(--text-mid); }
.quiz-result-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.quiz-retry { background:none; border:2px solid var(--blue-main); color:var(--blue-main); border-radius:30px; padding:10px 24px; font-size:.9rem; font-weight:700; cursor:pointer; transition:var(--transition); }
.quiz-retry:hover { background:var(--blue-pale); }
@media(max-width:600px) {
  .quiz-card { padding:24px 18px; }
  .quiz-options { grid-template-columns:1fr; }
  .quiz-result-tour { flex-direction:column; text-align:center; }
}

/* ═══════════════════════════════════════════════
   RWD：手機版（768px 以下）
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --top-banner-h: 34px;
    --navbar-h: 58px;
    --bottom-banner-h: 48px;
  }

  /* 導覽列手機版 */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; font-size: 1rem; }

  /* Hero / Carousel */
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .carousel-arrow { width: 36px; height: 36px; font-size: .9rem; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .slide-banner { min-height: 50vw; }
  .d-mobile-none { display: none; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* 行程 Tab */
  .tab-buttons { gap: 8px; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }

  /* 關於我們 */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { height: 280px; }

  /* 聯絡我們 */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* 下方 Banner */
  .bottom-banner { font-size: 0.78rem; gap: 10px; }
  .bottom-banner > span { display: none; }

  /* Modal */
  .modal { width: 96vw; max-height: 90vh; }
}

@media (max-width: 480px) {
  .tours-grid { grid-template-columns: 1fr; }
  .tab-btn span:not(.icon) { display: none; }
  .about-stats { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
}
