.pc-order-group-page .input-bar {
  align-items: center;
  position: relative;
  gap: .5rem !important;
}

.pc-order-group-page .input-bar > .image-button,
.pc-order-group-page .input-bar > .expression-button,
.pc-order-group-page .input-bar > .voice-button,
.pc-order-group-page .input-bar > .video-button {
  display: none !important;
}

.pc-order-group-page .chat-tool-button,
.pc-order-group-page .chat-service-button {
  flex: 0 0 2.3125rem;
  width: 2.3125rem;
  height: 2.3125rem;
  border: 0;
  border-radius: 50%;
  background-color: #f3f5f9 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 1.125rem 1.125rem !important;
  color: transparent;
  cursor: pointer;
}

.pc-order-group-page .image-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8' cy='10' r='2'/%3E%3Cpath d='m21 15-5-5L5 19'/%3E%3C/svg%3E") !important;
}

.pc-order-group-page .expression-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237567df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Cline x1='9' y1='9' x2='9.01' y2='9'/%3E%3Cline x1='15' y1='9' x2='15.01' y2='9'/%3E%3C/svg%3E") !important;
  font-size: 0 !important;
}

.pc-order-group-page .voice-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='8' y1='22' x2='16' y2='22'/%3E%3C/svg%3E") !important;
}

.pc-order-group-page .voice-button.recording {
  background-color: #fee2e2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Crect x='7' y='7' width='10' height='10' rx='2'/%3E%3C/svg%3E") !important;
  animation: chat-voice-pulse 1s ease-in-out infinite;
}

.pc-order-group-page .video-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6ee7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='m17 10 4-2v8l-4-2z'/%3E%3C/svg%3E") !important;
}

.pc-order-group-page .chat-media-video {
  display: block;
  width: min(15rem, 62vw);
  max-height: 18rem;
  border-radius: .5rem;
  background: #111827;
}

.pc-order-group-page .chat-service-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") !important;
}

.pc-order-group-page .chat-service-panel {
  position: absolute;
  left: .75rem;
  bottom: calc(100% + .5rem);
  z-index: 1002;
  display: none;
  grid-template-columns: repeat(4, 3.75rem);
  gap: .375rem;
  padding: .5rem;
  border: .0625rem solid #e5e7eb;
  border-radius: .75rem;
  background: rgba(255,255,255,.98);
  box-shadow: 0 .625rem 1.75rem rgba(15,23,42,.14);
}

.pc-order-group-page .chat-service-panel.open {
  display: grid;
}

.pc-order-group-page .chat-service-item {
  display: flex;
  min-height: 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .375rem .25rem;
  border: 0;
  border-radius: .5rem;
  background: #f7f8fc;
  color: #4b5563;
  font-size: .6875rem;
  cursor: pointer;
}

.pc-order-group-page .chat-service-item:before {
  width: 1.375rem;
  height: 1.375rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

.pc-order-group-page .expression-service:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237567df' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3C/svg%3E");
}

.pc-order-group-page .image-service:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8' cy='10' r='2'/%3E%3Cpath d='m21 15-5-5L5 19'/%3E%3C/svg%3E");
}

.pc-order-group-page .voice-service:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='2'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2M12 19v3M8 22h8'/%3E%3C/svg%3E");
}

.pc-order-group-page .video-service:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b6ee7' stroke-width='2'%3E%3Crect x='3' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='m17 10 4-2v8l-4-2z'/%3E%3C/svg%3E");
}

.pc-order-group-page .message-scroll {
  position: relative;
}

.chat-group-shimmer {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 1rem .875rem;
  background: #f5f7fb;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-shimmer-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1.125rem;
}

.chat-shimmer-row.mine {
  flex-direction: row-reverse;
}

.chat-shimmer-avatar,
.chat-shimmer-bubble {
  position: relative;
  overflow: hidden;
  background: #e6eaf2;
}

