/*
Theme Name: weibo18
Version: 1.0
Description: 单栏瀑布流，手机端双列
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft Yahei", sans-serif;
  background: #f8fafc;
  color: #2d3748;
  line-height: 1.7;
}
a {
  color: #3b82f6;
  text-decoration: none;
}
a:hover {
  color: #2563eb;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 单栏瀑布流容器（PC端1列，手机端2列） */
.masonry {
  /* PC端：1列 */
  column-count: 1;
  column-gap: 20px;
}
/* 手机端（≤767px）：强制2列 */
@media (max-width: 767px) {
  .masonry {
    column-count: 2 !important;
    column-gap: 15px !important;
  }
}

/* 瀑布流卡片（防止跨列断裂） */
.masonry-item {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  break-inside: avoid; /* 关键：防止卡片被拆分到两列 */
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 文章标题 */
.item-title {
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.5;
}
/* 摘要（68-158字） */
.item-excerpt {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
}
/* 作者+头像+时间 */
.item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-name {
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
}
.post-time {
  font-size: 12px;
  color: #94a3b8;
  margin-left: auto;
}

/* 分页 */
.pagination {
  text-align: center;
  margin: 40px 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  margin: 0 3px;
}
.page-numbers.current {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* 面包屑 */
.breadcrumb {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}
.breadcrumb a {
  color: #64748b;
}

/* 头部 */
.header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 0;
  text-align: center;
  margin-bottom: 24px;
}
.site-title {
  font-size: 22px;
  font-weight: 500;
  color: #3b82f6;
}

/* 内容页 */
.single-title {
  font-size: 24px;
  margin-bottom: 20px;
}
.single-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.post-nav a {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* 相关文章 */
.related {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e2e8f0;
}
.related-title {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.related-text {
  flex: 1;
  min-width: 0;
}
.related-text a {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  margin-top: 30px;
}