html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.perm-shell,
.perm-panel {
    overflow: visible !important;
    transform: none !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.text-ellipsis {
    width: 4em;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
}

    .text-ellipsis.justify {
        display: inline-flex;
        justify-content: space-between;
        align-items: center;
    }

.gridcol4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px 32px;
    margin-bottom: 16px
}

.gridcol4bottom {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px 32px;
    margin-bottom: 0px
}

.gridcol5 {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px 32px;
    margin-bottom: 16px
}

.gridcol5bottom {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px 32px;
    margin-bottom: 0px
}

.gridcolspan2 {
    grid-column: span 2
}

.gridcolspan3 {
    grid-column: span 3
}

.gridcolspan4 {
    grid-column: span 4
}

.gridcolspan5 {
    grid-column: span 5
}

.gridcol6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px 32px;
    margin-bottom: 16px;
}

.gridcol6bottom {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px 32px;
    margin-bottom: 0px;
}

.gridcol7bottom {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px 24px;
    margin-bottom: 0px;
}

.ant-btn.onlylink {
    height: auto;
    padding: 0;
    border: 0;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

/* 基础：文字容器伪装成 Tag */
.ant-dropdown-menu-item.menu-tag > .ant-menu-title-content {
    display: inline-block;
    width: fit-content;
    padding: 0 7px;
    border: 1px solid var(--tag-border);
    border-radius: 2px;
    line-height: 20px;
    white-space: nowrap;
    color: var(--tag-color);
    background-color: var(--tag-bg);
}

/* 不写颜色类时的默认 Tag 样式（单类，保证具体颜色类可以按顺序覆盖） */
.menu-tag {
    --tag-color: rgba(0, 0, 0, .85);
    --tag-bg: rgba(0, 0, 0, .02);
    --tag-border: #d9d9d9;
}

/* 状态色（和 TagColor.Success/Warning/Error/Processing 一致） */
.menu-tag-success {
    --tag-color: #52c41a;
    --tag-bg: #f6ffed;
    --tag-border: #b7eb8f;
}

.menu-tag-warning {
    --tag-color: #faad14;
    --tag-bg: #fffbe6;
    --tag-border: #ffe58f;
}

.menu-tag-error {
    --tag-color: #ff4d4f;
    --tag-bg: #fff2f0;
    --tag-border: #ffccc7;
}

.menu-tag-processing {
    --tag-color: #1677ff;
    --tag-bg: #e6f7ff;
    --tag-border: #91d5ff;
}

/* 其他预设色 */
.menu-tag-magenta {
    --tag-color: #c41d7f;
    --tag-bg: #fff0f6;
    --tag-border: #ffadd2;
}

.menu-tag-red {
    --tag-color: #cf1322;
    --tag-bg: #fff1f0;
    --tag-border: #ffa39e;
}

.menu-tag-volcano {
    --tag-color: #d4380d;
    --tag-bg: #fff2e8;
    --tag-border: #ffbb96;
}

.menu-tag-orange {
    --tag-color: #d46b08;
    --tag-bg: #fff7e6;
    --tag-border: #ffd591;
}

.menu-tag-gold {
    --tag-color: #d48806;
    --tag-bg: #fffbe6;
    --tag-border: #ffe58f;
}

.menu-tag-lime {
    --tag-color: #7cb305;
    --tag-bg: #fcffe6;
    --tag-border: #eaff8f;
}

.menu-tag-cyan {
    --tag-color: #08979c;
    --tag-bg: #e6fffb;
    --tag-border: #87e8de;
}

.menu-tag-blue {
    --tag-color: #096dd9;
    --tag-bg: #e6f7ff;
    --tag-border: #91d5ff;
}

.menu-tag-geekblue {
    --tag-color: #1d39c4;
    --tag-bg: #f0f5ff;
    --tag-border: #adc6ff;
}

.menu-tag-purple {
    --tag-color: #531dab;
    --tag-bg: #f9f0ff;
    --tag-border: #d3adf7;
}

.menu-tag-green {
    --tag-color: #389e0d;
    --tag-bg: #f6ffed;
    --tag-border: #b7eb8f;
}
.menu-tag-red-solid {
    --tag-color: #fff;
    --tag-bg: #f5222d;
    --tag-border: #f5222d;
}

.menu-tag-blue-solid {
    --tag-color: #fff;
    --tag-bg: #1677ff;
    --tag-border: #1677ff;
}

.menu-tag-green-solid {
    --tag-color: #fff;
    --tag-bg: #52c41a;
    --tag-border: #52c41a;
}

.menu-tag-orange-solid {
    --tag-color: #fff;
    --tag-bg: #fa8c16;
    --tag-border: #fa8c16;
}

.flex-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* FlexGap.Small ≈ 8px */
    justify-content: end; /* FlexJustify.End */
}

