.comic_chapter_box {
    max-width: 820px;
    margin: auto;
}

.comic_up_option_box {
    position: fixed;
    width: 100%;
    max-width: 1050px;
    background: #363636;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 999;
    opacity: 0.95;
}

.comic_up_option_box .main_box {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    text-align: center;
    margin: 0 auto;
    color: #6e6e6e;
    align-items: center;
    height: 36px;
}

.comic_up_option_box .main_box .back_box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comic_up_option_box .main_box .back_box a {
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.comic_up_option_box .main_box .back_box a:nth-child(1) img {
    width: 1.2rem;
    height: 1.2rem;
}

.comic_up_option_box .main_box .back_box a:nth-child(2) img {
    width: 1.1rem;
    height: 1.1rem;
}

.comic_up_option_box .main_box .title_box {
    max-width: 60%;
}

.comic_up_option_box .main_box .title_box h1,
h2 {
    font-size: 15px;
    font-weight: 700;
    color: #ffc700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic_up_option_box .main_box .option_box {
    text-align: right;
}

.comic_up_option_box .main_box .option_box img:first-child {
    margin-right: 0.8rem;
}

.comic_up_option_box .main_box .option_box img {
    width: 1.2rem;
}

.comic_down_option_box {
    position: fixed;
    width: 100%;
    max-width: 1050px;
    height: 5.6rem;
    background: #363636;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 999;
    opacity: 0.95;
}

.comic_down_option_box .scroll_box {
    height: 2rem;
    position: relative;
    padding: 0;
    overscroll-behavior: contain;
    -ms-scroll-chaining: contain;
    text-align: center;
}

.comic_down_option_box .scroll_box input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    margin-top: 1rem;
    direction: rtl;
    border-radius: 6px;
    background-color: #ffffff;
    width: 80%;
}

.comic_down_option_box .scroll_box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffc700;
    transition: 0.2s;
}

.comic_down_option_box
.scroll_box
input[type="range"]::-webkit-slider-thumb:active,
.comic_down_option_box
.scroll_box
input[type="range"]::-webkit-slider-thumb:hover {
    width: 26px;
    height: 26px;
}

.comic_down_option_box .scroll_box input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffc700;
    transition: 0.2s;
}

.comic_down_option_box .scroll_box input[type="range"]::-moz-range-thumb:hover,
input[type="range"]::-moz-range-thumb:active {
    width: 26px;
    height: 26px;
}

.comic_down_option_box .scroll_box input[type="range"]::-moz-focus-outer {
    border: none; /* 去除 focus 時候的外框虛線 */
}

.comic_down_option_box .catalog_box {
    position: fixed;
    width: 100%;
    max-width: 1050px;
    background: #666;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 3.6rem;
    z-index: 99;
    max-height: 68%;
}

.comic_down_option_box .catalog_box::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    bottom: -5px;
    transform: rotate(45deg);
    background: #666;
    left: 0;
    right: 0;
    margin: auto;
}

.comic_down_option_box .catalog_box .catalog_title_box {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 1.2rem;
}

.comic_down_option_box .catalog_box .catalog_title_box .sort_box {
    line-height: 1rem;
    font-size: 14px;
    color: #e8e8e9;
}

.comic_down_option_box .catalog_box .catalog_title_box .sort_box img {
    max-width: 1rem;
    vertical-align: sub;
}

.comic_down_option_box .catalog_box .catalog_title_box .close_box img {
    max-width: 1rem;
    vertical-align: sub;
}

.comic_down_option_box .catalog_box .chapter_item_box {
    display: flex;
    flex-flow: wrap;
    padding-left: 2.5%;
    color: #6e6e6e;
    max-height: 23rem;
    overflow: hidden;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-top: 0.8rem;
}

.comic_down_option_box .catalog_box .chapter_item {
    color: #fff;
    border: #f1f1f1 solid 1px;
    font-size: 14px;
    border-radius: 6px;
    margin-left: 3%;
    margin-bottom: 0.5rem;
    width: 15%;
    text-align: center;
    height: 1.6rem;
    line-height: 1.6rem;
    cursor: pointer;
}

.comic_down_option_box .catalog_box .current_item {
    color: #000;
    background: #ffc700;
    border: #000 solid 1px;
    font-size: 14px;
    border-radius: 6px;
    margin-left: 3%;
    margin-bottom: 0.5rem;
    width: 15%;
    text-align: center;
    height: 1.6rem;
    line-height: 1.6rem;
    cursor: pointer;
}

