/* 一秒互联公司  www.yimiaonet.com：社区参考站排版与头像横向展示，仅作用于社区页面。 */
body.community-modern-page {
    --community-reference-ink: #172033;
    --community-reference-body: #536176;
    --community-reference-muted: #8793a5;
    --community-reference-line: #dfe6ef;
    --community-reference-blue: #1769e0;
    --community-reference-bg: #f3f6fa;
    background: var(--community-reference-bg) !important;
    color: var(--community-reference-ink) !important;
}

body.community-modern-page .community-modern {
    width: min(1220px, calc(100% - 32px));
    max-width: 1220px;
    padding: 18px 0 48px;
    margin: 0 auto;
}

body.community-modern-page .community-modern-layout,
body.community-modern-page .community-modern-detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
}

body.community-modern-page .community-modern-sidebar,
body.community-modern-page .community-modern-detail-side {
    min-width: 0;
}

body.community-home-page .community-modern {
    width: min(1220px, calc(100% - 32px)) !important;
    max-width: 1220px !important;
    padding: 0 0 44px !important;
}

body.community-home-page .community-forum-header {
    position: relative !important;
    top: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.community-home-page .community-forum-welcome {
    margin-top: 12px;
    min-height: 84px;
    padding: 14px 18px;
    border-color: #dbe5f0;
    box-shadow: 0 6px 18px rgba(32, 61, 103, .05);
}

body.community-home-page .community-forum-showcase {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, .82fr);
    gap: 12px;
    margin-top: 12px;
}

body.community-home-page .community-forum-feature {
    height: 302px;
    border-color: #cfdbea;
    box-shadow: 0 10px 24px rgba(37, 63, 101, .08);
}

body.community-home-page .community-forum-feature > div {
    left: 34px;
    width: min(520px, calc(100% - 68px));
}

body.community-home-page .community-forum-feature h1 {
    margin-top: 10px;
    font-size: clamp(24px, 2.2vw, 32px);
    letter-spacing: 0;
}

body.community-home-page .community-forum-feature p {
    max-width: 470px;
    color: rgba(255, 255, 255, .86);
}

body.community-home-page .community-forum-announcements {
    box-shadow: 0 8px 20px rgba(37, 63, 101, .05);
}

body.community-home-page .community-forum-channels {
    margin-top: 12px;
    box-shadow: 0 5px 16px rgba(37, 63, 101, .04);
}

body.community-home-page .community-modern-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
    margin-top: 12px;
}

body.community-home-page .community-modern-feed,
body.community-home-page .community-modern-side-card {
    border-color: var(--community-reference-line);
    box-shadow: 0 5px 16px rgba(37, 63, 101, .035);
}

body.community-home-page .community-modern-post {
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 16px;
    padding: 18px 20px;
}

body.community-home-page .community-modern-post-labels > span {
    min-height: 23px;
    padding: 0 7px;
    border: 1px solid #cdd5df;
    border-radius: 3px;
    background: #fff;
    color: #39475a;
    font-size: 10px;
    font-weight: 700;
    line-height: 21px;
}

body.community-home-page .community-modern-post-labels > span.is-official {
    border-color: #9dc2f6;
    color: #155fc7;
    background: #f0f6ff;
}

body.community-home-page .community-modern-post-labels > span.is-pinned {
    border-color: #ef9c9c;
    color: #c73b3b;
    background: #fff3f3;
}

body.community-home-page .community-modern-post-labels > span.is-must-read {
    border-color: #8b95a4;
    color: #253143;
    background: #f1f3f5;
}

body.community-home-page .community-modern-post-labels > span.is-recommended {
    border-color: #e8a4a0;
    color: #c64c45;
    background: #fff6f4;
}

body.community-home-page .community-modern-post-labels > span.is-featured {
    border-color: #e7c27e;
    color: #a66a08;
    background: #fff9ea;
}

body.community-home-page .community-modern-post h3 a {
    color: #172033;
}

body.community-home-page .community-modern-post-main > p {
    color: #536176;
}

body.community-home-page .community-modern-post-author {
    min-width: 0;
    gap: 12px;
    color: #7b8797;
}

body.community-home-page .community-modern-post-author > a {
    min-width: 150px;
}

body.community-home-page .community-modern-post-author > a > span > small {
    display: block;
    color: #7b8797;
}

body.community-home-page .community-modern-post-author > a > span > small .community-level-badge,
body.community-home-page .community-modern-post-author > a > span > small .community-official-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #6b7789;
}

body.community-home-page .community-modern-post-author time,
body.community-home-page .community-modern-metrics {
    color: #68768a;
    font-size: 11px;
}

