/*
 Theme Name:   Zibll Child
 Template:     zibll
 Version:      1.0.3
*/

body.single .acg-work-header {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap;
    gap: 22px !important;
    padding: 18px 20px !important;
    margin-bottom: 25px;
    border-radius: var(--main-radius) !important;
    background: var(--main-bg-color);
    position: relative;
    z-index: 2;
}

body.single .acg-cover {
    flex: 0 0 240px !important;
    width: 240px !important;
    min-width: 240px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    align-self: flex-start !important;
}

body.single .acg-cover-frame {
    position: relative;
    width: 100%;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--muted-bg-color, #f7f8fa);
}

body.single .acg-cover-frame img,
body.single .acg-cover img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    transition: transform 0.3s;
}

body.single .acg-cover:hover img {
    transform: scale(1.03);
}

body.single .acg-cover-zoom {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: block;
    cursor: zoom-in;
    pointer-events: auto;
    background: transparent;
}

body.single .acg-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 1;
    background: transparent;
    box-shadow: none;
}

body.single .acg-title {
    font-size: 22px !important;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 12px !important;
    color: var(--key-color);
}

body.single .acg-title a {
    color: inherit;
    font-size: inherit !important;
}

body.single .acg-subtitle {
    display: inline;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-color);
}

body.single .acg-desc {
    position: relative;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    text-overflow: unset !important;
    padding: 14px 16px 14px 18px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--theme-color) 22%, transparent);
    border-left: 3px solid var(--theme-color);
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-color) 9%, var(--main-bg-color));
    box-shadow: none;
    color: color-mix(in srgb, var(--key-color) 78%, var(--theme-color));
    font-size: 13px;
    line-height: 1.85;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}

body.single .acg-desc::before,
body.single .acg-desc::after {
    content: none !important;
    display: none !important;
}

body.single .acg-divider {
    height: 0;
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #e5e5ea;
}

body.single .acg-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

body.single .acg-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    min-width: 0;
}

body.single .acg-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 !important;
}

body.single .acg-meta-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-left: auto;
    min-width: 0;
}

body.single .acg-desc a {
    color: var(--theme-color);
}

body.single .acg-desc p {
    margin: 0 0 8px;
}

body.single .acg-desc p:last-child {
    margin-bottom: 0;
}

body.single .acg-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

body.single .acg-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    position: relative;
}

body.single .acg-avatar .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

body.single .acg-author-text {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

body.single .acg-author-name {
    font-weight: 600;
    color: var(--key-color);
    margin: 0;
    min-width: 0;
}

body.single .acg-author-name .img-icon {
    width: auto;
    height: 1.1em;
    max-width: 6em;
    max-height: none;
    flex: 0 0 auto;
    object-fit: contain;
}

body.single .acg-author-name .display-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

body.single .acg-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 12px;
    margin: 0 0 0 auto;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

body.single .acg-time .fa {
    margin-right: 4px;
    font-size: 13px;
}

body.single .acg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
}

body.single .acg-tag {
    margin: 0 !important;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    background: var(--this-bg);
    color: var(--this-color);
}

body.single .acg-tag.c-blue,
body.single .acg-tag.c-blue-2 {
    --this-color: #d6064c;
    --this-bg: rgba(214, 6, 76, 0.1);
    background: var(--this-bg);
    color: var(--this-color);
}

body.single .acg-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-color);
    font-size: 13px;
}

body.single .acg-stat {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: inherit;
    margin: 0 !important;
}

body.single .acg-stat .icon,
body.single .acg-stat .fa,
body.single .acg-stat svg {
    margin-right: 0 !important;
    flex: 0 0 auto;
}

body.single .wp-posts-content img,
body.single .wp-posts-content a[data-imgbox] {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    cursor: zoom-in;
}

body.single.dark-theme .acg-desc {
    background: color-mix(in srgb, var(--theme-color) 16%, var(--main-bg-color));
    border-color: color-mix(in srgb, var(--theme-color) 34%, transparent);
    color: var(--muted-color);
}

body.single .acg-work-header:has(+ .acg-work-tabs) {
    margin-bottom: 12px !important;
}

body.single .acg-work-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px 16px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: 0 0 10px var(--main-shadow);
}

body.single .acg-work-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

body.single .acg-work-tab .fa {
    font-size: 15px;
}

