html, body {
    margin: 0;
    padding: 0;
}

/*宽屏*/
@media screen and (min-width: 501px) {
    #container {
        display: -webkit-flex; /* Safari */
        display: flex;
        flex-direction:row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        min-height: 100vh;
        /*overflow: auto;*/
    }

    #sidebar {
        order:0;
        flex-grow: 1;
        padding: 0.5rem 0.5rem 0 0.5rem;
        background-color: #404c57;
        color: #f2f4f6;
    }

    #content {
        order:1;
        flex-grow:12;
        padding-left: 1rem;
        padding-top: 0.5rem;
    }

    #content p{
        color:red;
        font-size:18px;
    }

    #list_note_icon {
        display: none;
    }
}
/*小屏幕*/
@media screen and (min-width: 200px) and (max-width: 500px) {
    #container {
        width: 100%;
        min-height: 100%;
    }

    #sidebar {
        padding: 0;
        margin: 0;
        background-color: #fbfbfb;
        color: #404c57;
        width: 100vw;
        height: 100vh;
        overflow: auto;
        opacity: 0.95;
        position: fixed;/*这里一定要设置*/
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 500;
        -webkit-transition: .5s ease-in-out;/* css的transition允许css的属性值在一定的时间内从一个状态平滑的过渡到另一个状态 */
        -moz-transition: .5s ease-in-out;/*这里为了兼容其他浏览器*/
        -o-transition: .5s ease-in-out;
    }

    #content {
        width: 100%;
        padding: 0.5rem;
    }

    #content p{
        color:red;
        font-size:18px;
    }

    .root-title {
        padding-left: 0.5rem;
    }
}

#sidebar-title {
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-menu-item {
    margin: 0.5rem 0 0 0.5rem;
}


/** 右下角跳转按钮 跳转到列表 */
#list_note_icon
{
    position: fixed;
    bottom: 7%;
    right: 8%;
    z-index: 900;
    background: #eee;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    box-shadow: 2px 2px 2px #888888;
    opacity:0.7 ;
}

#list_note_icon:before
{
    content: "";
    display:block;
    background:#555;
    position:absolute;
    height:2px;
    width:28px;
    top:13px;
    left:11px;
    box-shadow:0 10px #555, 0 20px #555, 0 30px #555;
    -webkit-box-shadow:0 8px #555, 0 16px #555, 0 24px #555;
    -moz-box-shadow:0 10px #555, 0 20px #555, 0 30px #555;
}

footer {
    height:32px;
    line-height: 32px;
    text-align: center;
}