/* 快捷小导航菜单美化 */
ul.nav.navbar-menu.topgj_r {
    margin-right: 15px;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.topgj_r .menu-item:hover > ul {
    opacity: 1;
    top: 32px;
    visibility: visible;
    padding: 8px 0;
    transform: translateY(5px);
}

.topgj_r .sub-menu-z {
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-radius: 8px;
    position: absolute;
    z-index: 9999;
    min-width: 120px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.io-black-mode .topgj_r .sub-menu-z {
    background: #2c2e2f;
    border-color: rgba(255, 255, 255, 0.05);
}

.sub-menu-z .menu-item-z {
    list-style: none;
    border-radius: 4px;
    padding: 8px 12px;
    white-space: nowrap;
    margin: 0 5px;
    transition: all 0.2s ease;
}

.topgj_r .menu-item a {
    font-size: 14px;
    padding: 12px 12px;
    color: #282a2d;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topgj_r .menu-item:hover > a {
    color: #1890ff;
}

.io-black-mode .topgj_r .menu-item a {
    color: #e0e0e0;
}

.io-black-mode .topgj_r .menu-item:hover > a {
    color: #64b5f6;
}

.sub-menu-z .menu-item-z a {
    font-size: 13px;
    padding: 0;
    color: #555 !important;
    display: block;
    transition: color 0.2s ease;
}

.io-black-mode .sub-menu-z .menu-item-z a {
    color: #c6c9cf !important;
}

li.menu-item-z:hover {
    background: rgba(24, 144, 255, 0.1);
}

li.menu-item-z:hover a {
    color: #1890ff !important;
}

.io-black-mode li.menu-item-z:hover {
    background: rgba(100, 181, 246, 0.1);
}

.io-black-mode li.menu-item-z:hover a {
    color: #64b5f6 !important;
}

/* 微信二维码悬浮效果 */
.navbar-menu .weixin {
    position: relative;
}

.navbar-menu .weixin img {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.io-black-mode .navbar-menu .weixin img {
    background: #2c2e2f;
    border-color: rgba(255, 255, 255, 0.05);
}

.navbar-menu .weixin:hover img {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .topgj_r {
        display: none !important;
    }
}