/* 你原本的帖子样式 */
.communityDetail .TopicDetailLeftContainer__userPost {
    width: 100%;
}
.communityDetail .TopicDetailLeftContainer__articleContent {
    overflow: auto;
}


/* 🔥 禁用 Add Topic / Reply / Add Comment 按钮（无法点击） */
button[type="button"][class*="btn"],
a[class*="btn"][href*="/add-topic"],
a[class*="btn"][href*="/reply"],
button[type="button"][class*="reply"],
button[type="button"][class*="comment"] {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* 顶部提示条（你要的英文） */
#forum-notice {
    background: #d32f2f;
    color: #fff;
    padding: 14px 0;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
}

/* 仅针对 Community 菜单：默认白色 + 保留悬停变色 */
.Header__menuTab .Header__tabsTab#portal_tabCommunity a,
.Header__menuTab .Header__tabsTab#portal_tabCommunity a:link,
.Header__menuTab .Header__tabsTab#portal_tabCommunity a:visited,
.Header__menuTab .Header__tabsTab#portal_tabCommunity a:active {
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
}

/* 鼠标悬停时，自动继承主题的高亮颜色 */
.Header__menuTab .Header__tabsTab#portal_tabCommunity a:hover {
    color: inherit !important;
    color: var(--theme-highlight-color, #007bff) !important;
    text-decoration: none !important;
}

/* 1. 禁用 Add Topic 按钮 */
a[data-id="addTopic"],
a[href="/portal/en/community/topics/new"] {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* 2. 禁用 Add Comment 按钮 */
button[data-id*="save_comment_tempTopicComment"],
button:contains("Add Comment") {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* 额外：同时禁用所有 Button__btnFont 类型的按钮（兜底） */
button[class*="Button__btnFont"][class*="Button__primary"] {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}
