/* Banner区域样式 */
.list-banner {
  position: relative;
  width: 100%;
  height: 642px;
  background-image: url("../images/listBanner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

.banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 318px;
  height: 88px;
  background: linear-gradient(90deg, #de5152 0%, #a62427 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text h1 {
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  margin: 0;
}

/* 主要内容区域样式 */
.main-content {
  padding: 0;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.content-wrapper {
  display: flex;
  max-width: 1408px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

/* 左侧导航样式 */
.sidebar {
  width: 298px;
  flex-shrink: 0;
  background-color: #fff;
  position: relative;
  top: -55px;
  overflow: visible;
  height: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  width: 298px;
  height: 88px;
  background: linear-gradient(90deg, #de5152 0%, #a62427 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.sidebar-title h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: visible;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 318px;
  position: relative;
  left: -10px;
}

.sidebar-menu li {
  text-align: center;
  margin-bottom: 1px;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  margin-top: 15px;
  flex-direction: column;
  align-items: center;
}

.sidebar-menu li a {
  display: flex;
  width: 318px;
  height: auto;
  min-height: 58px;
  line-height: 1.5;
  padding: 10px 20px 10px 20px;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
  background-color: #fff;
  border: none;
  position: relative;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  align-items: center;
  justify-content: center;
}

/* 新增菜单容器样式 */
.menu-item-container {
  position: relative;
  display: flex;
  width: 318px;
  height: auto;
  min-height: 58px;
  background-color: #fff;
}

.menu-link {
  flex: 1;
  height: auto;
  min-height: 58px;
  line-height: 1.5;
  padding: 10px 10px;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 20px;
  background-color: #fff;
  border: none;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-menu li.active .menu-link {
  background: linear-gradient(90deg, #de5152 0%, #a62427 100%);
  color: #ffffff;
  z-index: 5;
  padding: 10px 40px 10px 40px;
  max-width: 100%;
  display: flex;
  height: auto;
  min-height: 58px;
  line-height: 1.5;
  white-space: normal;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
}

.sidebar-menu li.active .icon-container {
  background: linear-gradient(90deg, #a62427 100%, #a62427 100%);
}

.sidebar-menu li a:hover {
  color: #c33;
}

.sidebar-menu li.active {
  position: relative;
  z-index: 10;
}

.sidebar-menu li.active::before,
.sidebar-menu li.active::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  top: -8px;
  z-index: 2;
}

.sidebar-menu li.active::before {
  background-image: url("../images/s2.png");
  left: -0;
}

.sidebar-menu li.active::after {
  background-image: url("../images/s1.png");
  right: 0;
}

.sidebar-menu li.active > a {
  background: linear-gradient(90deg, #de5152 0%, #a62427 100%);
  color: #ffffff;
  /* font-weight: bold; */
  z-index: 5;
}

/* 第三级菜单样式 */
.sidebar-menu .menu-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 10;
}

.sidebar-menu li.has-child > a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;  /* 为图标预留空间 */
}

/* 默认隐藏激活图标，显示非激活图标 */
.sidebar-menu .menu-icon-active {
  display: none;
}

.sidebar-menu .menu-icon-inactive {
  display: block;
}

/* 当菜单激活时，隐藏非激活图标，显示激活图标 */
.sidebar-menu li.has-child.active .menu-icon-inactive,
.sidebar-menu li.has-child.expanded .menu-icon-inactive {
  display: none;
}

.sidebar-menu li.has-child.active .menu-icon-active,
.sidebar-menu li.has-child.expanded .menu-icon-active {
  display: block;
}

.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-menu li.has-child.expanded .sidebar-submenu {
  max-height: 300px; /* 足够容纳子菜单项的高度 */
  margin-top: 10px;
}

.sidebar-submenu li a {
  display: inline-block;
  justify-content: center;
  padding: 0;
  width: auto;
  height: auto;
  min-height: 40px;
  line-height: 40px;
  font-size: 16px;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  border-bottom: none;
  white-space: normal;
  word-break: break-all;
  text-align: center;
  padding: 0 10px;
}

.sidebar-submenu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px dashed #ccc;
}

.sidebar-submenu li {
  margin: 0;
  margin-top: 0;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
}

.sidebar-submenu li.active a {
  color: #c33;
  font-weight: bold;
  background: transparent;
}

.sidebar-submenu li:last-child a {
  border-bottom: none;
}

/* 右侧内容样式 */
.content-main {
  width: 1028px;
  flex-shrink: 0;
  background-color: #fff;
  box-shadow: none;
  margin-top: 40px;
  margin-bottom: 20px;
  margin-left: 70px;
  min-height: 500px;
}

.content-header {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 50px;
  height: 3px;
  background-color: #9d1d22;
  transform: translate(-50%);
}

.section-title {
  font-size: 30px;
  font-weight: bold;
  color: #9D1D22;
  position: relative;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  margin: 0;
  padding: 0;
  border: none;
}

/* 新闻列表样式 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  margin-bottom: 0;
  border-bottom: 1px dashed #CBCBCB;
  height: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.news-item a {
  justify-content: space-between;
  align-items: center;
  padding: 0;
  display: flex;
}

.news-title {
  flex: 1;
  font-size: 16px;
  color: #000000;
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: #9d1d22;
}

.news-date {
  margin-top: 0;
  font-weight: 400;
  font-size: 16px;
  color: #A6A6A6;
  white-space: nowrap;
  margin-left: 10px;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination a {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1408px) {
  .content-wrapper {
    max-width: 100%;
    padding: 0 15px;
    justify-content: center;
  }
  
  .content-main {
    width: calc(100% - 348px);
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .list-banner {
    height: 125px;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  .content-wrapper {
    flex-direction: column;
    padding: 0 15px;
    justify-content: flex-start;
    align-items: stretch;
  }
  
  .sidebar {
    width: 100%;
    margin-bottom: 30px;
    height: auto;
    top: 0;
  }
  
  .sidebar-title,
  .sidebar-menu li.active > a {
    width: 100%;
    left: 0;
  }
  
  .sidebar-menu li a {
    width: 100%;
    left: 0;
  }
  
  .sidebar-menu {
    width: 100%;
    left: 0;
  }
  
  .sidebar-submenu {
    width: 100%;
  }
  
  .content-main {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
  
  .content-header {
    margin-bottom: 0;
  }
  
  .section-title {
    font-weight: 400;
    font-size: 18px;
    color: #9D1D22;
  }
  
  .news-item {
    border-bottom: 1px solid #CBCBCB;
    height: auto;
    padding: 15px 0;
  }
  
  .news-item a {
    justify-content: space-between;
    align-items: center;
    padding: 0;
    display: flex;
  }
  
  .news-title {
    font-weight: 400;
    font-size: 15px;
    color: #333333;
    flex: 1;
  }
  
  .news-date {
    margin-top: 0;
    font-weight: 400;
    font-size: 13px;
    color: #BCBDBD;
    white-space: nowrap;
    margin-left: 10px;
  }
  
  .sidebar-menu li.active::before {
    left: 0;
  }
  
  .sidebar-menu li.active::after {
    right: 0;
  }
  
  .sidebar-menu li {
    justify-content: center;
  }
  
  .pagination {
    margin-top: 30px;
    margin-bottom: 10px;
  }
}