body.community-home-page .community-modern-metrics {
    gap: 12px;
}

body.community-home-page .community-modern-metrics span {
    color: #68768a;
}

body.community-home-page .community-modern-post-tags a {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #e0e5ec;
    background: #f8fafc;
    color: #657286;
}

body.community-modern-page .community-avatar-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 9px;
    min-height: 58px;
    align-items: center;
    overflow-x: visible;
    padding: 4px 2px 8px;
}

body.community-modern-page .community-avatar-chip {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #edf3fb;
    box-shadow: 0 0 0 1px #d8e0eb, 0 4px 10px rgba(30, 55, 90, .09);
    transition: transform .16s ease, box-shadow .16s ease;
}

body.community-modern-page .community-avatar-chip:hover,
body.community-modern-page .community-avatar-chip:focus-visible {
    z-index: 4;
    box-shadow: 0 0 0 2px #7ea9e7, 0 8px 18px rgba(23, 105, 224, .2);
    transform: translateY(-2px);
    outline: none;
}

body.community-modern-page .community-avatar-chip > img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

body.community-modern-page .community-avatar-rank {
    position: absolute;
    right: -4px;
    bottom: -3px;
    z-index: 2;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #8290a4;
    font-size: 9px;
    font-weight: 700;
}

body.community-modern-page .community-point-strip .community-avatar-chip:nth-child(1) .community-avatar-rank {
    background: #e39a22;
}

body.community-modern-page .community-point-strip .community-avatar-chip:nth-child(2) .community-avatar-rank {
    background: #8b96a8;
}

body.community-modern-page .community-point-strip .community-avatar-chip:nth-child(3) .community-avatar-rank {
    background: #b77e55;
}

body.community-modern-page .community-avatar-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 5;
    display: grid;
    min-width: 142px;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid #d6e0ec;
    border-radius: 6px;
    color: #fff;
    background: #172033;
    box-shadow: 0 10px 22px rgba(16, 32, 55, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .14s ease, transform .14s ease;
    white-space: nowrap;
}

body.community-modern-page .community-avatar-tooltip::after {
    position: absolute;
    right: auto;
    left: 50%;
    bottom: -5px;
    width: 9px;
    height: 9px;
    border-right: 1px solid #d6e0ec;
    border-bottom: 1px solid #d6e0ec;
    background: #172033;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

body.community-modern-page .community-avatar-chip:hover .community-avatar-tooltip,
body.community-modern-page .community-avatar-chip:focus-visible .community-avatar-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

body.community-modern-page .community-avatar-tooltip strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
}

body.community-modern-page .community-avatar-tooltip small {
    color: #c8d5e5;
    font-size: 10px;
}

body.community-modern-page .community-avatar-empty {
    color: #8793a5;
    font-size: 12px;
}

body.community-home-page .community-ranking-card,
body.community-home-page .community-moderator-card {
    overflow: visible;
}

body.community-home-page .community-ranking-card > header,
body.community-home-page .community-moderator-card > header,
body.community-home-page .community-modern-side-card > header {
    margin-bottom: 8px;
}

body.community-home-page .community-modern-sidebar > .community-modern-side-card {
    padding: 14px;
}

body.community-home-page .community-modern-sidebar > .community-modern-side-card header strong {
    color: #172033;
}

body.community-home-page .community-modern-sidebar > .community-modern-side-card header small {
    color: #8793a5;
}

body.marketplace-standalone-page .market-home-page {
    width: min(1360px, calc(100% - 36px));
    padding-top: 14px;
}

body.marketplace-standalone-page .market-home-first-screen {
    grid-template-columns: 236px minmax(0, 1fr) 276px;
    gap: 12px;
}

body.marketplace-standalone-page .market-home-categories,
body.marketplace-standalone-page .market-home-account,
body.marketplace-standalone-page .market-home-rankings > article,
body.marketplace-standalone-page .market-home-product-section,
body.marketplace-standalone-page .market-home-stores,
body.marketplace-standalone-page .market-home-recommendations {
    border-color: #dfe6ef;
    border-radius: 6px;
    box-shadow: 0 5px 16px rgba(30, 55, 90, .045);
}

body.marketplace-standalone-page .market-home-hero,
body.marketplace-standalone-page .market-home-hero-slide,
body.marketplace-standalone-page .market-home-hero-slide > img {
    min-height: 0;
    height: clamp(270px, 25vw, 310px);
}

body.marketplace-standalone-page .market-home-promos {
    gap: 9px;
}

body.marketplace-standalone-page .market-home-promos > a,
body.marketplace-standalone-page .market-home-promos img {
    min-height: 76px;
    height: 76px;
}

