/* ════════════════════════════════════════════════
 * gomag.css — 新品牌設計系統（v1）
 * 與舊 m-* 系統並存，使用 g-* 前綴
 * ════════════════════════════════════════════════ */

:root {
  /* ── 背景 ── */
  --g-white:    #FFFFFF;
  --g-bg:       #FFFFFF;
  --g-bg-alt:   #F7F7F5;
  --g-bg-warm:  #FFF8F4;

  /* ── 文字 4 階 ── */
  --g-ink:        #191919;
  --g-ink-soft:   #4A4A4A;
  --g-ink-muted:  #6B6B6B;
  --g-ink-light:  #B0B0B0;

  /* ── 強調色 ── */
  --g-accent:        #FF5A36;
  --g-accent-hover:  #E0421F;
  --g-accent-light:  #FFE8DF;

  /* ── 信任色 ── */
  --g-green:        #048A50;
  --g-green-light:  #E8F5EE;

  /* ── LINE ── */
  --g-line:        #06C755;
  --g-line-light:  #E8F8EE;
  --g-line-hover:  #04A648;

  /* ── 邊框 ── */
  --g-border: #E8E5E0;

  /* ── 字體 ── */
  --g-font:     'Noto Sans TC', 'PingFang TC', sans-serif;
  --g-font-num: 'Manrope', 'Noto Sans TC', sans-serif;
}

/* ════ Container ════ */
.g-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ════ Hero（城市頁大圖）════ */
.g-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--g-ink);
  font-family: var(--g-font);
}
.g-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transform: scale(1.05);
  animation: g-hero-kenburns 18s ease-in-out infinite alternate;
}
@keyframes g-hero-kenburns {
  from { transform: scale(1.05) translate(0,0); }
  to   { transform: scale(1.12) translate(-1.2%, -1%); }
}
.g-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
}
.g-hero-content {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.g-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.2);
}
.g-hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--g-accent);
  border-radius: 50%;
}
.g-hero-title {
  font-weight: 900;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1;
  color: white;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  max-width: 800px;
}
.g-hero-title span { color: var(--g-accent); }
.g-hero-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  font-weight: 400;
}

/* ════ Breadcrumb ════ */
.g-breadcrumb-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-family: var(--g-font);
}
.g-breadcrumb {
  font-size: 13px;
  color: var(--g-ink-muted);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.g-breadcrumb a { color: var(--g-ink-muted); text-decoration: none; }
.g-breadcrumb a:hover { color: var(--g-ink); text-decoration: underline; }
.g-breadcrumb-sep { color: var(--g-ink-light); }
.g-breadcrumb .current { color: var(--g-ink); font-weight: 500; }

/* ════ City intro（兩欄）════ */
.g-city-intro {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
  border-bottom: 1px solid var(--g-border);
  font-family: var(--g-font);
}
.g-city-intro-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-accent);
  margin-bottom: 14px;
}
.g-city-intro-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--g-ink);
}
.g-city-intro-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--g-ink-soft);
  margin-bottom: 14px;
}
.g-city-intro-text strong { color: var(--g-ink); font-weight: 700; }

