/* AI聊天窗口样式 */
.ai-chat-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 0px;
}

.chat-header {
    background-color: #1a3e72;
    color: white;
    padding: 15px 20px;
}

.chat-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.chat-header p {
    font-size: 14px;
    opacity: 0.8;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.user-message {
    background-color: #e3f2fd;
    color: #0d47a1;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.chat-input input:focus {
    border-color: #1a3e72;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #1a3e72;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: #0d2b5a;
}

/* 加载动画 */
.typing-indicator {
    display: flex;
    padding: 10px 15px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #999;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}