italic {
font-style: italic; /* Italic style */
}

h2{border:0;padding-top:1em;}
h3{border:0;padding-top:0.5em;}
.math-inline{ font-size: 0.8em; vertical-align: middle; }
/* 让图片在卡片内部自适应 */
.content-figure img {
  width: 100%;
  height: auto;
  display: block;
}
/* 大屏时让左右内容并排（可选） */
.article-body {
  overflow: hidden; /* 兼容旧版 clearfix */
}
.article-body::after {
  content: "";
  display: table;
  clear: both;
}

.content-figure { padding:10px;}

@media (max-width: 991.98px) {          /* 小于 lg（手机/平板竖屏） */
    .content-figure {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 992px) {             /* ≥ lg（桌面/平板横屏） */
    .content-figure {
        float: left;
        width: 50%;
        margin-right: 1.5rem;           /* 稍微加大间距更好看 */
        margin-bottom: 1rem;
    }

    /* 清除浮动，防止后面内容被影响 */
    .content-figure:after {
        content: "";
        display: table;
        clear: both;
    }
}

.disp-formula {
    counter-increment: equation;
}
.formula-label::before {
    content: "Equation ";
}
.formula-label {
    font-style: italic;
    color: #555;
}
.table-wrapper {
    width: 100%;
    margin: 1.5rem auto;
    overflow: hidden;
    border-radius: 8px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: auto !important;        /* 宽屏时不强制通栏 */
    min-width: 100%;
}


/* 可选：让表头固定（更高级） */
.table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.table td, .table th {
    white-space: normal !important;
    word-break: break-all;
}

/* 当屏幕 < 999px 时，强制表格通栏（width:100%） */
@media (max-width: 998px) {
    .table {
        width: 100% !important;
    }

    /* 窄屏下允许单元格换行，避免太挤 */
    .table td, .table th {
        white-space: normal !important;
        word-break: break-word;
    }
}

/* ≥ 999px（接近 lg）时，限制最大宽度，让表格更紧凑 */
@media (min-width: 999px) {
    .table-wrapper {
        max-width: 1100px;         /* 你可以根据实际内容调整为 1000px ~ 1200px */
    }

    .table td, .table th {
        white-space: nowrap;       /* 宽屏时不换行，更紧凑 */
    }
}

.article-abstract {
        text-align: justify;
    }
.private_email {
    cursor: pointer;
    color: var(--bs-primary);
}
.border-dashed {
    border-style: dashed !important;
}
.x-small {
    letter-spacing: 0.5px;
}
.break-all {
    word-break: break-all;
}