.g-city-meta-card {
  background: var(--g-bg-alt);
  border-radius: 16px;
  padding: 28px;
}
.g-city-meta-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--g-ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.g-city-meta-row {
  padding: 14px 0;
  border-top: 1px solid var(--g-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.g-city-meta-row:first-of-type { border-top: 0; padding-top: 6px; }
.g-city-meta-label {
  font-size: 14px;
  color: var(--g-ink-soft);
  font-weight: 500;
}
.g-city-meta-value {
  font-family: var(--g-font-num);
  font-size: 20px;
  font-weight: 800;
  color: var(--g-ink);
}
.g-city-meta-value-accent { color: var(--g-accent); }
.g-city-meta-tags {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--g-border);
}
.g-city-meta-tags-label {
  font-size: 12px;
  color: var(--g-ink-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.g-city-meta-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.g-city-meta-tag {
  background: white;
  color: var(--g-ink);
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--g-border);
}

/* ════ Section / Section head ════ */
.g-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 32px;
  font-family: var(--g-font);
}
.g-section-alt { background: var(--g-bg-alt); }
.g-section-alt > .g-section { padding: 56px 32px; max-width: 1320px; margin: 0 auto; }

.g-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.g-section-title {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--g-ink);
  margin: 0;
}
.g-section-title-meta {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--g-ink-muted);
  margin-left: 8px;
}
.g-section-sub {
  color: var(--g-ink-muted);
  margin-top: 6px;
  font-size: 14px;
}
.g-section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--g-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.g-section-link::after {
  content: '→';
  transition: transform 0.2s;
}
.g-section-link:hover { color: var(--g-accent); }
.g-section-link:hover::after { transform: translateX(3px); }

/* ════ Store card grid ════ */
.g-store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.g-store-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.g-store-card .g-store-img {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--g-bg-alt) center/cover no-repeat;
  margin-bottom: 14px;
  position: relative;
}
.g-store-card .g-store-img-fallback {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--g-ink-muted);
  background: linear-gradient(135deg, var(--g-bg-alt) 0%, #ECECE7 100%);
}
.g-store-card .g-store-img-fallback .icon {
  font-size: 48px;
  line-height: 1;
}
.g-store-card .g-store-img-fallback .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--g-ink-soft);
  letter-spacing: 0.02em;
}
.g-store-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: white;
  color: var(--g-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}
.g-store-badge-hot { background: var(--g-accent); color: white; }
.g-store-badge-verified {
  background: var(--g-green);
  color: white;
  display: flex; align-items: center; gap: 4px;
}
.g-store-badge-ph {
  background: rgba(234,179,8,0.95);
  color: #000;
  left: auto; right: 12px;
}
.g-store-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.g-store-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--g-ink);
}
.g-store-rating {
  font-family: var(--g-font-num);
  font-weight: 700;
  font-size: 14px;
  color: var(--g-ink);
  white-space: nowrap;
}
.g-store-rating::before { content: '★ '; color: var(--g-ink); }
.g-store-loc {
  font-size: 13px;
  color: var(--g-ink-muted);
  margin-bottom: 2px;
  line-height: 1.4;
}
.g-store-cat-label {
  font-size: 13px;
  color: var(--g-ink-muted);
}

