/* pages/message/detail/index.wxss */ .message-detail { display: flex; flex-direction: column; height: 100vh; } .service-info { padding: 20rpx; display: flex; align-items: center; background: #fff; border-bottom: 1rpx solid #eee; } .service-info .avatar { width: 80rpx; height: 80rpx; border-radius: 50%; margin-right: 20rpx; } .service-info .nickname { font-size: 32rpx; color: var(--text-primary); } .message-list { flex: 1; padding: 20rpx; background: var(--bg-page); } .message-item { display: flex; margin-bottom: 30rpx; } .message-item.self { flex-direction: row-reverse; padding-right: 20rpx; } .message-item .avatar { width: 80rpx; height: 80rpx; border-radius: 50%; } .message-item .content { max-width: 60%; margin: 0 20rpx; } .message-item .bubble { padding: 20rpx; border-radius: 10rpx; background: #fff; word-break: break-all; } .message-item.self .bubble { background: #07c160; color: #fff; } .message-item .msg-image { max-width: 100%; border-radius: 10rpx; } .message-item .time { font-size: 24rpx; color: var(--text-tertiary); margin-top: 10rpx; display: block; } .input-area { background: #fff; border-top: 1rpx solid #eee; padding-bottom: env(safe-area-inset-bottom); position: fixed; bottom: 0; left: 0; right: 0; } .toolbar { display: flex; padding: 20rpx; border-bottom: 1rpx solid #eee; } .tool-item { margin-right: 15rpx; } .input-box { display: flex; padding: 20rpx; align-items: flex-end; justify-content: center; align-items: center; } .input { flex: 1; background: var(--bg-page); border-radius: 8rpx; padding: 20rpx; min-height: 40rpx; max-height: 120rpx; margin-right: 20rpx; } .send-btn { width: 120rpx; height: 64rpx; line-height: 64rpx; text-align: center; background: #ddd; color: #fff; border-radius: 8rpx; } .send-btn.active { background: #07c160; } .emoji-panel { height: 400rpx; background: #fff; padding: 20rpx; } .emoji-list { display: flex; flex-wrap: wrap; } .emoji-item { width: 64rpx; height: 64rpx; font-size: 40rpx; display: flex; align-items: center; justify-content: center; }