.comic_down_option_box .catalog_box .lock_icon {
    vertical-align: sub;
    max-width: 1rem;
}

.comic_down_option_box .main_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0.8rem;
    padding: 1rem 0;
    text-align: center;
    line-height: 1.6rem;
    color: #6e6e6e;
}

.comic_down_option_box .main_box .chapter_box {
    display: flex;
    align-items: center;
}

.comic_down_option_box .main_box .scroll_option_box {
    text-align: left;
    width: 60px;
}

.comic_down_option_box .main_box .scroll_option_box img {
    width: 1rem;
    vertical-align: middle;
}

.comic_down_option_box .main_box .chapter_box span, a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.comic_down_option_box .main_box .chapter_box img {
    width: 1.8rem;
    vertical-align: middle;
}

.comic_down_option_box .main_box .catalog_option_box {
    margin: 0 auto;
}

.comic_down_option_box .main_box .catalog_option_box img {
    width: 1.4rem;
    vertical-align: middle;
}

.comic_down_option_box .main_box .view_box {
    font-size: 12px;
    color: #adadad;
    width: 60px;
    text-align: right;
}

.comic_down_option_box .main_box .view_box span {
    color: #fff;
}

.comic_chapter_box .content {
    margin: 0 auto;
    text-align: center;
    padding-bottom: 5.6rem;
}

.comic_chapter_box .content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: url('/static/image/loading.gif') no-repeat center #fff;
    background-size: 30%;
    display: block;
}

.comic_chapter_box .content canvas {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.comic_chapter_box .content .error {
    background: #fff;
    width: 120px;
    margin: auto;
    min-height: 320px;
}

/* 广告样式 */
#adImage {
    width: 100%;
    height: auto;
    position: relative;
}

.ad_box span {
    position: absolute;
    display: block;
    left: 0.8rem;
    top: 0.8rem;
    background: #2A2E42;
    color: #9191A8;
    font-size: 10px;
    z-index: 999;
    padding: 0.3rem 0.4rem;
    border-radius: 8px;
    opacity: 0.85;
}

.ad_box img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
}


/* 读完样式 */
#lastImage {
    width: 100%;
    height: 100vh;
    background: #444444;
    position: relative;
    margin: 0;
    padding: 0;
}

.read_finish_box {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.read_finish_box .finish_icon {
    width: 15rem !important;
    height: auto !important;
    background: none !important;
}

.read_finish_box .txt {
    color: #fff;
    font-size: 14px;
    margin-top: -1rem;
    line-height: 1.5rem;
}

.read_finish_box .mark_finish_btn {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    background: #fabe24;
    border-radius: 12px;
    padding: 1rem 0;
    width: 60%;
    margin: 2rem auto;
    cursor: pointer;
}

.read_finish_box .finished {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: #dedede;
    border-radius: 12px;
    padding: 1rem 0;
    width: 60%;
    margin: 2rem auto;
}

.swiper {
    direction: rtl;
}

.swiper .swiper-wrapper {
    height: -webkit-fill-available;
}

.swiper .swiper-wrapper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: -webkit-fill-available;
}

.swiper .swiper-wrapper .finish {
    height: 100vh;
    background: #444444;
}

.swiper .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    background: url('/static/image/loading.gif') no-repeat center #fff;
    background-size: 30%;
}

