/* Homepage article cards */
.airjournal-home .air-post-list {
    gap: 20px;
}

.airjournal-home .air-page-number {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    aspect-ratio: 1 / 1;
}

@media (min-width: 861px) {
    .airjournal-home .air-shell {
        padding-bottom: 0 !important;
    }

    .airjournal-home .air-side-stack {
        position: sticky;
        top: 102px;
        align-self: start;
    }

    body.airjournal-home .footer {
        margin-top: 12px !important;
        padding-top: 20px !important;
        padding-bottom: 24px !important;
    }
}

.airjournal-home .home-post-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 220px;
    min-height: 220px !important;
    max-height: 220px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 38%) minmax(0, 62%);
    overflow: hidden !important;
    border: 1px solid #d7dee8;
    border-radius: 16px;
    background: #fbfcfe;
    box-shadow: 0 10px 28px rgba(42, 55, 78, .08);
    color: #172033;
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease;
}

.airjournal-home .home-post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.airjournal-home .home-post-card-image-right::before {
    background: linear-gradient(90deg,
        rgba(248, 250, 253, .96) 0%,
        rgba(248, 250, 253, .9) 48%,
        rgba(248, 250, 253, .68) 63%,
        rgba(248, 250, 253, .18) 76%,
        rgba(248, 250, 253, 0) 100%);
}

.airjournal-home .home-post-card-image-left::before {
    background: linear-gradient(90deg,
        rgba(248, 250, 253, 0) 0%,
        rgba(248, 250, 253, .18) 24%,
        rgba(248, 250, 253, .68) 37%,
        rgba(248, 250, 253, .9) 52%,
        rgba(248, 250, 253, .96) 100%);
}

.airjournal-home .home-post-atmosphere {
    position: absolute;
    inset: -34px;
    z-index: 0;
    display: block;
    overflow: hidden;
    opacity: .92;
    pointer-events: none;
}

.airjournal-home .home-post-atmosphere[hidden] {
    display: none !important;
}

.airjournal-home .home-post-atmosphere img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: blur(16px) saturate(.92) brightness(1.02);
    transform: scale(1.08);
}

@media (min-width: 769px) {
    .airjournal-home .home-post-card-image-left {
        grid-template-columns: minmax(0, 38%) minmax(0, 62%);
    }

    .airjournal-home .home-post-card-image-left .home-post-thumbnail {
        grid-column: 1;
        grid-row: 1;
        width: 108%;
        clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
    }

    .airjournal-home .home-post-card-image-left .home-post-content {
        grid-column: 2;
        grid-row: 1;
        padding: 28px 34px 22px 28px;
    }

    .airjournal-home .home-post-card-image-right {
        grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    }

    .airjournal-home .home-post-card-image-right .home-post-thumbnail {
        grid-column: 2;
        grid-row: 1;
        width: 108%;
        margin-left: -8%;
        clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    }

    .airjournal-home .home-post-card-image-right .home-post-thumbnail::after {
        background: none;
    }

    .airjournal-home .home-post-card-image-right .home-post-content {
        grid-column: 1;
        grid-row: 1;
        padding: 28px 28px 22px 34px;
    }
}
@media (hover: hover) and (pointer: fine) {
    /* 触摸端不套用悬停/按压背景：手指点过之后 :hover 会残留，看起来像点完仍高亮。
       桌面端 (hover: hover) 成立，样式照常生效。 */
.airjournal-home .home-post-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2e2;
    box-shadow: 0 18px 38px rgba(42, 55, 78, .12);
}
}


.airjournal-home .home-post-card:focus-visible {
    outline: 3px solid rgba(73, 104, 242, .55);
    outline-offset: 4px;
}

.airjournal-home .home-post-thumbnail {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.airjournal-home .home-post-thumbnail[hidden] {
    display: none !important;
}

.airjournal-home .home-post-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.airjournal-home .home-post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.88) contrast(.96);
    transform: scale(1.01);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}

@media (hover: hover) and (pointer: fine) {


.airjournal-home .home-post-card:hover .home-post-thumbnail img {
    filter: saturate(.98) contrast(1);
    transform: scale(1.035);
}


}

