.ai-fabric-chat-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ai-fabric-chat-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

.ai-fabric-chat-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.ai-fabric-chat-body {
    flex-grow: 1;
    padding: 20px;
    height: 450px;
    overflow-y: auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.ai-fabric-assistant-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.5;
    font-size: 15px;
    position: relative;
    word-wrap: break-word;
}

.ai-fabric-assistant-message.user {
    background-color: #007aff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-fabric-assistant-message.ai {
    background-color: #f1f1f2;
    color: #2c3e50;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-fabric-chat-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

#ai-fabric-assistant-chat-form {
    display: flex;
    gap: 10px;
}

#ai-fabric-assistant-chat-input {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
}

#ai-fabric-assistant-chat-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0,122,255,0.1);
}

#ai-fabric-assistant-send-btn {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

#ai-fabric-assistant-send-btn:hover {
    background-color: #0062cc;
}

#ai-fabric-assistant-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 滚动条美化 */
.ai-fabric-chat-body::-webkit-scrollbar {
    width: 6px;
}
.ai-fabric-chat-body::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}
