/* ====== Light Minimal for CNBlogs ====== */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2a37;
  --text-soft: #5b6472;
  --line: #e8edf3;
  --primary: #3b82f6;
  --primary-soft: #eff6ff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 页面主体 */
#home {
  width: min(1120px, 94vw);
  margin: 24px auto;
  background: transparent;
  min-width: 0 !important;
  box-sizing: border-box;
}

#main {
  margin-top: 16px;
  min-width: 0 !important;
  width: 100% !important;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow: visible !important;
}

#mainContent {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  margin-left: 0 !important;
  padding: 0 0 10px 0 !important;
  overflow: visible !important;
  word-break: normal !important;
  box-sizing: border-box;
}

#mainContent .forFlow,
#topics {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  overflow: visible !important;
}

#sideBar {
  width: 260px !important;
  flex: 0 0 260px;
  float: none !important;
  padding-left: 0 !important;
  overflow: visible !important;
  box-sizing: border-box;
}

/* 顶部标题区域 */
#blogTitle {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid #e5eefc;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

#blogTitle h1 {
  margin: 0;
  font-size: 28px;
}

#blogTitle h1 a {
  color: #12335c;
  text-decoration: none;
}

#blogTitle h2 {
  margin-top: 8px;
  color: #4e647f;
  font-size: 14px;
  font-weight: 500;
}

/* 导航 */
#navigator {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-height: 52px;
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
}

#navList {
  min-height: 52px;
  display: flex;
  align-items: center;
}

#navList li {
  margin-right: 20px;
}

#navList a {
  display: inline-flex;
  align-items: center;
  height: 52px;
  line-height: 52px;
  color: var(--text-soft);
  font-weight: 600;
}

#navList a:hover {
  color: var(--primary);
}

/* 随笔卡片 */
.day,
.entrylistItem,
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 0 0 18px;
}

.postTitle,
.entrylistPosttitle {
  margin-bottom: 8px;
}

.postTitle a,
.entrylistPosttitle a {
  color: #102a43 !important;
  text-decoration: none;
  font-weight: 700;
}

.postTitle a:hover,
.entrylistPosttitle a:hover {
  color: var(--primary) !important;
}

.postMeta,
.postDesc,
.entrylistItemPostDesc {
  color: var(--text-soft) !important;
}

/* 正文阅读体验 */
#cnblogs_post_body,
.postBody {
  color: #243244;
  line-height: 1.85;
  font-size: 16px;
}

#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4 {
  color: #0f2742;
  margin-top: 1.4em;
}

#cnblogs_post_body blockquote {
  border-left: 4px solid #93c5fd;
  background: #f8fbff;
  color: #334155;
  margin: 1em 0;
  padding: 12px 14px;
  border-radius: 8px;
}

#cnblogs_post_body img {
  max-width: 100%;
  border-radius: 10px;
}

/* 行内代码与代码块 */
#cnblogs_post_body code,
.cnblogs-post-body code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.92em;
}

.cnblogs_code,
.cnblogs_code pre,
#cnblogs_post_body pre {
  border-radius: 10px !important;
}

/* 侧边栏 */
#sideBarMain > div,
#sideBarMain .newsItem,
#calendar,
.catListView,
.catListPostArchive,
.catListTag,
.catListComment,
.catListLink,
.mySearch {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  margin-bottom: 14px;
}

#sideBarMain h3,
.catListTitle {
  color: #1f3b5b;
  font-size: 14px;
  margin-bottom: 8px;
}

#sideBar a {
  color: #48607a;
}

#sideBar a:hover {
  color: var(--primary);
}

/* 标签与按钮 */
#EntryTag a,
#BlogPostCategory a {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  color: #1d4ed8 !important;
  border-radius: 999px;
  padding: 2px 10px;
}

#green_channel {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

#green_channel a,
#btn_comment_submit,
.comment_btn {
  border-radius: 10px !important;
}

/* 页脚 */
#footer {
  color: #6b7280;
  text-align: center;
  margin: 28px 0 10px;
}

/* 回到顶部按钮（配合页脚脚本） */
#lightBackTop {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  box-shadow: var(--shadow);
  display: none;
  cursor: pointer;
  z-index: 9999;
  font-size: 18px;
}

#lightBackTop:hover {
  background: #f3f8ff;
}

