/*
選舉搜尋 widget（BD Console searchResult 版位，寬 0／高 96）
樣本：六都市長大選宣傳總覽「搜尋 Widget」示意圖
- 全幅白底、min-height 96、padding 12x16，同心動榜搜尋 widget
- 左欄：活動標籤「# D一票的力量」→ 主題句（粉紅螢光筆動畫，同心動榜）→ 黃色按鈕「去看板看更多」
- 右側：人群插畫（取自全站 BN 定稿去背）放在 208x96 區塊，貼齊右緣、上下裁切（同 Figma「search widget_推薦看板」375x96）
- 主題句依網址參數 ?k= 切換（見下方 TOPICS），每組關鍵字在 BD 各建一支 Banner
- 點擊：本頁不設連結——整塊點擊由外層版位（Banner action.url）承接；目的地＝看板熱門 /f/2026_election?utm_source=election_search_widget&utm_content={k}
*/
*{margin:0;padding:0;box-sizing:border-box}
html,body{background:#FFFFFF}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}
.widget{
  position:relative;
  height:96px;
  padding:0 16px;
  display:flex;align-items:center;
  overflow:hidden;
  color:#1B1D2E;
}
.txt{position:relative;z-index:1;display:grid;gap:4px;justify-items:start;max-width:calc(100% - 200px)}
.tag{font-size:12px;line-height:16px;font-weight:700;letter-spacing:.02em}
/* 螢光筆：同心動榜節奏，每輪 4.1s（空白 0.5s → 上色 0.4s → 停留 2.8s → 擦掉 0.4s），顏色固定粉紅 */
.hl{
  font-size:18px;line-height:24px;font-weight:700;white-space:nowrap;
  padding:0 2px;margin-left:-2px;
  background-repeat:no-repeat;background-position:left center;background-size:0% 100%;
  background-image:linear-gradient(transparent 56%,rgba(255,131,185,.42) 56%,rgba(255,131,185,.42) 92%,transparent 92%);
  animation:hl-sweep 4.1s ease-in-out infinite;
}
@keyframes hl-sweep{
  0%     {background-size:0% 100%}
  12.20% {background-size:0% 100%}
  21.95% {background-size:100% 100%}
  90.24% {background-size:100% 100%}
  100%   {background-size:0% 100%}
}
@media (prefers-reduced-motion: reduce){ .hl{animation:none;background-size:100% 100%} }
.go{
  display:inline-block;
  padding:3px 10px;
  font-size:14px;line-height:20px;font-weight:700;
  background:#FFC22E;color:#1B1D2E;
  border:1.5px solid #1B1D2E;border-radius:6px;
  box-shadow:2px 2px 0 #1B1D2E;
  white-space:nowrap;
}
.crowd{
  position:absolute;right:0;top:0;
  width:208px;height:96px;
  object-fit:cover;object-position:center 15%;
  pointer-events:none;
}
