﻿@charset "UTF-8";

[v-cloak] {
    display: none !important;
}

#chapterReaderApp {
    min-height: 0;
    background: transparent;
    color: var(--plus-text, #2f261f);
}

#chapterReaderApp .chapterReaderMain {
    min-height: 0;
}

#chapterReaderApp .chapterReaderHeader,
#chapterReaderApp .topTabBar,
#chapterReaderApp .configBar {
    background: rgba(255, 253, 248, 0.94);
    border-color: var(--plus-line, rgba(92, 66, 43, 0.13));
    color: var(--plus-text, #2f261f);
    box-shadow: 0 8px 22px rgba(92, 66, 43, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#chapterReaderApp .contains {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    color: var(--plus-text, #2f261f);
}

#chapterReaderApp .contains .detail {
    min-height: 60vh;
    color: #33281f;
    letter-spacing: 0;
    word-break: break-word;
}

#chapterReaderApp .contains h1 {
    color: var(--plus-text, #2f261f);
    font-weight: 800;
    letter-spacing: 0;
}

#chapterReaderApp .mContent,
#chapterReaderApp .novelcontent,
#chapterReaderApp .readingText {
    color: inherit;
}

#chapterReaderApp .mContent p,
#chapterReaderApp .novelcontent p,
#chapterReaderApp .readingText p,
#chapterReaderApp .contains .detail p {
    margin: 0 0 1.05em;
}

#chapterReaderApp .loadBox {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chapterReaderApp .chapterShareBar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 18px;
}

#chapterReaderApp .chapterShareBarBtn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 66, 43, 0.13);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.86);
    cursor: pointer;
}

#chapterReaderApp .chapterShareBarBtn img {
    width: 18px;
    height: 18px;
}

#chapterReaderApp .baseBtn {
    cursor: pointer;
}

#chapterReaderApp .baseBtn.disabled,
#chapterReaderApp .scheduleBtnItem.disabled {
    opacity: 0.42;
    pointer-events: none;
}

#chapterReaderApp #legacyRewardMask,
#chapterReaderApp #legacyRewardLayer {
    display: none !important;
}

#chapterReaderApp .chapterReaderMain.gift-dialog-open #legacyRewardMask {
    display: block !important;
}

#chapterReaderApp .chapterReaderMain.gift-dialog-open #legacyRewardLayer {
    display: flex !important;
}

#chapterReaderApp #legacyHonorSheet,
#chapterReaderApp #legacyGiftQuantityMenu {
    display: none;
}

#chapterReaderApp .giftDialogSubmitBtn,
#chapterReaderApp .h5BoostProgressBtn,
#chapterReaderApp .baseBtn,
#chapterReaderApp .scheduleBtnItem,
#chapterReaderApp .configTabItem,
#chapterReaderApp .directorySort {
    -webkit-tap-highlight-color: transparent;
}

.readhead,
#book_info {
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    color: var(--plus-muted, #746454);
    box-shadow: 0 8px 22px rgba(92, 66, 43, 0.05);
}

.bookpagebody {
    min-width: 0;
    background:
            linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(255, 253, 248, 0.98)),
            var(--plus-bg, #fbf7ef);
}

