/* ==========================================================================
   港澳零售集團 / 生活百貨品牌官網模板 · 樣式
   改主題只動 :root 第一層，下面全部引用變數
   ========================================================================== */

:root {
  /* 第一層：主題色（換品牌就改這裡） */
  --brand-ink: #0B1220;         /* 主深色：頂條、頁腳、深色區 */
  --brand-ink-2: #121B2C;       /* 深色卡片 */
  --brand-gold: #C9A961;        /* 主強調：CTA、標籤、數字 */
  --brand-gold-hi: #D8BC7E;     /* 金色 hover */
  --brand-gold-deep: #A98A45;   /* 淺底上的金字（對比度更佳） */
  --surface: #F5F6F8;           /* 區塊交替底色 */
  --border: #E6E9EE;            /* 邊框、分隔線 */

  /* 第二層：語意 */
  --background-primary: #FFFFFF;
  --background-secondary: var(--surface);
  --background-dark: var(--brand-ink);
  --foreground-primary: var(--brand-ink);
  --foreground-muted: #5F5E5A;
  --foreground-on-dark: #FFFFFF;
  --border-default: var(--border);
  --accent: var(--brand-gold);
  --accent-strong: var(--brand-gold-deep);

  /* 第三層：尺寸 */
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --space-section: 104px;       /* 品牌官網，留白比門店站（88／96）更鬆 */
  --shadow-card: 0 18px 40px -28px rgba(11, 18, 32, .45);
}

body {
  font-family: "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--foreground-primary);
  background: var(--background-primary);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: .01em; }
