/* 全局字体重置 - 将这部分移到最前面作为默认值 */
html,
body,
div:not([class*="mjx-"]),
span:not([class*="mjx-"]),
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
select,
table,
td,
th,
ul,
li,
ol {
    font-family: 'Gandhi Sans', sans-serif !important;
}

/* 文章列表页面样式 */
.listItem .title,
.listItem h2 {
    font-family: 'Gandhi Serif', serif !important;
}

.listItem .abstract,
.listItem .content {
    font-family: 'LT Soul', sans-serif !important;
    font-weight: 500;
}

/* 文章详情页样式 */
/* 文章标题相关 */
.article-title,
.titleView h2,
.ceiling h2,
.row-3 h2 {
    font-family: 'Gandhi Serif', serif !important;
}

/* 文章正文 - 增加选择器的特异性 */
.article-body p,
.article-content p,
.abstract p,
.keyword p {
    font-family: 'LT Soul', sans-serif !important;
    font-weight: 500;
}

/* 增加对正文中可能的多层div包裹的支持 */
.view div li,      /* 列表项 */
.view div table {  /* 表格内容 */
    font-family: 'LT Soul', sans-serif !important;
    font-weight: 500;
}

/* 图片和表格标题修正 */
figure figcaption,       /* 标准图片标题 */
.table-caption,          /* 表格标题容器 */
table caption {          /* 原生表格标题 */
    font-family: 'Gandhi Sans', sans-serif !important;
    font-style: italic !important;
}

/* 参考文献标题修正 */
.references h2,          /* 主参考文献标题 */
#references-title {      /* 侧边栏参考文献标题 */
    font-family: 'Gandhi Serif', serif !important;
}

.references p,
.references li,
#references p,
#references li {
    font-family: 'Gandhi Sans', sans-serif !important;
}

/* 确保其他元素使用 Gandhi Sans */
.header,
.footer,
.nav,
.menu,
.button,
.search-box,
.pagination {
    font-family: 'Gandhi Sans', sans-serif !important;
} 