/* 个人学习笔记 — 简洁朴素的中文阅读风格 */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2c2c2c;
  background: #fafaf7;
}
a { color: #1a5490; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* 页面整体容器 */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e0;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-name {
  font-size: 18px;
  font-weight: 600;
  color: #2c2c2c;
}
.site-name a { color: inherit; }
.site-name a:hover { text-decoration: none; color: #1a5490; }
.site-subtitle {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: normal;
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.nav a {
  color: #555;
}
.nav a.active { color: #1a5490; font-weight: 500; }

/* 主体 */
main {
  padding: 40px 0 60px;
  min-height: 60vh;
}
.intro h1 {
  font-size: 28px;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.intro p { color: #555; margin: 0 0 10px; }

/* 笔记列表 */
.note-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.note-list li {
  padding: 14px 0;
  border-bottom: 1px solid #ececea;
}
.note-list .meta {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}
.note-list .desc {
  color: #777;
  font-size: 14px;
  margin: 4px 0 0;
}

/* 文章内容（笔记详情） */
article h1 {
  font-size: 26px;
  margin: 0 0 8px;
}
article .meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ececea;
}
article h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  color: #2c2c2c;
}
article h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: #444;
}
article p { margin: 12px 0; }
article ul, article ol {
  margin: 12px 0;
  padding-left: 26px;
}
article li { margin: 4px 0; }
article code {
  font-family: SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: #f1f1ed;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: #c7254e;
}
article pre {
  background: #f6f6f3;
  border: 1px solid #ebebe6;
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0;
}
article pre code {
  background: none;
  padding: 0;
  color: #2c2c2c;
  font-size: inherit;
}
article table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}
article table th, article table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
article table th { background: #f6f6f3; font-weight: 600; }

/* 返回链接 */
.back-link {
  display: inline-block;
  margin: 30px 0 0;
  font-size: 14px;
  color: #888;
}

/* 底部备案信息 — 备案审核必看 */
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e5e0;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}
.site-footer a {
  color: #888;
}
.site-footer a:hover {
  color: #1a5490;
}

/* 移动端 */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding: 14px 0; }
  .site-header .container { gap: 10px; }
  .site-name { font-size: 16px; }
  .nav { gap: 14px; font-size: 13px; }
  main { padding: 28px 0 40px; }
  .intro h1 { font-size: 23px; }
  article h1 { font-size: 22px; }
}
