@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap");

/* 统一中英文：英文 Source Serif 4；中文 Noto Serif SC（变化非常明显） */
html body {
  font-family: "Noto Serif SC", "Source Serif 4",
               Georgia, "Times New Roman", Times, serif !important;
}

/* 对所有文本元素强制继承（排除图标字体 i / fa / ai，避免图标乱码） */
html body *:not(i):not(svg):not(path):not([class*="fa"]):not([class^="fa-"]):not([class*="ai"]):not([class^="ai-"]) {
  font-family: inherit !important;
}

/* 代码块保持等宽 */
html body code,
html body pre,
html body kbd,
html body samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace !important;
}

/* ===== 统一主页 & CV 的容器（居中 + 不贴边） ===== */
:root {
  --container-max: 1200px;
  --container-pad: 24px;
}

html body .masthead__inner-wrap,
html body #main {
  max-width: var(--container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-pad) !important;
  padding-right: var(--container-pad) !important;
}

/* pubs 排版 */
.selected-pubs p { margin: 0 0 1.05rem; line-height: 1.55; }
.selected-pubs strong { font-weight: 700; }

/* ===== Ensure homepage (layout--home) matches other pages ===== */

/* 1) force font inside homepage containers */
html body.layout--home,
html body.layout--home #main,
html body.layout--home .initial-content,
html body.layout--home .page__content,
html body.layout--home .archive,
html body.layout--home .archive__item,
html body.layout--home .page__title {
  font-family: inherit !important;
}

/* 2) force same width + padding on homepage containers */
html body.layout--home #main,
html body.layout--home .initial-content,
html body.layout--home .archive,
html body.layout--home .masthead__inner-wrap {
  max-width: var(--container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-pad) !important;
  padding-right: var(--container-pad) !important;
}

/* Sidebar spacing from left edge */
.sidebar.sticky {
  padding-left: 24px !important;   /* 想更远就加大，比如 24px */
  padding-right: 10px !important;
}

/* Optional: avatar itself a bit inset */
.author__avatar {
  margin-left: 6px !important;
}
