/* 预约试听 · 智能体对话浮窗 */
#coze-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99990;
    display: none;
}
#coze-mask.coze-show { display: block; }

#coze-panel {
    position: fixed;
    right: 18px;
    bottom: 80px;
    width: 360px;
    max-width: calc(100vw - 36px);
    height: 480px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    z-index: 99991;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-size: 14px;
    color: #333;
}
#coze-panel.coze-show { display: flex; }

#coze-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(135deg, #3b82c4, #1f5fb0);
}
#coze-head .coze-title {
    font-size: 15px;
    font-weight: 600;
}
#coze-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    opacity: .85;
}
#coze-close:hover { opacity: 1; }

#coze-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f7fa;
}

.coze-msg {
    margin-bottom: 12px;
    display: flex;
}
.coze-msg .coze-bubble {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.coze-msg.coze-user { justify-content: flex-end; }
.coze-msg.coze-user .coze-bubble {
    background: #1f5fb0;
    color: #fff;
    border-top-right-radius: 2px;
}
.coze-msg.coze-bot { justify-content: flex-start; }
.coze-msg.coze-bot .coze-bubble {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-top-left-radius: 2px;
}
.coze-tip {
    text-align: center;
    color: #9aa3b0;
    font-size: 12px;
    padding: 4px 0;
}

#coze-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eef0f4;
}
#coze-input {
    flex: 1;
    border: 1px solid #d8dce4;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    resize: none;
    max-height: 90px;
}
#coze-input:focus { border-color: #1f5fb0; }
#coze-send {
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    color: #fff;
    background: #1f5fb0;
    cursor: pointer;
    font-size: 14px;
}
#coze-send:disabled { background: #a8bfdd; cursor: not-allowed; }
#coze-clear {
    border: none;
    background: none;
    color: #1f5fb0;
    cursor: pointer;
    font-size: 13px;
    padding: 0 2px;
}