#gmid {
    display: grid;
    grid:
        'gd3 spa spa' auto
        'gd3 gd4 gd5' auto
        / auto 1fr auto;
    #gd3 {
        grid-area: gd3;
    }
    #spa {
        grid-area: spa;
        width: auto;
    }
    #gd4 {
        grid-area: gd4;
        width: auto;
    }
    #gd5 {
        grid-area: gd5;
        z-index: 3;
        position: relative;
        min-width: 150px;
    }
}

:root #ehs-introduce-box {
    position: absolute;
    inset: 0 -5px 0 0;
    overflow: auto;
    text-align: left;
    display: flex;
    flex-flow: column;
    border-radius: 0 0 6px 0;
    background: #edebdf;
    .ehs-title {
        flex: none;
        margin: 0 8px;
        border-bottom: 1px solid #5c0d12;
        line-height: 14px;
        padding: 3px 0;
        display: flex;
        flex-direction: row;

        .ehs-cn {
            font-weight: bold;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .ehs-en {
            opacity: 0.7;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        > div {
            overflow: hidden;
            flex: auto;
        }
        > span {
            overflow: hidden;
            flex: none;
        }
    }
    .ehs-close {
        user-select: none;
        cursor: pointer;
        font-size: 16px;
        opacity: 0.8;
        line-height: 28px;
        width: 20px;
        text-align: center;
        &:hover {
            opacity: 1;
        }
        &::after {
            content: '\00d7';
        }
    }
    .ehs-content {
        flex: auto;
        overflow: auto;
        margin: 4px 0;
        padding: 4px 8px;
        scrollbar-width: thin;
        scrollbar-color: #5c0d12 transparent;

        &::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        &::-webkit-scrollbar-thumb {
            background: #5c0d12;
        }
        abbr[title] {
            padding: 0 1px;
            &::after {
                content: ' (' attr(title) ')';
                font-size: 90%;
            }
        }
    }
    .ehs-href {
        flex: none;
        border-top: 1px solid #5c0d12;
        margin: 0 8px;
        line-height: 24px;
        &:empty {
            display: none;
        }
    }
    &:empty {
        display: none;
    }
    img {
        max-width: 100%;
        margin: 0;
        width: auto;
        height: auto;
    }
}

:root.ehs-ex #ehs-introduce-box {
    background: #4f535b;
    border-radius: 0;
    .ehs-title {
        border-bottom: 1px solid #000;
    }
    .ehs-href {
        border-top: 1px solid #000;
    }
    .ehs-content {
        scrollbar-color: #000 transparent;
        &::-webkit-scrollbar-thumb {
            background: #000;
        }
    }
}

.ehs-no-translation,
.ehs-no-intro {
    opacity: 0.8;
    h3 {
        opacity: 0.6;
        text-align: center;
        font-size: 16px;
        padding: 8px;
        font-weight: bold;
    }
}

//0:hide, 1:non-h 2: R18 3: R18G
/* nsfw="R18" */
:root.ehs-image-level-0 #ehs-introduce-box .ehs-content {
    img {
        display: none;
    }
}
:root.ehs-image-level-1 #ehs-introduce-box .ehs-content {
    img[nsfw] {
        display: none;
    }
}
:root.ehs-image-level-2 #ehs-introduce-box .ehs-content {
    img[nsfw='R18G'] {
        display: none;
    }
}
:root.ehs-image-level-3 {
    // 所有都显示
}
