/* 美化文章內的 code 標籤 */
#article-content code {
    font-family: "Fira Code", Consolas, "Courier New", monospace; /* 程式碼字型 */
    font-size: 0.95em;        /* 縮小字體 */
    background-color: #c2c9c9 !important; /* 淡灰底色 */
    padding: 0 4px;           /* 左右內距 */
    border-radius: 3px;       /* 圓角 */
    color: rgb(31, 29, 29) !important;              /* 文字顏色 */
}

/* KaTeX 公式樣式調整 */
.katex {
    font-size: 1em;       /* 調整大小，可依需求修改 */
    line-height: 1.2em;
}
.katex-display {
    margin: 0.5em 0;
}

/* 文章 & 側邊欄外部連結自動加右上箭頭 */
.post a[target="_blank"]::after,
.sidebar a[target="_blank"]::after {
    content: "\f35d";                     /* ↗ Unicode */
    font-family: "Font Awesome 6 Free";   /* 只給這個 ::after */
    font-weight: 900;
    margin-left: 4px;
    font-size: 0.8em;
    color: inherit;
}