/* AI聊天窗口样式 */
.ai-chat-container {
    margin: 30px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.ai-chat-container h2 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.ai-chat-box {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 15px;
}

.ai-message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.ai-user {
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.ai-user .ai-avatar {
    margin-right: 0;
    margin-left: 12px;
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-content {
    max-width: 80%;
}

.ai-name {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

.ai-text {
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
    color: #333; /* 确保文字颜色可见 */
}

.ai-response .ai-text {
    background: rgba(255,255,255,0.9);
    border-top-left-radius: 0;
}

.ai-user .ai-text {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
    border-top-right-radius: 0;
}

.ai-input-area {
    display: flex;
    position: relative;
}

.ai-input-area textarea {
    flex: 1;
    padding: 12px 15px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333; /* 输入文字颜色改为深色 */
    min-height: 50px;
    resize: none;
    outline: none;
    font-size: 14px;
}

.ai-input-area textarea::placeholder {
    color: #999; /* 占位符颜色 */
}

.ai-send-btn {
    margin-left: 10px;
    padding: 0 20px;
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.ai-tips {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-top: 10px;
}

/* 其余动画样式保持不变 */