:root {
    --qn-primary: #185FA5;
    --qn-primary-light: #378ADD;
    --qn-text: #ffffff;
}

/* 防止导航栏移出态溢出产生横向滚动条（不动现有 index.css） */
html, body {
    overflow-x: hidden;
}

/* ===== 右侧隐形热区：8px 宽，悬停唤醒 ===== */
.qn-hotzone {
    position: fixed;
    top: 0;
    right: 0;
    width: 8px;
    height: 100vh;
    background: transparent;
    z-index: 9998;
}

/* ===== 悬浮快捷导航栏 ===== */
.quick-nav {
    position: fixed;
    right: 0;
    top: 50%;
    width: 160px;
    transform: translateY(-50%) translateX(100%);
    transition: transform .3s ease;
    z-index: 9999;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px 0 0 16px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.28);
}

.quick-nav.is-open {
    transform: translateY(-50%) translateX(0);
}

/* 入口卡片：图标左、文字右 */
.qn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--qn-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.qn-item:hover,
.qn-item:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--qn-primary-light);
    transform: translateX(-4px);
    outline: none;
}

.qn-item .qn-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qn-item .qn-icon svg {
    width: 20px;
    height: 20px;
}

.qn-item .qn-label {
    white-space: nowrap;
}

/* ===== 右下角常驻触发按钮 ===== */
.qn-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--qn-primary);
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(24, 95, 165, 0.4);
    transition: background .2s ease, transform .2s ease;
}

.qn-toggle:hover {
    background: var(--qn-primary-light);
    transform: scale(1.05);
}

.qn-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.qn-toggle svg {
    width: 22px;
    height: 22px;
}

/* ===== 移动端：禁用热区 hover，仅保留按钮触发 ===== */
@media (hover: none) {
    .qn-hotzone {
        pointer-events: none;
    }
}
