/**
 * 影像读片AI问答区域样式
 */

/* AI问答区域容器 */
.radiology-ai-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 20px;
    padding: 24px;
    margin-top: 32px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* AI输入框 */
.radiology-ai-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 60px;
}

.radiology-ai-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.radiology-ai-input::placeholder {
    color: #9CA3AF;
}

/* AI按钮 */
.radiology-ai-button {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.radiology-ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.radiology-ai-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AI响应区域 */
.radiology-ai-response {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 加载动画 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 快捷问题标签 */
.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-question-tag {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-question-tag:hover {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* 响应式 */
@media (max-width: 640px) {
    .radiology-ai-section {
        padding: 16px;
    }

    .radiology-ai-input {
        font-size: 16px; /* 防止iOS缩放 */
    }

    .quick-questions {
        flex-direction: column;
    }

    .quick-question-tag {
        width: 100%;
        text-align: center;
    }
}
