/* 兼容性 */
/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

:root {
  --primary-color: #1f58a7;
  --secondary-color: #c4a777;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --white: #fff;
}
/* 通用样式 */
body {
  margin: 0;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.solution-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
  font-weight: 600;
}

/* 顶部导航栏 */
.navbar {
  background: var(--primary-color);
  -webkit-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; /* 添加过渡效果 */
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 60px;
}
.logo {
  width: 211px;
  height: 71px;
  /* margin-left: 20px; */
  img {
    width: 100%;
    height: 100%;
  }
}
.nav-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-right: 20px;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  width: calc(100% - 211px);
}
.nav-menu a {
  text-align: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  -webkit-transition: color 0.2s;
  -o-transition: color 0.2s;
  transition: color 0.2s;
  -webkit-transition: background-size 0.3s;
  -o-transition: background-size 0.3s;
  transition: background-size 0.3s;
  background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(var(--secondary-color))
    )
    no-repeat left bottom;
  background: -o-linear-gradient(left, var(--secondary-color)) no-repeat left
    bottom;
  background: linear-gradient(to right, var(--secondary-color)) no-repeat left
    bottom;
  background-size: 0% 2px;
  width: calc((100% - 211px) / 5);
  line-height: 40px;
}
.nav-menu a:hover {
  color: var(--secondary-color);
  background-size: 100% 2px;
}
.nav-contact {
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* 底部信息栏 */
.footer {
  background: #1f539c;
  color: var(--white);
  padding: 32px 0 0 0;
  font-size: 1rem;
  opacity: 0;
}
.footer-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.footer-contact {
  line-height: 2;
}
.footer-contact-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.footer-contact-top .icon-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.icon-text .icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  img {
    width: 100%;
    height: 100%;
  }
}
.icon-text .text {
  margin-right: 10px;
}
.time {
  margin: 10px 0;
  text-align: center;
}
.footer-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 20px;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.footer-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  -webkit-transition: color 0.2s;
  -o-transition: color 0.2s;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: #ffd700;
}
.address {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.address-icon {
  width: 20px;
  height: 20px;
  margin: 0 20px;
  img {
    width: 100%;
    height: 100%;
  }
}
.footer-link-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 260px;
  margin: 20px 0;

  img {
    width: 100%;
    height: 100%;
  }
}
.link-icon-item {
  position: relative;
}
.link-icon-item .icon {
  width: 30px;
  height: 30px;

  img {
    width: 100%;
    height: 100%;
  }
}
.link-icon-item .code {
  display: none; /* 默认隐藏 */
  position: absolute;
  left: -120px; /* 你可以根据二维码宽度调整这个值 */
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  padding: 5px;
  border-radius: 6px;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  img {
    width: 100px;
    height: 100px;
  }
}
.link-icon-item:hover .code {
  display: block; /* 悬浮时显示 */
}
.footer-bottom {
  text-align: center;
  padding: 16px 0 8px 0;
  font-size: 0.95rem;
  background: #1f58a7;
}

/* 响应式布局 */

@media (max-width: 900px) {
  .nav-menu a {
    width: auto;
  }

  .footer-contact-top {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .link-icon-item .code {
    left: 50%;
    top: -120px; /* 上方显示，数值根据二维码高度调整 */
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  .link-icon-item:hover .code,
  .link-icon-item:active .code {
    display: block;
  }
  .address {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
  }
}
@media (max-width: 700px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: -webkit-gradient(linear, left top, left bottom, from(#1f58a7));
    background: -o-linear-gradient(top, #1f58a7);
    background: linear-gradient(to bottom, #1f58a7);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    gap: 0px;
  }

  .nav-menu.show {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100vw;
  }
  .nav-menu a {
    padding: 16px 0;
    text-align: center;
  }
  .nav-toggle {
    display: block;
  }
  .nav-contact {
    display: none;
  }

  .footer-flex {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 12px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}
