/* ...existing code... */

/* 悬浮触发区域 */
.float-trigger {
    position: fixed;
    left: 0;  /* 改为0，紧贴左边 */
    bottom: 0; /* 改为0，紧贴底部 */
    width: 40px;
    height: 40px;
    z-index: 1000;
    cursor: pointer;
}

/* 悬浮菜单容器 */
.float-menu {
    position: fixed;
    left: 8px;  /* 略微缩进，避免紧贴边缘 */
    bottom: 45px; /* 距离触发区域更近 */
    display: none;
    flex-direction: column;
    gap: 8px;    /* 减小间距使整体更紧凑 */
    padding: 8px;
    z-index: 999;
}

/* 添加一个过渡区域防止菜单消失 */
.float-menu::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -10px;
    height: 15px;
    z-index: -1;
}

/* 显示菜单的触发条件 */
.float-trigger:hover + .float-menu,
.float-menu:hover {
    display: flex;
}

/* 调整菜单项大小，使其更紧凑 */
.float-menu-item {
    width: calc(var(--quick-width) * 0.9); /* 稍微窄一点 */
    height: 36px; /* 降低高度 */
    font-size: 12px; /* 字体稍小 */
}

/* 菜单项样式 */
.float-menu-item {
    width: var(--quick-width);
    height: var(--quick-height);
    display: flex;
    align-items: center;
    background: var(--quick-bg);
    border-radius: var(--quick-radius);
    font-size: 13px;
    color: var(--quick-color);
    box-shadow: var(--quick-shadow);
    cursor: pointer;
    transition: box-shadow 0.3s;
    padding: 0 10px;
    text-decoration: none;
    opacity: 0.9;
    backdrop-filter: blur(8px);
}

.float-menu-item img {
    width: 22px;
    height: 22px;
    margin-right: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 随机颜色边缘效果类 */
.float-menu-item[data-glow="blue"] { --glow-color: #1a73e8cc; }
.float-menu-item[data-glow="green"] { --glow-color: #4caf50cc; }
.float-menu-item[data-glow="red"] { --glow-color: #f44336cc; }
.float-menu-item[data-glow="orange"] { --glow-color: #ff9800cc; }
.float-menu-item[data-glow="pink"] { --glow-color: #e91e63cc; }
.float-menu-item[data-glow="purple"] { --glow-color: #9c27b0cc; }

.float-menu-item:hover {
    opacity: 1;
    box-shadow: var(--quick-shadow), 0 0 8px 2px var(--glow-color);
}

/* 显示菜单的样式 */
.float-trigger:hover + .float-menu,
.float-menu:hover {
    display: flex;
}


/* 右侧音量控制条触发区 */
.volume-bar-trigger {
    position: fixed;
    right: 0;
    top: 40%;
    width: 50px;
    height: 200px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 0.25s;
    opacity: 0;
    pointer-events: none;
}

/* 竖直药丸条本体 */
.volume-bar {
    width: 22px;
    height: 140px;
    background: var(--quick-bg, #fff);
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(26, 115, 232, 0.10);
    transition: box-shadow 0.22s, transform 0.18s;
    opacity: 0.92;
    pointer-events: auto;
    position: relative;
    filter: drop-shadow(0 0 8px #1a73e8cc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 图标样式，保证不超出药丸宽度 */
.volume-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 悬停时上下圆角外发光 */
.volume-bar-trigger:hover .volume-bar,
.volume-bar:focus {
    box-shadow: 0 0 16px 4px #1a73e8cc, 0 2px 16px 0 rgba(26, 115, 232, 0.10);
    filter: drop-shadow(0 0 16px #1a73e8cc);
}

/* 滚动时震动放大动画 */
@keyframes volume-bounce {
    0% { transform: scale(1) translateY(0);}
    30% { transform: scale(1.12, 0.92) translateY(-6px);}
    60% { transform: scale(0.96, 1.08) translateY(3px);}
    100% { transform: scale(1) translateY(0);}
}
.volume-bar.bounce {
    animation: volume-bounce 0.32s cubic-bezier(.4,1.4,.4,1.1);
}

/* 数字提示动画 */
.volume-hint {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    color: #1a73e8;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
}
.volume-hint.show {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
    animation: hint-bounce 0.5s;
}
@keyframes hint-bounce {
    0% { transform: translateX(-50%) scale(0.8);}
    50% { transform: translateX(-50%) scale(1.3);}
    100% { transform: translateX(-50%) scale(1.2);}
}

/* 
如果喜欢本站 并且想拥有 联系我 https://vivix.vip/#contact 
未经授权，任何个人或组织不得复制、转载、传播、修改、镜像或以其他任何形式使用本网页的任何部分。
 */