.chat-shimmer-avatar:after,
.chat-shimmer-bubble:after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
  content: "";
  transform: translateX(-100%);
  animation: chat-shimmer-sweep 1.25s ease-in-out infinite;
}

.chat-shimmer-avatar {
  width: 2.125rem;
  height: 2.125rem;
  flex: 0 0 2.125rem;
  border-radius: 50%;
}

.chat-shimmer-bubble {
  display: block;
  height: 3.5rem;
  border-radius: .375rem .75rem .75rem;
}

.chat-shimmer-row.mine .chat-shimmer-bubble {
  border-radius: .75rem .375rem .75rem .75rem;
}

.chat-shimmer-bubble-a { width: min(16rem, 68%); }
.chat-shimmer-bubble-b { width: min(11rem, 52%); }
.chat-shimmer-bubble-c { width: min(18rem, 74%); }
.chat-shimmer-bubble-d { width: min(13rem, 58%); }

.pc-order-group-page.chat-group-loading .message-scroll .message-row,
.pc-order-group-page.chat-group-loading .message-scroll .empty,
.pc-order-group-page.chat-group-loading .message-scroll .history-tip {
  visibility: hidden !important;
}

@keyframes chat-shimmer-sweep {
  100% { transform: translateX(100%); }
}

.chat-voice-recording-overlay {
  position: fixed;
  left: 50%;
  bottom: calc(4.75rem + env(safe-area-inset-bottom));
  z-index: 1200;
  display: flex;
  width: min(22rem, calc(100vw - 1.5rem));
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .625rem .75rem;
  border: .0625rem solid rgba(239,68,68,.22);
  border-radius: .875rem;
  background: rgba(255,255,255,.98);
  box-shadow: 0 .75rem 2rem rgba(15,23,42,.16);
  transform: translateX(-50%);
  box-sizing: border-box;
}

.chat-voice-recording-status {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: #b91c1c;
  font-size: .75rem;
}

.chat-voice-recording-status i {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #ef4444;
  animation: chat-voice-pulse 1s ease-in-out infinite;
}

