/* ============================================================================
   香港航空 首頁 · 靜態復刻樣式
   設計變數取自原站 CSS：主色 #DA2129、頁面底色 #f3f3f8、
   內容容器 1152 / 976 / 100%，系統字體棧。
   ========================================================================== */

:root {
  --brand: #da2129;
  --brand-dark: #b7141b;
  --brand-soft: rgba(218, 33, 41, .08);
  --ink: #1f2430;
  --text: #333;
  --muted: #8a8f98;
  --muted-2: #6b7280;
  --line: #e4e6ec;
  --bg: #f3f3f8;
  --white: #fff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow: 0 6px 24px rgba(17, 24, 39, .08);
  --shadow-lg: 0 18px 48px rgba(17, 24, 39, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* =============================== 頁首 =============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(17, 24, 39, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--ink); }
.logo-text i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
  min-width: 0;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 76px;
  font-size: 15px;
  color: #3a3f4a;
  white-space: nowrap;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a.is-active { color: var(--brand); font-weight: 600; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}
.main-nav svg { width: 18px; height: 18px; fill: currentColor; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3a3f4a;
  padding: 8px 10px;
  border-radius: 8px;
}
.lang-btn:hover { background: #f5f6f9; color: var(--brand); }
.lang-btn svg { width: 18px; height: 18px; fill: currentColor; }

.login-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.login-btn:hover { background: var(--brand-dark); }
.login-btn:active { transform: scale(.98); }

/* =============================== 品牌橫幅 =============================== */
/* 原站的主視覺是一整幅背景視覺（輪播／背景圖），沒有可抓取的標題文字，
   這裡用品牌色漸層 + 大型浮水印代替，訂票面板會壓在它上面。 */
.masthead {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(118deg, #6d0b11 0%, #a9141b 38%, #da2129 72%, #ef4a4f 100%);
}

.masthead-glow {
  position: absolute;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 68%);
}

.masthead-mark {
  position: absolute;
  right: 5%;
  top: 2px;
  font-size: 132px;
  font-weight: 800;
  letter-spacing: -8px;
  line-height: 1;
  color: rgba(255, 255, 255, .09);
  user-select: none;
}

/* =============================== 訂票面板 =============================== */
.booking-wrap { position: relative; z-index: 10; }

.booking-card {
  margin-top: -110px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booking-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.booking-tabs::-webkit-scrollbar { display: none; }

.booking-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 62px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color .15s ease;
}
/* 圖示預設／選中兩態疊放，hover 或選中時切換（與原站行為一致） */
.ic-pair {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}
.ic-pair .ic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .18s ease;
}
.ic-pair .ic-on { opacity: 0; }

.booking-tab:hover { color: var(--ink); }
.booking-tab.is-active { color: var(--brand); font-weight: 600; }
.booking-tab.is-active .ic:not(.ic-on),
.booking-tab:hover .ic:not(.ic-on) { opacity: 0; }
.booking-tab.is-active .ic-on,
.booking-tab:hover .ic-on { opacity: 1; }
.booking-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}

.booking-body { padding: 20px 24px 24px; }

.trip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.trip-types { display: flex; gap: 8px; }
.trip {
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted-2);
  transition: all .15s ease;
}
.trip:hover { border-color: #c9ccd6; color: var(--ink); }
.trip.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.fields {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr 1fr 1.05fr .95fr;
  gap: 8px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 74px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:hover, .field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218, 33, 41, .08);
}
.field-label { font-size: 12px; color: var(--muted); }
.field-value { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.field-sub {
  font-size: 11px;
  color: #a2a7b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swap {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted-2);
  box-shadow: 0 1px 4px rgba(17, 24, 39, .1);
  transition: all .15s ease;
}
.swap:hover { color: var(--brand); border-color: var(--brand); }
.swap svg { width: 16px; height: 16px; fill: currentColor; }

.booking-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.promo-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.promo-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218, 33, 41, .08);
}
.promo-field > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.promo-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}

.btn-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(218, 33, 41, .28);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-search:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(218, 33, 41, .34); }
.btn-search:active { transform: translateY(1px); }
.btn-search svg { width: 20px; height: 20px; fill: currentColor; }

/* =============================== 快捷服務 =============================== */
.services {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 18px 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-radius: 10px;
  text-align: center;
  transition: background .15s ease, transform .15s ease;
}
.service .ic-pair { width: 38px; height: 38px; }
.service span { font-size: 13px; color: #4b5160; line-height: 1.3; }
.service:hover { background: #fafafd; transform: translateY(-2px); }
.service:hover span { color: var(--brand); }
.service:hover .ic:not(.ic-on) { opacity: 0; }
.service:hover .ic-on { opacity: 1; }

/* =============================== 區塊通用 =============================== */
.section { margin-top: 46px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ink);
}
.more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}
.more:hover { text-decoration: underline; }
.more svg { width: 16px; height: 16px; fill: currentColor; }

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 18px;
  max-width: 900px;
}

