@font-face {
  font-family: "LXGWWenKai";
  src: url("fonts/LXGWWenKai-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "LXGWWenKai";
  src: url("fonts/LXGWWenKai-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "LXGWWenKai";
  src: url("fonts/LXGWWenKai-Medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Allow synthetic bold/italic when a real face at that weight/style is missing */
html { font-synthesis: weight style; }
/* Ensure strong/b tags request true bold (700) */
b, strong { font-weight: 800; color:cadetblue; }


body {
  font-family: "LXGWWenKai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  font-size: 20px !important;     /* 正文字号 */
  line-height: 1.5;  
  font-weight: 400;
}


h1 {
  font-size: 2.0rem !important;   /* 一级标题 */
  font-weight: 700;
  text-align: center;
  position: relative;
}


h1::after {
  content: "";
  display: block;
  width: 70%;
  height: 1px;
  background-color: currentColor;
  margin: 8px auto 0;
  transition: width 0.8s ease;
}
h1:hover::after {
  width: 100%;
}


h2 {
    font-size: 1.5em;
    font-weight: bold;
}



h3 {
  font-size: 1.4rem !important;
  font-weight: 600;
}


p {
  margin-bottom: 1em;             /* 段落间距 */
}




.summary-callout {
  background: linear-gradient(
    135deg,
    #fdfbfb,
    #ebedee
  ); /* Soft gradient background */
  border-left: 5px solid #007bff; /* Accent color for emphasis */
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.summary-callout strong {
  color: #0056b3; /* Slightly darker color for emphasis */
}


/* for editor */
.cm-quote {
  color: var(--text-normal) !important;
  
}

pre,
code,
.sourceCode {
  font-size: 0.95em;
}



/* ✅ highlighted line background */
pre code .highlighted,
pre code .line-highlight,
pre code .code-line-highlight {
  background: rgba(158, 247, 247, 0.18);  /* 你 dark palette 的 inline code 背景风格 */
  display: block;                          /* 让背景铺满整行 */
  margin: 0 -1em;                          /* 向两侧撑开，覆盖 code padding */
  padding: 0 1em;
  border-left: 3px solid rgba(158, 247, 247, 0.55);
}

/* 如果 JS 是按 “每行 span[data-code-line]” 包裹，并加 class */
pre code span[data-code-line].highlighted,
pre code span[data-code-line].line-highlight {
  background: rgba(158, 247, 247, 0.18);
  display: block;
  margin: 0 -1em;
  padding: 0 1em;
  border-left: 3px solid rgba(158, 247, 247, 0.55);
}

