/* 浮动联系框样式 */
.floating-container {
    position: fixed;
    z-index: 999;
    display: flex;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    top: 50%;
    transform: translateY(-50%);
}

/* 位置样式 */
.floating-container.float-contact-left {
    left: 20px;
}

.floating-container.float-contact-right {
    right: 20px;
}

/* 样式类型 */
.floating-container.float-style-flat {
    flex-direction: column;
    gap: 10px;
}

.floating-container.float-style-column {
    flex-direction: column;
    gap: 10px;
}

.floating-container.float-style-row {
    flex-direction: row;
    gap: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
}

/* 悬浮按钮样式 */
.floating-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: none;
}

.floating-button.square {
    border-radius: 8px;
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.floating-button img, 
.floating-button svg,
.floating-button object {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    margin: 0;
}

/* 返回顶部按钮特殊样式 */
.floating-button[onclick*="backToTop"] {
    background-color: transparent;
    box-shadow: none;
}

.floating-button[onclick*="backToTop"]:hover {
    background-color: transparent;
    transform: translateY(-3px);
}

/* 返回顶部图标 */
.back-to-top-icon {
    width: 32px;
    height: 32px;
    fill: #666;
}

/* 微信模态框样式 */
.float-contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.float-contact-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 330px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.float-contact-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.float-contact-close-button:hover {
    color: #666;
}

.float-contact-modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.float-contact-modal-content h4 {
    margin: 15px 0 10px 0;
    font-size: 16px;
    color: #333;
}

.float-contact-modal-content p {
    margin: 10px 0;
    font-size: 16px;
}

#float_contact_qrcode img,
#float_contact_wechat_qrcode img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 1px solid #eee;
}

/* 微信ID输入框 */
.wechat-id-input {
    width: 100%;
    padding: 8px 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.wechat-id-input:focus {
    border-color: #07C160;
    outline: none;
}

.float-contact-copy-button {
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    width: 80%;
}

.float-contact-copy-button:hover {
    background-color: #05A050;
}

/* 移动设备响应式调整 */
@media (max-width: 768px) {
    .floating-container {
        padding: 8px;
        z-index: 9999; /* 提高移动端z-index确保可见和可点击 */
    }
    
    .floating-button {
        width: 40px;
        height: 40px;
    }
    
    .floating-button img, 
    .floating-button svg,
    .floating-button object {
        width: 100%;
        height: 100%;
    }
    
    /* 移动设备下确保按钮一定可见 */
    .float-contact-mobile {
        display: flex !important;
        position: fixed !important;
        z-index: 10000 !important;
    }
    
    /* 在移动设备上调整弹窗样式 */
    .float-contact-modal {
        z-index: 10001 !important;
    }
    
    .float-contact-modal-content {
        width: 80% !important;
        max-width: 300px !important;
    }
} 