/* 什么是计算机？ */

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

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

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

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

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

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

.wic-story .wic-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;
}

.wic-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;
}


/* =========================
   第一部分：不同外形
   ========================= */

.wic-shapes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.wic-shape {
    min-width: 0;
    padding: 12px 8px 10px;
    border: 1px solid #e1ecff;
    border-radius: 14px;
    background: linear-gradient(180deg, #f4f8ff, #fff);
    text-align: center;
}

.wic-shape img {
    width: 100%;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 5px;
}

.wic-story .wic-shape h3 {
    margin: 0;
    color: var(--article-heading-color);
    font-size: 14px;
}


/* =========================
   公共提示卡
   ========================= */

.wic-guess,
.wic-misunderstanding,
.wic-remember {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
}

.wic-guess {
    border: 1px solid #ded5ff;
    background: #f7f3ff;
}

.wic-guess img,
.wic-misunderstanding img,
.wic-remember img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
}

.wic-story .wic-guess h3,
.wic-story .wic-misunderstanding h3,
.wic-story .wic-remember h3 {
    margin: 0 0 3px;
    font-size: 15px;
}

.wic-guess p,
.wic-misunderstanding p,
.wic-remember p {
    margin: 0;
}


/* =========================
   第二部分：输入 → 处理 → 输出
   ========================= */

.wic-three {
    display: grid;
    grid-template-columns: 1fr 30px 1fr 30px 1fr;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
}

.wic-step {
    position: relative;
    min-width: 0;
    min-height: 244px;
    padding: 14px 10px 12px;
    border-radius: 15px;
    text-align: center;
}

.wic-step--input {
    background: #f3efff;
}

.wic-step--process {
    background: #eef6ff;
}

.wic-step--store {
    background: #fff6df;
}

.wic-step--output {
    background: #ecfaef;
}

.wic-step img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 6px auto 4px;
}

.wic-step__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #0752ff;
    font-weight: 800;
}

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

.wic-step p {
    margin: 0 0 6px;
    font-size: 12px;
}

.wic-step small {
    display: block;
    color: #65779c;
    font-size: 11px;
    line-height: 1.5;
}

.wic-arrow {
    color: #4d82ff;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
}


/* 记住这张图 */

.wic-remember {
    align-items: flex-start;
    background: #eaf5ff;
}

.wic-story .wic-remember h3 {
    color: #0752ff;
}

.wic-remember p:first-of-type {
    color: #0752ff;
    font-size: 17px;
}


/* 存储作为补充能力 */

.wic-storage-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #ffe0a3;
    border-radius: 14px;
    background: #fff8e6;
}

.wic-storage-note img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
}

.wic-story .wic-storage-note h3 {
    margin: 0 0 3px;
    color: #a66a00;
    font-size: 15px;
}

.wic-storage-note p {
    margin: 0 0 5px;
}


/* =========================
   第三部分：程序
   ========================= */

.wic-program {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 12px;
    padding: 18px;
    border: 1px solid #e1eaff;
    border-radius: 16px;
    background: #f8fbff;
}

.wic-program__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wic-program__visual img {
    width: 180px;
    max-width: 100%;
    height: 150px;
    object-fit: contain;
}

.wic-story .wic-program__content h3 {
    margin: 0 0 7px;
    color: var(--article-heading-color);
    font-size: 17px;
}

.wic-program__content ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.wic-misunderstanding {
    border: 1px solid #ffd0dc;
    background: #fff2f6;
}

.wic-story .wic-misunderstanding h3 {
    color: #d83265;
}


/* =========================
   第四部分：平板画画示例
   ========================= */

.wic-example {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.wic-example article {
    position: relative;
    min-width: 0;
    padding: 13px 10px;
    border: 1px solid #e3ecff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.wic-example article > span {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #0752ff;
    font-weight: 900;
}

.wic-example img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin: 7px auto 4px;
}

.wic-story .wic-example h3 {
    margin: 0 0 4px;
    color: var(--article-heading-color);
    font-size: 15px;
}

.wic-example p {
    margin: 0;
    color: #526895;
    font-size: 12px;
}


/* 保存是额外动作 */

.wic-save-example {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #fff8e6;
}

.wic-save-example img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
}

.wic-story .wic-save-example h3 {
    margin: 0 0 4px;
    color: var(--article-heading-color);
    font-size: 15px;
}

.wic-save-example p {
    margin: 0;
}


/* 定义卡 */

.wic-definition {
    margin-top: 14px;
    padding: 17px 18px;
    border-radius: 16px;
    background: linear-gradient(100deg, #eef6ff, #f7fbff);
    text-align: center;
}

.wic-definition__title {
    margin-bottom: 6px;
    color: #0752ff;
    font-size: 19px;
    font-weight: 900;
}

.wic-definition p {
    margin: 0 0 5px;
}

.wic-definition__main {
    color: #172d66;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.wic-definition__extra {
    margin-top: 7px !important;
    color: #64779e;
    font-size: 13px;
}


/* =========================
   总结
   ========================= */

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

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

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

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

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

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


/* =========================
   上一篇 / 下一篇
   ========================= */

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

.wic-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;
}

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

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

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

.wic-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;
}

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

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


/* =========================
   平板
   ========================= */

@media (max-width: 900px) {

    .wic-shapes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wic-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wic-arrow {
        display: none;
    }
}


/* =========================
   手机
   ========================= */

@media (max-width: 640px) {

    .wic-story {
        font-size: 12px;
        line-height: 1.6;
    }

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

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

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


    /* 第一部分 */

    .wic-shapes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wic-shape img {
        height: 72px;
    }


    /* 提示卡 */

    .wic-guess,
    .wic-misunderstanding,
    .wic-remember,
    .wic-storage-note {
        padding: 11px 12px;
        gap: 9px;
    }

    .wic-guess img,
    .wic-misunderstanding img,
    .wic-remember img,
    .wic-storage-note img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }


    /* 三步流程 */

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

    .wic-arrow {
        display: block;
        transform: rotate(90deg);
        font-size: 20px;
        line-height: 1;
        padding: 2px 0;
    }

    .wic-step {
        min-height: auto;
        padding: 13px 10px;
    }

    .wic-step img {
        width: 70px;
        height: 70px;
    }

    .wic-story .wic-step h3 {
        font-size: 14px;
    }

    .wic-step p {
        font-size: 11px;
    }

    .wic-step small {
        font-size: 10px;
    }


    /* 程序 */

    .wic-program {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 13px;
    }

    .wic-program__visual img {
        height: 100px;
    }

    .wic-story .wic-program__content h3 {
        font-size: 15px;
    }


    /* 小例子 */

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

    .wic-example img {
        width: 68px;
        height: 68px;
    }

    .wic-save-example {
        padding: 11px 12px;
        gap: 9px;
    }

    .wic-save-example img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }


    /* 定义 */

    .wic-definition {
        padding: 14px 12px;
    }

    .wic-definition__title {
        font-size: 17px;
    }

    .wic-definition__main {
        font-size: 15px;
    }

    .wic-definition__extra {
        font-size: 12px;
    }


    /* 总结 */

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

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

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


    /* 翻页 */

    .wic-pagination {
        gap: 9px;
    }

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

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

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

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