/* 页内锚点：避开固定头部遮挡 */
.wz-anchor,
#positioning,
#vision,
#mission,
#values,
#team,
#history {
  scroll-margin-top: 80px;
}

@media screen and (max-width: 1023px) {
  .wz-anchor,
  #positioning,
  #vision,
  #mission,
  #values,
  #team,
  #history {
    scroll-margin-top: 60px;
  }
}

/* 头部固定于顶部，路由跳转时不播放滑入动画 */
body.slide-in .header {
  animation: none;
}

.wz-home .logo {
  width: auto;
  height: 60px;
  padding: 0;
  display: flex;
  align-items: center;
}

.wz-home .logo a.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}

.wz-home .logo img,
.wz-home .logo .logo-img {
  float: none;
}

.nav.active {
  display: block;
}

/* 导航下拉：行业解决方案子菜单项间距 */
.nav .block-menu > ul > li > ul li a {
  height: 44px;
  line-height: 44px;
}

.wz-home .router-link-exact-active.active {
  color: inherit;
}

/* 首页行业八项：桌面四列，H5 两列（单卡宽度与微住官网一致） */
.wz-home .hangye-type ul {
  overflow: unset;
}

.wz-home .hangye-type li {
  width: calc((100% - 6px) / 4);
  margin-bottom: 2px;
  margin-right: 2px;
}

.wz-home .hangye-type li:nth-of-type(3n) {
  margin-right: 2px;
}

.wz-home .hangye-type li:nth-of-type(4n) {
  margin-right: 0;
}

