.piano {
    position: fixed;
    bottom: 0;
    width: calc(100% - 310px);
    right: 10px;
    display: flex;
    padding: 10px;
    z-index: 10;
    transform: translateY(100%);
    transition: all .3s;
}

.show {
    transform: translateY(0);
}

.pianoItemWrap {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;

    .itemWrap {
        position: relative;
        display: flex;
        width: calc(100% / 7);
        max-width: 230px;
        // background-color: #ddd;
        // box-shadow: 0 0 5px 0 #ccc;
        &:first-child{
            justify-content: flex-end;
        }
    }

    .item {
        position: relative;
        width: calc(100% / 7);
        height: 160px;
        background: #fff;
        background: linear-gradient(-30deg, #f5f5f5, #fff);
        border: 1px solid #ccc;
        border-radius: 0 0 5px 5px;
        cursor: pointer;

        &:hover {
            box-shadow: inset 0 0 5px 0 orange;
        }

        &:active {
            background: #facc94;
        }

        &.keyDown {
            background: #efefef;
            transform: scaleY(0.95);
            transform-origin: top;

            &::before {
                content: "";
                position: absolute;
                left: 0;
                bottom: 0;
                width: 10%;
                height: 100%;
                background: rgba(0, 0, 0, .1);
            }

            &::after {
                content: "";
                position: absolute;
                right: 0;
                bottom: 0;
                width: 10%;
                height: 100%;
                background: rgba(0, 0, 0, .1);
            }
        }
    }

    .keytip {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        color: #131415;
        text-align: center;
        font-size: 12Px;
        position: absolute;
        bottom: 5%;
    }

    .singname {
        width: 80%;
        height: 20px;
        line-height: 20px;
        text-align: center;
        font-weight: 700;
        font-size: 12px;
        border-radius: 2px;
    }

    .bkey {
        position: absolute;
        width: calc(100% / 11);
        height: 90px;
        background: linear-gradient(-20deg, #333, #000, #333);
        border-color: #666 #222 #111 #555;
        border-style: solid;
        border-width: 1px 2px 7px;
        border-radius: 0 0 2px 2px;
        box-shadow: inset 0 -1px 2px hsla(0, 0%, 100%, .4), 0 2px 3px rgba(0, 0, 0, .4);
        overflow: hidden;
        z-index: 2;

        &:hover {
            cursor: pointer;
            box-shadow: inset 0 0 7px 0 #87cefa;
        }

        &:active {
            background: #75c3ed;
            border-color: #75c3ed;
        }
    }

    :global {
        .bkey0 {
            left: 9%;
        }

        .bkey1 {
            left: 24%;
        }

        .bkey3 {
            left: 51%;
        }

        .bkey4 {
            left: 66%;
        }

        .bkey5 {
            left: 81%;
        }
    }

}