/*
Theme Name: Weibo15
Author: jazz
Version: 1.0
Description: 淡紫温柔风 瀑布流双栏微博主题
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft Yahei", sans-serif;
  background: #f8f5ff;
  color: #4a3f68;
  line-height: 1.7;
}
a {
  color: #997ce9;
  text-decoration: none;
}
a:hover {
  color: #7d5bd1;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}
.wrap {
  display: flex;
  gap: 26px;
}
.main {
  flex: 1;
  min-width: 0;
}
.sidebar {
  width: 280px;
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

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

.header {
  background: #f3eeff;
  border-bottom: 1px solid #d9cdf3;
  padding: 22px 0;
  margin-bottom: 24px;
  text-align: center;
}
.site-title {
  font-size: 20px;
  color: #8c6ed9;
  font-weight: 500;
}
.breadcrumb {
  background: #fff;
  border: 1px solid #e1d5f7;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7a6a9f;
  margin-bottom: 20px;
}

/* 瀑布流卡片 */
.masonry-item {
  background: #fff;
  border: 1px solid #e1d5f7;
  border-radius: 16px;
  padding: 20px;
  break-inside: avoid;
  box-shadow: 0 1px 4px rgba(140, 110, 217, 0.06);
}
.post-title {
  font-size: 17px;
  margin-bottom: 10px;
  color: #4a3f68;
  line-height: 1.4;
}
.post-excerpt {
  font-size: 14px;
  color: #6b5e8e;
  margin-bottom: 16px;
  line-height: 1.7;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e1d5f7;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author {
  font-size: 14px;
  font-weight: 500;
  color: #8c6ed9;
}
.pub-time {
  font-size: 12px;
  color: #9b8bbf;
  margin-left: auto;
}

.pagination {
  text-align: center;
  margin: 32px 0;
}
.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e1d5f7;
  border-radius: 6px;
  margin: 0 3px;
  font-size: 14px;
  color: #7a6a9f;
}
.page-numbers.current {
  background: #997ce9;
  color: #fff;
  border-color: #997ce9;
}

.widget {
  background: #fff;
  border: 1px solid #e1d5f7;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 1px 4px rgba(140, 110, 217, 0.06);
}
.widget h3 {
  font-size: 16px;
  color: #8c6ed9;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0e9ff;
}
.widget ul {
  list-style: none;
}
.widget li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #f0e9ff;
}
.widget li:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.widget-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.widget-text {
  flex: 1;
  min-width: 0;
}
.widget-text a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

/* 内容页 */
.single-title {
  font-size: 24px;
  margin-bottom: 18px;
  color: #4a3f68;
}
.single-content {
  font-size: 15px;
  line-height: 1.9;
  color: #5c4f7d;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}
.related {
  margin-top: 26px;
}

.footer {
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: #9b8bbf;
  border-top: 1px solid #f0e9ff;
  margin-top: 24px;
}