.content-page {
    border-radius: var(--radius-xl);
    padding: clamp(24px, 3.6vw, 48px);
}

.content-head {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(111, 129, 168, .12);
}

.content-title-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.content-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(104, 91, 255, .09);
    color: var(--primary);
    font-size: 25px;
    font-weight: 800;
}

.content-head h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.content-intro {
    max-width: 780px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.content-body {
    padding-top: 28px;
}

.content-section + .content-section {
    margin-top: 28px;
}

.content-section h2 {
    margin: 0 0 8px;
    font-size: clamp(21px, 2.2vw, 28px);
    letter-spacing: -.03em;
}

.content-section p {
    margin: 0 0 14px;
    max-width: 1080px;
    color: #4d5e7d;
    line-height: 1.72;
}

.code-block {
    position: relative;
    margin-top: 12px;
    overflow: auto;
    border-radius: 16px;
    background: #20242d;
    border: 1px solid rgba(255,255,255,.05);
    box-shadow: inset 0 1px rgba(255,255,255,.03), 0 12px 28px rgba(30, 40, 61, .10);
}

.code-block pre {
    margin: 0;
    min-width: max-content;
    padding: 22px 54px 22px 24px;
    color: #e8edf7;
    font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    tab-size: 4;
}

.copy-code {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: #d9dfeb;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.copy-code:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-1px);
}

.copy-code.is-copied {
    color: #9bf2c6;
}

.back-to-subject {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 28px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 620px) {
    .content-page {
        padding: 20px 15px;
        border-radius: 19px;
    }

    .content-title-row {
        gap: 12px;
    }

    .content-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .code-block pre {
        padding: 18px 46px 18px 16px;
        font-size: 12px;
    }
}

.content-section code:not(.code-block code) {
    padding: 2px 7px;
    border-radius: 7px;
    background: rgba(92, 101, 255, .08);
    color: #3f4db7;
    font: .92em "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.content-list {
    max-width: 1080px;
    margin: 8px 0 0;
    padding-left: 22px;
    color: #4d5e7d;
    line-height: 1.72;
}

.content-list li + li {
    margin-top: 9px;
}

.download-content-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.57);
    border: 1px solid rgba(111,129,168,.13);
}

.download-content-card > div {
    display: grid;
    gap: 5px;
}

.download-content-card strong {
    font-size: 17px;
}

.download-content-card span,
.content-note {
    color: var(--text-soft);
    line-height: 1.55;
}

.content-download-button {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7167ff, #574cff);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(91, 78, 255, .20);
}

.content-download-button:hover {
    transform: translateY(-1px);
}

.content-note {
    margin-top: 14px !important;
    font-size: 13px;
}

@media (max-width: 620px) {
    .download-content-card {
        align-items: stretch;
        flex-direction: column;
    }

    .content-download-button {
        text-align: center;
    }
}

.content-figure {
    margin: 16px 0 20px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .54);
    border: 1px solid rgba(111, 129, 168, .13);
    box-shadow: 0 10px 28px rgba(35, 47, 75, .07);
}

.content-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    border-radius: 12px;
}

.content-figure figcaption {
    padding: 10px 4px 2px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.content-figure-wide img {
    max-height: none;
}


.content-callout {
    margin-top: 12px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(101, 88, 255, .075);
    border: 1px solid rgba(101, 88, 255, .13);
    color: #42516f;
    line-height: 1.65;
}

.content-callout strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}

.content-callout p {
    margin: 0;
}