/* ════ B 端業務 banner ════ */
.g-banner-wrap {
  max-width: 1320px;
  margin: 16px auto;
  padding: 0 32px;
  font-family: var(--g-font);
}
.g-banner {
  background: var(--g-ink);
  color: white;
  border-radius: 16px;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
}
.g-banner-bg {
  position: absolute;
  right: -50px; top: -50px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,90,54,0.4), transparent 70%);
}
.g-banner-text { position: relative; }
.g-banner-eyebrow {
  color: var(--g-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.g-banner-title {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: white;
}
.g-banner-desc {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.g-banner-btn {
  background: var(--g-accent);
  color: white;
  border: 0;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}
.g-banner-btn:hover { background: var(--g-accent-hover); }

/* ════ CTA（黑底大區）════ */
.g-cta {
  background: var(--g-ink);
  color: white;
  padding: 88px 32px;
  text-align: center;
  font-family: var(--g-font);
}
.g-cta-inner { max-width: 720px; margin: 0 auto; }
.g-cta-eyebrow {
  color: var(--g-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.g-cta-title {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: white;
}
.g-cta-desc {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.g-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.g-cta-btn {
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
}
.g-cta-btn-primary {
  background: var(--g-accent);
  color: white;
}
.g-cta-btn-primary:hover { background: var(--g-accent-hover); }
.g-cta-btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.g-cta-btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ════ Placeholder 卡片 ════ */
.g-store-card-ph .g-store-img { opacity: 0.85; }
.g-store-card-ph .g-store-name::after {
  content: ' ⏳';
  font-size: 0.85em;
  opacity: 0.6;
}

/* ════ Explore by category（依分類探索）════ */
.g-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.g-explore-card {
  display: block;
  position: relative;
  aspect-ratio: 1.4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--g-ink);
  text-decoration: none;
  color: inherit;
}
.g-explore-card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.78;
  transition: transform 0.5s ease, opacity 0.3s;
}
.g-explore-card:hover .g-explore-card-img { transform: scale(1.06); opacity: 0.9; }
.g-explore-card-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 64px;
  background: linear-gradient(135deg, #2a2a2a, #0f0f0f);
  color: rgba(255,255,255,0.7);
}
.g-explore-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}
.g-explore-card-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  color: white;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.g-explore-card-count {
  font-family: var(--g-font-num);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
/* 12 分類首頁用：desktop 4-col modifier；tablet/mobile 自動降為 2/1 col */
.g-explore-grid--4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .g-explore-grid--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .g-explore-grid--4col { grid-template-columns: 1fr; }
}
.g-explore-card-arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  background: white;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--g-ink);
  font-size: 17px; font-weight: 800;
  transform: scale(0);
  transition: transform 0.3s ease;
}
.g-explore-card:hover .g-explore-card-arrow { transform: scale(1); }

/* 分類錨點落點留 sticky header + cat-nav 高度 */
.g-cat-anchor { scroll-margin-top: 130px; }

/* ════ Sticky 分類 pill nav ════ */
.g-cat-nav-wrap {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: white;
  border-bottom: 1px solid var(--g-border);
  font-family: var(--g-font);
}
.g-cat-nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.g-cat-nav::-webkit-scrollbar { display: none; }
.g-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--g-border);
  background: white;
  color: var(--g-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.g-cat-pill:hover { border-color: var(--g-ink); background: var(--g-bg-alt); }
.g-cat-pill.is-active {
  background: var(--g-ink);
  border-color: var(--g-ink);
  color: white;
}
.g-cat-pill-count {
  font-family: var(--g-font-num);
  font-weight: 700;
  color: var(--g-ink-muted);
  font-size: 13px;
}
.g-cat-pill.is-active .g-cat-pill-count { color: rgba(255,255,255,0.7); }

/* ════ Hero 搜尋列 ════ */
.g-hero-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 100px;
  padding: 6px;
  margin-top: 28px;
  max-width: 540px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}
