.local-customer-entry {
    position: fixed;
    right: 20px;
    bottom: 108px;
    z-index: 99999;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    /* 核心：只给这个盒子加上下浮动动画 */
    animation: floatMove 1.6s ease-in-out infinite;
}


/* 上下浮动动画（只动图标盒子） */
@keyframes floatMove {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 以下完全不动 */
.local-customer-entry-icon {
    display: block;
    width: 60px;
    height: 60px;
    background: url("/template/index/pc/customer-local/images/entry-icon.png") no-repeat center center;
    background-size: contain;
}

.local-customer-mask {
    display: none;
    position: fixed;
    z-index: 99997;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.local-customer-popup {
    display: none;
    position: fixed;
    z-index: 99998;
    right: 12px;
    bottom: 12px;
    width: 390px;
    height: 705px;
    background: #f5f5f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.local-customer-popup,
.local-customer-popup * {
    font-family: PingFangSC-Medium, PingFang SC;
}

.local-customer-header {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.local-customer-title {
    color: #222;
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.local-customer-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 24px;
}

.local-head-tab {
    border: 0;
    background: rgba(66, 133, 244, 0.1);
    color: #4285F4;
    font-size: 14px;
    border-radius: 4px;
    height: auto;
    line-height: 1;
    padding: 8px 10px;
    cursor: pointer;
    margin-right: 25px;
}

.local-head-tab.active {
    border: 0;
    background: #4285F4;
    color: var(--color, #fff);
}

.local-lang-tag {
    color: #777;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 4px;
}

.local-customer-close {
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: block;
    background: url("/template/index/pc/customer-local/images/close-icon.png") no-repeat center center;
    background-size: contain;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.local-panel {
    height: calc(100% - 74px);
}

.local-chat-panel {
    display: block;
}

.local-form-panel {
    display: none;
    padding: 14px 16px;
}

.local-message-list {
    height: calc(100% - 64px);
    overflow-y: auto;
    padding: 12px 12px 0;
    background: #ececec;
}

.local-message-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.local-message-item.right {
    justify-content: flex-end;
}

.local-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d8d8d8;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.local-avatar-bot {
    background: url("/template/index/pc/customer-local/images/bot-avatar.png") no-repeat center center;
    background-size: cover;
    color: transparent;
    font-size: 0;
}

.local-avatar-user {
    background: url("/template/index/pc/customer-local/images/user-avatar.png") no-repeat center center;
    background-size: cover;
    color: transparent;
    font-size: 0;
}

.local-bubble {
    max-width: 320px;
    background: #fff;
    color: #444;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
}

.local-message-item.right .local-bubble {
    background: #3f86ff;
    color: #fff;
}

.local-chat-input {
    height: 64px;
    border-top: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}

.local-chat-input input {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
}

.local-chat-input button {
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: #3f86ff;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
}

.local-form-wrap {
    background: transparent;
    border-radius: 10px;
    padding: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
}

.local-form-wrap input,
.local-form-wrap textarea,
.local-form-wrap input::placeholder,
.local-form-wrap textarea::placeholder {
    font-family: PingFangSC-Medium, PingFang SC;
}

.local-form-wrap input,
.local-form-wrap textarea {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #444;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
}

.local-form-wrap textarea {
    height: 86px;
    padding-top: 12px;
    resize: none;
}

.local-agree-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.local-customer-submit {
    margin-top: 12px;
    margin-left: auto;
    padding: 0 10px;
    min-width: 100px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    display: block !important;
    border: 0;
    border-radius: 3px;
    position: relative;
    background: #cecece;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.local-customer-submit.active {
    background: #3f86ff;
}

.local-customer-submit:disabled {
    background: #cecece;
    color: #fff;
    cursor: not-allowed;
}