/* =========================================== */
/* 手机端 Footer 样式优化 (gridFooter) */
/* 适用：屏幕宽度 ≤ 768px */
/* =========================================== */

@media (max-width: 768px) {
  /* 1. 整体容器重置与基础样式 */
  #gridFooter.jz_web_footer {
    background: linear-gradient(90deg, rgb(34, 42, 114) 0%, rgb(208, 52, 52) 100%) !important;
    /* 使用代码中的渐变背景，覆盖原深灰色 */
    padding: 20px 0 0 0 !important;
    /* 顶部留白，底部为版权行留空间 */
  }

  /* 2. 主内容区域 (row302) - 改为垂直堆叠布局 */
  #row302.jz_web_row5 {
    display: block !important;
    /* 覆盖可能的flex/grid布局 */
    padding: 20px 15px !important;
    /* 增加左右内边距 */
  }

  .jz_web_row__content {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 3. 所有列垂直排列，清除浮动和宽度限制 */
  .jz_web_col0,
  .jz_web_col1,
  .jz_web_col2,
  .jz_web_col3,
  .jz_web_col4 {
    width: 100% !important;
    float: none !important;
    margin: 0 0 30px 0 !important;
    /* 列之间添加垂直间距 */
    padding: 0 !important;
  }

  #module608.jz_project_608,
  #module609.jz_project_609,
  #module612.jz_project_612,
  #module615.jz_project_615 {
    margin: 0 !important;
  }

  /* 如果还有其他模块有类似问题，可以一并处理 */
  .jz_web_col0 .jz_module {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* 4. 特定列的顺序调整 (利用已有的 col_mobi_order_* 类) */
  /* 顺序已由HTML结构中的 col_mobi_order_0,1,2,3,4 定义，通常0,1,2,3为链接区，4为表单区 */
  /* 确保链接区块（关于我们、产品中心、服务支持）在联系信息之后 */

  /* 5. 联系信息区块 (col0) 样式优化 */
  .jz_web_col0 .module_img_wrap {
    text-align: center;
    margin-bottom: 20px;
  }

  .jz_web_col0 .module_img_wrap img {
    max-height: 50px !important;
    width: auto !important;
    filter: brightness(0) invert(1);
    /* 使Logo在深色背景上变为白色 */
  }

  #module608,#module613 .module_text_content b {
    color: #fff !important;
    font-size: 18px !important;
    display: block;
    margin-bottom: 15px;
    text-align: center;
  }

  /* 联系方式列表 */
  #module614 .second_style_content {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  #module614 .second_style_item {
    display: flex !important;
    align-items: center !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
  }

  #module614 .second_style_item_left {
    width: 40px !important;
    flex-shrink: 0 !important;
  }

  #module614 .second_style_item_left img {
    width: 24px !important;
    height: 24px !important;
    filter: brightness(0) invert(1) !important;
  }

  #module614 .second_style_item_right {
    flex: 1 !important;
  }

  #module614 .item_title {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* 6. 链接区块 (col1, col2, col3) 样式 - 改为紧凑网格或列表 */
  .jz_web_col1,
  .jz_web_col2,
  .jz_web_col3 {
    /* 可选方案A：水平并排 (适用于链接较少的栏目) */
    display: inline-block !important;
    width: 48% !important;
    /* 近似三等分 */
    vertical-align: top !important;
    margin-bottom: 20px !important;
  }

  /* 可选方案B：垂直堆叠 (如果希望每个栏目单独一行) */
  /* .jz_web_col1,
  .jz_web_col2,
  .jz_web_col3 {
    width: 100% !important;
    margin-bottom: 25px !important;
  } */

  .jz_web_col1 .module_text_content,
  .jz_web_col2 .module_text_content,
  .jz_web_col3 .module_text_content {
    text-align: center;
    /* 居中对齐 */
  }

  .jz_web_col1 b,
  .jz_web_col2 b,
  .jz_web_col3 b {
    color: #fff !important;
    font-size: 16px !important;
    display: block;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .jz_web_col1 a,
  .jz_web_col2 a,
  .jz_web_col3 a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    line-height: 2.2 !important;
    /* 增加行高便于点击 */
    display: block;
    text-decoration: none;
  }

  .jz_web_col1 a:hover,
  .jz_web_col2 a:hover,
  .jz_web_col3 a:hover {
    color: #fff !important;
    padding-left: 5px;
    /* 悬停微动效 */
  }

  /* 7. 在线留言区块 (col4) 样式优化 */
  .jz_web_col4 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px 15px !important;
    margin-top: 10px !important;
    /* 与上方区块增加间隔 */
  }

  #module611 .module_text_content b {
    color: #fff !important;
    font-size: 18px !important;
    display: block;
    margin-bottom: 20px;
    text-align: center;
  }

  /* 表单样式 */
  .m_form .form_container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .form_item_wrap {
    width: 100% !important;
  }

  .form_item .title_text {
    color: #fff !important;
    font-size: 14px !important;
    margin-bottom: 8px;
    display: block;
  }

  .input_style {
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }

  .form_submit {
    width: 100% !important;
    padding: 0px !important;
    background-color: #fff !important;
    color: #222a72 !important;
    /* 使用主题色 */
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-top: 10px;
  }

  /* 8. 版权信息行 (row4) 样式 */
  #row4.jz_web_row1 {
    background-color: rgba(0, 0, 0, 0.2) !important;
    /* 深色背景突出 */
    padding: 20px 15px !important;
    margin-top: 0 !important;
    text-align: center;
  }

  .s_footer_copyright {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    margin-bottom: 5px !important;
  }

  .s_footer_support_container {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
  }

  /* 9. 超小屏幕微调 (≤ 480px) */
  @media (max-width: 480px) {

    #row302.jz_web_row5,
    #row4.jz_web_row1 {
      padding-left: 10px !important;
      padding-right: 10px !important;
    }

    /* 小屏幕下链接区块改为垂直堆叠 */
    .jz_web_col1,
    .jz_web_col2,
    .jz_web_col3 {
      width: 100% !important;
      display: block !important;
    }

    .jz_web_col4 {
      padding: 15px 10px !important;
    }
  }
}