/* 右侧弹出侧边栏样式 - 类似amz123.com风格 */

/* 侧边栏主容器 */
.sidebar-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999 !important;
}

/* 侧边栏按钮组 */
.sidebar-right .sidebar-items {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

/* 单个侧边栏项 */
.sidebar-right .sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 70px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
    overflow: visible;
}

.sidebar-right .sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-right .sidebar-item:hover {
    background-color: #ff6b00;
}

.sidebar-right .sidebar-item svg {
    width: 28px;
    height: 28px;
    fill: #666;
    margin-bottom: 4px;
}

.sidebar-right .sidebar-item:hover svg {
    fill: #fff;
}

/* 文字标签 */
.sidebar-right .sidebar-item .item-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

.sidebar-right .sidebar-item:hover .item-label {
    color: #fff;
}

/* 弹出面板 */
.sidebar-right .sidebar-item .sidebar-panel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none !important;
    z-index: 100000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 鼠标悬停显示面板 - 纯CSS实现 */
.sidebar-right .sidebar-item:hover .sidebar-panel {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* 面板箭头 */
.sidebar-right .sidebar-item .sidebar-panel::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff;
    z-index: 100001;
}

/* 面板标题 */
.sidebar-right .sidebar-item .sidebar-panel .panel-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b00;
    text-align: center;
}

/* 面板内容 */
.sidebar-right .sidebar-item .sidebar-panel .panel-content {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 二维码样式 */
.sidebar-right .sidebar-item .sidebar-panel .qr-code {
    text-align: center;
    margin-top: 10px;
}

.sidebar-right .sidebar-item .sidebar-panel .qr-code img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.sidebar-right .sidebar-item .sidebar-panel .qr-code p {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar-right .sidebar-item {
        width: 50px;
        height: 60px;
    }
    
    .sidebar-right .sidebar-item .sidebar-panel {
        width: 240px;
        right: 50px;
        padding: 15px;
    }
    
    .sidebar-right .sidebar-item .sidebar-panel .qr-code img {
        width: 160px;
        height: 160px;
    }
}