/* 前台浮动客服入口（由 view('kefu/embed.tag') 引入，未引入则无样式） */
.kefu-float-entry {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #409eff 0%, #1989fa 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(25, 137, 250, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.kefu-float-entry:hover {
    background: linear-gradient(135deg, #1989fa 0%, #0d6edb 100%);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(25, 137, 250, 0.5);
}
.kefu-float-entry .layui-icon {
    font-size: 26px;
}
.kefu-float-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    background: #f56c6c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    padding: 0 5px;
    display: none;
    box-sizing: border-box;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(245, 108, 108, 0.4);
    align-items: center;
    justify-content: center;
}

/* 右下角 iframe 客服浮层 - 一体化无标题栏设计 */
.kefu-float-panel {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 99998;
    width: min(380px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 110px));
    max-height: min(580px, calc(100vh - 110px));
    min-height: 320px;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}
.kefu-float-panel[hidden] {
    display: none !important;
}
.kefu-float-panel-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #f5f7fa;
    border-radius: 16px;
}
@media (max-width: 480px) {
    .kefu-float-panel {
        right: 8px;
        left: 8px;
        bottom: 80px;
        width: auto;
        height: min(540px, calc(100vh - 100px));
        max-height: min(540px, calc(100vh - 100px));
        border-radius: 12px;
    }
    .kefu-float-panel-frame {
        border-radius: 12px;
    }
}
