body {
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.top-nav, .bottom-nav {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: transform 0.3s;
}
.top-nav {
    top: 0;
    transform: translateY(0);
}
.bottom-nav {
    bottom: 0;
    transform: translateY(0);
}
.nav-hidden .top-nav {
    transform: translateY(-100%);
}
.nav-hidden .bottom-nav {
    transform: translateY(100%);
}
.comic-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    position: relative;
    padding-top: 60px; /* 确保导航栏不覆盖内容 */
    padding-bottom: 60px; /* 确保导航栏不覆盖内容 */
}
.comic-img {
    max-width: 100%;
    display: block;
    margin: 0;
}
/* 顶部头像 */
.user-box{
    width: 40px;
    height: 40px;
    margin-left: 20px;
    margin-right: 100px;
}
.user-box .avatar{
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
}
.user-box-body{
    top: 100%;
    left: -209%;
    margin-top:0.125rem;
    width: 220px;
    height: 180px;
    background-color: #fff;
    z-index: 999;
    opacity: 0;
    transition: opacity 1s;
    pointer-events: none;
    border: 1px solid #e9a6b2;
    border-radius: 25px;
}
.user-box-body.show{
    opacity: 1;
    pointer-events: auto;
}
.user-box-body .username{
    text-align: center;
    margin-top: 20px;
    color: #e9a6b2;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.user-box-body .username .grade{
    width: 40px;
    height: 30px;
}
.user-box-body .finance {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 20px;
}
.user-box-body .finance p {
    font-size: 12px;
    color: #e9a6b2;
}
.user-box-body .finance img{
    width: 20px;
}
.user-box-body .go-user{
    text-align: center;
    margin: 20px;
    box-sizing: border-box;
    background: #e9a6b2;
    padding: 5px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
}

.bottom-nav button , .bottom-nav a{
    margin-right: 10px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
}
.comment-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px
}
.comment-content {
    flex-grow: 1;
}
.comment-input {
    width: 100%;
    position: relative;
}

.comment-input .comment-btn{
    position: absolute;
    bottom: 40px;
    width: 60px;
    right: 0;
    background: pink;
    text-align: center;
    margin-right: 20px;
    color: #fff;
    padding: 2px 5px;
    border-radius: 5px;
    cursor: pointer;
}

.comment-textarea{
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid pink;
    padding: 10px;
    box-sizing: border-box;
    outline: none;
    resize: none;
    height: 80px;
}
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}
.toast{
    background-color: #e9a6b2;
    border: 1px solid #e9a6b2;
    border-radius: 8px;
}
.modal-title {
    color:#000 !important;
}

.comment-grade img {
    width: 30px;
}
.comment .comment-author {
    font-weight: bold;
}
.comment-content {
    color: #000;
}
.comment-meta {
    margin-left: auto;
    color: #999;
    font-size: 13px;
}

.comment-author {
    font-weight: bold;
}
.comment-meta {
    color: #999;
    font-size: 13px;
    float: right;
}
.comment-text {
    margin: 10px 0;
}
.comment-actions {
    color: #666;
    font-size: 0.9rem;
}
 .comment-actions i {
    margin-right: 5px;
    cursor: pointer;
    user-select: none;
}
.comment-reply {
    margin-left: 40px;
    border-left: 2px solid #ddd;
    padding-left: 10px;
    margin-top: 10px;
}

.modal-body {
    height: 500px;
    overflow-y: scroll;
    scrollbar-width: none;
}
.comment{
    margin-bottom: 20px;
}
/* 章节浮窗 */
.chapter-sidebar {
    position: fixed;
    top: 20%;
    left: 20px;
    width: 250px;
    max-height: 60%;
    background-color: rgba(0, 0, 0, .55);
    border-radius: 10px;
    overflow-y: auto;
    padding: 10px;
    z-index: 1000;
}

.chapter-sidebar .btn-bulk-buy {
    margin-bottom: 10px;
    width: 100%;
    background-color: #e9a6b2;
    color: #fff;
    border: none;
}
.chapter-sidebar ul {
    list-style: none;
    padding: 0;
}
.chapter-sidebar ul li {
    padding: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.chapter-sidebar ul li.active a,.chapter-sidebar ul li.active i{
    color: #e9a6b2;
}
.chapter-sidebar ul li a {
    color: rgba(255, 255, 255, 0.8);
    outline: none;
    list-style: none;
    text-decoration: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


.chapter-sidebar ul li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
/* 自定义滚动条样式 */
.chapter-sidebar::-webkit-scrollbar {
    width: 8px;
}
.chapter-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.chapter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}
.chapter-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}
.goBuyBtn{
    width: 50%;height: 40px;border: 1px solid #e9a6b2;outline: none;border-radius: 10px;background: #e9a6b2;color: #fff;
}
.goBuyBtn:hover{
    background: rgba(233, 166, 178, 0.8);
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ccc;
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #bbb;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #e9a6b2;
    box-shadow: 0 0 10px #e9a6b2;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-label {
    display: flex;
    align-items: center;
}

.custom-label span {
    margin-left: 8px;
}