/* Editorial category cards for the WeChat Apple theme. */

body.category.wechat-apple {
    --archive-card-ink: #172033;
    --archive-card-copy: #475569;
    --archive-card-muted: #8a97aa;
    --archive-card-line: rgba(15, 23, 42, .085);
    --archive-card-soft: #f6f8fa;
}

body.category.wechat-apple .archive_main {
    padding-bottom: 110px;
    background: #fff;
}

body.category.wechat-apple .archive_list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px !important;
    margin: 0 !important;
    padding: 28px 40px 56px !important;
}

body.category.wechat-apple .archive_list::before,
body.category.wechat-apple .archive_list::after {
    display: none !important;
}

body.category.wechat-apple .archive_list > .article-card {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.category.wechat-apple .article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--archive-card-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px -26px rgba(15, 23, 42, .5);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.category.wechat-apple .article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, .16);
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .58);
}

body.category.wechat-apple .article-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8edf2;
}

body.category.wechat-apple .article-card__media-link {
    position: absolute;
    inset: 0;
    display: block;
}

body.category.wechat-apple .article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}

body.category.wechat-apple .article-card:hover .article-card__media img {
    transform: scale(1.035);
}

body.category.wechat-apple .article-card__overlay {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 42%;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(13, 18, 27, .67);
    border-top: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(7px) saturate(1.15);
    -webkit-backdrop-filter: blur(7px) saturate(1.15);
    pointer-events: none;
}

body.category.wechat-apple .article-card__category {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.2;
}

body.category.wechat-apple .article-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 680;
    line-height: 1.42;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.category.wechat-apple .article-card__title a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

body.category.wechat-apple .article-card__title a:hover {
    color: #fff;
}

body.category.wechat-apple .article-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 16px 13px;
}

body.category.wechat-apple .article-card__summary {
    display: -webkit-box;
    overflow: hidden;
    min-height: 72px;
    margin: 0;
    color: var(--archive-card-copy);
    font-size: 14px;
    line-height: 1.72;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.category.wechat-apple .article-card__byline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--archive-card-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.category.wechat-apple .article-card__author {
    max-width: 48%;
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.category.wechat-apple .article-card__byline time::before {
    content: "·";
    margin-right: 8px;
    color: #c2cad5;
}

body.category.wechat-apple .article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--archive-card-line);
}

body.category.wechat-apple .article-card__stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.category.wechat-apple .article-card__stats > span,
body.category.wechat-apple .article-card__stats a.up_like,
body.category.wechat-apple .article-card__stats a.up_like i {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    color: var(--archive-card-muted) !important;
    background: transparent !important;
    font-size: 12px;
    line-height: 1;
}

body.category.wechat-apple .article-card__stats i {
    color: #94a3b8 !important;
    font-size: 14px;
}

body.category.wechat-apple .article-card__stats a.up_like:hover,
body.category.wechat-apple .article-card__stats a.up_like:hover i {
    color: var(--archive-card-ink) !important;
}

body.category.wechat-apple .article-card__read {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 50%;
}

body.category.wechat-apple .article-card__read:hover {
    color: var(--archive-card-ink);
    background: var(--archive-card-soft);
    transform: translateX(2px);
}

body.category.wechat-apple .arc_pagenav {
    padding-inline: 40px;
}

@media (max-width: 700px) {
    body.category.wechat-apple .archive_list {
        grid-template-columns: 1fr;
        gap: 16px !important;
        padding: 20px 16px 92px !important;
    }

    body.category.wechat-apple .article-card__media {
        aspect-ratio: 16 / 10;
    }

    body.category.wechat-apple .article-card__overlay {
        min-height: 40%;
        padding: 16px;
    }

    body.category.wechat-apple .article-card__title {
        font-size: 20px;
        line-height: 1.38;
    }

    body.category.wechat-apple .article-card__summary {
        min-height: 0;
        font-size: 14.5px;
        line-height: 1.75;
        -webkit-line-clamp: 2;
    }

    body.category.wechat-apple .article-card__body {
        padding: 15px 16px 13px;
    }

    body.category.wechat-apple .arc_pagenav {
        padding-inline: 16px;
    }
}

@media (max-width: 380px) {
    body.category.wechat-apple .article-card__title {
        font-size: 18px;
    }

    body.category.wechat-apple .article-card__byline {
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.category.wechat-apple .article-card,
    body.category.wechat-apple .article-card * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
