.container {
  min-height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.chat-area {
  flex: 1;
  padding: 20rpx;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  display: flex;
  margin-bottom: 30rpx;
  align-items: flex-start;
  width: 100%;
}

.doctor-message {
  flex-direction: row;
  justify-content: flex-start;
}

.user-message {
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
}

.user-message .message-avatar {
  order: 2;
  margin-left: 0;
  margin-right: 8rpx;
}

.user-message .message-content {
  order: 1;
}

.message-avatar {
  width: 72rpx;
  height: 72rpx;
  border-radius: 50%;
  margin-right: 16rpx;
  background: #e0e0e0;
  flex-shrink: 0;
}

.message-content {
  max-width: 70%;
  background: #fff;
  border-radius: 16rpx;
  padding: 20rpx 24rpx;
  font-size: 28rpx;
  line-height: 1.5;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}

.message-content.user {
  background: #4a90d9;
  color: #fff;
}

.symptoms-section {
  background: #fff;
  padding: 20rpx 30rpx;
  border-top: 2rpx solid #e8e8e8;
}

.section-title {
  font-size: 26rpx;
  color: #999;
  margin-bottom: 20rpx;
}

.symptoms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16rpx;
}

.symptom-tag {
  padding: 12rpx 28rpx;
  background: #f5f5f5;
  border-radius: 30rpx;
  border: 2rpx solid #e8e8e8;
}

.symptom-tag text {
  font-size: 26rpx;
  color: #666;
}

.symptom-tag.selected {
  background: #2db8b0;
  border-color: #2db8b0;
}

.symptom-tag.selected text {
  color: #fff;
}

.input-area {
  display: flex;
  align-items: center;
  padding: 20rpx 30rpx;
  background: #fff;
  border-top: 2rpx solid #e8e8e8;
  padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
}

.input-box {
  flex: 1;
  height: 76rpx;
  background: #f5f5f5;
  border-radius: 38rpx;
  padding: 0 30rpx;
  font-size: 28rpx;
}

.send-btn {
  margin-left: 20rpx;
  background: #2db8b0;
  padding: 20rpx 40rpx;
  border-radius: 38rpx;
}

.send-btn text {
  font-size: 28rpx;
  color: #fff;
  font-weight: bold;
}

.buy-button {
  background: linear-gradient(90deg, #ff6b6b 0%, #ffa07a 100%);
  margin: 20rpx 30rpx;
  padding: 28rpx;
  border-radius: 40rpx;
  text-align: center;
  box-shadow: 0 4rpx 16rpx rgba(255, 107, 107, 0.3);
}

.buy-button text {
  font-size: 32rpx;
  color: #fff;
  font-weight: bold;
}