body.single .acg-work-tab.is-active {
    background: color-mix(in srgb, var(--focus-color) 14%, var(--main-bg-color));
    color: var(--focus-color);
}

body.single .acg-work-panel[hidden] {
    display: none !important;
}

body.single .acg-work-panel.is-music p:has(.acg-vinyl),
body.single .acg-work-panel.is-music figure:has(.acg-vinyl) {
    text-align: center;
}

body.single .acg-work-panel.is-music .acg-vinyl {
    display: inline-block;
    max-width: min(440px, 100%);
    margin: 8px auto 18px;
    line-height: 0;
    vertical-align: top;
}

body.single .acg-work-panel.is-music .acg-vinyl img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;
    box-shadow: 0 8px 18px rgba(20, 16, 28, 0.16);
}

body.single .wp-posts-content .wp-block-zibllblock-alert.alert-dismissible {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    min-height: 0;
}

body.single .wp-posts-content .alert.jb-green,
body.single .wp-posts-content .alert.jb-blue,
body.single .wp-posts-content .alert.jb-yellow,
body.single .wp-posts-content .alert.jb-red {
    display: block;
    position: relative;
    margin: 10px 0 16px 4px;
    padding: 8px 15px;
    min-height: 0;
    border: 0;
    border-radius: 0 5px 5px 5px;
    box-shadow: none;
    font-size: 14px;
    line-height: 26px;
}

body.single .wp-posts-content .alert.jb-green:before,
body.single .wp-posts-content .alert.jb-blue:before,
body.single .wp-posts-content .alert.jb-yellow:before,
body.single .wp-posts-content .alert.jb-red:before {
    font-family: FontAwesome;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    text-align: center;
    position: absolute;
    top: -6px;
    left: -11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    transform: none;
    transform-origin: center;
    color: #fff;
    line-height: 1;
    transition: transform 0.85s;
}

body.single .wp-posts-content .alert.jb-green:hover:before,
body.single .wp-posts-content .alert.jb-blue:hover:before,
body.single .wp-posts-content .alert.jb-yellow:hover:before,
body.single .wp-posts-content .alert.jb-red:hover:before {
    transform: rotate(360deg);
}

body.single .wp-posts-content .alert.jb-green {
    border-left: 5px solid #34c96c;
    background: rgba(52, 201, 108, 0.125);
    color: #34c96c;
}

body.single .wp-posts-content .alert.jb-green:before {
    content: "\f00c";
    background: #34c96c;
}

body.single .wp-posts-content .alert.jb-blue {
    border-left: 5px solid #4a98ff;
    background: rgba(74, 152, 255, 0.125);
    color: #4a98ff;
}

body.single .wp-posts-content .alert.jb-blue:before {
    content: "\f00c";
    background: #4a98ff;
}

body.single .wp-posts-content .alert.jb-yellow {
    border-left: 5px solid #ff8000;
    background: rgba(255, 128, 0, 0.125);
    color: #ff8000;
}

body.single .wp-posts-content .alert.jb-yellow:before {
    content: "\f10c";
    background: #ff8000;
}

body.single .wp-posts-content .alert.jb-red {
    border-left: 5px solid #ff6699;
    background: rgba(255, 102, 153, 0.125);
    color: #ff6699;
}

body.single .wp-posts-content .alert.jb-red:before {
    content: "\f00d";
    background: #ff6699;
}

body.single .wp-posts-content .alert.jb-green a,
body.single .wp-posts-content .alert.jb-blue a,
body.single .wp-posts-content .alert.jb-yellow a,
body.single .wp-posts-content .alert.jb-red a {
    color: inherit !important;
}

body.single .wp-posts-content .alert.jb-green .close,
body.single .wp-posts-content .alert.jb-blue .close,
body.single .wp-posts-content .alert.jb-yellow .close,
body.single .wp-posts-content .alert.jb-red .close {
    color: inherit;
}

body.single .wp-posts-content .title-theme,
body.single .wp-posts-content > h1:not([class]),
body.single .wp-posts-content > h2:not([class]),
body.single .wp-posts-content > h3:not([class]),
body.single .wp-posts-content > h4:not([class]),
body.single .wp-posts-content > h5:not([class]) {
    position: relative;
    margin: 15px 0;
    padding: 0 0 0 15px;
    border: 0;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1.45;
}

body.single .wp-posts-content h1.title-theme,
body.single .wp-posts-content > h1:not([class]) {
    font-size: 20px;
}