.airjournal-home .home-post-content {
    position: relative;
    z-index: 3;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    padding: 28px 34px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.airjournal-home .home-post-card-no-thumbnail {
    grid-template-columns: minmax(0, 1fr);
    background:
        radial-gradient(circle at 76% 0%, rgba(79, 134, 232, .09), transparent 44%),
        linear-gradient(128deg, #fbfcfe 0%, #f5f8fc 54%, #edf2f8 100%);
}

.airjournal-home .home-post-card-no-thumbnail::before {
    background: linear-gradient(128deg,
        rgba(248, 250, 253, .2),
        rgba(248, 250, 253, .08));
}

.airjournal-home .home-post-card-no-thumbnail .home-post-content {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 42px;
    padding-right: 42px;
}

.airjournal-home .home-post-title,
.airjournal-home .home-post-title a {
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    color: #172033 !important;
    font-size: 21px;
    font-weight: 720;
    line-height: 1.35;
    letter-spacing: .02em;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.airjournal-home .home-post-title {
    margin: 0 0 12px;
}

.airjournal-home .home-post-summary {
    margin: 0 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #536174 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.78 !important;
    letter-spacing: .01em;
    text-align: left;
    text-overflow: ellipsis !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    max-height: calc(1.78em * 4) !important;
}

.airjournal-home .home-post-meta {
    min-width: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    overflow: hidden;
    color: #6f7c8e;
    font-size: 12px;
    font-weight: 620;
    line-height: 1;
    white-space: nowrap;
}

.airjournal-home .home-post-meta-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.airjournal-home .home-post-meta-item i {
    color: #4f86e8;
    font-size: 12px;
}

.airjournal-home .home-post-category {
    overflow: hidden;
}

.airjournal-home .home-post-category > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.airjournal-home .home-post-meta-divider {
    width: 1px;
    height: 13px;
    flex: 0 0 1px;
    background: rgba(111, 124, 142, .34);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card {
    border-color: var(--air-line) !important;
    background: var(--air-surface-solid) !important;
    box-shadow: 0 14px 34px rgba(14, 18, 24, .2) !important;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card-image-right::before {
    background: linear-gradient(90deg,
        rgba(44, 51, 62, .98) 0%,
        rgba(44, 51, 62, .84) 48%,
        rgba(44, 51, 62, .44) 68%,
        rgba(44, 51, 62, 0) 100%);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-card-image-left::before {
    background: linear-gradient(90deg,
        rgba(44, 51, 62, 0) 0%,
        rgba(44, 51, 62, .44) 32%,
        rgba(44, 51, 62, .84) 52%,
        rgba(44, 51, 62, .98) 100%);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-atmosphere {
    opacity: .68;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-atmosphere img {
    filter: blur(24px) saturate(.94) brightness(.82) contrast(1.04);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-thumbnail {
    z-index: 2;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-thumbnail img {
    filter: saturate(.94) brightness(.82) contrast(1.04);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-thumbnail::after {
    background: linear-gradient(90deg, rgba(35, 41, 49, .04), rgba(44, 51, 62, .06) 66%, rgba(44, 51, 62, .56));
}

@media (min-width: 769px) {
    html[data-blog-theme="dark"] .airjournal-home .home-post-card-image-right .home-post-thumbnail::after {
        background: linear-gradient(90deg, rgba(44, 51, 62, .56), rgba(44, 51, 62, .06) 34%, rgba(35, 41, 49, .04));
    }
}

html[data-blog-theme="dark"] .airjournal-home .home-post-title,
html[data-blog-theme="dark"] .airjournal-home .home-post-title a {
    color: var(--air-ink) !important;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-summary {
    color: var(--air-muted) !important;
}

html[data-blog-theme="dark"] .airjournal-home .home-post-meta {
    color: var(--air-soft);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-meta-item i {
    color: var(--air-primary);
}

html[data-blog-theme="dark"] .airjournal-home .home-post-meta-divider {
    background: var(--air-line);
}
@media (hover: hover) and (pointer: fine) {
    /* 触摸端不套用悬停/按压背景：手指点过之后 :hover 会残留，看起来像点完仍高亮。
       桌面端 (hover: hover) 成立，样式照常生效。 */
html[data-blog-theme="dark"] .airjournal-home .home-post-card:hover {
    border-color: rgba(83, 157, 253, .32) !important;
    background: #323e50 !important;
    box-shadow: 0 20px 46px rgba(14, 18, 24, .28) !important;
}
}


html[data-blog-theme="dark"] .airjournal-home .home-post-card-no-thumbnail {
    background:
        radial-gradient(circle at 76% 0%, rgba(83, 157, 253, .13), transparent 42%),
        linear-gradient(128deg, #232931 0%, #2c333e 54%, #3d4654 100%) !important;
}

@media (max-width: 768px) {
    .airjournal-home .air-page-number {
        flex-basis: 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
    }

    .airjournal-home .air-shell {
        width: calc(100% - 32px) !important;
        padding-top: 22px !important;
    }

    .airjournal-home .air-post-list {
        gap: 14px;
    }

    .airjournal-home .home-post-card {
        grid-template-columns: minmax(0, 1fr);
        border-color: #d7dee8;
        border-radius: 16px !important;
        background: #fbfcfe !important;
        box-shadow: 0 8px 24px rgba(42, 55, 78, .08);
    }

    .airjournal-home .home-post-card::before {
        display: none;
    }

    .airjournal-home .home-post-atmosphere {
        display: none;
    }

    .airjournal-home .home-post-card-mobile-featured {
        height: 316px;
        min-height: 316px !important;
        max-height: 316px !important;
        grid-template-rows: 170px minmax(0, 1fr);
    }

    .airjournal-home .home-post-card-mobile-compact {
        height: 136px;
        min-height: 136px !important;
        max-height: 136px !important;
        grid-template-columns: minmax(0, 1fr) clamp(122px, 34vw, 140px);
        column-gap: 0;
    }

    .airjournal-home .home-post-thumbnail {
        position: relative;
        inset: auto;
        z-index: 0;
        width: 100%;
        height: 100%;
        display: block;
        grid-row: 1;
        border-radius: 0;
        pointer-events: none;
    }

    .airjournal-home .home-post-card-mobile-featured .home-post-thumbnail {
        grid-column: 1;
    }

    .airjournal-home .home-post-card-mobile-compact .home-post-thumbnail {
        grid-column: 2;
        width: auto;
        height: auto;
        margin: 10px 10px 10px 0;
        border-radius: 12px;
    }

    .airjournal-home .home-post-thumbnail::after {
        display: none;
    }

    .airjournal-home .home-post-thumbnail img {
        width: 100%;
        height: 100%;
        filter: saturate(.92) contrast(.98) brightness(1.02);
        transform: scale(1.01);
    }


    @media (hover: hover) and (pointer: fine) {


    .airjournal-home .home-post-card:hover .home-post-thumbnail img {
        width: 100%;
        height: 100%;
        filter: saturate(.92) contrast(.98) brightness(1.02);
        transform: scale(1.01);
    }


    }

    .airjournal-home .home-post-card-no-thumbnail {
        background: #f5f8fc !important;
    }

    .airjournal-home .home-post-card-mobile-featured.home-post-card-no-thumbnail {
        height: 176px;
        min-height: 176px !important;
        max-height: 176px !important;
        grid-template-rows: minmax(0, 1fr);
    }

    .airjournal-home .home-post-card-mobile-compact.home-post-card-no-thumbnail {
        grid-template-columns: minmax(0, 1fr);
    }

    .airjournal-home .home-post-content {
        grid-column: 1;
        grid-row: 1;
        z-index: 2;
    }

    .airjournal-home .home-post-card-mobile-featured .home-post-content {
        grid-row: 2;
        padding: 15px 18px 14px;
    }

    .airjournal-home .home-post-card-mobile-compact .home-post-content {
        padding: 14px 10px 12px 18px;
    }

    .airjournal-home .home-post-card-mobile-featured.home-post-card-no-thumbnail .home-post-content,
    .airjournal-home .home-post-card-mobile-compact.home-post-card-no-thumbnail .home-post-content {
        grid-row: 1;
        padding: 18px;
    }

    .airjournal-home .home-post-title,
    .airjournal-home .home-post-title a {
        display: -webkit-box !important;
        font-weight: 680;
        letter-spacing: .02em;
        text-align: left;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 1 !important;
    }

    .airjournal-home .home-post-card-mobile-featured .home-post-title,
    .airjournal-home .home-post-card-mobile-featured .home-post-title a {
        font-size: 18px;
        line-height: 1.35;
        max-height: 1.35em !important;
        overflow: hidden !important;
    }

    .airjournal-home .home-post-card-mobile-featured .home-post-title {
        margin-bottom: 7px;
    }

    .airjournal-home .home-post-card-mobile-compact .home-post-title,
    .airjournal-home .home-post-card-mobile-compact .home-post-title a {
        font-size: 15.5px;
        line-height: 1.4;
        max-height: 1.4em !important;
        overflow: hidden !important;
    }

    .airjournal-home .home-post-card-mobile-compact .home-post-title {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }

    .airjournal-home .home-post-card-mobile-featured .home-post-summary {
        font-size: 13px;
        font-weight: 450;
        line-height: 1.65 !important;
        text-align: left;
        -webkit-line-clamp: 3 !important;
        max-height: calc(1.65em * 3) !important;
    }

    .airjournal-home .home-post-card-mobile-compact .home-post-summary {
        font-size: 12.5px;
        font-weight: 450;
        line-height: 1.55 !important;
        text-align: left;
        -webkit-line-clamp: 3 !important;
        max-height: calc(1.55em * 3) !important;
    }

    .airjournal-home .home-post-meta {
        justify-content: flex-start;
        gap: 6px;
        font-size: 11px;
        font-weight: 550;
    }

    .airjournal-home .home-post-meta-item {
        gap: 3px;
    }

    .airjournal-home .home-post-card-mobile-compact .home-post-meta {
        font-size: 10.5px;
    }
@media (hover: hover) and (pointer: fine) {
    /* 触摸端不套用悬停/按压样式：手指点过之后 :hover 会残留，看起来像点完仍高亮。
       桌面端 (hover: hover) 成立，样式照常生效。嵌套 @media 是合法 CSS，
       与外层的宽度条件同时成立才生效。 */
.airjournal-home .home-post-card:hover {
        transform: none;
        border-color: #d7dee8;
        box-shadow: 0 8px 24px rgba(42, 55, 78, .08);
    }
}


    @media (hover: hover) and (pointer: fine) {



    .airjournal-home .home-post-card:active {
        transform: scale(.99);
    }



    }

    html[data-blog-theme="dark"] .airjournal-home .home-post-card {
        border-color: rgba(148, 163, 184, .18) !important;
        border-radius: 14px !important;
        background: var(--air-surface-solid) !important;
        box-shadow: 0 10px 24px rgba(14, 18, 24, .22) !important;
    }
@media (hover: hover) and (pointer: fine) {
    /* 触摸端不套用悬停/按压样式：手指点过之后 :hover 会残留，看起来像点完仍高亮。
       桌面端 (hover: hover) 成立，样式照常生效。嵌套 @media 是合法 CSS，
       与外层的宽度条件同时成立才生效。 */
html[data-blog-theme="dark"] .airjournal-home .home-post-card:hover {
        border-color: rgba(148, 163, 184, .18) !important;
        background: var(--air-surface-solid) !important;
        box-shadow: 0 10px 24px rgba(14, 18, 24, .22) !important;
    }
}


    html[data-blog-theme="dark"] .airjournal-home .home-post-thumbnail::after {
        display: none;
    }

    html[data-blog-theme="dark"] .airjournal-home .home-post-card-no-thumbnail {
        background: linear-gradient(135deg, #232931, #323e50) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .airjournal-home .home-post-card,
    .airjournal-home .home-post-thumbnail img {
        transition: none !important;
    }
}
