/* ============================================================
   Eulam Redesign — Tokens + Base + Responsive shell
   Single CSS for mobile + desktop; media queries do the switching.
   Source: /Users/macbookpro/infohuaxin-laravel/.eulam-design/eulam/project/styles.css
   ============================================================ */

:root {
  /* Surface — warm cream (Version A · 保守現代化) */
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-sunken: #F2EEE3;
  --surface-elev: #FFFFFF;

  /* Ink — neutral dark text scale */
  --ink-1: #1A1A18;
  --ink-2: #3A3833;
  --ink-3: #807C72;
  --ink-4: #A6A296;
  --ink-5: #D9D6CC;

  /* Lines — warm beige */
  --line: #E8E5DC;
  --line-strong: #D8D4C7;

  /* Brand — neutral dark (no chromatic brand color in Version A) */
  --brand-deep:  #0F0F0E;
  --brand:       #1A1A18;
  --brand-light: #807C72;
  --brand-glow:  #C9C5BC;
  --brand-soft:  #F2EEE3;
  --brand-ink:   #1A1A18;

  /* Accent — warm orange (Version A signature, for price + CTA) */
  --accent:      #B8531C;
  --accent-soft: #FBF1DC;

  /* Brand blue — logo blue system */
  --blue:      #1B5FC7;
  --blue-deep: #1247A8;
  --blue-soft: #EAF1FD;
  --blue-mid:  #D3E5FA;

  /* Brand blue — unified hover / icon system */
  --brand-blue:        #005FB8;
  --brand-blue-dark:   #004A91;
  --brand-blue-light:  rgba(0, 96, 180, 0.08);
  --brand-blue-hover:  rgba(0, 96, 180, 0.14);
  --brand-blue-border: rgba(0, 96, 180, 0.18);
  --brand-blue-shadow: rgba(0, 96, 180, 0.08);

  /* Membership chips — Version A spec
     钻石 = dark pill (premium top)  · 黄金 = soft gold · 置顶 = neutral · 免费 = quietest */
  --free-bg: #F2EEE3; --free-fg: #807C72;
  --top-bg:  #E8E5DC; --top-fg:  #3A3833;
  --gold-bg: #F1E1B6; --gold-fg: #7B5E1E;
  --dia-bg:  #1A1A18; --dia-fg:  #FFFFFF;

  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  --f-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-cn: "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft Yahei", sans-serif;
  --f-num: "Manrope", -apple-system, sans-serif;

  /* Shadow — warm neutral */
  --sh-1: 0 1px 2px rgba(26, 26, 24, 0.05);
  --sh-2: 0 1px 0 rgba(26, 26, 24, 0.04), 0 8px 24px -12px rgba(26, 26, 24, 0.12);
  --sh-glow: 0 0 0 1px rgba(26, 26, 24, 0.06), 0 6px 18px -6px rgba(184, 83, 28, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-cn), var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ===================== Chips ===================== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px 0 7px;
  border-radius: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  font-family: var(--f-cn), var(--f-sans);
  white-space: nowrap; flex-shrink: 0; line-height: 1;
}
.chip::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
  flex-shrink: 0; opacity: 0.85;
}
.chip-free { background: var(--free-bg); color: var(--free-fg); }
.chip-top  { background: var(--top-bg);  color: var(--top-fg);  }
.chip-gold { background: var(--gold-bg); color: var(--gold-fg); }
.chip-dia  { background: var(--dia-bg);  color: var(--dia-fg);  }
.chip-outline {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink-3); font-weight: 500;
}
.chip-outline::before { display: none; }
.tag-soft {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  background: var(--surface-sunken); color: var(--ink-3);
  border-radius: var(--r-sm); font-size: 11px; font-weight: 500;
}

/* ===================== Misc ===================== */
.divider { height: 1px; background: var(--line); }
.muted { color: var(--ink-3); }
.num { font-family: var(--f-num); font-feature-settings: "tnum"; }
.price {
  color: var(--accent); font-family: var(--f-num);
  font-weight: 700; font-feature-settings: "tnum"; letter-spacing: -0.01em;
}
.img-ph {
  background: linear-gradient(135deg, #EDEBE2 0%, #DEDBCE 100%);
  position: relative; overflow: hidden; border-radius: 8px;
}
.img-ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 0 12%, transparent 26%),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,0.32) 0 14%, transparent 30%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.06) 100%);
}
.img-ph .img-tag {
  position: absolute; left: 8px; top: 8px;
  font-size: 10px; color: var(--ink-3);
  font-family: var(--f-num); letter-spacing: 0.06em;
  background: rgba(255,255,255,0.7);
  padding: 2px 6px; border-radius: 3px;
  backdrop-filter: blur(4px);
}
.ico {
  stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none; flex-shrink: 0;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 38px; padding: 0 16px;
  border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-1);
  font-size: 13px; font-weight: 500;
}
.btn.primary { background: #1E5AA8; color: #fff; border-color: #1E5AA8; font-weight: 600; }
.btn.accent  { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.ghost   { background: transparent; border-color: var(--line); }

/* ===================== Dots ===================== */
.dots { display: inline-flex; gap: 5px; align-items: center; }
.dots .d {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-5); cursor: pointer; transition: background 0.15s;
}
.dots .d.on { background: var(--ink-2); width: 16px; border-radius: 3px; }

/* ===================== Listings ===================== */
.listing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block; color: inherit;
}
.listing-card:hover { border-color: var(--brand-blue-border); box-shadow: 0 2px 8px var(--brand-blue-shadow); }

/* ===================== Ad Slot ===================== */
.adblock {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adblock:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 2px 8px var(--brand-blue-shadow);
}
.ad-label {
  position: absolute; top: 12px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--ink-4);
  font-family: var(--f-sans); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; z-index: 2;
}
.ad-label .pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; background: var(--brand-blue-light);
  border-radius: 3px; color: var(--brand-blue);
}
.ad-label .pill::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.ad-label .sid {
  color: var(--ink-5); font-family: var(--f-num);
  font-size: 9px; letter-spacing: 0.04em;
}
.ad-pos {
  position: absolute; top: 12px; right: 18px;
  font-size: 10px; color: var(--ink-4);
  font-family: var(--f-num); font-weight: 600;
  letter-spacing: 0.04em; z-index: 2;
}
.ad-body {
  min-height: 120px; padding: 38px 22px 18px;
  display: flex; gap: 16px; align-items: stretch;
}
.ad-glyph {
  width: 60px; height: 60px; border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-sans); font-weight: 700;
  letter-spacing: -0.01em; font-size: 17px;
}
.ad-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ad-kicker {
  font-size: 10px; color: var(--ink-4);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--f-sans); font-weight: 600;
}
.ad-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink-1); }
.ad-sub   { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.ad-side  { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; flex-shrink: 0; gap: 10px; }
.ad-cta   {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--ink-1);
  background: transparent; border: 0; padding: 0;
}

/* ===================== MOBILE SHELL (≤768px) ===================== */
.frame { background: var(--bg); color: var(--ink-1); }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}

/* Mobile header / brand / region */
.m-topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 14px; background: var(--bg);
}
.m-topbar button {
  background: transparent; border: 0; color: var(--ink-2);
  padding: 6px; display: flex;
}
.m-topbar .ttl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.m-search-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--ink-2); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.m-search-icon:hover { background: var(--brand-blue-light); color: var(--brand-blue); }
.m-login-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--ink-2); background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.m-login-btn:hover { background: var(--blue-soft); color: var(--blue); }

.m-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 8px; background: var(--bg);
}
.m-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; }
.m-brand .logo { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.m-brand .cn { font-size: 18px; color: var(--ink-1); line-height: 1; }
.m-brand .en {
  font-family: var(--f-sans); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-top: 2px;
}
.m-brand .stack { display: flex; flex-direction: column; gap: 1px; }

.m-region {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--ink-2);
  padding: 6px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-full);
}

.m-hero { padding: 4px 18px 8px; }
.m-hero h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink-1); }
.m-hero p  { font-size: 14px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.55; }

.m-search {
  margin: 10px 16px 14px;
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px;
  background: var(--brand-blue-light); border: 1px solid var(--brand-blue-border);
  border-radius: var(--r-full); color: var(--ink-4);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.m-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink-1);
}
.m-search input::placeholder { color: var(--ink-4); }

.m-cats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px 0; padding: 10px 6px 18px;
}

/* ==========================================================================
   首頁分類：水平滑動列（一排，全部分類直接顯示，無「更多分類」）。2026-06-04
   單行不換行、overflow-x:auto、scroll-snap-type:x mandatory、隱藏捲軸。
   ========================================================================== */
.cat-strip-wrap { position: relative; }   /* overflow 可見：讓子分類浮層顯示在分類列下方 */
.cat-strip {
  display: flex;
  flex-wrap: nowrap;                       /* 固定單行，永不換行 */
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;       /* 手機慣性滑動 */
  scrollbar-width: none;                   /* Firefox 隱藏捲軸 */
  padding: 4px 2px;
}
.cat-strip::-webkit-scrollbar { display: none; }   /* WebKit 隱藏捲軸 */
.cat-chip {
  flex: 0 0 auto;
  width: 74px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 4px;
  color: var(--ink-1); text-decoration: none;
  border-radius: var(--r-md);
  transition: background .15s ease, transform .15s ease;
}
/* 桌機：9 個分類等寬鋪滿整行（不靠左堆積、右側不留白）。手機維持固定寬橫向滑。 */
@media (min-width: 769px) {
  .cat-strip { gap: 4px; overflow-x: visible; }
  .cat-chip { flex: 1 1 0; width: auto; min-width: 0; }
}
.cat-chip:hover { background: var(--brand-blue-light); transform: translateY(-2px); }
.cat-chip:active { transform: scale(.95); }
.cat-chip .ico-wrap {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-blue-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand-blue);
  transition: background .15s ease, color .15s ease;
}
.cat-chip:hover .ico-wrap,
.cat-chip.is-active .ico-wrap { background: var(--brand-blue); color: #fff; }
.cat-chip .ico-wrap .ico { stroke-width: 1.5; }
.cat-chip .lbl { font-size: 12px; color: var(--ink-2); font-weight: 500; white-space: nowrap; letter-spacing: .01em; }
.cat-chip.is-active .lbl { color: var(--brand-blue); font-weight: 600; }

/* 左右箭頭：捲動有溢出時由 JS 顯示（桌機用；手機/平板用手指滑）*/
.cat-strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, .18);
  display: flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cat-strip-arrow:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.cat-strip-arrow[hidden] { display: none; }
.cat-strip-arrow-l { left: -2px; }
.cat-strip-arrow-r { right: -2px; }

/* 子分類浮層 dropdown（hover 顯示 / 手機點擊展開）。絕對定位 overlay，不影響分類列高度 */
.cat-dd {
  position: absolute; z-index: 60;
  min-width: 150px; max-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 32px -8px rgba(15, 23, 42, .25);
  padding: 10px; display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-dd[hidden] { display: none; }
.cat-dd-tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  background: #f1f5fb; border-radius: 999px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cat-dd-tag:hover { background: var(--brand-blue); color: #fff; }
.cat-dd-all { font-weight: 700; color: var(--brand-blue); background: var(--brand-blue-light); }

/* 分頁標籤 chip 是按鈕（非連結）*/
.cat-chip { background: transparent; border: none; cursor: pointer; font: inherit; }
/* 選中分頁：藍底白 icon */
.cat-chip.is-active { background: var(--brand-blue-light); }
.cat-chip.is-active .ico-wrap { background: var(--brand-blue); color: #fff; }
.cat-chip.is-active .lbl { color: var(--brand-blue); font-weight: 700; }

/* ==========================================================================
   首頁帖子區：便民服務 + 生意轉讓 兩區塊同時顯示（無 Tab/無切換/無動畫）。2026-06-04
   ========================================================================== */
.home-sec { margin-top: 16px; }
.home-sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* Desktop 3 欄 */
  gap: 0 24px;
  align-items: start;                        /* 卡片各自高度；手風琴展開為絕對浮層不重排 */
}
@media (max-width: 1024px) { .home-sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .home-sec-grid { grid-template-columns: 1fr; } }
.m-cat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 4px; color: var(--ink-1);
  border-radius: var(--r-md); transition: background 0.15s;
}
.m-cat:hover { background: var(--brand-blue-light); }
.m-cats-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-1);
  margin: 12px 16px 0; padding: 14px 4px 10px;
}
.m-cat .ico-wrap {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-blue-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand-blue);
}
.m-cat .ico-wrap .ico { stroke-width: 1.5; }
.m-cat .lbl { font-size: 12px; color: var(--ink-2); font-weight: 500; letter-spacing: 0.01em; }

/* Section header */
.sec-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 18px 12px;
}
.sec-h .t { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.sec-h .t .en {
  font-family: var(--f-sans); font-weight: 500; font-size: 11px;
  color: var(--ink-4); margin-left: 8px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sec-h .more {
  font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 3px;
}

/* Mobile services list (text-first) */
.m-svc-list {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.m-svc-item {
  display: flex; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-1); transition: box-shadow 0.15s;
}
.m-svc-item:last-child { border-bottom: 0; }
.m-svc-item:hover { box-shadow: inset 2px 0 0 var(--blue); }
.m-svc-item:hover .ttl { color: var(--blue); }
.m-svc-item .ttl {
  font-size: 14px; font-weight: 600; color: var(--ink-1);
  line-height: 1.4; letter-spacing: -0.005em; transition: color 0.15s;
}
.m-svc-item .meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap;
}
.m-svc-item .meta .dot { color: var(--ink-5); }

/* Mobile transfer cards */
.m-xfer-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.m-xfer { display: flex; gap: 14px; padding: 12px; align-items: stretch; }
.m-xfer .thumb { width: 104px; height: 104px; flex-shrink: 0; }
.m-xfer .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.m-xfer .ttl {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--ink-1); letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-xfer .foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 8px;
}
.m-xfer .foot .price { font-size: 16px; }
.m-xfer .foot .city {
  font-size: 11px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 3px;
}

/* Mobile bottom tab bar — floating overlay (fixed) */
.m-tabbar {
  display: flex; height: 64px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-bottom: env(safe-area-inset-bottom, 14px);
  box-sizing: content-box;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.m-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-4); text-decoration: none;
}
.m-tab.active { color: var(--ink-1); }
.m-tab .lbl { font-size: 10.5px; font-weight: 500; }
.m-tab.hero .hero-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #d43939; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: -12px; box-shadow: 0 8px 18px rgba(212, 57, 57, 0.25);
}

/* ===================== DESKTOP SHELL (≥769px) ===================== */
.d-shell { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

.d-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 50;
}
.d-header-inner {
  max-width: 1220px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}
