shimai
7 days ago d100657dacb25df91013ef25432620e6ae10d1f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* 对话列表容器 */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-sizing: border-box;
}
 
/* 空状态 */
.conversation-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}
 
/* 单条对话项 */
.conversation-item {
  display: flex;
  gap: 10px;
  max-width: 100%;
  width: 100%;
  animation: fadeIn 0.3s ease;
}
 
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
/* AI调解员消息 - 左侧 */
.robot-item {
  align-self: flex-start;
}
 
/* 当事人消息 - 右侧 */
.contact-item {
  align-self: flex-end;
  flex-direction: row-reverse;
}
 
/* 头像通用样式 */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
 
/* AI调解员头像 */
.robot-avatar {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  border: 2px solid #90caf9;
}
 
/* 当事人头像 */
.contact-avatar {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #388e3c;
  border: 2px solid #a5d6a7;
}
 
/* 消息容器 */
.message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 75%;
  min-width: 200px;
}
 
/* 消息头部(名字) */
.message-header {
  font-size: 12px;
  color: #666;
  padding: 0 4px;
}
 
.contact-item .message-header {
  text-align: right;
}
 
.speaker-name {
  font-weight: 600;
  font-size: 12px;
}
 
/* 消息气泡 */
.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: pre-wrap;
}
 
/* AI调解员气泡 */
.robot-bubble {
  background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
  border-top-left-radius: 4px;
  color: #333;
}
 
/* 当事人气泡 */
.contact-bubble {
  background: linear-gradient(135deg, #e8f5e9 0%, #e8f5e9 100%);
  border-top-right-radius: 4px;
  color: #333;
}
 
/* 时间戳 */
.message-time {
  font-size: 11px;
  color: #999;
  padding: 2px 4px;
}
 
.contact-item .message-time {
  text-align: right;
}
 
/* 滚动条样式 */
.conversation-list::-webkit-scrollbar {
  width: 6px;
}
 
.conversation-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
  margin: 4px 0;
}
 
.conversation-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c1c1c1, #a8a8a8);
  border-radius: 3px;
}
 
.conversation-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a8a8a8, #909090);
}
 
/* 响应式 */
@media (max-width: 480px) {
  .conversation-list {
    padding: 12px;
    max-height: calc(60vh - 120px);
  }
  
  .conversation-item {
    width: 100%;
  }
  
  .message-wrapper {
    max-width: 80%;
    min-width: 150px;
  }
  
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .message-bubble {
    padding: 10px 12px;
    font-size: 13px;
  }
}