.user-message {
    border-radius: 18px 4px 18px 18px;
    background: linear-gradient(135deg, #6b8cff, #3d6aff);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15);
}

.ai-message {
    border-radius: 4px 18px 18px 18px;
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
    box-shadow: 0 4px 12px rgba(61, 106, 255, 0.1);
    border: 1px solid rgba(61, 106, 255, 0.1);
}

/* 风险提示样式 */
.disclaimer {
    border-left: 4px solid #6366f1;
    background-color: #f0f7ff;
    padding: 12px 16px;
    margin: 16px 0 8px 0;
    border-radius: 0 8px 8px 0;
    color: #374151;
    font-size: 0.9em;
}

.disclaimer p {
    margin: 6px 0;
    line-height: 1.5;
}

.disclaimer-title {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.disclaimer-title svg {
    margin-right: 6px;
}

/* 深度思考内容样式 */
.reasoning-container {
    margin-top: 16px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
}

.reasoning-toggle {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #3d6aff;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 8px;
}

.reasoning-toggle svg {
    transition: transform 0.3s ease;
    margin-right: 6px;
}

.reasoning-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.reasoning-content {
    background-color: rgba(241, 245, 249, 0.6);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9em;
    color: #475569;
    /*border-left: 3px solid #94a3b8;*/
}

.reasoning-content p {
    margin: 0.5em 0;
    line-height: 1.5;
}

.reasoning-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.reasoning-title svg {
    margin-right: 6px;
    color: #64748b;
}

.chart-container {
    height: 300px;
    width: 100%;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 参考资料样式 */
.references-section {
    border-top: 1px solid #e2e8f0;
}

.references-toggle {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #3d6aff;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 8px;
}

.references-toggle svg {
    transition: transform 0.3s ease;
    margin-right: 6px;
}

.references-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.references-content {
    background-color: rgba(241, 245, 249, 0.6);
    border-radius: 8px;
    font-size: 0.9em;
}

.reference-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.reference-item {
    margin-bottom: 4px;
}

.reference-link {
    color: #3d6aff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.reference-link:hover {
    color: #2d5ce0;
}

/* 引用角标样式 */
.reference-sup {
    position: relative;
    color: #3d6aff;
    font-size: 0.75em;
    line-height: 1;
    vertical-align: super;
    cursor: pointer;
    margin: 0 1px;
    border: 1px solid #3d6aff;
    border-radius: 4px;
    padding: 0 4px;
    background-color: #eff6ff;
    user-select: none;
    transition: all 0.2s ease;
}

.reference-sup:hover {
    background-color: #dbeafe;
    color: #2d5ce0;
    transform: scale(1.1);
}

.reference-sup:active {
    transform: scale(0.95);
}