.g-hero-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  color: var(--g-ink);
  min-width: 0;
}
.g-hero-search-input::placeholder { color: var(--g-ink-muted); }
.g-hero-search-btn {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--g-accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.g-hero-search-btn:hover { background: var(--g-accent-hover, #e64a26); }

/* 搜尋結果 banner */
.g-search-banner {
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 16px 24px;
  background: var(--g-accent-light);
  border-left: 4px solid var(--g-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--g-font);
  font-size: 14px;
  color: var(--g-ink);
}
.g-search-banner a {
  color: var(--g-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ════ RWD ════ */
@media (max-width: 1024px) {
  .g-store-grid { grid-template-columns: repeat(2, 1fr); }
  .g-city-intro { grid-template-columns: 1fr; gap: 32px; padding: 24px 24px 48px; }
  .g-hero { height: 460px; }
  .g-section { padding: 40px 24px; }
  .g-banner-wrap { padding: 0 16px; }
  .g-banner { padding: 28px 32px; }
  .g-explore-grid { grid-template-columns: repeat(2, 1fr); }
  .g-cat-nav { padding: 12px 20px; }
}
@media (max-width: 640px) {
  .g-store-grid { grid-template-columns: 1fr; gap: 16px; }
  .g-hero { height: 380px; }
  .g-hero-content { padding: 0 20px; }
  .g-explore-grid { grid-template-columns: 1fr; }
  .g-explore-card-name { font-size: 20px; }
  .g-hero-search { max-width: 100%; }
  .g-hero-search-input { padding: 10px 16px; font-size: 14px; }
  .g-search-banner { margin: 16px 16px 0; padding: 14px 16px; flex-direction: column; align-items: flex-start; }
  .g-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .g-banner-btn { width: 100%; text-align: center; }
  .g-cta { padding: 64px 20px; }
  .g-section { padding: 32px 16px; }
  .g-breadcrumb-wrap { padding: 16px 16px 0; }
}

/* ════════════════════════════════════════════════
 * Store Hero（單店家頁的 Hero — 對齊 mockup）
 * ════════════════════════════════════════════════ */
.g-store-hero {
  background: var(--g-bg-alt);
  border-bottom: 1px solid var(--g-border);
  padding: 56px 0;
  font-family: var(--g-font);
}
.g-store-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.g-store-hero-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--g-ink);
  border: 1px solid var(--g-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.g-store-hero-cat-pill:hover { border-color: var(--g-ink); }
.g-store-hero-title {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--g-ink);
}
.g-store-hero-tagline {
  font-size: 17px;
  color: var(--g-ink-soft);
  margin: 0 0 20px;
  line-height: 1.55;
}
.g-store-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--g-font-num);
}
.g-store-hero-rating-stars {
  color: var(--g-accent);
  font-size: 16px;
  letter-spacing: 1px;
}
.g-store-hero-rating-text {
  font-size: 14px;
  color: var(--g-ink-soft);
  font-weight: 500;
}
.g-store-hero-ph-banner {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(234,179,8,.15);
  border: 1px solid rgba(234,179,8,.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 16px;
}
.g-store-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.g-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.g-store-btn-primary {
  background: var(--g-accent);
  color: white;
}
.g-store-btn-primary:hover { background: var(--g-accent-hover); }
.g-store-btn-secondary {
  background: var(--g-ink);
  color: white;
}
.g-store-btn-secondary:hover { background: #000; }
.g-store-btn-outline {
  background: white;
  color: var(--g-ink);
  border-color: var(--g-border);
}
.g-store-btn-outline:hover { border-color: var(--g-ink); }

.g-store-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0;
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
}
.g-store-hero-stat {
  text-align: center;
  border-right: 1px solid var(--g-border);
  padding: 4px 8px;
}
.g-store-hero-stat:last-child { border-right: 0; }
.g-store-hero-stat-value {
  font-family: var(--g-font-num);
  font-size: 24px;
  font-weight: 800;
  color: var(--g-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.g-store-hero-stat-label {
  font-size: 12px;
  color: var(--g-ink-muted);
  margin-top: 4px;
  font-weight: 500;
}

.g-store-hero-info {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--g-ink-soft);
  line-height: 1.6;
}
.g-store-hero-info a { color: var(--g-ink); border-bottom: 1px dashed var(--g-border); }
.g-store-hero-info a:hover { color: var(--g-accent); border-color: var(--g-accent); }

.g-store-hero-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--g-bg-alt) center/cover no-repeat;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.g-store-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.g-store-hero-image-fallback {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: 96px;
  background: linear-gradient(135deg, var(--g-bg-alt), #ECECE7);
  color: var(--g-ink-light);
}

@media (max-width: 1024px) {
  .g-store-hero { padding: 40px 0; }
  .g-store-hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
  .g-store-hero-image { aspect-ratio: 16/10; max-width: 600px; }
}
@media (max-width: 640px) {
  .g-store-hero-title { font-size: 28px; }
  .g-store-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .g-store-hero-stat:nth-child(2) { border-right: 0; }
  .g-store-btn { flex: 1; justify-content: center; }
}

/* ════════════════════════════════════════════════
 * Store Body Layout — main content + sticky sidebar
 * （把 hero 之後到 reviews 之前的內容包在 2 欄 grid）
 * ════════════════════════════════════════════════ */
.g-store-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
  font-family: var(--g-font);
}
.g-store-main { min-width: 0; }   /* 防止 grid item overflow */
.g-store-aside { position: relative; }

.g-store-aside-card {
  position: sticky;
  top: 90px;
  background: white;
  border: 1px solid var(--g-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.g-store-aside-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--g-ink);
}
.g-store-aside-sub {
  font-size: 13px;
  color: var(--g-ink-muted);
  margin: 0 0 22px;
}

.g-info-row {
  padding: 14px 0;
  border-top: 1px solid var(--g-border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.g-info-row:first-of-type { border-top: 0; padding-top: 4px; }
.g-info-icon {
  width: 36px; height: 36px;
  background: var(--g-bg-alt);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.g-info-text { min-width: 0; flex: 1; }
.g-info-label {
  font-size: 11px;
  color: var(--g-ink-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.g-info-value {
  font-size: 14px;
  color: var(--g-ink);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}
.g-info-value a { color: var(--g-ink); border-bottom: 1px dashed var(--g-border); }
.g-info-value a:hover { color: var(--g-accent); border-color: var(--g-accent); }

.g-aside-ctas {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-aside-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}
.g-aside-btn-primary { background: var(--g-accent); color: white; }
.g-aside-btn-primary:hover { background: var(--g-accent-hover); }
.g-aside-btn-line { background: var(--g-line); color: white; }
.g-aside-btn-line:hover { background: var(--g-line-hover); }
.g-aside-btn-outline {
  background: white;
  color: var(--g-ink);
  border-color: var(--g-ink);
}
.g-aside-btn-outline:hover { background: var(--g-ink); color: white; }

.g-aside-foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--g-border);
  text-align: center;
  font-size: 12px;
  color: var(--g-ink-muted);
}
.g-aside-foot strong { color: var(--g-ink); font-weight: 700; }

/* ════════════════════════════════════════════════
 * Reviews Summary（評分 + 五星分布條）
 * ════════════════════════════════════════════════ */
.g-reviews-block {
  border-top: 1px solid var(--g-border);
  padding: 56px 32px;
  font-family: var(--g-font);
}
.g-reviews-block-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.g-reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--g-border);
}
.g-summary-num {
  font-family: var(--g-font-num);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--g-ink);
}
.g-summary-stars {
  color: var(--g-accent);
  font-size: 16px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.g-summary-count {
  font-size: 13px;
  color: var(--g-ink-muted);
}
.g-rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-rating-bar {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.g-rating-bar-label { color: var(--g-ink-soft); }
.g-rating-bar-track {
  height: 8px;
  background: var(--g-bg-alt);
  border-radius: 100px;
  overflow: hidden;
}
.g-rating-bar-fill {
  height: 100%;
  background: var(--g-ink);
  border-radius: 100px;
  transition: width 0.5s ease;
}
.g-rating-bar-num {
  font-family: var(--g-font-num);
  font-weight: 600;
  color: var(--g-ink-muted);
  text-align: right;
  font-size: 12px;
}

.g-reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.g-review-item {
  padding: 22px 24px;
  border: 1px solid var(--g-border);
  border-radius: 16px;
  background: var(--g-white);
}
.g-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.g-review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g-accent-light);
  color: var(--g-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.g-review-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--g-ink);
}
.g-review-stars-small {
  color: var(--g-accent);
  font-size: 12px;
  letter-spacing: 1px;
}
.g-review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--g-ink-soft);
  margin: 0;
}

@media (max-width: 1024px) {
  .g-store-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 24px 48px;
  }
  .g-store-aside-card { position: relative; top: 0; }
  .g-reviews-summary { grid-template-columns: 1fr; gap: 24px; }
  .g-reviews-list { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
 * Photo Gallery（5 格 Airbnb 樣式 — Hero 之後）
 * ════════════════════════════════════════════════ */
.g-photo-gallery {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-family: var(--g-font);
}
.g-photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.g-gallery-tile {
  overflow: hidden;
  background: var(--g-bg-alt);
  cursor: pointer;
  position: relative;
}
.g-gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.3s, transform 0.5s ease;
  display: block;
}
.g-gallery-tile:hover img { filter: brightness(0.92); }
.g-gallery-tile-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}
.g-gallery-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 32px;
  color: var(--g-ink-light);
  background: linear-gradient(135deg, var(--g-bg-alt), #ECECE7);
}
.g-gallery-show-all {
  position: absolute;
  bottom: 16px; right: 16px;
  background: white;
  border: 1.5px solid var(--g-ink);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--g-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.g-gallery-show-all:hover { background: var(--g-ink); color: white; }

@media (max-width: 1024px) {
  .g-photo-gallery { padding: 16px 24px 0; }
  .g-photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 180px 180px;
  }
  .g-gallery-tile-1 { grid-column: 1; grid-row: 1; }
  .g-gallery-tile:nth-child(n+5) { display: none; }
}
@media (max-width: 640px) {
  .g-photo-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
  }
  .g-gallery-tile { display: none; }
  .g-gallery-tile-1 { display: block; grid-column: 1; grid-row: 1; }
}

