/* MIIGO_COMMUNITY_FRONT_V1_20260623 */
.miigo-v4-page-community .miigo-community-v4 {
    padding: 10px 14px 88px;
    color: #111827;
}

.miigo-v4-page-community .miigo-community-v4-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px;
}

.miigo-v4-page-community .miigo-community-v4-head strong {
    font-size: 22px;
    font-weight: 950;
}

.miigo-v4-page-community .miigo-community-v4-head span {
    font-size: 12px;
    color: #64748b;
}

.miigo-v4-page-community .miigo-community-v4-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.miigo-v4-page-community .miigo-community-v4-tabs::-webkit-scrollbar {
    display: none;
}

.miigo-v4-page-community .miigo-community-v4-tab {
    border: 0;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(226,232,240,.88);
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 14px;
}

.miigo-v4-page-community .miigo-community-v4-tab.is-active {
    background: #111827;
    color: #fff;
}

.miigo-v4-page-community .miigo-community-v4-list {
    display: grid;
    gap: 12px;
}

.miigo-v4-page-community .miigo-community-v4-card {
    border: 0;
    text-align: left;
    width: 100%;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.06);
    padding: 12px;
    color: inherit;
}

.miigo-v4-page-community .miigo-community-v4-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.miigo-v4-page-community .miigo-community-v4-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    flex: 0 0 auto;
}

.miigo-v4-page-community .miigo-community-v4-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.miigo-v4-page-community .miigo-community-v4-user-meta {
    min-width: 0;
    flex: 1;
}

.miigo-v4-page-community .miigo-community-v4-user-meta b {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.miigo-v4-page-community .miigo-community-v4-user-meta small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.miigo-v4-page-community .miigo-community-v4-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 950;
    margin: 0 0 6px;
}

.miigo-v4-page-community .miigo-community-v4-summary {
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.miigo-v4-page-community .miigo-community-v4-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0 10px;
}

.miigo-v4-page-community .miigo-community-v4-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #e5e7eb;
}

.miigo-v4-page-community .miigo-community-v4-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.miigo-v4-page-community .miigo-community-v4-empty,
.miigo-v4-page-community .miigo-community-v4-loading {
    padding: 28px 18px;
    text-align: center;
    color: #64748b;
    background: #fff;
    border-radius: 18px;
    font-size: 14px;
}

.miigo-v4-page-community .miigo-community-v4-fab {
    position: fixed;
    right: calc(50% - min(100vw, 430px) / 2 + 18px);
    bottom: 84px;
    z-index: 80;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 950;
    font-size: 15px;
    padding: 13px 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.22);
}

