/* 联系我们浮动按钮样式 */
.contact-widget {
    position: fixed;
    bottom: 30px;
    right: 80px;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.contact-button {
    width: 60px;
    height: 60px;
    background-color: #cacaca;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.contact-button:hover {
    background-color: #6CB4EE;
    transform: translateY(-2px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background-image: url('../image/message.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.contact-text {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    padding: 0 2px;
    word-break: break-all;
    top: 50%;
    left: 0;
    transform: translateY(20px);
}

.contact-button.active .contact-icon {
    opacity: 0;
    transform: translateY(-10px);
}

.contact-button.active .contact-text {
    opacity: 1;
    transform: translateY(-50%);
}

.contact-widget:hover .contact-button:not(.active) .contact-icon {
    opacity: 0;
    transform: translateY(-10px);
}

.contact-widget:hover .contact-button:not(.active) .contact-text {
    opacity: 1;
    transform: translateY(-50%);
}

.contact-panel {
    position: absolute;
    right: 70px;
    bottom: 0;
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 15px;
}

.contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.contact-left-qrcode {
    flex: 0 0 120px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px solid #f0f0f0;
}

.qrcode-img {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
}

.contact-right-options {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.contact-option {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.contact-option:last-child {
    margin-bottom: 0;
}

.contact-info {
    flex: 1;
}

.contact-title {
    color: #000;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.contact-phone {
    color: #2615a3;
    font-size: 14px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .contact-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-panel {
        width: 280px;
        right: 60px;
        flex-direction: column !important;
        padding: 15px;
    }
    
    .contact-left-qrcode {
        flex: 0 0 auto !important;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .qrcode-img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .contact-right-options {
        flex: 1 !important;
        gap: 8px;
    }
    
    .contact-option {
        padding: 8px;
    }
    
    .contact-title,
    .contact-phone {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .contact-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .contact-button {
        width: 50px;
        height: 50px;
    }
    
    .contact-panel {
        width: 250px;
        right: 50px;
    }
    
    .contact-text {
        font-size: 14px;
    }
}