/* 一秒互联公司  www.yimiaonet.com：社区页面 2.1.11 统一宽度、帖子交互与作者信息排版。 */
body.community-modern-page {
    background: #f5f6f8 !important;
}

body.community-modern-page:not(.community-home-page) .community-modern.community-forum-2110 {
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 20px 0 48px !important;
    background: transparent !important;
}

body.community-modern-page .community-modern-layout,
body.community-modern-page .community-modern-detail-layout {
    width: 100%;
}

body.community-modern-page .community-modern-feed,
body.community-modern-page .community-modern-posts {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

body.community-modern-page .community-modern-post {
    display: grid;
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

body.community-modern-page .community-modern-post *,
body.community-modern-page .community-modern-post *::before,
body.community-modern-page .community-modern-post *::after {
    animation: none !important;
}

body.community-modern-page .community-modern-post:hover {
    background: #f8fbff;
    transform: none !important;
}

body.community-modern-page .community-modern-post:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(23, 105, 224, .24);
    outline-offset: -3px;
}

body.community-modern-page .community-modern-post h3 {
    color: #1f2937;
    font-size: 17px;
    line-height: 1.5;
}

body.community-modern-page .community-modern-post-main > p {
    margin: 7px 0 12px;
    color: #5f6b7a;
    font-size: 13px;
    line-height: 1.7;
}

body.community-modern-page .community-modern-post-author {
    min-height: 32px;
}

body.community-modern-page .community-modern-post-cover {
    width: 150px;
    height: 96px;
    flex-basis: 150px;
}

body.community-modern-page .community-modern-post-cover img,
body.community-modern-page .community-modern-post-cover:hover img {
    transform: none !important;
    transition: none !important;
}

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

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

body.community-modern-page .community-modern-author-card {
    overflow: hidden;
    padding: 24px 20px 20px;
    text-align: center;
}

body.community-modern-page .community-author-avatar-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
}

body.community-modern-page .community-author-avatar-wrap > img {
    display: block;
    width: 84px !important;
    max-width: 84px !important;
    height: 84px !important;
    border: 3px solid #eaf2ff;
    border-radius: 50%;
    background: #f2f5f9;
    object-fit: cover;
}

body.community-modern-page .community-author-avatar-wrap > span {
    position: absolute;
    right: 0;
    bottom: 1px;
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #1769e0;
    box-shadow: 0 3px 8px rgba(23, 105, 224, .24);
}

body.community-modern-page .community-author-avatar-wrap > span svg {
    width: 13px;
    height: 13px;
}

body.community-modern-page .community-author-cert {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border-radius: 4px;
    color: #1769e0;
    background: #eef5ff;
    font-size: 11px;
    font-weight: 600;
}

body.community-modern-page .community-author-cert svg {
    width: 14px;
    height: 14px;
}

body.community-modern-page .community-modern-author-card h2 {
    margin: 10px 0 5px;
    color: #1f2937;
    font-size: 19px;
    line-height: 1.35;
}

body.community-modern-page .community-modern-author-card p {
    min-height: 42px;
    margin: 0 0 16px;
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
}

body.community-modern-page .community-modern-author-card > a {
    width: 100%;
}

body.community-modern-page .community-modern-actions button[data-community-reaction="like"].is-active {
    border-color: #f0b5b5 !important;
    color: #d92d20 !important;
    background: #fff1f0 !important;
}

body.community-modern-page .community-modern-actions button[data-community-reaction="like"].is-active svg {
    fill: currentColor;
}

@media (max-width: 900px) {
    body.community-modern-page .community-modern-detail-layout {
        display: block;
    }

    body.community-modern-page .community-modern-detail-side {
        margin-top: 14px;
    }
}

@media (max-width: 680px) {
    body.community-modern-page:not(.community-home-page) .community-modern.community-forum-2110 {
        width: calc(100% - 20px) !important;
        padding-top: 12px !important;
    }

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

    body.community-modern-page .community-modern-post-cover {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.community-modern-page .community-modern-post,
    body.community-modern-page .community-modern-post * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