/* ════════════════════════════════════════════════
 * Owner Block（經營者圓形頭像 + 介紹）
 * ════════════════════════════════════════════════ */
.g-owner-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--g-border);
  margin-bottom: 32px;
  font-family: var(--g-font);
}
.g-owner-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-hover));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.g-owner-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.g-owner-info {
  min-width: 0;
}
.g-owner-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--g-ink);
  line-height: 1.3;
}
.g-owner-intro {
  font-size: 13px;
  color: var(--g-ink-muted);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
 * Similar Stores（類似店家 — 同分類隨機 4 卡）
 * ════════════════════════════════════════════════ */
.g-similar-block {
  background: var(--g-bg-alt);
  border-top: 1px solid var(--g-border);
  padding: 56px 32px;
  font-family: var(--g-font);
}
.g-similar-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.g-similar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.g-similar-title {
  font-weight: 900;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--g-ink);
  margin: 0;
}
.g-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.g-similar-card {
  background: white;
  border: 1px solid var(--g-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.g-similar-card:hover {
  border-color: var(--g-ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.g-similar-img {
  aspect-ratio: 4/3;
  background: var(--g-bg-alt) center/cover no-repeat;
  position: relative;
}
.g-similar-img-fallback {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: var(--g-ink-light);
  background: linear-gradient(135deg, var(--g-bg-alt), #ECECE7);
}
.g-similar-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g-similar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--g-ink);
  line-height: 1.4;
  margin: 0;
}
.g-similar-loc {
  font-size: 12px;
  color: var(--g-ink-muted);
}

@media (max-width: 1024px) {
  .g-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .g-similar-grid { grid-template-columns: 1fr; }
  .g-similar-block { padding: 40px 16px; }
}

/* ════════════════════════════════════════════════
 * Modular Blocks（5 種 type 共用 + 個別樣式）
 * 對應 blocks/*.php
 * ════════════════════════════════════════════════ */
.g-block { font-family: var(--g-font); }

/* ── service block ── */
.g-block-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.g-block-service-item {
  background: var(--g-white);
  border: 1px solid var(--g-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}
.g-block-service-item:hover {
  border-color: var(--g-ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.g-block-service-img {
  aspect-ratio: 16/10;
  background: var(--g-bg-alt) center/cover no-repeat;
}
.g-block-service-icon {
  height: 80px;
  display: grid; place-items: center;
  font-size: 40px;
  background: var(--g-bg-warm);
}
.g-block-service-body { padding: 20px 22px; }
.g-block-service-name {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--g-ink);
  line-height: 1.3;
}
.g-block-service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--g-ink-muted);
  margin: 0 0 14px;
}
.g-block-service-price {
  font-family: var(--g-font-num);
  font-weight: 700;
  font-size: 16px;
  color: var(--g-accent);
}

/* ── menu block ── */
.g-block-menu-group { margin-bottom: 36px; }
.g-block-menu-group:last-child { margin-bottom: 0; }
.g-block-menu-group-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--g-ink);
  color: var(--g-ink);
  display: inline-block;
}
.g-block-menu-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
}
.g-block-menu-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--g-border);
}
.g-block-menu-img {
  width: 88px; height: 88px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--g-bg-alt) center/cover no-repeat;
}
.g-block-menu-body { flex: 1; min-width: 0; }
.g-block-menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.g-block-menu-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--g-ink);
}
.g-block-menu-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--g-accent);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
}
.g-block-menu-price {
  font-family: var(--g-font-num);
  font-weight: 700;
  font-size: 15px;
  color: var(--g-ink);
  white-space: nowrap;
}
.g-block-menu-unit {
  font-size: 12px;
  color: var(--g-ink-muted);
  font-weight: 500;
  margin-left: 2px;
}
.g-block-menu-desc {
  font-size: 13px;
  color: var(--g-ink-muted);
  line-height: 1.5;
}

