/* 朗泰通官网 · 全站统一字体（思源黑体 Source Han Sans SC，SIL Open Font License 1.1，可免费商用）
   本地自托管，替代原先指向 mirrors.sustech.edu.cn 的外链（离线/CORS 不可用） */
@font-face {
  font-family: "LTT-HanSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/SourceHanSansSC-Regular.woff2") format("woff2");
}

/* 全站统一使用思源黑体（覆盖模板里 Microsoft YaHei / 宋体 等版权字体栈） */
html body,
html body *:not([class*="iconfont"]) {
  font-family: "LTT-HanSans", "Source Han Sans SC", "Noto Sans SC", "Source Han Sans", sans-serif !important;
}

/* 图标字体必须保留，不能被上面的规则覆盖 */
.iconfont,
[class^="iconfont"],
[class*=" iconfont"],
.iconfont:before,
.ltt-icon-font {
  font-family: "iconfont" !important;
}

/* 正文排版块：左图右文 / 右图左文 / 上图下文 / 上文下图 / 双图并排 */
.ltt-fig { display: flex; gap: 26px; align-items: flex-start; margin: 22px 0; }
.ltt-fig.rev { flex-direction: row-reverse; }
.ltt-fig .ltt-fig-media { flex: 0 0 46%; max-width: 46%; }
.ltt-fig .ltt-fig-media img,
.ltt-fig .ltt-fig-media video { width: 100%; height: auto; display: block; border-radius: 4px; }
.ltt-fig .ltt-fig-txt { flex: 1; min-width: 0; }
.ltt-fig .ltt-fig-txt > :first-child { margin-top: 0; }
.ltt-fig .ltt-fig-txt > :last-child { margin-bottom: 0; }
.ltt-fig.stack { display: block; }
.ltt-fig.stack .ltt-fig-media { max-width: 100%; flex: none; margin-bottom: 16px; }
.ltt-fig.stack.txt-first .ltt-fig-media { margin: 16px 0 0; }
.ltt-fig.duo { display: flex; gap: 20px; }
.ltt-fig.duo .ltt-fig-media { flex: 1 1 0; max-width: 50%; }
@media (max-width: 768px) {
  .ltt-fig, .ltt-fig.rev, .ltt-fig.duo { display: block; }
  .ltt-fig .ltt-fig-media { max-width: 100%; flex: none; margin-bottom: 14px; }
  .ltt-fig.duo .ltt-fig-media { max-width: 100%; }
}