/* 响应式 */
@media (max-width: 960px) {
  #main {
    display: block;
    gap: 0;
  }

  #mainContent,
  #sideBar {
    width: 100%;
    float: none;
    flex: none;
  }

  #sideBar {
    margin-top: 12px;
  }

  #home {
    width: 96vw;
  }

  #navigator {
    height: auto;
    min-height: 48px;
  }

  #navList,
  #navList a {
    min-height: 48px;
    height: 48px;
    line-height: 48px;
  }
}
```

### 2.1 学术风（课程作业展示）替代样式（已修复正文宽度+导航高度）

如果你希望页面更偏“课程作业/学习笔记”风格，使用下面这份替代 CSS（直接整段替换上面的 CSS 即可）。

```css
/* ====== Academic Light for CNBlogs ====== */
:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #1f2937;
  --ink-soft: #6b7280;
  --line: #dde4ef;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* ===== 布局修复：主体正文宽度 ===== */
#home {
  width: min(1320px, 96vw);
  margin: 20px auto;
}

#main {
  margin-top: 12px;
}

#mainContent {
  width: calc(100% - 320px) !important;
  float: left;
}

#mainContent .forFlow,
#topics {
  width: 100% !important;
  margin: 0 !important;
}

#sideBar {
  width: 280px;
  float: right;
}

/* 顶部 */
#blogTitle {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

#blogTitle h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
}

#blogTitle h1 a {
  color: #0f2742;
  text-decoration: none;
}

#blogTitle h2 {
  margin: 6px 0 0;
  font-size: 14px;
  color: #475569;
}

/* ===== 导航修复：高度与对齐 ===== */
#navigator {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  min-height: 52px;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

#navList {
  min-height: 52px;
  display: flex;
  align-items: center;
}

#navList li {
  margin-right: 26px;
}

#navList a {
  display: inline-flex;
  align-items: center;
  height: 52px;
  line-height: 52px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

#navList a:hover {
  color: var(--primary);
}

/* 文章与列表 */
.day,
.entrylistItem,
.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 0 0 16px;
}

.postTitle a,
.entrylistPosttitle a {
  color: #0f2742 !important;
  text-decoration: none;
  font-weight: 700;
}

.postTitle a:hover,
.entrylistPosttitle a:hover {
  color: var(--primary) !important;
}

.postMeta,
.postDesc,
.entrylistItemPostDesc {
  color: var(--ink-soft) !important;
}

/* 正文（更学术的可读性） */
#cnblogs_post_body,
.postBody {
  font-size: 17px;
  line-height: 1.95;
  color: #1f2937;
}

#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4 {
  color: #0f2742;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

#cnblogs_post_body p,
#cnblogs_post_body li {
  text-align: justify;
}

#cnblogs_post_body blockquote {
  margin: 1em 0;
  padding: 12px 14px;
  border-left: 4px solid #93c5fd;
  background: #f8fbff;
  border-radius: 8px;
}

#cnblogs_post_body table {
  width: 100% !important;
  border-collapse: collapse;
}

#cnblogs_post_body th,
#cnblogs_post_body td {
  border: 1px solid #dbe2ee;
  padding: 10px 12px;
}

#cnblogs_post_body th {
  background: #f4f7fc;
}

#cnblogs_post_body code,
.cnblogs-post-body code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-radius: 6px;
  padding: 2px 6px;
}

#cnblogs_post_body pre,
.cnblogs_code,
.cnblogs_code pre {
  border-radius: 10px !important;
}

/* 侧栏 */
#sideBarMain > div,
#sideBarMain .newsItem,
#calendar,
.catListView,
.catListPostArchive,
.catListTag,
.catListComment,
.catListLink,
.mySearch {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  margin-bottom: 12px;
}

#sideBarMain h3,
.catListTitle {
  color: #0f2742;
  font-size: 14px;
}

/* 移动端 */
@media (max-width: 1024px) {
  #home {
    width: 97vw;
  }

  #mainContent,
  #sideBar {
    width: 100% !important;
    float: none;
  }

  #sideBar {
    margin-top: 12px;
  }

  #navigator {
    height: auto;
    min-height: 48px;
  }

  #navList,
  #navList a {
    min-height: 48px;
    height: 48px;
    line-height: 48px;
  }
}