/* ============================================================
   遛小孩 liuxiaohai.com — style.css  v1.0.3
   完整重寫：消除歷史 patch 衝突，恢復親子柔和品牌感
   ============================================================ */

/* ── CSS 變數 ── */
:root {
  --milk:   #fff6e8;
  --cream:  #fffaf2;
  --coffee: #3b2b22;
  --muted:  #8b7466;
  --peach:  #ffd9c8;
  --green:  #cfe7c6;
  --sky:    #ccefeb;
  --sun:    #fff0b7;
  --pink:   #ffe1de;
  --white:  #fffdf8;
  --coral:  #d96b4f;
  --shadow: 0 14px 34px rgba(92,62,36,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", Segoe UI, sans-serif;
  color: var(--coffee);
  background: linear-gradient(180deg, #f7ead7 0%, #fffaf2 28%, #fff6e8 100%);
}
a { color: inherit; }

/* 全域 button reset — 消滅所有原生樣式 */
button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  padding: 0;
}

/* ── 版面容器 ── */
.wrap {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 22px 0 64px;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(90deg,
      rgba(255,250,242,.88) 0%,
      rgba(255,250,242,.52) 44%,
      rgba(255,250,242,.08) 100%),
    url('assets/hero.png');
  background-size: cover;
  background-position: center;
  min-height: 340px;
  box-shadow: var(--shadow);
  padding: 34px 36px;
  display: flex;
  align-items: flex-start;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.logo {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(92,62,36,.14);
  background: #fff;
}
h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 16px 0 10px;
  letter-spacing: .03em;
}
.subtitle {
  font-size: 19px;
  margin: 0 0 8px;
  color: #5b4638;
  font-weight: 700;
}
.value {
  font-size: 15px;
  color: #6f5a4d;
  margin: 0 0 16px;
}
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.95);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #c45b40;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(92,62,36,.10);
}

/* ── Section ── */
.section { margin-top: 32px; }
h2 { font-size: 24px; margin: 0 0 6px; }
.lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ── 篩選區 ── */
.filter-panel {
  margin: 24px 0 20px;
  padding: 24px 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(92,62,36,.06);
  box-shadow: 0 18px 42px rgba(92,62,36,.10);
}
.filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.filter-panel h2 { font-size: 22px; margin: 0 0 4px; color: #3b2b22; }
.filter-panel p  { color: #8b7466; margin: 0; font-weight: 700; font-size: 14px; }

.selected-filters {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #6b4c35;
  background: #fff4d8;
  border: 1px solid rgba(255,210,140,.45);
  border-radius: 999px;
  padding: 8px 14px;
  margin: 10px 0 12px;
}

.clear-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  font-family: inherit;
  background: #3b2b22;
  color: #fffaf2;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(59,43,34,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.clear-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(59,43,34,.24);
}

.filter-more {
  border: 0;
  margin-top: 10px;
}
.filter-more summary {
  cursor: pointer;
  font-weight: 900;
  color: #3b2b22;
  list-style: none;
  margin-bottom: 10px;
  font-size: 14px;
}
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more summary::after  { content: "＋"; display: inline-block; margin-left: 6px; font-weight: 900; }
.filter-more[open] summary::after { content: "－"; }

.filter-group { margin: 12px 0 14px; }
.filter-group-title {
  font-size: 12px;
  font-weight: 900;
  color: #9a5b3e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ── Filter chip — 核心 pill 樣式 ── */
.filter-chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,210,140,.45);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  background: #fff4d8;
  color: #3b2b22;
  box-shadow: 0 4px 12px rgba(92,62,36,.08);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease,
    border-color .18s ease;
}
.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(92,62,36,.13);
  background: #ffe9b8;
  border-color: rgba(255,180,100,.55);
}
.filter-chip.active {
  background: var(--coral);
  color: #fffaf2;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(180,72,40,.24);
  transform: translateY(-1px);
}
.filter-chip:focus-visible {
  outline: 3px solid rgba(255,190,120,.55);
  outline-offset: 2px;
}