.d-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-1); flex-shrink: 0; }
.d-brand .logo { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.d-brand .stack { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.d-brand .cn { font-size: 19px; letter-spacing: -0.01em; line-height: 1; }
.d-brand .en {
  font-family: var(--f-sans); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}

.d-nav { display: flex; gap: 4px; margin-left: 8px; flex-shrink: 0; flex-wrap: nowrap; }
.d-nav a {
  padding: 8px 12px; font-size: 13px;
  color: var(--ink-2); border-radius: var(--r-sm);
  white-space: nowrap;
}
.d-nav a.active { color: var(--ink-1); font-weight: 600; }
.d-nav a:hover { background: var(--brand-blue-light); color: var(--blue); }

.d-search {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 420px;
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 10px 0 18px;
  background: var(--brand-blue-light); border: 1px solid var(--brand-blue-border);
  border-radius: var(--r-full);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.d-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink-1);
}
.d-search input::placeholder { color: var(--ink-4); }
.d-search-btn {
  background: none; border: none; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-3); flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.d-search-btn:hover { background: var(--brand-blue-hover); color: var(--brand-blue); }
.d-region-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2);
  padding: 9px 14px; border: 1px solid var(--line);
  border-radius: var(--r-full); background: var(--surface);
}
.d-header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.d-publish {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; background: var(--blue);
  color: #fff; border-radius: var(--r-full); border: 0;
  white-space: nowrap; transition: background 0.15s;
}
.d-publish:hover { background: var(--blue-deep); color: #fff; }
.d-publish, .d-publish:hover, .d-publish:focus, .d-publish:active, .d-publish:visited { color: #fff !important; }
.d-login {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-1);
  padding: 9px 14px;
  background: var(--surface); border: 1px solid #E5E7EB;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.d-login:hover {
  background: var(--blue-soft);
  border-color: var(--blue-mid);
  color: var(--blue);
}

/* === 登入後：用戶名 ｜ 等級徽章 === */
.d-user {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: var(--ink-1);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  max-width: 220px;
  flex-shrink: 0;
}
.d-user:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 8px -3px rgba(31, 78, 121, .25);
  transform: translateY(-1px);
}
.d-user-name {
  max-width: 80px; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink-1); font-weight: 500;
}
.d-user-sep { color: var(--ink-5, #cbd5e0); margin: 0 2px; }
.d-user-tier {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 12.5px;
  white-space: nowrap;
}
.d-user-ic { width: 14px; height: 14px; flex-shrink: 0; }

/* Tier color tokens — 普通灰、黃金金、鑽石漸層藍紫 */
.d-user-free    .d-user-tier { color: #6B7280; }
.d-user-silver  .d-user-tier { color: #6B7280; }
.d-user-gold    .d-user-tier { color: #B8801A; }
.d-user-gold    { border-color: #F5D58B; background: linear-gradient(180deg, #FFFCF3, #FFF8E1); }
.d-user-gold:hover { border-color: #E0AD3D; box-shadow: 0 2px 10px -3px rgba(224, 173, 61, .4); }
.d-user-diamond .d-user-tier { color: #5B47C0; }
.d-user-diamond { border-color: #C7B8F5; background: linear-gradient(180deg, #FAF8FF, #F0EBFF); }
.d-user-diamond:hover { border-color: #8B6FE0; box-shadow: 0 2px 10px -3px rgba(139, 111, 224, .4); }

/* 手機版：名字隱藏，只保留等級徽章 + 圖示 */
@media (max-width: 640px) {
  .d-user-name, .d-user-sep { display: none; }
  .d-user { padding: 6px 10px; }
}

/* Desktop hero */
.d-hero { background: var(--bg); padding: 36px 0 28px; }
/* 廣告在頂部時，hero 上方 padding 縮短 */
.d-hero--compact { padding-top: 16px; }
/* 頂部廣告容器 */
.d-top-ad { background: var(--bg); padding: 20px 0 0; }
.d-hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 56px; align-items: flex-end; margin-bottom: 30px;
}
.d-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3);
  padding: 5px 10px; border: 1px solid var(--line);
  border-radius: var(--r-full); margin-bottom: 18px;
  background: var(--surface);
}
.d-hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #22A565; }
.d-hero h1 {
  margin: 0; font-size: 52px; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.028em; color: var(--ink-1);
}
.d-hero h1 .sep { color: var(--ink-4); }
.d-hero .sub {
  font-size: 15px; color: var(--ink-3); margin-top: 14px;
  max-width: 520px; line-height: 1.65;
}
.d-hero-search {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full); font-size: 15px;
}
.d-hero-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.d-hero-tags { display: flex; gap: 6px; padding-left: 4px; flex-wrap: wrap; margin-top: 14px; }
.d-hero-tags .lab { font-size: 12px; color: var(--ink-4); margin-right: 4; padding-top: 4px; }

/* Desktop category icon row */
.d-cats-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-1);
  padding: 16px 12px 12px; margin-top: 16px;
}
.d-cats {
  display: grid; grid-template-columns: repeat(9, 1fr);
  gap: 4px; padding: 0;
}
.d-cat {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 14px 8px;
  border-radius: var(--r-lg);
  transition: background 0.15s;
  color: var(--ink-1); text-decoration: none;
}
.d-cat:hover { background: var(--brand-blue-light); }
.d-cat .ico-wrap {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-blue-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand-blue);
}
.d-cat .lbl { font-size: 12px; font-weight: 500; color: var(--ink-2); }

/* Desktop main 2-col grid */
.d-main { padding: 40px 0 56px; }
.d-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.d-sec-h {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px;
}
.d-sec-h h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.d-sec-h .en {
  font-size: 12px; color: var(--ink-4); margin-top: 4px;
  letter-spacing: 0.08em; font-family: var(--f-sans); text-transform: uppercase;
}
.d-sec-h .more {
  font-size: 13px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Desktop services list */
.d-svc-list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.d-svc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1); text-decoration: none;
  transition: box-shadow 0.15s ease;
}
.d-svc-item:last-child { border-bottom: 0; }
.d-svc-item:hover { box-shadow: inset 2px 0 0 #1B5FC7; }
.d-svc-item:hover .ttl { color: #1B5FC7; }
.d-svc-item .body { flex: 1; min-width: 0; }
.d-svc-item .ttl {
  font-size: 14px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.15s;
}
.d-svc-item .meta {
  display: flex; gap: 6px; margin-top: 3px;
  font-size: 11px; color: var(--ink-3); align-items: center; flex-wrap: wrap;
}
.d-svc-item .meta .dot { color: var(--ink-5); }
.svc-tag {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 3px 10px; font-size: 11px; font-weight: 500;
  color: var(--ink-3); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-full);
  white-space: nowrap;
}

/* Desktop + Mobile business list — reference-style cards for 生意轉讓 */
.d-biz-list {
  display: flex; flex-direction: column; gap: 12px;
}
.d-biz-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.05);
  color: var(--ink-1); text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 120px;
}
.d-biz-item:hover { background: var(--brand-blue-light); border-color: var(--brand-blue-border); box-shadow: 0 2px 10px var(--brand-blue-shadow); }
.d-biz-thumb {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: var(--brand-blue-light);
  position: relative;
}
.d-biz-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.biz-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.35s ease;
}
.biz-slide.active { opacity: 1; }
.biz-img-n {
  position: absolute; top: 5px; left: 5px;
  background: rgba(0,0,0,0.42); color: #fff;
  font-size: 10px; font-family: var(--f-num); font-feature-settings: "tnum";
  padding: 2px 6px; border-radius: 4px; line-height: 1.5;
  pointer-events: none;
}
.d-biz-ph, .m-biz-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-blue-light);
}
.d-biz-item .body {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: space-between; height: 96px;
}
.d-biz-item .biz-tag-row { display: flex; align-items: center; gap: 6px; }
.d-biz-item .biz-ttl {
  font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-1);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-top: 4px;
}
.d-biz-item .biz-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: auto;
}
.d-biz-item .biz-price {
  font-size: 14px; font-weight: 700; color: var(--accent);
}
.d-biz-item .biz-city {
  font-size: 11px; color: var(--ink-4);
}

/* Mobile business list */
.m-biz-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.m-biz-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.04);
  color: var(--ink-1); text-decoration: none;
  min-height: 120px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.m-biz-item:hover { background: var(--brand-blue-light); border-color: var(--brand-blue-border); box-shadow: 0 2px 10px var(--brand-blue-shadow); }
.m-biz-thumb {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: var(--brand-blue-light);
  position: relative;
}
.m-biz-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.m-biz-item .body {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: space-between; height: 96px;
}
.m-biz-item .biz-tag-row { display: flex; align-items: center; gap: 5px; }
.m-biz-item .biz-ttl {
  font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-1);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-top: 3px;
}
.m-biz-item .biz-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: auto;
}
.m-biz-item .biz-price {
  font-size: 13px; font-weight: 700; color: var(--accent);
}
.m-biz-item .biz-city {
  font-size: 11px; color: var(--ink-4);
}

/* Desktop transfer list (legacy — kept for category pages) */
.d-xfer-list { display: flex; flex-direction: column; gap: 14px; }
.d-xfer { display: flex; gap: 16px; align-items: stretch; padding: 16px; }
.d-xfer .thumb { width: 140px; height: 104px; flex-shrink: 0; }
.d-xfer .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.d-xfer .ttl { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
.d-xfer .tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.d-xfer .foot { display: flex; justify-content: space-between; align-items: flex-end; }
.d-xfer .foot .price { font-size: 19px; }
.d-xfer .foot .meta {
  font-size: 12px; color: var(--ink-3); display: inline-flex; gap: 10px;
}

/* Desktop membership row */
.d-mem-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px;
}
.d-mem-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 20px;
}
.d-mem-card .ttl { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 12px; }
.d-mem-card .desc { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 6px; min-height: 60px; }
.d-mem-card .pr {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.mem-cta {
  display: block; margin-top: 14px;
  padding: 9px 0; text-align: center;
  font-size: 13px; font-weight: 600; color: #fff;
  border: 1px solid var(--brand-blue); border-radius: var(--r-md);
  background: var(--brand-blue); text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.mem-cta:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); }
