.zhy-live-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147483000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: #172033;
}

.zhy-lc-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7a8cff, #b88cff);
    box-shadow: 0 14px 30px rgba(122, 140, 255, .28);
    cursor: pointer;
    font-weight: 700;
}

.zhy-lc-bubble svg {
    width: 20px;
    height: 20px;
}

.zhy-lc-panel {
    width: 370px;
    height: 560px;
    display: none;
    overflow: hidden;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 28, 45, .2);
}

.zhy-lc-open .zhy-lc-panel {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.zhy-lc-open .zhy-lc-bubble {
    display: none;
}

.zhy-lc-head {
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #7a8cff, #b88cff);
}

.zhy-lc-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.zhy-lc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.zhy-lc-sub {
    margin-top: 6px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    line-height: 1.5;
}

.zhy-lc-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.18);
    cursor: pointer;
    font-size: 20px;
    line-height: 32px;
}

.zhy-lc-messages {
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
}

.zhy-lc-welcome {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #58677d;
    background: #fff;
    border: 1px solid #edf2f7;
    font-size: 13px;
    line-height: 1.6;
}

.zhy-lc-msg {
    display: flex;
    margin-bottom: 12px;
}

.zhy-lc-msg.mine {
    justify-content: flex-end;
}

.zhy-lc-msg-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 13px;
    color: #263548;
    background: #fff;
    border: 1px solid #edf2f7;
    line-height: 1.62;
    white-space: pre-wrap;
    word-break: break-word;
}

.zhy-lc-msg.mine .zhy-lc-msg-bubble {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #7a8cff, #b88cff);
}

.zhy-lc-msg-time {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}

.zhy-lc-msg.mine .zhy-lc-msg-time {
    color: rgba(255,255,255,.76);
}

.zhy-lc-img {
    display: block;
    max-width: 210px;
    max-height: 210px;
    border-radius: 10px;
}

.zhy-lc-input {
    border-top: 1px solid #e6edf7;
    background: #fff;
    padding: 10px;
}

.zhy-lc-tip {
    color: #8793a5;
    font-size: 12px;
    margin: 0 0 8px;
}

.zhy-lc-input textarea {
    width: 100%;
    height: 72px;
    resize: none;
    border: 1px solid #dfe7f5;
    border-radius: 12px;
    outline: none;
    padding: 10px 12px;
    color: #172033;
    font-size: 14px;
}

.zhy-lc-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.zhy-lc-file {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe7f5;
    border-radius: 999px;
    padding: 7px 12px;
    color: #58677d;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

.zhy-lc-file input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.zhy-lc-send {
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    color: #fff;
    background: linear-gradient(135deg, #7a8cff, #b88cff);
    cursor: pointer;
    font-weight: 700;
}

.zhy-lc-send:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .zhy-live-chat {
        right: 14px;
        bottom: 14px;
    }

    .zhy-lc-panel {
        width: calc(100vw - 28px);
        height: min(620px, calc(100vh - 110px));
        border-radius: 16px;
    }

    .zhy-lc-bubble {
        height: 44px;
        padding: 0 14px;
    }
}
