|
|
.diagnosis-container { min-height: 100vh; width: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);}
/* 医生信息卡片 */.doctor-card { background: white; margin: 24rpx 32rpx; padding: 32rpx; border-radius: 20rpx; display: flex; align-items: center; box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.06); position: relative;}
.doctor-avatar { width: 120rpx; height: 120rpx; border-radius: 50%; background: linear-gradient(135deg, #86D8D0 0%, #A8E6CF 100%); display: flex; align-items: center; justify-content: center; margin-right: 24rpx; overflow: hidden;}
.avatar-img { width: 100rpx; height: 100rpx;}
.doctor-info { flex: 1;}
.doctor-name { display: block; font-size: 32rpx; font-weight: 600; color: #333; margin-bottom: 8rpx;}
.doctor-title { display: block; font-size: 24rpx; color: #86D8D0; margin-bottom: 16rpx;}
.doctor-tags { display: flex; gap: 12rpx;}
.tag { font-size: 20rpx; padding: 6rpx 12rpx; background: #E8F4F3; color: #6BC4BC; border-radius: 20rpx;}
.online-status { position: absolute; right: 32rpx; bottom: 32rpx; font-size: 22rpx; padding: 4rpx 12rpx; border-radius: 12rpx;}
.online-status.online { background: #e8f1f4; color: #6b8fc4;}
/* 聊天容器 */.chat-container { flex: 1; display: flex; flex-direction: column; height: 100%; overflow-y: auto;}
/* 消息样式 */.message-wrapper { display: flex; margin: 40rpx 0; animation: fadeIn 0.3s ease;}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20rpx); } to { opacity: 1; transform: translateY(0); }}
.message-wrapper.user { justify-content: flex-end;}
.message-content { max-width: 70%; display: flex; flex-direction: column;}
.message-wrapper.user .message-content { align-items: flex-end;}
.message-wrapper.assistant .message-content { align-items: flex-start;}
.message-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; overflow: hidden; margin: 0 20rpx; align-self: flex-end; flex-shrink: 0;}
.avatar { width: 100%; height: 100%;}
/* 消息气泡 */.message-bubble { padding: 24rpx; border-radius: 24rpx; position: relative; line-height: 1.5; word-break: break-word;}
.assistant-bubble { background: #E8F4F3; border-radius: 0 24rpx 24rpx 24rpx;}
.user-bubble { background: #86D8D0; border-radius: 24rpx 0 24rpx 24rpx;}
.message-text { font-size: 28rpx; color: #333; white-space: pre-wrap; word-break: break-word;}
.user-bubble .message-text { color: white;}
/* 消息时间 */.message-time { font-size: 22rpx; color: #999; margin-top: 8rpx;}
/* 诊断结果卡片 */.diagnosis-card { background: white; border-radius: 16rpx; padding: 24rpx; margin-top: 20rpx; border-left: 6rpx solid #86D8D0; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);}
.diagnosis-header { margin-bottom: 20rpx;}
.diagnosis-title { font-size: 28rpx; font-weight: 600; color: #333;}
.diagnosis-item { display: flex; margin-bottom: 16rpx; align-items: flex-start;}
.diagnosis-label { font-size: 26rpx; color: #666; width: 140rpx; flex-shrink: 0;}
.diagnosis-value { font-size: 26rpx; color: #333; flex: 1; line-height: 1.4; word-break: break-word;}
.severity-level { padding: 4rpx 16rpx; border-radius: 20rpx; font-size: 24rpx; font-weight: 500;}
.severity-level.low { background: #E8F4F3; color: #6BC4BC;}
.severity-level.moderate { background: #FFF3E0; color: #FF9800;}
.severity-level.high { background: #FFEBEE; color: #F44336;}
.diagnosis-footer { margin-top: 20rpx; padding-top: 16rpx; border-top: 1rpx solid #eee;}
.disclaimer { font-size: 22rpx; color: #999; font-style: italic;}
/* AI正在输入 */.typing { min-width: 200rpx;}
.typing-indicator { display: flex; align-items: center; gap: 8rpx;}
.typing-dot { width: 12rpx; height: 12rpx; background: #86D8D0; border-radius: 50%; animation: typingAnimation 1.4s infinite ease-in-out;}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingAnimation { 0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; }}
.typing-text { font-size: 26rpx; color: #666; margin-left: 12rpx;}
/* 快捷症状选择 */.symptom-quick-select { padding: 0 32rpx 20rpx;}
.section-title { display: block; font-size: 26rpx; color: #666; margin-bottom: 20rpx;}
.symptom-tags { white-space: nowrap; display: flex; gap: 20rpx;}
.symptom-tag { display: inline-block; padding: 16rpx 24rpx; background: white; border-radius: 24rpx; border: 1rpx solid #E8F4F3; box-shadow: 0 2rpx 8rpx rgba(134, 216, 208, 0.1); transition: all 0.2s ease;}
.symptom-tag:active { transform: scale(0.95); background: #E8F4F3;}
.tag-text { font-size: 26rpx; color: #666;}
/* 输入区域 */.input-area { background: white; padding: 20rpx 32rpx 40rpx; border-top: 1rpx solid #f0f0f0; display: flex; align-items: flex-end; gap: 20rpx; width: 100%; box-sizing: border-box;}
.input-wrapper { flex: 1; background: #f8fafc; border-radius: 24rpx; padding: 16rpx 24rpx; border: 1rpx solid #E8F4F3; display: flex; align-items: center; transition: all 0.1s ease; min-height: 60rpx;}
.message-input { width: 100%; font-size: 28rpx; line-height: 1.5; padding: 0; margin: 0; border: none; background: transparent; max-height: 200rpx; overflow-y: auto;}
.placeholder { color: #aaa; font-size: 28rpx;}
.send-btn { width: 80rpx; height: 80rpx; border-radius: 50%; background: #86D8D0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4rpx 12rpx rgba(134, 216, 208, 0.3); transition: all 0.2s ease; flex-shrink: 0; border: none; outline: none;}
.send-btn-hover { background: #6BC4BC; transform: translateY(-2rpx); box-shadow: 0 6rpx 16rpx rgba(134, 216, 208, 0.4);}
.send-icon { color: white; font-size: 36rpx; font-weight: 300;}
/* 底部占位元素 - 用于滚动定位 */.scroll-bottom-placeholder { height: 20rpx; width: 100%;}
/* 消息列表项 */.message-item { width: 100%;}
/* 加载动画 */.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9); z-index: 1001; display: flex; align-items: center; justify-content: center;}
.loading-content { display: flex; flex-direction: column; align-items: center;}
.pulse-animation { position: relative; width: 120rpx; height: 120rpx;}
.pulse-circle { position: absolute; width: 100%; height: 100%; border: 4rpx solid #86D8D0; border-radius: 50%; animation: pulse 2s infinite ease-in-out;}
.pulse-circle:nth-child(2) { animation-delay: 0.5s; }.pulse-circle:nth-child(3) { animation-delay: 1s; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; }}
.loading-text { margin-top: 40rpx; font-size: 28rpx; color: #666;}
/* 隐藏textarea默认滚动条 */.message-input::-webkit-scrollbar { width: 0; background: transparent;}
|