.toggle-btn:hover {
    color: #1677ff !important;
}

/* ============================================================================
   确认弹窗（ConfirmBoxAsync / ModalService.Confirm）
   1) 正文与标题“提示”左对齐：自动换行后的每一行都从同一位置开始（悬挂对齐）；
   2) 正文是纯文本，开启 pre-line 后字符串里的 "\n" 才能强制换行（<br/> 无效）；
      组件模板自带的前导换行由 wwwroot/js/modal-confirm.js 去掉，避免多出空行。
   ============================================================================ */
.ant-modal-confirm .ant-modal-confirm-content {
    margin-left: 48px !important;
    white-space: pre-line;
    word-break: break-word;
}

/* ============================================================================
   页面标题行（公用）：图标 + 标题 + 竖分隔线 + 返回按钮，整行垂直居中。
   用法：
   <div class="page-head">
       <span class="page-title">
           <span class="page-title-icon"><Icon Type="function" /></span>
           <span class="page-title-text">公式正确性检查</span>
       </span>
       <span class="page-head-sep"></span>
       <Button Type="@ButtonType.Text" Size="@ButtonSize.Small" Icon="arrow-left"
               OnClick="OnBack" Class="page-back">返回</Button>
   </div>
   换色：在 .page-head 上加 page-head--blue / --green / --orange / --red / --cyan / --magenta；
   也可直接覆盖行内 CSS 变量（--ph-icon-from / --ph-accent 等）自定义任意颜色。
   ============================================================================ */
.page-head {
    --ph-icon-from: #9254de;
    --ph-icon-to: #531dab;
    --ph-icon-shadow: rgba(83, 29, 171, .22);
    --ph-accent: #531dab;
    --ph-accent-bg: #f9f0ff;
    --ph-accent-border: #d3adf7;
    --ph-accent-bg-hover: #efdbff;
    --ph-accent-border-hover: #b37feb;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.page-head--blue {
    --ph-icon-from: #40a9ff; --ph-icon-to: #1677ff; --ph-icon-shadow: rgba(22, 119, 255, .25);
    --ph-accent: #0958d9; --ph-accent-bg: #e6f4ff; --ph-accent-border: #91caff;
    --ph-accent-bg-hover: #d0e8ff; --ph-accent-border-hover: #69b1ff;
}

.page-head--green {
    --ph-icon-from: #73d13d; --ph-icon-to: #389e0d; --ph-icon-shadow: rgba(56, 158, 13, .22);
    --ph-accent: #389e0d; --ph-accent-bg: #f6ffed; --ph-accent-border: #b7eb8f;
    --ph-accent-bg-hover: #d9f7be; --ph-accent-border-hover: #95de64;
}

.page-head--orange {
    --ph-icon-from: #ffc53d; --ph-icon-to: #fa8c16; --ph-icon-shadow: rgba(250, 140, 22, .25);
    --ph-accent: #d46b08; --ph-accent-bg: #fff7e6; --ph-accent-border: #ffd591;
    --ph-accent-bg-hover: #ffe7ba; --ph-accent-border-hover: #ffc069;
}

.page-head--red {
    --ph-icon-from: #ff7875; --ph-icon-to: #f5222d; --ph-icon-shadow: rgba(245, 34, 45, .22);
    --ph-accent: #cf1322; --ph-accent-bg: #fff1f0; --ph-accent-border: #ffa39e;
    --ph-accent-bg-hover: #ffccc7; --ph-accent-border-hover: #ff7875;
}

