/**
 * 表情选择器样式
 * @Author: '胡澳旗' 'huaoqi@xiangguohe.com'
 * @Date: 2025-06-17
 * @Description: 表情选择器组件样式
 */

/* 表情选择器样式 */
.emoji-picker {
  position: absolute;
  bottom: 40px;
  left: -60px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  box-sizing: border-box;
}

.picker-container {
  width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #eee;
}

.emoji-content {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

.emoji-content::-webkit-scrollbar {
  width: 6px;
}

.emoji-content::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.emoji-content::-webkit-scrollbar-track {
  background-color: transparent;
}

.emoji-section {
  margin-bottom: 16px;
  box-sizing: border-box;
  width: 100%;
}

.emoji-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 8px;
  padding-left: 4px;
}

.no-emojis {
  color: #9CA3AF;
  font-size: 12px;
  text-align: center;
  padding: 12px 0;
}

.empty-state {
  color: #9CA3AF;
  font-size: 12px;
  text-align: center;
  padding: 12px 0;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
  box-sizing: border-box;
}

.emoji-item:hover {
  background: #F3F4F6;
  transform: scale(1.1);
}

.emoji-item:active {
  background: #E5E7EB;
  transform: scale(0.95);
}

.emoji-btn {
  font-size: 20px;
  cursor: pointer;
  margin-right: 8px;
  position: relative;
}

.emoji-btn:hover {
  opacity: 1;
}

/* 移动端表情选择器 */
@media (max-width: 768px) {
  .emoji-picker {
    left: 50%;
    transform: translateX(-28%);
    bottom: 50px;
    max-width: calc(100vw - 150px);
  }
   
  .picker-container {
    width: calc(100vw - 150px);
  }
  
  .emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }
} 