/* @🍮 */
/* === 表情包系统样式 === */

#sticker-bar {
    flex-shrink: 0;
    padding: 0 10px 5px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.sticker-bar-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.sticker-bar-btn svg {
    width: 28px;
    height: 28px;
    fill: #888;
}

#sticker-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    max-height: 250px;
    background: #f7f7f7;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 25;
    display: none;
    flex-direction: column;
}

#sticker-modal.visible {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

#sticker-modal .header {
    padding: 10px 15px;
    font-weight: bold;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticker-grid {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
}

.sticker-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.sticker-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.sticker-item span {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

#add-sticker-modal .modal-window {
    max-width: 360px;
}

#sticker-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    background-color: #f9f9f9;
}

#sticker-preview img {
    max-width: 100%;
    max-height: 100%;
}
