/* ==========================================================
   智行記 — 全站樣式
   首頁 + 多頁面通用組件（頂欄 / 導航 / 頁尾 / 懸浮按鈕 /
   留言表單 / 子頁面 Banner 與各版塊）
   品牌主色：藏青 #142B52　點綴色：宮金 #C8A45D
   ========================================================== */

:root {
  --primary: #142B52;
  --primary-dark: #0E1F3D;
  --primary-light: #1E3C6E;
  --primary-soft: #EDF1F8;
  --gold: #C8A45D;
  --ink: #1c2530;
  --muted: #8a94a0;
  --line: #e8ecf1;
  --bg-soft: #f8fafb;
  --star: #f6b21b;
  --white: #ffffff;
  --serif: "Noto Serif TC", "Playfair Display", "Songti TC", "SimSun", serif;
  --sans: "Noto Sans TC", "Poppins", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 8px 24px rgba(28, 37, 48, 0.08);
  --shadow-md: 0 18px 45px rgba(28, 37, 48, 0.14);
  --header-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 0;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 43, 82, 0.35);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.btn-sm {
  padding: 9px 20px;
  border-radius: 6px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------------- Top bar 頂部信息欄 ---------------- */
.top-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary) 55%, var(--primary-dark));
  color: rgba(255, 255, 255, 0.88);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  font-size: 15px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.top-bar-left i {
  color: var(--gold);
  font-size: 14px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.top-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: color 0.25s ease;
}

.top-bar .contact-item:hover {
  color: var(--white);
}

.top-bar .contact-item i {
  color: var(--gold);
}

/* hover 提示氣泡（頂欄微信號） */
.tooltip-wrapper {
  position: relative;
}

.tooltip-content {
  position: absolute;
  top: calc(100% + 12px);
  right: -14px;
  z-index: 120;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.tooltip-content::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 26px;
  width: 10px;
  height: 10px;
  background: var(--white);
  transform: rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------------- Header 導航欄 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(28, 37, 48, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 400;
  color: #5b6673;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* 中英文切換膠囊 */
.lang-capsule {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

.lang-capsule a {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #5b6673;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-capsule a:hover {
  color: var(--ink);
}

.lang-capsule a.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 56px 0 90px;
}

.hero-head {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-head h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 74px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

.hero-head p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 285px;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.hero-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.activity-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.activity-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(28, 37, 48, 0.05);
}

.icon-trekking {
  background: #fdeaea;
}

.icon-rafting {
  background: #e0f5f3;
}

.icon-windsurfing {
  background: #e5f0fb;
}

.icon-paragliding {
  background: #ecf7e2;
}

.activity-list h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.activity-list p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.hero-banner {
  margin-top: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.hero-banner h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-banner p {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 40px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------------- Section head ---------------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-head h2,
.dest-head h2,
.experience-copy h2,
.testi-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.section-head p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
}

/* 通用版塊標題（子頁面與留言區） */
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.section-subtitle {
  margin: 12px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------- Values ---------------- */
.values {
  padding: 40px 0 96px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.value-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 42px 30px 36px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-icon {
  display: inline-grid;
  place-items: center;
  color: var(--primary);
}

.value-icon svg {
  width: 46px;
  height: 46px;
}

.value-card h3 {
  margin: 20px 0 12px;
  font-size: 16.5px;
  font-weight: 600;
}

.value-card p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------- Why choose us ---------------- */
.choose {
  padding: 40px 0 110px;
}

.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.choose-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.choose-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
}

.choose-list .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(20, 43, 82, 0.35);
}

.choose-list h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 6px 0 8px;
}

.choose-list p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 400px;
}

.choose-media {
  position: relative;
}

.choose-media .img-main {
  width: calc(100% - 80px);
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-left: 80px;
  box-shadow: var(--shadow-sm);
}

.choose-media .img-small {
  position: absolute;
  left: 0;
  bottom: -34px;
  width: 46%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.rating-card {
  position: absolute;
  top: 64px;
  left: -14px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 12px 18px 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-card img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.rating-card strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.rating-card span {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
}

.rating-card .star {
  color: var(--star);
  font-weight: 600;
}

/* ---------------- Destinations ---------------- */
.destinations {
  padding: 30px 0 96px;
}

.dest-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 52px;
}

.dest-head p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 420px;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dest-card figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-sm);
}

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

.dest-card:hover figure img {
  transform: scale(1.06);
}

