/* ==========================================================================
   全站 footer（唯一來源）
   --------------------------------------------------------------------------
   版面來源：28hse.com footer（Alan 2026-11-23「add this part in propcity」）。
   ‧ 唔要 Huawei AppGallery 徽章（Alan 指定）
   ‧ 唔要 Facebook／Instagram／YouTube 圖示（Alan 2026-11-23：「ignore」）
   ‧ 社交只剩 WhatsApp（真連結 wa.me/85259993122）
   ‧ App Store / Google Play 徽章用官方圖檔（assets/badges/）；
     app 未上架 → 暫時係 <span>，收到商店網址才改成 <a>

   ⚠️ markup 由 `tools/build-footer.py` 插入每一頁（FOOTER:START / FOOTER:END），
      唔好逐頁手改；改呢個檔或 script 之後要重跑 script + `npm run build`。
   ⚠️ 呢個檔要喺每一頁載入（包括 index.html）。用 `.site-footer` 前綴，
      避免同 app.css / member.css 嘅同名 class 撞。
   ========================================================================== */

.site-footer { background: #0B1C31; color: #A9B7C8; }
.site-footer .fwrap {
  max-width: var(--landing-max, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------- 品牌＋連結欄 */
.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0 30px;
}
.site-footer .brand { display: flex; align-items: center; gap: 10px; }
.site-footer .brand img { height: 34px; width: auto; display: block; }
.site-footer .brand .name { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: .5px; }
.site-footer .brand .name .cn { color: #FF9A3D; }
.site-footer .brand .name .cn2 { color: #7FB2E8; }
.site-footer .brand .en {
  display: block; font-size: 9.5px; letter-spacing: 1.7px;
  color: #6F7F93; font-weight: 600; margin-top: 4px;
}
.site-footer .footer-brand p {
  margin: 14px 0 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.85;
  color: #8595A9;
}
.site-footer .footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #EAF0F7;
}
.site-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col li { margin-bottom: 10px; font-size: 13px; color: #8595A9; }
.site-footer .footer-col a { color: #8595A9; transition: color .15s; }
.site-footer .footer-col a:hover { color: #FFB968; }

/* ------------------------------------------- 底部資訊列（社交＋App＋快捷鍵） */
.site-footer .footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 26px 0 22px;
}
.site-footer .footer-social { display: flex; align-items: center; gap: 12px; }
.site-footer .footer-social .fs {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: transform .15s, filter .15s;
}
.site-footer .footer-social a.fs:hover,
.site-footer .footer-social a.fs:focus-visible { transform: translateY(-2px); filter: brightness(1.12); }
.site-footer .footer-social .fs svg { width: 18px; height: 18px; display: block; }
.site-footer .fs-wa { background: #25D366; }

.site-footer .footer-stores { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.site-footer .store-badge { display: inline-flex; align-items: center; }
.site-footer .store-badge img { display: block; height: 40px; width: auto; }

.site-footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; }
.site-footer .footer-links a {
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  line-height: 1.2;
  color: #8595A9;
  transition: color .15s;
}
.site-footer .footer-links a:first-child { padding-left: 0; border-left: 0; }
.site-footer .footer-links a:last-child { padding-right: 0; }
.site-footer .footer-links a:hover { color: #FFB968; }

/* ------------------------------------------------------------------ 版權行 */
.site-footer .footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0 28px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #8595A9;
}

/* ---------------------------------------------------------------- 響應式 */
@media (max-width: 1024px) {
  .site-footer .footer-cols { grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 960px) {
  .site-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 40px; }
  /* 有 app 底欄（fixed 64px）嘅頁面要留位，否則版權行會被遮住 */
  .site-footer[data-tabbar] { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .site-footer .fwrap { padding: 0 16px; }
  .site-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 32px 0 20px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-bar { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px 0 18px; }
  .site-footer .footer-links { display: grid; grid-template-columns: repeat(4, max-content); column-gap: 18px; row-gap: 10px; }
  .site-footer .footer-links a { padding: 0; border-left: 0; }
  .site-footer .footer-note { flex-direction: column; }
}

/* 寬屏同首頁一致（--landing-max 由 landing.css 定義；其他頁用預設 1280） */
@media (min-width: 1400px) {
  .site-footer .fwrap { max-width: var(--landing-max, none); padding: 0 40px; }
}
@media (min-width: 1800px) {
  .site-footer .fwrap { padding: 0 56px; }
}