body.single .wp-posts-content h2.title-theme,
body.single .wp-posts-content > h2:not([class]) {
    font-size: 18px;
}

body.single .wp-posts-content h3.title-theme,
body.single .wp-posts-content > h3:not([class]) {
    font-size: 16px;
}

body.single .wp-posts-content h4.title-theme,
body.single .wp-posts-content > h4:not([class]) {
    font-size: 15px;
}

body.single .wp-posts-content h5.title-theme,
body.single .wp-posts-content > h5:not([class]) {
    font-size: 14px;
}

body.single .wp-posts-content .title-theme:before,
body.single .wp-posts-content > h1:not([class]):before,
body.single .wp-posts-content > h2:not([class]):before,
body.single .wp-posts-content > h3:not([class]):before,
body.single .wp-posts-content > h4:not([class]):before,
body.single .wp-posts-content > h5:not([class]):before {
    content: "";
    position: absolute;
    top: 10%;
    left: 4px;
    bottom: auto;
    width: 4px;
    height: calc(100% - 5px);
    border-radius: 8px;
    background: var(--theme-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-color) 12%, transparent);
    transform: none;
}

body.single .wp-posts-content > h3:not([class]):before,
body.single .wp-posts-content > h4:not([class]):before,
body.single .wp-posts-content > h3.wp-block-heading:before,
body.single .wp-posts-content > h4.wp-block-heading:before,
body.single .wp-posts-content h3.title-theme:before,
body.single .wp-posts-content h4.title-theme:before {
    width: 4px !important;
    height: calc(100% - 5px) !important;
    left: 4px !important;
    right: auto !important;
    top: 10% !important;
    bottom: auto !important;
}

body.single .wp-posts-content .hidden-box {
    position: relative;
    margin: 10px 0;
    padding: 10px;
    background: color-mix(in srgb, var(--theme-color) 10%, transparent);
    border: 2px dashed var(--theme-color);
    border-radius: 10px;
    text-align: center;
}

body.single .wp-posts-content .hidden-box .hidden-text,
body.single .wp-posts-content .hidden-box > a.hidden-text {
    display: block;
    margin: 10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--theme-color);
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}

body.single .wp-posts-content .hidden-box.show {
    padding: 36px 14px 14px;
    border: 0;
    text-align: left;
}