.dest-card .price {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--white);
  border-radius: 6px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(28, 37, 48, 0.12);
}

.dest-card h3 {
  margin-top: 18px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  max-width: 260px;
}

/* ---------------- Experience ---------------- */
.experience {
  padding: 30px 0 100px;
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 80px;
  align-items: center;
}

.experience-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.experience-copy h2 {
  max-width: 480px;
}

.experience-copy p {
  margin: 22px 0 30px;
  max-width: 440px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------- Testimonials ---------------- */
.testimonials {
  padding: 20px 0 100px;
}

.testi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 46px;
}

.testi-nav {
  display: flex;
  gap: 12px;
}

.arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.arrow-prev {
  background: #17233b;
  color: var(--white);
}

.arrow-next {
  background: var(--primary);
  color: var(--white);
}

.arrow:hover {
  transform: translateY(-2px);
}

.arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.arrow svg {
  width: 16px;
  height: 16px;
}

.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 15px);
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.testi-track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef1f4;
  padding: 32px 34px;
}

.testi-card .stars {
  color: var(--star);
  font-size: 15px;
  letter-spacing: 3px;
}

.testi-card p {
  margin: 18px 0 26px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: #77818d;
}

.testi-card .person {
  display: flex;
  align-items: center;
  gap: 13px;
}

.testi-card .person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-card .person strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.testi-card .person span {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------------- CTA ---------------- */
.cta {
  padding: 0 0 100px;
}

.cta-box {
  background: var(--primary);
  border-radius: 16px;
  color: var(--white);
  text-align: center;
  padding: 78px 48px;
}

.cta-box h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  max-width: 760px;
  margin: 0 auto 36px;
}

/* ---------------- Message form 在線留言 ---------------- */
.message-section {
  padding: 10px 0 100px;
}

.message-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 52px 56px 48px;
}

.contact-form {
  margin-top: 36px;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 9px;
}

.contact-form .required {
  color: #e2574c;
}

.contact-form input[type="text"],
.contact-form input[type="url"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="url"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 43, 82, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* intl-tel-input 寬度與輸入框樣式修正 */
.contact-form .iti {
  width: 100%;
}

.contact-form .iti input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 優先級需高於 .contact-form label（display:block），否則 flex 居中與間距失效 */
.contact-form .radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #5b6673;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.radio-label:hover {
  border-color: var(--primary);
  color: var(--ink);
}

.radio-label input {
  margin: 0;
  accent-color: var(--primary);
}

/* 去掉原生 radio 點擊聚焦時的灰色邊框/外圈（保留鍵盤無障礙焦點） */
.radio-label input:focus {
  outline: none;
  box-shadow: none;
}

.radio-label input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.radio-label.checked,
.radio-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.line-input-wrapper input {
  width: 100%;
}

/* ---------------- Modal 彈窗 ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 31, 61, 0.55);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 44px 40px;
  text-align: center;
}

.modal-content .success-icon {
  font-size: 54px;
  color: var(--primary);
  margin-bottom: 18px;
}

.modal-content h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 26px;
}

/* 快速留言彈窗 */
.form-modal-overlay {
  align-items: flex-start;
  overflow-y: auto;
  padding: 48px 20px;
}

.form-modal-content {
  max-width: 560px;
  padding: 44px 48px;
  text-align: left;
}

.form-modal-content .section-title {
  text-align: center;
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: #5b6673;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.close-modal-btn:hover {
  background: var(--line);
  color: var(--ink);
}

/* ---------------- Footer 頁尾 ---------------- */
.site-footer {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: rgba(255, 255, 255, 0.78);
  padding-top: 66px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}

.f-brand p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
  max-width: 300px;
}

.f-col h4 {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 22px;
  padding-bottom: 10px;
}

.f-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.f-nav li {
  margin-bottom: 11px;
}

.f-nav a {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.f-nav a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.f-contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.f-contact li i {
  color: var(--gold);
  width: 18px;
  text-align: center;
  margin-top: 5px;
  flex-shrink: 0;
}

.f-contact li strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.footer-bottom {
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* ---------------- Floating actions 懸浮操作欄 ---------------- */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 19px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(20, 43, 82, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.action-btn:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.action-btn-wrapper {
  position: relative;
}

.action-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.action-tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--white);
  transform: translateY(-50%) rotate(45deg);
}

.action-btn-wrapper:hover .action-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top.show:hover {
  transform: translateY(-3px);
}

/* ---------------- Page banner 子頁面 Banner ---------------- */
.page-banner {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 76px;
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 31, 61, 0.5), rgba(20, 43, 82, 0.74));
}

