.breadcrumb {
  padding: 10px 15px;
  margin-bottom: 20px;
  width: 1200px; /* 设置宽度 */
  margin: 0 auto; /* 居中对齐 */
}

.breadcrumb .home-icon {
  width: 20px; /* 缩小图标大小 */
  height: 20px; /* 缩小图标大小 */
  margin-right: 5px; /* 图标和文字之间的间距 */
  stroke: currentColor; /* 使用当前文本颜色 */
  fill: none; /* 不填充颜色 */
  stroke-width: 2; /* 设置边线宽度 */
  vertical-align: middle; /* 垂直居中显示图标 */
  margin-top: -5px;
}

.breadcrumb a,
.breadcrumb span {
  display: inline-block;
  text-align: left; /* 文字左对齐 */
  text-decoration: none; /* 去掉下划线 */
  font-size: 16px; /* 调整字体大小 */
  color: #555; /* 调整字体颜色 */
}

.breadcrumb a:hover {
  color: #0056b3; /* 鼠标悬停时的颜色 */
}

.breadcrumb .separator {
  color: #6c757d;
  margin: 0 5px;
  font-size: 16px; /* 调整分隔符的字体大小 */
}

/* 修改后的 CSS */
.content {
  max-width: 1200px;
  padding: 20px;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.article-item {
  display: flex;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  border: none; /* 去掉边框 */
  height: 228px; /* 设置固定高度 */
  align-items: center; /* 使图片和文字垂直居中 */
  position: relative; /* 使子元素可以相对定位 */
}

/* 调整图片大小和位置 */
.article-item .article-img {
  width: 30%; /* 减小图片宽度 */
  height: 100%;
  margin-right: 20px; /* 增加图片与文字间的间距 */
}
.article-item img {
  width: 100%; /* 减小图片宽度 */
  height: 80%;
  object-fit: cover;
}
.article-summary {
  width: 70%; /* 调整文字区域宽度 */
  height: 90%; /* 调整文字区域高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px;
  overflow: hidden; /* 防止内容溢出 */
}

/* 增加文章标题与摘要之间的垂直间距 */
.article-summary h2 {
  font-size: 24px; /* 增大标题字体 */
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-summary .date {
  font-size: 16px; /* 增大日期字体 */
  line-height: 1.5;
  color: #666;
  margin: 0 0 10px 0;
}

/* 优化文字排版 */
.article-summary .excerpt {
  font-size: 16px; /* 增大摘要字体 */
  color: #333;
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 添加每行之间的分割线 */
.article-item {
  border-bottom: 1px dashed #ddd; /* 淡色虚线分割 */
}

.view-details {
  position: absolute; /* 绝对定位 */
  bottom: 10px; /* 距离底部10像素 */
  right: 10px; /* 距离右边10像素 */
  font-size: 16px; /* 调整字体大小 */
  color: #007bff; /* 文字颜色 */
  text-decoration: none; /* 去除下划线 */
  transition: color 0.3s; /* 平滑过渡 */
}

.view-details:hover {
  color: #0056b3; /* 鼠标悬停时的文字颜色 */
}

.article-detail {
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-detail h1 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

.article-detail .meta {
  margin-bottom: 20px;
  text-align: center;
  color: #666;
}

.article-detail .meta span {
  margin: 0 20px;
}

.article-content {
  padding: 10px 20px; /* 增加两边留白 */
  background-color: #fff;
  border: 1px solid #ccc;
  margin-top: 10px;
}

/* 段落首字母缩进两个字符 */
.article-content p {
  font-size: 16px;
  line-height: 2;
  color: #333;
  text-indent: 2em; /* 首字母缩进两个字符 */
}

/* 图片居中 */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto; /* 图片居中 */
}

.article-detail .attachments {
  margin-top: 20px;
}

.article-detail .attachments p {
  margin: 0;
}

.article-detail .attachments a {
  display: block;
  margin: 5px 0;
  text-decoration: none;
  color: #007bff;
}

.article-detail .attachments a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.pagination a {
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  margin: 0 4px;
  color: #333;
}

.pagination a:hover {
  background-color: #f1f1f1;
}
      /* 移动端样式 */
@media (max-width: 767px) {
  .content {
    width:100%;
   min-height:400px;
}
  .article-item{
  padding:10px 0px;
    margin-bottom:10px;
    align-items: start;
  }
  
  .page-item {
    color: #333333;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 14px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
  .article-detail h1{
    font-size:18px;
  }
  .article-detail {
    width:100%;
    box-sizing:border-box;
  }
  .article-list{
    gap:0px;
  }
  .article-summary h2 {
    font-size: 16px;
  }
  .article-summary .date {
    font-size: 14px;
    margin-bottom:4px;
  }
  .article-summary .excerpt {
    font-size: 14px;
  }
  .view-details {
    bottom: 47px;
  }
    .page-item {
    color: #333333;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 14px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
  .article-detail h1{
    font-size:18px;
  }
  .pagination a {
    padding: 4px 4px;
  
  }
 
}