body.single .wp-posts-content .hidden-box.show .hidden-text {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: auto;
    margin: 0;
    padding: 3px 10px;
    border: 0;
    border-radius: 10px 0 10px 0;
    background: linear-gradient(135deg, var(--theme-color) 15%, color-mix(in srgb, var(--theme-color) 65%, #fff) 85%);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

body.single .wp-posts-content .hidden-box .title-theme {
    margin: 10px 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

body.single .wp-posts-content .hidden-box .title-theme:before {
    content: none;
    display: none;
}

body.single .wp-posts-content .hidden-box.flex {
    display: block;
}

body.single .wp-posts-content .hidden-box form {
    display: flex;
    align-items: center;
    margin-top: 8px;
    text-align: left;
}

body.single .wp-posts-content .hidden-box .form-control {
    text-align: left;
    background: var(--main-bg-color);
}

body.single .wp-posts-content hr {
    box-sizing: content-box;
    height: 1.5px;
    overflow: visible;
    position: relative;
    clear: both;
    width: calc(100% - 4px);
    margin: 16px auto;
    border: 0;
    background: repeating-linear-gradient(to right, var(--theme-color) 0 4px, transparent 4px 7px);
    opacity: 0.9;
}

body.single .wp-posts-content hr:before {
    content: "\f0c4";
    font-family: FontAwesome;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    position: absolute;
    top: -8.25px;
    left: 5%;
    z-index: 1;
    padding: 0 4px;
    color: var(--theme-color);
    background: var(--main-bg-color);
    transition: left 1s ease-in-out;
}

body.single .wp-posts-content hr:hover:before {
    left: calc(95% - 22px);
}

body.single .wp-posts-content .hidden-box:has(hr) {
    padding-bottom: 10.5px;
}

body.single .wp-posts-content .hidden-box hr:before {
    background: color-mix(in srgb, var(--theme-color) 10%, var(--main-bg-color));
}

body.single .wp-posts-content .acg-hide-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 2px 0 8px;
}

body.single .wp-posts-content .acg-hide-actions .but {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px 14px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
    line-height: 20px;
}

body.single .wp-posts-content .acg-hide-actions .but .fa {
    margin-right: 4px;
}

body.single .wp-posts-content .acg-hide-actions .signin-loader {
    --this-bg: rgba(74, 152, 255, 0.12);
    --this-color: #4a98ff;
    background: rgba(74, 152, 255, 0.12);
    color: #4a98ff;
}

body.single .wp-posts-content .acg-hide-actions .signup-loader {
    --this-bg: rgba(52, 201, 108, 0.12);
    --this-color: #34c96c;
    background: rgba(52, 201, 108, 0.12);
    color: #34c96c;
}

body.single .wp-posts-content .hidden-box:has(> a .fa-diamond),
body.single .wp-posts-content .hidden-box:has(> a .fa-sign-in),
body.single .wp-posts-content .hidden-box:has(> a.pay-vip),
body.single .wp-posts-content .hidden-box:not(.show):not(.flex):not([reply-show]):not(:has(.signin-loader)) {
    border: 0;
}

@media (max-width: 768px) {
    body.single .acg-work-header {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
    }

    body.single .acg-cover {
        flex: 0 0 auto !important;
        width: min(240px, 72%) !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
    }

    body.single .acg-info {
        width: 100%;
        padding: 12px 0 0 !important;
    }

    body.single .acg-author-row {
        flex-wrap: wrap;
    }

    body.single .acg-meta-side {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    body.single .acg-times {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
    }
}

/* 付費下載資源卡 */
#posts-pay.acg-dl {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--main-border-color);
    border-radius: 14px 14px 0 0;
    box-shadow: none;
    background: var(--main-bg-color);
}

#posts-pay.acg-dl .acg-dl-top {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
}

#posts-pay.acg-dl .acg-dl-cover {
    position: relative;
    flex: 0 0 176px;
    width: 176px;
    min-height: 210px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--muted-bg-color, #f4f5f7);
    align-self: stretch;
}

#posts-pay.acg-dl .acg-dl-cover .graphic {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0;
}

#posts-pay.acg-dl .acg-dl-cover img {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover;
}

#posts-pay.acg-dl .acg-dl-info,
#posts-pay.acg-dl .acg-dl-head {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#posts-pay.acg-dl .acg-dl-head {
    padding: 16px 16px 0;
}

#posts-pay.acg-dl .acg-dl-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

#posts-pay.acg-dl .acg-dl-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-color) 12%, transparent);
    color: var(--theme-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

#posts-pay.acg-dl .acg-dl-type .fa {
    font-size: 12px;
}

#posts-pay.acg-dl .acg-dl-sold {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--muted-border-color);
    color: var(--muted-color);
    font-size: 12px;
    line-height: 1.5;
}

#posts-pay.acg-dl .acg-dl-title {
    color: var(--key-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

#posts-pay.acg-dl .acg-dl-doc {
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.7;
}

#posts-pay.acg-dl .acg-dl-offer {
    margin-top: auto;
    padding: 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-color) 6%, var(--main-bg-color));
    border: 1px solid color-mix(in srgb, var(--theme-color) 16%, transparent);
}

#posts-pay.acg-dl .acg-dl-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#posts-pay.acg-dl .acg-dl-price .price-box {
    margin: 0;
}

#posts-pay.acg-dl .acg-dl-price .em3x {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

#posts-pay.acg-dl .acg-dl-free-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1c9a56;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

#posts-pay.acg-dl .acg-dl-discount {
    margin-top: 4px;
    color: var(--theme-color);
    font-size: 12px;
}

#posts-pay.acg-dl .acg-dl-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

#posts-pay.acg-dl .acg-dl-actions .but {
    margin: 0;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}

#posts-pay.acg-dl .acg-dl-actions .but.jb-blue,
#posts-pay.acg-dl .acg-dl-actions .but.jb-red,
#posts-pay.acg-dl .acg-dl-actions .but.jb-yellow,
#posts-pay.acg-dl .acg-dl-actions .cashier-link {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 6px 16px var(--focus-shadow-color);
}

#posts-pay.acg-dl .acg-dl-actions .but .fa {
    margin-right: 6px;
}

#posts-pay.acg-dl .acg-dl-demo {
    background: var(--main-bg-color) !important;
    color: var(--theme-color) !important;
    box-shadow: none !important;
    border: 1px solid color-mix(in srgb, var(--theme-color) 35%, transparent) !important;
}

