:root {
    --front-desktop-intro-bg: #343232;
    --front-mobile-intro-bg: #202020;
}

body.theme-dark #masthead.no-banner-image {
    background-color: var(--front-desktop-intro-bg) !important;
}

.wrap {
    width: 6.25rem;
    height: 5.8125rem;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    overflow: hidden;
    background: url('../image/icon-hot.svg') top right / 6.25rem 5.8125rem no-repeat;
    opacity: 1;
    pointer-events: none;
}

.wraps {
    display: none;
}

body.card #index .advertise,
body.card #archive .advertise {
    padding: 2rem 0 1.25rem;
}

.article-body-content p:has(> a.article-inner-link) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    text-align: center !important;
}

.article-body-content .article-inner-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.5rem !important;
    padding: 0 1.625rem !important;
    margin: 1rem 0 0 !important;
    border: 1px solid #fff !important;
    border-radius: 100rem !important;
    background: transparent !important;
    color: #fff !important;
    font-size: .875rem !important;
    line-height: 1.25rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

.article-body-content .article-inner-link:after {
    display: none !important;
}

@media screen and (min-width: 40.0625rem) {
    .article-body-content .article-inner-link {
        min-height: 4rem !important;
        padding: 0 2.875rem !important;
        margin: 1.25rem 0 0 !important;
        font-size: 1.25rem !important;
        line-height: 1.3125rem !important;
        white-space: nowrap !important;
    }
}

.search-empty-result {
    width: 100%;
    margin: 2.5rem 0 2rem;
}

.search-empty-result .post-title.no-content {
    margin: 0;
    color: #aaa;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 300;
    text-align: center;
}

#backtop {
    bottom: 7.375rem;
}

body.use-navbar.no-banner #wrap {
    padding-top: 0;
}

@media (min-width: 768px) {
    body.use-navbar.no-banner #wrap {
        padding-top: 4rem;
    }
}

#navbar {
    box-shadow: none;
}

@media (max-width: 767px) {
    body[data-page_key="article_detail"].use-navbar.no-banner #wrap {
        padding-top: var(--van-tabbar-height);
    }

    .search-empty-result {
        margin: 1.75rem 0 1.25rem;
    }

    .search-empty-result .post-title.no-content {
        font-size: 1.5rem;
    }

    body.theme-dark #masthead.no-banner-image {
        background-color: var(--front-mobile-intro-bg) !important;
    }

    body.use-navbar #toggle-mobile {
        display: flex;
        align-items: center;
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
        height: var(--van-tabbar-height);
        box-sizing: border-box;
        z-index: 99998;
    }

    body.card #index,
    body.card #archive {
        margin-top: 0;
        padding: 1.5rem 3rem 3.5rem !important;
    }

    body.card #index article,
    body.card #archive article,
    body.card #index .advertise,
    body.card #archive .advertise {
        padding: .3125rem 0;
    }

    body.card #index article .post-card-mask,
    body.card #archive article .post-card-mask,
    body.card #index .advertise .post-card-mask,
    body.card #archive .advertise .post-card-mask {
        height: 12.5rem;
    }

    body.mobile #backtop {
        display: block;
        opacity: 0;
        right: 1rem;
        bottom: max(7.375rem, calc(env(safe-area-inset-bottom) + 7rem));
        width: 3.25rem;
        height: 3.25rem;
    }

    body.mobile #backtop.show,
    body.mobile.show-back-to-top #backtop {
        opacity: 1;
    }

    #wrap.display-nav #backtop {
        opacity: 0;
    }
}

@media screen and (max-width: 40rem) {
    .article-body-content .article-inner-link {
        margin-top: 0 !important;
    }
}
