*
/* === 小藥丸公告（跑馬燈） === */
.marquee-pill{
  position: fixed;
  top: calc(var(--nav-h) + 10px); /* 用你已設的導覽列高度變數 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  max-width: min(920px, 92vw);
  width: 92vw;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  overflow: hidden;           /* 關鍵：只露出 pill 內區域 */
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: auto;       /* 允許 hover 暫停 */
}

.marquee-track{
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-slide 18s linear infinite;
}

/* 讓內容有一點間距，看起來更像 pill */
.marquee-text{
  display: inline-block;
  padding-right: 2rem; /* 兩段文字之間距離 */
  font-size: 14px;
  letter-spacing: .3px;
}

/* 滑鼠移入暫停 */
.marquee-pill:hover .marquee-track{
  animation-play-state: paused;
}

/* 跑馬燈動畫（右 → 左） */
@keyframes marquee-slide{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 因為我們放了兩份，位移 50% 可無縫循環 */
}

/* 手機調整：收窄、字大一點 */
@media (max-width: 480px){
  .marquee-pill{ 
    top: calc(var(--nav-h) + 8px);
    padding: 7px 12px;
  }
  .marquee-text{ font-size: 13px; }
}


