/* mobile-nav.css - 独立手机导航，不依赖 FontAwesome/skel */
#mobile-titlebar {
    display: none;
}
#mobile-navpanel {
    display: none;
}

/* Hide old titleBar/navPanel from main.js/skel - we use our own */
@media screen and (max-width: 736px) {
    #titleBar,
    #navPanel {
        display: none !important;
    }
    #mobile-titlebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 44px;
        z-index: 10001;
        background: transparent;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 0 1px 8px rgba(255, 158, 181, 0.15);
    }

    #mobile-titlebar .mobile-title {
        color: #ff9eb5;
        font-weight: bold;
        font-size: 15px;
        height: 44px;
        line-height: 44px;
        text-align: center;
        display: block;
        text-decoration: none;
        font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    }

    #mobile-titlebar .mobile-hamburger {
        position: absolute;
        left: 0;
        top: 0;
        width: 54px;
        height: 44px;
        border: none;
        background: none;
        cursor: pointer;
        outline: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    #mobile-titlebar .mobile-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #ff9eb5;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    body.navpanel-open #mobile-titlebar .mobile-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    body.navpanel-open #mobile-titlebar .mobile-hamburger span:nth-child(2) {
        opacity: 0;
    }
    body.navpanel-open #mobile-titlebar .mobile-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #mobile-navpanel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100%;
        z-index: 10002;
        background: rgba(255, 182, 193, 0.15);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
        padding: 60px 0 20px 0;
        transform: translateX(-260px);
        transition: transform 0.35s ease;
        overflow-y: auto;
    }

    body.navpanel-open #mobile-navpanel {
        transform: translateX(0);
    }

    body.navpanel-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 10001;
    }

    #mobile-navpanel a {
        display: block;
        padding: 14px 24px;
        color: #555;
        text-decoration: none;
        font-weight: bold;
        font-size: 15px;
        font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
        border-bottom: 1px solid rgba(255, 158, 181, 0.15);
        transition: all 0.2s;
    }

    #mobile-navpanel a:hover,
    #mobile-navpanel a:active {
        color: #ff9eb5;
        background: rgba(255, 158, 181, 0.1);
    }

    #mobile-navpanel a.active-page {
        color: #ff9eb5;
        background: rgba(255, 158, 181, 0.15);
        border-left: 3px solid #ff9eb5;
    }
}