.mem-cta--gold { color: #fff; border-color: var(--brand-blue); background: var(--brand-blue); }

/* ===================== Membership page ===================== */
.member-page {
  width: min(100%, 1000px);
  margin: 8px auto 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  background: linear-gradient(120deg, #1F4E79 0%, #2A5F94 60%, #1F4E79 100%);
  border: 1px solid #163D61;
  padding: 26px 28px;
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.member-hero .hero-left,
.member-hero .hero-right {
  min-width: 0;
}
.member-hero .hero-eyebrow {
  color: #FFE293;
  font-size: 12px;
  letter-spacing: .06em;
  margin-bottom: 8px;
  font-weight: 700;
}
.member-hero .hero-title {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.member-hero .hero-sub {
  color: #DDE8F5;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.member-hero .hero-status {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 242, 200, .4);
  color: #FFE293;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  margin-bottom: 12px;
}
.member-hero .badge {
  background: linear-gradient(180deg, #FFE293, #D69A1A);
  color: #4A2F05;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 700;
  font-size: 11px;
}
.member-hero .badge-pending {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.member-hero .hero-status-pending {
  color: #fff;
}
.member-hero .hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.member-hero .cta-primary,
.member-hero .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}
.member-hero .cta-primary {
  background: linear-gradient(180deg, #FFE293, #D69A1A);
  color: #4A2F05 !important;
  border: 1px solid #B8801A;
  padding: 9px 22px;
  font-size: 14px;
}
.member-hero .cta-primary:hover {
  transform: translateY(-1px);
}
.member-hero .cta-secondary {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .34);
  padding: 9px 18px;
  font-size: 13px;
}
.member-hero .quick-card {
  background: rgba(255, 243, 200, .96);
  color: #5A4216;
  border-radius: var(--r-md);
  padding: 14px;
  border: 1px solid #E5BE5C;
}
.member-hero .quick-card .quick-title {
  color: #7A5510;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.member-hero .quick-card .quick-phone {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--f-num);
}
.member-hero .quick-card .quick-phone a {
  color: #7A5510;
}
.member-hero .quick-card .quick-sub {
  font-size: 12px;
  color: #6F4D0F;
  margin-top: 4px;
}
.member-hero .quick-card .quick-sub a {
  color: #1F4E79;
}
.member-page .section-title {
  font-size: 15px;
  color: #1F4E79;
  font-weight: 700;
  margin: 0 0 12px;
}
.member-benefits,
.member-pricing,
.member-faq {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 22px 22px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.benefit-card {
  min-width: 0;
  background: #F8FAFD;
  border: 1px solid #DDE3EC;
  padding: 14px;
  border-radius: var(--r-md);
  transition: border-color .15s, transform .1s;
}
.benefit-card:hover {
  border-color: #1F4E79;
  transform: translateY(-1px);
}
.benefit-card .b-title {
  font-size: 14px;
  font-weight: 700;
  color: #1F4E79;
  margin-bottom: 4px;
  line-height: 1.35;
}
.benefit-card .b-sub {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}
.ad-pricing-sub {
  margin-top: -6px;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 12px;
}
.ad-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ap-card {
  min-width: 0;
  background: linear-gradient(180deg, #FFF 0%, #F7FAFE 100%);
  border: 1px solid #DDE3EE;
  border-radius: var(--r-md);
  padding: 14px 16px 12px;
  box-shadow: 0 1px 2px rgba(31, 78, 121, .04);
  display: flex;
  flex-direction: column;
  min-height: 110px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ap-card:hover {
  border-color: #1F4E79;
  box-shadow: 0 4px 10px rgba(31, 78, 121, .08);
  transform: translateY(-1px);
}
.ap-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E5E7EB;
}
.ap-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: 6px;
  flex: 0 0 26px;
}
.ap-icon svg {
  width: 15px;
  height: 15px;
}
.ap-cat {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.35;
}
.ap-price {
  color: #B33636;
  font-size: 14px;
  font-weight: 600;
  margin: 2px 0 6px;
  line-height: 1.45;
}
.ap-price b {
  font-family: var(--f-num);
  font-size: 16px;
}
.ap-note {
  color: #6B7280;
  font-size: 12px;
  line-height: 1.5;
  margin-top: auto;
}
.faq-card .faq-item {
  padding: 10px 14px;
  background: #F8FAFD;
  border-left: 3px solid #1F4E79;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.faq-card .faq-item b {
  color: #1F4E79;
}
.faq-card .faq-item p {
  margin: 4px 0 0;
  color: #555;
}
.faq-card .faq-item a {
  color: #1F5D99;
}
.faq-card .faq-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #FEF8E8;
  border: 1px solid #FCE093;
  color: #7A5510;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--r-sm);
}

/* Desktop footer */
.d-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 40px 0 28px; color: var(--ink-3); font-size: 13px;
}
.d-footer-grid {
  max-width: 1220px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.d-footer h4 {
  font-size: 12px; font-weight: 700; color: var(--ink-1);
  margin: 0 0 14px; letter-spacing: 0.02em;
}
.d-footer ul { list-style: none; padding: 0; margin: 0; }
.d-footer li { margin-bottom: 10px; }
.d-footer-bottom {
  max-width: 1220px; margin: 28px auto 0;
  padding: 16px 28px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-4);
}

/* Responsive mobile-only adjustments for desktop pieces */
@media (max-width: 768px) {
  .d-shell, .d-header-inner, .d-footer-grid { max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .d-main-grid { grid-template-columns: 1fr; gap: 24px; }
  .d-mem-row { grid-template-columns: 1fr; }
  .ad-body { padding-top: 32px; padding-left: 16px; padding-right: 16px; }
  .ad-glyph { width: 48px; height: 48px; font-size: 14px; }

  .member-page {
    width: 100%;
    margin-top: 8px;
    padding: 0 12px;
    gap: 12px;
  }
  .member-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .member-hero .hero-title {
    font-size: 20px;
  }
  .member-hero .hero-sub {
    font-size: 13px;
  }
  .member-hero .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .member-hero .cta-primary,
  .member-hero .cta-secondary {
    width: 100%;
  }
  .member-benefits,
  .member-pricing,
  .member-faq {
    padding: 16px;
  }
  .benefit-grid,
  .ad-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .benefit-card,
  .ap-card {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .benefit-grid,
  .ad-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

/* Mobile category */
.mc-title { padding: 8px 18px 16px; }
.mc-back {
  background: transparent; border: 0; color: var(--ink-3);
  font-size: 12px; padding: 0;
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px;
}
.mc-title h1 { margin: 0; font-size: 26px; font-weight: 700; letterSpacing: -0.02em; }
.mc-count {
  font-size: 11px; color: var(--ink-3);
  padding: 3px 8px; border: 1px solid var(--line);
  border-radius: var(--r-full); font-family: var(--f-sans);
  margin-left: 8px;
}
.mc-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.mc-hot-tags {
  display: flex; gap: 6px; padding: 0 16px 4px; flex-wrap: wrap;
}
.mc-filters {
  display: flex; gap: 8px; padding: 10px 16px 6px;
  overflow-x: auto; scrollbar-width: none;
}
.mc-filters::-webkit-scrollbar { display: none; }
.mc-pill {
  flex-shrink: 0; height: 30px; padding: 0 12px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.mc-pill.active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.mc-pill.brand  { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); font-weight: 600; }

.mc-page-break {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 4px 14px;
}
.mc-page-break .line { flex: 1; height: 1px; background: var(--line); }
.mc-page-break .lbl {
  font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.06em; font-family: var(--f-sans);
}

.mc-card {
  display: flex; gap: 14px; padding: 12px; align-items: stretch;
}
.mc-card .thumb { width: 110px; height: 110px; flex-shrink: 0; }
.mc-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.mc-card .ttl {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--ink-1); letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-card .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mc-card .foot { display: flex; justify-content: space-between; align-items: flex-end; }
.mc-card .foot .price { font-size: 17px; }
.mc-card .foot .meta {
  font-size: 11px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}

/* FAB */
.mc-fab {
  position: fixed; right: 18px; bottom: 92px; z-index: 25;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink-1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(16,16,30,0.25);
  flex-direction: column; gap: 2px;
}
.mc-fab .lbl { font-size: 9px; font-weight: 600; }

/* Desktop category */
.dc-bc { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.dc-bc .sep { color: var(--ink-5); }
.dc-bc b { color: var(--ink-1); font-weight: 600; }

.dc-title-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.dc-title h1 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.dc-title .badge {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  margin-left: 14px; padding: 4px 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full); vertical-align: middle;
  font-family: var(--f-num);
}
.dc-title .sub { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

.dc-cat-search {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full); width: 360px;
}
.dc-cat-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.dc-cat-search .scope-btn {
  background: var(--ink-1); color: #fff;
  height: 28px; padding: 0 12px; border-radius: var(--r-full);
  border: 0; font-size: 11px; font-weight: 600;
}

.dc-main {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 28px; align-items: flex-start;
}
.dc-rail {
  position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.dc-fgroup { margin-bottom: 22px; }
.dc-fgroup .head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.dc-fgroup h4 { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-1); letter-spacing: 0.02em; }
.dc-fgroup .clear {
  background: transparent; border: 0; color: var(--ink-4);
  font-size: 11px; padding: 0; font-family: var(--f-sans);
}
.dc-fgroup .opts { display: flex; flex-direction: column; gap: 8px; }
.dc-opt {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; text-decoration: none;
}
.dc-opt.active { color: var(--ink-1); font-weight: 600; }
.dc-opt .box {
  width: 14px; height: 14px; border-radius: 3px;
  border: 1.5px solid var(--line-strong); flex-shrink: 0; position: relative;
}
.dc-opt.active .box {
  border-color: var(--ink-1); background: var(--ink-1);
}
.dc-opt.active .box::after {
  content: ""; position: absolute; inset: 2px;
  background: #fff; border-radius: 1px;
}
.dc-opt .lbl { flex: 1; }
.dc-opt .n { font-size: 11px; color: var(--ink-4); font-family: var(--f-num); }

.dc-sort-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px 18px;
}
.dc-sort-row .group { display: flex; gap: 4px; }
.dc-sort {
  height: 32px; padding: 0 12px;
  background: transparent; border: 1px solid transparent;
  color: var(--ink-3); border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
}
.dc-sort.active { background: var(--surface); border-color: var(--line-strong); color: var(--ink-1); font-weight: 600; }
.dc-sort-row .info { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--ink-3); }

.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dc-pdivider {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; padding: 8px 0 4px;
}
.dc-pdivider .line { flex: 1; height: 1px; background: var(--line); }
.dc-pdivider .lbl {
  font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.08em; font-family: var(--f-sans); text-transform: uppercase;
}
.dc-card {
  display: flex; gap: 16px; padding: 16px; flex-direction: row;
}
.dc-card .thumb { width: 180px; height: 140px; flex-shrink: 0; }
.dc-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.dc-card .ttl {
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-card .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dc-card .foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.dc-card .foot .price { font-size: 18px; }
.dc-card .foot .meta {
  font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}

.dc-pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.dc-pager .page-btn {
  width: 36px; height: 36px;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; font-family: var(--f-num);
}
.dc-pager .page-btn.active { background: #d43939; color: #fff; border-color: #d43939; }

@media (max-width: 768px) {
  .dc-main { grid-template-columns: 1fr; }
  .dc-rail { display: none; }
  .dc-grid { grid-template-columns: 1fr; }
  .dc-card { flex-direction: column; }
  .dc-card .thumb { width: 100%; height: 180px; }
  .dc-title h1 { font-size: 26px; }
  .dc-cat-search { width: 100%; }
  .dc-title-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */

/* Mobile detail */
.md-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg);
}
.md-topbar .icon-btn {
  background: var(--surface); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1);
}
.md-topbar .crumb { font-size: 13px; color: var(--ink-3); }

.md-title-block { padding: 8px 18px 18px; }
.md-title-block .chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.md-title-block h1 {
  margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--ink-1);
}
.md-title-block .meta {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 12px; color: var(--ink-3); align-items: center;
}

.md-gallery { padding: 0 16px; }
.md-gallery .main {
  position: relative; width: 100%; height: 280px; border-radius: 12px;
  background: linear-gradient(135deg, #EDEBE2 0%, #DEDBCE 100%);
  overflow: hidden;
}
.md-gallery .main .center-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-4); font-size: 12px; letter-spacing: 0.06em;
  font-family: var(--f-sans);
}
.md-gallery .counter {
  position: absolute; right: 12px; bottom: 12px;
  padding: 4px 10px; background: rgba(16,16,30,0.7);
  color: #fff; border-radius: var(--r-full);
  font-size: 11px; font-family: var(--f-num); font-weight: 600;
}
.md-gallery .strip {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; padding-bottom: 4px;
}
.md-gallery .thumb {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: 6px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #EDEBE2 0%, #DEDBCE 100%);
}
.md-gallery .thumb.active { border: 2px solid var(--ink-1); }

.md-stats { display: flex; gap: 8px; padding: 20px 16px 8px; }
.md-stat {
  flex: 1; padding: 14px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-align: center;
}
.md-stat .lbl { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: 0.02em; }
.md-stat .val {
  font-family: var(--f-num); font-weight: 700; font-size: 16px;
  color: var(--ink-1); letter-spacing: -0.01em; font-feature-settings: "tnum";
}
.md-stat .val.accent { color: var(--accent); }

.md-loc { padding: 8px 16px; }
.md-loc-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.md-loc-card .left { display: flex; align-items: center; gap: 10px; }
.md-loc-card .pin {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.md-loc-card .name { font-size: 14px; font-weight: 600; }
.md-loc-card .kicker { font-size: 11px; color: var(--ink-3); }

.md-section { padding: 16px 18px 0; }
.md-section h3 {
  margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
}
.md-section h3 .en {
  font-family: var(--f-sans); font-size: 10px;
  color: var(--ink-4); margin-left: 8px; letter-spacing: 0.08em;
}
.md-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.md-desc p { margin: 0 0 12px; }
.md-desc p:last-child { margin: 0; }
.md-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.md-fraud {
  margin: 18px 16px 8px;
  background: #FBF7E8; border: 1px solid #ECDFA3;
  border-radius: var(--r-md); padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.md-fraud .ic { color: #8A6E10; margin-top: 1px; }
.md-fraud .txt { font-size: 12px; color: #6F560A; line-height: 1.6; }

.md-contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.md-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.md-contact-row:last-child { border-bottom: 0; }
.md-contact-row .ic-wrap {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-blue-light); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.md-contact-row .ic-wrap.accent { background: var(--brand-blue-light); color: var(--brand-blue); }
.md-contact-row .ic-wrap.wx { font-family: var(--f-sans); font-weight: 700; font-size: 11px; }
.md-contact-row .body { flex: 1; min-width: 0; }
.md-contact-row .lab {
  font-size: 11px; color: var(--ink-4); margin-bottom: 1px;
  font-family: var(--f-sans); letter-spacing: 0.04em; text-transform: uppercase;
}
.md-contact-row .val { font-size: 14px; font-weight: 600; font-family: var(--f-num); letter-spacing: -0.01em; }
.md-contact-row .act {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-1); padding: 8px 14px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 600;
}

/* Mobile sticky bottom contact bar */
.md-sticky-bar {
  position: sticky; bottom: 0;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 -4px 16px rgba(16,16,30,0.04);
  z-index: 5;
}
.md-sticky-bar .wx-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-sunken); border: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1);
  font-family: var(--f-sans); font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.md-sticky-bar .wa-btn {
  flex: 1; height: 44px;
  background: #1FAE5C; color: #fff; border: 0;
  border-radius: var(--r-full);
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.md-sticky-bar .call-btn {
  flex: 1.2; height: 44px;
  background: #d43939; color: #fff; border: 0;
  border-radius: var(--r-full);
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}

/* Desktop detail */
.dd-bc { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.dd-bc .sep { color: var(--ink-5); }
.dd-bc b { color: var(--ink-1); font-weight: 600; }

.dd-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px; align-items: flex-start;
}

.dd-title-block { margin-bottom: 24px; }
.dd-title-block .chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.dd-title-block h1 {
  margin: 0; font-size: 32px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.022em;
}
.dd-title-block .meta {
  display: flex; gap: 18px; margin-top: 14px;
  font-size: 13px; color: var(--ink-3); align-items: center; flex-wrap: wrap;
}
.dd-title-block .meta .sep { color: var(--ink-5); }

.dd-gallery {
  display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr;
  gap: 8px; margin-bottom: 24px;
}
.dd-gallery .main {
  position: relative; width: 100%; height: 460px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EDEBE2 0%, #DEDBCE 100%);
  overflow: hidden;
}
.dd-gallery .main .lbl {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-4); font-size: 13px;
  letter-spacing: 0.06em; font-family: var(--f-sans);
}
.dd-gallery .main .counter {
  position: absolute; right: 14px; bottom: 14px;
  padding: 5px 12px; background: rgba(16,16,30,0.7);
  color: #fff; border-radius: var(--r-full);
  font-size: 12px; font-family: var(--f-num); font-weight: 600;
}
.dd-gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.dd-gallery .side > div {
  width: 100%; height: 226px; border-radius: 12px;
  background: linear-gradient(135deg, #EDEBE2 0%, #DEDBCE 100%);
  position: relative; overflow: hidden;
}
.dd-gallery .side .more-mask {
  position: absolute; inset: 0; background: rgba(16,16,30,0.55);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--f-sans); font-weight: 600; font-size: 16px;
}

.dd-stat-row {
  display: flex; background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 28px;
}
.dd-stat {
  padding: 18px 22px; border-right: 1px solid var(--line); flex: 1;
}
.dd-stat:last-child { border-right: 0; }
.dd-stat .lbl {
  font-size: 11px; color: var(--ink-3); margin-bottom: 4px;
  letter-spacing: 0.06em; font-family: var(--f-sans); text-transform: uppercase;
}
.dd-stat .val {
  font-family: var(--f-num); font-weight: 700; font-size: 22px;
  color: var(--ink-1); letter-spacing: -0.015em; font-feature-settings: "tnum";
}
.dd-stat .val.accent { color: var(--accent); }

.dd-section { margin-bottom: 28px; }
.dd-section h2 {
  margin: 0 0 14px; font-size: 20px;
  font-weight: 700; letter-spacing: -0.015em;
}
.dd-section h2 .en {
  font-family: var(--f-sans); font-size: 11px;
  color: var(--ink-4); margin-left: 10px; letter-spacing: 0.08em;
}
.dd-desc { font-size: 15px; color: var(--ink-2); line-height: 1.8; max-width: 720px; }
.dd-desc p { margin: 0 0 14px; }
.dd-desc p:last-child { margin: 0; }
.dd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.dd-fraud {
  background: #FBF7E8; border: 1px solid #ECDFA3;
  border-radius: var(--r-md); padding: 14px 18px;
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 28px;
}
.dd-fraud .ic { color: #8A6E10; margin-top: 1px; }
.dd-fraud .txt { font-size: 13px; color: #6F560A; line-height: 1.7; }
.dd-fraud .txt a { text-decoration: underline; }

.dd-related {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.dd-related-card {
  display: flex; flex-direction: column; gap: 12px; padding: 14px;
}
.dd-related-card .thumb { width: 100%; height: 140px; }
.dd-related-card .ttl {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dd-related-card .foot {
  display: flex; justify-content: space-between; align-items: center;
}
.dd-related-card .foot .price { font-size: 15px; }

.dd-rail {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 14px;
}
.dd-contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 18px;
}
.dd-contact-card .kicker {
  font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.08em; font-family: var(--f-sans);
  text-transform: uppercase; margin-bottom: 6px;
}
.dd-contact-card .big-price {
  font-size: 32px; letter-spacing: -0.02em;
  color: var(--accent); font-family: var(--f-num);
  font-weight: 700; font-feature-settings: "tnum";
}
.dd-contact-card .big-price .suffix { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.dd-contact-card .cta-row { display: flex; gap: 8px; margin-top: 16px; }
.dd-contact-card .cta-call { flex: 1.4; height: 44px; }
.dd-contact-card .cta-wa { flex: 1; height: 44px; }

.dd-publisher {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
}
.dd-publisher .kicker {
  font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.08em; font-family: var(--f-sans);
  text-transform: uppercase; margin-bottom: 12px;
}
.dd-publisher .head { display: flex; align-items: center; gap: 12px; }
.dd-publisher .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--f-sans); color: var(--ink-2);
}
.dd-publisher .stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px; margin-top: 14px;
  font-size: 11px; color: var(--ink-3); text-align: center;
}
.dd-publisher .stats .cell {
  padding: 10px 6px; background: var(--bg); border-radius: 6px;
}
.dd-publisher .stats .n {
  font-size: 14px; font-weight: 700; font-family: var(--f-num); color: var(--ink-1);
}

.dd-safety {
  background: var(--surface-sunken);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 12px; color: var(--ink-3); line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
}

@media (max-width: 768px) {
  .dd-main { grid-template-columns: 1fr; gap: 16px; }
  .dd-rail { position: static; }
  .dd-gallery { grid-template-columns: 1fr; }
  .dd-gallery .main { height: 280px; }
  .dd-gallery .side { display: none; }
  .dd-related { grid-template-columns: 1fr 1fr; }
}

/* ==============================================================
   WARM A REFRESH — Version A · 保守現代化
   Cream surface + tinted icon circles + warm orange accent +
   dark hero button + warm gold ad. Layout unchanged.
   ============================================================== */

body { background: var(--bg); }

/* ---------- Header (desktop) — clean white, no glass ---------- */
.d-header {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.d-brand .cn { color: var(--ink-1); letter-spacing: -0.005em; }
.d-brand .logo { filter: none; }
.d-nav a { transition: background 0.15s, color 0.15s; }
.d-nav a:hover { background: var(--brand-blue-light); color: var(--blue); }
.d-nav a.active { color: var(--ink-1); }

/* Search field — brand blue focus ring */
.d-search { background: var(--brand-blue-light); }
.d-search:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-light);
  background: #fff;
}
.m-search:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-light);
}
.d-hero-search:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 24px -10px var(--brand-blue-shadow);
}

/* Region + publish — neutral dark */
.d-region-btn { color: var(--ink-2); }
.d-region-btn:hover { border-color: var(--ink-3); color: var(--ink-1); }
.d-publish {
  background: #1E5AA8;
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px -4px rgba(30, 90, 168, 0.28);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.d-publish:hover {
  background: #174985;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(23, 73, 133, 0.36);
}
.d-publish:hover .ico,
.d-publish:hover svg { stroke: #fff !important; color: #fff !important; }

/* ---------- Hero — gentle cream, no gradient drama ---------- */
.d-hero { background: var(--bg); position: relative; overflow: hidden; }
.d-hero::before, .d-hero::after { display: none; }
.d-hero h1 { color: var(--ink-1); background: none; -webkit-text-fill-color: var(--ink-1); }
.d-hero h1 .sep { color: var(--ink-4); -webkit-text-fill-color: var(--ink-4); }
.d-hero-pill .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(184, 83, 28, 0.15); }
.m-hero h1 {
  background: none;
  -webkit-text-fill-color: var(--ink-1);
  color: var(--ink-1);
}

/* ---------- Category icons — logo blue circles ---------- */
.m-cat .ico-wrap, .d-cat .ico-wrap {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: 50%;
  transition: background 0.18s, transform 0.18s;
}
.m-cat:hover .ico-wrap, .d-cat:hover .ico-wrap {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
}

/* ---------- Section header — Version A small dark bar on left ---------- */
.sec-h {
  position: relative;
  padding-left: 30px;
}
.sec-h::before {
  content: "";
  position: absolute;
  left: 18px; top: 26px; bottom: 16px;
  width: 3px; border-radius: 2px;
  background: var(--brand-blue);
}
.sec-h .t .en { color: var(--ink-4); }

.d-sec-h h2 { position: relative; padding-left: 14px; }
.d-sec-h h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 6px;
  width: 4px; border-radius: 2px;
  background: var(--brand-blue);
}

/* ---------- Listing cards — logo blue hover ---------- */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.listing-card:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 6px 18px var(--brand-blue-shadow);
  transform: translateY(-1px);
}
.mc-card .ttl, .dc-card .ttl, .m-xfer .ttl, .d-xfer .ttl,
.m-svc-item .ttl, .d-svc-item .ttl-row .ttl { color: var(--ink-1); }

/* Price — warm orange */
.price { color: var(--accent); }

/* ---------- Ad block — brand blue (Version A) ---------- */
.adblock {
  background: var(--surface);
  border: 1px solid var(--brand-blue-border);
  box-shadow: none;
}
.adblock:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 2px 8px var(--brand-blue-shadow);
}
.ad-label .pill {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.ad-label .sid { color: var(--brand-blue); opacity: 0.65; }
.ad-pos { color: var(--brand-blue); }
.ad-title { color: var(--ink-1); }
.ad-sub   { color: var(--ink-3); }
.ad-kicker { color: var(--brand-blue); }
.ad-cta { color: var(--ink-1); }
.ad-cta:hover { color: var(--blue); }
.adblock .dots .d { background: var(--brand-blue-light); }
.adblock .dots .d.on { background: var(--brand-blue); }

/* ---------- Category icon badge (便民服務 + 生意轉讓 list) ---------- */
.cat-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #EEF5FF; border-radius: 12px;
}
.cat-ico--sm {
  width: 30px; height: 30px;
  border-radius: 10px;
  align-self: flex-start;
  margin-top: 2px;
}

/* ---------- Buttons — blue primary (#1E5AA8), warm orange accent ---------- */
.btn.primary {
  background: #1E5AA8;
  color: #fff;
  border-color: #1E5AA8;
  box-shadow: 0 4px 12px -4px rgba(30, 90, 168, 0.28);
  transition: box-shadow 0.18s, transform 0.18s;
}
.btn.primary:hover {
  background: #174985;
  border-color: #174985;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(23, 73, 133, 0.36);
}
.btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px -4px rgba(184, 83, 28, 0.30);
}
.btn.accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(184, 83, 28, 0.40);
  background: #A0461A;
  border-color: #A0461A;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-1);
}
.btn.ghost:hover {
  border-color: var(--brand-blue-border);
  color: var(--blue);
  background: var(--brand-blue-light);
}

/* ---------- Filter pills (category mobile) ---------- */
.mc-pill.active {
  background: var(--ink-1);
  border-color: var(--ink-1);
  color: #fff;
}
.mc-pill.brand {
  background: var(--surface-sunken);
  color: var(--ink-1);
  border-color: var(--surface-sunken);
  font-weight: 600;
}

/* Sort buttons (desktop category) */
.dc-sort.active {
  background: var(--surface-sunken);
  border-color: var(--line-strong);
  color: var(--ink-1);
}

/* Filter rail active option */
.dc-opt.active .box {
  background: var(--ink-1);
  border-color: var(--ink-1);
}
.dc-opt.active { color: var(--ink-1); }

/* Pagination */
.dc-pager .page-btn.active {
  background: #d43939;
  border-color: #d43939;
  color: #fff;
}

/* Mobile FAB + bottom hero — dark round, Version A ---------- */
.mc-fab {
  background: #1E5AA8;
  box-shadow: 0 10px 24px -6px rgba(30, 90, 168, 0.35);
}
.m-tab.hero .hero-btn {
  background: #1E5AA8;
  box-shadow: 0 8px 18px -4px rgba(30, 90, 168, 0.28);
}
.m-tab.active { color: var(--ink-1); }

