/* 手機底部快捷選單：僅在 App 模式 (html.is-standalone) 顯示，由 _Layout.cshtml 載入 */
.mobile609-quick-nav {
    display: none;
}

@media (max-width: 768px) {
    html.is-standalone body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .mobile609-quick-nav {
        position: fixed;
        z-index: 99999;
        left: 20px;
        right: 20px;
        max-width: 440px;
        margin: 0 auto;
        bottom: calc(55px + env(safe-area-inset-bottom));
        height: 62px;
        padding: 7px 8px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        background: rgba(5, 12, 22, .90);
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 36px;
        box-shadow: 0 7px 24px rgba(0,0,0,.35);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        /* 捲動時滑出畫面，停止捲動後再滑回 */
        opacity: 1;
        transform: translateY(0);
        transition: transform .25s ease, opacity .25s ease;
    }

        .mobile609-quick-nav.is-scroll-hidden {
            opacity: 0;
            transform: translateY(calc(100% + 24px));
            pointer-events: none;
        }

        /* 行動主選單開啟時，隱藏底部快捷選單 */
        .mobile609-quick-nav.is-menu-hidden {
            opacity: 0;
            transform: translateY(calc(100% + 24px));
            pointer-events: none;
        }

        .mobile609-quick-nav a {
            width: 46px;
            height: 46px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: #f4f5f7;
            text-decoration: none;
            -webkit-tap-highlight-color: transparent;
            transition: color .18s ease, background-color .18s ease, transform .18s ease;
        }

            .mobile609-quick-nav a:active {
                transform: scale(.91);
            }

            .mobile609-quick-nav a.active {
                color: #d9b77b;
                background: #303943;
            }

        .mobile609-quick-nav svg {
            width: 25px;
            height: 25px;
            display: block;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.9;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .mobile609-quick-nav .line-icon {
            fill: currentColor;
            stroke: none;
        }

        .mobile609-quick-nav a.active .home-icon .home-roof,
        .mobile609-quick-nav a.active .home-icon .home-body {
            fill: currentColor;
            stroke: currentColor;
        }

        .mobile609-quick-nav a:focus-visible {
            outline: 2px solid #d9b77b;
            outline-offset: 2px;
        }

    /* 一般瀏覽器（非 App 模式）不顯示 */
    html:not(.is-standalone) .mobile609-quick-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile609-quick-nav a {
        transition: none;
    }
}

/* 彈出視窗（例如商品查詢）開啟時收起，避免蓋住視窗按鈕 */
body.modal-open .mobile609-quick-nav {
    visibility: hidden;
}
