/* 显卡为什么擅长画画？ */

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

.gpu-story * { box-sizing: border-box; }
.gpu-story img { display: block; max-width: 100%; }
.gpu-story p { margin: 0 0 12px; }
.gpu-story strong { color: var(--article-heading-color); }

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

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

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

/* GPU 核心作用 */

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

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

.gpu-role__icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    border-radius: 20px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 29px;
}

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

.gpu-role p {
    margin: 0;
    color: #617296;
    font-size: 12px;
}

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

.gpu-key { background: #eaf5ff; }

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

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

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

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

/* 像素与并行 */

.gpu-pixels {
    display: grid;
    grid-template-columns: 1fr 34px 1.2fr 34px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.gpu-pixels__screen,
.gpu-pixels__workers {
    display: flex;
    min-height: 175px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.gpu-pixels__screen { background: #eef5ff; }
.gpu-pixels__workers { background: #ecfaef; }

.gpu-pixels__screen > span,
.gpu-pixels__workers > span {
    font-size: 56px;
}

.gpu-pixels__screen > span { color: #0752ff; }
.gpu-pixels__workers > span { color: #289952; }

.gpu-pixels strong {
    margin-top: 7px;
    font-size: 14px;
}

.gpu-pixels small {
    margin-top: 4px;
    color: #71809f;
    font-size: 10px;
}

.gpu-pixels__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 14px;
    border-radius: 15px;
    background: #f7f8fc;
}

.gpu-pixels__grid span {
    aspect-ratio: 1;
    border-radius: 5px;
    background: linear-gradient(135deg, #7bb5ff, #7654d6);
}

.gpu-pixels__arrow {
    color: #4f82ff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.gpu-note { background: #fff8e5; }

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

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

/* CPU vs GPU */

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

.gpu-compare > div {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
}

.gpu-compare__cpu { background: #eef5ff; }
.gpu-compare__gpu { background: #f3efff; }

.gpu-compare__cpu img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.gpu-compare__gpu > span {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    color: #7654d6;
    font-size: 30px;
}

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

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

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

.gpu-team > span {
    color: #2a9b55;
    font-size: 28px;
}

.gpu-team p { margin: 0; }

/* 一帧画面 */

.gpu-frame {
    display: grid;
    grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr;
    gap: 5px;
    align-items: center;
    margin-top: 14px;
}

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

.gpu-frame__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;
}

.gpu-frame__icon,
.gpu-frame article > img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    margin: 12px auto 7px;
}

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

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

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

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

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

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

/* 显存 */

.gpu-vram {
    display: grid;
    grid-template-columns: 1fr 34px 1fr 34px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.gpu-vram__data,
.gpu-vram__memory,
.gpu-vram__gpu {
    display: flex;
    min-height: 175px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.gpu-vram__data { background: #fff0f4; }
.gpu-vram__memory { background: #f3efff; }
.gpu-vram__gpu { background: #eef5ff; }

.gpu-vram > div > span {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    font-size: 29px;
}

.gpu-vram__data > span { color: #df4d74; }
.gpu-vram__memory > span { color: #7654d6; }
.gpu-vram__gpu > span { color: #0752ff; }

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

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

.gpu-vram__arrow {
    color: #4f82ff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.gpu-note--vram { background: #f7f8fc; }

/* 其他用途 */

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

.gpu-other-jobs article {
    min-width: 0;
    padding: 14px 9px;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.gpu-other-jobs article > span {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 18px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 26px;
}

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

.gpu-other-jobs p {
    margin: 0;
    color: #617296;
    font-size: 11px;
}

.gpu-final-rule {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 13px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eaf5ff;
}

.gpu-final-rule img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
}

.gpu-final-rule p { margin: 0; }

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

@media (max-width: 900px) {
    .gpu-frame {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 9px;
    }
    .gpu-frame > .gpu-frame__arrow { display: none; }
}

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

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

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

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

    .gpu-role,
    .gpu-compare,
    .gpu-other-jobs {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

    .gpu-pixels,
    .gpu-vram {
        grid-template-columns: minmax(0,1fr);
        gap: 7px;
    }

    .gpu-pixels__arrow,
    .gpu-vram__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }

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

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

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

    .gpu-frame > .gpu-frame__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

    .gpu-frame article {
        min-height: auto;
        padding: 12px 9px;
    }

    .gpu-frame__icon,
    .gpu-frame article > img {
        width: 56px;
        height: 56px;
    }

    .gpu-final-rule {
        gap: 9px;
        padding: 11px 12px;
    }

    .gpu-final-rule img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

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

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

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

    .gpu-pagination { gap: 9px; }

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

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

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

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