/* Dark editor-style code blocks for the mobile article detail page. */
.wzdetailBg .artcons pre {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 28px 0;
    padding: 26px 30px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #2d3029;
    border-radius: 8px;
    background: #242620;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .3), 0 6px 14px rgba(0, 0, 0, .18);
    -webkit-overflow-scrolling: touch;
}

.wzdetailBg .artcons pre::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 23px 0 #febc2e, 45px 0 #28c840;
}

.wzdetailBg .artcons pre code,
.wzdetailBg .artcons pre .language- {
    display: block;
    padding: 0;
    color: #f5f5f7 !important;
    background: transparent !important;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 15px !important;
    line-height: 1.7;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
    tab-size: 4;
}

.wzdetailBg .artcons pre code span {
    font-size: inherit !important;
}

.wzdetailBg .artcons pre .tok-keyword { color: #ff3b81 !important; }
.wzdetailBg .artcons pre .tok-string { color: #ff9f0a !important; }
.wzdetailBg .artcons pre .tok-number { color: #bf9cff !important; }
.wzdetailBg .artcons pre .tok-comment { color: #8e8e93 !important; }
.wzdetailBg .artcons pre .tok-type { color: #64d2ff !important; }
.wzdetailBg .artcons pre .tok-function { color: #30d158 !important; }

@media screen and (max-width: 560px) {
    .wzdetailBg .artcons pre {
        margin: 24px 0;
        padding: 22px 20px 24px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, .28), 0 4px 10px rgba(0, 0, 0, .16);
    }

    .wzdetailBg .artcons pre::before {
        width: 10px;
        height: 10px;
        margin-bottom: 19px;
        box-shadow: 20px 0 #febc2e, 40px 0 #28c840;
    }

    .wzdetailBg .artcons pre code,
    .wzdetailBg .artcons pre .language- {
        font-size: 14px !important;
        line-height: 1.65;
    }
}

@media screen and (max-width: 400px) {
    .wzdetailBg .artcons pre {
        margin: 20px 0;
        padding: 18px 16px 20px;
        border-radius: 7px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .26), 0 3px 8px rgba(0, 0, 0, .15);
    }

    .wzdetailBg .artcons pre::before {
        width: 9px;
        height: 9px;
        margin-bottom: 16px;
        box-shadow: 18px 0 #febc2e, 36px 0 #28c840;
    }

    .wzdetailBg .artcons pre code,
    .wzdetailBg .artcons pre .language- {
        font-size: 13px !important;
        line-height: 1.6;
    }
}

@media screen and (max-width: 340px) {
    .wzdetailBg .artcons pre {
        padding-right: 14px;
        padding-left: 14px;
    }

    .wzdetailBg .artcons pre code,
    .wzdetailBg .artcons pre .language- {
        font-size: 12px !important;
    }
}
