/* ============================================================
   焦點盤頁面樣板 — 共用品牌 CSS（mockup 用）
   抄自 個人網站備份/assets/css/brand.css 嘅核心變數 + 版面手法
   跟 IDENTITY.md 對外品牌規格：深海軍藍 + 品牌金 + 全黑體（A套）
   ⚠️ 呢份係 mockup 專用抽出版，唔係正式網站 CSS，
      真正落地時要同 site_generator 個套 brand.css 合併/對齊
   ============================================================ */

:root {
  --navy:        #0F1829;  /* 主底色 */
  --panel:       #16213A;  /* 面板/次底 */
  --panel-2:     #1B2A47;  /* 卡片 hover / 更淺面板 */
  --gold:        #C9A45C;  /* 品牌金（主強調）*/
  --gold-light:  #E3C88E;  /* 淺金（輔助）*/
  --ink:         #F5F5F0;  /* 文字白 */
  --ink-dim:     #B7C0CF;  /* 次要文字 */
  --ink-faint:   #7C8798;  /* 註腳/弱化 */
  --line:        rgba(201,164,92,.22);
  --line-soft:   rgba(255,255,255,.08);
  --radius:      16px;
  --maxw:        1080px;
  --danger:      #E8807F;  /* 警示/空態用，克制使用 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "PingFang HK", "PingFang TC", "Noto Sans TC",
               "Microsoft JhengHei", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(201,164,92,.08), transparent 60%),
    radial-gradient(50rem 40rem at -10% 20%, rgba(201,164,92,.05), transparent 60%);
}

a { color: inherit; }

/* ---------- topbar（抄現有網站，簡化版） ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15,24,41,.82);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}
.brand-name .brand-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.brand-name .lic { color: var(--gold); font-weight: 600; font-size: 12px; margin-left: 4px; }
.back-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.back-link:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- sitenav（簡化，淨係示範放盤入口在架構中嘅位置） ---------- */
.sitenav {
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
}
.sitenav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 20px;
  white-space: nowrap;
}
.sitenav a {
  display: inline-block;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.sitenav a.cur, .sitenav a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 64px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  padding: 18px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--ink-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--line-soft); }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line-soft); }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-light);
  background: rgba(201,164,92,.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.hero .lede { color: var(--ink-dim); font-size: 15.5px; max-width: 640px; margin: 0; }

/* ---------- 地區分組 + 橫向滑動卡片（總覽頁核心） ---------- */
.region-block { margin: 36px 0; }
.region-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.region-head h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.region-head h2 .count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
}
.region-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
}
.region-scroll::-webkit-scrollbar { height: 6px; }
.region-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.listing-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.listing-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.listing-card .photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--panel-2), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 12.5px;
}
.listing-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.listing-card .estate { font-size: 15.5px; font-weight: 800; }
.listing-card .meta { font-size: 12.5px; color: var(--ink-dim); }
.listing-card .price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.listing-card .price-row .tag-sale { color: var(--gold-light); }
.listing-card .price-row .tag-rent { color: #8FD3B8; }
.listing-card .price-row .amt { color: var(--ink); font-weight: 800; }
.listing-card .company-id {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line-soft);
  padding-top: 6px;
}

/* ---------- 篩選 pill（全部/租/買賣，2026-07-28 第二輪計畫決策#14） ---------- */
.region-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--navy);
  border: 1px solid var(--line);
  color: var(--gold-light);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-pill:hover { border-color: var(--gold); }
.filter-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1406;
}

/* ---------- Features tag pill（卡片 + detail 頁共用，2026-07-28 第二輪計畫決策#4/5） ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(201,164,92,.12);
  border: 1px solid var(--line);
  color: var(--gold-light);
  white-space: nowrap;
}
.tag-pill-more {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-soft);
  color: var(--ink-faint);
}

/* 空態導流卡（某區冇盤源） */
.empty-region {
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  color: var(--ink-dim);
  background: rgba(255,255,255,.02);
}
.empty-region p { margin: 0 0 14px; font-size: 14.5px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1A1406;
  box-shadow: 0 10px 26px rgba(201,164,92,.24);
}
.btn-gold:hover { box-shadow: 0 14px 38px rgba(201,164,92,.34); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--ink-dim);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }

/* ---------- 詳情頁 gallery ---------- */
.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  margin: 24px 0 8px;
}
.gallery .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel-2), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  border: 1px solid var(--line-soft);
}
.gallery-caption { font-size: 12px; color: var(--ink-faint); text-align: center; margin-bottom: 20px; }

/* ---------- facts 資料格 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.fact {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.fact .k { color: var(--ink-faint); font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.fact .v { color: var(--ink); font-size: 16px; font-weight: 700; margin: 0; }

/* ---------- 價錢區塊 ---------- */
.price-block {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.price-card {
  flex: 1 1 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.price-card .label { font-size: 12.5px; color: var(--gold-light); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.price-card .amount { font-size: 26px; font-weight: 800; color: var(--ink); }
.price-card .sub { font-size: 13px; color: var(--ink-dim); margin-top: 4px; }

/* ---------- 影片框 ---------- */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 16/9;
  margin: 24px 0;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- WeChat / WhatsApp 區塊 ---------- */
.contact-block {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.qr-slot {
  width: 96px; height: 96px;
  border-radius: 10px;
  border: 1px dashed var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  font-size: 10.5px;
  text-align: center;
  padding: 6px;
  flex-shrink: 0;
}
.qr-slot img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- 相關盤源 ---------- */
.related-head { font-size: 15px; font-weight: 800; margin: 36px 0 12px; }

/* ---------- 名片 ---------- */
.card-block {
  margin: 30px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
}
.card-block img { width: 220px; max-width: 40vw; border-radius: 10px; border: 1px solid var(--line-soft); }
.card-block .cn { font-size: 13.5px; color: var(--ink-dim); line-height: 1.7; }

/* ---------- footer ---------- */
.foot {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.8;
}
.foot .lic { color: var(--ink-dim); font-weight: 700; }
.foot .disclaimer { margin-top: 10px; font-size: 11.5px; color: var(--ink-faint); }

/* ---------- 手機版 ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .listing-card { flex-basis: 78vw; }
  .card-block { flex-direction: column; align-items: flex-start; }
  .card-block img { width: 100%; max-width: none; }
  .price-block { flex-direction: column; }
  .contact-block { flex-direction: column; align-items: flex-start; }
}
