/* ================= 1. 核心变量与夜间模式 ================= */
:root {
  --bg-body: #f5f7fa;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-sec: #666666;
  --border-color: #e8e8e8;
}

/* 夜间模式 */
body[data-theme="dark"] {
  --bg-body: #1a1a1a;
  --bg-card: #1e1e1e;
  --text-main: #d1d5db;
  --text-sec: #a1a1a1;
  --border-color: #444444;
}

/* ================= 2. 全局基础重置 ================= */
body {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
  font-family: "Microsoft YaHei", sans-serif;
  /* 移除可能导致滚动条的默认边距 */
  margin: 0;
  padding: 0;
}

/* ================= 3. 布局修复 (确保内容不被头图遮挡) ================= */
/* 给页面主体内容留出顶部空间，防止被头图覆盖（如果头图是 fixed 定位才需要，这里是 relative，理论上不需要，但为了保险） */
#mainContent {
  /* 如果头图高度是 400px，这里可以留一点余量 */
  /* margin-top: 20px; */
}

/* 侧边栏公告栏修复 */
#sidebar {
  /* 确保公告栏在侧边栏正常显示 */
  overflow: visible !important;
}

/* 隐藏默认的博客园头部（如果有的话） */
#header {
  display: none !important;
}

/* 隐藏默认的博客园标题 */
#blogTitle {
  display: none !important;
}