﻿/* 新闻列表样式 */
.news-list_list {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 减小行与行之间的间距，从15px减小到10px */
}

/* 增强选择器特异性，避免第三方样式冲突 */
.news-list_list .news-item_list,
.main-content .news-item_list {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 5px 0 !important; /* 减小上下内边距，从15px减小到12px */
  margin-bottom: 0 !important; /* 移除底部间距，使用gap控制 */
  background: transparent !important; /* 修改为透明背景 */
  border-radius: 0 !important; /* 移除圆角 */
  box-shadow: none !important; /* 移除阴影 */
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 1 !important;
  height: auto !important; /* 自适应高度 */
  width: 100% !important; /* 确保宽度100% */
  box-sizing: border-box !important; /* 确保padding不会增加宽度 */
}

.news-list_list .news-item_list:hover,
.main-content .news-item_list:hover {
  transform: none !important; /* 移除悬停时的位移效果 */
  background: rgba(245, 245, 245, 0.5) !important; /* 悬停时的背景色 */
  box-shadow: none !important;
}

.news-list_list .news-item_list:hover .news-date_list,
.main-content .news-item_list:hover .news-date_list {
  transform: scale(1.05) !important; /* 添加微小放大效果 */
  background: linear-gradient(145deg, #f0f4fa, #e6eef9) !important; /* 悬停时的渐变背景 */
  box-shadow: 0 3px 8px rgba(12, 86, 170, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.8) !important; /* 更突出的阴影 */
  border-color: rgba(12, 86, 170, 0.2) !important; /* 悬停时边框颜色变化 */
}

.news-list_list .news-item_list:hover .news-date_list .day_list,
.main-content .news-item_list:hover .news-date_list .day_list {
  color: #0a4a91; /* 悬停时文字颜色加深 */
}

.news-item_list .news-date_list {
  flex-shrink: 0 !important;
  width: 80px !important; /* 进一步增加宽度 */
  height: 80px !important; /* 进一步增加高度 */
  text-align: center !important;
  margin-right: 20px !important; /* 增加右侧间距 */
  padding: 0 !important;
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important; /* 渐变背景 */
  border-radius: 50% !important; /* 圆形 */
  border: 1px solid rgba(230, 230, 230, 0.8) !important; /* 添加细微边框 */
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.8) !important; /* 添加细微阴影和内阴影 */
  transition: all 0.3s ease !important;
  overflow: hidden !important; /* 确保内容不溢出 */
}

.news-date_list .day_list {
  display: block;
  font-size: 24px; /* 减小字体大小 */
  font-weight: bold;
  color: #0c56aa; /* 主题蓝色 */
  line-height: 1.2;
  margin-bottom: 6px; /* 保持底部间距 */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); /* 添加文字阴影 */
}

.news-date_list .month_list {
  display: block;
  font-size: 13px; /* 减小字体大小 */
  color: #666; /* 中灰色文字 */
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0.5px; /* 增加字母间距 */
  padding: 0 10px; /* 保持左右内边距 */
  width: 80%; /* 控制宽度，避免触及边缘 */
  margin: 0 auto; /* 居中显示 */
}

.news-item_list .news-content_list {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important; /* 修改为纵向排列 */
  justify-content: center !important; /* 垂直居中 */
  overflow: hidden !important; /* 确保内容不会溢出 */
  padding: 5px 0 !important; /* 添加一些内边距 */
}

.news-title_list {
  margin: 0;
  font-size: 18px; /* 增大标题字号 */
  line-height: 1.6;
  width: 100%;
  position: relative;
  padding-bottom: 16px; /* 增加标题与横线间距 */
  font-weight: normal; /* 保持普通字重 */
}

.news-title_list:after {
  content: '';
  position: absolute;
  left: 0; /* 调整为左侧对齐 */
  bottom: 0;
  width: 90%; /* 保持横线长度为90% */
  height: 1px;
  background: #e5e5e5; /* 浅灰色横线 */
  transition: all 0.3s ease;
}

.news-item_list:hover .news-title_list:after {
  height: 1px;
  background: #d0d0d0; /* 悬停时稍微深一点的灰色 */
  width: 90%; /* 保持与非悬停状态一致 */
}

.news-title_list a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title_list a:hover {
  color: #0c56aa;
}

/* 隐藏摘要和元数据 */
.news-summary_list,
.news-meta_list {
  display: none !important;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0 4px;
  padding: 0 8px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #f0f4fa;
  color: #21508a;
}

.pagination a.active {
  background: #21508a;
  color: #fff;
}

.pagination .next {
  padding: 0 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    padding: 16px;
  }

  .news-date {
    width: auto;
    margin-right: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
  }

  .news-date .day {
    font-size: 20px;
    margin-right: 8px;
  }

  .news-date .month {
    font-size: 13px;
  }

  .news-title {
    font-size: 16px;
  }

  .news-summary {
    font-size: 13px;
  }
}

/* 文章详情页样式 */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.article-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-meta {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.article-meta span {
  margin: 0 15px;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  /* width: 100%; */
  margin: 0 auto;
  padding: 0 40px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-images {
  margin: 30px 0;
  text-align: center;
}

.article-images img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

 /* 新增：左侧边栏模块样式 */
.sidebar-block {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-block-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e6f0;
  display: flex;
  align-items: center;
}

.sidebar-block-title i {
  color: #0c56aa;
  margin-right: 8px;
  font-size: 18px;
}

/* 热门标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  color: #666;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #e0e6f0;
}

.tag:hover {
  background: #0c56aa;
  color: #fff;
  border-color: #0c56aa;
}

/* 热门文章列表 */
.hot-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hot-article-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #e0e6f0;
  display: flex;
  align-items: flex-start;
}

.hot-article-list li:last-child {
  border-bottom: none;
}

.hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; /* 增加宽度 */
  height: 30px; /* 增加高度 */
  background: #f0f4fa;
  color: #0c56aa;
  border-radius: 4px;
  font-size: 14px; /* 增大字体大小 */
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.hot-article-list a {
  color: #333;
  text-decoration: none;
  font-size: 15px; /* 增大字体大小 */
  line-height: 1.5;
  transition: color 0.3s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hot-article-list a:hover {
  color: #0c56aa;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .article-title {
    font-size: 20px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-meta span {
    display: block;
    margin-bottom: 8px;
  }
} 