/*
Theme Name: Jiapu86 Theme
Theme URI: https://jiapu86.com
Author: Your Name
Description: 简约风格的 WordPress 家谱主题，支持三图横排展示、懒加载、标签点赞评论等功能。
Version: 1.0
*/
nav {display:block;overflow:hidden;padding-top:10px;padding-bottom:10px;margin-top:20px;margin-bottom:20px;}
nav li{float:left;padding-right:10px;list-style:none;}
nav li.cat-item-5 {display:none;}
nav li.cat-item-6 {display:none;}
.content img {display:block;max-width:100%;overflow:hidden;height:auto;padding-top:10px;}
body {
    background: #f0f0f0;
    font-family: "Microsoft Yahei", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
  }
  
  a {
    color: #333;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  .container {
    width: 860px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
  }
  
  header {
    padding: 20px 0;text-align: center;background:#f0f0f0;color:#fff;
  }
  
  header h1 {
    font-size: 24px;
    margin: 0 0 10px;
  }
  
  header nav {
    text-align: center;
    font-size: 18px;
    color: #999;
  }
  
  h1, h2, h3 {
    color: #222;
  }
  
  h2.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 10px;
  }
  
.post-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: nowrap; /* 移动端也强制横排 */
}

.post-item {
  flex: 1 1 0;
  max-width: 33%;
  overflow: hidden;
  aspect-ratio: 3 / 4; /* 保持统一图片比例（4:3），裁剪多余部分 */
}

.post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持居中裁剪填满 */
  display: block;
  loading: lazy;
  filter: brightness(100%);
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #8F8F8F;
  border-radius: 8px;
}

.post-item:hover img {
  filter: brightness(60%);
  transform: scale(1.03); /* 悬浮缩放 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 阴影 */
}
  
  .post-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
  }
  
  .meta {
    font-size: 14px;
    color: #888;
    margin: 10px 0;
  }
  
  .content {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 20px;
  }
  
  .content img {
    max-width: 100%;
    height: auto;
  }
  
  ul {
    padding-left: 20px;
  }
  
  ul li {
    margin-bottom: 5px;
  }
  
  .pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 14px;
  }
  
  footer {
    margin-top: 60px;
    background: #f7f7f7;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #8F8F8F;
  }
  
  @media screen and (max-width: 900px) {
    .container {
      width: 95%;
      padding: 15px;
    }
  
    .post-row {
      flex-direction: row;
    }
  
    .post-item {
      margin-bottom: 10px;
    }
  }
  
  .like-box {
    margin: 20px 0;
    font-size: 15px;
  }
  .like-button {
    display: inline-block;
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border-radius: 3px;
    text-decoration: none;
  }
  .like-button:hover {
    background: #d32f2f;
  }

  