/* 森世界 博客样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f7f8fa;
  line-height: 1.8;
}

a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a73e8;
}
.nav a {
  margin-left: 24px;
  color: #555;
  font-size: 15px;
}
.nav a.active, .nav a:hover { color: #1a73e8; text-decoration: none; }

/* 首页横幅 */
.hero {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 32px;
  margin: 24px 0;
}
.hero h1 { font-size: 24px; margin-bottom: 8px; }
.hero p { color: #666; }

/* 文章卡片 */
.post-list { margin-bottom: 40px; }
.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.post-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.post-meta .tag {
  display: inline-block;
  margin-left: 10px;
  background: #eef4ff;
  color: #1a73e8;
  border-radius: 4px;
  padding: 0 8px;
}
.post-card h2 { font-size: 19px; margin-bottom: 8px; }
.post-card h2 a { color: #222; }
.post-card h2 a:hover { color: #1a73e8; text-decoration: none; }
.post-card p { color: #666; font-size: 15px; }
.read-more { display: inline-block; margin-top: 10px; font-size: 14px; }

/* 文章正文页 */
.article {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 36px 40px;
  margin: 24px 0 40px;
}
.article h1 { font-size: 26px; margin-bottom: 8px; }
.article .post-meta { margin-bottom: 20px; }
.article h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8;
}
.article p { margin-bottom: 14px; color: #444; }
.article ul, .article ol { margin: 0 0 14px 24px; color: #444; }
.article blockquote {
  border-left: 4px solid #dfe6ef;
  background: #f8fafd;
  padding: 10px 16px;
  color: #666;
  margin-bottom: 14px;
}
.article code {
  background: #f1f3f5;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  font-family: Consolas, Monaco, monospace;
}
.article pre {
  background: #282c34;
  color: #abb2bf;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 14px;
}
.article pre code { background: none; color: inherit; padding: 0; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; }

/* 关于页 */
.about-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 36px 40px;
  margin: 24px 0 40px;
}
.about-box h1 { font-size: 24px; margin-bottom: 16px; }
.about-box h2 {
  font-size: 18px;
  margin: 24px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8;
}
.about-box p { color: #444; margin-bottom: 12px; }

/* 页脚 */
.site-footer {
  border-top: 1px solid #eee;
  background: #fff;
  padding: 24px 0;
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 40px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: #666; }

/* 移动端适配 */
@media (max-width: 600px) {
  .article, .about-box, .hero { padding: 22px 18px; }
  .post-card { padding: 18px; }
  .nav a { margin-left: 14px; }
}