/* =============================== 特惠航線 =============================== */
.deals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.deal {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.deal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.deal-media { aspect-ratio: 4 / 3; overflow: hidden; background: #e9ebf1; }
.deal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.deal:hover .deal-media img { transform: scale(1.04); }

.deal-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; }
.deal-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.route { font-size: 13px; color: var(--muted); }

.price {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.5px;
}
.price span { font-size: 12px; font-weight: 600; letter-spacing: .5px; margin-right: 2px; }
.price em { font-style: normal; font-size: 14px; vertical-align: super; margin-left: 1px; }

.explore {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.explore svg { width: 14px; height: 14px; fill: currentColor; transition: transform .15s ease; }
.deal:hover .explore svg, .pick:hover .explore svg, .club-card:hover .explore svg { transform: translateX(3px); }

/* =============================== 金鵬俱樂部 =============================== */
.club { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; }

.club-join {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #b7141b 0%, #da2129 58%, #ef4a4f 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.club-kicker { font-size: 10px; letter-spacing: 3.4px; color: rgba(255, 255, 255, .7); }
.club-join h3 { margin-top: 10px; font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.club-join ul { margin: 18px 0 24px; display: grid; gap: 10px; }
.club-join li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.5;
}
.club-join li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  opacity: .85;
}
.btn-join {
  margin-top: auto;
  align-self: flex-start;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-join:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }

.club-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.club-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.club-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.club-media { aspect-ratio: 16 / 10; overflow: hidden; background: #e9ebf1; }
.club-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.club-card:hover .club-media img { transform: scale(1.04); }
.club-body { display: flex; flex-direction: column; padding: 16px; }
.club-body h4 { font-size: 17px; font-weight: 700; color: var(--ink); }
.club-body p { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* =============================== 精選 =============================== */
.picks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.pick {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pick:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.pick-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #f6f7fb;
  overflow: hidden;
  margin-bottom: 14px;
}
.pick-media img { width: 66%; height: auto; object-fit: contain; }

.pick-plain {
  background: linear-gradient(135deg, #eef1f8, #dfe4ef);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1a3f8f;
}
.pick-dark {
  background: linear-gradient(135deg, #2a2f3a, #14171d);
  color: #f2c14e;
  font-size: 13px;
  letter-spacing: .5px;
}

.pick h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  min-height: 40px;
}
.pick .explore { margin-top: auto; padding-top: 10px; }

/* =============================== 頁尾 =============================== */
.site-footer {
  margin-top: 64px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 46px;
  padding-bottom: 40px;
}

.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand p { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.footer-brand i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .5px; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f2f3f7;
  transition: background .15s ease;
}
.socials a:hover { background: var(--brand); }
.socials svg { width: 17px; height: 17px; fill: #5a6070; }
.socials a:hover svg { fill: #fff; }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--muted-2); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom { background: #f6f7fb; border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted-2); }
.footer-links a:hover { color: var(--brand); }

/* =============================== 浮動客服 =============================== */
.contact-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, .16);
  font-size: 13px;
  font-weight: 600;
  color: #3a3f4a;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17, 24, 39, .22); }
.fab-item img { width: 24px; height: 24px; object-fit: contain; }
.fab-item svg { width: 24px; height: 24px; fill: #25d366; }
.fab-wa { color: #128c7e; }

/* =============================== 響應式 =============================== */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 14px; }
  .fields { grid-template-columns: 1fr 1fr 1fr; }
  .swap { display: none; }
  .deals { grid-template-columns: repeat(2, 1fr); }
  .picks { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }

  .masthead { height: 210px; }
  .masthead-mark { font-size: 104px; }

  .booking-tabs { padding: 0 4px; }
  .booking-tab { height: 54px; padding: 0 14px; font-size: 14px; }

  .services { grid-template-columns: repeat(4, 1fr); row-gap: 6px; }
  .club { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}

@media (max-width: 640px) {
  .header-inner { height: 66px; gap: 12px; }
  .logo img { width: 38px; height: 38px; }
  .logo-text b { font-size: 15px; }
  .logo-text i { font-size: 8px; letter-spacing: 1.2px; }
  .login-btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .lang-btn { display: none; }

  .masthead { height: 180px; }
  .masthead-mark { font-size: 84px; right: 4%; }

  .booking-card { margin-top: -70px; border-radius: 14px; }
  .booking-body { padding: 16px; }
  .trip-types { gap: 6px; }
  .trip { height: 32px; padding: 0 14px; font-size: 13px; }

  .fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  .field { min-height: 66px; padding: 8px 12px; }
  .field-value { font-size: 15px; }
  .field-sub { display: none; }

  .booking-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .promo-field { width: 100%; height: 48px; }
  .btn-search { margin-left: 0; width: 100%; height: 48px; justify-content: center; }

  .services { grid-template-columns: repeat(4, 1fr); padding: 14px 4px; }
  .service .ic-pair { width: 32px; height: 32px; }
  .service span { font-size: 11px; }

  .section { margin-top: 34px; }
  .section-head h2 { font-size: 21px; }
  .deals { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .deal-body { padding: 12px 12px 14px; }
  .deal-body h3 { font-size: 15px; }
  .route { font-size: 12px; }
  .price { font-size: 19px; }

  .club-cards { grid-template-columns: 1fr; }
  .picks { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .contact-fab { right: 14px; bottom: 14px; }
  .fab-item { height: 42px; padding: 0 14px 0 10px; }
  .fab-item span { display: none; }
  .fab-item img, .fab-item svg { width: 26px; height: 26px; }

  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; gap: 14px; }
}