/* ── portfolio block ── */
.g-block-portfolio-grid {
  display: grid;
  gap: 16px;
}
.g-block-portfolio-grid.g-block-portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.g-block-portfolio-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--g-ink);
  cursor: pointer;
}
.g-block-portfolio-item.is-large {
  grid-column: span 2;
  aspect-ratio: 16/10;
}
.g-block-portfolio-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  opacity: 0.85;
}
.g-block-portfolio-item:hover .g-block-portfolio-img {
  transform: scale(1.05);
  opacity: 0.95;
}
.g-block-portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}
.g-block-portfolio-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.g-block-portfolio-tag {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
}
.g-block-portfolio-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.g-block-portfolio-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ── pricing block ── */
.g-block-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.g-block-pricing-card {
  position: relative;
  background: var(--g-white);
  border: 2px solid var(--g-border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.g-block-pricing-card.is-highlight {
  border-color: var(--g-accent);
  background: var(--g-bg-warm);
  transform: scale(1.02);
}
.g-block-pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--g-accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.g-block-pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--g-ink);
  margin: 0 0 16px;
}
.g-block-pricing-price {
  font-family: var(--g-font-num);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.g-block-pricing-symbol { font-size: 18px; font-weight: 600; color: var(--g-ink-muted); }
.g-block-pricing-amount {
  font-size: 40px; font-weight: 800;
  color: var(--g-ink); line-height: 1;
  letter-spacing: -0.02em;
}
.g-block-pricing-unit {
  font-size: 13px;
  color: var(--g-ink-muted);
  font-weight: 500;
  margin-left: 4px;
}
.g-block-pricing-features {
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
}
.g-block-pricing-features li {
  font-size: 14px;
  color: var(--g-ink-soft);
  padding: 8px 0 8px 24px;
  position: relative;
  border-top: 1px solid var(--g-border);
}
.g-block-pricing-features li:first-child { border-top: 0; }
.g-block-pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 8px;
  color: var(--g-green);
  font-weight: 700;
}
.g-block-pricing-desc {
  margin-top: 16px;
  font-size: 13px;
  color: var(--g-ink-muted);
}