#posts-pay.acg-dl .acg-dl-vips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

#posts-pay.acg-dl .vip-price-buts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
}

#posts-pay.acg-dl .vip-price {
    width: auto !important;
    flex: none;
    margin: 0;
    padding: 4px 10px !important;
    border: 0;
    border-radius: 999px !important;
    background: var(--main-bg-color);
    box-shadow: 0 1px 2px var(--main-shadow);
    font-size: 12px;
    line-height: 1.5;
}

#posts-pay.acg-dl .vip-price[vip-level="1"] {
    color: #a8741a;
    background: linear-gradient(90deg, #fff4df, #fff);
}

#posts-pay.acg-dl .vip-price[vip-level="2"] {
    color: #7a4dff;
    background: linear-gradient(90deg, #f4ecff, #fff);
}

#posts-pay.acg-dl .acg-dl-specs,
#posts-pay.acg-dl .acg-dl-note,
#posts-pay.acg-dl .acg-dl-extra,
#posts-pay.acg-dl .acg-dl-files,
#posts-pay.acg-dl .acg-dl-order,
#posts-pay.acg-dl .acg-dl-freebar {
    margin: 0 16px 14px;
}

#posts-pay.acg-dl .acg-dl-specs {
    overflow: hidden;
    border-radius: 4px;
    background: color-mix(in srgb, var(--muted-color) 7%, var(--main-bg-color));
}

#posts-pay.acg-dl .acg-dl-spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    font-size: 13px;
    line-height: 1.5;
}

#posts-pay.acg-dl .acg-dl-spec-row {
    display: flex;
    align-items: stretch;
}

#posts-pay.acg-dl .acg-dl-spec-row .acg-dl-spec {
    flex: 1 1 0;
    justify-content: flex-start;
    min-width: 0;
}

#posts-pay.acg-dl .acg-dl-spec-row .acg-dl-spec + .acg-dl-spec {
    border-left: 0;
}

#posts-pay.acg-dl .acg-dl-spec-key {
    flex: 0 0 auto;
    color: var(--muted-color);
}

#posts-pay.acg-dl .acg-dl-spec-val {
    color: var(--key-color);
    font-weight: 600;
    text-align: left;
    word-break: break-word;
}

#posts-pay.acg-dl .acg-dl-note,
#posts-pay.acg-dl .acg-dl-extra {
    padding: 12px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--muted-color) 7%, var(--main-bg-color));
    border-left: 3px solid color-mix(in srgb, var(--theme-color) 55%, transparent);
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.7;
}

#posts-pay.acg-dl .acg-dl-note {
    border-radius: 4px;
}

#posts-pay.acg-dl .acg-dl-service {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 16px 14px;
    color: var(--muted-2-color);
    font-size: 12px;
}

#posts-pay.acg-dl .acg-dl-freebar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed rgba(46, 184, 114, 0.5);
    border-radius: 10px;
    background: rgba(46, 184, 114, 0.1);
    color: #1c9a56;
    font-size: 13px;
    font-weight: 600;
}

#posts-pay.acg-dl .acg-dl-order {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(46, 184, 114, 0.1);
}

#posts-pay.acg-dl .acg-dl-order-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1c9a56;
    font-size: 14px;
    font-weight: 700;
}

#posts-pay.acg-dl .acg-dl-order-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-color);
    font-size: 12px;
}

#posts-pay.acg-dl .acg-dl-order-item span:last-child,
#posts-pay.acg-dl .acg-dl-order-item a {
    color: var(--key-color);
    font-weight: 600;
}

#posts-pay.acg-dl .acg-dl-vipbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

#posts-pay.acg-dl .acg-dl-vipbar .price-box,
#posts-pay.acg-dl .acg-dl-vipbar .em3x {
    margin: 0;
    line-height: 1;
}

#posts-pay.acg-dl .acg-dl-vipbar .em3x {
    font-size: 26px;
}

#posts-pay.acg-dl .acg-dl-vipname {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

#posts-pay.acg-dl .acg-dl-files {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-color) 6%, var(--main-bg-color));
    border: 1px solid color-mix(in srgb, var(--theme-color) 16%, transparent);
}

#posts-pay.acg-dl .acg-dl-file-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

