/* 移动端悬浮菜单样式 */
#mobile-menu-toggle {
    display: none;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
    cursor: pointer;
    display: block; /* Ensure it's a block element for clickability */
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #374151;
}
.mobile-menu-content {
    padding: 4rem 0 2rem;
}
.mobile-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}
.mobile-menu-item:hover {
    background-color: #f9fafb;
    color: #2563eb;
}
.mobile-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}
.mobile-menu-button {
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border-radius: 0.5rem;
    text-align: center;
    border-bottom: none; /* Override default item border */
}
.mobile-menu-button:hover {
    background: #1d4ed8;
    color: white;
}
/* 菜单打开状态 */
#mobile-menu-toggle:checked ~ .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}
#mobile-menu-toggle:checked ~ .mobile-menu {
    right: 0; /* Slide in */
}
/* 桌面端隐藏移动菜单 */
@media (min-width: 768px) {
    .mobile-menu-overlay,
    .mobile-menu {
        display: none;
    }
}

