/* 电脑为什么需要程序？ */

.wcnp-story {
    color: var(--article-text-color);
    font-size: 14px;
    line-height: 1.6;
}

.wcnp-story * {
    box-sizing: border-box;
}

.wcnp-story img {
    display: block;
    max-width: 100%;
}

.wcnp-story p {
    margin: 0 0 12px;
}

.wcnp-story strong {
    color: var(--article-heading-color);
}

.wcnp-section {
    margin-top: 22px;
    scroll-margin-top: 110px;
}

.wcnp-story .wcnp-section > h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
    color: var(--article-heading-color);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
}

.wcnp-number {
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0752ff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* 只有硬件还不够 */

.wcnp-hardware-scene {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.wcnp-hardware-scene__computer,
.wcnp-hardware-scene__question {
    display: flex;
    min-height: 176px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
}

.wcnp-hardware-scene__computer {
    background: #eef5ff;
}

.wcnp-hardware-scene__computer > span {
    color: #0752ff;
    font-size: 62px;
    line-height: 1;
}

.wcnp-hardware-scene__computer strong,
.wcnp-hardware-scene__question strong {
    margin-top: 8px;
    font-size: 15px;
}

.wcnp-hardware-scene__parts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.wcnp-hardware-scene__parts div {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #e3ecff;
    border-radius: 13px;
    background: #f9fbff;
}

.wcnp-hardware-scene__parts i {
    color: #0752ff;
    font-size: 27px;
}

.wcnp-hardware-scene__parts span {
    color: var(--article-heading-color);
    font-size: 12px;
    font-weight: 800;
}

.wcnp-hardware-scene__question {
    background: #fff6df;
}

.wcnp-hardware-scene__question > span {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #e39a00;
    font-size: 42px;
    font-weight: 900;
}

.wcnp-question,
.wcnp-key,
.wcnp-warning,
.wcnp-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
}

.wcnp-question {
    border: 1px solid #ddd4ff;
    background: #f7f3ff;
}

.wcnp-question__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.wcnp-story .wcnp-question h3,
.wcnp-story .wcnp-key h3,
.wcnp-story .wcnp-warning h3,
.wcnp-story .wcnp-note h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.wcnp-question p,
.wcnp-key p,
.wcnp-warning p,
.wcnp-note p {
    margin: 0;
}

/* 程序像任务说明 */

.wcnp-recipe {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.wcnp-recipe__life,
.wcnp-recipe__program {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
}

.wcnp-recipe__life {
    background: #fff7e5;
}

.wcnp-recipe__program {
    background: #eef5ff;
}

.wcnp-recipe__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    color: #0752ff;
    font-size: 28px;
}

.wcnp-recipe__life .wcnp-recipe__icon {
    color: #d58d00;
}

.wcnp-story .wcnp-recipe h3 {
    margin: 8px 0 7px;
    color: var(--article-heading-color);
    font-size: 16px;
}

.wcnp-recipe ol {
    margin: 0;
    padding-left: 22px;
    line-height: 1.8;
}

.wcnp-recipe__compare {
    color: #6c82b3;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
}

.wcnp-key {
    background: #eaf5ff;
}

.wcnp-key img,
.wcnp-warning img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
}

.wcnp-story .wcnp-key h3 {
    color: #0752ff;
}

/* 同一台电脑，不同程序 */

.wcnp-programs {
    display: grid;
    grid-template-columns: 1fr 48px 2fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.wcnp-programs__computer {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 16px;
    background: #eef5ff;
    text-align: center;
}

.wcnp-programs__computer > span {
    color: #0752ff;
    font-size: 66px;
}

.wcnp-programs__computer strong {
    margin-top: 8px;
    font-size: 16px;
}

.wcnp-programs__arrow {
    color: #4f82ff;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.wcnp-programs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.wcnp-programs__list article {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid #e5eaff;
    border-radius: 13px;
    background: #fbfcff;
    text-align: center;
}

.wcnp-programs__list article > span {
    color: #6b57d5;
    font-size: 29px;
}

.wcnp-story .wcnp-programs__list h3 {
    margin: 5px 0 3px;
    color: var(--article-heading-color);
    font-size: 14px;
}

.wcnp-programs__list p {
    margin: 0;
    color: #65769a;
    font-size: 11px;
}

.wcnp-sentence {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #eef9f0;
}

.wcnp-sentence > span {
    color: #e8a200;
    font-size: 28px;
}

.wcnp-sentence p {
    margin: 0;
}

/* 程序指挥流程 */

.wcnp-flow {
    display: grid;
    grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
    gap: 5px;
    align-items: center;
    margin-top: 14px;
}

.wcnp-flow__step {
    min-width: 0;
    min-height: 202px;
    padding: 14px 9px;
    border-radius: 15px;
    background: #f9fbff;
    text-align: center;
}

.wcnp-flow__icon,
.wcnp-flow__step img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 3px auto 7px;
}

