/**
 * EMS 浮动导航 - 纯图标样式
 * 透明背景、始终展开、不与音乐播放器冲突
 */

/* 浮动导航容器 */
.nav-float {
    position: fixed;
    right: 12px;
    bottom: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* 音乐播放器展开时上移（播放器约 250x350，留 170px 间距） */
body.has-media-player .nav-float {
    bottom: 170px;
}

/* 音乐播放器折叠时回落 */
body.has-media-player.collapsed .nav-float {
    bottom: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-float {
        right: 8px;
        bottom: 20px;
    }
    body.has-media-player .nav-float {
        bottom: 160px;
    }
    body.has-media-player.collapsed .nav-float {
        bottom: 20px;
    }
}

/* 小屏手机 */
@media (max-width: 375px) {
    .nav-float {
        right: 6px;
        bottom: 16px;
    }
    body.has-media-player .nav-float {
        bottom: 150px;
    }
}

/* 导航项 - 纯图标无背景 */
.nav-float-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #666;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-float-item:hover {
    color: #6366f1;
    transform: scale(1.15);
}

.nav-float-item:active {
    transform: scale(0.95);
}

/* 返回顶部图标更突出 */
.nav-float-item.nav-top {
    font-size: 1.6rem;
    color: #444;
}

.nav-float-item.nav-top:hover {
    color: #6366f1;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    .nav-float-item {
        color: #aaa;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    .nav-float-item:hover {
        color: #818cf8;
    }
    .nav-float-item.nav-top {
        color: #ccc;
    }
}
