.container {
    width: 100%;
    max-width: 642px;
    margin: 0 auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, PingFang SC, SF UI Text, Arial, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei;
}

@media (max-width: 375px) {
    html {
        font-size: 100%;
    }
}

#login, #noLogin {
    text-align: center;
}


@media (min-width: 642px) {

    .book-title {
        max-width: calc(642px - 6rem) !important;
    }

    .container {
        width: 642px;
    }
}

/* .top {
  position: sticky;
  top: 10px;
  background: #fff;
  z-index: 10;
  max-width: 642px;
} */

/* .library-placeholder {
  height: 9.0rem;
}

@media (max-width: 400px) {
  .library-placeholder {
    height: 9.8rem;
  }
} */

.header {
    display: flex;
    justify-content: space-between;
    padding: 0.5625rem 0.625rem;
    align-items: center;
    border-bottom: 0.0625rem solid #f1f1f1;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right-service {
    margin-right: 0.5625rem;
    width: 1.375rem;
    text-align: center;
}

.header-right-servicee img, #noLogin img, #login img {
    width: 1.375rem;
    height: 1.375rem;
}

.header-right-service p, #noLogin p, #login p {
    font-weight: 400;
    font-size: 0.5625rem;
    color: #6b6b6b;
    white-space: nowrap;
    transform: scale(0.9)
}

.header-right-img img {
    border-radius: 100%;
    width: 1.375rem;
    height: 1.375rem;
}

.message {
    background: #f5f5f5;
    height: 1.5625rem;
    margin: 0.3125rem 0.625rem;
    padding: 0 0.625rem;
    border-radius: 1.5625rem;
    display: flex;
    align-items: center;
}

    .message img {
        width: 0.75rem;
        height: 0.625rem;
        margin-right: 0.3125rem;
    }

    .message p {
        font-weight: 400;
        font-size: 0.6875rem;
        color: #171717;
        line-height: 1rem;
    }

.text {
    font-size: 0.75rem;
    color: #171717;
    line-height: 1.0625rem;
    margin: 0 0.625rem 0.3125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .text p {
        margin-right: 0.625rem;
    }

.golden-text {
    color: #d88400;
}

.text-btn {
    width: 2.375rem;
    height: 2.375rem;
    border: 0.0625rem solid #d88400;
    border-radius: 0.25rem;
    flex-shrink: 0;
    padding: 0.375rem;
    font-size: 0.75rem;
    line-height: 0.75rem;
    color: #d88400;
    box-sizing: border-box;
}

.nav {
    max-width: 720px;
    overflow-x: auto;
}

.nav-top {
    display: flex;
    align-items: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.75rem 0.625rem;
    padding-left: calc(0.625rem + 0.425rem);
    background: #f0f2f5;
    font-size: 1rem;
    color: #858585;
    line-height: 0.875rem;
}

    .nav-top::-webkit-scrollbar {
        height: 0.25rem;
    }

    .nav-top::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0);
        border-radius: 0.25rem;
        transition: 0.2s;
    }

    .nav-top:hover::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
    }
/* 当屏幕宽度小于450px时，隐藏滚动条 */
@media (max-width: 450px) {
    .nav-top::-webkit-scrollbar {
        display: none;
    }
}

.nav-top p {
    margin-right: 1.5rem;
    display: inline-block;
    white-space: nowrap;
}

.nav-bottom {
    display: flex;
    align-items: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    background: #ff6868;
    padding: 0.625rem;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 0.9375rem;
}

    .nav-bottom::-webkit-scrollbar {
        height: 0.25rem;
    }

    .nav-bottom::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0);
        border-radius: 0.25rem;
        transition: 0.2s;
    }

    .nav-bottom:hover::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.5);
    }
/* 当屏幕宽度小于450px时，隐藏滚动条 */
@media (max-width: 450px) {
    .nav-bottom::-webkit-scrollbar {
        display: none;
    }
}

.nav-bottom p {
    margin-right: 1.5rem;
    display: inline-block;
    white-space: nowrap;
}

.nav-all {
    margin-right: 0.3125rem;
    color: #fff;
}

    .nav-all img {
        width: 0.6875rem;
        height: 0.6875rem;
        margin-bottom: 0.25rem;
    }

.main {
    padding-top: 0.5rem;
    background: #fff;
}

.book-wrapper {
    background: #fff;
    display: flex;
    padding: 0.625rem;
    border-bottom: 0.0625rem solid #f5f5f5;
    gap: 0.625rem;
}

