.nav-menu {
    position: fixed;
    top: 0; 
    left: 0;
    height: 100%;
    width: 217px;
    background-color: #f7f7f7; 
    transform: translateX(-100%); /* 初始状态隐藏在左侧 */
    transition: transform 0.3s ease; /* 过渡效果 */
    z-index: 1000;
}

.nav-menu.show {
    transform: translateX(0); /* 显示菜单 */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* 确保遮罩层在导航栏下方 */
    background: rgba(0, 0, 0, 0); /* 初始状态完全透明 */
    transition: background 0.5s ease; /* 背景渐变效果，持续时间为0.3秒 */
    display: none; /* 初始状态隐藏 */
}

.overlay.fade-in {
    background: rgba(0, 0, 0, 0.3); /* 渐变到半透明的黑色 */
}

.nav-menu ul {
    list-style-type: none;
    padding: 20px 10px;
    margin: 0;
}

.nav-menu ul li {
    margin-bottom: 10px;
}

.nav-menu ul li ul {
    margin-left: 20px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
}

.nav-menu ul li a:hover {
    color: #007bff;
}


/* 帮助 */
footer.help {
    text-align: center;
    padding: 20px 0;
    border-top: 0px solid #cfcfcf;
    font-size: 11px;
    color: #666;
}

footer .link {
    color: #888888;
    font-size: 10px;
    text-decoration: none;
    cursor: pointer;
}

footer .link:hover {
    text-decoration: underline;
}

/* 二维码图片初始隐藏 */
.qrcode-container {
    display: none; /* 初始状态隐藏 */
    text-align: center;
    margin-top: 10px;
}

.qrcode {
    width: 120px; /* 根据需求调整二维码尺寸 */
    height: 120px;
    border: 0.25px solid #ccc;
    padding: 3px;
}
