/* ==================== 基础样式（桌面端） ==================== */
.OwO {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.OwO:hover .OwO-logo {
    color: #444;
}

.OwO.OwO-open .OwO-logo {
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    color: #444;
}

.OwO.OwO-open .OwO-body {
    display: block;
}

.OwO.OwO-up .OwO-body {
    top: inherit;
    bottom: 21px;
    border-radius: 4px 4px 4px 0;
}

.OwO.OwO-up .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
    border-radius: 0;
}

.OwO.OwO-up.OwO-open .OwO-logo {
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    border-top: none;
}

.OwO .OwO-logo {
    position: relative;
    display: inline-block;
    color: #888;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    padding: 2px 5px;
    cursor: pointer;
    height: 22px;
    box-sizing: border-box;
    z-index: 2;
    line-height: 16px;
}

.OwO .OwO-body {
    display: none;
    position: absolute;
    width: 250px !important;
    background: #fff;
    border: 2px solid #ddd;
    z-index: 999;
    top: 21px;
    border-radius: 0 4px 4px 4px;
    max-width: 400px;
}

.OwO .OwO-body .OwO-items {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: none;
    padding: 10px;
    margin: 0;
    overflow: auto;
    font-size: 0;
}

.OwO .OwO-body .OwO-items .OwO-item {
    list-style-type: none;
    background: #f7f7f7;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-size: 12px;
    line-height: 14px;
    margin: 0 10px 12px 0;
    cursor: pointer;
    -webkit-transition: .3s;
    transition: .3s;
}

.OwO .OwO-body .OwO-items .OwO-item:hover {
    background: #eee;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14),
        0 3px 1px -2px rgba(0, 0, 0, .2),
        0 1px 5px 0 rgba(0, 0, 0, .12);
}

.OwO .OwO-body .OwO-items-emoji .OwO-item {
    font-size: 20px;
    line-height: 19px;
}

.OwO .OwO-body .OwO-items-image .OwO-item {
    max-width: calc(25% - 10px);
    box-sizing: border-box;
}

.OwO .OwO-body .OwO-items-image .OwO-item img {
    max-width: 100%;
}

.OwO .OwO-body .OwO-items-show {
    display: block;
}

.OwO .OwO-body .OwO-bar {
    width: 100%;
    height: 30px;
    border-top: 2px solid #ddd;
    background: #fff;
    border-radius: 0 0 4px 4px;
    color: #444;
}

.OwO .OwO-body .OwO-bar .OwO-packages {
    margin: 0;
    padding: 0;
    font-size: 0;
}

.OwO .OwO-body .OwO-bar .OwO-packages li {
    list-style-type: none;
    display: inline-block;
    line-height: 30px;
    font-size: 14px;
    padding: 0 10px;
    cursor: pointer;
    margin-right: 3px;
}

.OwO .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
    border-radius: 0 0 0 3px;
}

.OwO .OwO-body .OwO-bar .OwO-packages li:hover {
    background: #eee;
}

.OwO .OwO-body .OwO-bar .OwO-packages .OwO-package-active {
    background: #eee;
    -webkit-transition: .3s;
    transition: .3s;
}

/* 特定表情包微调 */
.OwO .biaoqing.quyin {
    margin-bottom: -0.125rem;
    min-height: 3.5rem;
    height: 1em;
}

.OwO .biaoqing.alu {
    margin-bottom: -0.3125rem;
    min-height: 2.0625rem;
    height: 1em;
}

.OwO .biaoqing.paopao {
    margin-bottom: -0.25rem;
    min-height: 1.875rem;
    height: 1em;
}

.OwO .biaoqing.Tianshi {
    margin-bottom: -0.125rem;
    min-height: 3.2rem;
    height: 1em;
}

.OwO .biaoqing.heo {
    margin-bottom: -0.25rem;
    min-height: 1.875rem;
    height: 1em;
}

.OwO .biaoqing.huanglian {
    margin-bottom: -0.25rem;
    min-height: 1.875rem;
    height: 1em;
}

/* ==================== 移动端适配 ==================== */

    /* OwO-up：空间不足切换向上弹出，依旧视口居中 */
    .OwO.OwO-up .OwO-body {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .OwO .OwO-logo {
        height: 28px;
        line-height: 20px;
        font-size: 14px;
        padding: 3px 8px;
    }

    .OwO .OwO-body .OwO-items {
        max-height: 42vh;
        padding: 8px;
        overflow-y: auto;
    }

    .OwO .OwO-body .OwO-items .OwO-item {
        font-size: 14px;
        line-height: 16px;
        padding: 8px 12px;
        margin: 0 8px 10px 0;
    }

    .OwO .OwO-body .OwO-items-emoji .OwO-item {
        font-size: 22px;
        line-height: 20px;
    }

    .OwO .OwO-body .OwO-items-image .OwO-item {
        max-width: calc(33.333% - 8px);
    }

    .OwO .OwO-body .OwO-bar {
        height: 36px;
    }

    .OwO .OwO-body .OwO-bar .OwO-packages li {
        line-height: 36px;
        font-size: 14px;
        padding: 0 12px;
    }