nav.catalog .item {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    position: relative;
}

nav.catalog .item:nth-child(even) {
    background: #F6F6F6;
}

nav.catalog .item:nth-child(odd) {
    background: #E9E7E6;
}

nav.catalog .item .title {
    font-size: 14px;
    font-weight: bold;
}

nav.catalog .subcatalog {
    font-size: 12px;
    display: inline-block;
}

nav.catalog .subcatalog:hover {
    text-decoration: underline;
}

nav.catalog .subcatalog::after {
    content: "|";
    color: #777;
    padding: 0 0.2rem;
}

nav.catalog .subcatalog:last-child:after {
    content: none;
}

.home .catalog {
    overflow: hidden;
    box-sizing: border-box;
}

.home .catalog .item {
    padding: 16px 4px 16px 18px;
}

.home .center {
    flex: 1;
    padding: 0 0.75rem;
}

.home .right {
    width: 250px;
    padding: 0 0.75rem;
}

.h-line-head,
.book .cover {
    position: relative;
}

.h-line-head .title {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    color: #f5f5f5;
    background: var(--primaryColor);
    /* background: #EE554A; */
}

.h-line-head::after {
    content: '';
    height: 2px;
    width: 100%;
    background: var(--primaryColor);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.dynamic_board {
    margin: 12px 0;
    border: 1px solid #ddd;
}

.dynamic_board>.title {
    font-weight: bold;
    margin: 8px 12px;
}

.dynamic_board>a {
    display: block;
    font-size: 12px;
    color: red;
    padding: 2px 12px;
    margin: 2px 0;
}

.dynamic_board>a::before {
    content: '. ';
    position: relative;
    top: -6px;
}

.leaderboard {
    /* height: 100%; */
    display: flex;
    flex-direction: column;
}

.leaderboard .content {
    height: 100%;
    border: 1px rgba(122, 122, 122, 0.25) solid;
}

.leaderboard nav {
    display: flex;
}

.leaderboard nav li {
    display: inline-block;
    flex: 1;
    text-align: center;
    line-height: 3rem;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.leaderboard nav li:hover {
    color: var(--primaryColor);
}

.leaderboard nav li.active {
    color: var(--primaryColor);
}

.leaderboard nav li.active::after {
    content: '';
    height: 2px;
    background: var(--primaryColor);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    animation: focusUnderline 0.25s;
}

.leaderboard .item {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -moz-line-clamp: 1;
    -ms-line-clamp: 1;
    -o-line-clamp: 1;
}

.leaderboard .item a {
    padding: 0 0.5rem;
    line-height: 3rem;
}

.leaderboard .item .leader {
    display: inline-block;
    margin-left: 0.5rem;
    margin-right: 0.25rem;
    font-size: 1.3rem;
    text-align: center;
    width: 1.55rem;
    line-height: 1.55rem;
}

.leaderboard .item .leader.obvious {
    border-radius: 50%;
    color: #eee;
    background-color: var(--primaryColor);
}

.center .list-books {
    margin-top: 0.5rem;
}

.list-books .head .title {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0.25rem;
    display: inline-block;
    font-weight: 700;
    color: var(--primaryColor);
    position: relative;
}

.list-books .head .title::before {
    content: '┏';
    position: absolute;
    left: 0;
    top: -0.5rem;
}

.list-books .head .title::after {
    content: '┛';
    position: absolute;
    right: 0;
    bottom: -0.5rem;
}

.list-books .head {
    display: flex;
    align-items: center;
}

.list-books .head::after {
    content: '';
    flex: 1;
    background: var(--primaryColor);
    height: 1.4px;
}

.list-books>ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem 2rem;
    /* background-color: #ddd; */
    margin-bottom: 12px;
}

.rows-5 {
    margin-top: 24px;
}

.rows-5 .list-books {
    flex: 1;
}

.rows-5 .list-books>ul {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.list-books>ul li {
    display: inline-block;
    background: #fff;
}

.list-books>ul li .book {
    text-align: center;
}

.list-books>ul li .book:hover,
.list-books>ul li .book:active,
.list-books>ul li .book:visited {
    text-decoration: none;
}

.list-books>ul li {
    transition: all 0.2s;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    overflow: hidden;
}

.list-books>ul li:hover {
    border: 1px solid var(--primaryColor);
    transform: translateY(-2px) scale(1.04);
}

.list-books>ul li .book .cover {
    overflow: hidden;
}

.list-books>ul li .book .cover img {
    padding: 0;
    margin: 0;
    width: 100%;
    object-fit: cover;
    display: inline-block;
    transition: all 0.2s;
}

.rows-5 .book .cover img {
    height: 180px;
    margin: 12px 0;
    width: 75%;
}

.list-books>ul li .book .info {
    padding: 0.25rem;
}

.list-books>ul li .book .name {
    color: #000;
    font-size: 13px;
    height: 36px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-books>ul li .book .auth {
    color: #999;
    font-size: 12px;
    margin: 0.25rem 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-books>ul li .book .price {
    font-size: 1.25rem;
    color: #CC3300;
    font-weight: 600;
}

.list-books>ul li .book .hover {
    position: absolute;
    padding-bottom: 0.38rem;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 40%;
    transition: all 0.2s;
    color: #fff;
    text-shadow: #000 1px 2px 2px;
    background-image: linear-gradient(#ffffff00, #000000aa);
}

.list-books>ul li .book .hover .hover-content {
    height: 100%;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: end;
    font-size: 1rem;
}

.list-books>ul li:hover .hover {
    bottom: 0;
}

/* 轮播图 */

#banner {
    margin-top: 10px;
    width: 100%;
    min-height: 20vh;
    position: relative;
    overflow: hidden;
    user-select: none;
}

#banner>.images {
    position: relative;
}

#banner_image_previous {
    position: absolute;
    width: 100%;
    left: -100%;
    top: 0;
    bottom: 0;
}

#banner_image_previous img,
#banner_image_next img,
#banner_image_current img {
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}


#banner_image_next {
    position: absolute;
    width: 100%;
    left: 100%;
    top: 0;
    bottom: 0;
}

