/* ============================================================
   responsive.css —— 整站移动端自适应样式（新增文件）
   ------------------------------------------------------------
   作用：在不改动各页面原有桌面端样式的前提下，通过媒体查询
        对固定像素宽度/高度的元素进行移动端适配。
   引入位置：各 HTML 页面 <head> 末尾（</head> 之前），确保
        加载顺序晚于页面内联 <style>，从而可覆盖内联样式。
   断点说明（站点按 1200px 桌面设计，故 <=1200px 全部进入
   移动布局，可彻底避免横向溢出）：
     - max-width:1200px  平板及以下：主容器流式、Header 折叠为
                      汉堡菜单、栅格单列、侧栏/表单堆叠、隐藏易
                      溢出的装饰大图、步骤横向滑动
     - max-width:480px   小屏手机：进一步收紧栅格与字号
   ============================================================ */

/* ============================================================
   移动端汉堡菜单按钮与遮罩层（桌面端隐藏，由 mobile-menu.js 注入）
   - .mobile-menu-toggle  右上角汉堡按钮
   - .mobile-menu-overlay  全屏下拉式导航遮罩
   桌面端默认 display:none，仅在 <=1200px 时显示。
   ============================================================ */
.mobile-menu-toggle,
.mobile-menu-overlay {
  display: none; /* 桌面端不显示 */
}

/* ============================================================
   平板及以下（<=1200px）：进入移动布局
   ============================================================ */