.swiper .swiper-wrapper .swiper-slide canvas {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

.balance_insufficient_dialog_box {
    width: 70%;
    max-width: 280px;
    height: auto;
    position: fixed;
    text-align: center;
    background-size: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: #333;
    border-radius: 12px;
    z-index: 9999;
}

.balance_insufficient_dialog_box .content {
    line-height: 2.2rem;
    background: #fff;
    border-radius: 12px;
}

.balance_insufficient_dialog_box .content img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.balance_insufficient_dialog_box .content .btn_box {
    font-size: 14px;
    color: #fff;
    margin: 0 auto;
    width: 80%;
    height: 6.8rem;
}

.balance_insufficient_dialog_box .content .btn_box .coin_btn {
    cursor: pointer;
    line-height: 2.5rem;
    font-weight: 700;
    color: #000;
    background: #fff;
    border: #333 solid 1px;
    border-radius: 12px;
    display: block;
    width: 100%;
    font-size: 13px;
    text-align: center;
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
}

.balance_insufficient_dialog_box .content .btn_box .coin_btn img {
    vertical-align: middle;
    width: 18px;
    padding: 0 0.1rem;
    margin-top: -0.1rem;
}

.balance_insufficient_dialog_box .content .btn_box .vip_btn {
    cursor: pointer;
    line-height: 2.5rem;
    font-weight: 700;
    color: #000;
    background: #fedd0f;
    border-radius: 12px;
    display: block;
    width: 100%;
    font-size: 13px;
    text-align: center;
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
}

.balance_insufficient_dialog_box .close_box {
    margin-top: 8%;
}

.balance_insufficient_dialog_box .close_box img {
    width: 2rem;
}


.chapter_pay_dialog_box {
    width: 84%;
    max-width: 330px;
    height: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 9999;
    border-radius: 6px;
    color: #878787;
    font-size: 13px;
    box-shadow: 1px 2px 18px #999;
}

.chapter_pay_dialog_box .close {
    float: right;
    margin-right: 1rem;
    margin-top: 0.8rem;
}

.chapter_pay_dialog_box .close img {
    max-width: 1rem;
    padding-left: 0.8rem;
}

.chapter_pay_dialog_box .chapter_pay_main_box {
    padding: 1.2rem;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul {
    line-height: 2.5rem;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul li {
    width: 100%;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul .title {
    line-height: 1.5rem;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul .title span {
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul .btn_box {
    margin-top: 0.6rem;
    border-radius: 12px;
    border: #333 solid 1px;
    line-height: 2.5rem;
    text-align: center;
    color: #333;
    cursor: pointer;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul .btn_box button {
    border: none;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul .btn_box img {
    vertical-align: bottom;
    width: 18px;
    padding: 0 0.1rem;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul .btn_box span {
    color: #333;
    cursor: pointer;
    text-decoration: none;
}

.chapter_pay_dialog_box .chapter_pay_main_box ul li .vip_btn {
    margin-top: 0.6rem;
    border-radius: 12px;
    background: #ffd119;
    line-height: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #000;
    font-weight: 700;
    cursor: pointer;
}


.read_setting_box {
    width: 70%;
    max-width: 280px;
    height: auto;
    position: fixed;
    text-align: center;
    background-size: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: #333;
    border-radius: 12px;
    z-index: 9999;
}

.read_setting_box .setting_content {
    padding-top: 1rem;
    line-height: 2.4rem;
    background: #fff;
    border-radius: 12px;
}

.read_setting_box .setting_content .form_box {
    text-align: left;
    width: 80%;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.read_setting_box .setting_content .btn_box {
    font-size: 14px;
    color: #fff;
    margin: 0 auto;
    width: 80%;
    height: 5rem;
}

.read_setting_box .setting_content .btn_box .comfirm_btn {
    cursor: pointer;
    line-height: 2.5rem;
    font-weight: 700;
    color: #000;
    background: #ffd119;
    border-radius: 12px;
    display: block;
    width: 100%;
    font-size: 12px;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
}

.read_setting_box .close_box {
    margin-top: 8%;
}

.read_setting_box .close_box img {
    width: 2rem;
}

.read_tap_box {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: #333;
    opacity: 0.9;
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 100%;
    line-height: 1rem;
    margin-top: 2rem;
    text-align: center;
    z-index: 999;
}

.read_tap_box img {
    width: 1.6rem;
}

.read_tap_box .tap_arrow {
    margin: 1rem 0 0.2rem 0;
}

.read_tap_box span {
    color: #fff;
    font-size: 12px;
    display: block;
}

.read_tap_box .tap_txt {
    margin: 1.4rem 0 0.2rem 0;
}

.read_tap_box .loading_txt {
    margin: 2rem 0 0 0;
}


.continue_read_box {
    width: 70%;
    max-width: 280px;
    height: auto;
    position: fixed;
    text-align: center;
    background-size: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: #333;
    border-radius: 12px;
    z-index: 9999;
}

.continue_read_box .content {
    padding-top: 2rem;
    line-height: 2.2rem;
    background: #fff;
    border-radius: 12px;
}

.continue_read_box .content .btn_box {
    font-size: 14px;
    color: #fff;
    margin: 0 auto;
    width: 80%;
    height: 5rem;
}

.continue_read_box .content .btn_box .comfirm_btn {
    cursor: pointer;
    line-height: 3rem;
    font-weight: 700;
    color: #000;
    background: #fedd0f;
    border-radius: 6px;
    display: block;
    width: 100%;
    font-size: 15px;
    text-align: center;
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
}

.continue_read_box .close_box {
    margin-top: 8%;
}

.continue_read_box .close_box img {
    width: 2rem;
}

.limit_code_box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    overflow: hidden;
    z-index: 999;
}

.free_limit_code_box {
    width: 82%;
    max-width: 340px;
    height: 19.2rem;
    background: #fff;
    z-index: 9999;
    border-radius: 6px;
    text-align: center;
    box-shadow: 1px 2px 18px #0c0b19;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.free_limit_code_box .main_box {
    margin-top: 2rem;
    line-height: 1.2rem;
}

.free_limit_code_box .main_box .close_box {
    margin-top: -1.7rem;
    padding: 0.5rem;
    position: absolute;
    right: 0;
}

.free_limit_code_box .main_box .close_box img {
    width: 1rem;
    vertical-align: text-bottom;
    padding-right: 0.2rem;
}

.free_limit_code_box .main_box .logo_box img {
    width: 10rem;
}

.free_limit_code_box .main_box .form_box {
    line-height: 2rem;
    padding: 0 1.2rem 1.2rem 1.2rem;
    font-size: 9pt;
}

.free_limit_code_box .main_box .form_box .form_title {
    text-align: center;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
}

.free_limit_code_box .main_box .form_box .form_note {
    line-height: 1.5rem;
    text-align: justify;
    margin: 1.5rem 0;
}

.free_limit_code_box .main_box .form_box .level_note_box {
    text-align: right;
}

.free_limit_code_box .main_box .form_box .level_note_box a{
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
}


.free_limit_code_box .main_box .form_box .button_box {
    color: #333;
}

.free_limit_code_box .main_box .form_box .button_box .free_limit_code_btn {
    cursor: pointer;
    line-height: 3rem;
    font-weight: 700;
    color: #000;
    background: #fedd0f;
    border-radius: 6px;
    display: block;
    width: 100%;
    font-size: 15px;
    text-align: center;
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
    border: none;
}

@media (min-width: 1024px) {
    .swiper .swiper-wrapper {
        height: 100vh;
    }
}

body {
    margin: 0;
    background: #fff;
}

.comic_down_option_box .main_box .chapter_box a,
.comic_down_option_box .main_box .chapter_box span {
    color: #fff;
}

.comic_chapter_box .content img,
.comic_chapter_box .content video {
    width: 100%;
    height: auto;
    display: block;
    background: #111;
}

.comic_chapter_box.page_mode .content {
    position: relative;
    height: 100vh;
    overflow: hidden;
    touch-action: none;
}

.chapter_video_entry {
    box-sizing: border-box;
    min-height: 46vh;
    background: #161616;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chapter_video_card {
    text-align: center;
    padding: 24px;
}

.chapter_video_card b {
    display: block;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.chapter_video_card span {
    display: block;
    color: #ddd;
    font-size: 14px;
}

.chapter_video_layer {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .86);
    align-items: center;
    justify-content: center;
}

.chapter_video_layer.on {
    display: flex;
}

.chapter_video_panel {
    position: relative;
    width: min(960px, 100%);
    padding: 48px 16px 16px;
    box-sizing: border-box;
}

.chapter_video_panel video {
    width: 100%;
    max-height: 72vh;
    background: #000;
}

.chapter_video_close {
    position: absolute;
    right: 16px;
    top: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.chapter_video_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-top: 12px;
}

.chapter_video_bar button {
    border: 0;
    background: #333;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
}

.comic_chapter_box.page_mode .content .chapter_page {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    object-fit: contain;
    touch-action: none;
}

.comic_chapter_box.page_mode .content .chapter_page.on,
.comic_chapter_box.page_mode .content .chapter_page.slide {
    display: block;
}

.comic_chapter_box.page_mode .content .chapter_video_entry.on,
.comic_chapter_box.page_mode .content .chapter_video_entry.slide {
    display: flex;
}

.empty_read {
    padding: 24px;
    text-align: center;
    color: #888;
}