.banner-copy {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 20px;
}

.banner-copy h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.banner-copy p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86);
}

/* 子頁面版塊通用 */
.page-section {
  padding: 0 0 96px;
}

.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
}

.sec-head p {
  margin-top: 13px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------- Guides 導遊風采 ---------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.guide-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* 純圖卡片：寬度撐滿、高度自適應，保留圖片原始比例 */
.guide-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- Trips 旅遊風采 ---------------- */
.moment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.moment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.moment-card figure {
  height: 270px;
  overflow: hidden;
}

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

.moment-card:hover figure img {
  transform: scale(1.05);
}

.moment-body {
  padding: 24px 26px 26px;
}

.moment-title {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.moment-body .stars {
  color: var(--star);
  font-size: 15px;
  letter-spacing: 3px;
}

.moment-body .quote {
  margin: 12px 0 18px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.85;
  color: #77818d;
}

.moment-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moment-person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.moment-person strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.moment-person span {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------------- Videos 影片分享 ---------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card h3 {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.video-card .video-meta {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------------- Contact 聯絡我們 ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-panel .section-title,
.contact-form-panel .section-title {
  text-align: left;
}

.contact-info-panel .section-subtitle,
.contact-form-panel .section-subtitle {
  text-align: left;
  margin-left: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 34px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 19px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.info-card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.contact-form-panel .message-card {
  margin: 0;
  max-width: none;
  padding: 40px 42px;
}

/* ---------------- About 關於我們 ---------------- */
.about-intro {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.license-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.license-frame img {
  width: 100%;
}

.license-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(20, 43, 82, 0.08);
  border-radius: 14px;
  pointer-events: none;
}

.license-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

.about-intro h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 20px;
}

.about-intro .about-text p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.95;
  color: #66707c;
  margin-bottom: 16px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 96px;
}

.mission-card {
  padding: 44px 40px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.mission-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 10px 22px rgba(20, 43, 82, 0.3);
}

.mission-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.credo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.credo-card {
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.credo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.credo-card i {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 16px;
}

.credo-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 9px;
}

.credo-card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------- Privacy 隱私政策 ---------------- */
.privacy-doc {
  max-width: 860px;
  margin: 0 auto;
}

.privacy-doc .doc-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.privacy-updated {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 30px;
}

.privacy-doc h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  margin: 38px 0 14px;
}

.privacy-doc p {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.95;
  color: #5a6470;
  margin-bottom: 14px;
}

.privacy-doc ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.privacy-doc ul li {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.9;
  color: #5a6470;
  margin-bottom: 8px;
}

.privacy-doc ul li strong {
  font-weight: 600;
  color: var(--ink);
}

.privacy-doc em {
  color: var(--muted);
}

.privacy-doc code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 14px;
  color: var(--primary);
}

/* ---------------- Reveal animation ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1140px) {
  .main-nav {
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .hero-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-body {
    grid-template-columns: 1fr;
  }

  .activity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .hero-media img {
    height: 420px;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choose-grid {
    grid-template-columns: 1fr;
    gap: 90px;
  }

  .dest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dest-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .testi-track {
    grid-auto-columns: calc(100% - 0px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .credo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 4%;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(28, 37, 48, 0.08);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 4px;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 860px) {
  .hero-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
  }

  .hero-banner p {
    border-left: 0;
    padding-left: 0;
  }

  .top-bar-left span {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .moment-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
  }

  .hero-media img {
    height: 300px;
  }

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

  .value-grid {
    grid-template-columns: 1fr;
  }

  .dest-grid {
    grid-template-columns: 1fr;
  }

  .choose-media .img-main {
    margin-left: 0;
    width: 100%;
    height: 380px;
  }

  .choose-media .img-small {
    width: 56%;
    height: 180px;
    bottom: -22px;
  }

  .rating-card {
    left: 8px;
    top: 24px;
  }

  .testi-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 56px 26px;
  }

  .page-banner {
    height: 280px;
    margin-bottom: 56px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .credo-grid {
    grid-template-columns: 1fr;
  }

  .message-card {
    padding: 36px 24px;
  }

  .form-modal-content {
    padding: 36px 24px;
  }

  .floating-actions {
    right: 14px;
    bottom: 16px;
  }

  .action-btn {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .logo-text {
    display: none;
  }
}