/* 表情选择器样式 */
.emoji-picker {
  position: fixed;
  width: 360px;
  max-height: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.15);
  border: 1px solid #e2e8f0;
  display: none;
  z-index: 10001;
  overflow: hidden;
}

.emoji-picker.show {
  display: block;
  animation: emojiPickerShow 0.2s ease;
}

@keyframes emojiPickerShow {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emoji-picker-header {
  display: flex;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-x: auto;
  scrollbar-width: thin;
}

.emoji-picker-header::-webkit-scrollbar {
  height: 4px;
}

.emoji-picker-header::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.emoji-category-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.emoji-category-tab:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.emoji-category-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.emoji-category-tab img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.emoji-category-tab.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.emoji-picker-body {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.emoji-picker-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  position: relative;
}

.emoji-picker-item:hover {
  background: #eff6ff;
  transform: scale(1.15);
}

.emoji-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emoji-picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 13px;
}

/* 表情预览浮窗 - 只显示图片 */
.emoji-preview-popup {
  position: fixed;
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  pointer-events: none;
  z-index: 10000;
  display: none;
}

.emoji-preview-popup.show {
  display: block;
  animation: emojiPreviewShow 0.15s ease;
}

@keyframes emojiPreviewShow {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.emoji-preview-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.emoji-picker-locked {
  position: relative;
}

.emoji-picker-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-picker-locked:hover::before {
  content: '等级不足';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 1;
}

/* 表情按钮 - 重新设计 */
.emoji-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
  line-height: 1;
  margin: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.emoji-btn:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

.emoji-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.emoji-btn i {
  font-size: 18px;
  line-height: 1;
}
