/* ==================== 丰富内容样式 - 让AI回答更生动 ==================== */

/* 信息卡片样式 */
.info-card {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin: 1.5rem 0;
    border-radius: 12px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-icon svg {
    width: 20px;
    height: 20px;
}

.info-card-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* 不同类型的信息卡片 */
.info-card-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.info-card-info .info-card-icon {
    color: #3b82f6;
}

.info-card-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.info-card-success .info-card-icon {
    color: #10b981;
}

.info-card-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.info-card-warning .info-card-icon {
    color: #f59e0b;
}

.info-card-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.info-card-error .info-card-icon {
    color: #ef4444;
}

/* 增强表格样式 */
.ai-message .table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
}

.ai-message .markdown-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.ai-message .markdown-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-message .markdown-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.ai-message .markdown-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
}

.ai-message .markdown-table tbody tr {
    transition: all 0.2s ease;
}

.ai-message .markdown-table tbody tr:hover {
    background: #f0f4ff;
    transform: scale(1.01);
}

.ai-message .markdown-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格斑马纹 */
.ai-message .markdown-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.ai-message .markdown-table tbody tr:nth-child(even):hover {
    background: #f0f4ff;
}

/* 增强列表样式 */
.ai-message ul,
.ai-message ol {
    margin: 12px 0;
    padding-left: 28px;
}

.ai-message li {
    margin: 8px 0;
    line-height: 1.7;
    position: relative;
}

/* 带图标的列表项 */
.ai-message .list-item-success {
    list-style: none;
    padding-left: 28px;
    color: #10b981;
}

.ai-message .list-item-success::before {
    content: '✅';
    position: absolute;
    left: -28px;
    font-size: 16px;
}

.ai-message .list-item-error {
    list-style: none;
    padding-left: 28px;
    color: #ef4444;
}

.ai-message .list-item-error::before {
    content: '❌';
    position: absolute;
    left: -28px;
    font-size: 16px;
}

.ai-message .list-item-warning {
    list-style: none;
    padding-left: 28px;
    color: #f59e0b;
}

.ai-message .list-item-warning::before {
    content: '⚠️';
    position: absolute;
    left: -28px;
    font-size: 16px;
}

.ai-message .list-item-tip {
    list-style: none;
    padding-left: 28px;
    color: #3b82f6;
}

.ai-message .list-item-tip::before {
    content: '💡';
    position: absolute;
    left: -28px;
    font-size: 16px;
}

.ai-message .list-item-note {
    list-style: none;
    padding-left: 28px;
    color: #6b7280;
}

.ai-message .list-item-note::before {
    content: '📝';
    position: absolute;
    left: -28px;
    font-size: 16px;
}

/* 增强标题样式 */
.ai-message h2 {
    font-size: 20px;
    margin: 20px 0 12px 0;
    color: #1f2937;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
    font-weight: 700;
}

.ai-message h3 {
    font-size: 18px;
    margin: 16px 0 10px 0;
    color: #374151;
    font-weight: 600;
}

.ai-message h4 {
    font-size: 16px;
    margin: 12px 0 8px 0;
    color: #4b5563;
    font-weight: 600;
}

/* 增强引用块 */
.ai-message blockquote {
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    margin: 16px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

/* 增强代码块 */
.ai-message pre {
    background: #1e293b;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-message pre code {
    color: #e2e8f0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.ai-message code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    color: #e11d48;
    border: 1px solid #e2e8f0;
}

/* 增强分隔线 */
.ai-message hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 24px 0;
}

/* 提示框样式 */
.ai-message .tip-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 10px;
    border: 2px solid;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-message .tip-box-info {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ai-message .tip-box-info .tip-icon {
    color: #3b82f6;
}

.ai-message .tip-box-success {
    border-color: #10b981;
    background: #ecfdf5;
}

.ai-message .tip-box-success .tip-icon {
    color: #10b981;
}

.ai-message .tip-box-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ai-message .tip-box-warning .tip-icon {
    color: #f59e0b;
}

.ai-message .tip-box-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.ai-message .tip-box-error .tip-icon {
    color: #ef4444;
}

.ai-message .tip-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ai-message .tip-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .info-card {
        padding: 12px 14px;
        margin: 1rem 0;
    }
    
    .ai-message .markdown-table th,
    .ai-message .markdown-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .ai-message h2 {
        font-size: 18px;
    }
    
    .ai-message h3 {
        font-size: 16px;
    }
    
    .ai-message pre {
        padding: 12px;
    }
    
    .ai-message pre code {
        font-size: 12px;
    }
}

