/* 主板为什么像一座交通城？ */

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

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

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

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

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

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

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

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

/* 主要部件 */

.mb-parts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mb-parts article {
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.mb-parts article > img,
.mb-parts__icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin: 0 auto 6px;
}

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

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

.mb-parts p {
    margin: 0;
    color: #617296;
    font-size: 11px;
}

.mb-without {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #fff2f5;
}

.mb-without > span {
    color: #df4d74;
    font-size: 28px;
}

.mb-without p {
    margin: 0;
}

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

.mb-key {
    background: #eaf5ff;
}

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

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

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

.mb-key p,
.mb-note p {
    margin: 0;
}

/* 交通城 */

.mb-city {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.mb-city__center {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    border-radius: 16px;
    background: #ecfaef;
    text-align: center;
}

.mb-city__center > span {
    display: inline-flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    border-radius: 23px;
    background: #fff;
    color: #24944d;
    font-size: 37px;
}

.mb-story .mb-city__center h3 {
    margin: 8px 0 4px;
    color: var(--article-heading-color);
    font-size: 16px;
}

.mb-city__center p {
    margin: 0;
    color: #617d68;
    font-size: 12px;
}

.mb-city__buildings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mb-city__buildings article {
    position: relative;
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #dfeaff;
    border-radius: 14px;
    background: #f9fbff;
}

.mb-city__buildings article::before {
    content: "";
    position: absolute;
    left: -15px;
    width: 15px;
    height: 3px;
    background: #8fb6ff;
}

.mb-city__buildings i {
    color: #0752ff;
    font-size: 28px;
}

.mb-city__memory i {
    color: #7654d6;
}

.mb-city__storage i {
    color: #d28a00;
}

.mb-city__gpu i {
    color: #df4d74;
}

.mb-city__buildings strong {
    font-size: 13px;
}

.mb-city-rule {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #f3efff;
}

.mb-city-rule > span {
    color: #7654d6;
    font-size: 28px;
}

.mb-city-rule p {
    margin: 0;
}

.mb-small-note {
    margin-top: 8px !important;
    color: #7382a0;
    font-size: 12px;
}

/* 插槽接口 */

.mb-connections {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mb-connections article {
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid #e2ebff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.mb-connections article > span {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 20px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 28px;
}

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

.mb-connections p {
    margin: 0;
    color: #617296;
    font-size: 11px;
}

.mb-note {
    background: #fff8e5;
}

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

.mb-story .mb-note h3 {
    color: #9a6800;
}

/* 数据道路 */

.mb-road-flow {
    display: grid;
    grid-template-columns: 1fr 120px 1fr 120px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.mb-road-flow__memory,
.mb-road-flow__cpu,
.mb-road-flow__gpu {
    display: flex;
    min-height: 165px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.mb-road-flow__memory {
    background: #f3efff;
}

.mb-road-flow__cpu {
    background: #eef5ff;
}

.mb-road-flow__gpu {
    background: #fff0f4;
}

.mb-road-flow__memory > span,
.mb-road-flow__gpu > span {
    font-size: 58px;
}

.mb-road-flow__memory > span {
    color: #7654d6;
}

.mb-road-flow__gpu > span {
    color: #df4d74;
}

.mb-road-flow__cpu img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.mb-story .mb-road-flow h3 {
    margin: 7px 0 0;
    color: var(--article-heading-color);
    font-size: 15px;
}

.mb-road-flow__road {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.mb-road-flow__road span {
    color: #5d7199;
    font-size: 11px;
}

.mb-road-flow__road strong {
    color: #4f82ff;
    font-size: 34px;
}

.mb-road-flow__road small {
    color: #7b88a3;
    font-size: 10px;
}

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

.mb-road-tip > span {
    color: #299652;
    font-size: 27px;
}

.mb-road-tip p {
    margin: 0;
}

/* 游戏任务 */

.mb-task {
    display: grid;
    grid-template-columns: 1fr 27px 1fr 27px 1fr 27px 1fr;
    gap: 5px;
    align-items: center;
    margin-top: 14px;
}

.mb-task article {
    position: relative;
    min-width: 0;
    min-height: 200px;
    padding: 14px 9px;
    border: 1px solid #e1ebff;
    border-radius: 15px;
    background: #f9fbff;
    text-align: center;
}

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

.mb-task article > img,
.mb-task__icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin: 12px auto 7px;
}

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

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

.mb-task p {
    margin: 0;
    color: #607296;
    font-size: 11px;
}

.mb-task__arrow {
    color: #4f82ff;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.mb-task-ending {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 13px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef5ff;
}

.mb-task-ending img {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    object-fit: contain;
}

.mb-task-ending p {
    margin: 0;
}

/* 主板不是老板 */

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

.mb-boss > div {
    min-width: 0;
    padding: 16px;
    border-radius: 15px;
}

.mb-boss__yes {
    background: #effaf2;
}

.mb-boss__no {
    background: #fff2f5;
}

.mb-story .mb-boss h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
    color: var(--article-heading-color);
    font-size: 15px;
}

.mb-boss__yes h3 i {
    color: #2aa05a;
}

.mb-boss__no h3 i {
    color: #df4d74;
}

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

.mb-key--final {
    background: #eaf5ff;
}

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

/* 平板 */

@media (max-width: 900px) {
    .mb-road-flow {
        grid-template-columns: 1fr 80px 1fr;
        row-gap: 10px;
    }

    .mb-road-flow__gpu {
        grid-column: 2 / 4;
    }

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

    .mb-task > .mb-task__arrow {
        display: none;
    }
}

/* 手机 */

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

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

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

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

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

    .mb-key,
    .mb-note {
        gap: 9px;
        padding: 11px 12px;
    }

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

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

    .mb-city__center {
        min-height: 145px;
    }

    .mb-city__buildings {
        gap: 7px;
    }

    .mb-city__buildings article::before {
        display: none;
    }

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

    .mb-road-flow__gpu {
        grid-column: auto;
    }

    .mb-road-flow__road strong {
        transform: rotate(90deg);
        line-height: 1;
    }

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

    .mb-task > .mb-task__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

    .mb-task article {
        min-height: auto;
        padding: 12px 9px;
    }

    .mb-task article > img,
    .mb-task__icon {
        width: 58px;
        height: 58px;
    }

    .mb-task-ending {
        gap: 9px;
        padding: 11px 12px;
    }

    .mb-task-ending img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

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

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

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

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

    .mb-pagination {
        gap: 9px;
    }

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

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

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

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