html {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family: "Microsoft YaHei";

    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    color-scheme: light; /* 告诉浏览器不要应用深色模式 */
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family: "Microsoft YaHei";

    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

#container {
    display: flex;
    width: 100%;
    height: 100%;
}


#sidebar {
    width: 300px;
    border-right: 1px solid #ddd;

    overflow-y: auto;

    background: #fafafa;
}
@media (max-width:768px){

    #sidebar{

        position:fixed;

        left:-280px;

        top:0;

        width:280px;

        height:100%;

        z-index:1000;

        background:white;

        transition:.3s;
    }

    #sidebar.show{

        left:0;
    }
}

#viewer-container {
    flex: 1;

    display: flex;
    flex-direction: column;
}

#toolbar {
    height: 50px;

    border-bottom: 1px solid #ddd;

    background-color: #FFFFFF;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 10px;
}

#viewer {
    flex: 1;
}

#toc {
    list-style: none;

    padding: 10px;
    margin: 0;
}

#toc li {
    cursor: pointer;
    padding: 6px;
}

#toc li:hover {
    background: #eee;
}

.search-result {
    cursor: pointer;

    padding: 5px;

    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    #toolbar {
        flex-wrap: wrap;
        height: auto;
        padding: 5px;
        gap: 5px;
        background-color: #FFFFFF;
    }
    #toolbar input,
    #toolbar button {
        flex: 1 1 auto;
        min-width: 40px;
        margin: 2px 0;
    }
}

.book-info{

    display:flex;

    gap:15px;

    padding:4px 10px;

    font-size:12px;

    color:#888;

    flex-wrap:wrap;
}

.book-info span{
    flex:1;
}

#lastUpdateTime{
    text-align:center;
}

#author{
    text-align:right;
}

@media(max-width:768px){

    .book-info{

        flex-direction:column;

        gap:4px;
    }

    .book-info span{

        text-align:left !important;
    }
}