﻿/*
  North IVA 全站樣式
  主色修改位置：下面 :root 的 --navy、--ice、--gold 等色碼。
  背景圖片修改位置：搜尋 .image-placeholder 或 .hero，可把漸變換成 url("images/你的圖片.jpg")。
  卡片樣式修改位置：搜尋 .glass-card、.tour-card、.price-card。
  手機端樣式修改位置：檔案底部 @media (max-width: 860px) 與 @media (max-width: 560px)。
*/

:root {
  --navy: #071827;
  --navy-2: #0d2a42;
  --ice: #edf7fb;
  --ice-2: #d8edf5;
  --white: #ffffff;
  --ink: #102030;
  --muted: #6b7a88;
  --line: rgba(126, 158, 178, 0.22);
  --gold: #caa45d;
  --blue: #4eb7d8;
  --shadow: 0 22px 70px rgba(7, 24, 39, 0.16);
  --soft-shadow: 0 14px 36px rgba(7, 24, 39, 0.1);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(circle at top left, rgba(78, 183, 216, 0.12), transparent 32rem),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fb 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(100% - 36px, var(--max));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-logo {
  width: 168px;
  max-width: 42vw;
  height: 46px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  color: #496070;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 0.24s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 24, 39, 0.95), rgba(13, 42, 66, 0.72)),
    radial-gradient(circle at 80% 18%, rgba(216, 237, 245, 0.72), transparent 24rem),
    linear-gradient(145deg, #071827 0%, #15506d 50%, #e7f5fa 120%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.78), rgba(7, 24, 39, 0.38) 48%, rgba(7, 24, 39, 0.72)),
    linear-gradient(180deg, rgba(7, 24, 39, 0.18), rgba(7, 24, 39, 0.88));
}

.hero-home .hero-media img {
  object-position: center center;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 86px max(22px, calc((100% - var(--max)) / 2)) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 44px;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 10% -10% auto auto;
  width: 420px;
  height: 420px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(12px);
}

.hero-copy,
.hero-panel,
.page-hero > * { position: relative; z-index: 1; }

.hero > .hero-media,
.page-hero > .hero-media {
  position: absolute;
  z-index: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text,
.page-hero p:last-child {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.btn-primary {
  color: var(--navy);
  background: linear-gradient(135deg, #ffffff, var(--ice-2));
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-label,
.card-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 12px 0;
  font-size: 24px;
  line-height: 1.35;
}

.hero-panel p { color: rgba(255, 255, 255, 0.78); margin-bottom: 0; }

.page-hero {
  padding: 92px max(22px, calc((100% - var(--max)) / 2)) 72px;
}

.section {
  padding: 84px max(22px, calc((100% - var(--max)) / 2));
}

.section-blue {
  background:
    linear-gradient(180deg, rgba(237, 247, 251, 0.98), rgba(255, 255, 255, 0.92));
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2,
.cta-section h2,
.contact-methods h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.16;
}

.section-head p,
.feature-list p,
.glass-card p,
.tour-card p,
.price-card p,
.contact-methods p {
  color: var(--muted);
}

.trust-strip {
  width: min(100% - 32px, var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.trust-strip div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.trust-strip strong,
.trust-strip span { display: block; }

.trust-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.card-grid,
.tour-grid,
.price-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid.four,
.media-grid.four,
.price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 卡片樣式：想改圓角、陰影、玻璃質感，可以改這裡 */
.glass-card,
.tour-card,
.price-card,
.media-card,
.wide-media-card,
.contact-photo-card,
.contact-form,
.contact-methods,
.route-item,
.season-card,
.timeline-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.glass-card,
.price-card,
.timeline-step,
.media-card {
  padding: 26px;
}

.glass-card {
  min-height: 220px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.glass-card h3,
.tour-card h3,
.price-card h3,
.route-item h3,
.timeline-step h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.route-list {
  display: grid;
  gap: 18px;
}

.route-item {
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

/* 背景圖片替換：把下面漸變改成 background-image: url("images/xxx.jpg"); */
.image-placeholder {
  min-height: 160px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 34px rgba(7, 24, 39, 0.14);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.glass-card:hover .image-placeholder img,
.route-item:hover .image-placeholder img,
.media-card:hover .image-placeholder img,
.tour-card:hover .image-placeholder img {
  transform: scale(1.055);
}

.snow { background-image: linear-gradient(135deg, #f7fbff, #9fd3e6 48%, #214761); }
.glacier { background-image: linear-gradient(135deg, #dff7ff, #62b7da 48%, #12395a); }
.night { background-image: linear-gradient(135deg, #12243a, #2c6f86 58%, #d6eef5); }
.flower { background-image: linear-gradient(135deg, #fff8fb, #d4a3c4 42%, #5aa8c2); }
.onsen { background-image: linear-gradient(135deg, #fff7ec, #d7b878 45%, #244659); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list p {
  margin: 0;
  padding: 20px;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.tour-card {
  overflow: hidden;
  padding: 14px 14px 22px;
}

.media-card h3 {
  margin: 18px 0 8px;
}

.media-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.wide-media-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.wide-media-card .image-placeholder {
  min-height: 320px;
}

.tour-card h3,
.tour-card p { padding: 0 8px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.charter-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-step span,
.season-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--navy);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, var(--ice-2));
  font-weight: 900;
}

.season-stack {
  display: grid;
  gap: 18px;
}

.season-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 64px 1fr;
  gap: 20px;
  align-items: start;
}

.season-card .image-placeholder {
  min-height: 150px;
}

.season-card h2 { margin-bottom: 8px; }
.season-card p { margin-bottom: 0; color: var(--muted); }

.price-card strong {
  display: block;
  margin: 16px 0 12px;
  color: var(--navy);
  font-size: 24px;
}

.fleet-showcase {
  display: grid;
  gap: 26px;
}

.fleet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.fleet-main-image {
  min-height: 340px;
}

.fleet-copy {
  align-self: center;
}

.fleet-copy h3 {
  margin: 8px 0 14px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.25;
}

.fleet-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fleet-gallery .image-placeholder {
  min-height: 210px;
  border-radius: var(--radius-sm);
}

.feature-list.compact {
  margin-top: 18px;
  gap: 10px;
}

.feature-list.compact p {
  padding: 14px 16px;
}

.cta-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 84px;
  padding: 48px;
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(7, 24, 39, 0.96), rgba(21, 80, 109, 0.88)),
    radial-gradient(circle at top right, rgba(202, 164, 93, 0.28), transparent 20rem);
  box-shadow: var(--shadow);
}

.cta-section p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
}

.contact-photo-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.contact-photo-card {
  min-height: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.contact-photo-card .image-placeholder {
  min-height: 100%;
  height: 100%;
}

.contact-methods,
.contact-form {
  padding: 28px;
}

.contact-methods a {
  display: block;
  margin: 12px 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: var(--ice);
  font-weight: 800;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(7, 24, 39, 0.1);
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-card .email-text {
  color: var(--navy);
  font-weight: 900;
  word-break: break-all;
}

.qr-image {
  width: min(100%, 170px);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(7, 24, 39, 0.08);
}

.contact-card .contact-action {
  margin-top: 14px;
  text-align: center;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 24, 39, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.qr-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal-card {
  width: min(100%, 360px);
  padding: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-modal-card img {
  width: min(100%, 240px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
}

.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  cursor: pointer;
}

.route-detail-hero .hero-media img {
  object-position: center center;
}

.trip-info-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.trip-info-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
}

.trip-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.trip-info-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  line-height: 1.45;
}

.itinerary-section {
  display: grid;
  gap: 24px;
}

.itinerary-day {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.itinerary-day:nth-of-type(even) .itinerary-media {
  order: 2;
}

.itinerary-day.no-image {
  grid-template-columns: 1fr;
}

.itinerary-media {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(7, 24, 39, 0.14);
}

.itinerary-media img {
  width: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

.itinerary-media.media-stack {
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.itinerary-media.media-stack img {
  min-height: 220px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(7, 24, 39, 0.14);
}

.itinerary-copy {
  padding: 16px 12px;
}

.day-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.itinerary-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.drive-time {
  color: var(--navy);
  font-weight: 800;
}

.route-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: rgba(237, 247, 251, 0.86);
  color: var(--muted);
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.destination-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.destination-photo-grid .image-placeholder {
  min-height: 260px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: #455b6c;
  font-weight: 800;
}

.form-note,
.form-status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-success {
  color: #16724f;
}

.form-status.is-error {
  color: #a33b3b;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 3px solid rgba(78, 183, 216, 0.2);
  border-color: var(--blue);
}

.contact-form .btn {
  width: 100%;
  background: var(--navy);
  color: var(--white);
}

.site-footer {
  padding: 34px max(22px, calc((100% - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

.site-footer strong {
  color: var(--white);
  font-size: 20px;
}

.footer-logo {
  width: 150px;
  height: 42px;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 8px;
}

.site-footer p { margin: 4px 0 0; }

.mobile-contact-bar {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 手機端樣式：手機導航、底部固定聯繫欄與卡片排列主要在這裡修改 */
@media (max-width: 860px) {
  body {
    padding-bottom: 86px;
    font-size: 16px;
    line-height: 1.72;
  }

  .navbar {
    width: min(100% - 28px, var(--max));
    height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 132px;
    max-width: 48vw;
    height: 40px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small { display: none; }

  .menu-toggle {
    display: block;
    width: 48px;
    height: 48px;
  }

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    display: block;
    min-height: 48px;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--ice);
  }

  .nav-links a::after { display: none; }

  .hero {
    min-height: calc(100svh - 68px);
    padding-top: 58px;
    padding-bottom: 42px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 28px;
    background:
      linear-gradient(180deg, rgba(7, 24, 39, 0.48), rgba(7, 24, 39, 0.96)),
      radial-gradient(circle at 76% 16%, rgba(216, 237, 245, 0.78), transparent 14rem),
      linear-gradient(145deg, #071827 0%, #15506d 54%, #e7f5fa 125%);
  }

  .hero-home .hero-media img {
    object-position: center top;
  }

  .page-hero {
    padding-top: 66px;
    padding-bottom: 54px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 11em;
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1.08;
  }

  .hero-text,
  .page-hero p:last-child {
    max-width: 34em;
    font-size: 17px;
    line-height: 1.78;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 28px;
  }

  .btn {
    min-height: 56px;
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 18px;
  }

  .hero-panel {
    max-width: 520px;
    padding: 22px;
    border-radius: 22px;
  }

  .hero-panel strong {
    font-size: 21px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2,
  .cta-section h2,
  .contact-methods h2 {
    font-size: 34px;
    line-height: 1.18;
  }

  .trust-strip,
  .card-grid,
  .card-grid.four,
  .media-grid,
  .media-grid.four,
  .tour-grid,
  .price-grid,
  .timeline,
  .split,
  .contact-layout,
  .contact-photo-layout,
  .wide-media-card,
  .fleet-card,
  .fleet-gallery {
    grid-template-columns: 1fr;
  }

  .route-item {
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 16px;
    border-radius: 22px;
  }

  .trust-strip {
    margin-top: -22px;
    border-radius: 22px;
  }

  .trust-strip div {
    padding: 18px 20px;
  }

  .card-grid,
  .tour-grid,
  .price-grid,
  .timeline,
  .route-list,
  .season-stack,
  .feature-list {
    gap: 16px;
  }

  .glass-card,
  .price-card,
  .timeline-step,
  .media-card,
  .contact-methods,
  .contact-form {
    padding: 22px;
    border-radius: 22px;
  }

  .glass-card {
    min-height: auto;
  }

  .tour-card {
    border-radius: 22px;
  }

  .image-placeholder {
    min-height: 178px;
    border-radius: 18px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 24, 39, 0.12), rgba(7, 24, 39, 0.55) 42%, rgba(7, 24, 39, 0.94)),
      linear-gradient(90deg, rgba(7, 24, 39, 0.72), rgba(7, 24, 39, 0.32));
  }

  .wide-media-card .image-placeholder,
  .contact-photo-card .image-placeholder {
    min-height: 230px;
  }

  .contact-photo-card {
    padding: 12px;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .qr-image {
    width: min(100%, 220px);
  }

  .trip-info-grid,
  .summary-grid,
  .destination-photo-grid,
  .itinerary-day {
    grid-template-columns: 1fr;
  }

  .itinerary-day {
    gap: 18px;
    padding: 14px;
  }

  .itinerary-day:nth-of-type(even) .itinerary-media {
    order: 0;
  }

  .itinerary-media img {
    min-height: 260px;
  }

  .itinerary-media.media-stack img {
    min-height: 220px;
  }

  .itinerary-copy {
    padding: 8px 4px;
  }

  .season-card {
    padding: 22px;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .season-card .image-placeholder {
    min-height: 190px;
  }

  .site-footer {
    display: block;
    padding-bottom: 108px;
  }

  .mobile-contact-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(7, 24, 39, 0.92), rgba(13, 42, 66, 0.9));
    box-shadow: 0 18px 48px rgba(7, 24, 39, 0.34);
    backdrop-filter: blur(22px);
  }

  .mobile-contact-bar a {
    min-height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-contact-bar .highlight {
    color: var(--navy);
    background: linear-gradient(135deg, #ffffff, var(--ice-2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .back-to-top {
    bottom: 104px;
  }
}

@media (max-width: 560px) {
  .hero,
  .page-hero,
  .section {
    padding-left: 17px;
    padding-right: 17px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-text,
  .page-hero p:last-child {
    font-size: 16.5px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-strip {
    width: calc(100% - 24px);
  }

  .cta-section {
    width: calc(100% - 24px);
    padding: 32px 22px;
    border-radius: 26px;
  }

  .season-card {
    grid-template-columns: 1fr;
  }

  .image-placeholder {
    min-height: 190px;
  }

  .tour-card .image-placeholder,
  .route-item .image-placeholder,
  .media-card .image-placeholder {
    min-height: 210px;
  }

  .glass-card .image-placeholder,
  .price-card .image-placeholder,
  .timeline-step .image-placeholder {
    min-height: 170px;
  }

  .section-head h2,
  .cta-section h2,
  .contact-methods h2 {
    font-size: 31px;
  }

  .glass-card h3,
  .tour-card h3,
  .price-card h3,
  .route-item h3,
  .timeline-step h3 {
    font-size: 21px;
  }

  .mobile-contact-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-contact-bar a {
    min-height: 50px;
    font-size: 12px;
  }
}

/* Header logo hardening: prevents oversized logo if older or generic image CSS competes online. */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  flex: 0 0 auto;
  width: auto;
  max-width: 220px;
  overflow: hidden;
  gap: 1px;
}

.site-header .brand::after {
  content: "Northiva旅行";
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.site-header .brand-logo {
  width: 170px;
  max-width: 170px;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
  object-position: center center;
  display: block;
  flex: 0 0 auto;
}

.site-header .navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 18px;
}

.site-header .nav-links li,
.site-header .nav-links a {
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

@media (max-width: 860px) {
  .site-header .brand-logo {
    width: 132px;
    max-width: 132px;
    height: 44px;
    max-height: 44px;
  }

  .site-header .brand::after {
    font-size: 12px;
  }

  .site-header .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .site-header .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 768px) {
  body.route-detail-page {
    padding-bottom: 110px;
    background:
      radial-gradient(circle at top, rgba(78, 183, 216, 0.14), transparent 22rem),
      linear-gradient(180deg, #f8fcfe 0%, #eef6fa 100%);
  }

  .route-detail-page .page-hero {
    min-height: auto;
    padding: 310px 20px 38px;
    display: block;
  }

  .route-detail-page .page-hero .hero-media {
    height: 340px;
    bottom: auto;
  }

  .route-detail-page .page-hero .hero-media img {
    height: 340px;
    object-fit: cover;
    object-position: center;
  }

  .route-detail-page .page-hero .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 24, 39, 0.08), rgba(7, 24, 39, 0.34) 54%, rgba(7, 24, 39, 0.88)),
      linear-gradient(90deg, rgba(7, 24, 39, 0.58), rgba(7, 24, 39, 0.18));
  }

  .route-detail-page .page-hero h1 {
    max-width: 9.5em;
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.18;
  }

  .route-detail-page .page-hero p:last-child {
    font-size: 16px;
    line-height: 1.82;
  }

  .route-detail-page .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .route-detail-page .trip-info-grid {
    gap: 12px;
    margin-top: 26px;
  }

  .route-detail-page .trip-info-grid div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(7, 24, 39, 0.08);
  }

  .route-detail-page .itinerary-section {
    gap: 0;
    background: linear-gradient(180deg, rgba(237, 247, 251, 0.98), rgba(248, 252, 254, 0.98));
  }

  .route-detail-page .itinerary-day {
    display: block;
    margin: 0 0 34px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 24, 39, 0.06);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(7, 24, 39, 0.1);
  }

  .route-detail-page .itinerary-day:last-child {
    margin-bottom: 0;
  }

  .route-detail-page .itinerary-media {
    border-radius: 0;
    box-shadow: none;
  }

  .route-detail-page .itinerary-media img,
  .route-detail-page .itinerary-media.media-stack img {
    width: 100%;
    height: 220px;
    min-height: 0;
    max-height: 230px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
  }

  .route-detail-page .itinerary-media.media-stack {
    display: grid;
    gap: 0;
  }

  .route-detail-page .itinerary-media.media-stack img + img {
    border-top: 1px solid rgba(255, 255, 255, 0.7);
  }

  .route-detail-page .itinerary-copy {
    padding: 20px 18px 24px;
  }

  .route-detail-page .day-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0 0 12px;
    border-radius: 999px;
    background: #eaf5fa;
    color: #24495c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .route-detail-page .itinerary-copy h3 {
    margin: 0 0 14px;
    color: #102436;
    font-size: 20px;
    line-height: 1.45;
  }

  .route-detail-page .drive-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin: 0 0 16px;
    border-radius: 14px;
    background: #f1f7fb;
    color: #4f6f82;
    font-size: 14px;
    font-weight: 700;
  }

  .route-detail-page .drive-time::before {
    content: "車程";
    color: #24495c;
    font-weight: 900;
  }

  .route-detail-page .itinerary-copy p {
    margin-bottom: 14px;
    color: #405466;
    font-size: 15.5px;
    line-height: 1.92;
  }

  .route-detail-page .route-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 4px solid #9bc7d8;
    border-radius: 18px;
    background: #f3f8fb;
    color: #284658;
    line-height: 1.75;
  }

  .route-detail-page .summary-grid {
    gap: 16px;
  }

  .route-detail-page .summary-grid .glass-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
  }

.route-detail-page .cta-section {
    margin-bottom: 96px;
  }
}

/* 付款與用車規則頁：卡片、標籤與表格樣式 */
.payment-policy-page {
  display: grid;
  gap: 22px;
}

.policy-card {
  padding: 28px;
  border: 1px solid rgba(7, 24, 39, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(7, 24, 39, 0.08);
}

.policy-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
}

.policy-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.payment-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.payment-chip-list span,
.policy-flow,
.policy-example,
.policy-highlight {
  border-radius: 16px;
  background: #f1f7fb;
  color: #284658;
}

.payment-chip-list span {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 800;
}

.policy-flow,
.policy-example,
.policy-highlight {
  margin: 16px 0;
  padding: 16px;
  line-height: 1.8;
}

.policy-highlight {
  border-left: 4px solid var(--gold);
  background: #fff8e7;
}

.policy-table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
}

.policy-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(7, 24, 39, 0.06);
}

.policy-table th,
.policy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(7, 24, 39, 0.08);
  text-align: left;
}

.policy-table th {
  background: #eaf5fa;
  color: var(--navy);
}

.cancel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.cancel-grid article {
  padding: 16px;
  border: 1px solid rgba(7, 24, 39, 0.07);
  border-radius: 18px;
  background: #f8fcfe;
}

@media (max-width: 768px) {
  .policy-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

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