.page-head--cyan {
    --ph-icon-from: #13c2c2; --ph-icon-to: #08979c; --ph-icon-shadow: rgba(8, 151, 156, .22);
    --ph-accent: #08979c; --ph-accent-bg: #e6fffb; --ph-accent-border: #87e8de;
    --ph-accent-bg-hover: #b5f5ec; --ph-accent-border-hover: #5cdbd3;
}

.page-head--magenta {
    --ph-icon-from: #f759ab; --ph-icon-to: #c41d7f; --ph-icon-shadow: rgba(196, 29, 127, .22);
    --ph-accent: #c41d7f; --ph-accent-bg: #fff0f6; --ph-accent-border: #ffadd2;
    --ph-accent-bg-hover: #ffd6e7; --ph-accent-border-hover: #ff85c0;
}

.page-head-sep {
    width: 1px;
    height: 14px;
    flex: 0 0 1px;
    background: #e4e8f0;
}

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.page-title-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ph-icon-from), var(--ph-icon-to));
    color: #fff;
    font-size: 17px;
    line-height: 1;
    box-shadow: 0 4px 10px var(--ph-icon-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.page-title:hover .page-title-icon {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px var(--ph-icon-shadow);
}

.page-title-text {
    font-size: 16px;
    font-weight: 600;
    color: rgb(33, 37, 41);
}

/* 返回按钮：小号胶囊，颜色跟随 .page-head 的 accent 变量 */
.page-head .page-back {
    height: 26px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ph-accent) !important;
    background: var(--ph-accent-bg) !important;
    border: 1px solid var(--ph-accent-border) !important;
    border-radius: 6px;
    box-shadow: none !important;
}

.page-head .page-back:hover {
    color: var(--ph-accent) !important;
    background: var(--ph-accent-bg-hover) !important;
    border-color: var(--ph-accent-border-hover) !important;
}

.page-head .page-back .anticon {
    font-size: 12px;
}

/* ============================================================================
   GridView 分页行（“信息列表 共 N 条” + 分页器）
   GridView 通过 Table 的 PaginationTemplate 自己渲染这一行，它默认是透明背景，
   落在页面灰底上会和上方的白色表格割裂（表格 .ant-table 背景是 #fff）。
   这里补上同样的白底、撑满整行，并让底部圆角与表格一致，使两者视觉上连成一个整体。
   ============================================================================ */
.ant-table-wrapper .ant-spin-container > .ant-space {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    /* “信息列表”文字距左侧表格线 24px（右侧同步留白，保持对称） */
    padding: 0 24px;
    background: #fff;
    /* 与表格的外框线对齐：表格的边框画在容器内侧 1px，这里补同样的 1px 边框，
       否则分页行的白底会比表格左右各宽出 1px，看起来“往外突出” */
    border: 1px solid #f0f0f0;
    border-top: 0;
    border-radius: 0 0 6px 6px;
}

/* ============================================================================
   页面内容区的卡片（PagePanel 顶部的标题/筛选卡片等）
   site.css 里把 .ant-card-body 全局压到了 12px，导致卡片内文字贴边；
   这里在布局内容区内把正文内边距恢复到 24px，四周都留出足够空白。
   ============================================================================ */
.layout-content-body .ant-card-body {
    padding: 24px !important;
}

/* ============================================================================
   全局 antd 按钮圆角：统一成 6px，与页面标题行“返回”按钮（.page-head .page-back）一致。
   项目自带的 antd 样式默认是 2px（.ant-btn / .ant-btn-sm / .ant-btn-lg 各一条），
   这里用 :not() 提高优先级覆盖掉，同时保留圆形、胶囊形按钮各自的形状。
   ButtonC 组件内的按钮同样走这条规则。
   ============================================================================ */
.ant-btn:not(.ant-btn-circle):not(.ant-btn-round) {
    border-radius: 6px;
}

/* ============================================================================
   全局表单控件圆角：输入框 / 文本域 / 数字框 / 下拉选择 / 日期选择 / 下拉面板
   统一成 6px，与按钮保持一致（项目自带 antd 样式默认是 2px）。
   注意：.ant-input-group（输入框+按钮拼接）里各段的首尾圆角由 antd 自己的规则控制，
   这里的选择器优先级低于那些规则，不会被破坏。
   ============================================================================ */
