/**
 * 杨家坪关于我们页面样式
 * 清晰的语义化命名，易于维护
 */

/* 页面主体容器 */
.main-container {
  width: 1200px;
  margin: 20px auto;
  padding: 0;
}

/* 页面布局 */
.content-row {
  display: flex;
  justify-content: space-between;
  border: 1px solid #999;
}

/* 左侧导航区域 */
.sidebar-col {
  width: 240px;
  background-color: #f8f8f8;
}

/* 右侧内容区域 */
.content-col {
  width: 920px;
  /* background-color: #fff; */
}

/* 左侧导航面板 */
.tab-box {
  /* background-color: #fff; */
  /* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); */
  border-radius: 4px;
}

/* 左侧导航标题区域 */
.image {
  height: 82px;
  background: #04ba44;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.image img {
  height: 26px;
}

/* 左侧导航菜单项 */
.title-item {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
}

.title-item:hover {
  /* background-color: #f9f9f9; */
}

.title-style {
  background-color: #046ccc1a;
}

.title-content {
  font-weight: 400;
  font-size: 22px;
  color: #2f2e2e;
  line-height: 30px;
  letter-spacing: 1px;
  text-align: justify;
  cursor: pointer;
}

.content-style {
  color: rgb(4, 186, 68);
  font-weight: 500;
}

/* 右侧内容区域 */
.search {
  background-color: #fff;
  /* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); */
  border-radius: 4px;
  padding: 20px;
}

/* 右侧内容区域标题 */
.text-box {
  padding-bottom: 21px;
  font-weight: 500;
  font-size: 25px;
  color: #04ba44;
  line-height: 40px;
  letter-spacing: 2px;
  border-bottom: 1px solid #d8d8d8;
}

.text-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 33px;
  margin-top: 15px;
}

/* 内容区域文本样式 */
.text {
  padding: 0 10px;
}

/* 内容区域段落样式 */
.text p {
  font-size: 18px;
  color: #2f2e2e;
  line-height: 31px;
  text-align: left;
}

/* 标题样式 */
.text p:first-child {
  /* font-weight: 500;
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
  color: #333; */
}

/* 普通段落缩进 */
.text p:not(:first-child) {
  text-indent: 2em;
  text-align: justify;
}

/* 新闻列表样式 */
.news-list {
  /* margin-top: 40px;
  border-top: 1px solid #eee; */
  padding-top: 20px;
}

.list-header {
  margin-bottom: 20px;
}

.list-header h3 {
  font-size: 24px;
  color: #04ba44;
  font-weight: 500;
  position: relative;
  padding-left: 16px;
}

.list-header h3:before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 24px;
  background-color: #04ba44;
}

.news-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  padding: 0;
  /* border-bottom: 1px dashed #e5e5e5; */
}

.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  text-decoration: none;
  color: #2f2e2e;
  width: 100%;
}

.news-title {
  flex: 1;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.news-dot {
  color: #918f8f;
  font-size: 30px;
  margin-right: 10px;
  line-height: 16px;
}

.news-date {
  color: #2f2e2e;
  font-size: 18px;
  margin-left: 20px;
  white-space: nowrap; /* 防止日期换行 */
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.pagination span,
.pagination a,
.pagination select {
  margin: 0 5px;
}

.pagination a {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
}

.pagination a.active {
  background-color: #04ba44;
  color: #fff;
  border-color: #04ba44;
}

.pagination a.next-page {
  width: auto;
  padding: 0 10px;
}

.energy-menu-item a:hover {
  background: none !important;
}

.yjpgywm-box {
  background-color: #f8f8f8;
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.news-pagination-info {
  margin-right: 20px;
  color: #666;
  font-size: 14px;
}
.news-pagination-select {
  margin-right: 20px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.news-pagination-buttons {
  display: flex;
  align-items: center;
}
.news-pagination-button {
  display: flex;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
  cursor: pointer;
}
.news-pagination-button.active {
  background-color: #04ba44;
  color: #fff;
  border-color: #04ba44;
}
.news-pagination-button.ellipsis {
  border: none;
}

@media screen and (max-width: 768px) {
  .main-container {
    width: 95%;
    margin: 0 auto;
  }
  .content-row {
    flex-direction: column;
    border: none;
  }
  .sidebar-col {
    width: 100%;
  }
  .content-col {
    width: 100%;
  }
  .pagination {
    font-size: 16px;
  }
  .search {
    padding: 0;
  }
  .text-box {
    margin-top: 20px;
  }
}
