/* 屏幕是怎样显示画面的？ */

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

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

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

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

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

/* 像素 */

.screen-pixels {
    display: grid;
    grid-template-columns: 1fr 44px 1.4fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.screen-pixels__image,
.screen-pixels__zoom {
    display: flex;
    min-height: 195px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
}

.screen-pixels__image { background: #eef5ff; }
.screen-pixels__zoom { background: #f7f8fc; }

.screen-pixels__image > span {
    color: #0752ff;
    font-size: 67px;
}

.screen-pixels__grid {
    display: grid;
    grid-template-columns: repeat(5, 28px);
    gap: 4px;
    margin-bottom: 8px;
}

.screen-pixels__grid span {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7cb8ff, #7558da);
}

.screen-story .screen-pixels h3 {
    margin: 7px 0 4px;
    color: var(--article-heading-color);
    font-size: 16px;
}

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

.screen-pixels__arrow,
.screen-rgb__plus,
.screen-flow__arrow {
    color: #4f82ff;
    font-size: 27px;
    font-weight: 900;
    text-align: center;
}

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

.screen-key { background: #eaf5ff; }

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

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

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

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

/* RGB */

.screen-rgb {
    display: grid;
    grid-template-columns: 1fr 42px 1.8fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.screen-rgb__pixel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 16px;
    border-radius: 16px;
    background: #f7f8fc;
}

.screen-rgb__pixel strong {
    grid-column: 1 / 4;
    margin-top: 7px;
    text-align: center;
}

.screen-rgb__sub {
    display: flex;
    height: 100px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.screen-rgb__sub--r { background: #ef4c5d; }
.screen-rgb__sub--g { background: #39a85b; }
.screen-rgb__sub--b { background: #3a6be8; }

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

.screen-rgb__mix article {
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid #e2ebff;
    border-radius: 13px;
    background: #f9fbff;
    text-align: center;
}

.screen-rgb__dot {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 6px;
    border-radius: 50%;
    border: 1px solid #dfe5f0;
}

.screen-rgb__dot--white { background: #fff; }
.screen-rgb__dot--yellow { background: #ffd938; }
.screen-rgb__dot--blue { background: #3a6be8; }

.screen-rgb__mix strong {
    display: block;
    font-size: 11px;
}

.screen-rgb__mix small {
    display: block;
    margin-top: 3px;
    color: #71809f;
    font-size: 10px;
}

.screen-note { background: #fff8e5; }

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

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

/* LCD vs OLED */

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

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

.screen-types__lcd { background: #eef5ff; }
.screen-types__oled { background: #f3efff; }

.screen-story .screen-types h3 {
    margin: 0 0 10px;
    color: var(--article-heading-color);
    font-size: 16px;
}

.screen-types__flow {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.screen-types__box {
    padding: 6px 8px;
    border-radius: 9px;
    background: #fff;
    color: #314873;
    font-size: 11px;
    font-weight: 700;
}

.screen-types__flow b {
    color: #4f82ff;
}

.screen-types p {
    margin: 0;
}

.screen-types__oled-pixels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.screen-types__oled-pixels span {
    aspect-ratio: 1;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff4f68, #42c968, #3b6ce8);
}

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

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

/* 画面送屏幕 */

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

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

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

.screen-flow__icon,
.screen-flow article > img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 12px auto 7px;
}

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

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

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

.screen-note--signal { background: #eef9f0; }
.screen-note--signal .screen-note__icon { font-size: 28px; }

/* 帧与刷新 */

.screen-frames {
    margin-top: 14px;
    padding: 15px;
    border-radius: 15px;
    background: #f7f8fc;
}

.screen-frames__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.screen-frames__row article {
    position: relative;
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
}

.screen-frames__row article > span {
    position: absolute;
    top: 7px;
    left: 7px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0752ff;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.screen-frames__row i {
    color: #0752ff;
    font-size: 42px;
}

.screen-frames p {
    margin: 10px 0 0;
    text-align: center;
    font-weight: 700;
}

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

.screen-refresh > div {
    padding: 14px 15px;
    border-radius: 14px;
    background: #eef5ff;
}

.screen-refresh strong {
    display: block;
    color: #0752ff;
    font-size: 21px;
}

.screen-refresh span {
    color: #617296;
    font-size: 11px;
}

/* 分辨率 */

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

.screen-resolution > div {
    min-width: 0;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.screen-resolution__low { background: #fff6df; }
.screen-resolution__high { background: #eef5ff; }

.screen-resolution__grid {
    display: grid;
    gap: 4px;
    width: 170px;
    margin: 0 auto 9px;
}

.screen-resolution__grid--low {
    grid-template-columns: repeat(4,1fr);
}

.screen-resolution__grid--high {
    grid-template-columns: repeat(6,1fr);
}

.screen-resolution__grid span {
    aspect-ratio: 1;
    border-radius: 3px;
    background: linear-gradient(135deg, #78b4ff, #7558da);
}

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

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

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

.screen-resolution-tip > span {
    color: #2b9d56;
    font-size: 27px;
}

.screen-resolution-tip p { margin: 0; }

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

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

    .screen-flow > .screen-flow__arrow { display: none; }
}

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

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

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

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

    .screen-pixels,
    .screen-rgb {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

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

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

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

    .screen-rgb__mix {
        gap: 6px;
    }

    .screen-types,
    .screen-refresh,
    .screen-resolution {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

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

    .screen-flow > .screen-flow__arrow {
        display: block;
        transform: rotate(90deg);
        line-height: 1;
    }

    .screen-flow article {
        min-height: auto;
        padding: 12px 9px;
    }

    .screen-flow__icon,
    .screen-flow article > img {
        width: 54px;
        height: 54px;
    }

    .screen-frames__row {
        gap: 5px;
    }

    .screen-frames__row article {
        min-height: 86px;
    }

    .screen-frames__row i {
        font-size: 34px;
    }

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

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

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

    .screen-pagination { gap: 9px; }

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

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

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

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