/* ── faq block ── */
.g-block-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 880px;
}
.g-block-faq-item {
  border-top: 1px solid var(--g-border);
  padding: 4px 0;
}
.g-block-faq-item:last-child { border-bottom: 1px solid var(--g-border); }
.g-block-faq-q {
  cursor: pointer;
  list-style: none;
  padding: 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--g-ink);
  transition: color 0.2s;
}
.g-block-faq-q::-webkit-details-marker { display: none; }
.g-block-faq-q:hover { color: var(--g-accent); }
.g-block-faq-toggle {
  font-size: 24px;
  font-weight: 400;
  color: var(--g-ink-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.g-block-faq-item[open] .g-block-faq-toggle { transform: rotate(45deg); }
.g-block-faq-a {
  padding: 0 8px 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--g-ink-soft);
}

/* ── Block RWD ── */
@media (max-width: 1024px) {
  .g-block-portfolio-item.is-large { grid-column: span 1; aspect-ratio: 4/5; }
  .g-block-pricing-card.is-highlight { transform: none; }
}
@media (max-width: 640px) {
  .g-block-service-grid { grid-template-columns: 1fr; }
  .g-block-menu-list { grid-template-columns: 1fr; }
  .g-block-pricing-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
 * Phase F — 主站 Header / Footer / Hero Carousel / Index
 * ════════════════════════════════════════════════ */

/* ── 主站 Header（全站共用，sticky）──────────────── */
.g-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid var(--g-border);
  font-family: var(--g-font);
}
.g-site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.g-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: var(--g-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.g-site-logo-mark {
  width: 34px; height: 34px;
  background: var(--g-accent);
  color: white;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 18px;
}
.g-site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.g-site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g-ink);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.g-site-nav a:hover { background: var(--g-bg-alt); }
.g-site-nav a.is-active { color: var(--g-accent); }
.g-site-nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--g-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g-ink);
  background: white;
  text-decoration: none;
}
.g-site-nav-search:hover {
  border-color: var(--g-ink);
  background: var(--g-bg-alt);
}

