/* custom css */
.card-profile .card-header {
    height: 9rem;
    background-size: cover;
}

.card-profile-img {
    max-width: 6rem;
    margin-top: -5rem;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    border-radius: 100%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.score_cell {
    min-width: 3.2em;
    max-width: 3.2em;
    border-right: none;
}

/* 去掉题目提示区域代码块的黑色边框 */
/* vditor 通过 JS 动态渲染并应用 dark 主题，需要 !important 强制覆盖 */
#problem-content-vditor pre {
    background-color: #f6f8fa !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 6px !important;
}

#problem-content-vditor pre > code {
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #24292e !important;
}

/* 题目预览区域字体统一调小两号 */
#problem-content-vditor {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

#problem-content-vditor p {
    margin: 0.5em 0 !important;
}

/* 已移除: 这些规则会误伤正常内容段落
#problem-content-vditor p:empty {
    display: none !important;
}

#problem-content-vditor p:has(> br:only-child) {
    display: none !important;
}
*/

#problem-content-vditor h1 {
    font-size: 1.75rem !important;
}

#problem-content-vditor h2 {
    font-size: 1.5rem !important;
}

#problem-content-vditor h3 {
    font-size: 1.25rem !important;
}

#problem-content-vditor h4 {
    font-size: 1.1rem !important;
}
