/* Library页面特定样式 */

/* Library页面特定的Filter筛选区域样式 - 避免与site2.css冲突 */
.library-filter {
    display: block;
    padding: 3px 0 0 0;
    border-bottom: 5px solid #eee;
    background-color: #f6f6f6;
}

.library-filterbox {
    margin: 0 auto;
    max-width: var(--maxscreenwidth);
    background-color: unset;
    padding: 0px;
    border-radius: 0px;
    font-size: 1rem;
    height: auto;
    text-align: left;
}

.library-filterbox dl {
    display: block;
    padding: 6px 20px;
    font-size: 1rem;
    line-height: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-top: 0px solid #fff;
}

.library-filterbox dl:first-child {
    border-top: 0;
}

.library-filterbox dl:last-child {
    border-bottom: 0;
}

.library-filterbox dt {
    display: block;
    width: auto;
    min-width: 80px;
    float: left;
    color: #666;
    padding: 5px 0;
}

.library-filterbox dd {
    display: block;
    width: auto;
    overflow: hidden;
    padding: 0px 0;
}

.library-filterbox dd ul {
    display: block;
    font-size: 0;
}

.library-filterbox dd li {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
    font-size: 1rem;
    margin: 0 10px;
    padding: 5px 0;
}

.library-filterbox dd li a {
    color: #333;
    display: block;
    padding: 0 10px;
    border-radius: 5px;
}

.library-filterbox dd li a:hover {
    background-color: #eee;
}

.library-filterbox dd li.now a {
    background-color: var(--color-main2);
    color: #fff;
}

/* Sort排序样式 */
.sort {
    display: block;
    padding: 0 0 20px 0;
    font-size: 0;
}

.sort b {
    display: inline-block;
    vertical-align: top;
    font-size: 1rem;
    color: #666;
}

.sort span {
    display: inline-block;
    vertical-align: top;
    font-size: 1rem;
    position: relative;
    margin: 0 0px;
    padding: 0 20px;
    cursor: pointer;
}

.sort span a {
    color: #666;
    font-weight: bold;
}

.sort span:hover, .sort span.now, .sort span.now a {
    color: #f60;
    font-weight: bold;
}

.sort span.now:before {
    content: "";
    display: block;
    position: absolute;
    bottom: -5px;
    width: 70%;
    height: 2px;
    background-color: #f60;
    left: 15%;
}

.sort span:after {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 1rem;
    top: 50%;
    margin-top: -0.5rem;
    right: 0;
    background-color: #ccc;
}

.sort span:last-child:after {
    display: none;
}

/* Vlist书籍列表样式 */
.vlist {
    margin: 0 auto;
    padding: 5px 0px 0 0;
    max-width: var(--maxscreenwidth);
    display: block;
}

.vlist ul {
    margin: 0 -10px;
    font-size: 0;
}

.vlist li {
    width: 16.66%;
    margin-right: 0%;
    float: none;
    margin-bottom: 0px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 0 10px 25px 10px;
}

.pageleft .vlist ul {
    margin: 0 -5px;
}

.pageleft .vlist ul li {
    width: 20%;
    padding: 0 5px 25px 5px;
}

.vlist li:last-child {
    margin-right: 0px;
}

.vlist li .cover {
    position: relative;
    max-height: unset;
    border-radius: 0px;
    height: auto;
    background-size: cover;
    background: url(../../images/subdefault/loading2.gif) center no-repeat #fff;
    background-size: 80% auto;
    border: 0px solid rgba(0,0,0,0.03);
    box-sizing: border-box;
    background-position: center;
}

    .vlist li .cover span em, .status em {
        position: absolute;
        top: 0;
        left: 100%;
        width: auto;
        height: 1.5rem;
        font-style: normal;
        color: #fff;
        display: inline-block;
        vertical-align: top;
        white-space: nowrap;
        padding: 0px 8px;
        box-sizing: border-box;
        margin-left: 0px;
    }

.vlist li .coverbox {
    transition: all 0.2s;
}

.vlist li a:hover .coverbox {
    transform: scale(1.05);
}

.vlist li .name {
    font-size: 1.3rem;
    margin: 0px;
    padding: 0px;
    text-align: left;
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 8px;
    overflow: hidden;
    transition: color 0.2s;
}

