:root {
  --navy: #06294c;
  --deep: #041b34;
  --blue: #0d4f84;
  --gold: #d8a654;
  --gold2: #f4d28a;
  --ink: #102b4d;
  --muted: #6f7885;
  --line: #ead7b8;
  --paper: #fffaf1;
  --shadow: 0 12px 30px rgba(18, 54, 90, .1);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ed 42%, #fff 100%);
  font-family: "Songti SC", "Noto Serif TC", "Microsoft JhengHei", serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; }
.wrap { width: min(1360px, calc(100% - 72px)); margin: 0 auto; }
#home, #routes, #spots, #hotels, #gallery, #booking, #itinerary { scroll-margin-top: 108px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-bg { animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: linear-gradient(90deg, #052646 0%, #073964 50%, #052646 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 28, 60, .26);
  transition: height .28s ease, box-shadow .28s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 22, 48, .4); }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.crest {
  width: 52px; height: 52px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold2);
  font-weight: 800;
  position: relative;
  flex: none;
  transition: transform .28s ease;
}
.crest::before { content: "✦ ✦ ✦"; position: absolute; top: 5px; font-size: 8px; letter-spacing: 1px; }
.site-header.scrolled .crest { transform: scale(.9); }
.brand strong { display: block; font-size: 21px; letter-spacing: 2px; white-space: nowrap; }
.brand span {
  display: block; margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 11px; letter-spacing: 4px; color: #e9c77e;
}
nav { display: flex; gap: 26px; align-items: center; font-weight: 700; }
nav a { position: relative; padding: 32px 0; font-size: 16px; letter-spacing: 1px; transition: color .2s ease; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24px;
  height: 3px; background: var(--gold2);
  transform: scaleX(0); transform-origin: center;
  transition: transform .28s ease;
}
nav a:hover { color: var(--gold2); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: #17345a;
  background: linear-gradient(180deg, #ffe7a8, #e8b554);
  padding: 13px 22px; border-radius: 8px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(216, 166, 84, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.line-btn::before { content: "LINE"; font-size: 12px; color: #06c755; font-weight: 900; }
.line-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(216, 166, 84, .5); }
.nav-toggle { display: none; }

/* ---------- Hero (real photo + real text) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url("./assets/hero.jpg") center 42% / cover no-repeat;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.13); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 18, 38, .5) 0%, rgba(3, 18, 38, .2) 38%, rgba(3, 18, 38, .68) 100%),
    radial-gradient(120% 80% at 50% 42%, transparent 40%, rgba(3, 18, 38, .35) 100%);
}
.hero-content { text-align: center; padding: 46px 24px; max-width: 940px; }
.eyebrow {
  margin: 0 0 14px; color: var(--gold2);
  letter-spacing: 8px; font-weight: 700; font-size: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.hero h1 {
  margin: 0; color: #fff;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.06; letter-spacing: 10px;
  text-shadow: 0 6px 26px rgba(0, 0, 0, .55);
}
.hero h1 span { color: var(--gold2); font-size: 1.06em; }
.days-pill {
  width: fit-content; margin: 24px auto 14px;
  padding: 11px 34px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .8);
  color: #fff;
  background: rgba(9, 44, 78, .5);
  backdrop-filter: blur(3px);
  box-shadow: 0 5px 18px rgba(0, 20, 45, .4), inset 0 0 0 1px rgba(232, 198, 125, .5);
  font-size: 27px; font-weight: 800; letter-spacing: 5px;
}
.days-pill i {
  display: inline-block; width: 6px; height: 6px; margin: 0 16px 5px;
  border-radius: 50%; background: var(--gold2);
}
.hero-sub {
  font-size: 19px; letter-spacing: 6px; margin: 0 0 30px; color: #f3f6fb;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.hero-actions { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: #fff; font-size: 34px; line-height: 1; opacity: .85;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Buttons ---------- */
.btn-gold, .btn-ghost, .tour-card button, .booking-form button {
  cursor: pointer; border: 0; border-radius: 9px;
  min-width: 190px; padding: 15px 30px;
  font-weight: 800; letter-spacing: 2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.btn-gold, .booking-form button {
  color: #3d2c16;
  background: linear-gradient(180deg, #ffe4a2, #d99b38);
  box-shadow: 0 8px 20px rgba(216, 155, 56, .45);
}
.btn-gold:hover, .booking-form button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(216, 155, 56, .6); }

/* ---------- Section title ---------- */
.section-title {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; margin: 30px 0 22px;
}
.section-title h2 { margin: 0; color: #102f56; font-size: 40px; letter-spacing: 12px; white-space: nowrap; }
.section-title > span {
  flex: 1; max-width: 260px; height: 1px;
  background: linear-gradient(90deg, transparent, #dfb86d, transparent);
  position: relative;
}
.section-title > span:first-child::after,
.section-title > span:nth-child(3)::after {
  content: "❧"; position: absolute; top: -13px; color: #dca859;
}
.section-title > span:first-child::after { right: -6px; }
.section-title > span:nth-child(3)::after { left: -6px; transform: scaleX(-1); }
.section-title > a {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: #395875; font-size: 15px; font-weight: 700;
  padding: 6px 4px; transition: color .2s ease;
}
.section-title > a::after { content: " ›"; }
.section-title > a:hover { color: var(--gold); }

/* ---------- Route cards ---------- */
.route-section { padding-top: 22px; }
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 0 14px; }
.tour-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px; padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #fffaf1 100%);
  box-shadow: 0 12px 30px rgba(18, 54, 90, .09);
  transition: transform .28s ease, box-shadow .28s ease;
}
.tour-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(18, 54, 90, .18); }
.tour-card::before {
  content: "熱門推薦"; position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 10px 18px; color: #fff; border-radius: 16px 0 16px 0;
  background: linear-gradient(180deg, #e2bc70, #bb8334);
  font-weight: 800; letter-spacing: 2px;
}
.tour-card.pick::before { content: "人氣首選"; }
.tour-card.luxury::before { content: "豪華體驗"; }
.tour-card .card-img { border-radius: 14px; overflow: hidden; border: 1px solid #e8d1a8; }
.tour-card img {
  width: 100%; height: 200px; object-fit: cover; object-position: center;
  display: block; transition: transform .5s ease;
}
.tour-card:hover img { transform: scale(1.07); }
.card-body { padding: 14px 14px 4px; }
.card-body h2 { margin: 0; font-size: 29px; letter-spacing: 1px; }
.card-body b { color: #0b5ea1; font-size: 1.15em; }
.price { margin: 8px 0 10px; color: #bc7c25; font-family: Georgia, serif; font-size: 38px; line-height: 1; }
.price span { color: #8a6d45; font-size: 17px; font-family: inherit; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.tags span {
  padding: 4px 9px; border: 1px solid #b8c7d7; border-radius: 999px;
  background: #fff; color: #435c75; font-size: 13px; font-weight: 700;
}
.card-body p:not(.price) { margin: 0 0 16px; color: #4c5968; line-height: 1.72; font-size: 15px; }
.tour-card button {
  display: block; margin: 0 auto; min-width: 175px; padding: 11px 20px;
  border: 1px solid #153c63; background: #fff; color: #123a61; box-shadow: none;
}
.tour-card button:hover { background: linear-gradient(180deg, #174f7e, #082f55); color: #fff; transform: translateY(-2px); }

/* ---------- Inner page hero banner ---------- */
.feature-section { padding: 18px 0 14px; }
.page-main { min-height: 720px; padding-bottom: 46px; }
.page-hero {
  position: relative; min-height: 300px;
  display: grid; place-items: center; text-align: center; color: #fff;
  overflow: hidden; border-bottom: 3px solid var(--gold);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("./assets/banner-gulangyu.jpg") center 55% / cover no-repeat;
  transform: scale(1.04);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 35, 65, .78), rgba(6, 65, 105, .5));
}
.page-hero h1 { margin: 0; color: #fff; font-size: 54px; letter-spacing: 10px; text-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.page-hero p { margin: 14px 0 0; color: var(--gold2); font-size: 18px; letter-spacing: 5px; }

.page-block { padding-top: 34px; }
.intro-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; margin-bottom: 30px; }
.intro-copy, .service-card {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); padding: 26px;
}
.service-card { border-left: 4px solid var(--gold); }
.intro-copy h2, .service-card h3 { margin: 0 0 12px; color: #0c3b68; font-size: 27px; letter-spacing: 3px; }
.intro-copy p, .service-card p { margin: 0; color: #4c5968; line-height: 1.85; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.detail-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18, 54, 90, .16); }
.detail-card .card-img { overflow: hidden; }
.detail-card img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .5s ease; }
.detail-card:hover img { transform: scale(1.07); }
.detail-card div:not(.card-img) { padding: 18px; }
.detail-card h3 { margin: 0 0 8px; color: #102f56; font-size: 23px; }
.detail-card p { margin: 0; color: #5f6f80; line-height: 1.7; }

/* ---------- Licenses ---------- */
.license-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.license-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.license-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18, 54, 90, .18); }
.license-card .lic-img { position: relative; cursor: zoom-in; }
.license-card img { width: 100%; height: 430px; display: block; object-fit: contain; background: #faf7ef; }
.license-card .lic-img::after {
  content: "🔍 點擊放大"; position: absolute; right: 12px; bottom: 12px;
  background: rgba(6, 41, 76, .82); color: #fff; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity .2s ease;
}
.license-card:hover .lic-img::after { opacity: 1; }
.license-card div:not(.lic-img) { padding: 18px 20px; border-top: 1px solid #ead7b8; }
.license-card h3 { margin: 0 0 6px; color: #102f56; font-size: 24px; }
.license-card p { margin: 0; color: #667280; line-height: 1.65; }

/* ---------- Spots / hotels / gallery ---------- */
.spot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.spot-grid article { cursor: pointer; }
.spot-grid .card-img { overflow: hidden; border-radius: 9px; }
.spot-grid img { width: 100%; height: 120px; object-fit: cover; object-position: center; display: block; transition: transform .5s ease; }
.spot-grid article:hover img { transform: scale(1.1); }
.spot-grid h3, .hotel-grid h3 { margin: 8px 0 3px; font-size: 21px; letter-spacing: 2px; }
.spot-grid p, .hotel-grid p, .hotel-grid small { margin: 0; color: #667280; line-height: 1.55; font-size: 14px; }

.hotel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hotel-grid article {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 8px 22px rgba(18, 54, 90, .08);
  transition: transform .28s ease, box-shadow .28s ease;
}
.hotel-grid article:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(18, 54, 90, .16); }
.hotel-grid .card-img { overflow: hidden; }
.hotel-grid img { width: 100%; height: 150px; object-fit: cover; object-position: center; display: block; transition: transform .5s ease; }
.hotel-grid article:hover img { transform: scale(1.08); }
.hotel-grid div:not(.card-img) { padding: 14px 16px 16px; position: relative; }
.hotel-grid b {
  display: inline-block; margin: 2px 0 8px;
  border: 1px solid #d7ad65; border-radius: 4px; color: #b98132;
  padding: 2px 8px; font-size: 12px;
}
.hotel-grid h3 { font-size: 19px; }
.hotel-grid small { display: block; margin-top: 10px; color: #9a7443; }

.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-grid img {
  width: 100%; height: 190px; object-fit: cover; object-position: center;
  border-radius: 10px; cursor: zoom-in;
  transition: transform .35s ease, box-shadow .35s ease; display: block;
}
.gallery-grid img:hover { transform: scale(1.04); box-shadow: 0 14px 30px rgba(18, 54, 90, .22); }

/* ---------- Highlights ---------- */
.highlights { padding: 40px 0 44px; }
.highlight-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; text-align: left; }
.highlight-grid article {
  display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center;
  border-right: 1px solid #dfc086;
}
.highlight-grid article:last-child { border-right: 0; }
.highlight-grid i {
  width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: linear-gradient(180deg, #e8bd67, #c69039);
  font-style: normal; font-size: 28px; box-shadow: 0 8px 18px rgba(198, 144, 57, .4);
  transition: transform .3s ease;
}
.highlight-grid article:hover i { transform: translateY(-4px) rotate(-6deg); }
.highlight-grid h3 { margin: 0 0 5px; font-size: 19px; }
.highlight-grid p { margin: 0; color: #667280; font-size: 13px; }

/* ---------- Itinerary ---------- */
.itinerary { padding: 14px 0 48px; }
.tabs { display: flex; justify-content: center; gap: 14px; margin: 0 0 24px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid #d6a75c; background: #fff; color: #173b61;
  border-radius: 999px; padding: 10px 34px; font-weight: 800; cursor: pointer;
  transition: all .2s ease;
}
.tabs button:hover { background: #fff6e6; }
.tabs button.active { color: #fff; background: linear-gradient(180deg, #174f7e, #082f55); border-color: transparent; box-shadow: 0 8px 18px rgba(8, 47, 85, .3); }
.timeline { display: none; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.timeline.active { display: grid; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.day-card {
  position: relative;
  padding: 22px 24px 22px 30px; border-radius: 12px;
  border: 1px solid #e2c48f; background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(13, 49, 80, .08);
}
.day-card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.day-card h3 { margin: 0 0 12px; color: #0c3b68; font-size: 23px; }
.day-card p { margin: 0 0 12px; color: #41556d; line-height: 1.8; }
.day-card .meta { display: grid; gap: 7px; padding-top: 12px; border-top: 1px dashed #d4b575; color: #7d5a25; font-weight: 700; font-size: 14px; }
.day-card .meta span::before { margin-right: 6px; }
.day-card .meta span:first-child::before { content: "🍽"; }
.day-card .meta span:last-child::before { content: "🏨"; }

/* itinerary full-poster viewer */
.route-posters { margin-top: 30px; text-align: center; }
.route-posters h3 { color: #0c3b68; font-size: 22px; letter-spacing: 4px; margin: 0 0 6px; }
.route-posters p.pnote { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.poster-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.poster-card { display: block; color: inherit; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .28s ease, box-shadow .28s ease; }
.poster-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18, 54, 90, .18); }
.poster-card img { width: 100%; height: 260px; object-fit: cover; object-position: top center; display: block; }
.poster-card b { display: block; padding: 12px; color: #123a61; font-size: 17px; letter-spacing: 2px; }

/* ---------- Booking ---------- */
.booking {
  display: grid; grid-template-columns: 32% 22% 1fr; align-items: center; gap: 34px;
  padding: 40px 56px; color: #fff;
  background: linear-gradient(90deg, #07355f, #052442 58%, #07355f);
  border-top: 3px solid var(--gold);
}
.booking-photo {
  height: 210px; border-radius: 10px;
  background: url("./assets/banner-skyline.jpg") center / cover no-repeat;
  border: 1px solid rgba(255, 220, 160, .55);
}
.booking-copy h2 { margin: 0 0 18px; color: var(--gold2); font-size: 36px; line-height: 1.24; letter-spacing: 4px; }
.booking-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.booking-copy li::before { content: "✓"; margin-right: 8px; color: var(--gold2); font-weight: 900; }
.booking-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; padding: 26px;
  background: rgba(255, 255, 255, .97); border-radius: 13px; color: #304866;
}
.booking-form label { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-weight: 800; }
.booking-form .full { grid-column: 1 / -1; }
.booking-form input, .booking-form select {
  width: 100%; min-height: 44px; border: 1px solid #dce4ec; border-radius: 8px;
  padding: 0 14px; color: #304866; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.booking-form input:focus, .booking-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 166, 84, .25); }
.booking-form input.err, .booking-form select.err { border-color: #e05656; box-shadow: 0 0 0 3px rgba(224, 86, 86, .18); }
.booking-form button { grid-column: 1 / -1; justify-self: center; width: min(340px, 100%); }
.form-note { grid-column: 1 / -1; text-align: center; margin: 2px 0 0; font-size: 13px; color: #7a869a; font-weight: 400; }
.form-ok { grid-column: 1 / -1; text-align: center; margin: 0; padding: 12px; border-radius: 8px; background: #eafaf0; color: #1f8a4c; font-weight: 700; display: none; }
.form-ok.show { display: block; animation: fadeUp .4s ease; }

/* ---------- Footer ---------- */
footer { color: #fff; background: linear-gradient(90deg, #052341, #06345b); border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr .9fr; gap: 38px; padding: 40px 0 20px; }
.footer-brand span { color: #cdd; }
footer h4 { margin: 0 0 14px; color: var(--gold2); font-size: 17px; }
footer a, footer p { display: block; margin: 8px 0; color: #d7e3ef; font-size: 14px; }
footer a { transition: color .2s ease; }
footer a:hover { color: var(--gold2); }
.social { display: flex; gap: 12px; }
.social a {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.social a:hover { transform: translateY(-3px); }
.social a.line:hover { background: #06c755; }
.social a.fb:hover { background: #1877f2; }
.social a.ig:hover { background: #d94aa2; }
.social a.yt:hover { background: #e32222; }
.copyright { margin: 0; padding: 16px 0 24px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .14); color: #b9cadb; font-size: 13px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 40px;
  background: rgba(4, 16, 32, .92); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-close {
  position: absolute; top: 22px; right: 28px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 26px; cursor: pointer; transition: background .2s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .32); }
.lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; letter-spacing: 3px; font-size: 16px; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 22px; z-index: 60; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .2s ease, opacity .3s ease; }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-line {
  bottom: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: #06c755; color: #fff; font-weight: 900; font-size: 13px; text-decoration: none;
  letter-spacing: .5px;
}
.fab-line span { display: block; text-align: center; line-height: 1.1; }
.fab-top {
  bottom: 96px; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(6, 41, 76, .9); color: #fff; border: 0; font-size: 22px;
  opacity: 0; pointer-events: none;
}
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-header { padding: 0 24px; }
  nav {
    position: fixed; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #052646; padding: 8px 24px 18px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: 0 16px 30px rgba(0, 22, 48, .4);
  }
  nav.open { max-height: 480px; }
  nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  nav a::after { display: none; }
  nav a.active { color: var(--gold2); }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 42px;
    background: transparent; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 8px;
    color: #fff; font-size: 22px; cursor: pointer;
  }
  .route-cards, .hotel-grid, .timeline, .license-grid, .detail-grid, .poster-row { grid-template-columns: 1fr 1fr; }
  .spot-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid article:nth-child(2n) { border-right: 0; }
  .booking { grid-template-columns: 1fr; }
  .booking-photo { height: 200px; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1360px); }
  .site-header { height: 72px; }
  nav { top: 72px; }
  .brand strong { font-size: 16px; }
  .brand span { letter-spacing: 2px; font-size: 10px; }
  .crest { width: 44px; height: 44px; }
  .line-btn { display: none; }
  .hero { min-height: 540px; }
  .hero h1 { letter-spacing: 4px; }
  .eyebrow { font-size: 13px; letter-spacing: 3px; }
  .days-pill { font-size: 19px; letter-spacing: 2px; padding: 10px 20px; }
  .days-pill i { margin: 0 10px 4px; }
  .hero-sub { letter-spacing: 2px; line-height: 1.6; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
  .hero-actions a { width: min(320px, 100%); }
  .route-cards, .spot-grid, .hotel-grid, .gallery-grid, .highlight-grid, .timeline, .footer-grid, .intro-panel, .detail-grid, .license-grid, .poster-row { grid-template-columns: 1fr; }
  .highlight-grid article { border-right: 0; border-bottom: 1px solid #dfc086; padding-bottom: 14px; }
  .license-card img { height: auto; }
  .section-title { flex-wrap: wrap; }
  .section-title > span { display: none; }
  .section-title h2 { font-size: 28px; letter-spacing: 6px; }
  .section-title > a { position: static; transform: none; display: block; width: 100%; text-align: center; margin-top: 6px; }
  .page-hero h1 { font-size: 34px; letter-spacing: 5px; }
  .booking { padding: 28px 18px; }
  .booking-form { grid-template-columns: 1fr; padding: 20px; }
  .booking-form label { grid-template-columns: 1fr; gap: 6px; }
  .fab-line { width: 54px; height: 54px; }
}

/* ==================================================================
   追加：公司介紹 / 行程詳情頁 / 酒店詳情頁
   ================================================================== */

/* ---- 公司介紹（左介紹 / 右資質）---- */
.about-panel { display: grid; grid-template-columns: 1fr; gap: 22px; }
.about-copy {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fffaf1); box-shadow: var(--shadow); padding: 30px 32px;
}
.about-copy h3 { margin: 0 0 14px; color: #0c3b68; font-size: 26px; letter-spacing: 2px; }
.about-copy p { margin: 0 0 16px; color: #4c5968; line-height: 1.9; }
.about-points { list-style: none; padding: 14px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; border-top: 1px dashed #e2c48f; }
.about-points li { position: relative; padding-left: 24px; color: #35506e; font-weight: 700; font-size: 15px; }
.about-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.about-licenses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lic-mini {
  position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #faf7ef; box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .28s ease, box-shadow .28s ease;
}
.lic-mini:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(18, 54, 90, .16); }
.lic-mini img { width: 100%; height: 320px; object-fit: contain; display: block; }
.lic-mini b {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 41, 76, .92)); color: #fff;
  padding: 20px 14px 8px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.lic-mini::after {
  content: "🔍"; position: absolute; top: 10px; right: 10px;
  background: rgba(6, 41, 76, .8); color: #fff; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; opacity: 0; transition: opacity .2s ease;
}
.lic-mini:hover::after { opacity: 1; }

/* ---- 詳情頁通用 Hero（行程 / 酒店）---- */
.detail-hero {
  position: relative; min-height: 440px; display: grid; place-items: center;
  overflow: hidden; color: #fff; text-align: center; border-bottom: 3px solid var(--gold);
}
.detail-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 24s ease-in-out infinite alternate; }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 20, 40, .5) 0%, rgba(4, 20, 40, .74) 100%); }
.detail-hero-inner { padding: 46px 24px; max-width: 940px; }
.dh-badge { display: inline-block; background: linear-gradient(180deg, #e2bc70, #bb8334); color: #fff; padding: 6px 18px; border-radius: 999px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; }
.detail-hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 5vw, 54px); letter-spacing: 5px; line-height: 1.16; text-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.dh-sub { margin: 14px 0 0; color: var(--gold2); font-size: 17px; letter-spacing: 3px; }
.dh-price { margin: 18px 0 10px; font-size: 19px; color: #eef3f9; }
.dh-price b { color: var(--gold2); font-family: Georgia, serif; font-size: 46px; vertical-align: -4px; }
.dh-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 24px; }
.dh-tags span { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; }
.dh-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 14px; margin: 20px 0 6px; }
.crumbs a { color: var(--blue); }
.crumbs a:hover { color: var(--gold); }

/* ---- 行程詳情：完整海報 ---- */
.rd-poster-wrap { text-align: center; }
.rd-poster { display: inline-block; max-width: 520px; width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .28s ease, box-shadow .28s ease; }
.rd-poster:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(18, 54, 90, .2); }
.rd-poster img { width: 100%; display: block; }

/* ---- 酒店詳情 ---- */
.hd-facts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: stretch; }
.hd-facts .intro-copy p { margin: 0 0 14px; }
.hd-info { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 24px 26px; }
.hd-info h3 { margin: 0 0 14px; color: #0c3b68; font-size: 22px; letter-spacing: 2px; }
.hd-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
.hd-info dt { color: var(--gold); font-weight: 800; white-space: nowrap; }
.hd-info dd { margin: 0; color: #4c5968; line-height: 1.6; }
.hd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hd-gallery .g-item { border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); position: relative; }
.hd-gallery img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .5s ease; }
.hd-gallery .g-item:hover img { transform: scale(1.07); }
.hd-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hd-room { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease; }
.hd-room:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18, 54, 90, .16); }
.hd-room .card-img { overflow: hidden; }
.hd-room img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .5s ease; }
.hd-room:hover img { transform: scale(1.07); }
.hd-room div:not(.card-img) { padding: 16px 18px; }
.hd-room h4 { margin: 0 0 6px; color: #102f56; font-size: 20px; }
.hd-room .rsize { display: inline-block; background: #f4ede0; color: #9a7443; border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.hd-room p { margin: 0; color: #5f6f80; font-size: 14px; line-height: 1.7; }
.facilities { display: flex; flex-wrap: wrap; gap: 10px; }
.facilities span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: #35506e; font-weight: 700; box-shadow: 0 4px 12px rgba(18, 54, 90, .06); }
.facilities span::before { content: "◆"; color: var(--gold); margin-right: 7px; font-size: 11px; }

@media (max-width: 1080px) {
  .hd-facts { grid-template-columns: 1fr; }
  .lic-mini img { height: 260px; }
  .rd-split { grid-template-columns: 1fr; }
  .rd-poster-col { position: static; max-width: 460px; margin: 0 auto; }
  .hd-gallery { grid-template-columns: repeat(2, 1fr); }
  .hd-rooms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .about-copy { padding: 22px; }
  .about-licenses { grid-template-columns: 1fr; }
  .lic-mini img { height: 240px; }
  .hd-gallery, .hd-rooms { grid-template-columns: 1fr; }
  .detail-hero { min-height: 380px; }
  .dh-price b { font-size: 38px; }
  .dh-actions { flex-direction: column; align-items: center; }
  .dh-actions a { width: min(320px, 100%); }
}

/* ---- 遊客風采：短視頻牆（豎屏）---- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-grid .vclip {
  position: relative; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease;
}
.video-grid .vclip:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(18, 54, 90, .2); }
.video-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
@media (max-width: 1080px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---- 行程詳情：左海報 / 右每日行程 ---- */
.rd-split { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 30px; align-items: start; }
.rd-poster-col { position: sticky; top: 100px; }
.rd-poster {
  display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in; transition: transform .28s ease, box-shadow .28s ease;
}
.rd-poster:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(18, 54, 90, .2); }
.rd-poster img { width: 100%; display: block; }
.rd-days { display: grid; gap: 16px; align-content: start; }