/* ── 主站 Footer ──────────────────────────────────── */
.g-site-footer {
  background: var(--g-ink);
  color: rgba(255,255,255,0.72);
  font-family: var(--g-font);
  margin-top: 80px;
}
.g-site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 32px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.g-site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.g-site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: white;
}
.g-site-footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
}
.g-site-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.g-site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-site-footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.g-site-footer-col a:hover { color: white; }
.g-site-footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.g-site-footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.g-site-footer-bottom a:hover { color: white; }

/* ── Hero Carousel（首頁主視覺輪播）────────────── */
.g-hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--g-ink);
  font-family: var(--g-font);
}
.g-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.g-hero-slide.is-active { opacity: 1; z-index: 2; }
.g-hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}
.g-hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.g-hero-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 24px;
}
.g-hero-slide-tag-dot {
  width: 6px; height: 6px;
  background: var(--g-accent);
  border-radius: 50%;
}
.g-hero-slide-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  color: white;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  max-width: 800px;
}
.g-hero-slide-title span { color: var(--g-accent); }
.g-hero-slide-desc {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.g-hero-slide-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 100px;
  padding: 6px;
  max-width: 540px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}
.g-hero-slide-search input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  color: var(--g-ink);
  min-width: 0;
}
.g-hero-slide-search input::placeholder { color: var(--g-ink-muted); }
.g-hero-slide-search button {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--g-accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
}
.g-hero-slide-search button:hover { background: var(--g-accent-hover, #e64a26); }

.g-hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.g-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.g-hero-dot.is-active { background: white; width: 24px; border-radius: 4px; }
.g-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.g-hero-nav:hover { background: rgba(255,255,255,0.3); }
.g-hero-prev { left: 24px; }
.g-hero-next { right: 24px; }

/* RWD */
@media (max-width: 1024px) {
  .g-site-header-inner { padding: 12px 20px; gap: 16px; }
  .g-site-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 24px 20px; }
  .g-hero-carousel { height: 500px; }
}
@media (max-width: 640px) {
  .g-site-nav a:not(.g-site-nav-search) { display: none; }
  .g-site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .g-site-footer-bottom { flex-direction: column; gap: 6px; padding: 16px 20px; text-align: center; }
  .g-hero-carousel { height: 460px; }
  .g-hero-slide-search { max-width: 100%; }
  .g-hero-nav { display: none; }
}
