/* 为什么电脑会有桌面和窗口？ */

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

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

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

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

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

/* 文字界面 vs 图形界面 */

.gui-before-after {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.gui-before-after__text,
.gui-before-after__graphic {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
}

.gui-before-after__text { background: #f7f8fc; }
.gui-before-after__graphic { background: #eef5ff; }

.gui-before-after > div > span {
    color: #0752ff;
    font-size: 62px;
}

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

.gui-before-after p {
    margin: 0;
    color: #617296;
    font-size: 12px;
}

.gui-before-after__arrow,
.gui-manager__arrow {
    color: #4f82ff;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

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

.gui-key { background: #eaf5ff; }

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

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

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

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

/* GUI 元素 */

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

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

.gui-elements__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;
}

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

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

.gui-note { background: #fff8e5; }

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

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

/* 桌面 */

.gui-desktop {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.gui-desktop__screen {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border: 10px solid #26344f;
    border-radius: 16px;
    background: linear-gradient(145deg, #a9d4ff, #d9edff);
}

.gui-desktop__top {
    display: flex;
    gap: 10px;
    padding: 18px;
}

.gui-desktop__icon-box {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffffc9;
    color: #0752ff;
    font-size: 21px;
}

.gui-desktop__window {
    position: absolute;
    left: 25%;
    top: 70px;
    width: 58%;
    height: 155px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px #44658c33;
}

.gui-desktop__titlebar {
    display: flex;
    gap: 5px;
    padding: 8px;
    background: #edf3fb;
}

.gui-desktop__titlebar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8ba4c5;
}

.gui-desktop__content {
    display: flex;
    height: 115px;
    align-items: center;
    justify-content: center;
}

.gui-desktop__content i {
    color: #6b57d5;
    font-size: 52px;
}

.gui-desktop__bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px;
    border-radius: 10px;
    background: #ffffffbf;
}

.gui-desktop__bar span {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #7caaf0;
}

.gui-desktop__explain {
    display: grid;
    gap: 9px;
}

.gui-desktop__explain article {
    padding: 13px 14px;
    border-radius: 13px;
    background: #f9fbff;
    border: 1px solid #e1ebff;
}

.gui-desktop__explain strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

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

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

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

/* 窗口用途 */

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

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

.gui-window-use article > span {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 18px;
    background: #f3efff;
    color: #7654d6;
    font-size: 26px;
}

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

.gui-window-use p {
    margin: 0;
    color: #617296;
    font-size: 10px;
}

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

.gui-window-example > div {
    padding: 14px;
    border-radius: 14px;
    background: #eef5ff;
}

.gui-window-card {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px #47658a22;
}

.gui-window-card__bar {
    padding: 8px 10px;
    background: #edf3fb;
    color: #405679;
    font-size: 11px;
    font-weight: 800;
}

.gui-window-card__body {
    display: flex;
    height: 100px;
    align-items: center;
    justify-content: center;
}

.gui-window-card__body i {
    color: #0752ff;
    font-size: 40px;
}

/* 窗口管理 */

.gui-manager {
    display: grid;
    grid-template-columns: 1.4fr 35px 1.2fr 35px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.gui-manager__apps {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
}

.gui-manager__apps article {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #e1ebff;
    border-radius: 13px;
    background: #f9fbff;
}

.gui-manager__apps i {
    color: #0752ff;
    font-size: 28px;
}

.gui-manager__apps span {
    font-size: 10px;
    font-weight: 800;
}

.gui-manager__wm,
.gui-manager__screen {
    display: flex;
    min-height: 165px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.gui-manager__wm { background: #f3efff; }
.gui-manager__screen { background: #eef5ff; }

.gui-manager__wm > span {
    color: #7654d6;
    font-size: 54px;
}

.gui-manager__screen img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

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

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

/* 多窗口 */

.gui-many {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.gui-many__apps {
    display: grid;
    gap: 7px;
}

.gui-many__apps article {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e1ebff;
    border-radius: 12px;
    background: #f9fbff;
}

.gui-many__apps i {
    width: 24px;
    color: #0752ff;
    text-align: center;
}

.gui-many__apps span {
    font-size: 11px;
    font-weight: 800;
}

.gui-many__compose {
    display: flex;
    min-height: 165px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    background: #f3efff;
    text-align: center;
}

.gui-many__compose > span {
    color: #7654d6;
    font-size: 52px;
}

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

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

.gui-many__display {
    padding: 12px;
    border-radius: 15px;
    background: #eef5ff;
}

.gui-many__screen {
    position: relative;
    min-height: 190px;
    border: 8px solid #26344f;
    border-radius: 12px;
    background: #cfe5ff;
}

.gui-many__win {
    position: absolute;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 14px #48658a2b;
}

.gui-many__win--a {
    left: 14px;
    top: 18px;
    width: 62%;
    height: 88px;
}

.gui-many__win--b {
    right: 12px;
    top: 55px;
    width: 50%;
    height: 78px;
}

.gui-many__win--c {
    left: 40px;
    bottom: 14px;
    width: 54%;
    height: 52px;
}

/* 不同设备 */

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

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

.gui-devices article > span {
    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;
}

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

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

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

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

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

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

@media (max-width: 900px) {
    .gui-manager,
    .gui-many {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

    .gui-manager__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }
}

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

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

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

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

    .gui-before-after,
    .gui-desktop {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

    .gui-before-after__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }

    .gui-elements,
    .gui-window-use,
    .gui-devices {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

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

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

    .gui-desktop__screen {
        min-height: 250px;
    }

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

    .gui-manager,
    .gui-many {
        grid-template-columns: minmax(0,1fr);
        gap: 7px;
    }

    .gui-manager__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }

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

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

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

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

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

    .gui-pagination { gap: 9px; }

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

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

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

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