/* 硬盘把数据藏在哪里？ */

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

.storage-story * {
    box-sizing: border-box;
}

.storage-story img {
    display: block;
    max-width: 100%;
}

.storage-story p {
    margin: 0 0 12px;
}

.storage-story strong {
    color: var(--article-heading-color);
}

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

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

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

/* 数据为什么能留下 */

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

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

.storage-stay__memory {
    background: #f3efff;
}

.storage-stay__drive {
    background: #eef5ff;
}

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

.storage-stay__drive img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

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

.storage-stay p {
    margin: 0;
}

.storage-stay small {
    margin-top: 3px;
    color: #71809f;
    font-size: 11px;
}

.storage-stay__arrow {
    color: #4f82ff;
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

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

.storage-key {
    background: #eaf5ff;
}

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

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

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

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

/* 文件 -> 二进制 -> 存储 */

.storage-bits {
    display: grid;
    grid-template-columns: 1fr 40px 1.4fr 40px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.storage-bits__file,
.storage-bits__binary,
.storage-bits__saved {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
}

.storage-bits__file {
    background: #fff0f4;
}

.storage-bits__binary {
    background: #f7f8fc;
}

.storage-bits__saved {
    background: #eef5ff;
}

.storage-bits__file > span {
    color: #df4d74;
    font-size: 55px;
}

.storage-bits__saved img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.storage-bits strong {
    margin-top: 7px;
    font-size: 14px;
}

.storage-bits__binary code {
    color: #17376c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

.storage-bits__binary small {
    margin-top: 5px;
    color: #71809f;
    font-size: 10px;
}

.storage-bits__arrow {
    color: #4f82ff;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
}

.storage-note {
    background: #fff8e5;
}

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

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

/* HDD */

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

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

.storage-hdd__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;
}

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

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

.storage-hdd-flow {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #eef9f0;
}

.storage-hdd-flow span {
    padding: 7px 10px;
    border-radius: 10px;
    background: #fff;
    color: #315176;
    font-weight: 700;
}

.storage-hdd-flow b {
    color: #30975a;
}

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

/* SSD */

.storage-ssd {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
    gap: 6px;
    align-items: center;
    margin-top: 14px;
}

.storage-ssd > div:not(.storage-ssd__arrow) {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px;
    border-radius: 15px;
    text-align: center;
}

.storage-ssd__chip {
    background: #eef5ff;
}

.storage-ssd__state {
    background: #fff6df;
}

.storage-ssd__result {
    background: #f3efff;
}

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

.storage-ssd__chip > span {
    color: #0752ff;
}

.storage-ssd__state > span {
    color: #d58d00;
}

.storage-ssd__result > span {
    color: #7654d6;
}

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

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

.storage-ssd__arrow {
    color: #4f82ff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.storage-compare-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.storage-compare-box > div {
    padding: 13px 15px;
    border-radius: 14px;
    background: #f7f8fc;
}

.storage-story .storage-compare-box h3 {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0 0 4px;
    color: var(--article-heading-color);
    font-size: 14px;
}

.storage-compare-box p {
    margin: 0;
    font-size: 12px;
}

/* 文件大小 */

.storage-size {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

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

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

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

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

.storage-size-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 13px;
    color: #6b7d9e;
    font-size: 11px;
}

.storage-size-line__bar {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a9d3ff, #779cff, #7558da);
}

/* 存储 vs 内存 */

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

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

.storage-compare__memory {
    background: #f3efff;
}

.storage-compare__drive {
    background: #eef5ff;
}

.storage-story .storage-compare h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
    color: var(--article-heading-color);
    font-size: 16px;
}

.storage-compare__memory h3 i {
    color: #7654d6;
}

.storage-compare__drive h3 i {
    color: #0752ff;
}

.storage-compare ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

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

.storage-simple-rule > span {
    color: #e5a000;
    font-size: 28px;
}

.storage-simple-rule p {
    margin: 0;
}

/* 总结 */

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

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

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

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

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

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

/* 翻页 */

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

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

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

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

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

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

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

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

/* 平板 */

@media (max-width: 900px) {
    .storage-bits {
        grid-template-columns: minmax(0, 1fr);
    }

    .storage-bits__arrow {
        transform: rotate(90deg);
    }
}

/* 手机 */

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

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

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

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

    .storage-stay,
    .storage-ssd {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .storage-stay__arrow,
    .storage-ssd__arrow {
        transform: rotate(90deg);
        line-height: 1;
    }

    .storage-stay__memory,
    .storage-stay__drive,
    .storage-ssd > div:not(.storage-ssd__arrow) {
        min-height: auto;
        padding: 13px;
    }

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

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

    .storage-hdd,
    .storage-size,
    .storage-compare-box,
    .storage-compare {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .storage-hdd article,
    .storage-size article {
        padding: 12px 9px;
    }

    .storage-hdd__icon,
    .storage-size article > span {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

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

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

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

    .storage-pagination {
        gap: 9px;
    }

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

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

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

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