/*
Theme Name: weibo17
Version: 1.0
Description: 三栏瀑布流微博主题
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft Yahei", sans-serif;
  background: #f7f9fc;
  color: #2d3748;
  line-height: 1.7;
}
a {
  color: #4392e7;
  text-decoration: none;
}
a:hover {
  color: #2563eb;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 三栏结构 */
.site-row {
  display: flex;
  gap: 22px;
}
.side-left {
  width: 270px;
  flex-shrink: 0;
}
.main {
  flex: 1;
  min-width: 0;
}
.side-right {
  width: 270px;
  flex-shrink: 0;
}

/* 移动端折叠 */
@media (max-width: 1200px) {
  .site-row {
    flex-wrap: wrap;
  }
  .side-left {
    width: 100%;
    order: 2;
  }
  .main {
    width: 100%;
    order: 1;
  }
  .side-right {
    width: 100%;
    order: 3;
  }
}

/* 瀑布流 */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}

/* 文章卡片 */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e6edf7;
  break-inside: avoid;
  box-shadow: 0 1px 3px rgba(0,30,80,0.05);
}
.card-title {
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.card-excerpt {
  font-size: 14px;
  color: #556375;
  margin-bottom: 18px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e6edf7;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author {
  font-size: 14px;
  font-weight: 500;
  color: #4392e7;
}
.time {
  font-size: 12px;
  color: #8897ac;
  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 #e6edf7;
  font-size: 14px;
  margin: 0 3px;
}
.page-numbers.current {
  background: #4392e7;
  color: #fff;
  border-color: #4392e7;
}

/* 边栏模块 */
.widget {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e6edf7;
  margin-bottom: 20px;
}
.widget h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f5fb;
}
.widget-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.widget-li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.widget-text {
  flex: 1;
  min-width: 0;
}
.widget-text a {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

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

/* 头部底部 */
.header {
  background: #fff;
  border-bottom: 1px solid #e6edf7;
  padding: 24px 0;
  text-align: center;
  margin-bottom: 24px;
}
.site-title {
  font-size: 22px;
  font-weight: 500;
  color: #4392e7;
}
.footer {
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: #8897ac;
  border-top: 1px solid #e6edf7;
  margin-top: 30px;
}

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

/* 404 */
.page-404 {
  background: #fff;
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  border: 1px solid #e6edf7;
}