/* ==========================================================================
   common.css — 每一頁都會載入（包含商店頁），放在頁面樣式之後
   ========================================================================== */

/* 語言切換按鈕（原本內嵌在每頁 <body> 的 <style>） */
#language-switcher .lang-btn {
  text-decoration: none !important; /* 禁止底線 */
  transition: color 0.3s ease;
}

#language-switcher .lang-btn:hover:not(:disabled) {
  color: rgb(216, 48, 140);
  text-decoration: none !important;
}

#language-switcher .lang-btn.active-lang {
  color: white; /* 與一般文字同色 */
}

#language-switcher .lang-btn:disabled {
  cursor: default;
}

/* 「跳至主要內容」連結：平常隱藏，用 Tab 鍵時才出現在畫面左上角 */
.skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 10001;
  padding: 8px 16px;
  background: #fff;
  color: #000;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

/* 手機版選單按鈕與抽屜：預設隱藏，只在 mobile.css 的 < 992px 斷點出現 */
.nav-toggle,
.mobile-nav {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