.book-img {
    /* margin-right: 0.625rem; */
    width: 4.125rem;
    height: 5.5rem;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    border: 0.0625rem solid #e9e9e9;
    flex-shrink: 0;
}

    .book-img img {
        width: 4.125rem;
        height: 5.5rem;
        border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    }

.book-content {
    /* margin-left: 0.625rem; */
}

.book-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333333;
    line-height: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100vw - 6rem);
    text-overflow: ellipsis;
}

.book-desc {
    font-weight: 400;
    font-size: 0.75rem;
    color: #666666;
    line-height: 1rem;
    margin: 0.65rem 0;
    height: 2rem;
}

.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-info {
    display: flex;
    justify-content: space-between;
    height: 0.8rem;
}

    .book-info > p {
        font-weight: 400;
        font-size: 0.75rem;
        color: #a6a6a6;
        line-height: 1.25rem;
    }

.book-tags {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.book-tag {
    font-weight: 400;
    font-size: 0.625rem;
    padding: 0 0.125rem;
}

.pink {
    color: #ff4e98;
    border-radius: 0.125rem 0.125rem 0.125rem 0.125rem;
    border: 0.0625rem solid #ff4e98;
}

.yellow {
    color: #ff824d;
    border-radius: 0.125rem 0.125rem 0.125rem 0.125rem;
    border: 0.0625rem solid #ff824d;
}

.green {
    color: #47a566;
    border-radius: 0.125rem 0.125rem 0.125rem 0.125rem;
    border: 0.0625rem solid #47a566;
}

.cate-active {
    font-weight: 600;
    font-size: 1.0625rem;
    color: #171717;
}

.tag-active {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #171717;
}

.second-area {
    padding: 0.625rem;
    background-color: #fff;
    border-bottom: 0.5rem solid #f8f8f8;
}

.second-cate-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.second-cate {
    background: #f7f7f7;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    padding: 0.3125rem 0.5625rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #4b4b4b;
}

.second-cate-active {
    background: #f9eef0;
    font-weight: 400;
    font-size: 0.875rem;
    color: #ee3232;
}

.cate-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1rem 0 0.375rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #171717;
}

.cate-filter-active {
    font-weight: 400;
    font-size: 0.875rem;
    color: #ee3232;
}

.tag-wrapper {
    display: flex;
    margin-bottom: 0.875rem;
    align-items: center;
}

.tag-mark {
    line-height: 1.75rem;
    height: 1.75rem;
}

/* .tag-wrapper:first-child {
    margin-top: 0.625rem;
} */

.tag-wrapper:last-child {
    margin-bottom: 0.3125rem;
}

.tag-wrapper > p {
    margin-left: 0.425rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    font-weight: 400;
    font-size: 0.875rem;
    color: #9a9a9a;
}

.tag-wrapper:first-child {
    margin-top: 0.3125rem;
}
/*
.tag-wrapper:first-child > p {
    align-self: self-start;
    line-height: 1.5rem;
}*/
/*.tag-wrapper > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #171717;
}*/
.tag-wrapper:nth-child(2) > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #171717;
}

.tag-wrapper:nth-child(3) > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #171717;
}

.tag-item {
    background: #f9eef0;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #ee3232;
    padding: 0.3125rem 0.5625rem;
}

.tag-item-active {
    font-weight: 400;
    font-size: 0.875rem;
    color: #ee3232;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.125rem;
}

.no-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .no-data img {
        width: 10.25rem;
        height: auto;
        margin-bottom: 0.625rem;
    }

    .no-data p {
        font-weight: 400;
        font-size: 0.875rem;
        color: #999;
    }


@media(min-width:642px) {
    .nav-top {
        display: flex;
        align-items: center;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0.325rem 0.625rem 0;
        background: #f0f2f5;
        font-size: 1rem;
        color: #858585;
        line-height: 2.875rem;
        overflow-y: hidden;
        height: 2.875rem;
    }

    .nav-bottom {
        display: flex;
        align-items: center;
        overflow-x: auto;
        flex-wrap: nowrap;
        background: #ff6868;
        padding: 0.625rem;
        font-size: 0.9375rem;
        color: #ffffff;
        overflow-y: hidden;
        /* scrollbar-width: none; */
        height: 2.5rem;
        padding-bottom: 0.325rem;
    }
}
