﻿.total-item {
    position: fixed;
    right: 10px;
    top: 70px;
    font-size: 16px;
    border-radius: 20px;
    padding: 5px 20px;
    background: #fff;
}

.select-category {
    position: fixed;
    z-index: 999;
    right: 50px;
    top: 50%;
    width: 180px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

    .select-category:hover ul {
        opacity: 1;
        height: 140px; /*多一个项加30px*/
    }

    .select-category:hover .current:after {
        -webkit-transform: rotateZ(0);
        -ms-transform: rotate(0);
        transform: rotateZ(0);
        border-top: 10px solid #9c0;
    }

    .select-category .current {
        border-radius: 20px;
        font-size: 16px;
        height: 40px;
        line-height: 40px;
        padding-left: 15px;
        background-color: #fff;
        color: #333;
        position: relative;
        z-index: 999;
    }

        .select-category .current:after {
            content: '';
            position: absolute;
            right: 10px;
            top: 35%;
            width: 0;
            height: 0;
            -webkit-transform: rotateZ(180deg);
            -ms-transform: rotate(180deg);
            transform: rotateZ(180deg);
            -webkit-transition: all 0.5s;
            -o-transition: all 0.5s;
            transition: all 0.5s;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 10px solid #999;
            transition: all 0.5s;
            transform: rotateZ(180deg);
        }

    .select-category ul {
        width: 100%;
        border-radius: 0 0 6px 6px;
        background-color: rgba(255,255,255,0.8);
        padding-top: 20px;
        overflow: hidden;
        margin-top: -20px;
        -webkit-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
        opacity: 0;
        height: 0;
    }

        .select-category ul .item.active {
            background-color: #9c0;
        }

        .select-category ul .item a {
            display: block;
            padding-left: 15px;
            height: 30px;
            line-height: 30px;
            color: #666;
        }

        .select-category ul .item.active a {
            color: #fff;
        }

        .select-category ul .item a:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }
