/* 按下电源后，电脑发生了什么？ */

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

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

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

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

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

/* 总览 */

.boot-overview {
    display: grid;
    grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr;
    gap: 4px;
    align-items: center;
    margin-top: 14px;
}

.boot-overview article {
    min-width: 0;
    min-height: 170px;
    padding: 13px 7px;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.boot-overview__icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 18px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 26px;
}

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

.boot-overview p {
    margin: 0;
    color: #617296;
    font-size: 10px;
}

.boot-overview__arrow,
.boot-power__arrow,
.boot-firmware__arrow,
.boot-device__arrow,
.boot-os-flow__arrow,
.boot-system__arrow {
    color: #4f82ff;
    font-size: 21px;
    font-weight: 900;
    text-align: center;
}

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

.boot-key { background: #eaf5ff; }

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

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

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

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

/* 供电 */

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

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

.boot-power article > span {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    border-radius: 20px;
    background: #fff6df;
    color: #d58d00;
    font-size: 29px;
}

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

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

.boot-note { background: #fff8e5; }

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

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

/* 固件 */

.boot-firmware {
    display: grid;
    grid-template-columns: 1fr 46px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.boot-firmware__chip,
.boot-firmware__cpu {
    display: flex;
    min-height: 185px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
}

.boot-firmware__chip { background: #f3efff; }
.boot-firmware__cpu { background: #eef5ff; }

.boot-firmware__chip > span {
    color: #7654d6;
    font-size: 62px;
}

.boot-firmware__cpu img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

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

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

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

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

/* 初始化硬件 */

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

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

.boot-init__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 19px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 27px;
}

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

.boot-init p {
    margin: 0;
    color: #617296;
    font-size: 10px;
}

.boot-post {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef9f0;
}

.boot-post > span {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    color: #2b9d56;
    font-size: 25px;
}

.boot-story .boot-post h3 {
    margin: 0 0 4px;
    color: #188344;
    font-size: 15px;
}

.boot-post p { margin: 0; }

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

/* 启动设备 */

.boot-device {
    display: grid;
    grid-template-columns: 1.6fr 45px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.boot-device__choices {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.boot-device__choices article {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    background: #f9fbff;
}

.boot-device__choices i {
    color: #0752ff;
    font-size: 31px;
}

.boot-device__choices span {
    color: var(--article-heading-color);
    font-size: 12px;
    font-weight: 800;
}

.boot-device__selected {
    display: flex;
    min-height: 165px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border-radius: 15px;
    background: #eef9f0;
    text-align: center;
}

.boot-device__selected > span {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #2aa05a;
    font-size: 28px;
}

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

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

/* 加载操作系统 */

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

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

.boot-os-flow__badge,
.boot-system__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;
}

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

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

.boot-os-flow p {
    margin: 0;
    color: #607296;
    font-size: 11px;
}

.boot-key--kernel { background: #f3efff; }

/* 系统启动 */

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

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

.boot-system article > span:not(.boot-system__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;
}

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

.boot-system p {
    margin: 0;
    color: #607296;
    font-size: 10px;
}

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

.boot-finish img {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    object-fit: contain;
}

.boot-story .boot-finish h3 {
    margin: 0 0 4px;
    color: #0752ff;
    font-size: 15px;
}

.boot-finish p { margin: 0; }

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

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

    .boot-overview > .boot-overview__arrow { display: none; }

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

    .boot-system > .boot-system__arrow { display: none; }
}

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

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

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

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

    .boot-overview,
    .boot-power,
    .boot-firmware,
    .boot-device,
    .boot-os-flow,
    .boot-system {
        grid-template-columns: minmax(0,1fr);
        gap: 7px;
    }

    .boot-overview > .boot-overview__arrow,
    .boot-power__arrow,
    .boot-firmware__arrow,
    .boot-device__arrow,
    .boot-os-flow__arrow,
    .boot-system > .boot-system__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

    .boot-overview article,
    .boot-os-flow article,
    .boot-system article {
        min-height: auto;
        padding: 12px 9px;
    }

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

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

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

    .boot-device__choices {
        gap: 6px;
    }

    .boot-device__choices article {
        min-height: 95px;
    }

    .boot-finish {
        gap: 9px;
        padding: 11px 12px;
    }

    .boot-finish img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

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

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

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

    .boot-pagination { gap: 9px; }

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

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

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

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