/*
Theme Name: portal35
Description: 极简科技风 三列瀑布流 右侧单栏主题
Version: 1.0
Author: Custom
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #2d3436;
  line-height: 1.7;
}
a {
  color: #0984e3;
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: #0668b9;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 布局：内容 + 右侧边栏 */
.main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin: 40px 0;
}

/* ============================ */
/*        真 · 三列瀑布流        */
/* ============================ */
.waterfall {
  column-count: 3;
  column-gap: 25px;
}
.waterfall .card {
  break-inside: avoid;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  margin-bottom: 25px;
}

/* 文章缩略图 */
.card-thumb {
  width: 100%;
  margin-bottom: 15px;
}

/* 标题 */
.card-title {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 信息 */
.card-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.card-meta span {
  margin-right: 10px;
}

/* 摘要 */
.card-excerpt {
  font-size: 14px;
  color: #555;
}

/* 头部 */
.header {
  background: #2d3436;
  padding: 24px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  font-size: 24px;
  font-weight: 600;
  color: #0984e3;
  text-decoration: none;
}
.nav a {
  color: #eee;
  margin-left: 20px;
  font-size: 14px;
}

/* 面包屑 */
.bread {
  background: #fff;
  padding: 12px 15px;
  border-left: 3px solid #0984e3;
  margin-bottom: 25px;
  font-size: 13px;
  border-radius: 6px;
}

/* 分页 */
.pagination {
  text-align: center;
  margin: 10px 0 30px;
}
.pagination a,
.pagination .current {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin: 0 3px;
}
.pagination .current {
  background: #0984e3;
  color: #fff;
}

/* 右侧边栏 */
.sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}
.widget {
  margin-bottom: 28px;
}
.widget h3 {
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0984e3;
  margin-bottom: 16px;
}
.side-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.side-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* 内容页 */
.single {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}
.single-title {
  font-size: 26px;
  margin-bottom: 15px;
}
.post-nav {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  margin: 25px 0;
  font-size: 14px;
}
.related-item {
  padding: 6px 0;
  border-bottom: 1px dotted #eee;
}

/* 底部 */
.footer {
  background: #2d3436;
  color: #ccc;
  text-align: center;
  padding: 24px 0;
  margin-top: 20px;
  font-size: 13px;
}

/* 移动端：单列 + 侧边栏在底部 */
@media (max-width: 1100px) {
  .main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 3;
  }
  .waterfall {
    column-count: 2;
  }
}
@media (max-width: 768px) {
  .waterfall {
    column-count: 1;
  }
}