/* 双击一个程序后发生了什么？ */

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

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

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

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

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

/* 双击输入 */

.open-input-flow {
    display: grid;
    grid-template-columns: 1fr 30px 1fr 30px 1fr;
    gap: 6px;
    align-items: center;
    margin-top: 14px;
}

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

.open-input-flow__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;
}

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

.open-input-flow p {
    margin: 0;
    color: #617296;
    font-size: 11px;
}

.open-input-flow__arrow,
.open-target__arrow,
.open-file-process__arrow,
.open-load-flow__arrow,
.open-execute__arrow,
.open-window-flow__arrow,
.open-pages__arrow {
    color: #4f82ff;
    font-size: 23px;
    font-weight: 900;
    text-align: center;
}

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

.open-key { background: #eaf5ff; }

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

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

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

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

/* 找到程序 */

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

.open-target__icon,
.open-target__shortcut,
.open-target__file {
    display: flex;
    min-height: 175px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.open-target__icon { background: #f3efff; }
.open-target__shortcut { background: #fff6df; }
.open-target__file { background: #eef5ff; }

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

.open-target__icon > span { color: #7654d6; }
.open-target__shortcut > span { color: #d58d00; }

.open-target__file img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

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

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

.open-note { background: #fff8e5; }

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

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

/* 程序文件 -> 进程 */

.open-file-process {
    display: grid;
    grid-template-columns: 1fr 38px 1.35fr 38px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.open-file-process__file,
.open-file-process__os,
.open-file-process__process {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.open-file-process__file { background: #eef5ff; }
.open-file-process__os { background: #f3efff; }
.open-file-process__process { background: #eef9f0; }

.open-file-process > div > span {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    font-size: 30px;
}

.open-file-process__file > span { color: #0752ff; }
.open-file-process__os > span { color: #7654d6; }
.open-file-process__process > span { color: #2a9b55; }

.open-story .open-file-process h3 {
    margin: 8px 0 4px;
    color: var(--article-heading-color);
    font-size: 14px;
}

.open-file-process p {
    margin: 0;
    color: #617296;
    font-size: 11px;
}

.open-file-process small {
    margin-top: 3px;
    color: #7886a0;
    font-size: 10px;
}

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

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

/* 加载 */

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

.open-load-flow article {
    position: relative;
    min-width: 0;
    min-height: 205px;
    padding: 14px 8px;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.open-load-flow__badge,
.open-window-flow__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;
}

.open-load-flow__icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin: 12px auto 7px;
    border-radius: 19px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 27px;
}

.open-story .open-load-flow h3 {
    margin: 0 0 4px;
    color: var(--article-heading-color);
    font-size: 13px;
}

.open-load-flow p {
    margin: 0;
    color: #607296;
    font-size: 10px;
}

.open-note--memory { background: #eef9f0; }

/* CPU 执行 */

.open-execute {
    display: grid;
    grid-template-columns: 1fr 38px 1fr 38px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.open-execute__ready,
.open-execute__scheduler,
.open-execute__cpu {
    display: flex;
    min-height: 175px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.open-execute__ready { background: #eef9f0; }
.open-execute__scheduler { background: #f3efff; }
.open-execute__cpu { background: #eef5ff; }

.open-execute__ready > span,
.open-execute__scheduler > span {
    font-size: 58px;
}

.open-execute__ready > span { color: #2a9b55; }
.open-execute__scheduler > span { color: #7654d6; }

.open-execute__cpu img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

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

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

.open-code-example {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #f7f8fc;
}

.open-code-example > span {
    color: #0752ff;
    font-size: 28px;
}

.open-code-example p { margin: 0; }

/* 窗口出现 */

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

.open-window-flow article {
    position: relative;
    min-width: 0;
    min-height: 190px;
    padding: 14px 8px;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.open-window-flow article > span:not(.open-window-flow__badge) {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin: 12px auto 7px;
    border-radius: 18px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 26px;
}

.open-window-flow article > img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin: 12px auto 7px;
}

.open-story .open-window-flow h3 {
    margin: 0 0 4px;
    color: var(--article-heading-color);
    font-size: 13px;
}

.open-window-flow p {
    margin: 0;
    color: #607296;
    font-size: 10px;
}

.open-key--window { background: #eaf5ff; }

/* 按需分页 */

.open-pages {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.open-pages__disk,
.open-pages__memory {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

.open-pages__disk { background: #eef5ff; }
.open-pages__memory { background: #f3efff; }

.open-pages__disk > img,
.open-pages__memory-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 7px;
}

.open-pages__disk > img { object-fit: contain; }

.open-pages__memory-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff;
    color: #7654d6;
    font-size: 30px;
}

.open-story .open-pages h3 {
    margin: 0 0 9px;
    color: var(--article-heading-color);
    font-size: 15px;
}

.open-pages__blocks {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 5px;
}

.open-pages__blocks span {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #fff;
    color: #315176;
    font-size: 11px;
    font-weight: 800;
}

.open-pages__blocks--memory {
    grid-template-columns: repeat(4,1fr);
}

.open-pages__blocks--memory span:nth-child(3),
.open-pages__blocks--memory span:nth-child(4) {
    color: #9aa6ba;
    border: 1px dashed #bfc9d9;
    background: transparent;
}

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

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

    .open-load-flow > .open-load-flow__arrow,
    .open-window-flow > .open-window-flow__arrow {
        display: none;
    }
}

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

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

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

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

    .open-input-flow,
    .open-target,
    .open-file-process,
    .open-load-flow,
    .open-execute,
    .open-window-flow,
    .open-pages {
        grid-template-columns: minmax(0,1fr);
        gap: 7px;
    }

    .open-input-flow__arrow,
    .open-target__arrow,
    .open-file-process__arrow,
    .open-load-flow > .open-load-flow__arrow,
    .open-execute__arrow,
    .open-window-flow > .open-window-flow__arrow,
    .open-pages__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

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

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

    .open-load-flow article,
    .open-window-flow article {
        min-height: auto;
        padding: 12px 9px;
    }

    .open-target__icon,
    .open-target__shortcut,
    .open-target__file,
    .open-file-process__file,
    .open-file-process__os,
    .open-file-process__process,
    .open-execute__ready,
    .open-execute__scheduler,
    .open-execute__cpu {
        min-height: auto;
        padding: 13px;
    }

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

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

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

    .open-pagination { gap: 9px; }

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

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

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

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