/* =====================================================================
   复刻补丁样式
   1) 修正 KaTeX 字体路径（原站为 /_next/static/media/...，本地需指向 ../font/katex/）
   2) 修正原站若干依赖外网字体的回退
   ===================================================================== */

@font-face { font-family: 'KaTeX_AMS'; src: url(../font/katex/KaTeX_AMS-Regular.a79f1c31.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Caligraphic'; src: url(../font/katex/KaTeX_Caligraphic-Bold.ec17d132.woff2) format('woff2'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Caligraphic'; src: url(../font/katex/KaTeX_Caligraphic-Regular.55fac258.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Fraktur'; src: url(../font/katex/KaTeX_Fraktur-Bold.d42a5579.woff2) format('woff2'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Fraktur'; src: url(../font/katex/KaTeX_Fraktur-Regular.d3c882a6.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Main'; src: url(../font/katex/KaTeX_Main-Bold.c3fb5ac2.woff2) format('woff2'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Main'; src: url(../font/katex/KaTeX_Main-BoldItalic.6f2bb1df.woff2) format('woff2'); font-weight: bold; font-style: italic; font-display: swap; }
@font-face { font-family: 'KaTeX_Main'; src: url(../font/katex/KaTeX_Main-Italic.8916142b.woff2) format('woff2'); font-weight: normal; font-style: italic; font-display: swap; }
@font-face { font-family: 'KaTeX_Main'; src: url(../font/katex/KaTeX_Main-Regular.0462f03b.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Math'; src: url(../font/katex/KaTeX_Math-BoldItalic.572d331f.woff2) format('woff2'); font-weight: bold; font-style: italic; font-display: swap; }
@font-face { font-family: 'KaTeX_Math'; src: url(../font/katex/KaTeX_Math-Italic.f28c23ac.woff2) format('woff2'); font-weight: normal; font-style: italic; font-display: swap; }
@font-face { font-family: 'KaTeX_SansSerif'; src: url(../font/katex/KaTeX_SansSerif-Bold.8c5b5494.woff2) format('woff2'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_SansSerif'; src: url(../font/katex/KaTeX_SansSerif-Italic.3b1e59b3.woff2) format('woff2'); font-weight: normal; font-style: italic; font-display: swap; }
@font-face { font-family: 'KaTeX_SansSerif'; src: url(../font/katex/KaTeX_SansSerif-Regular.ba21ed5f.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Script'; src: url(../font/katex/KaTeX_Script-Regular.03e9641d.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Size1'; src: url(../font/katex/KaTeX_Size1-Regular.eae34984.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Size2'; src: url(../font/katex/KaTeX_Size2-Regular.5916a24f.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Size3'; src: url(../font/katex/KaTeX_Size3-Regular.b4230e7e.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Size4'; src: url(../font/katex/KaTeX_Size4-Regular.10d95fd3.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'KaTeX_Typewriter'; src: url(../font/katex/KaTeX_Typewriter-Regular.a8709e36.woff2) format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }

/* 离线环境下 Google Fonts 不可用时的回退，保证排版不塌 */
.ai-llm-scope {
  --sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Noto Serif SC', Georgia, 'Songti SC', 'SimSun', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 思考题：收起态隐藏答案，展开态显示（与 lesson.js 行为一致）。
   不依赖 JS 也能保证初始视觉正确。 */
.ai-llm-scope .think:not(.open) > .think-answer { display: none; }
.ai-llm-scope .think.open > .think-btn { display: none; }

/* 复刻页：站内链接以新窗口打开时更友好 */
.lesson-footer a:hover { text-decoration: none; }
