/* ===== CSS重置与标准化 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
  color: #333;
  background-color: #fff;
}

/* 移除默认列表样式 */
ol,
ul {
  list-style: none;
}

/* 表单元素重置 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  border: none;
  outline: none; /* 去除聚焦样式 */
}

.banner {
  width: 100%;
  height: 600px;
}
.banner img {
  width: 100%;
  height: 600px;
}

/* 当前位置导航 */
.breadcrumb-wrapper {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto 0;
  padding: 10px 15px;
  /* background-color: #f5f5f5; */
  border-radius: 5px;
  font-size: 0.9em;
}

.breadcrumb-content {
  color: #666;
}

.breadcrumb-content a {
  color: #004a99;
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb-content a:hover {
  text-decoration: underline;
}

.breadcrumb-content .current {
  color: #004a99;
}

/* 页面容器 */
.container {
  width: 100%;
  max-height: 1552px;
  background-image: url("list_bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px 0;
}
.content-wrapper {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 左侧菜单栏 */
.sidebar {
  width: 220px;
  /* background: linear-gradient(135deg, #004a99 0%, #002266 100%); */
  padding: 25px 0;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 10px 20px;
  position: relative;
  background-color: #e6e6e6;
}

.sidebar li:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #004a99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar li.active:after {
  opacity: 1;
}

.sidebar a {
  display: block;
  padding: 15px 20px;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar a.active {
  background-color: #004a99;
  color: white;
  /* transform: translateX(5px); */
}

.sidebar a:hover {
  background-color: #004a99;
  color: white;
  transform: translateX(3px);
}

/* 主要内容区 */
.main-content {
  flex: 1;
  padding: 30px;
  background-color: #fff;
}

.main-content h2 {
  font-size: 1.8em;
  color: #004a99;
  border-bottom: 3px solid #004a99;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-weight: 600;
}

/* 新闻列表 */
.news-list {
  margin-bottom: 30px;
}

.news-item {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px dashed #e0e0e0;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
}

.news-item:last-child {
  border-bottom: none;
}

.date {
  width: 160px;
  text-align: center;
  font-weight: bold;
  color: #004a99;
  /* background-color: #f0f5ff; */
  border-radius: 8px;
  padding: 10px;
  flex-shrink: 0;
}

.day {
  font-size: 1.8em;
  display: block;
  font-weight: 700;
  line-height: 1.2;
}

.year {
  font-size: 1em;
  color: #666;
  margin-top: 5px;
}

.content h3 {
  margin-bottom: 10px;
  color: #004a99;
  font-size: 1.3em;
  line-height: 1.4;
}

.content p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 15px;
}

.content .actions {
  text-align: right;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #004a99 0%, #002266 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 51, 153, 0.2);
}

.read-more:hover {
  background: linear-gradient(135deg, #002266 0%, #001144 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 51, 153, 0.3);
}

/* 分页 */
.pagination {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 0.95em;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.pagination a {
  margin: 0 5px;
  padding: 8px 14px;
  color: #004a99;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #004a99;
  color: white;
}

.pagination a.active {
  background-color: #004a99;
  color: white;
  font-weight: bold;
}

.pagination input[type="text"] {
  width: 60px;
  padding: 8px;
  margin: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.pagination button {
  padding: 8px 15px;
  background: linear-gradient(135deg, #004a99 0%, #002266 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background: linear-gradient(135deg, #002266 0%, #001144 100%);
  transform: translateY(-2px);
}

/* 响应式设计 */

/* 平板设备 (768px 及以下) */
@media screen and (max-width: 768px) {
  .banner {
    height: 300px;
  }
  
  .banner img {
    height: 300px;
  }
  
  .container {
    padding: 20px 0;
    min-height: auto;
  }
  
  .content-wrapper {
    flex-direction: column;
    width: 95%;
  }
  
  .sidebar {
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  
   .sidebar ul {
    display: flex;
    justify-content: center;
  }
  
  .sidebar li {
    margin: 10px 5px;
    flex: 1;
    max-width: 150px;
  }
  
  /* 选中箭头改为朝下 */
  .sidebar li:after {
    top: auto;
    right: 50%;
    bottom: -10px;
    left: auto;
    transform: translateX(50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: none;
    border-top: 10px solid #004a99;
  }
  
  .sidebar a {
    padding: 12px 15px;
    text-align: center;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .main-content h2 {
    font-size: 1.5em;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  
  .news-item {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }
  
  .news-item:hover {
    padding: 20px;
  }
  
  .date {
    width: 120px;
    margin: 0 auto;
  }
  
  .content .actions {
    text-align: center;
  }
  
  .pagination {
    margin-top: 20px;
    padding: 15px;
    font-size: 0.9em;
  }
  
  .pagination a {
    padding: 6px 10px;
    margin: 0 3px;
  }
}

/* 手机设备 (480px 及以下) */
@media screen and (max-width: 480px) {
  .banner {
    height: 200px;
  }
  
  .banner img {
    height: 200px;
  }
  
  .breadcrumb-wrapper {
    width: 95%;
    padding: 8px 10px;
    font-size: 0.8em;
  }
  
  .content-wrapper {
    width: 98%;
    border-radius: 8px;
  }
  
  .sidebar {
    padding: 10px 0;
  }
  
  .sidebar ul {
    flex-wrap: wrap;
  }
  
  .sidebar li {
    max-width: 45%;
    margin: 5px;
  }
  
  .sidebar a {
    padding: 10px 12px;
    font-size: 0.9em;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .main-content h2 {
    font-size: 1.3em;
    padding-bottom: 8px;
    margin-bottom: 15px;
  }
  
  .news-item {
    padding: 15px 0;
    gap: 10px;
  }
  
  .news-item:hover {
    padding: 15px;
  }
  
  .date {
    width: 100px;
    padding: 8px;
  }
  
  .day {
    font-size: 1.5em;
  }
  
  .content h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
  }
  
  .content p {
    font-size: 0.9em;
    margin-bottom: 10px;
  }
  
  .read-more {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  
  .pagination {
    margin-top: 15px;
    padding: 10px;
    font-size: 0.8em;
  }
  
  .pagination a {
    padding: 5px 8px;
    margin: 0 2px;
  }
  
  .pagination input[type="text"] {
    width: 40px;
    padding: 6px;
    margin: 0 5px;
  }
  
  .pagination button {
    padding: 6px 10px;
  }
}

/* 超小屏幕设备 (320px 及以下) */
@media screen and (max-width: 320px) {
  .banner {
    height: 150px;
  }
  
  .banner img {
    height: 150px;
  }
  
  .breadcrumb-content {
    font-size: 0.75em;
  }
  
  .main-content h2 {
    font-size: 1.2em;
  }
  
  .date {
    width: 80px;
    padding: 6px;
  }
  
  .day {
    font-size: 1.3em;
  }
  
  .content h3 {
    font-size: 1em;
  }
  
  .content p {
    font-size: 0.85em;
  }
  
  .read-more {
    padding: 5px 10px;
    font-size: 0.8em;
  }
}
