/* ====================== */
/* 头部顶部链接栏（首页 | English | 旧版入口）*/
/* ====================== */
.header-top-bar {
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #003366;
  text-align: right;
}
.top-link-group {
  text-align: right;
}
.top-link-group a {
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  margin: 0 6px;
}
.top-link-group a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.top-link-group span {
  color: #ffffff;
  font-size: 15px;
}

/* 头部主区域适配顶部栏 */
.header {
  background: #004391;
  padding: 0;
  position: relative;
  height: 146px;
  display: flex;
  flex-direction: column;
}
.header .inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 原有LOGO样式不变 */
.head-logo-wrapper {
  position: static;
  transform: none;
  margin: 0 auto;
}
.sitelogo img {
  height: 92px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ====================== */
/* 头部左右链接布局 */
/* ====================== */
.header .mod {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左侧链接：上财首页 | English */
.header-left-links {
  position: absolute;
  left: -77px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: #fff;
}
.header-left-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}
.header-left-links a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.header-left-links span {
  color: #fff;
}

/* 右侧链接：旧版入口 */
.header-right-link {
  position: absolute;
  right: -77px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
}
.header-right-link a {
  color: #fff;
  text-decoration: none;
}
.header-right-link a:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* 保持原有 LOGO 居中不变 */
.head-logo-wrapper {
  position: static;
  transform: none;
}


/* ====================== */
/* 导航样式 */
/* ====================== */
#nav{
  position: relative;
  background-color: #004391;
  border-top: 1px solid #ffffff;
}

#nav .inner{
  height: 57px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wp-menu {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wp-menu .menu-item {
  position: relative;
  float: none;
}

/* 鼠标悬浮展开下拉 */
.wp-menu .menu-item:hover .sub-menu {
  display: block !important;
}

.wp-menu .menu-item a.menu-link {
  display: inline-block;
  padding: 0 47px;
  line-height: 55px;
  font-size: 22px;
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.wp-menu .menu-item.hover a.menu-link,
.wp-menu .menu-item a.hover{
  background-color:#214992;
  text-decoration: none;
  color:#fff;
}

/* 下拉菜单 */
.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 55px;
  min-width: 100%;
  z-index: 9999;
  background:#f5f5f5;
}
.sub-menu .sub-item {
  position: relative;
  white-space: nowrap;
}
.sub-menu .sub-item a {
  display: block;
  color: #000;
  height: 40px;
  line-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  background:none;
  text-align:center;
  text-decoration: none;
}
.sub-menu .sub-item.hover> a,
.sub-menu .sub-item a:hover{
  color: #fff;
  background-color:#214992;
}
.sub-menu .sub-menu {
  left: 100%;
  top:0px;
  z-index: 200;
  background:#fff;
}

.wp-menu .menu-item.i1 { background:none;}
.wp-menu .menu-item a > .menu-switch-arrow{
  display:inline-block;
  width:20px; height:20px;
  background:url(images/nav_j.png) no-repeat center center;
  vertical-align:middle;
}
#nav .inner .wp-panel .navbg{
  position:absolute; z-index:-1;left:0;right:0;top:0;bottom:0;
  width:auto; height:100%;background:#fff;opacity:.7;filter:alpha(opacity=70);
}





/* 底部专属样式 - 无冲突、独立使用 */
/* ============================== */

/* 全局清除浮动 */
.container-main5:after,
.container-main6:after,
.mod:after,
.link-list:after,
.icon-list:after {
  content: "";
  display: block;
  clear: both;
}

/* 通用 inner 宽度居中 */
.container-main5 .inner,
.container-main6 .inner,
.container-footer .inner {
  width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* -------------------- */
/* 友情链接 main5 */
/* -------------------- */
.container-main5 {
  background: #2c4c97;
  padding: 15px 0;
}
.box-link {
  width: 100%;
}
.link-list {
  margin: 0;
  padding: 0;
}
.link-list .link-item {
  float: left;
  list-style: none;
  margin-right: 25px;
  line-height: 30px;
}
.link-title {
  color: #fff;
  font-size: 15px;
}

/* -------------------- */
/* 底部信息 main6 */
/* -------------------- */
.container-main6 {
  /* ✅ 已修改：背景图 */
  background: url("images/main6bg.png") no-repeat bottom center;
  background-size: cover;
  padding: 30px 0 40px 0;
}

/* LOGO + 地址 */
.box-info-logo {
  float: left;
  width: 380px;
}
.box-info-logo img {
  height: 55px;
  display: block;
  margin-bottom: 10px;
}
.box-info-logo .address {
  color: #fff;
  font-size: 15px;
  line-height: 24px;
}

/* 图标区域 */
.box-info-icon {
  float: left;
  width: 280px;
  margin: 0 30px;
}
.icon-list {
  padding: 0;
  margin: 0;
}
.icon-list .icon-item {
  float: left;
  list-style: none;
  margin-right: 20px;
}
.icon-img {
  width: 70px;
  height: 70px;
  background: #2c4c97;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-img img {
  width: 40px;
  height: auto;
}

/* 电话区域 */
.box-info-tel {
  float: left;
  width: 380px;
}
.tel-text {
  color: #fff;
  font-size: 16px;
  line-height: 28px;
  margin: 0;
}

/* -------------------- */
/* 最底部版权 footer 高度变小 */
/* -------------------- */
.container-footer {
  background: #0d2a5f;
  /* ✅ 高度已调小：从 20px 改为 8px */
  padding: 8px 0;
  text-align: center;
}
.copyright-wrap p {
  color: #fff;
  font-size: 15px;
  margin: 0;
  line-height: 1.4;
}



/* 外层容器基础样式 */

.main5 {
  background:#2c4c97;
}
.main5 .inner {
  padding:10px 0;
}
.mod {
  /* 基础模块样式，无独立样式时继承通用 */
}
.clearfix:after{
  clear: both;
  content: ".";
  display: block;
  height:0;
  visibility: hidden;
}
.clearfix{ 
  display: block; 
  *zoom:1; 
}

/* post-51 核心样式 */
.post { 
  margin-bottom:10px; 
}
.post.post1.post-51.mbox li {
  float: left;
  width: auto;
  margin-bottom: 0px;
}
.post.post1.post-51.mbox .news_box.clearfix {
  margin: 0 15px;
  background: none;
}
.post.post1.post-51.mbox .news_images {
  width: 100%;
  height:;
  overflow:hidden;
}
.post.post1.post-51.mbox .news_images img {
  width: 100%;
}
.post-51 .news_title {
  padding:00px;
  font-size: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 48px;
  line-height:48px;
}
.post-51 .news_title a {
  color:#fff;
}

/* 外层容器基础样式 */
.wrapperx { 
  width:100%; 
  margin:0 auto;  
}
.wrapperx .inner {
  width: 1300px;
  margin:0 auto;
}

/* 友情链接模块 标题文字白色 */
#container-5 .post-51 .news_title {
    color: #ffffff !important;
}

