/* ========== 连云港市退役军人事务局 公共样式 ========== */
/* 全站通用：全局基础 + 公共头部/底部（配合 js/public-header-footer.js 注入使用） */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 字体规范（参考 tyjrswt.jiangsu.gov.cn）：全站微软雅黑，正文 15px */
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: #f2f4f7;
  color: #333;
  line-height: 1.6;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
}

/* 表单控件强制继承全局字体，避免浏览器默认字体 */
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #015293;
}

.wrap {
  width: 1200px;
  margin: 0 auto;
}

/* ========== 公共头部 1. 顶部状态栏 ========== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  font-size: 15px;
  color: #333;
}

.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

.top-bar .left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar .right a {
  margin-left: 20px;
  color: #333;
  display: inline-flex;
  align-items: center;
}

.top-bar .right a i {
  margin-right: 5px;
  font-size: 15px;
  color: #015293;
}

.top-bar .right a:hover {
  color: #015293;
}

.top-bar .right a:hover i {
  color: #14509a;
}

/* ========== 公共头部 2. 品牌区 ========== */
.brand {
  height: 200px;
  background: #fff;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  background: url(../images/top-banner.png) no-repeat left center;
}

.brand .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand .title {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand .title img {
  display: block;
  height: 100px;
  width: auto;
}

.brand .search-box {
  display: flex;
  border: 2px solid #015293;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 80px;
}

.brand .search-box input {
  width: 260px;
  height: 40px;
  border: none;
  padding: 0 16px;
  font-size: 15px;
  color: #333;
  outline: none;
  /* 信息公开旧主题 mobile.css 的全局 form input{vertical-align:middle} 会把搜索框顶高约2px，显式复位 */
  vertical-align: baseline;
}

.brand .search-box button {
  width: 80px;
  height: 40px;
  background: #015293;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  vertical-align: baseline;
}

.brand .search-box button:hover {
  background: #14509a;
}

/* ========== 公共头部 3. 主导航 ========== */
.main-nav {
  background: linear-gradient(90deg, #015293 0%, #2874c9 100%);
}

.main-nav ul {
  /* 显式清零，防止被 bootstrap 的 ul 默认内边距影响 */
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.main-nav ul li a {
  display: block;
  padding: 0 30px;
  height: 55px;
  line-height: 55px;
  color: #fff;
  font-size: 22px;
  position: relative;
  transition: background 0.2s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(255, 255, 255, 0.15);
}

/* 主导航子菜单：悬停下弹、移出消失 */
.main-nav ul li.has-sub {
  position: relative;
}

.main-nav ul .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}

.main-nav ul li.has-sub:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav ul .sub-menu li a {
  display: block;
  height: 38px;
  line-height: 38px;
  padding: 0 20px;
  color: #333;
  background: #fff;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav ul .sub-menu li a:hover {
  background: #f0f6ff;
  color: #1a5fb4;
}

/* ========== 公共底部 1. 底部导航（点击弹出链接菜单） ========== */
.bottom-nav {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  padding: 20px 0;
}

.bottom-nav .wrap {
  display: flex;
  gap: 20px;
}

.bottom-nav .b-item {
  flex: 1;
  position: relative;
}

.bottom-nav .b-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  background: linear-gradient(90deg, #015293, #2874c9);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.bottom-nav .b-link i {
  font-size: 14px;
  transition: transform 0.2s;
}

.bottom-nav .b-item.open .b-link i {
  transform: rotate(180deg);
}

.bottom-nav .b-link:hover,
.bottom-nav .b-item.open .b-link {
  background: linear-gradient(90deg, #14509a, #015293);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.3);
}

/* 向上弹出的链接菜单 */
.b-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  display: none;
  z-index: 100;
}

.b-item.open .b-menu {
  display: block;
  animation: menuUp 0.18s ease;
}

@keyframes menuUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 菜单下方小三角 */
.b-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}

.b-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 15px;
  color: #333;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-menu a:hover {
  background: #eaf2fc;
  color: #1a5fb4;
}

/* ========== 公共底部 2. 页脚 ========== */
.footer {
  background: #f0f2f5;
  color: #333;
  font-size: 15px;
  line-height: 2;
  margin-top: 30px;
  padding: 18px 0;
}

.footer .wrap {
  display: flex;
  align-items: center;
}

.footer-info {
  flex: 1;
  text-align: center;
  padding: 0 30px;
}

.footer-info p {
  margin: 0;
}

.footer a {
  color: #333;
  text-decoration: none;
}

.footer a:hover {
  color: #1a5fb4;
}

/* 左侧“政府网站找错”图标 */
.footer-icon-left img {
  display: block;
  width: 122px;
  height: auto;
}

/* 右侧机关盾牌 */
.footer-icon-right img {
  display: block;
  width: 67px;
  height: auto;
}

/* 公安备案小警徽与文字对齐 */
.police-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 18px;
}

.police-link img {
  width: 18px;
  height: 20px;
  margin-right: 5px;
}

.police-link span {
  line-height: 1;
  /* 字体度量导致视觉上文字偏下，上移微调 */
  position: relative;
  top: -2px;
}

.filed {
  width: 170px;
  height: 120px;
  top: 320px;
  left: 40%;
  margin-left: 300px;
  position: absolute;
  z-index: 99999;
  /* display: none; */
}

.filed-icon {
  width: 170px;
  height: 80px;
  top: 0px;
  left: 0px;
  position: relative;
  border: 8px red solid;
  box-sizing: border-box;
  line-height: 60px;
  text-align: center;
  vertical-align: middle;
  font-size: 36px;
  font-weight: bold;
  color: red;
}

.filed-date {
  line-height: 40px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  color: red;
}

/* ========== 网站地图（04 list-sitemap） ========== */
.sitemap-section {
  margin-bottom: 30px;
  clear: both;
}

.sitemap-section h3 {
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 0 0 10px;
  padding-left: 14px;
  border-bottom: 1px solid #ccc;
  position: relative;
}

.sitemap-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #1a5fb4;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sitemap-list li {
  float: left;
  min-width: 150px;
  height: 40px;
  line-height: 40px;
  background: #ececec;
  text-align: center;
  margin: 10px 20px 10px 0;
  border-radius: 4px;
}

.sitemap-list li a {
  display: block;
  font-size: 16px;
  color: #333;
  padding: 0 16px;
  border-radius: 4px;
}

.sitemap-list li a:hover {
  background: #1a5fb4;
  color: #fff;
}

/* ========== 信息公开主题（B02 机构概况 / B05 列表 / B08 内容页，原站 tyjrxxgkgb） ========== */
/* 右侧白色大框与公共底部之间的间距；.main 双限定确保不影响其他页面 */
.main .content_right {
  margin-bottom: 20px;
}