/* 原本的效果保持不變 */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 返回頂部按鈕 */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 預設隱藏狀態：透明度為0、往下位移、完全禁止鼠標點擊 */
#back-to-top.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* 顯示狀態：透明度為1、歸位、恢復可點擊狀態 */
#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ⭐ 全局 nav-link（桌面用） */
.nav-link {
    @apply text-gray-700 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400
           px-3 py-2 text-sm font-medium transition-colors duration-200;
}

/* ⭐ 全局 mobile-link（手機 menu 用） */
.mobile-link {
    @apply block text-gray-700 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400
           px-3 py-2 rounded-md text-base font-medium;
}

/* 手機橫向時的 menu 限制 */
@media (max-width: 932px) and (orientation: landscape) {
  #mobile-menu {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}
