/* 数字人客服浮窗 - iframe嵌入版 */
.dh-float-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #1565c0);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: none;
}
.dh-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 102, 204, 0.5);
}
.dh-float-btn .dh-icon {
    font-size: 28px;
}
.dh-float-btn .dh-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}
.dh-panel {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 380px;
    height: 560px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 99998;
    overflow: hidden;
    display: none;
    background: white;
    border: 1px solid #e0e0e0;
}
.dh-panel.dh-open {
    display: block;
    animation: dh-slide-up 0.3s ease;
}
@keyframes dh-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.dh-panel-header {
    height: 48px;
    background: linear-gradient(135deg, #0066cc, #1565c0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
}
.dh-panel-header .dh-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dh-panel-header .dh-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}
.dh-panel-header .dh-close:hover {
    opacity: 1;
}
.dh-iframe {
    width: 100%;
    height: calc(100% - 48px);
    border: none;
    display: block;
}
/* 手机端适配 */
@media (max-width: 768px) {
    .dh-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .dh-float-btn {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
    .dh-float-btn .dh-icon {
        font-size: 24px;
    }
}