#posts-pay.acg-dl .acg-dl-file-head .acg-dl-kicker {
    flex: 0 0 auto;
}

#posts-pay.acg-dl .acg-dl-file-head .acg-dl-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
}

#posts-pay.acg-dl .acg-dl-files .acg-dl-doc {
    margin-top: 6px;
}

#posts-pay.acg-dl .acg-cut-line {
    box-sizing: content-box;
    height: 1.5px;
    overflow: visible;
    position: relative;
    clear: both;
    width: calc(100% - 4px);
    margin: 22px auto;
    border: 0;
    background: repeating-linear-gradient(to right, var(--theme-color) 0 4px, transparent 4px 7px);
    opacity: 0.9;
}

#posts-pay.acg-dl .acg-cut-line:before {
    content: "\f0c4";
    font-family: FontAwesome;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    position: absolute;
    top: -8.25px;
    left: 5%;
    z-index: 1;
    padding: 0 4px;
    color: var(--theme-color);
    background: color-mix(in srgb, var(--theme-color) 6%, var(--main-bg-color));
    transition: left 1s ease-in-out;
}

#posts-pay.acg-dl .acg-cut-line:hover:before {
    left: calc(95% - 22px);
}

#posts-pay.acg-dl .acg-dl-files .flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#posts-pay.acg-dl .acg-dl-files .but-download {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#posts-pay.acg-dl .acg-dl-files .but {
    min-width: 128px;
    margin: 0 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--this-color, var(--theme-color)) 32%, transparent);
}

#posts-pay.acg-dl .acg-dl-files .but.b-theme,
#posts-pay.acg-dl .acg-dl-files .but.jb-blue,
#posts-pay.acg-dl .acg-dl-files .but.jb-red,
#posts-pay.acg-dl .acg-dl-files .but.jb-yellow,
#posts-pay.acg-dl .acg-dl-files .but.jb-green,
#posts-pay.acg-dl .acg-dl-files .but.jb-purple,
#posts-pay.acg-dl .acg-dl-files .but.jb-vip1,
#posts-pay.acg-dl .acg-dl-files .but.jb-vip2,
#posts-pay.acg-dl .acg-dl-files .but.baidu,
#posts-pay.acg-dl .acg-dl-files .but.lanzou,
#posts-pay.acg-dl .acg-dl-files .but.alipan {
    box-shadow: 0 4px 14px color-mix(in srgb, var(--focus-color, var(--theme-color)) 36%, transparent);
}

#posts-pay.acg-dl .acg-dl-files .but.jb-vip1 {
    box-shadow: 0 4px 14px rgba(232, 190, 123, 0.55);
}

#posts-pay.acg-dl .acg-dl-note-label {
    margin-bottom: 8px;
}

#posts-pay.acg-dl .acg-dl-note .acg-dl-log {
    position: relative;
    margin: 0;
    padding: 0 0 14px 16px;
}

#posts-pay.acg-dl .acg-dl-log-item {
    position: relative;
    padding: 0 0 6px 4px;
}

#posts-pay.acg-dl .acg-dl-log-item:last-child {
    padding-bottom: 0;
}

#posts-pay.acg-dl .acg-dl-log-item:before {
    content: "";
    position: absolute;
    top: 2px;
    left: -16px;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 2px solid #f0b7a4;
    border-radius: 50%;
    background: #f6f6f7;
    z-index: 1;
}

#posts-pay.acg-dl .acg-dl-log-item:after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: -2px;
    left: -13px;
    width: 2px;
    background: #f3cfc3;
}

#posts-pay.acg-dl .acg-dl-log-item:last-child:after {
    bottom: -12px;
}

#posts-pay.acg-dl .acg-dl-log-date {
    margin-bottom: 2px;
    color: #e36a45;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

#posts-pay.acg-dl .acg-dl-log-text {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

#posts-pay.acg-dl .acg-dl-log-item.is-peach .acg-dl-log-text {
    background: #fde8e2;
    color: #d2654d;
}

#posts-pay.acg-dl .acg-dl-log-item.is-lilac .acg-dl-log-date,
#posts-pay.acg-dl .acg-dl-log-item.is-lilac .acg-dl-log-text {
    color: #7b6bb8;
}

#posts-pay.acg-dl .acg-dl-log-item.is-lilac:before {
    border-color: #c4b6ef;
}

