/* 表情选择器样式 */
.emoji-container {
    position: relative;
    margin-bottom: 10px;
}

.emoji-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.emoji-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.emoji-icon {
    fill: white;
}

.emoji-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1000;
    display: none;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    max-height: 400px;
    overflow-y: auto;
}

.emoji-panel.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.emoji-tab {
    padding: 6px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s ease;
}

.emoji-tab:hover {
    background: #e0e0e0;
    color: #333;
}

.emoji-tab.active {
    background: #667eea;
    color: white;
}

.emoji-tab-content {
    display: none;
}

.emoji-tab-content.active {
    display: block;
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.emoji-list::-webkit-scrollbar {
    width: 6px;
}

.emoji-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.emoji-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.emoji-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.emoji-item.clicked {
    background: #667eea;
    color: white;
    transform: scale(0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .emoji-panel {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .emoji-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .emoji-panel {
        width: 250px;
    }
    
    .emoji-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 刷新按钮样式 */
.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-left: 10px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
}

.refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.refresh-icon {
    fill: white;
}

/* 按钮容器布局 */
.emoji-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .emoji-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .emoji-btn, .refresh-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emoji-btn, .refresh-btn {
        min-width: 100px;
        padding: 6px 12px;
        font-size: 13px;
    }
}
