}@charset "utf-8";
/* CSS Document */

.hero-banner img {
  width: 100%;              /* 自动适应宽度（最大宽1920px） */
  max-width: 1920px;        /* 最大宽度限制为1920像素 */
  height: 570px;            /* 固定高度 */
  object-fit: cover;        /* 保持图片比例并填满区域 */
  display: block;
  margin: 0 auto;           /* 居中对齐 */
}
/* 外层容器：宽1920px，白底，水平居中 */
.news-section {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding-top: 80px;
}

/* 模块标题，居中 */
.news-title {
  font-size: 36px;
  font-family: 'MyFont', sans-serif;
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
}

.news-meta-time {
  margin-right: 10px;      /* 时间和路径之间留点距离 */
}

.news-meta-path {
  white-space: nowrap;     /* 避免路径被换行 */
}
/* 内容容器：宽1200px，水平排列两块，间隔30px，居中 */
.news-container {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

/* 左侧大内容区，宽900px，白底，圆角，阴影，无边框 */
.news-main {
  width: 900px;
	height: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0px 12px rgba(0,0,0,0.1);
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 单篇文章块，标题、摘要、时间布局 */
.news-article {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
	text-align: left;
}

/* 文章标题，限制80字符并省略溢出 */
.news-article-title {
  font-size: 18px;
  line-height: 1.3;
  max-height: 1.3em; /* 单行限制 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

/* 文章摘要，限制160字符，最多两行 */
.news-article-summary {
  font-size: 14px;
  color: #222;
  line-height: 1.4;
  max-height: 2.8em; /* 两行限制 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}

/* 发布时间 */
.news-article-time {
  font-size: 12px;
  color: #222;
}

/* 分页容器 */
.news-pagination {
  margin-top: 20px;
  text-align: center;
}

.news-pagination button {
  background-color: #3947ff;
  border: none;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.news-pagination button:hover {
  background-color: #2c37cc;
}

/* 右侧推荐区，宽270px，白底，圆角，阴影，无边框 */
.news-sidebar {
  width: 270px;
	height: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0px 12px rgba(0,0,0,0.1);
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
	text-align: left;
	
}

/* 推荐文章标题，限制单行，溢出省略 */
.news-sidebar-item {
  font-size: 14px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
}

.news-sidebar-item:hover {
  color: #3947ff;
  text-decoration: underline;
}
/* 新闻中心外层区域 */
.news-detail-section {
  width: 100%;
  background-color: #ffffff;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* 水平居中 */
}

/* 新闻中心标题 */
.news-detail-title {
  font-size: 36px;
  margin-bottom: 40px;
  font-family: 'MyFont', sans-serif;
  text-align: center;
}

/* 主体容器 */
.news-detail-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  box-sizing: border-box;
}

/* 左侧正文区域 */
.news-detail-main {
  width: 900px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0px 12px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  box-sizing: border-box;
}

/* 正文标题 */
.news-article-full-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 正文时间 */
.news-article-meta {
  font-size: 14px;
  color: #222;
  margin-bottom: 20px;
}

/* 正文内容段落 */
.news-article-content p {
  font-size: 16px;
  color: #222;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 上一篇/下一篇导航 */
.news-detail-navigation {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-detail-navigation a {
  color: #3947ff;
  text-decoration: none;
  font-size: 14px;
}

.news-detail-navigation a:hover {
  text-decoration: underline;
}

/* 右侧推荐文章列表 */
.news-detail-sidebar {
  width: 270px;
  height:100%;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0px 12px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 推荐文章项样式 */
.sidebar-item {
  font-size: 14px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sidebar-item:hover {
  color: #3947ff;
  text-decoration: underline;
}