#posts-pay.acg-dl .acg-dl-log-item.is-lilac:after {
    background: #c4b6ef;
}

#posts-pay.acg-dl .acg-dl-log-item.is-lilac .acg-dl-log-text {
    background: #ece6fb;
}

#posts-pay.acg-dl .acg-dl-files .but .fa,
#posts-pay.acg-dl .acg-dl-files .but svg {
    margin-right: 6px;
}

#posts-pay.acg-dl .acg-dl-files .but-download .but + .but,
#posts-pay.acg-dl .acg-dl-files .but-download .badg {
    min-width: 0;
    background: transparent;
    color: var(--muted-color);
    box-shadow: none;
}

#posts-pay.acg-dl .acg-dl-files .muted-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 10px;
    padding: 0;
    background: transparent;
}

#posts-pay.acg-dl .acg-dl-files .muted-box > div {
    margin: 0 !important;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--main-bg-color);
    color: var(--main-color);
    font-size: 12px;
}

#posts-pay.acg-dl .acg-dl-files .muted-box > div:first-child {
    width: 100%;
    padding-left: 0;
    background: transparent;
    color: var(--muted-color);
    font-weight: 700;
}

#posts-pay.acg-dl .acg-dl-files .badg.c-red {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px dashed rgba(232, 86, 112, 0.45);
    border-radius: 10px;
    background: rgba(232, 86, 112, 0.08);
    color: #e45670;
    font-weight: 600;
}

#posts-pay.acg-dl .acg-dl-file-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 640px) {
    #posts-pay.acg-dl .acg-dl-top {
        gap: 12px;
        padding: 12px;
    }

    #posts-pay.acg-dl .acg-dl-title {
        font-size: 16px;
    }

    #posts-pay.acg-dl .acg-dl-offer-row,
    #posts-pay.acg-dl .acg-dl-order {
        align-items: stretch;
        flex-direction: column;
    }

    #posts-pay.acg-dl .acg-dl-vipbar {
        flex-direction: row;
        align-items: center;
    }

    #posts-pay.acg-dl .acg-dl-order {
        grid-template-columns: 1fr;
    }

    #posts-pay.acg-dl .acg-dl-actions {
        justify-content: stretch;
    }

    #posts-pay.acg-dl .acg-dl-cover {
        flex-basis: 118px;
        width: 118px;
        min-height: 156px;
    }

    #posts-pay.acg-dl .acg-dl-price,
    #posts-pay.acg-dl .acg-dl-vips,
    #posts-pay.acg-dl .vip-price-buts {
        justify-content: center;
        text-align: center;
    }

    #posts-pay.acg-dl .acg-dl-actions .but {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* 列表卡片：免費資源、付費資源貼在封面右下角 */
.posts-item.card .item-body {
    position: relative;
}

.posts-item.card .item-tags:not(:has(:not(.meta-pay))) {
    min-height: 0;
    height: 0;
    margin-bottom: 0;
    overflow: visible;
}

.posts-item.card .item-tags .meta-pay {
    position: absolute;
    right: 8px;
    bottom: calc(100% + 8px);
    z-index: 3;
    margin: 0;
    max-width: calc(100% - 16px);
    color: #fff;
    background: linear-gradient(135deg, #ff7eb3 0%, #f04494 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(240, 68, 148, 0.35);
}

.posts-item.card:not(.style3) .item-tags .meta-pay {
    bottom: calc(100% + 18px);
}

.acg-site-stat-widget .title-theme {
    margin-bottom: 4px;
}

.acg-site-stat {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.acg-site-stat li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.4;
}

.acg-site-stat li + li {
    border-top: 1px solid var(--main-border-color);
}

.acg-site-stat li:not(.is-meta) + li.is-meta {
    margin-top: 4px;
}

.acg-site-stat-label {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--main-color);
}

.acg-site-stat-label .fa {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--theme-color) 14%, transparent);
    color: var(--theme-color);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    flex: 0 0 22px;
}

.acg-site-stat-value {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--muted-bg-color);
    color: var(--key-color);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.7;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.acg-site-stat li.is-meta {
    font-size: 12px;
}

.acg-site-stat li.is-meta .acg-site-stat-value {
    background: transparent;
    padding-right: 2px;
    font-weight: 500;
}

.acg-site-stat-unit {
    margin-left: 2px;
    color: var(--muted-2-color);
    font-weight: 400;
    font-size: 11px;
}
