/* ============================================================
   右侧悬浮工具栏 优化样式（独立文件，不影响其他模块）
   ============================================================ */

.right-sidebar {
    width: 64px;
    right: 24px !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%);
    z-index: 9999 !important;
}

.right-sidebar ul {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(15, 42, 100, 0.16), 0 2px 8px rgba(15, 42, 100, 0.08);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: visible;
    list-style: none;
}

.right-sidebar li {
    width: 48px !important;
    height: 56px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 12px;
    margin: 0 0 4px 0;
    color: #6b7a90 !important;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.right-sidebar li:last-child {
    margin-bottom: 0;
}

/* 图标区域 */
.right-sidebar li .icons {
    height: auto !important;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.right-sidebar li .icons .iconfont,
.right-sidebar li .icons .icon {
    font-size: 20px !important;
    width: 22px;
    height: 22px;
    line-height: 22px;
    transition: all 0.28s;
}

.right-sidebar li .icons svg {
    width: 22px;
    height: 22px;
}

/* 文字标签 */
.right-sidebar li .tit {
    margin-top: 3px !important;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.28s;
}

/* hover 普通按钮：浅蓝底 + 蓝字 */
.right-sidebar li:hover {
    background: #eaf2fe !important;
    color: #0074D2 !important;
    transform: translateX(-3px);
}

.right-sidebar li:hover .icons .iconfont,
.right-sidebar li:hover .icons .icon,
.right-sidebar li:hover .icons svg {
    color: #0074D2;
    fill: #0074D2;
}

/* 客服按钮：蓝色渐变主按钮 */
.right-sidebar li.custom-li {
    background: linear-gradient(145deg, #2b8ce8 0%, #0074D2 60%, #0060ad 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 116, 210, 0.4);
}

.right-sidebar li.custom-li .icons .iconfont,
.right-sidebar li.custom-li .icons .icon,
.right-sidebar li.custom-li .icons svg,
.right-sidebar li.custom-li .tit {
    color: #fff !important;
    fill: #fff !important;
}

.right-sidebar li.custom-li:hover {
    background: linear-gradient(145deg, #3a97f0 0%, #0e80dd 60%, #006cbf 100%) !important;
    box-shadow: 0 8px 22px rgba(0, 116, 210, 0.55);
    transform: translateX(-3px);
}

/* 回到顶部按钮：上方细分隔线 */
.right-sidebar li[v-on\:click="backTop"],
.right-sidebar li:last-child {
    margin-top: 6px;
}

.right-sidebar li:last-child::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: #eef1f6;
}

/* popover 触发区域撑满按钮 */
.right-sidebar li .el-popover__reference-wrapper,
.right-sidebar li > div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 二维码弹窗美化 + 与菜单拉开间距 */
.el-popover.wechat-ewm-popover {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 16px 48px rgba(15, 42, 100, 0.22) !important;
    padding: 14px !important;
    background: #fff;
    box-sizing: border-box;
}

/* 隐藏自动翻转后位置不精确的小箭头，视觉更干净 */
.el-popover.wechat-ewm-popover .popper__arrow,
.el-popover.wechat-ewm-popover .popper__arrow::after {
    display: none !important;
}

/* 弹窗在菜单左侧（屏幕右侧自动翻转）时，向右留出间距 */
.el-popover.wechat-ewm-popover[x-placement^="left"] {
    margin-right: 20px !important;
}

/* 弹窗在菜单右侧时，向左留出间距 */
.el-popover.wechat-ewm-popover[x-placement^="right"] {
    margin-left: 20px !important;
}

.el-popover.wechat-ewm-popover img {
    border-radius: 10px;
    display: block;
}
