.chat-page {
  min-height: 100vh;
  padding-bottom: 168rpx;
}

.order-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26rpx 28rpx;
}

.order-strip-main {
  flex: 1;
  min-width: 0;
  padding-right: 20rpx;
}

.order-strip-title {
  display: block;
  color: #1d1d1f;
  font-size: 30rpx;
  font-weight: 700;
  line-height: 1.35;
}

.order-strip-code {
  display: block;
  margin-top: 8rpx;
  color: #86868b;
  font-size: 24rpx;
}

.messages {
  height: calc(100vh - 360rpx);
  margin-top: 20rpx;
}

.chat-empty {
  margin-top: 0;
}

.message-list {
  padding-bottom: 24rpx;
}

.message-row {
  display: flex;
  flex-direction: column;
  margin-top: 26rpx;
}

.self-row {
  align-items: flex-end;
}

.peer-row {
  align-items: flex-start;
}

.message-meta {
  display: flex;
  max-width: 80%;
  margin-bottom: 8rpx;
  color: #9a9aa0;
  font-size: 22rpx;
}

.self-row .message-meta {
  justify-content: flex-end;
}

.peer-row .message-meta {
  justify-content: flex-start;
}

.message-meta text + text {
  margin-left: 12rpx;
}

.message-bubble {
  max-width: 78%;
  padding: 22rpx 26rpx;
  border-radius: 24rpx;
  font-size: 29rpx;
  line-height: 1.5;
  word-break: break-all;
}

.self-bubble {
  border-top-right-radius: 8rpx;
  background: #007aff;
  color: #ffffff;
}

.peer-bubble {
  border: 1rpx solid rgba(0, 0, 0, 0.04);
  border-top-left-radius: 8rpx;
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.04);
}

.input-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 18rpx 24rpx 42rpx;
  background: rgba(245, 245, 247, 0.96);
  border-top: 1rpx solid rgba(0, 0, 0, 0.05);
}

.input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  height: 82rpx;
  padding: 0 22rpx;
  border-radius: 22rpx;
  background: #ffffff;
}

.sender-label {
  flex: 0 0 auto;
  margin-right: 18rpx;
  color: #007aff;
  font-size: 25rpx;
  font-weight: 700;
}

.chat-input {
  flex: 1;
  height: 82rpx;
  color: #1d1d1f;
  font-size: 28rpx;
}

.send-button {
  width: 112rpx;
  height: 82rpx;
  margin-left: 16rpx;
  border-radius: 22rpx;
  background: #007aff;
  color: #ffffff;
  font-size: 28rpx;
  font-weight: 700;
  line-height: 82rpx;
  text-align: center;
}
