/* =========================================
   全局字体设置 (Global Font Settings)
   ========================================= */

/* 
   将页面主体的基础字体大小设置为 18px (默认通常是 14px 或 16px)。
   增加行高 (line-height) 为 1.6，提升阅读体验。
*/
body {
    font-size: 16px !important;
    line-height: 1 !important;
}

/* 
   强制常见的文本元素继承或使用 18px 的字体大小。
   这是为了覆盖主题中可能对这些元素单独设置的较小字体。
*/
p,
li,
span,
div,
a,
input,
button,
select,
textarea {
    font-size: 18px !important;
    line-height: 1.4 !important;
}


/* =========================================
   顶部导航栏 (Header) 特殊处理
   ========================================= */

/* 
   排除 Header 及其子元素，不让它们受全局 18px 的影响。
   强制保持 Header 字体为 14px，维持顶部导航栏的精致布局。
*/
.Header,
.Header * {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* 
   [关键修复] 强制限制 Header 内图标 (SVG/Img) 的尺寸。
   防止因为全局样式影响导致图标被意外放大，从而撑开 Header 高度。
   锁定为 GitHub 风格标准的 32px x 32px。
*/
.Header .octicon,
.Header img,
.Header svg {
    height: 32px !important;
    width: 32px !important;
    min-height: 32px !important;
    min-width: 32px !important;
}


/* =========================================
   侧边栏个人信息 (User Profile)
   ========================================= */

/* 
   放大侧边栏的用户全名 (Full Name)。
   从默认尺寸放大到 32px，使其更醒目。
*/
.vcard-names-container .vcard-names .vcard-fullname {
    font-size: 40px !important;
    line-height: 1.4 !important;
}

/* 
   放大侧边栏的用户昵称/用户名 (Username)。
   从默认尺寸放大到 24px。
*/
.vcard-names-container .vcard-names .vcard-username {
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-style: normal !important;
    font-weight: 300 !important;
}


/* =========================================
   排版层级调整 (Typography Hierarchy)
   ========================================= */

/* 
   调整标题 (h1-h6) 的大小，使用 em 单位。
   确保它们相对于新的 18px 基础字体保持正确的视觉层级。
*/
h1 {
    font-size: 2em !important;
}

h2 {
    font-size: 1.5em !important;
}

h3 {
    font-size: 1.25em !important;
}

h4 {
    font-size: 1.1em !important;
}

h5,
h6 {
    font-size: 1em !important;
}

/* 
   调整辅助性小文字 (Small Text) 的大小。
   让它们比正文稍小 (0.85倍)，但仍然清晰可读。
*/
.text-small,
.f6,
small,
.f5 {
    font-size: 0.85em !important;
}

/* 
   代码块 (Code Blocks) 字体设置。
   强制使用等宽字体，并稍微缩小字号 (0.9倍)，使代码块看起来更紧凑。
*/
code,
kbd,
pre,
samp {
    font-family: monospace, monospace !important;
    font-size: 0.9em !important;
}