.ant-input,
.ant-input-affix-wrapper,
.ant-input-number,
.ant-picker,
.ant-mentions,
.ant-cascader-picker,
.ant-select:not(.ant-select-customize-input) .ant-select-selector,
.ant-select-dropdown,
.ant-dropdown-menu {
    border-radius: 6px;
}

/* ============================================================================
   卡片 / 提示框 / 表格 圆角统一 6px
   表格的圆角由“容器 + 表头首尾单元格”共同决定，只改容器不改单元格会露出直角。
   ============================================================================ */
.ant-card,
.ant-alert {
    border-radius: 6px;
}
/* 表格默认只圆上面两角：底部与“信息列表 共 N 条”分页行相接，必须是直角，
   否则最后一行线与分页行交界处左右会露出圆角 */
.ant-table {
    border-radius: 6px 6px 0 0;
}
/* 没有分页行时（如抽屉里的试卷页码表、HidePagination 的表），底部也圆角 */
.ant-table-wrapper:not(:has(.ant-spin-container > .ant-space)) .ant-table,
.ant-table-wrapper:not(:has(.ant-spin-container > .ant-space)) .ant-table-container {
    border-radius: 6px;
}
/* 表格的底边线由最后一个 td 的 border 画出来，必须把首尾单元格的底角也圆掉，
   否则白底圆了、线仍是直角 */
.ant-table-wrapper:not(:has(.ant-spin-container > .ant-space)) .ant-table-container .ant-table-tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: 6px;
}
.ant-table-wrapper:not(:has(.ant-spin-container > .ant-space)) .ant-table-container .ant-table-tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: 6px;
}
.ant-card-head {
    border-radius: 6px 6px 0 0;
}
.ant-table-container {
    border-radius: 6px 6px 0 0;
}
.ant-table-container .ant-table-thead > tr:first-child > th:first-child {
    border-top-left-radius: 6px;
}
.ant-table-container .ant-table-thead > tr:first-child > th:last-child {
    border-top-right-radius: 6px;
}

/* ============================================================================
   搜索框（输入框 + “查询”按钮拼接）：
   左边输入框保持左侧 6px，右侧补上按钮/附加区的 6px 圆角，接缝处仍是直角。
   ============================================================================ */
.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child {
    border-radius: 0 6px 6px 0;
}
.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {
    border-radius: 0 6px 6px 0;
}

/* ============================================================================
   品牌图标（LayoutMain 顶部栏 / 首页顶部共用）：蓝色渐变圆角块 + 白色图标
   用法：<div class="brand-logo"><Icon Type="safety-certificate" /></div>
   ============================================================================ */
.brand-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #40a9ff, #1677ff);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 4px 10px rgba(22, 119, 255, .28);
}

/* ============================================================================
   主色统一：#1890ff → #1677ff
   项目源码里的 #1890ff 已全部替换；antd 组件库自带的默认主色仍写在库的 CSS 里，
   这里覆盖最常用的一批主色控件（按钮 / 链接 / 复选框 / 单选框 / 开关 / 分页 /
   标签页 / 选中的菜单项）。
   ============================================================================ */
.ant-btn-primary {
    background: #1677ff;
    border-color: #1677ff;
    text-shadow: none;
    box-shadow: 0 2px 0 rgba(5, 145, 255, .1);
}
.ant-btn-primary:hover,
.ant-btn-primary:focus {
    background: #4096ff;
    border-color: #4096ff;
}
.ant-btn-primary:active {
    background: #0958d9;
    border-color: #0958d9;
}

.ant-btn-link {
    color: #1677ff;
}
.ant-btn-link:hover,
.ant-btn-link:focus {
    color: #4096ff;
}

.ant-checkbox-checked .ant-checkbox-inner {
    background-color: #1677ff;
    border-color: #1677ff;
}
.ant-radio-checked .ant-radio-inner {
    border-color: #1677ff;
}
.ant-radio-inner::after {
    background-color: #1677ff;
}
.ant-switch-checked {
    background-color: #1677ff;
}
.ant-pagination-item-active {
    border-color: #1677ff;
}
.ant-pagination-item-active a {
    color: #1677ff;
}
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: #1677ff;
}
.ant-tabs-ink-bar {
    background: #1677ff;
}
.ant-menu-item-selected {
    color: #1677ff;
}
/* ============================================================================
   MarkdownViewer 正文列表：主题里全局 list-style:none 会把圆点去掉，
   报告里的“检查事项/置信度”等条目需要小圆点，这里恢复（与导出的 HTML 一致）。
   ============================================================================ */
