/* 侧边栏样式 - 外贸专业风格 */
.side-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: transparent;
}

.toolbar-item {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -2px 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* Hide label initially */
}

/* Hover Effect: Expand Width */
.toolbar-item:hover {
    width: 160px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.toolbar-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: #fff;
    transition: background-color 0.3s;
}

.icon-box i {
    font-size: 26px;
    color: #666;
    transition: color 0.3s;
}

.toolbar-label {
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding-left: 10px;
    opacity: 0;
    transition: opacity 0.3s 0.1s;
}

.toolbar-item:hover .toolbar-label {
    opacity: 1;
}

/* Specific Colors on Hover */
.toolbar-item:hover .whatsapp-bg { background-color: #25D366; }
.toolbar-item:hover .skype-bg { background-color: #00AFF0; }
.toolbar-item:hover .email-bg { background-color: #D44638; }
.toolbar-item:hover .contact-bg { background-color: #004a99; }
.toolbar-item:hover .top-bg { background-color: #333; }

.toolbar-item:hover .icon-box i {
    color: #fff;
}

/* Background color for expanded part */
.toolbar-item:hover {
    background-color: #25D366; /* Default fallback */
}
.toolbar-item:has(.whatsapp-bg):hover { background-color: #25D366; }
.toolbar-item:has(.skype-bg):hover { background-color: #00AFF0; }
.toolbar-item:has(.email-bg):hover { background-color: #D44638; }
.toolbar-item:has(.contact-bg):hover { background-color: #004a99; }
.toolbar-item:has(.top-bg):hover { background-color: #333; }

/* Scroll Top Button Specifics */
.scroll-top {
    margin-top: 20px;
    border-radius: 4px 0 0 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .side-toolbar {
        top: auto;
        bottom: 20px;
        right: 10px;
        flex-direction: column-reverse; /* Stack from bottom */
        gap: 10px;
    }

    .toolbar-item {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        overflow: visible; /* Show label as tooltip if needed, or hide */
    }

    .toolbar-item:hover {
        width: 45px; /* Don't expand on mobile */
    }

    .icon-box {
        width: 45px;
        height: 45px;
        background-color: #fff;
        border-radius: 50%;
    }
    
    .icon-box i {
        font-size: 20px;
        color: #fff; /* Always white on mobile */
    }

    .toolbar-label {
        display: none; /* Hide text on mobile */
    }

    /* Always colored on mobile */
    .whatsapp-bg { background-color: #25D366; }
    .skype-bg { background-color: #00AFF0; }
    .email-bg { background-color: #D44638; }
    .contact-bg { background-color: #004a99; }
    .top-bg { background-color: #333; }
}