/* ── 推薦卡 pick grid ── */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.pick-card {
  background: var(--white);
  border: 1px solid rgba(92,62,36,.09);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(92,62,36,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(92,62,36,.15);
}
.pick-cover {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}
.pick-body { padding: 16px 18px 18px; }
.kicker {
  font-size: 11px;
  letter-spacing: .08em;
  color: #c45b40;
  font-weight: 900;
  text-transform: uppercase;
}
.pick-title {
  font-size: 20px;
  line-height: 1.22;
  margin: 6px 0 8px;
  font-weight: 900;
}
.desc {
  font-size: 14px;
  line-height: 1.7;
  color: #5b4638;
  margin: 0 0 10px;
}

/* ── 主清單 main-grid ── */
.main-list-section h2 { margin-bottom: 4px; }
.main-list-section .section-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.result-count {
  font-size: 14px;
  font-weight: 700;
  color: #7b6657;
  margin: 4px 0 16px;
  letter-spacing: .01em;
}
.main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ── Event card ── */
.event-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(92,62,36,.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(92,62,36,.09);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(92,62,36,.13);
}
.event-card.hidden { display: none !important; }
.event-cover {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 900;
  color: #3b2b22;
}
.card-summary {
  font-size: 13px;
  line-height: 1.65;
  color: #5b4638;
  margin: 0 0 8px;
}
.mini-info {
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #7b6657;
  margin: 7px 0 9px;
  background: rgba(255,250,242,.75);
  border-radius: 10px;
  padding: 7px 9px;
}
.info-row { display: block; }
.rec-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe1d5;
  color: #b94d34;
  margin: 4px 6px 6px 0;
}
.source-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff3d8;
  color: #8b5d25;
  margin: 4px 0 6px;
}
.verified-date {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9a8778;
  margin: 5px 0 4px;
}
.verified-date.unverified { color: #c0876a; font-style: italic; }

/* ── Tag 膠囊 ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  background: #f3e8d8;
  color: #6a4a33;
}
.tag.free   { background: #e6f5d8; color: #3e7b36; }
.tag.indoor { background: #e4f4f1; color: #2d746d; }
.tag.warn   { background: #ffe5df; color: #ab4c3a; }

/* ── 連結 ── */
.more {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: #b7523a;
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* ── 官方資訊連結（主清單詳情內）—— 與小遛推薦 .more 同款 ── */
.card-detail-body a.more,
.card-detail-body a.official-link-btn,
.official-link-btn {
  display: inline-block !important;
  margin-top: 10px;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 900;
  color: #b7523a !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
}
.card-detail-body a.more:hover,
.card-detail-body a.official-link-btn:hover,
.official-link-btn:hover {
  text-decoration: underline !important;
  color: #b7523a !important;
}

/* ── 回到上方浮動按鈕 ── */
button#back-to-top.back-to-top {
  position: fixed !important;
  right: 16px !important;
  bottom: 88px !important;
  z-index: 99999 !important;
  width: auto !important;
  min-width: 52px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(74,47,36,.92) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(92,62,36,.24) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
button#back-to-top.back-to-top.is-visible {
  display: inline-flex !important;
}

/* ── Event 狀態 badge ── */
.event-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
  vertical-align: middle;
}
.badge-upcoming { background: #e3eeff; color: #2b5ebb; }
.badge-ongoing  { background: #e2f5e1; color: #2e7d32; }
.badge-last     { background: #fff0cc; color: #a05a00; }
.event-date {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #7b6657;
  margin: 0 6px 6px 0;
  vertical-align: middle;
}

/* ── 空狀態 ── */
.empty-state {
  display: none;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff7db;
  border: 1px solid #f2d98f;
  color: #5b4638;
  margin-top: 14px;
  font-weight: 800;
  line-height: 1.7;
}
.empty-state.show { display: block; }
.empty-hints {
  font-size: 13px;
  font-weight: 700;
  color: #8b7466;
  margin: 4px 0 12px;
}

/* ── 注意事項 / footer ── */
.notice {
  margin-top: 34px;
  background: #fff7db;
  border: 1px solid #f2d98f;
  border-radius: 18px;
  padding: 18px 20px;
  line-height: 1.8;
  color: #5b4638;
  font-size: 14px;
}
.footer {
  text-align: center;
  color: #9a8778;
  font-size: 13px;
  margin-top: 24px;
}

/* ── 主題色 ── */
.sky   { background: var(--sky);   }
.sun   { background: var(--sun);   }
.peach { background: var(--peach); }
.green { background: var(--green); }
.pink  { background: var(--pink);  }

/* ── play-highlight 亮點說明 ── */
.play-highlight {
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #eef8df;
  color: #3f5f2b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}
.play-highlight strong {
  color: #2f4f20;
}

/* ── v1.2 card face / detail structure (desktop defaults) ── */
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.card-title-row h3 { margin: 0; }
.card-meta-line { display: none; }           /* mobile-only compact meta */
.card-face-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.tags-face { display: none; }               /* mobile: shows 2 tags; desktop: tags in card-detail-body */
.card-detail-btn { display: none; }         /* mobile-only toggle */
.card-detail-body { display: block; }       /* always visible on desktop */

/* ── v1.2 filter toolbar (desktop defaults) ── */
.mobile-filter-toolbar { display: none; }   /* mobile-only */
.clear-filter-btn-m { display: none; }      /* shown by JS on mobile when filters active */

/* ── Mobile filter toggle button ── */
.filter-toggle-btn {
  display: none; /* desktop: hidden */
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  background: #fff4d8;
  color: #3b2b22;
  border: 1px solid rgba(255,210,140,.45);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
}
.filter-toggle-btn:hover {
  background: #ffe9b8;
}

/* ── Card expand/collapse (mobile) ── */
.card-expand { margin-top: 4px; }
.card-expand-btn {
  display: none; /* desktop: hidden */
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  background: #fff4d8;
  color: #6b4c35;
  border: 1px solid rgba(255,210,140,.45);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin-top: 2px;
}
.card-expand-body {
  /* always visible on desktop — no override */
}

/* ============================================================
   Responsive
   ============================================================ */

/* 平板 ≤ 900px */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-head { flex-direction: column; }
  .clear-filter-btn { align-self: flex-start; }
}

/* ============================================================
   手機 ≤ 560px — v1.2 親子雷達版
   ============================================================ */
@media (max-width: 560px) {
  .wrap { width: 100%; padding: 0 0 56px; }

  /* ── Hero → 品牌條 ── */
  .hero {
    background: #fff0dc !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 10px;
    align-items: center;
    padding: 10px 18px 10px;
  }
  .logo {
    width: 44px;
    height: 44px;
    grid-row: 1 / 4;
    border-radius: 50%;
    box-shadow: none;
  }
  h1 { font-size: 17px; margin: 0; grid-column: 2; }
  .subtitle { font-size: 11px; margin: 0; grid-column: 2; color: #7b6657; }
  .value { display: none; }
  .date-pill {
    font-size: 10px;
    padding: 4px 10px;
    grid-column: 2;
    margin-top: 3px;
    width: fit-content;
    box-shadow: none;
  }

  /* ── 篩選區 ── */
  .filter-panel {
    margin: 0;
    border-radius: 0;
    padding: 10px 16px 8px;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(92,62,36,.08);
    background: rgba(255,255,255,.97);
  }
  .filter-head { display: none; }
  .selected-filters {
    font-size: 11px;
    padding: 5px 11px;
    margin: 0 0 8px;
    display: block;
  }

  /* Quick chip 換行顯示（不需左右滑）*/
  #filter-quick {
    display: flex;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 8px;
    padding: 0;
  }
  #filter-quick .filter-group        { display: contents; }
  #filter-quick .filter-group-title  { display: none; }
  #filter-quick .filter-bar          { display: contents; }
  .filter-chip { font-size: 12px; padding: 8px 11px; white-space: nowrap !important; flex: 0 0 auto !important; }
  /* 確保 filter-quick 不產生橫向滾動 */
  #filter-quick,
  #filter-quick .filter-group,
  #filter-quick .filter-bar {
    overflow-x: visible !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* Mobile toolbar: ⋯ 更多篩選 + ✕ 清除 */
  .mobile-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
  }
  .filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12px;
  }
  /* clear-filter-btn-m shown by JS only when filters active */
  .clear-filter-btn-m {
    padding: 7px 12px;
    font-size: 12px;
  }

  /* More filter body */
  #filter-body { display: none; }
  #filter-body.filter-open { display: block; }
  .filter-bar { gap: 7px; flex-wrap: wrap; }

  /* ── Section spacing ── */
  .section { margin-top: 18px; }
  h2 { font-size: 19px; }

  /* ── 本週先推 → 橫向 carousel（自己 overflow，不撐大 body）── */
  .picks-scroll {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 8px 16px 12px;
    margin: 4px 0 0;          /* 移除負 margin，防止撐寬 body */
    scrollbar-width: none;
    grid-template-columns: unset !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .picks-scroll::-webkit-scrollbar { display: none; }
  .picks-scroll .pick-card {
    flex: 0 0 82%;
    max-width: 82%;           /* 防止卡片超出 scroll 區 */
    scroll-snap-align: start;
    min-width: 0;
  }
  .picks-scroll .pick-title {
    font-size: 15px;
    margin: 4px 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .picks-scroll .desc { display: none; }            /* 隱藏 summary，保持推薦卡輕量 */
  .picks-scroll .mini-info { display: none; }       /* 隱藏 mini-info block */
  .picks-scroll .tags .tag:nth-child(n+3) { display: none; } /* 最多 2 個 tag */
  .pick-cover { height: 72px; font-size: 32px; }
  .pick-body  { padding: 10px 13px 12px; }

  /* ── 主清單 → 雷達列表 ── */
  .main-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 6px;
  }
  .event-card {
    flex-direction: row;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,.96);
    border: none;
    border-bottom: 1px solid rgba(92,62,36,.07);
    overflow: hidden;           /* 防止任何子元素撐寬卡片 */
    max-width: 100%;
    padding: 12px 14px;
    gap: 10px;
    align-items: flex-start;
    transition: background .15s ease;
    cursor: pointer;            /* 整張卡可點擊 */
  }
  .event-card:active { background: rgba(255,250,240,.98); }
  .event-card:hover { transform: none; box-shadow: none; }
  .event-cover {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
  }
  .card-body {
    padding: 0;
    min-width: 0;               /* 關鍵：flex 子元素可以正常縮短 */
    max-width: 100%;
    flex: 1;
    overflow: hidden;
  }

  /* Card title row */
  .card-title-row { margin-bottom: 2px; flex-wrap: wrap; gap: 4px; align-items: flex-start; min-width: 0; max-width: 100%; }
  .event-card h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 800;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Play-highlight: 最多 2 行，無綠框，無 white-space:nowrap */
  .play-highlight {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 2px 0 3px !important;
    font-size: 12px;
    font-weight: 700;
    color: #5b8a30;
    line-height: 1.45;
    /* 不設 white-space:nowrap，改用 line-clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  .play-highlight strong { display: none; }

  /* Compact meta line (city・fee・age) — 允許換行，不撐寬 */
  .card-meta-line {
    display: block;
    font-size: 11px;
    color: #8b7466;
    margin: 2px 0 4px;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100%;
  }

  /* Card face bottom: 2 tags + 詳情 button */
  .card-face-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
  }
  .tags-face {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
  }
  .tags-face .tag { font-size: 10px; padding: 2px 6px; white-space: nowrap; }
  .tags-face .tag:nth-child(n+3) { display: none; }

  /* 詳情 toggle button */
  .card-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    border: 1.5px solid rgba(92,62,36,.22);
    background: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 700;
    color: #5c3e24;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
  }

  /* card-detail-body: 預設收起，展開後顯示，不造成水平溢出 */
  .card-detail-body { display: none; max-width: 100%; overflow-x: hidden; }
  .card-detail-body.card-detail-open {
    display: block;
    padding-top: 6px;
    border-top: 1px dashed rgba(92,62,36,.1);
    margin-top: 6px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .card-detail-body .card-summary {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 6px;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .card-detail-body .mini-info { margin: 4px 0 5px; padding: 5px 8px; font-size: 11px; }
  .card-detail-body .tags      { margin-top: 5px; }
  .card-detail-body .more      { font-size: 12px; }
  .card-detail-body .verified-date { font-size: 10px; }

  /* Tags in detail body (not in face) */
  .tag  { font-size: 10px; padding: 2px 6px; }
  .tags { gap: 4px; margin-top: 3px; }

  /* 官方資訊連結手機版 — 維持與 .more 同款 */
  .card-detail-body a.more,
  .card-detail-body a.official-link-btn,
  .official-link-btn {
    font-size: 12px !important;
    margin-top: 6px !important;
  }

}