#banner>.images img {
    width: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

#banner .pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
}

#banner .pagination>ul {
    display: inline-block;
    margin: auto;
    margin-bottom: 8px;
    padding: 0;
}

#banner .pagination>ul>li {
    margin: 0 2px;
    width: 8px;
    height: 8px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.33);
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 2px #333;
}

#banner .pagination>ul>li.active {
    background-color: #fff;
}

.operate_previous,
.operate_next {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 0;
    width: 30px;
    height: 50px;
    transition: all.2s;
    font-size: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.33);
}

.operate_next {
    left: unset;
    right: 0;
}

#banner:hover .operate_previous,
#banner:hover .operate_next {
    opacity: 1;
}

.operate_previous:hover,
.operate_next:hover {
    background-color: var(--primaryColor);
}

@keyframes toRight {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes toLeft {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/*电梯导航*/

.fixedtool {
    position: fixed;
    bottom: 200px;
    left: 50%;
    margin-left: -674px;
    width: 60px;
    background-color: #F6F6F6;
    /* display: none; */
    border: 1px solid #eee;
}

.fixedtool::before {
    content: '';
    position: absolute;
    display: inline-block;
    background: url(../image/book_floor_head.png) no-repeat;
    width: 50px;
    height: 40px;
    top: 0;
    left: 3px;
    transform: translateY(-100%);
}

.fixedtool li {
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
    color: #777;
    font-weight: bold;
    cursor: pointer;
    fill: #777;
}

.fixedtool li:hover {
    color: var(--primaryColor);
    fill: var(--primaryColor);
}

.fixedtool li.current {
    background-color: var(--primaryColor);
    color: #fff;
}

@keyframes focusUnderline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes unfocusUnderline {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

@media (min-width: 500px) {}

/* 分栏选项卡 */
.list-books .types {
    padding: 0;
    border-bottom: 2px solid var(--primaryColor);
}

.list-books .types .type {
    font-size: 14px;
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
}

.list-books .types .type.current {
    font-weight: bold;
    background: var(--primaryColor);
    color: white;
}

/* 分类书 */

.category_list .book {
    display: block;
    width: 270px;
    float: left;
    margin: 10px;
    margin-bottom: 20px;
    padding-top: 8px;
    border: 1px solid #e5e5e5;
}

.category_list .book .bookcover {
    position: relative;
    z-index: -1;
    position: relative;
    float: left;
    padding: 10px 10px 20px;
}

.category_list .book .bookcover img {
    margin-left: 8px;
    width: 114px;
    height: 162px;
}

.category_list .book .bookinfo {
    float: left;
    /* width: 120px; */
    height: 162px;
    padding: 10px 0;
}

.category_list .book .bookinfo .title {
    font-weight: 700;
    line-height: 20px;
    font-size: 14px;
    line-height: 18px;
    height: 36px;
    overflow: hidden;
    word-break: break-all;
    word-wrap: break-word;
}


.category_list .book .bookinfo ul.sub_category li {
    display: block;
}

/* 特价 */
.category_list .book img.promotion_label {
    position: absolute;
    right: 0;
    top: -10px;
    height: auto;
    width: 47px;
}
.sub_banners {
    margin-top: 30px;
    margin-left: 4px;
}
.sub_banners >img{
    margin: 8px auto;
    width: 100%;
}