/* 确保链接文字也是白色（如果里面包了a标签） */
#container-5 .post-51 .news_title a {
    color: #ffffff !important;
}

/* ======================================
   1. 修复 container-5（友情链接）：缩小高度 + 垂直居中 + 背景色 #214992
====================================== */
#container-5,
#container-5 .inner,
#container-5 .mod,
#container-5 .post,
#container-5 .con,
#container-5 .news_list {
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #214992 !important; /* 友情链接背景色 */
  color: #ffffff !important; /* 文字白色，更醒目 */
}

/* 控制整体高度：上下内边距 */
#container-5 {
  padding: 18px 0 !important;
  background: #214992 !important;
}

/* 友情链接文字垂直居中 */
#container-5 .news_title {
  line-height: 1.2 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  min-height: unset !important;
  background: transparent !important;
  color: #ffffff !important;
}

/* ======================================
   2. 修复 footer（版权）：缩小高度 + 居中
====================================== */
#footer,
#footer .inner,
#footer .mod {
  height: auto !important;
  min-height: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#footer {
  padding: 13px 0 !important;
}

.copyright-wrap p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.3 !important;
}



/* 移动端适配 - 头部样式 (屏幕宽度 ≤ 768px) */
@media (max-width: 768px) {
  /* 右侧链接：移动端 不显示 */
  .header-right-link {
    display: none !important;
  }

  /* 你原来的头部样式 保留不动 */
  .header {
    height: auto;
    padding: 10px 0;
  }
  .header .inner {
    width: 100%;
    padding: 0 10px;
  }
  .header .mod {
    width: 100%;
    height: auto;
    flex-direction: column;
    position: relative;
  }

  /* 左侧链接 */
  .header-left-links {
    position: static;
    transform: none;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
  }
  .header-left-links a {
    margin: 0 4px;
  }

  /* LOGO */
  .head-logo-wrapper {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  .sitelogo img {
    height: 60px;
    margin: 0 auto;
  }
}

/* 小屏手机额外适配 */
@media (max-width: 480px) {
  .sitelogo img {
    height: 50px;
  }
  .header-left-links {
    font-size: 13px;
  }
}

/* ====================== 侧边栏按钮：固定右上角，全设备显示 ====================== */
.sidebar-trigger-fixed {
  position: fixed !important;
  top: 50px !important;
  right: 15px !important;
  z-index: 9999999 !important;
  width: 43px !important;
  height: 43px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(26, 58, 117, 0.9) !important;
  border: 2px solid #ffffff !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* 图标样式 */
.trigger-icon {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff !important;
  position: relative;
}
.trigger-icon::before,
.trigger-icon::after {
  content: "";
  width: 24px;
  height: 3px;
  background: #fff !important;
  position: absolute;
  left: 0;
}
.trigger-icon::before { top: -8px; }
.trigger-icon::after { top: 8px; }

/* 侧边栏主体 */
.sidebar {
  position: fixed;
  top: 0;
  right: -212px;
  width: 212px;
  height: 100vh;
  background: #DEEBF5;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  padding: 22px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 9999;
}
.sidebar.open {
  right: 0;
}

/* 关闭按钮 */
.sidebar-header {
  text-align: right;
  margin-bottom: 20px;
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

/* 导航列表 */
.sidebar-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-item {
  margin-bottom: 10px;
}
.nav-link {
  display: block;
  padding: 11px 14px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  border-radius: 5px;
}
.nav-link:hover {
  background: #f0f4fb;
  color: #1a3a75;
}

/* 快捷导航四列 */
.sidebar-quick {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.sidebar-quick ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.sidebar-quick li {
  width: 25%;
  text-align: center;
  margin-bottom: 12px;
}
.sidebar-quick li a {
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

/* 遮罩层 */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 9998;
  display: none;
}
.sidebar-overlay.show {
  display: block;
}


/* 只禁止顶部导航的三级菜单，不影响左侧列表菜单！*/
.wp-menu .sub-menu .sub-menu {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}
.wp-menu .menu-item:hover .sub-menu .sub-menu,
.wp-menu .menu-item.active .sub-menu .sub-menu {
  display: none !important;
  visibility: hidden !important;    
}