/* Chip refinements: dia is a solid dark pill in Version A — kill the dot ring */
.chip-dia { box-shadow: none; }
.chip-dia::before { background: #fff; opacity: 1; }

/* ---------- Detail page ---------- */
.md-sticky-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px -8px rgba(26, 26, 24, 0.10);
}
.md-sticky-bar .call-btn { background: #1E5AA8; }
.md-sticky-bar .call-btn:hover { background: #174985; }
.dd-contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.dd-publisher { box-shadow: var(--sh-1); }
.dd-safety { background: var(--surface-sunken); color: var(--ink-2); }

.md-loc-card, .md-stat, .dd-stat-row { box-shadow: var(--sh-1); }
.md-loc-card .pin {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* ---------- Footer — cream surface, neutral dark text (no dark navy block) ---------- */
.d-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.d-footer h4 { color: var(--ink-1); }
.d-footer a { color: var(--ink-2); transition: color 0.15s; }
.d-footer a:hover { color: var(--blue); }
.d-footer .d-brand .cn { color: var(--ink-1); }
.d-footer .d-brand .en { color: var(--ink-3); }
.d-footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--ink-4);
}


/* Image placeholder — cream paper feel */
.img-ph {
  background: linear-gradient(135deg, #EAE4D1 0%, #D6CFB6 100%);
}
.img-ph::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 0 12%, transparent 26%),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,0.32) 0 14%, transparent 30%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.06) 100%);
}

/* Tag soft — warm fill */
.tag-soft { background: var(--surface-sunken); color: var(--ink-2); }

/* Hot keyword outline chips */
.d-hero-tags a.chip-outline,
.mc-hot-tags a.chip-outline {
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.d-hero-tags a.chip-outline:hover,
.mc-hot-tags a.chip-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* ----- Home page tweaks: 8 cats + dual ad slot ----- */

/* 「更多分類」 — fixed position right after 搬運服務 (slot 8/8 in grid)
   Uses dashed border to distinguish from real categories. */
.m-cat--all .ico-wrap,
.d-cat--all .ico-wrap {
  background: var(--surface) !important;
  color: var(--ink-3) !important;
  border: 1px dashed var(--brand-blue-border);
}

/* Desktop main on home: single column wrapper */
.d-main-grid { display: block; }

/* Mid-ad spacing on desktop home */
.d-mid-ad { margin: 28px 0 0; }

/* 便民 + 生意：md 以下上下排列，lg 以上左右並排等高 */
.d-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 1024px) {
  .d-sections-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
  }
}
.d-sec-col {
  display: flex;
  flex-direction: column;
}
.d-sec-col .d-svc-list,
.d-sec-col .d-biz-list {
  flex: 1;
}

/* ----- HOME-only ad style: 米白底 + 淡金 border ----- */
/* Scope by data-ad-slot so /v2/category/* and /v2/info/* ads stay warm-gold */
.adblock[data-ad-slot^="HOME_"] {
  background: var(--surface);
  border: 1px solid var(--brand-blue-border);
  box-shadow: 0 1px 2px var(--brand-blue-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adblock[data-ad-slot^="HOME_"]:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 2px 8px var(--brand-blue-shadow);
}
.adblock[data-ad-slot^="HOME_"] .ad-label .pill {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.adblock[data-ad-slot^="HOME_"] .ad-label .sid {
  color: var(--brand-blue); opacity: 0.65;
}
.adblock[data-ad-slot^="HOME_"] .ad-pos { color: var(--brand-blue); }
.adblock[data-ad-slot^="HOME_"] .ad-title { color: var(--ink-1); }
.adblock[data-ad-slot^="HOME_"] .ad-sub { color: var(--ink-3); }
.adblock[data-ad-slot^="HOME_"] .ad-kicker { color: var(--brand-blue); }
.adblock[data-ad-slot^="HOME_"] .ad-cta { color: var(--ink-1); }
.adblock[data-ad-slot^="HOME_"] .ad-cta:hover { color: var(--blue); }
.adblock[data-ad-slot^="HOME_"] .dots .d { background: var(--brand-blue-light); }
.adblock[data-ad-slot^="HOME_"] .dots .d.on { background: var(--brand-blue); }

/* Home ad heights: mobile dense 88-110px, desktop slightly taller */
.adblock[data-ad-slot^="HOME_"] .ad-body { min-height: 96px; padding: 28px 18px 16px; }
@media (min-width: 769px) {
  .adblock[data-ad-slot^="HOME_"] .ad-body { min-height: 132px; padding: 32px 22px 18px; }
}

/* ============================================================
   ALL-CATEGORIES PAGE (/v2/categories)
   Mobile: stacked cards (1-col) · Desktop: 3-col card grid
   ============================================================ */

/* ── Shared chip row ── */
.ec-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: flex-start;  /* 防止同排 chips 互相撐高 */
}
.ec-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px;             /* 固定高度，統一膠囊外觀 */
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px; color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;      /* 文字不在 chip 內換行 */
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ec-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}
.ec-chip .n {
  font-size: 10.5px; color: var(--ink-4);
  font-family: var(--f-num);
  font-feature-settings: "tnum";
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  line-height: 1;
}

/* ── Mobile: stacked list ── */
.ec-list { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; }