.miigo-v4-page-community .miigo-community-v4-mask {
    position: fixed;
    inset: 0;
    z-index: 99970;
    background: rgba(15,23,42,.38);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.miigo-v4-page-community .miigo-community-v4-panel {
    width: min(100vw, 430px);
    max-height: 86vh;
    overflow: auto;
    background: #f6f6f6;
    border-radius: 22px 22px 0 0;
    padding: 16px 14px 24px;
    box-sizing: border-box;
}

.miigo-v4-page-community .miigo-community-v4-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.miigo-v4-page-community .miigo-community-v4-panel-head strong {
    font-size: 18px;
    font-weight: 950;
}

.miigo-v4-page-community .miigo-community-v4-close {
    border: 0;
    background: #e5e7eb;
    color: #111827;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
}

.miigo-v4-page-community .miigo-community-v4-form {
    display: grid;
    gap: 10px;
}

.miigo-v4-page-community .miigo-community-v4-form input,
.miigo-v4-page-community .miigo-community-v4-form textarea {
    border: 0;
    outline: 0;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    font-size: 14px;
    color: #111827;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.16);
    box-sizing: border-box;
}

.miigo-v4-page-community .miigo-community-v4-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.miigo-v4-page-community .miigo-community-v4-submit {
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 950;
    padding: 12px;
    font-size: 15px;
}

.miigo-v4-page-community .miigo-community-v4-tip {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.miigo-v4-page-community .miigo-community-v4-detail-content {
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 14px;
    color: #334155;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
}

.miigo-v4-page-community .miigo-community-v4-comments {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.miigo-v4-page-community .miigo-community-v4-comment {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}

.miigo-v4-page-community .miigo-community-v4-comment b {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.miigo-v4-page-community .miigo-community-v4-comment p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

/* MIIGO_COMMUNITY_VISIBLE_MOUNT_20260623 */
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community[data-miigo-community-app="1"] > .miigo-shell-hero,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community[data-miigo-community-app="1"] > .miigo-shell-actions,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community[data-miigo-community-app="1"] > .miigo-shell-tags,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community[data-miigo-community-app="1"] > .miigo-shell-cards,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community[data-miigo-community-app="1"] > .miigo-shell-note {
    display: none !important;
}

#miigo-v4-empty-shell-v1[data-channel="community"] [data-miigo-community-visible-root="1"] {
    position: relative;
    z-index: 3;
}

/* MIIGO_COMMUNITY_HIDE_EMPTY_SHELL_LEFTOVER_20260623 */
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-hero,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-actions,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-tags,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-cards,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-note,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-readonly-note,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-v2cfix3-main,
#miigo-v4-empty-shell-v1[data-channel="community"] .miigo-shell-page.miigo-shell-channel-community .miigo-shell-slot:not(.miigo-shell-search) {
    display: none !important;
}

/* MIIGO_COMMUNITY_FOLLOW_BUTTON_20260623 */
.miigo-v4-page-community .miigo-community-v4-follow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.miigo-v4-page-community .miigo-community-v4-follow.is-followed {
    background: #e5e7eb;
    color: #475569;
}

/* MIIGO_COMMUNITY_PROFILE_LINK_20260623 */
.miigo-v4-page-community .miigo-community-v4-profile-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    margin-right: 6px;
    text-decoration: none;
}


/* MIIGO_COMMUNITY_PUBLISH_DIRECT_20260623 */
.miigo-v4-page-community .miigo-community-v4-publish-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    min-width: 44px;
    padding: 0 10px;
    margin-left: 8px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}


/* MIIGO_COMMUNITY_COMMENT_ENTRY_20260623 */
.miigo-v4-page-community .miigo-community-v4-comment-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

/* MIIGO_COMMUNITY_HOME_COMMENT_PREVIEW_20260623 */
.miigo-v4-page-community .miigo-community-v4-comments-preview {
    margin-top: 9px;
    padding: 9px 10px;
    border-radius: 14px;
    background: #f8fafc;
    display: grid;
    gap: 6px;
}

.miigo-v4-page-community .miigo-community-v4-comment-preview-item {
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.miigo-v4-page-community .miigo-community-v4-comment-preview-item b {
    color: #0f172a;
    font-weight: 950;
}

.miigo-v4-page-community .miigo-community-v4-comment-preview-item span {
    word-break: break-word;
}

/* MIIGO_COMMUNITY_COMMENT_PREVIEW_TEXT_MATCH_POST_20260623 */
.miigo-v4-page-community .miigo-community-v4-comments-preview {
    margin-top: 8px;
    padding: 8px 10px;
}

.miigo-v4-page-community .miigo-community-v4-comment-preview-item {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    font-weight: 400;
}

.miigo-v4-page-community .miigo-community-v4-comment-preview-item b {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.miigo-v4-page-community .miigo-community-v4-comment-preview-item span {
    color: #334155;
    font-size: 14px;
    font-weight: 400;
}

/* MIIGO_COMMUNITY_COMMENT_PREVIEW_FORCE_CONTENT_TEXT_20260623
 * 评论预览字体强制跟帖子正文一致，不跟标题/昵称样式。
 */
html body .miigo-community-v4-comments-preview {
    margin-top: 7px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

html body .miigo-community-v4-comments-preview .miigo-community-v4-comment-preview-item,
html body .miigo-community-v4-comments-preview .miigo-community-v4-comment-preview-item b,
html body .miigo-community-v4-comments-preview .miigo-community-v4-comment-preview-item span {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #64748b !important;
    font-weight: 400 !important;
}

html body .miigo-community-v4-comments-preview .miigo-community-v4-comment-preview-item b {
    margin-right: 2px !important;
}
