/* 浮动联系区域样式 */
#myshop-floating-contact {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
}

/* 主按钮容器 */
.floating-main-buttons {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
}

/* 联系选项容器 */
.floating-contact-options {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 展开状态 */
.floating-contact-options.expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 浮动按钮基础样式 */
.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    background: #fff;
    box-shadow: 0px 0px 4px rgb(190 172 172);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn:active {
    transform: translateY(0);
}

/* 回到顶部按钮 */
.scroll-to-top {
    /* 使用基础样式 */
}

/* 聊天按钮 */
.chat-toggle {
    position: relative;
}

.chat-toggle.active {
    transform: rotate(45deg);
    background: #333;
    color: #fff;
}

/* Instagram按钮 */
.instagram {
    /* 使用基础样式 */
}

/* WhatsApp按钮 */
.whatsapp {
    /* 使用基础样式 */
}

/* 邮件按钮 */
.email {
    /* 使用基础样式 */
}

/* SVG图标样式 */
.floating-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #myshop-floating-contact {
        bottom: 100px;
        right: 25px;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
    }
    
    .floating-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.floating-btn.bounce {
    animation: bounce 1s ease-in-out;
}

/* 工具提示样式 */
.floating-btn::before {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 8px;
    pointer-events: none;
}

.floating-btn::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 3px;
    pointer-events: none;
}

.floating-btn:hover::before,
.floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 隐藏滚动到顶部按钮（当页面在顶部时） */
.scroll-to-top.hidden {
    opacity: 0.3;
    pointer-events: none;
}