.ais-container {
    background-image: linear-gradient(0deg, #fbfbfb, #ffffff);
    border: 2px solid #ffffff;
    box-shadow: 0 0px 8px rgb(0 0 0 / 10%);
    border-radius: 15px;
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.result-card {
    border-radius: 12px;
    background-image: linear-gradient(0deg, #fbfbfb, #ffffff);
    border: 2px solid #ffffff;
    box-shadow: 0 0px 8px rgb(0 0 0 / 10%);
    padding: 1rem;
    min-height: 60vh;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.input-group {
    display: flex;
    align-items: center;
}

.ais-input {
    border: 2px solid #007cba;
    border-radius: 30px 0 0 30px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    height: 50px;
    flex: 1;
    margin-right: 10px;
}

.ais-input:focus {
    box-shadow: 0 0 12px rgba(0,124,186,0.2);
    outline: none;
}

.chat-btn {
    border-radius: 15px;
    height: 50px;
    padding: 0 20px;
    background-color: #007cba;
    color: white;
    border: none;
    transition: background-color 0.2s;
}

.chat-btn:hover {
    background-color: #006294;
}

.chat-btn i {
    font-size: 20px;
}

.user-message, .ai-message {
    max-width: 90%;
    padding: 15px;
    border-radius: 12px;
    word-wrap: break-word;
    margin-bottom: 15px;
}

.user-message {
    background: #5d5cde;
    color: #fff;
    align-self: flex-end;
    position: relative;
}

.ai-message {
    background: #d7d7d773;
    align-self: flex-start;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* AI头像样式 */
.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 124, 186, 0.2);
    color: #007cba;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar i {
    font-size: 16px;
}

/* 思考加载动画 */
.typing-indicator {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

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

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

@keyframes typing {
    0% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
    100% { opacity: 0.2; transform: translateY(0); }
}

.chat-vip-alert {
    border: 3px solid #1e1e1e;
    background-color: #fcf8e3;
    color: #1e1e1e;
    padding: 15px;
    margin: 20px auto;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chat-vip-alert i {
    font-size: 24px;
}