You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
530 lines
9.4 KiB
530 lines
9.4 KiB
|
|
.diagnosis-container {
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
|
|
}
|
|
|
|
/* 自定义导航栏 */
|
|
.custom-navbar {
|
|
height: 120rpx;
|
|
padding-top: 40rpx;
|
|
background: linear-gradient(135deg, #86D8D0 0%, #6BC4BC 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 40rpx 32rpx 20rpx;
|
|
box-shadow: 0 2rpx 12rpx rgba(134, 216, 208, 0.2);
|
|
}
|
|
|
|
.nav-left, .nav-right {
|
|
width: 80rpx;
|
|
}
|
|
|
|
.nav-center {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: white;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.nav-subtitle {
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.back-btn {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.back-icon {
|
|
color: white;
|
|
font-size: 36rpx;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.more-btn {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 医生信息卡片 */
|
|
.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;
|
|
/* padding: 0 32rpx; */
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 消息样式 */
|
|
.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;
|
|
}
|
|
|
|
.avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* 消息气泡 */
|
|
.message-bubble {
|
|
padding: 24rpx;
|
|
border-radius: 24rpx;
|
|
position: relative;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.input-wrapper {
|
|
flex: 1;
|
|
background: #f8fafc;
|
|
border-radius: 24rpx;
|
|
padding: 16rpx 24rpx;
|
|
border: 1rpx solid #E8F4F3;
|
|
}
|
|
|
|
.message-input {
|
|
font-size: 28rpx;
|
|
min-height: 60rpx;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.placeholder {
|
|
color: #aaa;
|
|
}
|
|
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* 更多菜单 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: flex-start;
|
|
padding-top: 120rpx;
|
|
padding-right: 32rpx;
|
|
}
|
|
|
|
.more-menu {
|
|
background: white;
|
|
border-radius: 16rpx;
|
|
padding: 16rpx 0;
|
|
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.15);
|
|
min-width: 240rpx;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from { opacity: 0; transform: translateY(-20rpx); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 24rpx 32rpx;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.menu-item:active {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.menu-icon {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.menu-text {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.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;
|
|
}
|