.wcnp-flow__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 29px;
}

.wcnp-story .wcnp-flow__step h3 {
    margin: 0 0 5px;
    color: var(--article-heading-color);
    font-size: 15px;
}

.wcnp-flow__step p {
    margin: 0;
    color: #607296;
    font-size: 12px;
}

.wcnp-flow__arrow {
    color: #4f82ff;
    font-size: 23px;
    font-weight: 900;
    text-align: center;
}

.wcnp-example {
    margin-top: 13px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f1ff;
}

.wcnp-example__title {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 9px;
    color: #624bb9;
    font-size: 15px;
    font-weight: 800;
}

.wcnp-example__steps {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wcnp-example__steps span {
    padding: 7px 10px;
    border-radius: 10px;
    background: #fff;
    color: #314873;
    font-weight: 700;
}

.wcnp-example__steps b {
    color: #745bd5;
}

/* 明确步骤 */

.wcnp-clear {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.wcnp-clear article {
    position: relative;
    min-width: 0;
    padding: 17px 16px;
    border-radius: 15px;
}

.wcnp-clear__bad {
    border: 1px solid #ffd5df;
    background: #fff2f5;
}

.wcnp-clear__good {
    border: 1px solid #cdeed8;
    background: #effaf2;
}

.wcnp-clear__mark {
    position: absolute;
    top: 11px;
    right: 13px;
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.wcnp-clear__bad .wcnp-clear__mark {
    background: #ea4f71;
}

.wcnp-clear__good .wcnp-clear__mark {
    background: #2caf62;
}

.wcnp-story .wcnp-clear h3 {
    margin: 0 38px 8px 0;
    color: var(--article-heading-color);
    font-size: 15px;
}

.wcnp-clear p {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
}

.wcnp-clear small {
    display: block;
    color: #6d7c99;
    font-size: 11px;
    line-height: 1.5;
}

.wcnp-warning {
    border: 1px solid #ffd0dc;
    background: #fff2f6;
}

.wcnp-story .wcnp-warning h3 {
    color: #d83265;
}

.wcnp-bridge {
    margin-top: 11px !important;
    padding: 12px 14px;
    border-radius: 13px;
    background: #fff8e6;
}

/* 代码到执行 */

.wcnp-code-flow {
    display: grid;
    grid-template-columns: 1fr 34px 1.35fr 34px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.wcnp-code-flow__code,
.wcnp-code-flow__translate,
.wcnp-code-flow__cpu {
    display: flex;
    min-height: 176px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 16px;
    text-align: center;
}

.wcnp-code-flow__code {
    background: #f3efff;
}

.wcnp-code-flow__translate {
    background: #fff6df;
}

.wcnp-code-flow__cpu {
    background: #eef6ff;
}

.wcnp-code-flow__code > span,
.wcnp-code-flow__translate > span {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    font-size: 30px;
}

.wcnp-code-flow__code > span {
    color: #6b57d5;
}

.wcnp-code-flow__translate > span {
    color: #d58d00;
}

.wcnp-code-flow__cpu img {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.wcnp-code-flow strong {
    margin-top: 8px;
    font-size: 14px;
}

.wcnp-code-flow small {
    margin-top: 4px;
    color: #70809d;
    font-size: 11px;
}

.wcnp-code-flow__arrow {
    color: #4f82ff;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
}

.wcnp-note {
    background: #eaf5ff;
}

.wcnp-note__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    font-size: 31px;
}

.wcnp-story .wcnp-note h3 {
    color: #0752ff;
}

/* 总结 */

.wcnp-summary {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background: #e9f3ff;
    scroll-margin-top: 110px;
}

.wcnp-summary__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
}

.wcnp-story .wcnp-summary h2 {
    margin: 0 0 7px;
    color: #0752ff;
    font-size: 19px;
}

.wcnp-summary ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.75;
}

.wcnp-summary__next {
    margin: 10px 0 0 !important;
    padding-top: 10px;
    border-top: 1px dashed #b8d3f6;
}

.wcnp-summary__next em {
    color: #0752ff;
    font-style: normal;
    font-weight: 800;
}

/* 上一篇 / 下一篇 */

.wcnp-pagination {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
}

.wcnp-pagination a {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 49%;
    padding: 10px 13px;
    border: 1px solid #d9e7ff;
    border-radius: 12px;
    background: #ffffffb3;
    text-decoration: none;
    box-shadow: 0 3px 10px #c5dbff30;
}

.wcnp-pagination a:last-child {
    text-align: right;
}

.wcnp-pagination strong {
    display: block;
    color: #0752ff;
    font-size: 16px;
}

.wcnp-pagination small {
    display: block;
    color: #576b9f;
    font-size: 12px;
}

.wcnp-pagination__arrow {
    display: inline-flex;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e7ff;
    border-radius: 7px;
    color: #0752ff;
    font-size: 22px;
}

.wcnp-pagination a:hover {
    background: #edf4ff;
}

.wcnp-pagination a:focus-visible {
    outline: 3px solid #0752ff;
    outline-offset: 3px;
}

/* 平板 */

@media (max-width: 900px) {
    .wcnp-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wcnp-flow > .wcnp-flow__arrow {
        display: none;
    }

    .wcnp-code-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .wcnp-code-flow__arrow {
        transform: rotate(90deg);
    }

    .wcnp-code-flow__code,
    .wcnp-code-flow__translate,
    .wcnp-code-flow__cpu {
        min-height: auto;
    }
}

/* 手机 */

@media (max-width: 640px) {
    .wcnp-story {
        font-size: 12px;
        line-height: 1.6;
    }

    .wcnp-section {
        margin-top: 18px;
    }

    .wcnp-story .wcnp-section > h2 {
        gap: 9px;
        margin-bottom: 6px;
        font-size: 16px;
    }

    .wcnp-number {
        flex-basis: 31px;
        height: 31px;
        font-size: 14px;
    }

    .wcnp-hardware-scene,
    .wcnp-recipe,
    .wcnp-programs,
    .wcnp-code-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .wcnp-hardware-scene__computer,
    .wcnp-hardware-scene__question,
    .wcnp-programs__computer {
        min-height: 130px;
    }

    .wcnp-hardware-scene__computer > span,
    .wcnp-programs__computer > span {
        font-size: 50px;
    }

    .wcnp-hardware-scene__question > span {
        width: 58px;
        height: 58px;
        font-size: 34px;
    }

    .wcnp-question,
    .wcnp-key,
    .wcnp-warning,
    .wcnp-note {
        gap: 9px;
        padding: 11px 12px;
    }

    .wcnp-question__icon,
    .wcnp-key img,
    .wcnp-warning img,
    .wcnp-note__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .wcnp-recipe__compare,
    .wcnp-programs__arrow,
    .wcnp-code-flow__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }

    .wcnp-programs__list {
        gap: 7px;
    }

    .wcnp-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .wcnp-flow > .wcnp-flow__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

    .wcnp-flow__step {
        min-height: auto;
        padding: 12px 9px;
    }

    .wcnp-flow__icon,
    .wcnp-flow__step img {
        width: 58px;
        height: 58px;
    }

    .wcnp-example__steps {
        justify-content: flex-start;
    }

    .wcnp-clear {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .wcnp-code-flow__code > span,
    .wcnp-code-flow__translate > span {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    .wcnp-code-flow__cpu img {
        width: 62px;
        height: 62px;
    }

    .wcnp-summary {
        gap: 8px;
        padding: 14px;
    }

    .wcnp-summary__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .wcnp-story .wcnp-summary h2 {
        font-size: 17px;
    }

    .wcnp-pagination {
        gap: 9px;
    }

    .wcnp-pagination a {
        flex: 1;
        min-width: 0;
        gap: 5px;
        padding: 8px 6px;
    }

    .wcnp-pagination strong {
        font-size: 13px;
    }

    .wcnp-pagination small {
        font-size: 10px;
        line-height: 1.35;
    }

    .wcnp-pagination__arrow {
        width: 26px;
        height: 27px;
        flex-basis: 26px;
        font-size: 18px;
    }
}
