/* ============================================================
   二毛旅遊網 設計系統
   調性：海軍藍輕奢 —— 雲白底＋墨藍黑＋品牌藍 #2E58A6＋香檳金
   ============================================================ */
:root {
  --paper: #f7f9fc;        /* 雲白（頁面底，冷調） */
  --paper-2: #e9eef6;      /* 淡藍灰區塊底 */
  --ink: #1e2635;          /* 墨藍黑（主文字） */
  --ink-soft: #4c586c;     /* 藍灰（輔助文字） */
  --brick: #2e58a6;        /* 品牌藍（主 logo 色 #2E58A6） */
  --brick-dark: #234a8f;
  --gold: #ab8a4d;         /* 香檳金（輕奢點綴，藍金配） */
  --line-green: #06c755;   /* LINE 官方綠 */
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(22, 32, 54, .10);
  --radius: 14px;
  --serif: "Noto Serif TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); }

/* ── 按鈕 ── */
.btn {
  display: inline-block; padding: .72em 1.7em; border-radius: 999px;
  font-weight: 500; transition: all .25s; border: 1.5px solid transparent;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--brick); color: var(--white); }
.btn-primary:hover { background: var(--brick-dark); color: var(--white); transform: translateY(-2px); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: #05b34c; color: var(--white); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #8f6d3c; color: var(--white); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 252, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 38, 53, .08);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { height: 52px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .12em; }
.brand-text small { font-size: .62rem; color: var(--ink-soft); letter-spacing: .18em; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 22px 14px; color: var(--ink); font-weight: 500; font-size: 1.08rem;
}
.main-nav > ul > li > a:hover, .main-nav a.active { color: var(--brick); }
.main-nav a.active { position: relative; }
.main-nav > ul > li > a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 14px;
  height: 2px; background: var(--brick); border-radius: 2px;
}
.caret { opacity: .5; transition: transform .25s; }
.has-sub:hover .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 265px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s; border: 1px solid rgba(30, 38, 53, .06);
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a {
  display: block; padding: 12px 16px; border-radius: 8px;
  color: var(--ink); font-size: 1.02rem;
}
.sub-menu a:hover { background: var(--paper-2); color: var(--brick); }
.header-cta { display: flex; gap: 8px; }
.header-cta .btn { font-size: .95rem; padding: .55em 1.2em; }
.nav-toggle { display: none; }

/* ── 麵包屑 ── */
.breadcrumb {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 0;
  font-size: .98rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumb span { opacity: .4; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 66vh; display: flex; align-items: center;
  background-size: cover; background-position: center; color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13, 20, 36, .72) 25%, rgba(13, 20, 36, .25) 70%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 80px 20px; width: 100%; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .35em;
  color: var(--gold); margin-bottom: 14px; font-weight: 500;
  border-bottom: 1px solid var(--gold); padding-bottom: 6px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p.lead { font-size: 1.22rem; max-width: 34em; margin-bottom: 28px; color: rgba(255,255,255,.92); }
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 內頁小型 hero */
.hero.hero-sub { min-height: 42vh; }

/* ── 通用區塊 ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 20px; }
.section-tint { background: var(--paper-2); }
.section-tint > .section-inner, .section-inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 20px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
  font-size: .9rem; letter-spacing: .35em; color: var(--gold);
  font-weight: 500; display: block; margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); max-width: 42em; margin: 0 auto; }
.ink-divider {
  width: 56px; height: 3px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--brick), transparent);
}

/* ── 卡片網格 ── */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(22,32,54,.16); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { color: var(--ink); }
.card-body p { color: var(--ink-soft); font-size: 1.02rem; flex: 1; }
.card-body .card-link { font-weight: 500; font-size: 1.02rem; margin-top: 4px; }

/* 特色小卡（icon + 字） */
.feature { text-align: center; padding: 26px 18px; }
.feature .feature-icon {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--brick); font-family: var(--serif); font-weight: 700;
}
.feature h3 { font-size: 1.22rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* ── 價格卡 ── */
.price-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  border-top: 4px solid var(--gold); position: relative;
}
.price-card.featured { border-top-color: var(--brick); outline: 2px solid var(--brick); }
.price-card .plan-no { font-size: .9rem; letter-spacing: .25em; color: var(--gold); font-weight: 500; }
.price-card h3 { font-size: 1.45rem; }
.price-card .price { font-family: var(--serif); font-size: 2.1rem; font-weight: 900; color: var(--brick); line-height: 1.2; }
.price-card .price small { font-size: .95rem; color: var(--ink-soft); font-weight: 400; font-family: var(--sans); }
.price-card .price-note { font-size: .92rem; color: var(--ink-soft); }
.price-card ul { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.price-card li { padding-left: 1.5em; position: relative; font-size: 1.02rem; }
.price-card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8em; top: .35em; }
.price-card li.excluded { color: var(--ink-soft); opacity: .65; }
.price-card li.excluded::before { content: "—"; }
.price-card .badge {
  position: absolute; top: -14px; right: 20px; background: var(--brick); color: var(--white);
  font-size: .88rem; padding: 3px 14px; border-radius: 999px; letter-spacing: .1em;
}

/* ── 圖文交錯 ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split h2 { margin-bottom: 14px; }
.split p { color: var(--ink-soft); margin-bottom: 12px; }
.split .eyebrow { font-size: .8rem; letter-spacing: .3em; color: var(--gold); display: block; margin-bottom: 8px; }

/* ── 司導卡 ── */
.driver-card { text-align: center; }
.driver-card img { aspect-ratio: 1/1; border-radius: var(--radius) var(--radius) 0 0; }

