.floating-buttons {
    position: fixed;
    right: 10px;
    bottom: 190px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.floating-btn {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    color: #ccc;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /*font-size: 24px;*/
    /*transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
    padding: 0px;
    position: relative;
    overflow: hidden;
    border: 0px solid #ddd;
    /*background: #fff*/
}

.floating-btn:hover {
    border: 0px solid #aaa
}

.dialog {
    position: fixed;
    right: 110px;
    width: 320px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 10000;
    display: none
}

.dialog.active {
    display: block;
    animation: slideIn 0.3s ease
}

.dialog-content {
    margin-bottom: 20px;
    line-height: 1.6
}

.copy-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease
}

.copy-btn:hover {
    background-color: #2980b9
}

.copy-btn.copied {
    background-color: #27ae60
}

.qrcode-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
    border: 1px dashed #ddd
}

.dialog::after {
    content: '';
    position: absolute;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white
}

#dialog1::after {
    bottom: 20px
}

#dialog2::after {
    bottom: 20px
}

#guiyi_fuzhi_img {
    display: block;
    width: 70px;
    height: 70px;
    padding: 0px;
    margin: 0px
}

#guiyi_fuzhi_img_m {
    display: none;
}

@media (max-width: 768px) {
    .floating-buttons {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: row;
        justify-content: space-around;
        background-color: white;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        gap: 0
    }

    #guiyi_fuzhi_img_m {
        display: block;
        height: 50px;
        padding: 0px;
        margin: 0px
    }

    #guiyi_fuzhi_img {
        display: none;
    }

    .floating-btn {
        width: 50%;
        height: 40px;
        font-size: 20px;
        border: none;
        background-color: transparent;
    }

    .floating-btn:hover {
        border: none
    }

    .dialog {
        right: 50%;
        bottom: 113px;
        transform: translateX(50%);
        width: 90%;
        max-width: 320px
    }

    .dialog::after {
        top: auto;
        bottom: -10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-width: 10px 10px 0 10px;
        border-color: white transparent transparent transparent
    }

    #dialog1::after, #dialog2::after {
        bottom: -10px
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@media (max-width: 768px) {
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(50%, 20px)
        }
        to {
            opacity: 1;
            transform: translate(50%, 0)
        }
    }
}