a { text-decoration: none; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.eyebrow-light { color: var(--brand-gold); }

/* ---------- 1. 頂部工具條 ---------- */
.topbar { background: var(--brand-ink); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar a { color: rgba(255,255,255,.78); }
.topbar a:hover { color: var(--brand-gold); }
.topbar-note { letter-spacing: .02em; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.is-active-lang { color: var(--brand-gold) !important; font-weight: 500; }

/* ---------- 2. 主導航 ---------- */
.site-nav { background: #fff; border-bottom: 1px solid var(--border-default); }
.site-nav .nav-link { color: var(--foreground-primary); font-weight: 500; padding: .5rem .9rem; }
.site-nav .nav-link:hover { color: var(--accent-strong); }
.site-nav .nav-cta {
  background: var(--brand-gold); color: var(--brand-ink);
  border-radius: var(--radius-btn); padding: .45rem 1rem;
}
.site-nav .nav-cta:hover { background: var(--brand-gold-hi); color: var(--brand-ink); }
.dropdown-menu { border-color: var(--border-default); border-radius: var(--radius-btn); }
.dropdown-item:active, .dropdown-item:hover { background: var(--surface); color: var(--accent-strong); }

/* ---------- 3. 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-ink);
  padding: 128px 0 112px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,18,32,.93) 0%, rgba(11,18,32,.74) 48%, rgba(11,18,32,.32) 100%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; color: var(--foreground-on-dark); max-width: 640px; }
.hero-copy h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.18; margin-bottom: 16px; }
.hero-copy .lead { opacity: .85; margin-bottom: 28px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 通用區塊 ---------- */
.section { padding: var(--space-section) 0; }
.section-surface { background: var(--background-secondary); }
.section-dark { background: var(--background-dark); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-lead { color: rgba(255,255,255,.78); margin-top: 12px; }
.section-sub { color: var(--foreground-muted); margin-bottom: 28px; }
.link-gold { color: var(--accent-strong); font-weight: 500; }
.link-gold:hover { color: var(--brand-gold-hi); }
.menu-note { margin-top: 22px; font-size: 13px; color: var(--foreground-muted); }
.empty-hint { margin-top: 20px; color: var(--foreground-muted); font-size: 14px; }

/* ---------- 4. 公司簡介 + 店舖數字 ---------- */
.profile-text { color: var(--foreground-muted); font-size: 15px; line-height: 1.85; }
.store-count { gap: 16px; }
.count-card {
  display: block; height: 100%; padding: 28px 26px;
  background: var(--surface); border-radius: var(--radius-card);
  border-left: 3px solid var(--brand-gold);
}
.count-num {
  display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 700;
  color: var(--brand-ink); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.count-label { font-size: 14px; color: var(--foreground-muted); }

/* ---------- 5. 企業新聞 ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 8px 18px;
  font-size: 14px; color: var(--foreground-primary);
}
.filter-btn:hover { border-color: var(--brand-gold); color: var(--accent-strong); }
.filter-btn.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

.news-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden;
}
.news-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); display: block; }
.news-body { padding: 18px 20px 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.news-tag {
  background: var(--surface); color: var(--accent-strong);
  font-size: 12px; padding: 4px 12px; border-radius: var(--radius-pill);
}
.news-date { font-size: 13px; color: var(--foreground-muted); }
.news-card h3 { font-size: 17px; line-height: 1.45; margin: 0 0 8px; }
.news-card p { font-size: 14px; color: var(--foreground-muted); margin-bottom: 12px; }

/* ---------- 6. 四大品牌 ---------- */
.brand-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden;
}
.brand-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); display: block; }
.brand-body { padding: 20px 22px 24px; }
.brand-body h3 { font-size: 19px; margin: 0 0 6px; }
.brand-body h3 span {
  display: block; font-size: 12px; font-weight: 400;
  letter-spacing: .16em; color: var(--accent-strong); margin-top: 4px;
}
.brand-slogan { font-size: 15px; color: var(--brand-ink); margin-bottom: 4px; }
.brand-desc { font-size: 14px; color: var(--foreground-muted); margin-bottom: 16px; }
.brand-actions { display: flex; gap: 8px; }

/* ---------- 8. 歷程時間軸 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border-default);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-gold); border: 2px solid #fff;
}
.timeline-year { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-strong); letter-spacing: .08em; }
.timeline-item h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline-item p { font-size: 14px; color: var(--foreground-muted); margin: 0; }

/* ---------- 9. ESG ---------- */
.esg-card {
  height: 100%; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  overflow: hidden;
}
.esg-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.esg-card h3 { font-size: 19px; margin: 18px 20px 8px; }
.esg-card p { font-size: 14px; color: var(--foreground-muted); margin: 0 20px 22px; }

/* ---------- 10. 企業銷售 ---------- */
.corp-card { text-align: left; }
.corp-card i { font-size: 30px; color: var(--accent-strong); }
.corp-card h3 { font-size: 18px; margin: 14px 0 8px; }
.corp-card p { font-size: 14px; color: var(--foreground-muted); margin: 0; }

/* ---------- 12. 聯絡 ---------- */
.contact-block { margin-bottom: 20px; }
.contact-block h4 { font-size: 13px; color: var(--brand-gold); letter-spacing: .06em; margin-bottom: 6px; }
.contact-block p { margin: 0; font-size: 15px; color: rgba(255,255,255,.8); }
.contact-block a { color: rgba(255,255,255,.85); }
.contact-block a:hover { color: var(--brand-gold); }

.booking-form {
  background: #fff; border-radius: var(--radius-card);
  padding: 30px 28px; box-shadow: var(--shadow-card);
}
.form-title { font-size: 20px; margin: 0 0 18px; }
.booking-form .form-label { font-size: 13px; font-weight: 500; }
.booking-form .form-control,
.booking-form .form-select {
  border-color: var(--border-default); border-radius: var(--radius-btn);
  padding: .6rem .8rem;
}
.booking-form .form-control:focus,
.booking-form .form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.18);
}
.form-hint { font-size: 13px; color: var(--foreground-muted); }
.form-hint.is-ok { color: var(--brand-gold-deep); font-weight: 500; }

/* ---------- 按鈕 ---------- */
.btn-gold {
  background: var(--brand-gold); color: var(--brand-ink);
  border: 1px solid var(--brand-gold); border-radius: var(--radius-btn);
  padding: 10px 24px; font-weight: 500;
}
.btn-gold:hover { background: var(--brand-gold-hi); border-color: var(--brand-gold-hi); color: var(--brand-ink); }
.btn-outline-gold {
  background: transparent; color: var(--accent-strong);
  border: 1px solid var(--brand-gold); border-radius: var(--radius-btn);
  padding: 10px 24px; font-weight: 500;
}
.btn-outline-gold:hover { background: var(--brand-gold); color: var(--brand-ink); }
.btn-sm { padding: 6px 14px; font-size: 14px; }

/* ---------- 通用卡片 ---------- */
.service-card {
  height: 100%; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-card); padding: 26px 24px;
}

/* ---------- 13. 頁腳 ---------- */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.72); }
.site-footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer a:hover { color: var(--brand-gold); }
.footer-logo { filter: brightness(0) invert(1); opacity: .95; }
.footer-note { margin-top: 16px; font-size: 14px; }
.demo-note { margin-top: 8px; font-size: 12px; opacity: .68; max-width: 520px; }
.social a { font-size: 20px; margin-right: 14px; color: rgba(255,255,255,.75); }
.social a:hover { color: var(--brand-gold); }
.footer-hr { border-color: rgba(255,255,255,.14); margin: 28px 0 18px; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- 響應式 ---------- */
@media (max-width: 991.98px) {
  :root { --space-section: 64px; }
  .hero { padding: 88px 0 72px; }
  .hero-media::after { background: rgba(11,18,32,.78); }
  .topbar-note { display: none; }
}