.markdown-body ul { list-style: disc !important; }
.markdown-body ol { list-style: decimal !important; }

/* ============================================================================
   Badge：让状态文字和左边的小圆点同色
   <Badge Status="Success">通过</Badge> 实际渲染为：
     span.ant-badge.ant-badge-status
        span.ant-badge-status-dot.ant-badge-status-success   ← 圆点，底色 #52c41a
        span.ant-badge-status-text                            ← 文字，默认 rgba(0,0,0,.85)
   CSS 没法“读取”圆点的 background-color 给文字用，所以按状态逐个写：
   用 :has() 从外层 .ant-badge-status 找到“里面带某个状态类的圆点”，再给兄弟文字上色。
   Chrome / Edge 105+ 都支持 :has()；老浏览器不支持时只是保持原来的灰色文字，不会坏样式。
   需要别的颜色（Color="red/blue/..."）照抄一行，把类名和色值换掉即可。
   ============================================================================ */
.ant-badge-status:has(.ant-badge-status-default) .ant-badge-status-text { color: #8c8c8c; }
.ant-badge-status:has(.ant-badge-status-processing) .ant-badge-status-text { color: #1890ff; }
.ant-badge-status:has(.ant-badge-status-success) .ant-badge-status-text { color: #52c41a; }
.ant-badge-status:has(.ant-badge-status-error) .ant-badge-status-text { color: #ff4d4f; }
.ant-badge-status:has(.ant-badge-status-warning) .ant-badge-status-text { color: #faad14; }

/* 兼容写法：某些版本会把状态类直接挂在外层 .ant-badge-status 上 */
.ant-badge-status.ant-badge-status-processing .ant-badge-status-text { color: #1890ff; }
.ant-badge-status.ant-badge-status-success .ant-badge-status-text { color: #52c41a; }
.ant-badge-status.ant-badge-status-error .ant-badge-status-text { color: #ff4d4f; }
.ant-badge-status.ant-badge-status-warning .ant-badge-status-text { color: #faad14; }

/* ============================================================================
   Badge 胶囊样式（试用）：浅色底 + 同色字 + 圆角，看起来像标签。
   不想要时把这一段整体删掉，就回到上面“只有文字同色”的效果。
   底色用的是 antd 各色系的 -1 浅色，文字仍与圆点同色。

   尺寸调整都在这四条上：
     border-radius = line-height ÷ 2      → 真正的胶囊（22 ÷ 2 = 11px）
     min-width / padding / font-size      → 紧凑↔宽松（当前偏紧凑）
     margin-left                          → 圆点与胶囊的间距（antd 默认 8px，已改小）
   ============================================================================ */
.ant-badge-status .ant-badge-status-text {
    display: inline-block;
    min-width: 54px;        /* 比原来 58px 窄一点，短词不显空 */
    padding: 0 8px;         /* 原来 0 10px */
    margin-left: 5px;       /* 圆点与胶囊的间距：取上次 10px 的一半 */
    border-radius: 11px;    /* = line-height 22px / 2 */
    line-height: 22px;
    font-size: 13px;
    text-align: center;
}
.ant-badge-status:has(.ant-badge-status-default) .ant-badge-status-text {
    color: #8c8c8c;
    background: #f5f5f5;
}
.ant-badge-status:has(.ant-badge-status-processing) .ant-badge-status-text {
    color: #1890ff;
    background: #e6f4ff;
}
.ant-badge-status:has(.ant-badge-status-success) .ant-badge-status-text {
    color: #52c41a;
    background: #f6ffed;
}
.ant-badge-status:has(.ant-badge-status-error) .ant-badge-status-text {
    color: #ff4d4f;
    background: #fff1f0;
}
.ant-badge-status:has(.ant-badge-status-warning) .ant-badge-status-text {
    color: #faad14;
    background: #fffbe6;
}

/* 想去掉左边圆点、只留胶囊：把下面两行的注释去掉即可（变体B）
.ant-badge-status .ant-badge-status-dot { display: none; }
.ant-badge-status .ant-badge-status-text { margin-left: 0; }
*/