.chat-voice-timer {
  min-width: 2.5rem;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.chat-voice-recording-overlay button {
  flex: 0 0 auto;
  height: 2rem;
  padding: 0 .625rem;
  border: 0;
  border-radius: 1rem;
  background: #ef4444;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}

.chat-voice-message {
  display: flex;
  min-width: 6.75rem;
  align-items: center;
  gap: .5rem;
  padding: .375rem .5rem;
}

.chat-voice-play {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  border: 0;
  border-radius: 50%;
  background: #eef2ff;
}

.chat-voice-play:before {
  position: absolute;
  left: .61rem;
  top: .42rem;
  width: 0;
  height: 0;
  border-top: .33rem solid transparent;
  border-bottom: .33rem solid transparent;
  border-left: .48rem solid #5b6ee1;
  content: "";
}

.chat-voice-play.playing:before {
  left: .5rem;
  top: .45rem;
  width: .28rem;
  height: .6rem;
  border: 0;
  border-left: .22rem solid #5b6ee1;
  border-right: .22rem solid #5b6ee1;
}

.chat-voice-duration {
  color: #4b5563;
  font-size: .75rem;
}

.chat-audio-hidden {
  display: none !important;
}

.pc-order-group-page .message-row.mine .bubble {
  background: #fff !important;
  color: #1f2937 !important;
}

.pc-order-group-page .message-row.mine .bubble:has(uni-image),
.pc-order-group-page .message-row.mine .bubble:has(img),
.pc-order-group-page .message-row.mine .bubble:has(audio),
.pc-order-group-page .message-row.mine .bubble:has(video) {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pc-order-group-page .bubble:has(img[src*="/static/chat-emoji/"]),
.pc-order-group-page .bubble:has(div[style*="/static/chat-emoji/"]) {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pc-order-group-page .bubble:has(img[src*="/static/chat-emoji/"]) .msg-image,
.pc-order-group-page .bubble:has(div[style*="/static/chat-emoji/"]) .msg-image {
  width: 2.75rem !important;
  height: 2.75rem !important;
  max-width: 2.75rem !important;
  max-height: 2.75rem !important;
}

.pc-order-group-page .bubble:has(img[src*="/static/chat-emoji/"]) .msg-image img,
.pc-order-group-page .bubble:has(img[src*="/static/chat-emoji/"]) .msg-image div,
.pc-order-group-page .bubble:has(div[style*="/static/chat-emoji/"]) .msg-image img,
.pc-order-group-page .bubble:has(div[style*="/static/chat-emoji/"]) .msg-image div {
  width: 100% !important;
  height: 100% !important;
  background-size: contain !important;
}

.expression-panel .expression-item {
  padding: .25rem .125rem;
}

.expression-panel .expression-image {
  width: 2.5rem;
  height: 2.5rem;
}

.expression-panel .expression-name {
  font-size: .5625rem;
}

@media screen and (max-width: 420px) {
  .pc-order-group-page .chat-service-panel {
    grid-template-columns: repeat(4, 3.25rem);
  }
}

.pc-order-group-page .nav-bar {
  height: 3.5rem !important;
  padding: 0 .75rem !important;
  background: #f0f3ff !important;
  border-bottom: 0 !important;
  box-sizing: border-box;
}

.pc-order-group-page .nav-copy {
  padding-left: .25rem;
}

.pc-order-group-page .nav-title {
  color: #0f172a !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
}

.pc-order-group-page .nav-sub {
  color: #8f99aa !important;
  font-size: .6875rem !important;
}

.pc-order-group-page .order-detail-btn {
  height: 2rem !important;
  padding: 0 .625rem !important;
  border-radius: 1rem !important;
  font-size: .6875rem !important;
}

.group-chat-card .group-avatar-badge {
  top: -.25rem !important;
  right: -.25rem !important;
  bottom: auto !important;
  display: flex;
  width: auto !important;
  min-width: 1.0625rem !important;
  height: 1.0625rem !important;
  padding: 0 .21875rem;
  align-items: center;
  justify-content: center;
  border: .09375rem solid #fff !important;
  border-radius: 1rem !important;
  background: #f45b69 !important;
  color: #fff !important;
  font-size: .5625rem !important;
  line-height: 1 !important;
  box-sizing: border-box;
}

.chat-item.order-chat-item .order-chat-avatar-badge.unread-count {
  top: -.25rem !important;
  right: -.25rem !important;
  bottom: auto !important;
  display: flex;
  width: auto !important;
  min-width: 1.0625rem !important;
  height: 1.0625rem !important;
  padding: 0 .21875rem;
  align-items: center;
  justify-content: center;
  border: .09375rem solid #fff !important;
  border-radius: 1rem !important;
  background: #f45b69 !important;
  color: #fff !important;
  font-size: .5625rem !important;
  line-height: 1 !important;
  box-sizing: border-box;
}

.chat-item.order-chat-item .meta uni-badge,
.chat-item.order-chat-item .meta .u-badge,
.chat-item.order-chat-item .order-chat-avatar-badge:not(.unread-count) {
  display: none !important;
}

@media screen and (min-width: 1024px) {
  .pc-order-group-page .nav-bar {
    height: 72px !important;
    padding: 0 22px !important;
  }

  .pc-order-group-page .nav-title {
    font-size: 17px !important;
  }
}

@keyframes chat-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.28); }
  50% { box-shadow: 0 0 0 .3rem rgba(239,68,68,0); }
}

@media screen and (min-width: 1024px) {
  .pc-order-group-page .image-button,
  .pc-order-group-page .expression-button,
  .pc-order-group-page .chat-tool-button {
    flex-basis: 2.625rem;
    width: 2.625rem;
    height: 2.625rem;
    background-size: 1.25rem 1.25rem;
  }
}
