@charset "utf-8";


/* 新闻列表页专属样式 */
.page-banner {
  width: 100%;
  height: 260px;
  background: linear-gradient(rgba(0, 102, 179, 0.8), rgba(0, 102, 179, 0.8)), url('../img/news_bg.jpg');
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0, 80, 140, 0.2);
}
.page-banner .content {
  position: relative; z-index: 2; text-align: center;
}
.page-banner h1 {
  font-size: 2.5rem; margin-bottom: 10px;
}
.page-banner p {
  font-size: 1rem; opacity: 0.9;
}

/* 新闻列表页基础样式 */
.news-page {
  padding: 60px 0;
  background: #f8f9fa;
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr 3fr; /* 1:3 分栏 */
  gap: 30px;
  align-items: start;
}

/* 左侧悬浮导航 */
.news-sidebar {
  position: sticky;
  top: 100px; /* 下滑时永远距离顶部 100px，不会被顶部导航挡住 */
  align-self: flex-start;
}
.sidebar-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}
/* 新闻分类下方的分隔线 */
.sidebar-divider {
  width: 100%;
  height: 1px;
  background: #eee; /* 浅色横线，和设计风格匹配 */
  margin: 10px 0 10px; /* 上下留一点间距 */
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.sidebar-nav li {
  margin-bottom: 8px;
}
.sidebar-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #0066B3;
  color: #fff;
}
/* 箭头默认隐藏，hover 和 active 状态都显示 */
.sidebar-nav .arrow {
  display: none;
}
.sidebar-nav a:hover .arrow,
.sidebar-nav a.active .arrow {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.sidebar-contact {
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.sidebar-contact h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}
.sidebar-contact p {
  font-size: 14px;
  color: #666;
  margin: 6px 0;
}
.sidebar-contact .email,
.sidebar-contact .tel {
  color: #0066B3;
  text-decoration: none;
}

/* 右侧新闻列表 */
.news-content {
  background: transparent;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.news-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.news-img {
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .news-img img {
  transform: scale(1.05);
}
.news-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
}
.tag-company { background: #0066B3; }
.tag-research { background: #2dd4bf; }
.tag-tech { background: #3b82f6; }
.tag-exhibition { background: #f59e0b; }
.tag-industry { background: #10b981; }
.date {
  font-size: 13px;
  color: #999;
}
.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
  transition: color 0.3s ease;
}
.news-card:hover .news-title {
  color: #0066B3;
}
.news-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}
.read-more {
  font-size: 14px;
  color: #0066B3;
  text-decoration: none;
  font-weight: 500;
}
.read-more:hover {
  text-decoration: underline;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
/* 通用翻页 - 已升级为现代样式 */
div.scott {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 3px;
  padding: 3px;
  color: #666;
  font-size: 14px;
}

div.scott a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 0;
}

div.scott a:hover {
  border-color: #0066B3;
  background: #f5f7fa;
  color: #0066B3;
}

div.scott a:active {
  color: #0066B3;
  background: #f5f7fa;
}

/* 当前页 */
div.scott span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #0066B3;
  border-radius: 4px;
  background: #0066B3;
  color: #fff;
  font-weight: normal;
}

/* 不可点击按钮 */
div.scott span.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #ccc;
  background: #fff;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .news-layout {
      grid-template-columns: 1fr;
  }
  .news-sidebar {
      position: static;
      display: none;
  }
  .news-card {
      grid-template-columns: 1fr;
  }
  .news-img {
      height: 200px;
  }
}


/* 新闻详情页 独立样式 无冲突 */
.news-detail-page {
  padding: 60px 0;
  background-color: #f8f9fa;
}
.news-detail-wrap {
  width: 100%;
}
.news-detail-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 45px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 标题 */
.news-detail-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0 0 25px;
  line-height: 1.5;
}

/* 头部信息 */
.news-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #999;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

/* 正文排版 */
.news-detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}
.news-detail-content p {
  margin-bottom: 20px;
}
.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}

/* 上下篇 */
.news-detail-prev-next {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-detail-prev-next a {
  font-size: 15px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}
.news-detail-prev-next a:hover {
  color: #0066B3;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .news-detail-card {
      padding: 25px 20px;
  }
  .news-detail-title {
      font-size: 22px;
  }
  .news-detail-meta {
      gap: 15px;
  }
}