/* 键盘和鼠标怎样告诉电脑我们的想法？ */

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

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

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

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

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

/* 总流程 */

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

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

.km-main-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;
}

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

.km-main-flow p {
    margin: 0;
    color: #617296;
    font-size: 12px;
}

.km-main-flow__arrow,
.km-keyboard__arrow,
.km-pixels__arrow,
.km-software-flow__arrow,
.km-full__arrow {
    color: #4f82ff;
    font-size: 23px;
    font-weight: 900;
    text-align: center;
}

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

.km-key { background: #eaf5ff; }

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

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

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

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

/* 键盘 */

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

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

.km-keyboard__badge,
.km-full__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;
}

.km-keyboard__icon,
.km-full__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;
}

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

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

.km-note { background: #fff8e5; }

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

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

/* 鼠标 */

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

.km-mouse__device {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 16px;
    background: #eef5ff;
    text-align: center;
}

.km-mouse__device > span {
    color: #0752ff;
    font-size: 70px;
}

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

.km-mouse__process {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
}

.km-mouse__process article {
    display: flex;
    min-height: 125px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #e3ecff;
    border-radius: 14px;
    background: #f9fbff;
    text-align: center;
}

.km-mouse__process span {
    color: #0752ff;
    font-size: 30px;
}

.km-mouse__process strong {
    font-size: 13px;
}

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

.km-relative > div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 14px;
}

.km-relative__wrong { background: #fff2f5; }
.km-relative__right { background: #effaf2; }

.km-relative span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
}

.km-relative__wrong span { background: #e85273; }
.km-relative__right span { background: #2aa05a; }

.km-relative p { margin: 0; }

.km-key--mouse { background: #eef9f0; }
.km-key--mouse .km-key h3 { color: #188344; }

/* 连接 */

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

.km-connection article {
    min-width: 0;
    padding: 16px;
    border-radius: 15px;
    text-align: center;
}

.km-connection__usb { background: #eef5ff; }
.km-connection__wireless { background: #f3efff; }

.km-connection article > span {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 21px;
    background: #fff;
    font-size: 31px;
}

.km-connection__usb > span { color: #0752ff; }
.km-connection__wireless > span { color: #7654d6; }

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

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

.km-report {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7f8fc;
}

.km-report > span {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    color: #0752ff;
    font-size: 25px;
}

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

.km-report p { margin: 0; }

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

/* 操作系统和程序 */

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

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

.km-software-flow article > span {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 19px;
    background: #eaf3ff;
    color: #0752ff;
    font-size: 27px;
}

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

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

.km-two-results {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 12px;
}

.km-two-results > div {
    min-width: 0;
    padding: 14px 15px;
    border-radius: 14px;
}

.km-two-results > div:first-child { background: #eef5ff; }
.km-two-results > div:last-child { background: #f3efff; }

.km-story .km-two-results h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 6px;
    color: var(--article-heading-color);
    font-size: 14px;
}

.km-two-results p { margin: 0; }

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

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

/* 完整流程 */

.km-full {
    display: grid;
    grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr 22px 1fr;
    gap: 4px;
    align-items: center;
    margin-top: 14px;
}

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

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

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

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

.km-note--final { background: #eef9f0; }
.km-note--final .km-note__icon { font-size: 28px; }

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

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

    .km-full > .km-full__arrow { display: none; }
}

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

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

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

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

    .km-main-flow,
    .km-keyboard,
    .km-software-flow {
        grid-template-columns: minmax(0,1fr);
        gap: 7px;
    }

    .km-main-flow__arrow,
    .km-keyboard__arrow,
    .km-software-flow__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }

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

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

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

    .km-mouse__device {
        min-height: 135px;
    }

    .km-mouse__process {
        gap: 7px;
    }

    .km-mouse__process article {
        min-height: 105px;
    }

    .km-relative,
    .km-connection,
    .km-two-results {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

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

    .km-full > .km-full__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

    .km-full article {
        min-height: auto;
        padding: 12px 9px;
    }

    .km-full__icon,
    .km-full article > img {
        width: 54px;
        height: 54px;
    }

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

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

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

    .km-pagination { gap: 9px; }

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

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

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

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