@media screen and (max-width: 1023px) {
  /* H5：固定头占位，轮播下移，不与头部叠压 */
  .top-banner {
    margin-top: 0;
  }

  body.has-top-banner .header {
    background: #08061e;
  }

  .top-banner .banner-content {
    padding-top: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.fixed .header {
    transform: none;
  }

  /* H5 全屏侧滑导航 */
  .header .nav {
    z-index: 10;
    padding: 70px 5% 100px;
    -webkit-overflow-scrolling: touch;
  }

  .header .nav .block-menu {
    padding-bottom: 48px;
  }

  .header .nav:not(.active) {
    pointer-events: none;
  }

  .header.nav-open .nav-btn,
  .header.nav-open .header-right {
    visibility: hidden;
    pointer-events: none;
  }

  .header.nav-open .logo {
    position: relative;
    z-index: 11;
  }

  .header .nav .block-menu > ul > li > a {
    font-size: 16px;
    line-height: 48px;
    opacity: 1;
  }

  .header .nav .block-menu > ul > li > ul {
    padding-left: 0;
    margin-bottom: 8px;
  }

  .header .nav .block-menu > ul > li > ul li a {
    width: 100%;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    opacity: 0.85;
  }

  .header .nav li.expanded:not(.is-open) > ul {
    display: none;
  }

  .header .nav .m-close {
    cursor: pointer;
    z-index: 12;
  }

  .header .nav .lang-box {
    float: none;
    position: absolute;
    left: auto;
    right: 5%;
    bottom: 24px;
    height: auto;
    padding: 0;
    z-index: 11;
    text-align: right;
  }

  .header .nav .lang-box ul {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    background: none;
    text-align: right;
    white-space: nowrap;
  }

  .header .nav .lang-box ul li {
    display: inline;
    padding: 0;
    margin-left: 12px;
  }

  .header .nav .lang-box ul li:first-child {
    margin-left: 0;
  }

  .header .nav .lang-box ul li a {
    display: inline;
    font-size: 14px;
    line-height: 24px;
    color: #fff;
    opacity: 0.7;
  }

  .header .nav .lang-box ul li.active a,
  .header .nav .lang-box ul li a:hover {
    opacity: 1;
  }

  .wz-home .hangye-type li {
    width: calc((100% - 2px) / 2);
  }

  .wz-home .hangye-type li:nth-of-type(4n) {
    margin-right: 2px;
  }

  .wz-home .hangye-type li:nth-of-type(2n) {
    margin-right: 0;
  }
}

/* 微住底部：六列导航 + 联系信息 + 覆盖场景（微住深色底 #0E0E2A） */
.wz-footer-v2 {
  background: #0e0e2a;
  color: #fff;
}

.wz-footer-v2 .footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wz-footer-v2 .footer-block {
  flex: 1;
  min-width: 0;
}

.wz-footer-v2 .footer-block h2 {
  font-family: PingFangSC-Medium, PingFang SC, sans-serif;
  font-size: 14px;
  line-height: 150%;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}

.wz-footer-v2 .footer-block li a {
  font-size: 12px;
  color: #fff;
  opacity: 0.6;
  line-height: 26px;
  transition: opacity 0.3s;
}

.wz-footer-v2 .footer-block li a:hover {
  opacity: 1;
}

.wz-footer-v2 .footer-block li a.footer-qr-link span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 桌面端：悬停左侧弹出二维码 */
@media (hover: hover) and (min-width: 1024px) {
  .wz-footer-v2 .footer-block li a.footer-qr-link {
    position: relative;
  }

  .wz-footer-v2 .footer-block li a.footer-qr-link span {
    display: none;
    position: absolute;
    bottom: 0;
    right: 100%;
    margin-right: 8px;
    width: 160px;
    height: 160px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
  }

  .wz-footer-v2 .footer-block li a.footer-qr-link:hover span {
    display: block;
  }
}

.wz-footer-v2 .footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  padding: 12px 0;
  font-size: 12px;
  line-height: 150%;
  color: #fff;
  opacity: 0.6;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wz-footer-v2 .footer-contact strong {
  color: #fff;
  opacity: 1;
  font-weight: 600;
}

.wz-footer-v2 .footer-contact a {
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.wz-footer-v2 .footer-contact a:hover {
  opacity: 1;
}

.wz-footer-v2 .footer-scenarios {
  padding: 8px 0;
  font-size: 12px;
  line-height: 150%;
  color: #fff;
  opacity: 0.6;
  text-align: center;
}

.wz-footer-v2 .footer-scenarios strong {
  color: #fff;
  opacity: 1;
  font-weight: 600;
}

.wz-footer-v2 .footer-legal {
  opacity: 0.6;
  color: #fff;
  padding: 0;
  text-align: center;
}

.wz-footer-v2 .footer-legal p {
  font-size: 12px;
  line-height: 150%;
  padding: 8px 0;
  margin: 0;
  color: #fff;
  text-align: center;
}

.wz-footer-v2 .footer-legal p:first-child {
  padding-top: 10px;
}

.wz-footer-v2 .footer-legal p:last-child {
  padding-bottom: 12px;
}

.wz-footer-v2 .footer-legal a {
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.wz-footer-v2 .footer-legal a:hover {
  opacity: 1;
}

.wz-footer-v2 .footer-legal .footer-police-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

@media screen and (max-width: 1023px) {
  .wz-footer-v2 .footer-columns {
    flex-wrap: wrap;
    gap: 24px 16px;
  }

  .wz-footer-v2 .footer-block {
    flex: 0 0 calc(50% - 8px);
  }

  /* H5 / 微信·抖音内置浏览器：关注我们二维码内联展示，避免 hover 弹层被 overflow 裁切 */
  .wz-footer-v2 .footer-block-social ul {
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .wz-footer-v2 .footer-block-social ul li {
    display: block;
    margin-right: 0;
  }

  .wz-footer-v2 .footer-block-social li a.footer-qr-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
  }

  .wz-footer-v2 .footer-block-social li a.footer-qr-link span {
    display: block;
    position: static;
    margin: 6px 0 0;
    width: 80px;
    height: 80px;
    padding: 4px;
    background: #fff;
    border-radius: 4px;
    box-shadow: none;
  }
}

@media screen and (max-width: 767px) {
  .wz-footer-v2 .footer-block {
    flex: 0 0 100%;
  }

  .wz-footer-v2 .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* 关于我们页底部「加入我们」：全幅深蓝渐变 + 电路纹理 */
.wz-about .front-last.about-last {
  background: transparent;
}

.wz-about .front-last.about-last:before {
  height: 100%;
}

.wz-about .front-last.about-last .box.front6 {
  min-height: 320px;
}

@media screen and (max-width: 1023px) {
  .wz-about .front-last.about-last .box.front6 {
    min-height: 0;
    padding-bottom: 30px;
  }

  .wz-about .front-last.about-last .title-region {
    padding-top: 30px;
    margin-bottom: 20px;
  }

  .wz-about .front-last.about-last .btns-wrapper {
    margin-top: 20px;
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .wz-about .front-last.about-last .box.front6 {
    padding-bottom: 20px;
  }

  .wz-about .front-last.about-last .title-region {
    padding-top: 20px;
    margin-bottom: 15px;
  }

  .wz-about .front-last.about-last .btns-wrapper {
    margin-top: 15px;
  }
}

/* 新闻卡片图片：固定高度裁切（hover 缩放见 index.css） */
.pic-news li span.news-cover img {
  display: block;
  height: 240px;
  object-fit: cover;
}

/* 首页新闻动态：标题最多两行，超出省略（display 必须高于 index.css 的 .pic-news li span.news-title） */
.wz-home .front-news .pic-news li span.news-title.fix-two-lines {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 24px;
  height: calc(24px * 2 + 20px);
  max-height: calc(24px * 2 + 20px);
}

.en .wz-home .front-news .pic-news li span.news-title.fix-two-lines {
  line-height: 20px;
  height: calc(20px * 2 + 32px);
  max-height: calc(20px * 2 + 32px);
}

@media screen and (max-width: 1023px) {
  .wz-home .front-news .pic-news li span.news-title.fix-two-lines {
    line-height: 18px;
    height: calc(18px * 2 + 32px);
    max-height: calc(18px * 2 + 32px);
  }
}

@media screen and (max-width: 767px) {
  .wz-home .front-news .pic-news li span.news-title.fix-two-lines {
    line-height: 18px;
    height: calc(18px * 2 + 20px);
    max-height: calc(18px * 2 + 20px);
  }
}

/* 新闻详情 H5：分享栏单独置顶一行，不与正文并排 */
@media screen and (max-width: 1023px) {
  .wz-news-details .main-content .left {
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .wz-news-details .main-content .left .fx-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .wz-news-details .main-content .left .fx-box a {
    float: none !important;
    margin: 0 !important;
  }

  .wz-news-details .main-content .middle {
    clear: both;
    width: 100%;
  }
}
