* {
  font-family: 'PingFang SC', Arial, "Microsoft YaHei UI", "Microsoft YaHei", serif;
  margin: 0;
  padding: 0;
  color: #333;
}

input {
  outline: none;
}

body {
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  background-color: #F9F9F9;
}

a {
  text-decoration: none;
  color: #000;
}

li {
  list-style: none;
  color: #3D3D3D;
}

header {
  margin: 0 auto;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header.pc_header {
  height: 137px;
}

@media (max-width: 1024px) {
  header.pc_header {
    height: auto;
  }
}

header .header_wrap {
  width: 1400px;
  height: 136px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .header_wrap .header_logo {
  display: flex;
  width: auto;
  max-width: calc(100% - 260px);
  height: auto;
  flex-shrink: 1;
  min-width: 0;
}

header .header_wrap .header_logo img {
  width: 760px;
  max-width: 100%;
  height: auto;
}

/* PC 搜索框（静态页 + 战群 Vue 嵌入通用） */
.header_search {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.qwss,
.tj {
  box-sizing: border-box;
  margin: 0;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.header_search .qwss,
.header_search .tj {
  vertical-align: top;
}

header .header_wrap .header_search {
  display: flex;
}

@media (min-width: 1025px) {

  div:has(> .qwss):has(> .tj):not(.m_search_box) {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }

  .header_search .qwss,
  div:has(> .qwss):has(> .tj):not(.m_search_box) > .qwss {
    width: 200px;
    height: 40px;
    padding: 0 10px;
    border: 2px solid #004b8d;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    line-height: 36px;
    background-color: #fff;
  }

  .header_search .tj,
  div:has(> .qwss):has(> .tj):not(.m_search_box) > .tj {
    width: 42px;
    height: 40px;
    padding: 0;
    border: 2px solid #004b8d;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #004b8d;
    background-image: url(../images/icon_search.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    flex-shrink: 0;
  }
}

@media (max-width: 1024px) {

  .m_search_box.active,
  .m_search_box.active > div,
  .m_search_box.active > div > div,
  .m_search_box.active div:has(> .qwss):has(> .tj) {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .m_search_box.active > div,
  .m_search_box.active > div > div,
  .m_search_box.active div:has(> .qwss):has(> .tj) {
    flex: 1;
    min-width: 0;
  }

  .m_search_box .qwss {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    line-height: normal;
    background-color: #fff;
  }

  .m_search_box .qwss:focus {
    border-color: #004b8d;
  }

  .m_search_box .tj {
    width: 42px;
    min-width: 42px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background-color: #004b8d;
    background-image: url(../images/icon_search.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    flex-shrink: 0;
  }
}

nav {
  margin: 0 auto;
  background-color: #004B8D;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 137px;
  z-index: 999;
}

nav .wrap {
  max-width: 1400px;
  height: 50px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  list-style: none;
}

nav .wrap li {
  flex: 1;
  height: 50px;
  line-height: 50px;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0;
}

nav .wrap li .nav_fir {
  display: block;
  height: 100%;
  transition: background-color 0.3s ease;
}

nav .wrap li .nav_fir a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  transition: color 0.3s ease, background-color 0.3s ease;
  font-size: 18px;
}

nav .wrap li:hover .nav_fir {
  background-color: #fff;
}

nav .wrap li:hover .nav_fir a {
  color: #004B8D;
}

nav .wrap li .nav_sec {
  position: absolute;
  background-color: #023a6c;
  display: none;
  z-index: 99;
  padding: 10px 0;
  min-width: 140px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  top: 100%;
}

nav .wrap li .nav_sec ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .wrap li .nav_sec li {
  display: block;
  height: auto;
  line-height: normal;
  width: 100%;
  flex: none;
}

nav .wrap li .nav_sec li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

nav .wrap li .nav_sec li:hover a {
  background-color: #004B8D;
}

nav .wrap li:hover .nav_sec {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

footer {
  height: auto;
  margin: 0 auto;
  font-size: 16px;
  background-color: #004B8D;
  background-image: url(../images/foot_bg.png);
  background-position: bottom;
  background-repeat: no-repeat;
  padding: 40px 0;
  margin-top: 100px;
}

footer div {
  color: #f1f1f1;
}

footer .wrap {
  width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.footer_up {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
}

.footer_contact {
  flex: 1;
}

.footer_contact p {
  color: #f1f1f1;
  font-size: 14px;
  line-height: 28px;
  margin: 0;
}

.footer_erweima {
  width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer_erweima img {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

.footer_erweima div {
  font-size: 14px;
  color: #f1f1f1;
  line-height: 24px;
}

.detail {
  width: 100%;
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  line-height: 28px;
  color: #f1f1f1;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #004b8d;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 75, 141, 0.3);
  transition: all 0.3s ease;
  flex-direction: column;
}

.back-to-top:hover {
  background-color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 75, 141, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  margin-top: 11px;
}

.back-to-top svg path {
  fill: #fff;
}