/* ========== 讨论/文章页面深色模式补充样式 ========== */

/* 文章元信息（作者、时间、标签） */
.theme p b,
.theme p b a {
    color: var(--text-primary);
}
.theme img[src*="gravatar"] {
    filter: brightness(0.9);
}
/* 评论区域 */
.theme .ui.comments {
    background: transparent;
}
.theme .ui.comments .comment .author {
    color: var(--link-color);
}
.theme .ui.comments .comment .metadata span {
    color: var(--text-secondary);
}
.theme .ui.comments .comment .text {
    color: var(--text-primary);
}
.theme .ui.comments .comment .actions a {
    color: var(--comment-action-color);
}
.theme .ui.comments .comment .actions a:hover {
    color: var(--comment-action-hover);
}
/* 评论头像边框 */
.theme .ui.comments .comment .avatar img {
    border-color: var(--border-color);
}

/* 回复表单 */
.theme .ui.reply.form {
    background: var(--bg-page);
}
.theme .ui.reply.form textarea {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.theme .ui.reply.form textarea:focus {
    background: var(--bg-elevated);
    color: var(--white-primary);
}

/* 模态框（删除评论/文章）—— 复用 problem 中的样式 */
.theme .ui.basic.modal,
.theme .ui.modal {
    background: var(--bg-page);
    color: var(--text-primary);
}
.theme .ui.basic.modal .header,
.theme .ui.modal .header {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.theme .ui.basic.modal .content {
    background: var(--bg-page);
}
.theme .ui.basic.modal .actions {
    background: var(--bg-page);
    border-color: var(--border-color);
}
.theme .ui.basic.modal .actions .button {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.theme .ui.basic.modal .actions .red.button {
    background: var(--accent-red);
    color: var(--white-primary);
}
.theme .ui.basic.modal .actions .green.button {
    background: var(--accent-green);
    color: var(--white-primary);
}

/* ========== 讨论/文章页面深色模式补充样式（修复版） ========== */
.theme .ui.comments .comment .text,
.theme .ui.comments .comment .content .text,
.theme .ui.comments .comment .font-content {
    color: var(--text-primary) !important;
}
.theme .ui.comments .comment .author {
    color: var(--text-primary) !important;
}
.theme .ui.comments .comment .author:hover {
    color: var(--link-hover) !important;
}
.theme .ui.comments .comment .metadata span {
    color: var(--text-secondary) !important;
}
.theme .ui.comments .comment .text a {
    color: var(--link-color);
}
.theme .ui.comments .comment .text a:hover {
    color: var(--link-hover);
}
.theme .ui.comments .comment .text code {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
/* 评论操作按钮颜色 */
.theme .ui.comments .comment .actions a {
    color: var(--comment-action-color);
}
.theme .ui.comments .comment .actions a:hover {
    color: var(--comment-action-hover);
}
.theme .ui.comments .comment .avatar img {
    border-color: var(--border-color);
    filter: brightness(0.9);
}