/* 论见全站悬浮快捷导航 quick-nav v20260919 */
.quick-nav {
    position: fixed; right: 18px; bottom: 90px; z-index: 1500;
    background: #fff; border: 1px solid #e8edf3; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26,58,92,.10);
    display: flex; flex-direction: column; padding: 6px;
}
.qn-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    width: 56px; padding: 8px 4px; border: none; background: transparent;
    border-radius: 8px; cursor: pointer; text-decoration: none;
    color: #6b7a8d; font-size: 10.5px; line-height: 1;
    font-family: inherit; transition: background .15s, color .15s;
}
.qn-item:hover { background: #f0f5fa; color: #1a3a5c; }
.qn-item svg { width: 20px; height: 20px; }
.qn-item.active { background: #e8f1fa; color: #1a3a5c; }
/* 菜单展开面板 */
.qn-menu-panel {
    position: absolute; right: 0; bottom: calc(100% + 8px); width: 232px;
    max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid #e8edf3; border-radius: 12px;
    box-shadow: 0 10px 32px rgba(26,58,92,.16); padding: 4px 0;
    display: none; z-index: 1600;
}
.qn-menu-panel.open { display: block; }
.qn-menu-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f0f3f7; }
.qn-menu-sub { font-size: 11px; color: #9aa7b6; font-weight: 400; margin-top: 1px; }
.qn-menu-ava { width: 26px; height: 26px; border-radius: 50%; background: #1a3a5c; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.qn-menu-name { flex: 1; font-size: 13px; color: #1a3a5c; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qn-menu-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e54545; color: #fff; font-size: 10px; line-height: 16px; text-align: center; flex: none; }
.qn-menu-auth { flex: 1; text-align: center; padding: 6px 0; border-radius: 6px; border: 1px solid #d5dee8; color: #33475b; font-size: 12.5px; text-decoration: none; }
.qn-menu-auth.reg { background: #1a3a5c; color: #fff; border-color: #1a3a5c; margin-left: 8px; }
.qn-menu-group { padding: 5px 0; border-bottom: 1px solid #f0f3f7; }
.qn-menu-group:last-child { border-bottom: none; }
.qn-menu-label { font-size: 11px; color: #9aa7b6; padding: 2px 14px 5px; }
.qn-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border: 0; background: transparent; font-size: 13px; color: #33475b; text-decoration: none; cursor: pointer; text-align: left; font-family: inherit; box-sizing: border-box; }
.qn-menu-item:hover { background: #f5f8fb; }
.qn-menu-item svg { width: 15px; height: 15px; stroke: #7a8a9a; flex: none; }
.qn-menu-item.disabled { color: #b6c0cb; cursor: default; }
.qn-menu-item.disabled:hover { background: transparent; }
.qn-menu-item.disabled svg { stroke: #c2ccd6; }
.qn-menu-soon { margin-left: auto; font-size: 10px; color: #b6c0cb; border: 1px solid #e3e9f0; border-radius: 4px; padding: 1px 5px; }
.qn-menu-item .qn-menu-badge { margin-left: auto; }
/* 表单页移动端：下部横条悬浮 */
@media (max-width: 640px) {
    .quick-nav { right: 10px; bottom: 70px; padding: 4px; }
    .qn-item { width: 46px; padding: 6px 2px; font-size: 10px; }
    .quick-nav.qn-form-mode { flex-direction: row; right: 50%; transform: translateX(50%); bottom: 10px; }
    .quick-nav.qn-form-mode .qn-item { width: auto; min-width: 54px; padding: 6px 8px; }
    .quick-nav.qn-form-mode .qn-menu-panel { left: 50%; right: auto; transform: translateX(-50%); }
}

/* ===== 移动端：底部固定 Tab 栏（2026-10-02 与桌面端功能同步） ===== */
@media (max-width: 768px) {
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important; }
    .quick-nav:not(.qn-form-mode) {
        right: 0; left: 0; top: auto; bottom: 0;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        max-width: none;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border: none;
        border-top: 1px solid #e8edf3;
        box-shadow: 0 -2px 12px rgba(26,58,92,.08);
    }
    .quick-nav:not(.qn-form-mode)::after { content: none; }
    .quick-nav:not(.qn-form-mode) .qn-item {
        flex: 1;
        width: auto;
        max-width: 76px;
        padding: 6px 2px;
        gap: 2px;
        font-size: 10px;
    }
    .quick-nav:not(.qn-form-mode) .qn-item svg { width: 21px; height: 21px; }
    .quick-nav:not(.qn-form-mode) .qn-menu-panel {
        left: 50%; right: auto;
        transform: translateX(-50%);
        bottom: calc(100% + 10px);
        width: min(320px, calc(100vw - 32px));
        max-height: 60vh;
    }
}
@media (max-width: 768px) {
    /* 表单页保持原有居中横条行为（submit 等），仅适度防遮挡 */
    body:has(.quick-nav.qn-form-mode) { padding-bottom: 70px !important; }
}
