/* AI 企业评估页面专属样式 */

/* 自定义滚动条 */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 对话气泡容器 - 控制最大宽度并居中 */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 对话气泡样式 */
.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in-out;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 用户气泡（右侧，蓝色） */
.chat-bubble-user {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

/* Agent 气泡（左侧，灰色） */
.chat-bubble-agent {
    background: white;
    color: #374151;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* 企业卡片列表样式 */
.company-card {
    transition: all 0.2s ease;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 102, 255, 0.1);
}

/* 历史记录项样式 */
.history-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.history-item:hover {
    background-color: #f9fafb;
    transform: translateX(2px);
}

.history-item.active {
    background-color: #eff6ff;
    border-left: 3px solid #0066FF;
}

/* Markdown 内容样式 */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.markdown-content p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.markdown-content ul,
.markdown-content ol {
    margin-left: 20px;
    margin-bottom: 8px;
}

.markdown-content code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 8px;
}

/* 加载动画 */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    space-x: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}
