.customer-service-widget {
    position: fixed;
    bottom: 7%!important;
    right: 2%!important;
    z-index: 99;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.customer-service-widget.expanded {
    transform: translateX(0);
}

.customer-service-widget.expanded .cs-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cs-toggle-btn {
    width: 40px;
    height: 40px;
    background: var(--bs-purple);;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}


.cs-toggle-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 20px 0px rgb(255 0 82 / 50%);
}


.cs-icon, .cs-close-icon {
    position: absolute;
    font-size: 22px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.cs-icon {
    opacity: 0;
}

.cs-close-icon {
    opacity: 1;
}

.customer-service-widget.expanded .cs-icon {
    opacity: 1;
}

.customer-service-widget.expanded .cs-close-icon {
    opacity: 0;
}

.cs-content {
    width: 280px;
    background: var(--bs-purple);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 60px;
    right: 0;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cs-header {
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.cs-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cs-header p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #cdcdcd;
}

.cs-contact-method {
    margin-bottom: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}


.cs-contact-icon i {
    font-size: 20px;
    color: #ffffff;
}

.cs-contact-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.cs-contact-info p {
    margin: 0;
    font-size: 12px;
    color: #474747;
}

.cs-qrcode {
    text-align: center;
}

.cs-qrcode img {
    width: 180px;
    height: auto;
    border-radius: 4px;
}

.cs-footer {
    text-align: center;
    font-size: 12px;
    color: #ffffff;
}

/* 鍝嶅簲寮忚璁� */
@media (max-width: 480px) {
    .customer-service-widget {
        bottom: 10px;
        right: 10px;
    }

    .cs-content {
        width: 260px;
    }
}