body {
    padding-top: 120px;
    ;
}

/* 搜索框 */
#searchBox {
    position: absolute;
    width: 60%;
    height: 40px;
    top: 60px;
    left: 20%;
}

#searchCommit {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    width: 10%;
    background-color: rgb(136, 203, 242);
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}

#searchInput {
    width: max-content;
    height: 100%;
    width: 90%;
    padding: 0px;
    border: 0px;
    line-height: 30px;
    font-size: 25px;
    background-color: white;
}

/* 图书项目 */
.bookItem {
    position: relative;
    left: 15%;
    height: 200px;
    width: 70%;
    margin-bottom: 10px;
    background-color: #fff;
    font-size: 20px;
}

.bookItem * {
    display: inline-block;
    cursor: pointer;
}

.booknum {
    display: none;
}

.bookname {
    position: absolute;
    left: 120px;
    top: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    max-width: calc(100% - 110px);
}

.bookname:hover {
    text-decoration: underline;
}

.bookauthors {
    position: absolute;
    left: 120px;
    top: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    max-width: calc(100% - 110px);
    color: rgb(118, 118, 118);
    font-style: italic;
    font-size: 17px;
}

.bookpublisher {
    position: absolute;
    left: 120px;
    top: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    max-width: calc(100% - 110px);
    color: rgb(118, 118, 118);
    font-style: italic;
    font-size: 17px;
}

.bookcategory {
    position: absolute;
    left: 120px;
    top: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    max-width: calc(100% - 110px);
    color: rgb(118, 118, 118);
    font-style: italic;
    font-size: 17px;
}

.bookyear,
.booklanguage,
.bookformat,
.booksize {
    position: relative;
    display: inline-block;
    padding: 3px 5px;
    font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    line-height: 10px;
    color: #24292f;
    vertical-align: middle;
    background-color: #f6f8fa;
    border: solid 1px rgba(175, 184, 193, 0.2);
    border-bottom-color: rgba(175, 184, 193, 0.2);
    border-radius: 2px;
    box-shadow: inset 0 -1px 0 rgba(175, 184, 193, 0.2);
    top: 145px;
    left: 120px;
    margin-right: 5px;
}

.bookinterestScore {
    position: absolute;
    top: 125px;
    left: 120px;
    font-size: 15px;
    color: rgb(118, 118, 118);
}

.bookqualityScore {
    position: absolute;
    top: 125px;
    left: 180px;
    font-size: 15px;
    color: rgb(118, 118, 118);
}

.bookinterestScore::before {
    content: "趣味:";

}

.bookqualityScore::before {
    content: "质量:";
}

.bookbookHref {
    display: none;
}

.bookImg {
    position: absolute;
    left: 5px;
    top: 25px;
    height: 150px;
    width: 100px;
}

.noResults{
    position: absolute;
    top:45%;
    left:50%;
    height:20px;
    font-size: 20px;
    line-height: 20px;
    border:2px solid green;
    padding:5px 10px;
    text-align: center;
    transform: translateX(-50%);
}

@media only screen and (max-width: 550px) {
    #searchBox {
        position: absolute;
        width: 90%;
        height: 40px;
        top: 60px;
        left: 5%;
    }

    .bookItem {
        position: relative;
        left: 5%;
        height: 200px;
        width: 90%;
        margin-bottom: 10px;
        background-color: #fff;
    }
}