/* ── 評價 ── */
.review-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); font-size: 1.02rem;
}
.review .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.review p { color: var(--ink-soft); margin-bottom: 12px; }
.review cite { font-style: normal; font-weight: 500; color: var(--ink); font-size: .95rem; }
.review cite::before { content: "— "; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: 18px 22px; transition: box-shadow .2s;
}
.faq-list summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.2rem;
}
.faq-list summary::after { content: "＋"; color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "－"; }
.faq-list details p { color: var(--ink-soft); padding-top: 12px; font-size: 1.04rem; }

/* ── CTA 帶 ── */
.cta-band {
  background: linear-gradient(120deg, #101a30 0%, #2e58a6 135%);
  color: var(--paper); text-align: center;
}
.cta-band .section { padding: 60px 20px; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(250,247,242,.75); margin-bottom: 26px; }
.cta-band .hero-actions { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 行程表 ── */
.itinerary { max-width: 860px; margin: 0 auto; }
.itinerary .day {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 30px; margin-bottom: 20px; border-left: 4px solid var(--gold);
}
.itinerary .day h3 { color: var(--brick); margin-bottom: 8px; }
.itinerary .day p { color: var(--ink-soft); font-size: 1.04rem; }
.itinerary .legend { text-align: center; font-size: .95rem; color: var(--ink-soft); margin-top: 6px; }

/* ── logo 牆 ── */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-wall img {
  aspect-ratio: 1/1; object-fit: cover; border-radius: 10px;
  background: var(--white); box-shadow: 0 3px 12px rgba(22,32,54,.08);
  transition: transform .25s;
}
.logo-wall img:hover { transform: scale(1.04); }

/* ── Footer ── */
.site-footer { background: #131c30; color: #c3ccdd; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 44px;
  display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 48px;
}
.footer-brand img {
  filter: invert(1) opacity(.9); width: 72px; height: 72px;
  object-fit: contain; margin-bottom: 16px;
}
.footer-slogan { font-family: var(--serif); color: #eef2f9; font-size: 1.18rem; line-height: 2.1; }
.site-footer h3 {
  color: var(--gold); font-size: 1.02rem; letter-spacing: .3em;
  margin-bottom: 18px; font-weight: 700;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 12px; font-size: 1.04rem; }
.footer-nav a { color: #c3ccdd; transition: color .2s, padding-left .2s; }
.footer-nav a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { color: #93a0b8; }
.footer-contact a { color: #d8b57e; }
.footer-contact a:hover { color: #f0d3a0; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 20px; text-align: center;
  font-size: .9rem; color: #8b93a6; line-height: 1.9;
}

/* ── 浮動 LINE ── */
.float-line {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--line-green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(6,199,85,.4); transition: transform .25s;
}
.float-line:hover { transform: scale(1.1); color: var(--white); }

/* ── 表格 ── */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 1.02rem; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--paper-2); }
table.compare thead th { background: var(--ink); color: var(--paper); font-family: var(--serif); white-space: nowrap; }
table.compare tbody tr:hover { background: var(--paper); }
table.compare td:first-child { font-weight: 500; white-space: nowrap; }

/* ── RWD ── */
@media (max-width: 1023px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .review-strip { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .header-cta { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: all .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--paper); overflow-y: auto; padding: 16px 22px 40px;
    transform: translateX(100%); transition: transform .3s; margin-left: 0;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 17px 4px; font-size: 1.18rem; border-bottom: 1px solid rgba(30,38,53,.07); }
  .main-nav > ul > li > a.active::after { display: none; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border: 0; padding: 0 0 6px 16px;
    display: none;
  }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { font-size: 1.08rem; padding: 13px 10px; }
}
@media (max-width: 599px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .section, .section-inner { padding: 52px 18px; }
  .hero { min-height: 58vh; }
  .brand-text small { display: none; }
  .brand img, .brand-logo { height: 42px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; padding: 48px 20px 36px; }
}

/* ── 品牌 logo（header）── */
.brand-logo { height: 52px; width: auto; border-radius: 8px; display: block; }

/* ── 方案五欄網格（首頁/總覽頁價格區）── */
.plans-grid { display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); align-items: stretch; }
.plans-grid .price-card { padding: 24px 18px; }
.plans-grid .price { font-size: 1.65rem; }
.plans-grid li { font-size: .98rem; }
@media (max-width: 1150px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .plans-grid { grid-template-columns: 1fr; } }

/* ── 影片專區 ── */
.video-feature { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px; }
.video-feature video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.yt {
  position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  cursor: pointer; background: #000; box-shadow: var(--shadow);
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .93; transition: transform .3s, opacity .3s; }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt .play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  border-radius: 50%; background: rgba(46, 88, 166, .92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.4); transition: transform .25s, background .25s;
  pointer-events: none;
}
.yt .play::before { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.yt:hover .play { transform: scale(1.12); background: var(--brick); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-title {
  margin-top: 10px; font-size: 1.02rem; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-author { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 1023px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .video-grid { grid-template-columns: 1fr; } }

/* ── 回頂部按鈕 ── */
.back-top {
  position: fixed; right: 24px; bottom: 100px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(46, 88, 166, .92); color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(19, 28, 48, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s; display: flex; align-items: center; justify-content: center;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brick-dark); }
