
#fpsNavToggle {
    position: fixed !important; top: 10px !important; left: 10px !important; z-index: 9999990 !important;
    width: 44px; height: 44px; padding: 0; margin: 0; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #0070ba, #003087);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 48, 135, .35);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease;
}
#fpsNavToggle:active { transform: scale(.94); }
#fpsNavToggle svg { width: 22px; height: 22px; fill: #fff; }
#fpsNavBackdrop {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999991 !important;
    background: rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
#fpsNavBackdrop.fps-open { opacity: 1; visibility: visible; }
#fpsNavDrawer {
    position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 250px; max-width: 82vw; z-index: 9999992 !important;
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(-102%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
#fpsNavDrawer.fps-open { transform: translateX(0); }
#fpsNavDrawer .fps-nav-head {
    padding: 18px; background: linear-gradient(135deg, #0070ba, #003087); color: #fff;
    font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between;
}
#fpsNavDrawer .fps-nav-close {
    cursor: pointer; padding: 4px 9px; border-radius: 6px; font-size: 18px; line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
#fpsNavDrawer .fps-nav-close:hover { background: rgba(255, 255, 255, .18); }
#fpsNavDrawer .fps-nav-list { flex: 1; overflow-y: auto; padding: 8px 0; }
#fpsNavDrawer .fps-nav-item {
    display: flex !important; align-items: center; gap: 12px;
    /* 必須明寫 height:auto：頁面自帶的全局 a{display:block;width:100%;height:100%}
       會讓每一項撐滿整個列表高度，導致只看得到第一項 */
    height: auto !important; width: 100% !important;
    padding: 14px 18px; color: #1f2d3d; text-decoration: none; font-size: 15px;
    border-left: 3px solid transparent; -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
#fpsNavDrawer .fps-nav-item:hover { background: #f2f7fd; }
#fpsNavDrawer .fps-nav-item.fps-active {
    background: #e8f3ff; border-left-color: #0070ba; color: #0070ba; font-weight: 600;
}
#fpsNavDrawer .fps-nav-item svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 480px) {
    #fpsNavToggle { width: 40px; height: 40px; top: 8px !important; left: 8px !important; }
}
