.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;
    display: flex;
    flex: 1;
    background-color: #ddd;

    .item {
        position: relative;
        width: calc(100% / 7);
        padding-bottom: 80%;
        margin: 0;
        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;
    }

    .bkeyWrap {
        position: absolute;
        width: 100%;
        padding-bottom: 50%;
        top: 0;

        .bkey {
            width: 10%;
            height: 100%;
            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);
            position: absolute;
            top: 0;
            overflow: hidden;

            &:first-child {
                left: 9%;
            }

            &:nth-child(2) {
                left: 24%;
            }

            &:nth-child(3) {
                left: 52%;
            }

            &:nth-child(4) {
                left: 66%;
            }

            &:nth-child(5) {
                left: 81%;
            }

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

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

}