body.marketplace-standalone-page .market-home-rankings {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

body.marketplace-standalone-page .market-home-rankings > article {
    min-height: 330px;
    height: 330px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.marketplace-standalone-page .market-home-rankings > article > header {
    min-height: 62px;
    padding: 10px 12px;
}

body.marketplace-standalone-page .market-home-rankings > article > div {
    flex: 1;
    overflow: hidden;
    padding: 6px 12px 10px;
}

body.marketplace-standalone-page .market-home-rankings > article > div > a {
    min-height: 48px;
    padding: 6px 0;
    grid-template-columns: 20px 32px minmax(0, 1fr);
    gap: 7px;
}

body.marketplace-standalone-page .market-home-rankings > article > div > a > b {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
}

body.marketplace-standalone-page .market-home-rankings > article > div > a img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

body.marketplace-standalone-page .market-home-rankings > article > div strong {
    color: #27354a;
    font-size: 12px;
}

body.marketplace-standalone-page .market-home-rankings > article > div small,
body.marketplace-standalone-page .market-home-rankings > article > div em {
    font-size: 10px;
}

body.marketplace-standalone-page .market-home-product-section,
body.marketplace-standalone-page .market-home-stores,
body.marketplace-standalone-page .market-home-recommendations {
    margin-top: 12px;
}

body.marketplace-standalone-page .market-home-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

body.marketplace-standalone-page .market-home-product-card {
    min-height: 264px;
    border-radius: 6px;
    border-color: #e1e7ef;
    box-shadow: 0 4px 12px rgba(30, 55, 90, .035);
}

body.marketplace-standalone-page .market-home-product-cover {
    height: 126px;
}

body.marketplace-standalone-page .market-home-product-body {
    gap: 4px;
    padding: 10px 11px 12px;
}

body.marketplace-standalone-page .market-home-product-body > strong {
    color: #172033;
    font-size: 14px;
}

body.marketplace-standalone-page .market-home-product-body > small,
body.marketplace-standalone-page .market-home-product-body > i {
    color: #68768a;
    font-size: 11px;
}

body.marketplace-standalone-page .market-home-product-body > b {
    color: #d84a35;
    font-size: 16px;
}

@media (max-width: 1100px) {
    body.community-modern-page .community-modern-layout,
    body.community-modern-page .community-modern-detail-layout,
    body.community-home-page .community-modern-layout {
        grid-template-columns: minmax(0, 1fr) 248px;
    }

    body.marketplace-standalone-page .market-home-first-screen {
        grid-template-columns: 214px minmax(0, 1fr);
    }

    body.marketplace-standalone-page .market-home-account {
        grid-column: 1 / -1;
    }

    body.marketplace-standalone-page .market-home-rankings,
    body.marketplace-standalone-page .market-home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.community-modern-page .community-modern-layout,
    body.community-modern-page .community-modern-detail-layout,
    body.community-home-page .community-modern-layout {
        grid-template-columns: 1fr;
    }

    body.community-home-page .community-forum-feature {
        height: 270px;
    }

    body.marketplace-standalone-page .market-home-page {
        width: calc(100% - 24px);
    }

    body.marketplace-standalone-page .market-home-first-screen {
        grid-template-columns: 1fr;
    }

    body.marketplace-standalone-page .market-home-categories,
    body.marketplace-standalone-page .market-home-account {
        grid-column: auto;
    }

    body.marketplace-standalone-page .market-home-product-grid,
    body.marketplace-standalone-page .market-home-rankings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.community-modern-page .community-modern,
    body.community-home-page .community-modern {
        width: calc(100% - 20px) !important;
    }

    body.community-home-page .community-forum-feature {
        height: 248px;
    }

    body.community-home-page .community-forum-feature > div {
        left: 20px;
        width: calc(100% - 40px);
    }

    body.community-home-page .community-forum-feature h1 {
        font-size: 22px;
    }

    body.community-home-page .community-modern-post {
        display: block;
        padding: 16px 14px;
    }

    body.community-home-page .community-modern-post-author > a {
        min-width: 0;
        width: 100%;
    }

    body.community-home-page .community-modern-metrics {
        width: 100%;
        margin-left: 40px;
    }

    body.marketplace-standalone-page .market-home-product-grid,
    body.marketplace-standalone-page .market-home-rankings {
        grid-template-columns: 1fr;
    }

    body.marketplace-standalone-page .market-home-rankings > article {
        height: auto;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.community-modern-page .community-avatar-chip,
    body.community-modern-page .community-avatar-tooltip,
    body.marketplace-standalone-page .market-home-product-card {
        transition-duration: .01ms !important;
    }
}