.ec-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ec-group:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 2px 8px var(--brand-blue-shadow);
}
.ec-group-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  text-decoration: none;
  color: var(--ink-1);
}
.ec-group-head:hover .ec-group-name { color: var(--brand-blue); }
.ec-ico-wrap {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.ec-group-name {
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  color: var(--ink-1); flex: 1;
  transition: color 0.15s;
}
.ec-group-count {
  font-size: 11px; color: var(--brand-blue);
  padding: 2px 8px;
  background: var(--brand-blue-light);
  border-radius: var(--r-full);
  font-family: var(--f-num);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.ec-arr { color: var(--ink-4); flex-shrink: 0; }
.ec-group-desc {
  font-size: 11.5px; color: var(--ink-3);
  padding: 0 16px 10px;
}
.ec-chips-wrap { padding: 0 16px 14px; }
.ec-chips-wrap .ec-chips { gap: 6px; }

/* ── Desktop: portal card grid ── */
.ec-cats-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  padding: 28px 0 24px;
  border-bottom: 0;
  color: #fff;
}
.ec-cats-hero h1 {
  margin: 0 0 6px; font-size: 26px; font-weight: 800;
  color: #fff; letter-spacing: -0.03em; line-height: 1.1;
}
.ec-cats-hero p {
  margin: 0; font-size: 13px; color: rgba(255,255,255,0.85);
}
.ec-cats-hero .dc-bc { color: rgba(255,255,255,0.75); }
.ec-cats-hero .dc-bc a { color: rgba(255,255,255,0.85); text-decoration: none; }
.ec-cats-hero .dc-bc a:hover { color: #fff; text-decoration: underline; }
.ec-cats-hero .dc-bc b { color: #fff; }
.ec-cats-hero .sep { color: rgba(255,255,255,0.5); }

.ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 20px 16px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.ec-card:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 4px 20px var(--brand-blue-shadow);
}
.ec-card-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.ec-card-ico {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.ec-card-meta { flex: 1; min-width: 0; }
.ec-card-title {
  display: block; font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink-1);
  text-decoration: none; line-height: 1.2;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.ec-card-title:hover { color: var(--brand-blue); }
.ec-card-count {
  display: inline-block;
  font-size: 11px; color: var(--brand-blue);
  background: var(--brand-blue-light);
  border-radius: var(--r-full);
  padding: 1px 8px;
  font-family: var(--f-num);
  font-feature-settings: "tnum";
}
.ec-card-desc {
  font-size: 12px; color: var(--ink-3);
  margin-bottom: 12px; line-height: 1.5;
}
.ec-card-divider {
  border: 0; border-top: 1px solid var(--line);
  margin: 0 0 12px;
}
.ec-card-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: flex-start; }
.ec-card-chips .ec-chip { font-size: 12px; }

/* ── Responsive ── */
@media (min-width: 769px) and (max-width: 1100px) {
  .ec-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 768px) {
  .ec-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ===================== Card Expand Accordion (ecard / cep) ===================== */

/* dc-grid: align items to start so expanded cards don't stretch siblings */
.dc-grid { align-items: start; }

/* Outer wrapper — replaces listing-card on <a> */
.ecard-wrap {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.ecard-wrap:hover {
  border-color: var(--brand-blue-border);
  box-shadow: 0 6px 18px var(--brand-blue-shadow);
  transform: translateY(-1px);
}
.ecard-wrap.is-open { border-color: var(--brand-blue-border); transform: none; }

/* Main card row (toggle btn + card link) */
.ecard-main { display: flex; align-items: stretch; }

/* Toggle arrow button */
.ecard-toggle {
  width: 32px; flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-right: 1px solid var(--line);
  cursor: pointer; color: var(--ink-4);
  transition: color 0.15s, background 0.15s;
}
.ecard-toggle:hover { color: var(--brand-blue); background: var(--brand-blue-light); }
.ecard-toggle[aria-expanded="true"] { color: var(--brand-blue); background: var(--brand-blue-light); }
.ecard-chevron { transition: transform 0.2s ease; }
.ecard-toggle[aria-expanded="true"] .ecard-chevron { transform: rotate(90deg); }

/* Inner card links — strip their own border/radius (wrapper owns them) */
.ecard-main > a.mc-card,
.ecard-main > a.dc-card { flex: 1; min-width: 0; border: none !important; border-radius: 0 !important; background: none !important; }

/* Expand panel */
.card-exp-panel {
  border-top: 1px solid var(--brand-blue-border);
  background: rgba(0, 96, 180, 0.04);
  padding: 16px 18px 18px;
}
.cep-inner { display: flex; flex-direction: column; gap: 10px; }

/* Metadata chips row */
.cep-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cep-chip {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--brand-blue-border); border-radius: 99px; overflow: hidden;
  font-size: 12px; background: #fff;
}
.cep-lbl {
  background: var(--brand-blue); color: #fff;
  padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: center;
}
.cep-val {
  padding: 2px 10px 2px 7px; color: var(--ink-1); font-weight: 600;
  display: flex; align-items: center; font-family: var(--f-num);
}

/* Title */
.cep-title { font-size: 14px; font-weight: 700; color: var(--ink-1); line-height: 1.4; }

/* Body excerpt */
.cep-body-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px;
}
.cep-body {
  font-size: 13px; line-height: 1.8; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word; overflow: hidden;
}
.cep-body[data-collapsed="true"]  { max-height: 6em; }
.cep-body[data-collapsed="false"] { max-height: none; }
.cep-more-wrap { margin-top: 6px; }
.cep-more-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; font-weight: 600; color: var(--brand-blue);
}
.cep-more-btn:hover { text-decoration: underline; }

/* Contact section */
.cep-contact { display: flex; flex-direction: column; gap: 4px; }
.cep-cc-line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.cep-cc-lbl  { color: var(--ink-3); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.cep-cc-val  { color: var(--ink-1); font-weight: 600; }
.cep-masked  { color: var(--ink-4); font-weight: 400; font-style: italic; }
.cep-tel     { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
.cep-tel:hover { text-decoration: underline; }
.cep-hint    { font-size: 11px; color: var(--ink-4); margin: 2px 0; }
.cep-hint.cep-hint-err { color: #c0392b; }

/* Action buttons */
.cep-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cep-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--brand-blue); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cep-btn-primary { background: var(--brand-blue); color: #fff; }
.cep-btn-primary:hover { background: var(--brand-blue-dark); }
.cep-btn-primary:disabled { opacity: 0.6; cursor: default; }
.cep-btn-ghost { background: #fff; color: var(--brand-blue); }
.cep-btn-ghost:hover { background: var(--brand-blue-light); }

@media (max-width: 768px) {
  .ecard-toggle { width: 28px; }
  .card-exp-panel { padding: 12px 14px 16px; }
  .cep-title { font-size: 13px; }
  .cep-body  { font-size: 12px; }
  .cep-actions { flex-direction: column; }
  .cep-btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   v2026-05-18  List Card Grid (lcard) — 3-col card grid for category/search
   ========================================================================== */

/* === Top horizontal filter bar === */
.flt-bar {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flt-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.flt-lbl {
  font-size: 13px;
  color: #4B5563;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 26px;
  min-width: 56px;
}
.flt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.flt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1;
  color: #374151;
  background: #F3F4F6;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: inherit;
}
.flt-pill:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.flt-pill.active {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
}
.flt-pill[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.flt-pill-quick {
  background: #fff;
  border-color: #D1D5DB;
  color: #374151;
}
.flt-pill-quick:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}
.flt-region-toggle {
  border: 1px solid #D1D5DB;
  font: inherit;
}
.flt-region-row[data-collapsed="true"] .flt-pill-extra { display: none; }

@media (max-width: 768px) {
  .flt-bar { padding: 10px 12px; border-radius: 10px; }
  .flt-row { gap: 8px; }
  .flt-lbl { font-size: 12px; min-width: 48px; }
  .flt-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .flt-pills::-webkit-scrollbar { display: none; }
  .flt-pill { height: 28px; padding: 0 12px; font-size: 12px; }
}

/* === lcard 3-column independent layout ===
   Desktop: 3 flex columns, each column flows independently (one card expanding
   only affects cards below it in the same column).
   Mobile/tablet: columns collapse via `display: contents` and cards are ordered
   by their global `--card-order` so original date sequence is preserved. */
.lcard-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 18px;
}
.lcard-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lcard-col > .lcard-wrap { width: 100%; }

@media (max-width: 1080px) {
  .lcard-grid {
    flex-direction: column;
    gap: 0;
  }
  .lcard-col { display: contents; }
  .lcard-grid .lcard-wrap {
    order: var(--card-order, 0);
    width: 100%;
    margin-bottom: 12px;
  }
}

/* === Single card === */
.lcard-wrap {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.lcard-wrap:hover {
  border-color: var(--brand-blue-border);
  background: #FAFBFD;
  box-shadow: 0 2px 10px var(--brand-blue-shadow);
}
.lcard-wrap.is-top {
  border-color: var(--brand-blue-border);
  background: rgba(0, 96, 180, 0.04);
}
.lcard-wrap.is-top:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}
.lcard-wrap.is-open {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 16px var(--brand-blue-shadow);
}

.lcard-main {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding: 14px 16px 14px 12px;
  align-items: start;
}
.lcard-toggle {
  grid-row: 1 / span 2;
  align-self: center;
  width: 24px; height: 24px;
  border: 0;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.lcard-toggle:hover { background: var(--brand-blue-light); color: var(--brand-blue); }
.lcard-wrap.is-open .lcard-toggle { background: var(--brand-blue); color: #fff; }
.lcard-wrap.is-open .lcard-toggle .ico { transform: rotate(90deg); }
.lcard-toggle .ico { transition: transform 0.15s; }

.lcard-head {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.lcard-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-top: 1px;
}
.lcard-badge-top  { background: #D24A4A; }
.lcard-badge-gold { background: #C9961F; }
.lcard-badge-hot  { background: #E07A2D; }
.lcard-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.45;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcard-title:hover { color: var(--brand-blue); }

.lcard-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.lcard-dates {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.lcard-dates .d-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: Tahoma, Arial, sans-serif;
}
.lcard-dates .d-lbl { color: #9CA3AF; font-size: 11px; }
.lcard-dates .d-val { color: #374151; font-weight: 600; font-size: 12px; }
.lcard-dates .d-row-exp .d-val { color: #D24A4A; }
.lcard-dates .d-val-mute { color: #9CA3AF; font-weight: 400; font-style: italic; }

.lcard-region {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 12px;
  margin-left: auto;
}
.lcard-view {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lcard-view:hover { background: var(--brand-blue); color: #fff; }

/* === Expand panel === */
.lcard-exp { background: #fff; border-top: 1px solid #E5E7EB; }
.lcard-exp[hidden] { display: none; }
.lcard-exp-inner { padding: 12px 14px 12px; }
.lcard-exp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lcard-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #374151;
}
.lcard-chip .c-lbl {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
}

.lcard-exp-body-card {
  background: #FAFBFC;
  border: 1px solid #EEF0F3;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  position: relative;
}
.lcard-exp-body {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.lcard-exp-body[data-collapsed="true"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcard-exp-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.lcard-exp-more-btn {
  background: #fff;
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lcard-exp-more-btn:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

.lcard-exp-contact {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lcard-exp-contact .cc-info {
  flex: 1 1 auto;
  min-width: 0;
}
.lcard-exp-contact .cc-actions {
  flex-shrink: 0;
  margin-top: 0;
}
.lcard-exp-contact .cc-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4B5563;
}
.lcard-exp-contact .cc-lbl { color: #6B7280; min-width: 70px; }
.lcard-exp-contact .cc-val { color: #111827; font-weight: 600; }
.lcard-exp-contact .cc-masked { color: #9CA3AF; font-style: italic; font-weight: 400; letter-spacing: 1px; }
.lcard-exp-contact .cc-tel { color: var(--brand-blue); text-decoration: none; font-weight: 700; }
.lcard-exp-contact .cc-tel:hover { text-decoration: underline; }
.lcard-exp-contact .cc-hint {
  font-size: 11px;
  color: #B83737;
  margin: 6px 0 10px;
  padding: 4px 8px;
  background: #FFF6F6;
  border-left: 3px solid #D24A4A;
  border-radius: 4px;
}
.lcard-exp-contact .cc-hint.cc-hint-err { background: #FFEAEA; }
.lcard-exp-contact .cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lcard-exp-contact .cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand-blue);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lcard-exp-contact .cc-btn-primary { background: var(--brand-blue); color: #fff; }
.lcard-exp-contact .cc-btn-primary:hover { background: var(--brand-blue-dark); }
.lcard-exp-contact .cc-btn-primary:disabled { opacity: 0.6; cursor: default; }
.lcard-exp-contact .cc-btn-ghost { background: #fff; color: var(--brand-blue); }
.lcard-exp-contact .cc-btn-ghost:hover { background: var(--brand-blue); color: #fff; }

@media (max-width: 720px) {
  .lcard-main { padding: 12px 14px 12px 10px; column-gap: 6px; grid-template-columns: 22px 1fr; }
  .lcard-toggle { width: 22px; height: 22px; }
  .lcard-title { font-size: 13.5px; }
  .lcard-meta { gap: 8px; }
  .lcard-exp-inner { padding: 14px 14px 16px; }
  .lcard-exp-contact .cc-actions { flex-direction: column; }
  .lcard-exp-contact .cc-btn { width: 100%; }
}

/* === Pagination (centered) === */
.lcard-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 0 8px;
  font-size: 13px;
  color: #4B5563;
}
.lcard-pager a, .lcard-pager span, .lcard-pager .cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 12.5px;
}
.lcard-pager a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.lcard-pager .cur { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; font-weight: 600; }
.lcard-pager .disabled { opacity: 0.4; cursor: default; }
.lcard-pager .ellipsis { border: 0; background: transparent; }
.lcard-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 12px;
  color: #6B7280;
}
.lcard-pager-jump input {
  width: 56px;
  height: 30px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12.5px;
  text-align: center;
}
.lcard-pager-jump button {
  height: 30px;
  padding: 0 12px;
  background: var(--brand-blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lcard-pager-jump button:hover { background: var(--brand-blue-dark); }

/* ==========================================================================
   v2026-05-18b  Filter bar + compact card refinements
   ========================================================================== */

/* Region row: extras hidden by default, shown when expanded */
.flt-region-row[data-collapsed="true"] .flt-row-extras { display: none; }
.flt-row-extras { margin-top: 8px; }
.flt-row-extras .flt-pills { flex-wrap: wrap; }
.flt-lbl-empty { min-width: 56px; }

/* Toggle button — exactly same dimensions as pill, pushed to row's right edge */
.flt-region-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1;
  font-family: inherit;
  font-weight: 400;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #4B5563;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
  box-sizing: border-box;
}
.flt-region-toggle:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

@media (max-width: 768px) {
  .flt-lbl-empty { display: none; }
  .flt-region-toggle { font-size: 12px; }
}

/* ===== Compact lcard ===== */
.lcard-main {
  padding: 10px 14px 10px 8px;
  column-gap: 6px;
  align-items: center;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  row-gap: 4px;
}
.lcard-toggle {
  grid-row: 1 / span 2;
  width: 22px; height: 22px;
}

.lcard-head {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lcard-badge { margin-top: 0; }

/* Title — single line, ellipsis, click toggles expand */
.lcard-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}
.lcard-title:hover {
  color: var(--brand-blue);
  text-decoration: none;
}
.lcard-wrap.is-open .lcard-title { color: var(--brand-blue); }

/* Meta row — compact single line */
.lcard-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  font-size: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.lcard-date {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.3;
  white-space: nowrap;
}
.lcard-date .d-lbl { color: #9CA3AF; font-size: 11px; }
.lcard-date .d-val { color: #374151; font-weight: 600; font-size: 12px; }

.lcard-region {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.lcard-view {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .lcard-main { padding: 8px 12px 8px 6px; grid-template-columns: 20px 1fr; }
  .lcard-toggle { width: 20px; height: 20px; }
  .lcard-title { font-size: 13px; }
  .lcard-meta { gap: 8px; }
  .lcard-date .d-val { font-size: 11.5px; }
  .lcard-region { font-size: 11.5px; }
  .lcard-view { height: 24px; padding: 0 10px; font-size: 11.5px; }
  .lcard-exp-inner { padding: 10px 12px 10px; }
  /* Contact: stack vertically, button full-width below */
  .lcard-exp-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .lcard-exp-contact .cc-actions { width: 100%; }
  .lcard-exp-contact .cc-actions .cc-btn { display: block; width: 100%; text-align: center; }
}

/* ==========================================================================
   v2026-05-19  Home page: single-column lcard-list + price chip
   ========================================================================== */

/* Single-column vertical stack (home 便民服務 / 生意轉讓 sections) */
.lcard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lcard-list > .lcard-wrap { width: 100%; flex-shrink: 0; }

/* Price chip — orange/red, used by 生意轉讓 */
.lcard-price {
  color: #E07A2D;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  font-family: Tahoma, Arial, sans-serif;
}
@media (max-width: 720px) {
  .lcard-price { font-size: 12px; }
}

/* ==========================================================================
   v2026-05-19  Home page polish
   ========================================================================== */

/* Tighter main padding */
.d-main--tight { padding: 18px 0 48px; }

/* Home ad slots — control height so they don't dominate */
.d-home-ad { margin: 0 0 18px; }
.d-home-ad--top { margin-top: 0; }
.d-home-ad--mid { margin: 24px 0 22px; }
.d-home-ad .ad-card,
.d-home-ad [data-ad-slot] { max-height: 140px; }

/* Tighter category icon row */
.d-cats-wrap { margin-top: 0; padding: 14px 12px 12px; }
.d-cat { padding: 12px 8px; }
.d-cat .ico-wrap { width: 44px; height: 44px; }
.d-cat .ico-wrap .ico { width: 22px; height: 22px; }

/* Section heading less aggressive */
.d-sec-h h2 { font-size: 18px; }
.d-sec-h { margin-bottom: 10px; }
.d-sections-grid { gap: 28px; margin-top: 22px; }

/* Membership row — uniform card height, consistent blue */
.d-mem-row { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.d-mem-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  min-height: 220px;
}
.d-mem-card .desc { min-height: 44px; flex: 1; }
.d-mem-card .ttl { margin-top: 10px; font-size: 16px; }
.d-mem-card .pr { margin-top: 10px; padding-top: 10px; font-size: 13px; }
.d-mem-card .mem-cta { margin-top: 12px; }
.d-mem-card .chip-pill,
.d-mem-card .chip { align-self: flex-start; }

/* Mobile membership grid */
.m-mem-section { padding: 14px 16px 0; }
.m-mem-section .sec-h { padding: 0; margin-bottom: 10px; }
.m-mem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.m-mem-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.m-mem-card:hover { border-color: var(--brand-blue-border); background: #FAFBFD; }
.m-mem-card .ttl { font-size: 14px; font-weight: 700; color: #111827; margin-top: 4px; }
.m-mem-card .desc { font-size: 11.5px; color: #6B7280; line-height: 1.45; }
.m-mem-card .cta { font-size: 12px; color: var(--brand-blue); font-weight: 600; margin-top: 4px; }

/* Mobile category icons: ensure 3-col grid with blue tint */
.m-cats-wrap { padding: 0 12px; margin-top: 12px; }
.m-cats {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 6px 14px;
  gap: 2px;
}
.m-cat .ico-wrap {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}
.m-cat .ico-wrap .ico { stroke: var(--brand-blue); }

/* Desktop category icon stroke color */
.d-cat .ico-wrap .ico { stroke: var(--brand-blue); }

/* Section header on mobile */
.sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.sec-h .t { font-size: 15px; font-weight: 700; color: #111827; }
.sec-h .t .en { font-size: 11px; color: #6B7280; font-weight: 400; margin-left: 4px; }
.sec-h .more { font-size: 12px; color: var(--brand-blue); display: inline-flex; align-items: center; gap: 2px; }

/* ==========================================================================
   v2026-05-19  Mobile home header — single row: brand + search + login
   ========================================================================== */
.m-header--home {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px;
  background: var(--bg);
  box-sizing: border-box;
}
.m-header--home .m-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.m-header--home .m-brand .logo {
  width: 28px;
  height: 28px;
  display: block;
}
.m-header--home .m-brand .cn {
  font-size: 15px;
  color: var(--ink-1);
  line-height: 1;
  white-space: nowrap;
}

.m-home-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 36px;
  background: var(--brand-blue-light);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 4px 0 12px;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.m-home-search:focus-within {
  background: #fff;
  border-color: var(--brand-blue);
}
.m-home-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1;
  padding: 0;
}
.m-home-search input::placeholder {
  color: #9CA3AF;
  font-size: 12.5px;
}
.m-home-search button {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
}
.m-home-search button:hover { background: var(--brand-blue-dark); }
.m-home-search button .ico { stroke: #fff; }

.m-header--home .m-login-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.m-header--home .m-login-btn:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Very narrow screens — drop EN brand cn if too tight */
@media (max-width: 360px) {
  .m-header--home { gap: 6px; padding: 0 10px; }
  .m-header--home .m-brand .cn { font-size: 14px; }
  .m-home-search { height: 34px; padding-left: 10px; }
  .m-home-search input { font-size: 12.5px; }
}

/* ==========================================================================
   v2026-05-19  Mobile interior page header — 3-section
   Left: ← 返回  |  Middle: Logo + 歐浪網  |  Right: 登入/我的
   ========================================================================== */
.m-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 4px;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 4px;
}
.m-inner-header .m-inner-back,
.m-inner-header .m-inner-user {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 60px;
  white-space: nowrap;
}
.m-inner-header .m-inner-back { justify-content: flex-start; }
.m-inner-header .m-inner-user { justify-content: flex-end; }
.m-inner-header .m-inner-back:hover,
.m-inner-header .m-inner-user:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.m-inner-header .m-inner-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.m-inner-header .m-inner-brand .logo {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.m-inner-header .m-inner-brand .cn {
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .m-inner-header { padding: 0 2px; }
  .m-inner-header .m-inner-back,
  .m-inner-header .m-inner-user { min-width: 50px; padding: 0 8px; font-size: 12px; }
  .m-inner-header .m-inner-back span,
  .m-inner-header .m-inner-user span { display: none; }
  .m-inner-header .m-inner-brand .cn { font-size: 13px; }
}

/* ==========================================================================
   v2026-05-19  Mobile filter scroll hints + subcat toggle
   ========================================================================== */

/* Subcat extras toggle behavior — mirror region row */
.flt-subcat-row[data-collapsed="true"] .flt-row-extras { display: none; }
.flt-subcat-row .flt-row-extras { margin-top: 8px; }
.flt-subcat-row .flt-row-extras .flt-pills { flex-wrap: wrap; }

/* Scroll-wrap: contains pills + left/right arrows */
.flt-scroll-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.flt-scroll-wrap .flt-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Desktop: pills wrap, no scroll arrows */
.flt-scroll-arrow { display: none; }
@media (min-width: 769px) {
  .flt-scroll-wrap .flt-pills-primary { flex-wrap: wrap; }
}

/* Mobile: nowrap scroll + scroll hint arrows */
@media (max-width: 768px) {
  .flt-row { flex-wrap: nowrap; align-items: center; gap: 6px; }
  .flt-scroll-wrap .flt-pills-primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 2px 22px;
    margin: 0 -4px;
  }
  .flt-scroll-wrap .flt-pills-primary::-webkit-scrollbar { display: none; }

  .flt-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    background: #fff;
    color: var(--brand-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--brand-blue-border), 0 1px 3px rgba(0,0,0,0.06);
    z-index: 2;
    cursor: pointer;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
  }
  .flt-scroll-arrow:hover { opacity: 1; }
  .flt-scroll-arrow-l { left: -4px; }
  .flt-scroll-arrow-r { right: -4px; }

  /* Hide arrows based on scroll state */
  .flt-scroll-wrap[data-scroll-state="none"] .flt-scroll-arrow,
  .flt-scroll-wrap[data-scroll-state="start"] .flt-scroll-arrow-l,
  .flt-scroll-wrap[data-scroll-state="end"]   .flt-scroll-arrow-r {
    opacity: 0;
    pointer-events: none;
  }

  /* Toggle button stays compact at right end */
  .flt-region-toggle,
  .flt-subcat-toggle {
    flex-shrink: 0;
    font-size: 12px;
    padding: 0 10px;
    height: 26px;
  }
}

/* ==========================================================================
   v2026-05-19  Sort row: desktop pills vs mobile dropdown
   ========================================================================== */
.dc-sort-row { align-items: center; gap: 10px; padding: 0 4px 12px; }
.dc-sort-row .info { flex: 1 1 auto; min-width: 0; font-size: 12px; color: #6B7280; }

.sort-dropdown-mobile { display: none; }

@media (max-width: 768px) {
  .dc-sort-row .group.sort-pills-desktop { display: none !important; }
  .sort-dropdown-mobile { display: block; position: relative; flex-shrink: 0; }

  .sort-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    height: 32px; padding: 0 12px;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    font: inherit; font-size: 12.5px; color: #374151;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
  }
  .sort-trigger:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
  .sort-trigger .sort-lbl { color: #6B7280; }
  .sort-trigger .sort-val { font-weight: 600; color: var(--brand-blue); }
  .sort-trigger .sort-caret { transition: transform 0.15s; flex-shrink: 0; }
  .sort-dropdown[data-open="true"] .sort-trigger { border-color: var(--brand-blue); }
  .sort-dropdown[data-open="true"] .sort-caret { transform: rotate(180deg); }

  .sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 4px;
    z-index: 30;
    display: none;
  }
  .sort-dropdown[data-open="true"] .sort-menu { display: block; }

  .sort-menu-item {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.4;
  }
  .sort-menu-item:hover { background: var(--brand-blue-light); color: var(--brand-blue); }
  .sort-menu-item.active {
    background: var(--brand-blue);
    color: #fff;
    font-weight: 600;
  }

  .dc-sort-row { padding: 0 12px 10px; }
}

/* ==========================================================================
   v2026-05-19  Mobile filter — 3 triggers + expandable panels
   ========================================================================== */
.flt-mobile { display: none; }

@media (max-width: 768px) {
  .flt-bar-desktop { display: none; }
  .flt-mobile {
    display: block;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 10px;
    margin: 0 0 12px;
  }
  .flt-mob-triggers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .flt-mob-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 36px;
    padding: 0 10px;
    background: var(--brand-blue-light);
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    color: #4B5563;
    cursor: pointer;
    line-height: 1;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .flt-mob-btn .lbl {
    color: #6B7280;
    font-size: 11px;
    flex-shrink: 0;
  }
  .flt-mob-btn .val {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #111827;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }
  .flt-mob-btn .caret {
    flex-shrink: 0;
    color: #9CA3AF;
    transition: transform 0.15s;
  }
  .flt-mob-btn.is-set { background: #fff; border-color: var(--brand-blue); }
  .flt-mob-btn.is-set .val { color: var(--brand-blue); }
  .flt-mob-btn[aria-expanded="true"] {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
  }
  .flt-mob-btn[aria-expanded="true"] .lbl,
  .flt-mob-btn[aria-expanded="true"] .val,
  .flt-mob-btn[aria-expanded="true"] .caret { color: #fff; }
  .flt-mob-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

  /* Panel (white card, pills wrap) */
  .flt-mob-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F3F4F6;
  }
  .flt-mob-panel[hidden] { display: none; }
  .flt-mob-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .flt-mob-pills .flt-pill {
    height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 999px;
    background: #F3F4F6;
    color: #374151;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .flt-mob-pills .flt-pill:hover {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
  }
  .flt-mob-pills .flt-pill.active {
    background: var(--brand-blue);
    color: #fff;
    font-weight: 600;
  }
}

/* ==========================================================================
   v2026-05-19  Stats text — desktop vs mobile variant
   ========================================================================== */
.info-mobile { display: none; }
@media (max-width: 768px) {
  .info-desktop { display: none; }
  .info-mobile { display: inline; }
  /* Higher specificity + !important to override .dc-sort-row .group flex */
  .dc-sort-row .group.sort-pills-desktop,
  .dc-sort-row > .group.sort-pills-desktop { display: none !important; }
  .dc-sort-row {
    padding: 6px 12px 8px;
    font-size: 12px;
    color: #6B7280;
  }
  .dc-sort-row .info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   v2026-05-19  Desktop region row: nowrap + scroll, toggle pinned right
   Subcat row保持 wrap 行為不變
   ========================================================================== */
@media (min-width: 769px) {
  /* Region row only: keep label + scroll-wrap + toggle on one line */
  .flt-region-row > .flt-row { flex-wrap: nowrap; }
  .flt-region-row .flt-scroll-wrap .flt-pills-primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .flt-region-row .flt-scroll-wrap .flt-pills-primary::-webkit-scrollbar { display: none; }
  /* Show scroll arrows on desktop for region row */
  .flt-region-row .flt-scroll-arrow {
    display: inline-flex;
    width: 22px;
    height: 22px;
    background: #fff;
    color: var(--brand-blue);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--brand-blue-border);
    opacity: 0.75;
  }
  .flt-region-row .flt-scroll-arrow:hover { opacity: 1; }
  .flt-region-row .flt-scroll-wrap[data-scroll-state="none"] .flt-scroll-arrow,
  .flt-region-row .flt-scroll-wrap[data-scroll-state="start"] .flt-scroll-arrow-l,
  .flt-region-row .flt-scroll-wrap[data-scroll-state="end"]   .flt-scroll-arrow-r {
    opacity: 0;
    pointer-events: none;
  }
  .flt-region-row .flt-region-toggle { flex-shrink: 0; }
}

/* ==========================================================================
   v2026-05-19  Region row layout fix
   - Primary row: single line [Label][Scroll chips][Toggle]
   - Extras row: hidden when data-collapsed=true; wraps when expanded
   - Region row: NO scroll arrows (just horizontal scroll)
   - Subcat row scroll arrows untouched
   ========================================================================== */
.flt-region-row > .flt-row:not(.flt-row-extras) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.flt-region-row > .flt-row:not(.flt-row-extras) > .flt-lbl {
  flex: 0 0 auto;
  min-width: 56px;
  line-height: 1;
}
.flt-region-row > .flt-row:not(.flt-row-extras) .flt-scroll-wrap {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  display: block;
}
.flt-region-row > .flt-row:not(.flt-row-extras) .flt-pills-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 2px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.flt-region-row > .flt-row:not(.flt-row-extras) .flt-pills-primary::-webkit-scrollbar { display: none; }
.flt-region-row > .flt-row:not(.flt-row-extras) .flt-pills-primary .flt-pill { flex-shrink: 0; }

/* Remove region row scroll arrows entirely — keep only horizontal scroll */
.flt-region-row .flt-scroll-arrow { display: none !important; }

/* Toggle pinned right */
.flt-region-row .flt-region-toggle {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

/* Extras row: wrap pills when visible */
.flt-region-row .flt-row-extras .flt-pills { flex-wrap: wrap; }

/* ==========================================================================
   v2026-05-19  Membership page overflow + responsive fix
   ========================================================================== */

/* Global overflow protection within membership page */
.member-page,
.member-page * {
  box-sizing: border-box;
  max-width: 100%;
}
.member-page { overflow-x: hidden; }

/* Long strings (phone, email, prices, chinese punctuation) — allow break */
.member-hero .quick-card,
.member-hero .quick-card .quick-phone,
.member-hero .quick-card .quick-phone a,
.member-hero .quick-card .quick-sub,
.member-hero .quick-card .quick-sub a,
.faq-card .faq-item p,
.faq-card .faq-item a,
.faq-card .faq-note,
.ap-price,
.ap-cat,
.benefit-card .b-title,
.benefit-card .b-sub {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mid-width tablets: hero collapses earlier to single column */
@media (max-width: 960px) {
  .member-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Mobile (≤768px): full single-column everywhere */
@media (max-width: 768px) {
  .benefit-grid,
  .ad-pricing-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .member-hero { padding: 16px; }
  .member-hero .hero-title { font-size: 18px; line-height: 1.3; }
  .member-hero .hero-sub { font-size: 13px; line-height: 1.65; }
  .member-hero .quick-card .quick-phone { font-size: 15px; }
  .member-hero .quick-card .quick-phone a { display: inline-block; }
  .ap-card { min-height: auto; padding: 12px 14px; }
  .ap-price { font-size: 13px; }
  .ap-price b { font-size: 15px; }
  .faq-card .faq-item { padding: 10px 12px; font-size: 12.5px; }
}

/* Extra narrow (≤380px) — squeeze further */
@media (max-width: 380px) {
  .member-hero { padding: 14px; }
  .member-hero .hero-title { font-size: 17px; }
  .member-page .section-title { font-size: 14px; }
}

/* ==========================================================================
   v2026-05-20  Mobile tabbar: hide on desktop (≥769px) globally
   ========================================================================== */
@media (min-width: 769px) {
  .m-tabbar { display: none !important; }
}

/* ==========================================================================
   v2026-05-20  Mobile tabbar — hero (發布) active state on /post
   ========================================================================== */
.m-tab.hero.active .hero-btn {
  background: var(--brand-blue);
  box-shadow: 0 8px 22px rgba(0, 96, 180, 0.35);
}
.m-tab.hero.active .lbl {
  color: var(--brand-blue);
  font-weight: 700;
}

/* ==========================================================================
   v2026-05-20  Global body bottom padding on mobile (tabbar = position:fixed)
   ========================================================================== */
@media (max-width: 768px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 14px)); }
}

/* ==========================================================================
   v2026-05-20  Mobile header — fixed at top, content shifted down
   Applies to both .m-header--home (home page) and .m-inner-header (all inner pages)
   ========================================================================== */
@media (max-width: 768px) {
  .m-header--home,
  .m-inner-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  }
  /* Add top padding so content doesn't go under fixed header (56px header height) */
  body {
    padding-top: 56px;
  }
}

/* ==========================================================================
   v2026-05-20  Back-to-top floating button — global
   Mobile tabbar z-index = 30, header = 50
   Back-to-top z-index = 25 (above content, below nav)
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 96, 180, 0.3);
  cursor: pointer;
  z-index: 25;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
}
.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--brand-blue-dark);
}
.back-to-top:active { transform: translateY(0); }
.back-to-top[hidden] { display: none; }

@media (max-width: 768px) {
  /* Place above floating mobile tabbar (64px + safe-area + spacing) */
  .back-to-top {
    bottom: calc(84px + env(safe-area-inset-bottom, 14px));
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   v2026-05-20  Region chips: right padding so last chip clears toggle button
   ========================================================================== */
.flt-region-row > .flt-row:not(.flt-row-extras) .flt-pills-primary {
  padding-right: 12px;
}

/* ==========================================================================
   v2026-05-20  Header search field — white bg, brand-blue focus accent
   Desktop (.d-search) + Mobile home (.m-home-search) unified
   ========================================================================== */
.d-search,
.m-home-search {
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.d-search:hover,
.m-home-search:hover {
  border-color: var(--brand-blue) !important;
}
.d-search:focus-within,
.m-home-search:focus-within {
  background: #fff !important;
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 96, 180, 0.10) !important;
}
.d-search input::placeholder,
.m-home-search input::placeholder {
  color: #9CA3AF !important;
}

/* ==========================================================================
   v2026-05-20  Subcat row — pills cluster to left, toggle hugs them on desktop
   (region row keeps its flex:1 behavior — has more pills that naturally fill)
   ========================================================================== */
@media (min-width: 769px) {
  .flt-subcat-row > .flt-row > .flt-scroll-wrap {
    flex: 0 1 auto;        /* shrink to content; don't grow to fill row */
    width: auto;
    max-width: calc(100% - 56px - 120px - 24px); /* leave room for label + toggle + gaps */
  }
  .flt-subcat-row > .flt-row > .flt-scroll-wrap .flt-pills-primary {
    width: auto;
  }
  .flt-subcat-row > .flt-row {
    align-items: center;
  }
}

/* ==========================================================================
   v2026-05-20  Home page lcard (便民服務 / 生意轉讓) — light blue palette
   Scoped to .lcard-list (only used on home page sections)
   ========================================================================== */
.lcard-list .lcard-wrap {
  background: rgba(0, 96, 180, 0.04);
  border-color: var(--brand-blue-border);
}
.lcard-list .lcard-wrap:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 96, 180, 0.12);
}
/* Pinned posts — light blue with subtle red accent on badge (no cream bg) */
.lcard-list .lcard-wrap.is-top {
  background: rgba(0, 96, 180, 0.06);
  border-color: var(--brand-blue-border);
}
.lcard-list .lcard-wrap.is-top:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
}
/* Toggle chevron + region label + view button — brand-blue */
.lcard-list .lcard-toggle { color: var(--brand-blue); }
.lcard-list .lcard-region { color: var(--brand-blue); }
.lcard-list .lcard-view {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
}
.lcard-list .lcard-view:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ==========================================================================
   v2026-05-20  Whole-card click to expand — cursor + a11y hint
   ========================================================================== */
.lcard-main {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 96, 180, 0.08);
}
.lcard-main .lcard-view {
  /* Ensure 查看 button keeps its link cursor and doesn't inherit the pointer style */
  cursor: pointer;
}
/* Subtle hover signal on the whole card */
.lcard-wrap:hover .lcard-toggle {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* ==========================================================================
   v2026-05-20  Home page lcard-list — fixed height, scrollable, thin scrollbar
   Applied to /便民服務 + /生意轉讓 sections on home only (.lcard-list)
   ========================================================================== */
/* lcard-list: natural height — 5 cards stack without scrolling */

/* ==========================================================================
   v2026-05-20  Home section bottom "查看全部 →" link
   ========================================================================== */
.lcard-list-more {
  display: block;
  text-align: center;
  margin: 10px 12px 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid var(--brand-blue-border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lcard-list-more:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
}
@media (min-width: 769px) {
  .lcard-list-more { margin: 12px 0 0; }
}

/* ==========================================================================
   v2026-05-20  Home manual 「載入更多」 button
   ========================================================================== */
.lcard-list-loadmore {
  display: block;
  width: calc(100% - 24px);
  margin: 10px 12px 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--brand-blue-border);
  border-radius: 999px;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lcard-list-loadmore:hover:not(:disabled) {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
}
.lcard-list-loadmore:disabled { cursor: default; opacity: 0.85; }
.lcard-list-loadmore .idle-text,
.lcard-list-loadmore .loading-text,
.lcard-list-loadmore .done-text { display: none; }
.lcard-list-loadmore:not([data-loading="true"]):not([data-done="true"]) .idle-text { display: inline; }
.lcard-list-loadmore[data-loading="true"] .loading-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
}
.lcard-list-loadmore[data-loading="true"] .loading-text::before {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid var(--brand-blue-light);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: lcardSpin 0.7s linear infinite;
  display: inline-block;
}
.lcard-list-loadmore[data-done="true"] {
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #9CA3AF;
}
.lcard-list-loadmore[data-done="true"] .done-text { display: inline; }
@keyframes lcardSpin { to { transform: rotate(360deg); } }
@media (min-width: 769px) {
  .lcard-list-loadmore { width: 100%; margin: 12px 0 0; }
}

/* ==========================================================================
   v2026-05-20  Newly loaded lcards — fade up animation
   ========================================================================== */
@keyframes lcardFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 帖子載入動畫已停用（客戶要求：直接顯示、無淡入/滑入）*/
.lcard-just-loaded {
  animation: none !important;
  will-change: auto;
}

/* ==========================================================================
   v2026-05-21  Unified breadcrumb section — header 下、main 上
   ========================================================================== */
.dc-bc-section {
  background: var(--bg);
  padding: 14px 0 6px;
}
.dc-bc-section .dc-bc {
  margin: 0;
  flex-wrap: wrap;
  min-height: 18px;
}
.dc-bc a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s;
}
.dc-bc a:hover { color: var(--brand-blue); }
.dc-bc b[aria-current="page"] {
  color: var(--ink-1);
  font-weight: 600;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .dc-bc-section { padding: 8px 0 2px; }
  .dc-bc-section .d-shell { padding: 0 14px; }
  .dc-bc { font-size: 11.5px; gap: 4px; }
  .dc-bc .sep { font-size: 11px; }
  .dc-bc b[aria-current="page"] { max-width: 55%; }
}

/* ==========================================================================
   v2026-05-21  Mobile home category card — remove double-box
   Earlier rules set border/bg on BOTH .m-cats-wrap AND .m-cats, causing
   nested frames on mobile. Wrap is now a pure layout container; the inner
   .m-cats grid keeps the single bordered card look.
   Scoped to mobile only (avoids touching desktop .d-cats).
   ========================================================================== */
@media (max-width: 768px) {
  .m-cats-wrap {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 12px !important;
    margin: 12px 0 0 !important;
  }
}

/* ==========================================================================
   v2026-05-21  最新消息 /news — list + detail
   ========================================================================== */
.news-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  padding: 28px 22px;
  border-radius: 14px;
  margin: 6px 0 20px;
}
.news-hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.news-hero-sub {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.news-section-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.015em;
}
.news-section-ico {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Pinned grid */
.news-pinned-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-pinned-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-blue);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-1);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.news-pinned-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 96, 180, 0.12);
  border-left-color: var(--brand-blue-dark);
}
.news-pinned-card.news-card-cat-important { border-left-color: #DC2626; }
.news-pinned-card.news-card-cat-event     { border-left-color: #F59E0B; }
.news-pinned-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}
.news-pinned-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-1);
}
.news-pinned-sum {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* News list grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-1);
  transition: transform 0.15s, box-shadow 0.15s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--brand-blue-light);
}
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}
.news-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-sum {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more {
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 600;
  margin-top: 2px;
}

/* Category chips */
.news-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}
.news-chip-notice    { background: rgba(0, 96, 180, 0.10); color: var(--brand-blue); }
.news-chip-event     { background: rgba(245, 158, 11, 0.12); color: #B45309; }
.news-chip-important { background: rgba(220, 38, 38, 0.10); color: #B91C1C; }

/* Empty / placeholders */
.news-empty {
  background: #fff;
  border: 1px dashed var(--line);
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-3);
  border-radius: 12px;
}
.news-empty-sub { font-size: 12px; color: var(--ink-3); padding: 14px 0; }

/* Detail article */
.news-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
}
.news-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.news-article-views { margin-left: auto; font-size: 11.5px; }
.news-article-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink-1);
}
.news-article-sum {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  padding: 12px 14px;
  background: var(--brand-blue-light);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 6px 6px 0;
}
.news-article-cover {
  margin: 0 0 20px;
  border-radius: 10px;
  overflow: hidden;
}
.news-article-cover img { width: 100%; height: auto; display: block; }
.news-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-1);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.news-article-body a { color: var(--brand-blue); text-decoration: underline; }

.news-back { margin: 24px 0 0; text-align: center; }
.news-back-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.news-back-link:hover { color: var(--brand-blue-dark); }

/* Tablet */
@media (max-width: 1024px) {
  .news-pinned-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile */
@media (max-width: 640px) {
  .news-hero { padding: 22px 16px; margin: 4px 0 16px; }
  .news-hero-title { font-size: 22px; }
  .news-pinned-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-grid-compact { grid-template-columns: 1fr; }
  .news-article { padding: 20px 18px; }
  .news-article-title { font-size: 20px; }
}

/* ==========================================================================
   v2026-05-21  Logo v2 — new wide horizontal Eulam logo (歐浪網 + EULAM 文字 inline)
   The image already contains the brand text, so .cn / .stack siblings are hidden.
   ========================================================================== */

/* Desktop header */
.d-brand .logo-v2 {
  width: auto !important;
  height: 48px !important;
  max-height: 52px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}
.d-brand:has(.logo-v2) { gap: 0; padding-left: 4px; padding-right: 14px; }
/* :has fallback for old browsers — explicitly hide sibling text spans */
.d-brand .logo-v2 ~ .stack,
.d-brand .logo-v2 ~ .cn,
.d-brand .logo-v2 ~ .en { display: none !important; }

/* Mobile header */
.m-brand .logo-v2 {
  width: auto !important;
  height: 38px !important;
  max-height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}
.m-brand:has(.logo-v2) { gap: 0; }
.m-brand .logo-v2 ~ .cn,
.m-brand .logo-v2 ~ .en,
.m-brand .logo-v2 ~ .stack { display: none !important; }

/* Footer brand */
.d-foot-brand .logo-v2-footer {
  width: auto !important;
  height: 40px !important;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  image-rendering: -webkit-optimize-contrast;
}
.d-foot-brand { display: block; }

/* Narrow phones — keep header height controlled */
@media (max-width: 768px) {
  .m-brand .logo-v2 { height: 36px !important; }
}
@media (max-width: 360px) {
  .m-brand .logo-v2 { height: 32px !important; }
}

/* ==========================================================================
   v2026-05-21  /membership v2 — clean plan cards (4/2/1 responsive)
   ========================================================================== */
.mp-page { padding: 6px 0 56px; }

/* Hero */
.mp-hero {
  text-align: center;
  padding: 26px 16px 30px;
  margin-bottom: 26px;
}
.mp-hero-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.mp-hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}
.mp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--brand-blue-light);
  border: 1px solid var(--brand-blue-border);
  border-radius: 99px;
  font-size: 13px;
}
.mp-hero-tag span { color: var(--brand-blue); font-weight: 600; }
.mp-hero-tag a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  border-left: 1px solid var(--brand-blue-border);
  padding-left: 12px;
}
.mp-hero-tag a:hover { text-decoration: underline; }

/* Plan grid — desktop 4 columns, tablet 2, mobile 1 */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

/* Card */
.mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px 22px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.mp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 96, 180, 0.10);
  border-color: var(--brand-blue-border);
}
.mp-card.is-recommended {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 10px 24px rgba(0, 96, 180, 0.14);
}
.mp-card.is-recommended:hover {
  box-shadow: 0 18px 36px rgba(0, 96, 180, 0.20);
}

/* Recommended badge */
.mp-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0, 96, 180, 0.35);
}

/* Head */
.mp-card-head { margin-bottom: 16px; }
.mp-card-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin-bottom: 4px;
}
.mp-card-tagline {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Price */
.mp-card-price-block {
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.mp-card-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--f-num, inherit);
}
.mp-card.is-recommended .mp-card-price { color: var(--brand-blue); }
.mp-card-unit {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

/* Features */
.mp-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1 1 auto;
}
.mp-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.mp-feat-ic {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-blue);
}

/* CTA — locked at card bottom (flex column + flex:1 on features above) */
.mp-card-cta {
  display: block;
  text-align: center;
  padding: 11px 14px;
  background: #fff;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.mp-card-cta:hover {
  background: var(--brand-blue-light);
}
.mp-card-cta-primary {
  background: var(--brand-blue);
  color: #fff;
}
.mp-card-cta-primary:hover {
  background: var(--brand-blue-dark);
  color: #fff;
}

/* Contact section */
/* ==========================================================================
   付款方式 / 推薦資訊（轉換率優化版 .pay2）2026-06-05 — Mobile First
   ========================================================================== */
.pay2 { margin-bottom: 18px; }

/* 區塊 1：標題 hero 卡 */
.pay2-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #1f4e79, #2f6db3);
  color: #fff; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 8px 22px -10px rgba(31, 78, 121, .55);
  margin-bottom: 16px;
}
.pay2-hero-ic { font-size: 32px; line-height: 1; flex-shrink: 0; }
.pay2-hero-title { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.pay2-hero-sub { margin: 0; font-size: 13.5px; opacity: .92; line-height: 1.5; }

/* 區塊 2：聯絡客服 雙卡 */
.pay2-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.pay2-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 20px; text-align: center;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .14);
  transition: box-shadow .18s ease, transform .18s ease;
  display: flex; flex-direction: column; align-items: center;
}
.pay2-card:hover { box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .22); transform: translateY(-2px); }
.pay2-card--phone { justify-content: center; }
.pay2-card-h { font-size: 15px; font-weight: 800; color: var(--ink-1); margin-bottom: 12px; }
.pay2-card-ic { margin-right: 2px; }
.pay2-qr { width: 200px; height: 200px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pay2-wechat-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.pay2-wechat-id {
  font-size: 16px; font-weight: 800; color: var(--brand-blue);
  background: var(--brand-blue-light); padding: 6px 12px; border-radius: 8px; letter-spacing: .02em;
}
.pay2-copy {
  border: 1px solid var(--brand-blue); background: #fff; color: var(--brand-blue);
  font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pay2-copy:hover { background: var(--brand-blue); color: #fff; }
.pay2-copy.copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.pay2-card-hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* 電話卡 */
.pay2-phone-num { font-size: 30px; font-weight: 900; color: var(--ink-1); letter-spacing: .02em; line-height: 1.1; }
.pay2-phone-sub { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 16px; }
.pay2-cta-col { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; }
.pay2-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 12px; font-size: 16px; font-weight: 800; text-decoration: none;
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.pay2-cta:active { transform: scale(.98); }
.pay2-cta--call { background: var(--brand-blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(31, 78, 121, .6); }
.pay2-cta--call:hover { filter: brightness(1.08); }
.pay2-cta--wa { background: #25d366; color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .6); }
.pay2-cta--wa:hover { filter: brightness(1.06); }

/* 區塊 3：收費標準 卡片 grid */
.pay2-sec-title { margin: 22px 0 12px; font-size: 16px; font-weight: 800; color: var(--ink-1); }
.pay2-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay2-price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px;
  text-align: center; box-shadow: 0 4px 14px -10px rgba(15, 23, 42, .14);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pay2-price-card:hover { border-color: var(--brand-blue); transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(31, 78, 121, .3); }
.pay2-price-days { font-size: 14px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.pay2-price-amt { font-size: 28px; font-weight: 900; color: var(--brand-blue); line-height: 1; }
.pay2-price-cur { font-size: 12px; font-weight: 700; color: var(--ink-4); margin-left: 3px; }

/* 區塊 4：付款流程 — 單排卡片 + 箭頭（桌機單行置中、手機橫向滑動，永不換行）*/
.pay2-flow {
  display: flex;
  align-items: stretch;            /* 卡片高度一致 */
  gap: 8px;
  justify-content: center;         /* 桌機水平置中 */
  overflow-x: auto;                /* 手機可左右滑 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}
.pay2-flow::-webkit-scrollbar { display: none; }
.pay2-flow-card {
  flex: 0 0 auto;                  /* 不壓縮、不換行 */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 92px; padding: 12px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, .14);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pay2-flow-card:hover { border-color: var(--brand-blue); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(31, 78, 121, .3); }
.pay2-flow-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-blue); color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pay2-flow-txt { font-size: 13.5px; font-weight: 700; color: var(--ink-1); white-space: nowrap; }
.pay2-flow-arrow { flex: 0 0 auto; align-self: center; color: var(--brand-blue); font-size: 18px; font-weight: 700; }
@media (max-width: 640px) {
  .pay2-flow { justify-content: flex-start; }   /* 手機靠左起始，左右滑看完整流程 */
}

/* 區塊 5：注意事項 灰卡 */
.pay2-notes {
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
}
.pay2-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pay2-note-ic { color: #16a34a; font-weight: 900; flex-shrink: 0; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .pay2-contact { grid-template-columns: 1fr; }
  .pay2-price-grid { grid-template-columns: 1fr 1fr; }   /* 手機 2×2 */
  .pay2-notes { grid-template-columns: 1fr; }
  .pay2-hero-title { font-size: 17px; }
  .pay2-phone-num { font-size: 26px; }
}

.mp-contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 24px;
  text-align: center;
}
.mp-contact-title {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}
.mp-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.mp-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--brand-blue-light);
  border-radius: 10px;
}
.mp-contact-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.mp-contact-label {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.mp-contact-value {
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 600;
  text-decoration: none;
}
a.mp-contact-value:hover { color: var(--brand-blue); }
.mp-contact-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}
.mp-contact-note b { color: var(--ink-2); }

/* Tablet — 2 columns */
@media (max-width: 1024px) {
  .mp-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile — 1 column */
@media (max-width: 640px) {
  .mp-page { padding: 4px 0 36px; }
  .mp-hero { padding: 18px 12px 22px; margin-bottom: 18px; }
  .mp-hero-title { font-size: 22px; }
  .mp-hero-sub { font-size: 13px; }
  .mp-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .mp-card { padding: 22px 18px 18px; }
  .mp-card-price { font-size: 26px; }
  .mp-contact { padding: 22px 18px 18px; }
  .mp-contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .mp-hero-tag { flex-direction: column; gap: 6px; }
  .mp-hero-tag a { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   v2026-05-21  Inner-page bottom breathing room — applies to dashboard,
   profile, membership and similar pages that previously hugged the footer.
   ========================================================================== */
.page-bottom-pad { padding-bottom: 120px; }
@media (max-width: 768px) {
  .page-bottom-pad { padding-bottom: 80px; }
}
/* Also bump .mp-page bottom to align with other inner pages */
.mp-page { padding-bottom: 120px; }
@media (max-width: 768px) { .mp-page { padding-bottom: 80px; } }

/* ==========================================================================
   v2026-05-21  Ads v3.4 — 雙版型輪播
   - .adblock-layout-single  → 每頁 1 張全寬（最大 1080px 置中）
   - .adblock-layout-dual    → 桌機每頁 2 張同排 50/50
   - 手機 ≤640px              → 強制回到 1 張全寬（即使 layout=dual）
   - object-fit: contain 永遠不裁切 GIF
   - 無 label、無箭頭，dots 在外框下方置中
   ========================================================================== */
.adblock-v3 {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-sizing: border-box;
  /* Defeat legacy clipping:
       .adblock { overflow: hidden }
       .d-home-ad [data-ad-slot] { max-height: 140px }
     so dots can render below the image. */
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
.d-home-ad,
.d-home-ad [data-ad-slot] {
  max-height: none !important;
  overflow: visible !important;
}
.adblock-v3 .ad-viewport { position: relative; }

/* Page = one carousel slide (1 or 2 tiles) */
.adblock-v3 .ad-page {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.adblock-v3 .ad-page-single { justify-content: center; }
.adblock-v3 .ad-page-single > .ad-tile { flex: 1 1 100%; }
.adblock-v3 .ad-page-pair > .ad-tile   { flex: 1 1 0; min-width: 0; }
.adblock-v3 .ad-page-triple > .ad-tile { flex: 1 1 0; min-width: 0; }

/* Visibility helpers scoped to ad slots (triple mode needs 3 device buckets) */
.ad-tablet-only, .ad-desktop-only { display: none; }
@media (min-width: 769px) and (max-width: 1024px) {
  .ad-tablet-only { display: block; }
}
@media (min-width: 1025px) {
  .ad-desktop-only { display: block; }
}

/* Tile = one image-only ad */
.adblock-v3 .ad-tile {
  display: block;
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  text-decoration: none;
  transition: transform 0.18s, filter 0.18s;
  cursor: pointer;
}
.adblock-v3 .ad-tile:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.adblock-v3 .ad-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  background: transparent;
}

/* Triple-mode tile: fixed banner ratio so each of 3 cells stays uniform */
.adblock-v3 .ad-page-triple > .ad-tile {
  aspect-ratio: 323 / 120;
  height: auto;
}

/* Dots — low-key but clearly visible */
.adblock-v3.adblock .dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 10px 0 2px;
  padding: 0;
  width: 100%;
}
.adblock-v3.adblock .dots .d {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #CBD5E1 !important;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  opacity: 1 !important;
  visibility: visible !important;
}
.adblock-v3.adblock .dots .d:hover { background: #94A3B8 !important; }
.adblock-v3.adblock .dots .d.on {
  background: #111827 !important;
  width: 8px !important;
  border-radius: 50% !important;
  transform: scale(1.25);
}

/* Mobile (≤768) — partial renders a dedicated single-chunk variant
   inside .mobile-only for dual layouts; we only style the visible one.
   1-ad-per-slide is enforced at DOM level, not via CSS hacks. */
@media (max-width: 768px) {
  .adblock-v3 {
    padding: 8px;
    margin: 0 12px 18px;
    border-radius: 14px;
  }
  .adblock-v3 .ad-tile { height: 88px; border-radius: 10px; }
  /* Defensive: even if a .ad-page-pair somehow slips through to mobile
     (e.g. someone caches an older HTML), don't let 2 tiles cramp. */
  .adblock-v3 .ad-page-pair { flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  .adblock-v3 { margin: 0 16px 18px; }
}

@media (max-width: 360px) {
  .adblock-v3 { margin: 0 12px 16px; }
  .adblock-v3 .ad-tile { height: 80px; }
}

/* ==========================================================================
   v2026-05-22  Header login icon — bump size 14→22 / 18→22 for tap target
   Outer button height locked via padding compensation on desktop;
   mobile uses 32×32 fixed round button so icon size doesn't grow header.
   ========================================================================== */
.d-login svg.ico,
.d-login svg {
  width: 22px;
  height: 22px;
}
.d-login {
  padding-top: 7px;
  padding-bottom: 7px;
}

.m-login-btn svg.ico,
.m-login-btn svg {
  width: 22px;
  height: 22px;
}
/* .m-header--home .m-login-btn 已固定 32×32，icon 22 自動垂直置中 */

/* ==========================================================================
   首頁乾淨卡片 .hcard（2026-06-02）— 三欄 grid、靜態可點、line-clamp
   只作用於 .hcard-grid（首頁 services/transfers），不影響分類/詳情頁
   ========================================================================== */

/* 首頁便民服務 / 生意轉讓：獨立欄堆疊（見下方 .eulam-cols 統一系統）。
   每欄是獨立 flex 垂直堆疊 → 展開某張卡只影響「同一欄」，絕不重排其他欄。 */
.hcard-grid { display: flex !important; }

/* 桌機：便民服務 / 生意轉讓 改為上下堆疊（原本兩欄並排）*/
@media (min-width: 769px) {
  .d-sections-grid { display: block !important; }
  .d-sections-grid .d-sec-col { width: 100%; margin-bottom: 28px; }
}

/* 去線密集列表條目：無框無線，hover 才淡藍底（首頁 .hcard / 分類 .category-listing-item 視覺一致） */
.hcard {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s ease;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
.hcard:hover { background: #f1f7ff; }
.hcard:focus-visible { outline: 2px solid var(--brand-blue, #1F4E79); outline-offset: -2px; }

.hcard-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 5px; border-radius: 4px;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}

.hcard-title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 美化圓形箭頭（首頁 + 分類共用）— hover 藍底白字，分類展開時旋轉 90° */
.compact-arrow {
  width: 14px; height: 14px; border-radius: 999px;
  background: #eaf2ff; color: #0b63ce;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; line-height: 1;
  flex-shrink: 0;
  border: 0; padding: 0; cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .18s ease;
}
.hcard-item:hover .compact-arrow,
.hcard:hover .compact-arrow,
.category-listing-item:hover .compact-arrow { background: #0b63ce; color: #fff; }
.category-listing-item.is-open .compact-arrow,
.hcard-item.is-open .compact-arrow { transform: rotate(90deg); }

/* ── 首頁手風琴卡（便民服務/生意轉讓）。與分類頁 .category-listing-item 視覺一致：無線、無框 ── */
.hcard-item {
  border-radius: 6px;
  overflow: hidden;
}
.hcard-item .hcard { cursor: pointer; width: 100%; }
.hcard-item.is-open > .hcard { background: #f1f7ff; }
/* 平滑展開收合：max-height + transition 300ms */
.hcard-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.hcard-item.is-open .hcard-detail { max-height: 640px; }
.hcard-detail-inner {
  padding: 8px 8px 14px 26px;
  font-size: 12.5px; color: #4b5563; line-height: 1.6;
}
.hcard-d-meta { color: #6b7280; font-size: 12px; }
.hcard-d-dot { margin: 0 5px; color: #c2cad4; }
.hcard-d-contact { margin-top: 4px; color: #374151; }
.hcard-d-contact .hcard-d-tel {
  color: #0b63ce; font-weight: 600; text-decoration: none; margin-left: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.hcard-d-summary { margin: 8px 0 0; color: #4b5563; }
.hcard-d-imgs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hcard-d-imgs img {
  width: 84px; height: 64px; object-fit: cover;
  border-radius: 6px; border: 1px solid #e5e7eb; background: #f3f4f6;
}
.hcard-d-link {
  display: inline-block; margin-top: 12px;
  color: #0b63ce; font-weight: 700; font-size: 13px; text-decoration: none;
}
.hcard-d-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .hcard-detail-inner { padding-left: 14px; }
  .hcard-d-imgs img { width: 72px; height: 56px; }
}

/* sentinel 不佔視覺空間 */
.lcard-sentinel { height: 1px; width: 100%; }

/* 首頁只保留 IntersectionObserver 自動載入：隱藏「載入更多」按鈕（含載入中/已顯示全部文字）*/
.lcard-list-loadmore { display: none !important; }

/* ==========================================================================
   全部分類頁 /categories — 白名單分組入口卡（2026-06-02）
   只作用於 .categories-page，不影響首頁/分類列表/詳情頁
   ========================================================================== */
.categories-page { padding: 8px 0 4px; }

.category-group { margin-bottom: 32px; }
.category-group:last-child { margin-bottom: 0; }
.category-group-title {
  font-size: 18px; font-weight: 800; color: #111827;
  margin: 0 0 14px; letter-spacing: -0.01em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.category-entry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-entry-card:hover {
  border-color: #0b63ce;
  box-shadow: 0 10px 24px rgba(15, 68, 130, .08);
  transform: translateY(-1px);
}
.category-entry-card:focus-visible { outline: 2px solid #0b63ce; outline-offset: 2px; }

.category-entry-icon {
  width: 42px; height: 42px; border-radius: 999px;
  background: #eff6ff; color: #0b63ce;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.category-entry-body { min-width: 0; flex: 1; }

.category-entry-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.category-entry-title {
  min-width: 0; margin: 0;
  font-size: 16px; font-weight: 800; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.category-entry-count {
  flex-shrink: 0;
  padding: 3px 8px; border-radius: 999px;
  background: #eff6ff; color: #2563eb;
  font-size: 12px; font-weight: 700; line-height: 1;
}

.category-entry-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-width: 0;
}
.category-entry-desc {
  min-width: 0; flex: 1; margin: 0;
  font-size: 13px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.category-entry-link {
  flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: #0b63ce;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-entry-card { min-height: 74px; padding: 14px; }
  .category-entry-meta { gap: 8px; }
  .category-entry-link { font-size: 12px; }
  .category-group-title { font-size: 16px; }
}

/* ==========================================================================
   分類列表頁 /category/{slug} — 單行 compact 帖子卡（2026-06-02）
   只作用於 .category-post-grid / .category-compact-*，不影響 listings/詳情/搜尋/首頁
   ========================================================================== */
/* 分類列表頁：獨立欄堆疊（見下方 .eulam-cols 統一系統）。 */
.category-post-grid { display: flex; }

/* 去線密集：無框無線，hover 才淡藍底 */
.category-listing-item {
  border: 0;
  box-shadow: none;
  border-radius: 6px;
  background: transparent;
  overflow: hidden;
  transition: background .15s ease;
}
.category-listing-item:hover { background: #f1f7ff; }

.category-compact-card {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px;
}
.category-compact-left {
  min-width: 0; flex: 1;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
}
.category-compact-right {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.category-compact-badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 2px 5px; border-radius: 4px;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.category-compact-title {
  min-width: 0; flex: 1;
  border: 0; background: transparent; padding: 0; text-align: left;
  font-size: 13px; font-weight: 700; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.category-compact-city { font-size: 11px; font-weight: 700; color: #0b63ce; white-space: nowrap; }
.category-compact-view {
  color: #0b63ce; font-size: 11px; font-weight: 700; white-space: nowrap;
  text-decoration: none;
}

.category-listing-detail {
  padding: 6px 0 10px 24px;
  background: transparent;
  font-size: 12px; color: #4b5563; line-height: 1.6;
}
.category-detail-meta { margin-bottom: 8px; color: #6b7280; }
.category-detail-desc { line-height: 1.6; margin-bottom: 8px; }
.category-detail-contact { margin-bottom: 8px; }
.category-detail-contact a { color: #0b63ce; text-decoration: none; }
.category-detail-link { color: #0b63ce; font-weight: 700; text-decoration: none; }

@media (max-width: 1024px) {
  .category-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .category-post-grid { grid-template-columns: 1fr; }
  .category-compact-right { display: none; }
  .category-listing-detail { padding-left: 12px; }
}

/* ── Infinite scroll：sentinel（隱形觸發點）+ 載入中 spinner + 到底訊息 ── */
.inf-sentinel { height: 1px; width: 100%; }
.inf-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  color: #6B7280;
  font-size: 13px;
}
.inf-spinner[hidden] { display: none; }
.inf-spin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #DBEAFE;
  border-top-color: #1F4E79;
  animation: infSpin 0.7s linear infinite;
}
@keyframes infSpin { to { transform: rotate(360deg); } }
.inf-end {
  display: block;
  padding: 18px 12px;
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
}
.inf-end[hidden] { display: none; }


/* ==========================================================================
   Filter / Dropdown 浮層化（2026-06-04 v2）
   解決：展開後推動其他列、影響商品列表、跑版
   方法：展開面板改 position:absolute 不參與 in-flow 高度
   ========================================================================== */

/* 桌機篩選列 row 容器需 relative，才能讓內部 absolute panel 正確定位 */
.flt-bar-desktop .flt-subcat-row,
.flt-bar-desktop .flt-region-row { position: relative; overflow: visible; }

/* 桌機「展開全部」面板：改浮層，不推動下方內容 */
.flt-bar-desktop .flt-row-extras {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 12px 28px -8px rgba(15,23,42,.18);
  z-index: 100;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}
/* 收合時隱藏（既有 data-collapsed 機制） */
.flt-bar-desktop [data-collapsed="true"] .flt-row-extras { display: none; }

/* 手機 3-trigger 面板：改浮層，不撐高 .flt-mobile 卡片 */
@media (max-width: 768px) {
  .flt-mobile { position: relative; overflow: visible; }
  .flt-mob-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 14px 32px -8px rgba(15,23,42,.22);
    z-index: 100;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    border-top: 1px solid #E5E7EB;  /* 覆蓋既有 border-top:#F3F4F6 */
  }
  .flt-mob-panel[hidden] { display: none; }
}

/* Desktop / Mobile 切換確保互斥（避免兩套同時顯示）*/
@media (min-width: 769px) { .flt-mobile { display: none !important; } }
@media (max-width: 768px) { .flt-bar-desktop { display: none !important; } }

/* 防止 dropdown 撐出橫向捲軸：page 容器不裁切但限制寬度 */
.dc-sort-row { overflow: visible; }
.category-post-grid { overflow: visible !important; }

/* ==========================================================================
   獨立欄堆疊系統（首頁 / 全部分類 / 各分類頁共用）2026-06-04
   每欄是獨立 flex 垂直堆疊：展開某張卡只影響同一欄，永不重排其他欄。
   響應式欄數由 JS（EulamCols）依斷點 round-robin 重新分配。
   ========================================================================== */
[data-post-cols] {
  display: flex;
  flex-direction: row !important;   /* 覆蓋 .lcard-list 的 column：欄必須左右並排 */
  align-items: flex-start;          /* 各欄頂端對齊；某欄變高不影響其他欄 */
  gap: 24px;
  width: 100%;
  min-width: 0;
}
[data-post-col] {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) { [data-post-cols] { gap: 0; } }

/* 詳情展開/收合：hidden 為唯一真實狀態，保證任何情況都正確隱藏 */
[data-post-detail][hidden] { display: none !important; }

/* ==========================================================================
   展開詳情 = 絕對定位浮層（2026-06-04）
   展開內容浮在卡片下方、不佔流佈局空間 → 展開帖子 A「零」影響任何其他帖子
   （同欄、其他欄、其他列都不移動）。即「只更新 currentPost」。
   ========================================================================== */
.category-listing-item,
.hcard-item { position: relative; }
/* 關鍵：展開卡必須 overflow:visible，否則絕對定位的浮層會被卡片 34px 高度裁切掉。
   並用高 z-index 確保浮層蓋在同欄後續卡片之上。 */
.category-listing-item.is-open,
.hcard-item.is-open {
  overflow: visible !important;
  z-index: 1000;
}

.category-listing-detail[data-post-detail],
.hcard-detail[data-post-detail] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 34px -10px rgba(15, 23, 42, .25);
  /* 覆蓋首頁 .hcard-detail 原本的 max-height:0 動畫，浮層需完整顯示 */
  transition: none;
}

/* ==========================================================================
   分類頁：標題 + 子分類置頂（最顯眼），麵包屑移到下方輔助。2026-06-05
   ========================================================================== */
.cat-head { padding: 14px 19px 4px; }  /* 左 19px = filter 卡片 border(1)+padding(18)，使標題與子分類/地區標籤左緣切齊 */
.cat-head-top { display: flex; align-items: center; gap: 10px; }
.cat-head-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-blue-light); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
}
.cat-head-ico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.cat-head-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--ink-1); letter-spacing: .01em; }
.cat-head-count { margin: 6px 0 12px; font-size: 13px; color: var(--ink-3); }
.cat-head-subs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-sub-pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  background: #f1f5fb; border: 1px solid transparent; border-radius: 999px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cat-sub-pill:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.cat-sub-pill.active { background: var(--brand-blue); color: #fff; }
@media (max-width: 768px) {
  .cat-head { padding: 10px 13px 2px; }  /* 手機 filter 卡片 border(1)+padding(12) */
  .cat-head-title { font-size: 20px; }
  .cat-head-ico { width: 36px; height: 36px; }
  .cat-head-ico .ico { width: 20px; height: 20px; }
  .cat-head-count { margin: 5px 0 10px; }
  .cat-head-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cat-head-subs::-webkit-scrollbar { display: none; }
  .cat-sub-pill { flex: 0 0 auto; height: 32px; font-size: 13px; }
  /* 子分類已移到上方，手機篩選列只剩 地區 / 排序 → 改 flex 平均填滿 */
  .flt-mob-triggers { display: flex !important; gap: 8px; }
  .flt-mob-btn { flex: 1; }
}

/* ==========================================================================
   資訊頁「文章閱讀模式」 — /about /terms /privacy /help /contact 共用
   - 桌機/超寬螢幕：固定 max-width 880px 置中（不跟著放大）
   - 平板（≤1024px）：90% 寬
   - 手機：左右 16px padding
   - 加大行高 + 中性灰文字 + 充足段落間距，提升長文閱讀舒適度
   - 只作用在 .info-page 容器內，不影響首頁/分類/搜尋/會員方案/發布頁
   ========================================================================== */
.info-page {
  max-width: 880px;
  margin: 16px auto 32px;
  padding: 24px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.info-page > .module {
  background: transparent; border: 0; padding: 0; margin: 0;
}
.info-page .module-head {
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid #E5E7EB;
}
.info-page .module-head .title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.01em;
}
.info-page .static-page {
  font-size: 16px;
  line-height: 1.85;
  color: #374151;
}
.info-page .static-page .lead {
  font-size: 17px;
  line-height: 1.8;
  color: #1F2937;
  margin: 0 0 22px;
}
.info-page .static-h2 {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 12px;
  letter-spacing: 0.01em;
}
.info-page .static-page p { margin: 0 0 14px; line-height: 1.85; }
.info-page .static-page b { color: #111827; font-weight: 600; }
.info-page .static-list { padding-left: 22px; margin: 8px 0 18px; }
.info-page .static-list li { margin: 6px 0; line-height: 1.85; }
.info-page .static-page a {
  color: #1F4E79;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-page .static-page a:hover { color: #0b63ce; }
.info-page .static-link { color: #1F4E79; font-weight: 600; }
.info-page .static-note { font-size: 13px; color: #6B7280; margin-top: 14px; }
@media (max-width: 1024px) {
  .info-page { max-width: 92%; }
}
@media (max-width: 640px) {
  .info-page {
    max-width: 100%;
    padding: 16px;
    margin: 8px 0 24px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .info-page .module-head .title { font-size: 20px; }
  .info-page .static-page { font-size: 15px; }
  .info-page .static-page .lead { font-size: 16px; }
  .info-page .static-h2 { font-size: 17px; margin: 22px 0 10px; }
}

/* ==========================================================================
   九大分類 Icon Grid — 資訊頁共用元件 <x-eulam-cat-grid />
   約束：icon 必須走 EulamCategories::rootIconSvg() 同一份 SVG，不可另開一套
   ========================================================================== */
.cat-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 22px;
}
.cat-grid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  text-decoration: none;
  color: #1F2937;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.cat-grid-item:hover {
  background: #F1F7FF;
  border-color: #1F4E79;
  transform: translateY(-1px);
}
.cat-grid-ico {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #EAF2FF;
  color: #1F4E79;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-grid-ico .ico {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6;
}
.cat-grid-lbl {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .cat-grid-9 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-grid-item { padding: 10px 12px; }
  .cat-grid-ico { flex: 0 0 32px; width: 32px; height: 32px; }
  .cat-grid-ico .ico { width: 18px; height: 18px; }
  .cat-grid-lbl { font-size: 13px; }
}
@media (max-width: 380px) {
  .cat-grid-9 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   /contact —— Contact 页面 UI/UX 重新设计
   规格：max 900px 居中 · 桌机 40/60 双栏 · 手机上下堆叠 · 圆角卡片 · 品牌色 focus
   图标全部走 EulamCategories::rootIconSvg() —— 與首頁九大分類同一份 SVG 系統
   namespace: .c2-* （避免与既有 .contact-* 冲突）
   ========================================================================== */

/* ─── 全頁配色 token（局部） ─── */
.c2-container, .c2-hero { --c2-brand: #1F4E79; --c2-brand-d: #163a5c; --c2-brand-l: #EAF2FF;
                          --c2-ink: #111827; --c2-ink2: #374151; --c2-ink3: #6B7280;
                          --c2-line: #E5E7EB; --c2-surface: #fff; --c2-surface-2: #F9FAFB; }

/* ─── Hero ─── */
.c2-hero {
  background: linear-gradient(180deg, #F1F7FF 0%, #F8FAFC 100%);
  border-bottom: 1px solid #E5E7EB;
  padding: 36px 20px 32px;
  margin-bottom: 0;
}
.c2-hero-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.c2-hero-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--c2-brand); color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(31, 78, 121, 0.25);
}
.c2-hero-ico .ico { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.c2-hero-title { margin: 0 0 8px; font-size: 28px; font-weight: 700; color: var(--c2-ink); letter-spacing: -0.01em; }
.c2-hero-sub { margin: 0; font-size: 15px; color: var(--c2-ink3); line-height: 1.7; max-width: 540px; margin: 0 auto; }

/* ─── 主容器 ─── */
.c2-container {
  max-width: 900px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* ─── Flash 訊息 ─── */
.c2-flash {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}
.c2-flash-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.c2-flash-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.c2-flash-ico { flex: 0 0 22px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.c2-flash-ico .ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ─── 桌機 40/60 雙欄 ─── */
.c2-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 18px;
}

/* ─── 共用卡片 ─── */
.c2-info-card, .c2-form-card {
  background: var(--c2-surface);
  border: 1px solid var(--c2-line);
  border-radius: 14px;
  padding: 22px 22px;
}
.c2-card-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--c2-ink); letter-spacing: 0.005em; }
.c2-card-sub   { margin: 0 0 18px; font-size: 13px; color: var(--c2-ink3); line-height: 1.6; }

/* ─── 左：聯絡資訊列表 ─── */
.c2-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.c2-info-row { display: flex; align-items: flex-start; gap: 12px; }
.c2-info-ico {
  flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--c2-brand-l); color: var(--c2-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.c2-info-ico .ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.c2-info-body { min-width: 0; flex: 1; }
.c2-info-lbl { font-size: 12px; font-weight: 600; color: var(--c2-ink3); text-transform: none; letter-spacing: 0.04em; margin-bottom: 2px; }
.c2-info-val { font-size: 14.5px; color: var(--c2-ink); font-weight: 600; word-break: break-word; }
.c2-info-link { color: var(--c2-brand); text-decoration: none; transition: color 0.15s; }
.c2-info-link:hover { color: var(--c2-brand-d); text-decoration: underline; }

/* 左卡底部 trust bar */
.c2-trust {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--c2-line);
}
.c2-trust-ico { flex: 0 0 22px; color: var(--c2-brand); }
.c2-trust-ico .ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.c2-trust-text { margin: 0; font-size: 12px; color: var(--c2-ink3); line-height: 1.65; }

/* ─── 右：表單 ─── */
.c2-form { display: flex; flex-direction: column; gap: 14px; }
.c2-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c2-field { display: flex; flex-direction: column; gap: 6px; }
.c2-field label {
  font-size: 13px; font-weight: 600; color: var(--c2-ink2);
  display: inline-flex; align-items: center; gap: 4px;
}
.c2-req { color: #DC2626; font-weight: 700; }
.c2-field input, .c2-field textarea {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 14.5px;
  padding: 10px 14px;
  height: 42px;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  color: var(--c2-ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.c2-field textarea { height: auto; min-height: 140px; resize: vertical; line-height: 1.6; padding: 12px 14px; }
.c2-field input::placeholder, .c2-field textarea::placeholder { color: #9CA3AF; }
.c2-field input:hover, .c2-field textarea:hover { border-color: #9CA3AF; }
.c2-field input:focus, .c2-field textarea:focus {
  outline: none;
  border-color: var(--c2-brand);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
  background: #fff;
}
.c2-hint { font-size: 11.5px; color: var(--c2-ink3); margin-top: 2px; }

/* 提交按鈕 */
.c2-submit {
  width: 100%;
  height: 46px;
  background: var(--c2-brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  margin-top: 4px;
}
.c2-submit:hover { background: var(--c2-brand-d); box-shadow: 0 4px 12px rgba(31, 78, 121, 0.25); }
.c2-submit:active { transform: translateY(1px); }

/* ─── FAQ ─── */
.c2-faq {
  background: var(--c2-surface);
  border: 1px solid var(--c2-line);
  border-radius: 14px;
  padding: 22px 22px;
  margin-top: 18px;
}
.c2-faq-title { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--c2-ink); }
.c2-faq-item {
  border-top: 1px solid var(--c2-line);
  padding: 14px 0;
}
.c2-faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.c2-faq-q {
  list-style: none;
  cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--c2-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 0;
}
.c2-faq-q::-webkit-details-marker { display: none; }
.c2-faq-q::after {
  content: '+'; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--c2-brand-l); color: var(--c2-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; line-height: 1;
  transition: transform 0.2s;
}
details[open] > .c2-faq-q::after { content: '−'; }
.c2-faq-a {
  margin: 8px 0 0;
  font-size: 13.5px; color: var(--c2-ink2); line-height: 1.7;
}
.c2-faq-a a { color: var(--c2-brand); text-decoration: underline; text-underline-offset: 2px; }

/* ─── 手機：聯絡卡 → 表單 上下排列 ─── */
@media (max-width: 768px) {
  .c2-hero { padding: 28px 16px 24px; }
  .c2-hero-ico { width: 48px; height: 48px; margin-bottom: 12px; }
  .c2-hero-ico .ico { width: 24px; height: 24px; }
  .c2-hero-title { font-size: 22px; }
  .c2-hero-sub { font-size: 14px; }

  .c2-container { padding: 0 12px; margin: 16px auto 24px; }
  .c2-split { grid-template-columns: 1fr; gap: 14px; }

  .c2-info-card, .c2-form-card, .c2-faq { padding: 18px 16px; border-radius: 12px; }
  .c2-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .c2-field input, .c2-field textarea { font-size: 15px; }  /* iOS：≥16px 防 zoom；對 input 用 15 不會觸發 zoom 因桌機已大 */
  .c2-submit { height: 48px; font-size: 15px; }
}
@media (max-width: 380px) {
  .c2-hero { padding: 22px 12px 20px; }
  .c2-info-card, .c2-form-card, .c2-faq { padding: 16px 14px; }
}

/* 詳情頁正文內嵌圖片（舊站遷移）：限寬不溢出 */
.dd-desc img, .md-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }

/* 帖子會員 Badge（<x-listing-member-badge>）— 首頁/分類/搜尋/詳情/相關推薦共用 */
.lmb { display:inline-flex; align-items:center; gap:3px; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:700; border:1px solid; line-height:1.7; white-space:nowrap; vertical-align:middle; }
.lmb-gold { background:#FFF7D6; color:#8A5A00; border-color:#D4AF37; }
.lmb-diamond { background:#EAF4FF; color:#075985; border-color:#38BDF8; }

/* ===== 共用 icon badge（会员方案 黄金/钻石 + 首页/分类「推荐」同一套样式）=====
   金色规格与 .cat-table .badge-rec 完全一致；钻石为同结构的蓝色 VIP 变体。
   尺寸/圆角/阴影/字重/间距统一，桌机与手机一致。 */
.badge-recommend, .badge-gold, .badge-diamond {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.badge-recommend .b-star, .badge-gold .b-star, .badge-diamond .b-star {
    font-size: 10px;
    margin-right: 2px;
}
/* 推荐 / 黄金：金色（= badge-rec） */
.badge-recommend, .badge-gold {
    background: linear-gradient(180deg, #FFF1C5, #FCE093);
    color: #7A5510;
    border: 1px solid #E5BE5C;
}
.badge-recommend .b-star, .badge-gold .b-star { color: #D69A1A; }
/* 钻石 / VIP：同结构，蓝色钻石风 */
.badge-diamond {
    background: linear-gradient(180deg, #EAF1FF, #CFE0FB);
    color: #234A86;
    border: 1px solid #9DBDF0;
}
.badge-diamond .b-star { color: #2F6BD8; }
@media (max-width: 768px) {
    .badge-recommend, .badge-gold, .badge-diamond { font-size: 10px; padding: 2px 6px 2px 4px; }
    .badge-recommend .b-star, .badge-gold .b-star, .badge-diamond .b-star { font-size: 9px; }
}