@media screen and (max-width: 1200px) {
  /* ---------- 全局：禁止横向滚动 ---------- */
  body {
    overflow-x: hidden;
  }

  /* ---------- 主容器：由固定 1200px 改为流式宽度 ---------- */
  .container,
  .vw,
  .web-map,
  .product-sub-text {
    width: 96% !important;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  /* ---------- 顶部 Header：高度收缩，折叠桌面导航 ----------
     说明：桌面端导航(.urllink)含 7 个链接，整体宽约 1080px，
     在 1200px 以下会横向溢出，故在此断点改为汉堡菜单。 */
  .head {
    height: 56px;
  }
  .head .logo {
    width: 110px;
    height: 24px;
  }
  /* 隐藏桌面端水平导航与电话区 */
  .head .urllink,
  .head .login {
    display: none !important;
  }

  /* ---------- 显示汉堡按钮（固定右上角） ---------- */
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 9px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #00a6ff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  /* 激活态：三线变 X */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }

  /* ---------- 全屏下拉遮罩导航 ---------- */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #fff;
    overflow: hidden;
    z-index: 10000;
    transition: height .3s ease;
  }
  .mobile-menu-overlay.open {
    height: 100vh;
    overflow-y: auto;
    padding-top: 56px;
  }
  /* 遮罩内导航：垂直排列 */
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .mobile-menu-nav .link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin: 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
  }
  .mobile-menu-nav .link.active {
    color: #00a6ff;
    background: #f5faff;
  }
  /* 打开遮罩时锁定页面滚动 */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* ---------- 面包屑：换行、缩小 ---------- */
  .web-map {
    height: auto;
    flex-wrap: wrap;
    margin: 12px auto;
  }
  .web-map .address,
  .web-map .item {
    font-size: 14px;
    padding-right: 12px;
    margin-right: 4px;
  }

  /* ---------- 标题组件：缩小字号并允许换行 ---------- */
  .container {
    flex-wrap: wrap;
  }
  .chinese-text {
    font-size: 24px;
    margin-right: 0;
  }
  .right-group {
    font-size: 11px;
    width: 100%;
    margin-top: 8px;
  }
  .icon {
    width: 22px;
    height: 22px;
  }

  /* ---------- 二级页面 Banner：高度收缩，标题缩小 ---------- */
  .page-banner {
    height: 220px;
  }
  .page-banner .banner-bg .banner-title {
    font-size: 34px;
  }
  .page-banner .banner-bg .banner-en,
  .page-banner .banner-bg .banner-subtext {
    font-size: 14px;
    margin-top: 14px;
  }

  /* ---------- 首页产品网格：单列 ----------
     说明：原 .item 宽 591px，两列在窄屏会溢出，统一改单列。 */
  .product {
    padding-top: 20px;
  }
  .product .content {
    margin-top: 16px;
  }
  .product .content .item {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
  }
  .product .content .image-container img {
    width: 100%;
    height: auto;
  }
  .product .content .description {
    height: 44px;
    font-size: 16px;
  }

  /* ---------- 首页"分享"区块：图文垂直堆叠 ---------- */
  .share {
    margin-top: 20px;
  }
  .share .share-content {
    flex-direction: column;
    margin: 16px 0;
  }
  .share .share-content .img {
    width: 100%;
    height: auto;
  }
  .share .share-content .share-info {
    width: 100%;
    margin-top: 16px;
  }
  .share .share-content .share-info .btn {
    width: 140px;
    height: 42px;
    font-size: 14px;
  }

  /* ---------- 首页"咨询/问答"区块：高度自适应 ---------- */
  .question {
    height: auto;
    padding: 30px 0;
    margin-top: 20px;
  }
  .question .bg {
    font-size: 14px;
    padding: 0 16px;
  }
  .question .bg .select {
    font-size: 22px;
    margin-bottom: 24px;
  }

  /* ---------- 首页"步骤"区块：横向滑动，避免溢出 ---------- */
  .step .outer-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .step .outer-container .step-item {
    height: auto;
  }
  .step .outer-container .step-item .item {
    width: 220px;
    flex: 0 0 auto;
  }
  .step .outer-container .step-item .arrow {
    display: none; /* 移动端隐藏步骤间箭头 */
  }

  /* ---------- 首页"应用场景"区块：单列 + 隐藏 991px 装饰大图 ----------
     说明：.middle .img 宽 991px，窄屏必溢出，故隐藏。 */
  .application {
    height: auto;
    padding: 30px 0;
    margin-top: 20px;
  }
  .application .application-content {
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
  }
  .application .application-content .item {
    width: 90%;
    height: auto;
    margin-bottom: 16px;
  }
  .application .application-content .middle,
  .application .application-content .middle .img {
    display: none;
  }

  /* ---------- 首页"合作"区块：图片换行 ---------- */
  .cooperate {
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .cooperate .cooperate-content .img-item {
    height: auto;
  }
  .cooperate .cooperate-content .img-item img {
    width: 45%;
    height: auto;
    margin-right: 4px;
    margin-bottom: 8px;
  }

  /* ---------- 首页"关于我们"区块：垂直堆叠 ---------- */
  .about-bg {
    padding-top: 25px;
    padding-bottom: 40px;
  }
  .about-title,
  .contact-title .text {
    font-size: 22px;
  }
  .about-content {
    margin-top: 25px;
    flex-direction: column;
  }
  .about-content .left,
  .about-content .right {
    width: 100% !important;
  }
  .about-content .introduce {
    font-size: 14px;
    line-height: 22px;
  }

  /* ---------- "关于我们"页资质图片：两列 ---------- */
  .qual-item {
    width: 45% !important;
    height: auto !important;
  }

  /* ---------- 联系我们页：表单与联系方式堆叠 ----------
     说明：原 .name-phone/.describe 宽 1065px，窄屏必溢出。 */
  .contact-bg {
    padding: 25px 0 40px;
  }
  .contact-type {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .contact-type .type-item .box {
    width: 60px;
    height: 60px;
  }
  .contact-type .type-item .box img {
    width: 26px;
    height: 26px;
  }
  .contact-type .type-item {
    font-size: 14px;
  }
  .contact-map {
    height: 220px;
    margin-top: 30px;
  }
  .contact-data {
    height: auto;
    padding: 20px;
    margin-top: 30px;
  }
  /* 内联宽度 1100px 的标题容器，强制自适应 */
  .contact-data .container {
    width: 100% !important;
  }
  .contact-data .name-phone {
    width: 100% !important;
    flex-direction: column;
    margin-top: 16px;
  }
  .contact-data .name-phone .item,
  .contact-data .describe {
    width: 100% !important;
    height: 48px;
    margin-top: 12px;
  }
  .contact-data .describe {
    height: 80px;
  }
  .contact-data .btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    margin: 24px auto 0;
  }

  /* ---------- 列表页左侧菜单 + 右侧内容：垂直堆叠 ----------
     说明：.menu(261px) + .page-content-item(901px) 横排共 1162px，
     窄屏必溢出，故改为纵向堆叠。 */
  .page-content {
    position: relative;
  }
  .content.f,
  .content.f.s-b,
  .page-content.f {
    flex-direction: column;
  }
  .menu,
  .menu .select-item,
  .menu .item {
    width: 100% !important;
    height: auto !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
  .page-content-item {
    width: 100% !important;
    height: auto !important;
    flex-direction: column !important;
    padding: 12px !important;
    margin-bottom: 16px;
  }
  .page-content-item .item-img {
    width: 100% !important;
    height: auto !important;
  }
  .page-content-item .item-img img {
    width: 100%;
    height: auto;
  }
  .page-content-item .item-text {
    margin-left: 0 !important;
    margin-top: 12px;
  }
  .page-content-item .item-text .title {
    font-size: 17px;
  }
  .page-content-item .item-text .text {
    font-size: 13px;
    line-height: 20px;
    margin-top: 12px;
    -webkit-line-clamp: 3;
  }
  .page-content-item .item-text .point-to {
    position: static !important;
    margin-top: 12px;
  }

  /* ---------- 搜索框：自适应 ---------- */
  .search {
    height: 50px;
    margin: 20px 0;
  }
  .search input[type="text"] {
    font-size: 14px;
  }
  .search input[type="submit"] {
    width: 90px !important;
    height: 44px !important;
    font-size: 13px !important;
  }

  /* ---------- 案例分享列表：图文堆叠 ----------
     说明：.case .item 含 item-img + line + item-text(677px)，横排
     在窄屏溢出，故改纵向堆叠并隐藏分隔线。 */
  .case .item {
    flex-direction: column;
    padding: 12px 0;
    margin-bottom: 16px;
  }
  .case .item .item-img,
  .case .item .item-img img {
    width: 100% !important;
    height: auto !important;
  }
  .case .item .line {
    display: none;
  }
  .case .item .item-text {
    margin-left: 0 !important;
    margin-top: 12px;
  }
  .case .item .item-text .text {
    width: 100% !important;
    font-size: 14px;
    line-height: 20px;
  }
  .case .item .point-to {
    position: static !important;
    margin-top: 12px;
  }

  /* ---------- 新闻列表：图文堆叠 ---------- */
  .switch_menu {
    flex-wrap: wrap;
    gap: 8px !important;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .switch_menu .item {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  .news .list-item {
    flex-direction: column;
    padding: 16px 0;
  }
  .news .list-item .date-photo {
    flex-direction: row;
  }
  .news .list-item .date-photo .photo {
    width: 100px !important;
    height: 70px !important;
    margin-right: 12px;
  }
  .news .list-item .date-photo .date {
    width: auto !important;
  }
  .news .list-item .date-photo .date .day {
    font-size: 18px;
  }
  .news .list-item .list-text {
    width: 100%;
    margin-top: 10px;
  }
  .news .list-item .list-text .title {
    font-size: 16px;
  }
  .news .list-item .list-text .text {
    font-size: 13px;
    line-height: 18px;
    margin-top: 8px;
  }
  .news .list-item .point-to {
    display: none; /* 移动端隐藏列表项末尾圆形箭头 */
  }

  /* ---------- 新闻/产品详情页：缩小标题与表格 ---------- */
  .news-detail,
  .product-detail {
    padding: 16px 12px 40px;
  }
  .news-title,
  .product-name {
    font-size: 20px;
  }
  .news-content,
  .product-intro {
    font-size: 14px;
    line-height: 1.8;
  }
  .section-title {
    font-size: 17px;
  }
  /* 参数表横向滚动，避免溢出 */
  .product-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .product-table td {
    padding: 8px 10px;
  }
  .scene-item {
    width: 100% !important;
  }
  .product-contact .btn {
    padding: 10px 28px;
    font-size: 14px;
  }

  /* ---------- 代理产品网格：两列 ---------- */
  .agent-list .list-item {
    width: 48% !important;
  }
  .agent-list .image {
    width: 100% !important;
    height: auto !important;
  }

  /* ---------- 分页：换行 + 紧凑 ---------- */
  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pagination a,
  .pagination > li > a,
  .pagination > li > span {
    padding: 6px 10px !important;
    margin: 2px !important;
    font-size: 13px;
  }

  /* ---------- 返回顶部按钮：缩小并贴近边缘 ---------- */
  .backtop {
    right: 14px !important;
    bottom: 80px !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 22px !important;
  }

  /* ---------- Footer：垂直堆叠，高度自适应 ---------- */
  .footer {
    height: auto;
  }
  .footer .box {
    height: auto;
    padding: 25px 16px;
  }
  .footer .box .footer_menu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
  }
  .footer .box .item {
    font-size: 13px;
  }
  .footer .box .info {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }
  .footer .box .bottom-logo {
    position: static !important;
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 12px;
  }
  .footer .box .footer-logo {
    font-size: 22px;
    margin-top: 12px;
  }
  .footer .box .footer-info {
    font-size: 12px;
    line-height: 18px;
    margin-top: 12px;
  }
  .footer .footer-record {
    height: auto;
    padding: 12px 16px;
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
  }
}

/* ============================================================
   小屏手机（<=480px）：进一步收紧两列网格为单列
   ============================================================ */
@media screen and (max-width: 480px) {
  /* 代理产品网格在小屏改为单列 */
  .agent-list .list-item {
    width: 100% !important;
  }
  /* 资质图片在小屏改为单列 */
  .qual-item {
    width: 100% !important;
  }
  /* 二级页面 Banner 标题进一步缩小 */
  .page-banner .banner-bg .banner-title {
    font-size: 26px;
  }
}
