/* 社交按钮操作栏 - 独立样式文件 */

/* 操作栏基础样式 - 右侧垂直居中,滚动控制显示隐藏 */
.xc_action {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(150%);
    z-index: 98;
    transition: transform 0.3s ease;
}

.xc_action.show {
    transform: translateY(-50%) translateX(-60px);
}

/* 社交按钮微信二维码hover显示 */
.xc_action_item .xc_action_wechat {
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

body.dark-theme .xc_action_item .xc_action_wechat {
    background: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.xc_action_item:hover .xc_action_wechat {
    display: block;
}

.xc_action_item .xc_action_wechat img {
    width: 120px;
    height: 120px;
    display: block;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .xc_action {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: translateX(150%);
    }

    .xc_action.show {
        transform: translateX(0);
    }

    .xc_action_item .xc_action_wechat {
        left: auto;
        right: 50px;
        bottom: 0;
        top: auto;
        transform: none;
    }
}