/* 导航栏激活状态样式 */
#header-placeholder{
  position: sticky;
  top: 0;
  z-index: 999;
  height: 90px;
}

/* 导航项左右竖线样式 */
.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-item::before  {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: .1rem;
  height: 24px;
  border-radius: 1px;
  background: linear-gradient(
              to bottom, /* 渐变方向：从上到下 */
              #ecfe 0%,   /* 顶部起始：浅灰色（#ccc） */
              #999 40%,  /* 40% 位置过渡到黑色 */
              #999 60%,  /* 60% 位置保持黑色（中间区域纯黑） */
              #ecfe 100%  /* 底部结束：浅灰色（#ccc） */
          );
}




.navbar-nav .nav-item::before {
  left: 0;
}

.navbar-nav .nav-item::after {
  right: 0;
}

.navbar-nav .nav-item:last-child::after {
  display: none;
}
.navbar-nav .nav-item:first-child::before {
  display: none;
}

.navbar-nav .nav-link.active {
   
    color: #0347AC !important;
  }

/* 子菜单页面时，一级菜单激活状态 */
.navbar-nav .nav-link.parent-active {
  color: #0347AC !important;
}
  
  /* 导航链接悬停效果 */
.navbar-nav .nav-link:hover {
  /* background-color: #0347AC; */
  color: #0347AC !important;
  cursor: pointer;
}

.nav-link[role="button"],
.dropdown-item {
  cursor: pointer;
}

/* 响应式调整：小屏幕上Logo居中 */
  @media (max-width: 768px) {
    .top-bar .col-md-4 {
      text-align: center;
      margin-bottom: 10px;
    }
    .top-bar .col-md-8 {
      justify-content: center;
    }
  }
  
  /* 下拉菜单样式优化 */
  .dropdown-menu {
    /* border: 1px solid #0d6efd; */
    border: 0;
    overflow: hidden;
    border-top: none;
    padding: 0;
    margin: 0;
  }
  
  .dropdown-item {
    padding: 8px 20px;
    border-bottom: 1px solid #eee;
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
  
  .dropdown-item:hover {
    background-color: #0347AC;
    color: white !important;
  }

  /* 子菜单激活状态 */
  .dropdown-item.active-child {
    color: #0347AC !important;
    font-weight: 500;
  }
  .dropdown-item.active-child:hover {
    color: white !important;
    font-weight: 500;
  }
  
  /* 大屏下下拉菜单默认位置调整 */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

 body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
   #footer-placeholder{
    margin-top: auto;
  }

/* 移动端菜单样式优化 */
@media (max-width: 991.98px) {
  body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    text-align: center;
    border-radius: 4px;
    margin: 2px 0;
  }

  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    background-color: transparent;
    color: #0347AC !important;
  }

  /* 移动端下拉菜单扁平化 */
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0.5rem 0 !important;
    margin-top: 0 !important;
    display: none;
    border-radius: 0;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-item {
    text-align: center;
    padding: 0.8rem 1rem;
    background-color: transparent !important;
    border: none !important;
    color: #666 !important;
  }

  .dropdown-item:hover {
    color: #0347AC !important;
  }

  /* 移动端子菜单激活状态 */
  .dropdown-item.active-child {
    color: #0347AC !important;
    font-weight: 500;
  }
   .dropdown-item.active-child:hover {
    color: white !important;
    font-weight: 500;
  }

  /* 移除展开时的箭头旋转效果（如有）或调整间距 */
  .dropdown-toggle::after {
    margin-left: 0.5rem;
  }

  /* 移动端隐藏导航项竖线 */
  .navbar-nav .nav-item::before,
  .navbar-nav .nav-item::after {
    display: none;
  }
}

.btn-primary{
    background-color: #0347AC;
    border-color: #0347AC;
  }

/* 图片新闻标题栏样式 */
.bottom-list-header {
  flex-wrap: wrap;
}

.bottom-list-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.view-more-link {
  color: #999;
  
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: auto;
    border-bottom: 1px solid #999;
    line-height: 1.1;
}

 

/* 移动端适配 */
@media (max-width: 768px) {
  .bottom-list-header {
    gap: 0.5rem;
  }
  
  .bottom-list-title {
    font-size: 1.25rem;
  }
  
  .view-more-link {
    font-size: 0.875rem;
  }
}