/* 底部样式 */
.footer {
    background-color: #fff;
    border-top: 1px solid #e8f0ff;
}
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid #e8f0ff;
}
.footer-top-inner {
    display: flex;
    justify-content: space-between; /* 导航左，二维码右 */
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}
/* 左侧导航区域 */

.footer-links {
    width: 70%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}
.footer-links .link-group {
    width: 30%;
}
.link-group h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.link-group h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #005A9C;
    border-radius: 1.5px;
}
.link-group ul {
    list-style: none;
    margin-top: 10px;
}
.link-group li {
    margin-bottom: 10px;
}
.link-group a {
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}
.link-group a:hover {
    color: #005A9C;
    text-decoration: underline;
    padding-left: 3px;
}
.footer-qrcode {
    width: 25%;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}
.qrcode-item {
    text-align: center;
    float: left;
}
.qrcode-item img {
    width: 120px;
    height: 120px;
    border: 1px solid #e8f0ff;
    padding: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.qrcode-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0,90,156,0.1);
}
.qrcode-item p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.friend-links-wrap {
    padding: 30px 0 10px;
    border-top: 1px solid #e8f0ff;
    margin-top: 20px;
}
.friend-links-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
}
.friend-links a {
    color: #666;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.friend-links a:hover {
    color: #005A9C;
    text-decoration: underline;
}
.footer-bottom {
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
    border-top: 1px solid #e8f0ff;
    background-color: #f8f9fa;
}

/* ========== 全局移动端左右边距大幅收窄 ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 2px !important;
  }
  .about .about-content,
  .contact-form,
  .news-item,
  .product-item,
  .advantage-item {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
.search-bar { padding:30px 0; background:#f8f9fa; }

/* ========== 底部移动端「自动换行」样式 ========== */
@media (max-width: 768px) {
  /* 底部链接容器：改为弹性换行布局 */
  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    width: 100% !important;
  }

  /* 每个链接组：自动分配宽度，尽量一行排下 */
  .footer-links .link-group {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    max-width: 45% !important;
    margin-bottom: 0 !important;
  }

  /* 标题样式：保持蓝色下划线，缩小字号 */
  .link-group h3 {
    font-size: 17px !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
  }
  .link-group h3::after {
    width: 30px !important;
    height: 3px !important;
  }

  /* 链接列表：紧凑排版 */
  .link-group ul {
    padding-left: 0 !important;
    margin-top: 6px !important;
  }
  .link-group li {
    margin-bottom: 6px !important;
  }
  .link-group a {
    font-size: 14px !important;
    color: #666 !important;
    text-decoration: none !important;
  }
  .link-group a:hover {
    color: #005A9C !important;
    text-decoration: underline !important;
  }

/* ========== 移动端底部最终美化版 ========== */
@media (max-width: 768px) {
  /* 1. 链接容器：改为两列布局 */
  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 25px !important;
  }

  /* 每个链接组：占48%宽度，刚好两列 */
  .footer-links .link-group {
    flex: 1 1 48% !important;
    min-width: 120px !important;
    margin-bottom: 0 !important;
  }

  /* 标题样式：缩小字号，保持蓝色下划线 */
  .link-group h3 {
    font-size: 17px !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
  }
  .link-group h3::after {
    width: 30px !important;
    height: 3px !important;
  }

  /* 链接列表：紧凑排版 */
  .link-group ul {
    padding-left: 0 !important;
    margin-top: 6px !important;
  }
  .link-group li {
    margin-bottom: 6px !important;
  }
  .link-group a {
    font-size: 14px !important;
    color: #666 !important;
    text-decoration: none !important;
  }
  .link-group a:hover {
    color: #005A9C !important;
    text-decoration: underline !important;
  }

  /* 2. 二维码区域：一行紧凑排列 */
  .footer-qrcode {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
  }
  /* 右侧二维码区域 */
.footer-qrcode {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-shrink: 0; /* 不被压缩 */
}
  .qrcode-item {
    text-align: center !important;
    flex: 0 0 auto !important;
  }
  .qrcode-item img {
    width: 85px !important;
    height: 85px !important;
    border: 1px solid #e8f0ff !important;
    padding: 6px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }
  .qrcode-item p {
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* 3. 底部版权栏：居中紧凑 */
  .footer-bottom {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.8 !important;
    text-align: center !important;
  }
  /* 4. 友情链接：自动换行 */
  .friend-links {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    font-size: 12px !important;
    justify-content: center !important;
  }
}


  /* 友情链接：自动换行 */
  .friend-links {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    font-size: 12px !important;
  }
}

  /* 2. 二维码区域 */
  .footer-qrcode {
      display: flex !important;
      justify-content: center !important;
      align-items: flex-start !important;
      gap: 15px !important;
      flex-wrap: nowrap !important;
      width: 100% !important;
      padding: 0 5px !important;
      box-sizing: border-box !important;
      margin-bottom: 20px !important;
  }
  .qrcode-item img {
      width: 85px !important;
      height: 85px !important;
      padding: 6px !important;
      margin-bottom: 8px !important;
  }
  .qrcode-item p {
      font-size: 12px !important;
  }
/* 全局移动端左右边距 */
@media (max-width: 768px) {
  .container {
    padding: 0 10px !important;
  }
  .about .about-content,
  .contact-form-wrap,
  .news-item,
  .product-item,
  .advantage-item {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/* ========== 移动端适配（堆叠为上下结构） ========== */
@media (max-width: 992px) {
    .footer-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
        width: 100%;
    }
    .footer-qrcode {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-links {
        gap: 20px;
    }
    .link-group {
        width: 45%;
    }
    .footer-qrcode {
        gap: 20px;
    }
    .qrcode-item img {
        width: 80px;
        height: 80px;
    }
}