/*
 * LightSNS 自定义字体：moe
 * 桌面端 + 移动端共用，由 functions/extend.php 统一引入。
 * 自托管主源优先，远程源兜底；font-display: swap 避免白屏。
 */
@font-face {
    font-family: 'moe';
    src: url('fonts/moe.woff') format('woff'),
         url('https://blog.200583.xyz/2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 全局应用（桌面端 body 在 jinsom.css 中写死了“微软雅黑”，本文件加载更靠后，直接覆盖） */
body,
html,
textarea,
input,
select,
button,
blockquote,
li,
p,
span,
a,
h1, h2, h3, h4, h5, h6 {
    font-family: 'moe', '微软雅黑', 'Microsoft Yahei', 'PingFang SC', sans-serif;
}

/* 覆盖主题内硬编码的宋体/雅黑字体 */
.jinsom-bbs-list-1 .right .num,
textarea {
    font-family: 'moe', '微软雅黑', 'Microsoft Yahei', sans-serif !important;
}

/* 保护图标字体：主题图标与 FontAwesome 不受自定义字体影响 */
.jinsom-icon,
[class*=" jinsom-"][class*="-"]:before,
.fa {
    /* 仅声明占位，实际字形仍由各自类的 font-family 生效 */
}
.jinsom-icon {
    font-family: 'jinsom-icon' !important;
}
.fa {
    font-family: FontAwesome !important;
}

/* 用户提供的附加样式：代码高亮最大高度与滚动 */
.enlighter-default .enlighter {
    max-height: 400px;
    overflow-y: auto !important;
}

/* 懒加载占位（未加载完成时隐藏） */
.lazyloading:not(.swiper-lazy-loaded) {
    opacity: 0;
}

/* 用户提供的附加样式：窄屏下显示浏览量 */
@media (max-width: 640px) {
    .meta-right .meta-view {
        display: unset !important;
    }
}
