.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 20px; 
    margin: 0;
}

.nav-menu ul li {
    margin-bottom: 15px; /* 一级目录项之间的间距 */
    line-height: 1.6; /* 行高增大，文字垂直方向更舒展 */
    letter-spacing: 0.5px; /* 增加字间距，文字不拥挤 */
}

.nav-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 15px; /* 字体微放大，更醒目 */
    font-weight: 500; /* 字体轻微加粗，提升视觉层级 */
    display: block;
    padding: 8px 10px; /* 增加内边距，hover时背景更饱满 */
    border-radius: 4px; /* 轻微圆角，视觉更柔和 */
    transition: all 0.2s ease; /* 过渡动画，hover效果更丝滑 */
}

 /* 优化hover：背景+文字变色，交互更友好 */
.nav-menu ul li a:hover {
    color: #007bff;
    background-color: #f5f9ff; /* 浅蓝背景衬托，不单调 */
    letter-spacing: 0.8px; /* hover时字间距微增，强化视觉反馈 */
}


/* 帮助 */
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;
}
