/* 2025list.css */
.content {
  background-color: #fff;
  padding: 30px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 新闻列表页面布局 */
.news-container {
  display: flex;
  margin-top: 20px;
}

/* 左侧导航 */
.news-sidebar {
  width: 280px;
  margin-right: 30px;
  border-right: 1px solid rgba(153, 153, 153, 0.12);
}

/* 标题头部样式 */
.news-title-header {
  background: linear-gradient(
    90deg,
    rgba(73, 185, 176, 0.08),
    rgba(73, 185, 176, 0) 100%
  );
  padding: 15px 0 15px 15px;
  margin-bottom: 20px;
}

.news-sidebar h3 {
  font-size: 24px;
  font-weight: bold;
  color: #1658a0;
  margin: 0;
  position: relative;
}

.news-sidebar h3::before {
  content: " ";
  position: absolute;
  left: -16px;
  display: inline-block;
  width: 4px;
  height: 24px;
  background: #1658a0;
}

.news-sidebar ul {
  padding-left: 0;
}

.news-sidebar ul li {
  margin-bottom: 20px;
}

.news-sidebar ul li a {
  display: block;
  font-size: 18px;
  color: #666;
  transition: all 0.3s ease;
  padding-left: 25px;
  position: relative;
}

.news-sidebar ul li a:hover {
  color: #1658a0;
}

.news-sidebar ul li a.active {
  color: #1658a0;
  font-weight: bold;
}

.news-sidebar ul li a.active::before {
  content: "►";
  position: absolute;
  left: 0;
  font-size: 14px;
  color: #1658a0;
}

/* 右侧新闻列表 */
.news-list {
  flex: 1;
}

/* 新闻列表表格 */
.news-table {
  width: 100%;
  border-collapse: collapse;
}

.news-table tr {
  border-bottom: 1px solid #f5f5f5;
}

.news-table tr:hover {
  background-color: #f9f9f9;
}

.news-table td {
  padding: 15px 0;
}

.news-table td.news-title {
  width: 80%;
}

.news-table td.news-title a {
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
}

.news-table td.news-title a:hover {
  color: #1658a0;
}

.news-table td.news-date {
  width: 20%;
  text-align: right;
  color: #999;
  font-size: 14px;
}

/* 分页导航 */
.pagination {
  margin-top: 30px;
  text-align: right;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 2px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  color: #666;
  border-radius: 3px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

.pagination span.current {
  background-color: #1658a0;
  color: #fff;
  border-color: #1658a0;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
  .news-sidebar {
    width: 240px;
  }
}

@media screen and (max-width: 768px) {
  .content {
    padding: 20px 15px;
  }

  .news-container {
    flex-direction: column;
  }

  .news-sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(153, 153, 153, 0.12);
    padding-bottom: 15px;
  }

  .news-title-header {
    padding: 10px 0 10px 15px;
  }

  .news-sidebar h3 {
    font-size: 20px;
  }

  .news-sidebar ul {
    display: flex;
    flex-wrap: wrap;
  }

  .news-sidebar ul li {
    margin-right: 15px;
    margin-bottom: 10px;
  }

  .news-sidebar ul li a {
    font-size: 16px;
    padding-left: 20px;
  }

  .news-sidebar ul li a.active::before {
    font-size: 12px;
  }

  .news-content {
    width: 100%;
  }

  .news-table td.news-title a {
    font-size: 14px;
  }

  .news-table td.news-date {
    font-size: 12px;
    display: none;
  }

  .pagination {
    text-align: center;
  }

  .pagination a,
  .pagination span {
    padding: 3px 8px;
    margin: 0 2px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .news-sidebar ul {
    flex-direction: column;
  }

  .news-sidebar ul li {
    margin-right: 0;
  }

  .news-table td.news-title {
    width: 70%;
  }

  .news-table td.news-date {
    width: 30%;
  }
}