.bookpagebody .readbookbox,
.bookpagebody .novelread {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

.bookpagebody .novelread {
    padding: 34px 0 86px;
}

.bookpagebody .novelread h2 {
    margin: 0 0 28px;
    color: var(--plus-text, #2f261f);
    text-align: center;
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: 0;
}

.bookpagebody .novelread h2 em {
    display: block;
    margin-bottom: 6px;
    color: var(--plus-muted, #746454);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
}

.bookpagebody .chapterContent {
    color: #33281f;
    line-height: 150%;
}

.bookpagebody .novelcontent {
    font-size: 18px;
    line-height: 150%;
}

.bookpagebody #novelcontent,
.bookpagebody #novelcontent p,
.bookpagebody .novelcontent p,
.bookpagebody .novelread p {
    margin: 2rem 0;
    line-height: 150% !important;
    text-indent: 2rem;
}

.bookpagebody #novelcontent {
    margin: 0;
}

.bookpagebody #novelcontent img {
    display: none !important;
}

.bookpagebody .novalct {
    position: fixed;
    top: 50%;
    right: max(28px, calc((100vw - 900px) / 2 - 78px));
    z-index: 86;
    display: block;
    width: auto;
    float: none;
    margin: 0;
    pointer-events: auto;
    transform: translateY(-50%);
}

.bookpagebody .novalct.is-hidden {
    display: none !important;
}

.bookpagebody .novalct ul {
    display: grid;
    gap: 8px;
    width: fit-content;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 12px 28px rgba(92, 66, 43, 0.09);
    list-style: none;
    pointer-events: auto;
}

.bookpagebody .novalct li {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 999px;
    color: var(--plus-muted, #746454);
    cursor: pointer;
    pointer-events: auto;
}

.bookpagebody .novalct li > span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.bookpagebody .novalct li:hover {
    background: rgba(184, 95, 66, 0.1);
    color: var(--plus-coral, #b85f42);
}

.bookpagebody .novalct .listenp.hidden {
    display: none !important;
}

.bookpagebody .novalct .icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
    fill: currentColor;
}

.bookpagebody .nextbox {
    display: flex;
    justify-content: center;
    margin: 34px 0 22px;
}

.bookpagebody .nextbox a {
    min-width: 150px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--plus-coral, #b85f42), var(--plus-accent, #8a5a26));
    color: #fffaf2;
    font-weight: 800;
    cursor: pointer;
}

.bookpagebody .linea {
    width: min(1080px, calc(100% - 40px));
    margin: 26px auto 0;
}

.bookpagebody .linea h3 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: var(--plus-heading, #5f3b1f);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
}

.bookpagebody .linea h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--plus-coral, #b85f42), var(--plus-gold, #b7791f));
}

.bookpagebody .linea:has(.nlist) {
    margin-top: 14px;
}

.bookpagebody .nlist.noval {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bookpagebody .nlist.noval li {
    min-width: 0;
}

.bookpagebody .nlist.noval li > a {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 14px;
    row-gap: 8px;
    align-content: start;
    box-sizing: border-box;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: var(--plus-radius-md, 14px);
    background:
            linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 237, 0.88)),
            #fffdf8;
    color: var(--plus-text, #2f261f);
    box-shadow: 0 12px 30px rgba(92, 66, 43, 0.06);
    text-decoration: none;
    transition: transform var(--plus-ease, 180ms ease), border-color var(--plus-ease, 180ms ease), box-shadow var(--plus-ease, 180ms ease);
}

.bookpagebody .nlist.noval li > a:hover,
.bookpagebody .nlist.noval li > a:focus-visible {
    border-color: rgba(184, 95, 66, 0.34);
    box-shadow: 0 18px 38px rgba(92, 66, 43, 0.1);
    transform: translateY(-3px);
    outline: none;
}

.bookpagebody .nlist.noval li .cover {
    position: relative;
    grid-row: 1 / 5;
    width: 86px;
    height: 116px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef1f6;
    box-shadow: 0 10px 22px rgba(92, 66, 43, 0.1);
}

.bookpagebody .nlist.noval li .imgbox,
.bookpagebody .nlist.noval li .imgbox img {
    width: 100%;
    height: 100%;
}

.bookpagebody .nlist.noval li .imgbox {
    position: relative;
    overflow: hidden;
}

.bookpagebody .nlist.noval li .imgbox img {
    display: block;
    object-fit: cover;
}

.bookpagebody .nlist.noval li .imgmask {
    display: none;
}

.bookpagebody .nlist.noval li .status {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 34px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(47, 38, 31, 0.78);
    color: #fffaf2;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bookpagebody .nlist.noval li .status em {
    display: block;
    font-style: normal;
    color: rgba(255, 250, 242, 0.78);
}

.bookpagebody .nlist.noval li .name {
    margin: 0;
    overflow: hidden;
    color: var(--plus-heading, #5f3b1f);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookpagebody .nlist.noval li .desc {
    display: -webkit-box;
    height: auto;
    margin: 0;
    overflow: hidden;
    color: var(--plus-muted, #746454);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bookpagebody .nlist.noval li .tag {
    min-width: 0;
    overflow: hidden;
    color: var(--plus-green, #7a8f45);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookpagebody .nlist.noval li .listdata {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.bookpagebody .nlist.noval li .listdata span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(184, 95, 66, 0.1);
    color: var(--plus-accent, #8a5a26);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.bookpagebody .nlist.noval li .listdata .score {
    background: rgba(183, 121, 31, 0.12);
}

.bookpagebody .nlist.noval li .listdata .score::before {
    content: "評分";
    margin-right: 4px;
    color: rgba(138, 90, 38, 0.72);
    font-size: 11px;
    font-weight: 800;
}

.bookpagebody .nlist.noval li .listdata .readCount {
    background: rgba(122, 143, 69, 0.12);
    color: var(--plus-green, #7a8f45);
}

.bookpagebody .nlist.noval li .listdata .readCount::before {
    content: "人氣";
    margin-right: 4px;
    color: rgba(122, 143, 69, 0.72);
    font-size: 11px;
    font-weight: 800;
}

.bookpagebody .footer {
    margin-top: 28px;
    padding: 18px 20px;
    border-top: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 249, 240, 0.92));
}

.bookpagebody .footerbox {
    width: min(880px, 100%);
    margin: 0 auto;
}

.bookpagebody .footerbox ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bookpagebody .footerbox li {
    min-width: 0;
}

.bookpagebody .footerbox a {
    min-height: 46px;
    display: inline-flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(172, 103, 43, 0.2);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.96);
    color: var(--plus-text, #2f261f);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(92, 66, 43, 0.06);
    transition: transform var(--plus-ease, 180ms ease), border-color var(--plus-ease, 180ms ease), box-shadow var(--plus-ease, 180ms ease), color var(--plus-ease, 180ms ease), background var(--plus-ease, 180ms ease);
}

.bookpagebody .footerbox a:hover,
.bookpagebody .footerbox a:focus-visible {
    border-color: rgba(184, 95, 66, 0.42);
    background: #fffaf2;
    color: var(--plus-accent, #8a5a26);
    box-shadow: 0 12px 26px rgba(92, 66, 43, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.bookpagebody .footerbox img,
.bookpagebody .footerbox svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    object-fit: contain;
}

.bookpagebody .footerbox img {
    opacity: 0.9;
    filter: brightness(0) saturate(100%) invert(36%) sepia(43%) saturate(690%) hue-rotate(351deg) brightness(91%) contrast(89%);
}

.bookpagebody .footerbox svg,
.bookpagebody .footerbox svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.bookpagebody .footerbox .prep a,
.bookpagebody .footerbox .nextp a {
    background: linear-gradient(135deg, rgba(184, 95, 66, 0.12), rgba(183, 121, 31, 0.12));
    color: var(--plus-accent, #8a5a26);
}

.bookpagebody .footerbox a[url="none"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .bookpagebody .linea {
        width: min(100% - 24px, 1080px);
        margin-top: 22px;
    }

    .bookpagebody .linea h3 {
        font-size: 20px;
    }

    .bookpagebody .nlist.noval {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bookpagebody .nlist.noval li > a {
        min-height: 0;
        grid-template-columns: 74px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
        padding: 12px;
        border-radius: 12px;
    }

    .bookpagebody .nlist.noval li .cover {
        position: relative;
        width: 74px;
        height: 101px;
        border-radius: 7px;
    }

    .bookpagebody .nlist.noval li .name {
        font-size: 16px;
        line-height: 1.28;
    }

    .bookpagebody .nlist.noval li .desc {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .bookpagebody .nlist.noval li .tag {
        margin-top: -1px;
        font-size: 11px;
        line-height: 1.3;
    }

    .bookpagebody .nlist.noval li .listdata {
        margin-top: -1px;
        gap: 4px;
    }

    .bookpagebody .nlist.noval li .listdata span {
        min-height: 22px;
        padding: 0 7px;
        font-size: 11px;
    }

    .bookpagebody .nlist.noval li .status {
        left: 7px;
        right: 7px;
        bottom: 7px;
        z-index: 2;
        min-height: 34px;
        padding: 3px 7px;
        border-radius: 999px;
        background: rgba(78, 68, 60, 0.82);
        font-size: 11px;
        box-shadow: 0 6px 14px rgba(92, 66, 43, 0.12);
    }

    .bookpagebody .footer {
        margin-top: 22px;
        padding: 14px 10px;
    }

    .bookpagebody .footerbox ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .bookpagebody .footerbox a {
        min-height: 48px;
        flex-direction: column;
        gap: 5px;
        padding: 7px 4px;
        font-size: 12px;
        border-radius: 14px;
    }

    .bookpagebody .footerbox img,
    .bookpagebody .footerbox svg {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
}

@media (max-width: 380px) {
    .bookpagebody .footerbox a {
        font-size: 11px;
    }
}

#chapterReaderApp .chapterReaderHeader {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 8px 22px rgba(92, 66, 43, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#chapterReaderApp .chapterReaderHeader .headerInner {
    width: min(1180px, calc(100% - 24px));
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

#chapterReaderApp .chapterReaderHeader .headerLeft {
    min-width: 0;
}

#chapterReaderApp .chapterReaderHeader .headerLeft h2 {
    max-width: 52vw;
    margin: 0;
    overflow: hidden;
    color: var(--plus-text, #2f261f);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chapterReaderApp .chapterReaderHeader .headerBtn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    border-radius: 999px;
    background: rgba(255, 248, 237, 0.88);
    color: var(--plus-muted, #746454);
    font-size: 13px;
    font-weight: 700;
}

#chapterReaderApp .chapterReaderHeader .headerBtn img {
    width: 14px;
    height: 12px;
    object-fit: contain;
}

#chapterReaderApp .topTabBar.show,
#chapterReaderApp .topTabBar {
    top: 0;
}

#chapterReaderApp .topTabBar {
    z-index: 92;
    width: 100%;
    min-height: 56px;
    height: auto;
    display: grid;
    grid-template-columns: 42px minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 max(16px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: rgba(255, 253, 248, 0.94);
    color: var(--plus-text, #2f261f);
    box-shadow: 0 8px 22px rgba(92, 66, 43, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#chapterReaderApp .topTabBar > img {
    width: 34px;
    height: 34px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(184, 95, 66, 0.08);
    cursor: pointer;
}

#chapterReaderApp .topTabBarText {
    min-width: 0;
    overflow: hidden;
    color: var(--plus-muted, #746454);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#chapterReaderApp .topTabBarText:first-of-type {
    color: var(--plus-text, #2f261f);
    font-weight: 800;
}

#chapterReaderApp .topTabBar > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

#chapterReaderApp .topTabBar .menuTaBarItem {
    width: auto;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--plus-muted, #746454);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

#chapterReaderApp .topTabBar .menuTaBarItem:hover {
    background: rgba(184, 95, 66, 0.09);
    color: var(--plus-coral, #b85f42);
}

#chapterReaderApp .topTabBar .menuTaBarItem img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.readhead {
    position: sticky;
    top: 0;
    z-index: 92;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 8px 22px rgba(92, 66, 43, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.readhead .booknav {
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    overflow: hidden;
    color: var(--plus-muted, #746454);
    font-size: 13px;
    white-space: nowrap;
}

.readhead .booknav b {
    color: var(--plus-text, #2f261f);
    font-weight: 800;
}

.readhead .booknav span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.readhead .booknav span + span::before {
    content: "/";
    margin-right: 8px;
    color: rgba(92, 66, 43, 0.3);
}

.readhead .booknav a {
    color: inherit;
}

.readhead .booknav a:hover {
    color: var(--plus-coral, #b85f42);
}

#book_info {
    z-index: 91 !important;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid var(--plus-line, rgba(92, 66, 43, 0.13));
    background: rgba(255, 253, 248, 0.94);
    color: var(--plus-text, #2f261f);
    box-shadow: 0 8px 22px rgba(92, 66, 43, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#book_info img {
    width: 34px;
    height: 34px;
    padding: 9px;
    border-radius: 999px;
    background: rgba(184, 95, 66, 0.08);
    cursor: pointer;
}

#book_info div {
    min-width: 0;
    overflow: hidden;
    color: var(--plus-muted, #746454);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#book_info div:nth-of-type(1) {
    color: var(--plus-text, #2f261f);
    font-weight: 800;
}

.chapter-mobile-actions {
    display: none;
}

.bookpagebody .bookScrollTop.pc-only {
    position: fixed;
    right: 34px;
    bottom: 110px;
    z-index: 90;
    width: 46px;
    height: 46px;
    cursor: pointer;
    filter: drop-shadow(0 10px 22px rgba(92, 66, 43, 0.2));
}

.audio-player-floating {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .audio-player-floating {
        right: 28px;
        bottom: 30px;
    }
}

.chapterVipListenFloat {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 58px;
    height: 58px;
    min-width: 58px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: linear-gradient(135deg, #f8b15d 0%, #d87333 55%, #a94b22 100%);
    box-shadow: 0 12px 24px rgba(173, 83, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    pointer-events: auto;
}

.chapterVipListenFloat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(173, 83, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.chapterVipListenFloat img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    pointer-events: none;
    margin: 0;
}

@media (min-width: 1025px) {
    #chapterReaderApp .topTabBar {
        max-width: 1180px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 14px 14px;
    }

    #chapterReaderApp .contains {
        width: min(900px, calc(100% - 64px));
        padding-top: 96px;
        padding-bottom: 96px;
    }

    #chapterReaderApp .contains h1 {
        margin-bottom: 28px;
        text-align: center;
        font-size: 30px;
        line-height: 1.35;
    }

    #chapterReaderApp .contains .detail {
        font-size: 18px;
        line-height: 150%;
    }

    #chapterReaderApp .configBar {
        width: min(900px, calc(100% - 64px));
        left: 50%;
        transform: translateX(-50%);
        border-radius: 18px 18px 0 0;
        overflow: hidden;
    }

    #chapterReaderApp .directoryAction {
        width: min(520px, calc(100% - 48px));
        left: 50%;
        transform: translateX(-50%);
        border-radius: 18px;
    }

    .chapterVipListenFloat {
        right: 34px;
        bottom: 34px;
    }
}

@media (max-width: 1024px) {
    .bookpagebody .bookScrollTop.pc-only {
        display: none !important;
    }
}

@media (max-width: 640px) {
    #chapterReaderApp .topTabBar {
        min-height: 52px;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 0 10px;
    }

    #chapterReaderApp .topTabBarText:nth-of-type(2) {
        display: none;
    }

    #chapterReaderApp .topTabBar > div:last-child {
        gap: 0;
    }

    #chapterReaderApp .topTabBar .menuTaBarItem {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    #chapterReaderApp .chapterReaderHeader .headerInner {
        width: calc(100% - 20px);
    }

    .readhead {
        display: none;
    }

    #book_info div:nth-of-type(3) {
        display: none;
    }

    #book_info {
        min-height: 64px;
        gap: 8px;
        padding: 0 10px 0 12px;
    }

    #book_info > img {
        width: 34px;
        height: 34px;
        min-width: 34px;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        display: block;
        padding: 8px;
        flex: 0 0 34px;
        object-fit: contain;
        border-radius: 50%;
        background: rgba(92, 66, 43, 0.07);
        opacity: 0.82;
    }

    #book_info .chapter-mobile-title-sep,
    #book_info .chapter-mobile-title-piece:nth-of-type(3) {
        display: none;
    }

    #book_info .chapter-mobile-title-piece:nth-of-type(1) {
        display: block;
        flex: 1;
        min-width: 0;
        color: var(--plus-text, #2f261f);
        font-size: 15px;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    #book_info .chapter-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        min-width: 0;
        flex: 0 0 auto;
        margin-left: auto;
        overflow: visible;
    }

    #book_info .chapter-mobile-actions a {
        min-width: 38px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--plus-accent, #8a5a26);
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        box-shadow: none;
    }

    #book_info .chapter-mobile-action-icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--plus-accent, #8a5a26);
    }

    #book_info .chapter-mobile-actions svg {
        width: 18px;
        height: 18px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    #chapterReaderApp .contains {
        width: 100%;
    }

    .audio-player-floating {
        right: 14px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        z-index: 85;
        width: 50px;
        height: 50px;
    }

    .chapterVipListenFloat {
        right: auto;
        bottom: auto;
        z-index: 1;
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-width: 1px;
        box-shadow: 0 10px 20px rgba(173, 83, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }

    .chapterVipListenFloat img {
        width: 28px;
        height: 28px;
        margin: 0;
    }

    .bookpagebody .readbookbox,
    .bookpagebody .novelread {
        width: 100%;
    }

    .bookpagebody .novelread {
        padding: 20px 18px 112px;
    }

    .bookpagebody .novelread h2 {
        margin-bottom: 22px;
        font-size: 23px;
        text-align: left;
        line-height: 1.36;
        font-weight: 900;
    }

    .bookpagebody .novelread h2 em {
        display: none;
    }

    .bookpagebody .novalct {
        position: fixed;
        top: auto;
        right: 14px;
        bottom: calc(148px + env(safe-area-inset-bottom, 0px));
        z-index: 86;
        display: block;
        width: auto;
        pointer-events: auto;
        margin: 0;
        transform: none;
    }

    .bookpagebody .novalct ul {
        display: grid;
        gap: 6px;
        width: auto;
        max-width: none;
        overflow: visible;
        padding: 6px;
        border-radius: 999px;
        box-shadow: 0 14px 34px rgba(92, 66, 43, 0.16);
        pointer-events: auto;
    }

    .bookpagebody .novalct li {
        width: 36px;
        height: 36px;
    }

    #chapterReaderApp .chapterShareBar {
        margin: 30px 0 24px;
    }
}

body.black {
    --plus-bg: #120e0a;
    --plus-text: #f7ede0;
    --plus-muted: #cfb79b;
    --plus-heading: #fff2dd;
    --plus-line: rgba(255, 214, 166, 0.14);
    --plus-coral: #f39a57;
    --plus-accent: #dd8533;
    --plus-gold: #d8a44a;
    --plus-green: #b2c174;
    background: #120e0a;
    color: #f7ede0;
}

body.black .bookpagebody {
    background:
            linear-gradient(180deg, rgba(29, 22, 16, 0.98), rgba(18, 14, 10, 1)),
            var(--plus-bg, #120e0a);
    color: var(--plus-text, #f7ede0);
}

body.black .bookpagebody .readbookbox,
body.black .bookpagebody .novelread,
body.black .bookpagebody .linea {
    color: var(--plus-text, #f7ede0);
}

body.black .bookpagebody .novelread h2,
body.black .bookpagebody .linea h3,
body.black .bookpagebody .chapterContent,
body.black .bookpagebody .novelcontent {
    color: var(--plus-text, #f7ede0);
}

body.black .bookpagebody .novelread h2 em,
body.black .bookpagebody .chapterContent a,
body.black .bookpagebody .novelcontent a {
    color: #ffbb72;
}

body.black .bookpagebody .novalct ul,
body.black .bookpagebody .footer,
body.black .bookpagebody .footerbox a,
body.black .bookpagebody .nlist.noval li > a {
    background: rgba(27, 20, 14, 0.92);
    border-color: rgba(255, 214, 166, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

body.black .bookpagebody .novalct li {
    color: var(--plus-muted, #cfb79b);
}

body.black .bookpagebody .novalct li:hover {
    background: rgba(243, 154, 87, 0.14);
    color: #ffd2a2;
}

body.black .bookpagebody .linea h3::before {
    background: linear-gradient(180deg, #f39a57, #d8a44a);
}

body.black .bookpagebody .nlist.noval li > a:hover,
body.black .bookpagebody .nlist.noval li > a:focus-visible,
body.black .bookpagebody .footerbox a:hover,
body.black .bookpagebody .footerbox a:focus-visible {
    border-color: rgba(255, 179, 102, 0.42);
    background: rgba(38, 27, 18, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

body.black .bookpagebody .nlist.noval li .cover {
    background: #241910;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.black .bookpagebody .nlist.noval li .status {
    background: rgba(13, 11, 10, 0.82);
    color: #ffe9c8;
}

body.black .bookpagebody .nlist.noval li .status em,
body.black .bookpagebody .nlist.noval li .desc,
body.black .bookpagebody .nlist.noval li .tag {
    color: var(--plus-muted, #cfb79b);
}

body.black .bookpagebody .nlist.noval li .listdata span {
    background: rgba(243, 154, 87, 0.14);
    color: #ffd2a2;
}

body.black .bookpagebody .nlist.noval li .listdata .score {
    background: rgba(216, 164, 74, 0.14);
}

body.black .bookpagebody .nlist.noval li .listdata .readCount {
    background: rgba(178, 193, 116, 0.12);
    color: #cde09a;
}

body.black .bookpagebody .nextbox a,
body.black .bookpagebody .footerbox .prep a,
body.black .bookpagebody .footerbox .nextp a {
    background: linear-gradient(135deg, rgba(243, 154, 87, 0.2), rgba(221, 133, 51, 0.2));
    color: #ffdfbc;
}

body.black .bookpagebody .footerbox img {
    filter: brightness(0) saturate(100%) invert(89%) sepia(18%) saturate(339%) hue-rotate(341deg) brightness(103%) contrast(95%);
}

body.black .bookpagebody .footerbox svg,
body.black .bookpagebody .footerbox svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

body.black .bookpagebody .footerbox a[url="none"] {
    opacity: 0.42;
}

body.black .readhead,
body.black #book_info,
body.black #chapterReaderApp .chapterReaderHeader,
body.black #chapterReaderApp .topTabBar,
body.black #chapterReaderApp .configBar {
    background: rgba(22, 17, 12, 0.94);
    border-color: rgba(255, 214, 166, 0.12);
    color: var(--plus-text, #f7ede0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

body.black .readhead .booknav,
body.black #book_info div,
body.black #chapterReaderApp .chapterReaderHeader .headerLeft h2,
body.black #chapterReaderApp .topTabBarText,
body.black #chapterReaderApp .chapterReaderHeader .headerBtn,
body.black #chapterReaderApp .topTabBar .menuTaBarItem {
    color: var(--plus-muted, #cfb79b);
}

body.black .readhead .booknav b,
body.black #book_info div:nth-of-type(1),
body.black #chapterReaderApp .topTabBarText:first-of-type {
    color: var(--plus-text, #f7ede0);
}

body.black .readhead .booknav a:hover,
body.black #chapterReaderApp .topTabBar .menuTaBarItem:hover {
    color: #ffbb72;
}

body.black #chapterReaderApp .chapterReaderHeader .headerBtn,
body.black #chapterReaderApp .topTabBar > img,
body.black #book_info img {
    background: rgba(255, 194, 123, 0.12);
}

body.black #chapterReaderApp .chapterReaderHeader .headerBtn img,
body.black #chapterReaderApp .topTabBar > img,
body.black #book_info img {
    filter: brightness(0) invert(1) contrast(1.05);
}

body.black #chapterReaderApp .contains,
body.black #chapterReaderApp .contains .detail,
body.black #chapterReaderApp .contains h1,
body.black #chapterReaderApp .mContent,
body.black #chapterReaderApp .readingText {
    color: var(--plus-text, #f7ede0);
}

body.black #chapterReaderApp .contains .detail a,
body.black #chapterReaderApp .mContent a,
body.black #chapterReaderApp .readingText a {
    color: #ffbb72;
}

body.black #chapterReaderApp .chapterVipListenFloat {
    background: linear-gradient(135deg, #f39a57, #8f571e);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

body.black .laypopchap,
body.black .laypopchap .layui-layer-content {
    background: #17110c !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56) !important;
}

@media (min-width: 641px) {
    #book_info,
    .h5-only-bookname {
        display: none !important;
    }
}


/* 助力成功（打赏成功）弹窗特效 */
#chapterReaderApp .giftEffectLayer {
    position: fixed;
    inset: 0;
    z-index: 1320;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#chapterReaderApp .giftEffectMask {
    position: fixed;
    inset: 0;
    z-index: 1319;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    animation: chapterGiftDialogMaskIn 0.22s ease both;
}

#chapterReaderApp .giftEffectMask.closing,
#chapterReaderApp .giftEffectLayer.closing {
    animation: chapterGiftDialogMaskOut 0.22s ease both;
}

#chapterReaderApp .giftEffectPanel {
    width: 12.9375rem;
    min-height: 21.1875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

#chapterReaderApp .giftEffectBurst {
    position: relative;
    width: 12.0625rem;
    height: 12.0625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chapterGiftEffectBurstIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#chapterReaderApp .giftEffectCountBadge {
    position: absolute;
    top: 0.0625rem;
    right: -0.0625rem;
    z-index: 3;
    color: #ffa668;
    font-size: 1.625rem;
    line-height: 2.1875rem;
    font-weight: 400;
}

#chapterReaderApp .giftEffectImage {
    position: relative;
    z-index: 2;
    width: 12.0625rem;
    height: 12.0625rem;
    object-fit: contain;
    filter: drop-shadow(0 0.625rem 1.25rem rgba(0, 0, 0, 0.18));
}

#chapterReaderApp .giftEffectRing {
    position: absolute;
    inset: 1.5625rem;
    border-radius: 50%;
    border: 0.125rem solid rgba(255, 255, 255, 0.4);
}

#chapterReaderApp .giftEffectRing-1 {
    animation: chapterGiftEffectRing 1.15s ease-out infinite;
}

#chapterReaderApp .giftEffectRing-2 {
    inset: 0.5625rem;
    border-color: rgba(255, 189, 127, 0.42);
    animation: chapterGiftEffectRing 1.15s ease-out 0.22s infinite;
}

#chapterReaderApp .giftEffectSpark {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff7cf 0%, #ffb35f 100%);
    box-shadow: 0 0 0.5rem rgba(255, 202, 134, 0.75);
}

#chapterReaderApp .giftEffectSpark-1 {
    top: 1.5rem;
    right: 2.125rem;
}

#chapterReaderApp .giftEffectSpark-2 {
    bottom: 1.8125rem;
    left: 1.875rem;
}

#chapterReaderApp .giftEffectSpark-3 {
    top: 3.25rem;
    left: 1.125rem;
}

#chapterReaderApp .giftEffectMessage {
    margin-top: 0.5rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3125rem;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.18);
}

#chapterReaderApp .giftEffectConfirmBtn {
    margin-top: 2.375rem;
    width: 7.875rem;
    height: 2.75rem;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(180deg, #ff7d2c 0%, #ff6b22 100%);
    color: #fff;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    font-weight: 400;
    box-shadow: 0 0.5rem 1.25rem rgba(255, 115, 39, 0.22);
}

@keyframes chapterGiftDialogMaskIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes chapterGiftDialogMaskOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes chapterGiftEffectBurstIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 1.5rem, 0) scale(0.72);
    }
    45% {
        opacity: 1;
        transform: translate3d(0, -0.25rem, 0) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes chapterGiftEffectRing {
    0% {
        opacity: 0.8;
        transform: scale(0.76);
    }
    100% {
        opacity: 0;
        transform: scale(1.14);
    }
}