.vlist li .listdata {
    font-size: 0;
    margin-top: 5px;
}

.vlist li .listdata span {
    color: #666;
    display: inline-block;
    float: none;
    font-size: .9rem;
    height: 20px;
    line-height: 20px;
    margin-right: 10px;
}

.vlist li .listdata span.author {
    display: block;
}

.vlist li .listdata .score:before {
    display: block;
    width: .9rem;
    height: 100%;
    background: url(../../images/subdefault/star.svg) center no-repeat;
    background-size: 100% auto;
    content: "";
    float: left;
    margin-right: 2px;
    opacity: 0.3;
}

.vlist li .listdata .readCount:before {
    float: left;
    display: block;
    width: .9rem;
    height: 100%;
    background: url(../../images/subdefault/eye.svg) center no-repeat;
    background-size: 100% auto;
    content: "";
    margin-right: 2px;
    opacity: 0.3;
}

.vlist li .desc {
    font-size: .9rem;
    color: #999;
    margin: 0;
    padding: 5px 0 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1rem;
    height: 3rem;
}

/* Nlist样式 */
.nlist {
    display: block;
    font-size: 0;
}

.nlist li {
    width: 50%;
    margin: 0;
    display: inline-block;
    vertical-align: top;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.pageleft .vlist .nlist li {
    width: 50%;
}

.nlist li a {
    display: block;
    width: auto;
    padding: 0px;
    position: relative;
}

.nlist li a:after {
    content: "";
    display: block;
    clear: both;
    width: auto;
    height: 0;
    clear: both;
}

.nlist li .cover {
    width: 150px;
    position: relative;
    height: auto;
    left: 0px;
    top: 0px;
    overflow: hidden;
    border-radius: 0px;
    background: url(../../images/subdefault/loading2.gif) center no-repeat #fff;
    box-sizing: border-box;
    border: 0px solid rgba(0,0,0,0.03);
    float: left;
    background-size: 100% auto;
}

.pageleft .vlist .nlist li .cover {
    width: 126px;
}

.pagecenter .nlist .cover, .ztbody .nlist .cover {
    width: 150px;
}

.nlist li .name {
    font-size: 1.5rem;
    color: var(--color-a);
    margin: 0px;
    height: 56px;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0px 0 0 10px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.pagecenter .nlist li .name {
    font-size: 20px;
    line-height: 28px;
    height: 56px;
}

.nlist li a:hover .name {
    color: var(--color-a);
}

.nlist li .desc {
    -webkit-line-clamp: 3;
    height: auto;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    height: 66px;
    overflow: hidden;
    color: #979797;
    line-height: 22px;
    font-size: 14px;
    margin: 8px 0;
    padding: 0 5px 0px 10px;
}

.pagecenter .nlist li .desc {
    font-size: 15px;
    line-height: 22px;
    height: 66px;
    margin: 15px 0;
}

.pageleft .main-nlist li .desc {
    margin: 0;
    line-height: 18px;
    height: 54px;
}

.nlist li .listdata {
    font-size: .8rem;
    margin-top: 0px;
    height: auto;
    line-height: 20px;
    padding: 0 0px 0 10px;
    overflow: hidden;
    width: auto;
    position: absolute;
    bottom: 0;
    left: 150px;
    opacity: .5;
    white-space: nowrap;
}

.pageleft .main-nlist li .listdata span {
    display: none;
}

.pageleft .main-vlist li .listdata span.author {
    display: block;
}

.pagecenter .nlist li .listdata, .ztbody .nlist li .listdata {
    left: 150px;
    bottom: 0;
}

.pageleft .main-nlist li .listdata {
    left: 126px;
    bottom: 23px;
}

.nlist li .listdata i {
    color: #ffbe24;
}

.nlist li .listdata span {
    color: #333;
    display: inline-block;
    vertical-align: top;
    float: none;
    font-size: 13px;
    height: 20px;
    line-height: 20px;
    padding-right: 10px;
}

.nlist li .listdata .score {
    display: inline-block;
}

.nlist li .listdata .readCount {
    display: inline-block;
}

.nlist li .listdata .score:before {
    display: block;
    width: 14px;
    height: 100%;
    background: url(../../images/subdefault/star.svg) center no-repeat;
    background-size: 100% auto;
    content: "";
    float: left;
    margin-right: 2px;
    opacity: 0.3;
}

.nlist li .listdata .readCount:before {
    float: left;
    display: block;
    width: 14px;
    height: 100%;
    background: url(../../images/subdefault/eye.svg) center no-repeat;
    background-size: 100% auto;
    content: "";
    margin-right: 2px;
    opacity: 0.3;
}

.nlist li .tag {
    display: block;
    font-size: 1.1rem;
    color: var(--color-main2);
    padding: 5px 0 5px 10px;
    overflow: hidden;
    line-height: 1.1rem;
    white-space: nowrap;
}

.nlist li .tag span {
    display: inline-block;
    margin-left: 0px;
    padding-left: 15px;
    border-left: 0px solid #ddd;
    color: #666;
    font-size: .8rem;
}

.vlist ul.nlist li .listdata span.author {
    display: inline-block;
}

.pageleft .nlist li .tag {
    padding-top: 40px;
    padding-bottom: 0;
}

.nlist li .addbook {
    position: absolute;
    right: 15px;
    bottom: 10px;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    color: #fff;
    padding: 0 15px;
    border: 0;
    background-color: var(--color-main);
    border-radius: 5px;
    display: none;
}

.nlist li.now .addbook {
    background-color: #f60;
}

.nlist li.now .addbook:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    position: relative;
    top: -4px;
    margin-right: 5px;
}

.pagecenter .nlist li .addbook {
    display: inline-block;
}

.pageleft form {
    display: none;
}

/* 响应式样式 */
@media screen and (max-width: 1280px) {
    .vlist li {
        width: 20%;
    }
    
    .pageleft .vlist ul li {
        width: 25%;
    }
    
    .vlist .nlist li {
        width: 33.33%;
    }
    
    html.novel .pageleft {
        width: 62%;
    }
    
    html.novel .pageright {
        width: 38%;
    }
    
    .pageleft .vlist .nlist li {
        width: 100%;
    }
    
    .vlist .nlist li {
        width: 50%;
    }
    
    .pagecenter .nlist .cover {
        width: 150px;
    }
    
    .pagecenter .nlist li .listdata {
        left: 150px;
    }
    
    .nlist li .listdata span {
        margin-right: 0;
    }
    
    .pagecenter .nlist li .listdata span.author {
        max-width: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
    }
}

@media screen and (max-width: 980px) {
    .vlist li {
        width: 25%;
    }
    
    .pageleft .vlist ul li {
        width: 33.33%;
    }
    
    .pagecenter .nlist li {
        width: 50%;
    }
}

@media screen and (max-width: 767px) {
    .vlist li, .pageleft .vlist ul li {
        width: 50%;
    }
    
    .vlist ul {
        margin: 0 -5px;
    }
    
    .vlist li {
        padding: 0 5px 15px 5px;
    }
    
    .vlist li .name {
        font-size: 1.1rem;
    }
    
    .sort {
        padding: 10px 0 20px 0;
    }
    
    .library-filterbox dl {
        padding: 10px 10px 5px 10px;
    }
    
    html.novel .library-filterbox dl {
        border-bottom: 2px solid #fff;
    }
    
    .library-filter {
        padding: 0px;
        border-bottom-width: 3px;
    }
    
    html.novel .library-filter {
        border-bottom: 2px solid #fff;
        border-top: 2px solid #fff;
        background-color: #f3f3f3;
    }
    
    .library-filterbox {
        background-color: unset;
    }
    
    .library-filterbox dd ul {
        max-height: 145px;
        overflow: hidden;
        overflow-y: auto;
    }
    
    .library-filterbox dd li {
        padding: 2px 0;
        margin: 0 6px 0 0;
    }

    /* 手机端筛选标题与内容分行显示 */
    .library-filterbox dt {
        float: none;
        width: 100%;
        padding: 5px 0 0 0;
    }

    .library-filterbox dd {
        padding-top: 0;
    }

    /* 手机端结果单列展示，避免重叠 */
    .nlist li,
    .pagecenter .nlist li {
        width: 100%;
        display: block;
    }

    /* 取消绝对定位，防止信息重叠 */
    .nlist li .listdata,
    .pagecenter .nlist li .listdata {
        position: static;
        left: auto;
        bottom: auto;
        opacity: 1;
        white-space: normal;
        padding: 0 0 0 10px;
    }
}
