/* ====================== ≤1500px 中等桌面 ====================== */
@media (max-width: 1500px) {
    body { min-width: 100%; }
    .container { max-width: 1240px; }
    nav li.hasNav { margin-left: 30px; }
    nav li.enquire { margin-left: 30px; }
    nav li a { font-size: 18px; }
}

/* ====================== ≤1200px 小桌面/平板横屏 ====================== */
@media (max-width: 1200px) {
    .container { max-width: 100%; padding: 0 20px; box-sizing: border-box; }
    .section-welcome .container { padding: 0 20px; }
    nav li.hasNav { margin-left: 18px; }
    nav li a { font-size: 17px; }
    nav li.enquire { margin-left: 20px; margin-right: 0; }

    /* footer */
    footer .container { gap: 30px 0; }
    .footer_lt { width: 100%; max-width: 500px; margin: 0 auto; float: none; }
    .footer_center { width: 100%; border-left: 0; border-right: 0; padding: 15px 0; }
    .footer_email { width: 100%; float: none; padding-left: 30px; margin: 0 auto; }

    /* 首页 */
    .home_procat_lt { width: 40%; padding-top: 0; }
    .home_procat_rt { width: 60%; }
    .home_procat_rt li { width: 100%; margin-right: 0; }
    .cert_rt li, .cert_rt .swiper-slide { width: calc(33.333% - 27px); }
    .cert_rt li:nth-child(4n) { margin-right: 40px; }
    .cert_rt li:nth-child(3n) { margin-right: 0; }

    /* about / 内页 */
    .page_cert .certs_lt { width: 45%; }
    .page_cert .desc_rt { width: 55%; padding-top: 20px; padding-bottom: 40px; }
    .page_fengyang_lt { margin-left: 40px; }
    .page_hotspro_ulist { grid-template-columns: repeat(4, 1fr); }
    .contact_lt { margin-left: 5%; }

    /* news / products */
    .news_left li .thumb { width: 300px; }
    .news_left li .desc { width: calc(100% - 300px - 25px); }
    .product_lt { width: 280px; margin-right: 30px; }
    .product_rt { width: calc(100% - 280px - 30px); }
    .news_ulist li .thumb { width: 300px; }
    .news_ulist li .desc { width: calc(100% - 300px); padding-left: 25px; }
}

/* ====================== ≤992px 平板：抽屉导航 + 栅格降级 ====================== */
@media (max-width: 992px) {
    /* ---------- 顶栏 + 头部 ---------- */
    .section-welcome { height: 40px; line-height: 40px; font-size: 13px; }
    .section-welcome .container { padding: 0 15px; }
    .header { height: 62px; }
    .logo { margin-top: 0; }
    .logo img { height: 44px; }
    .customize-support header { top: 46px; } /* WP admin bar 适配 */
    #heder-fixed, .white_topbar #heder-fixed { height: 102px; }

    /* ---------- 移动端抽屉导航（配合 body.nav-active，openmenu() 已内置） ---------- */
    .nav-but-wrap { display: block; float: right; margin: 16px 0 0 10px; position: relative; z-index: 1001; }
    .menu-icon { margin-top: 4px; }
    .menu-icon__line, .menu-icon__line-left, .menu-icon__line-right { background-color: var(--logo-color); }
    body.nav-active .menu-icon__line { opacity: 0; }
    body.nav-active .menu-icon__line-left { transform: translateY(9px) rotate(45deg); }
    body.nav-active .menu-icon__line-right { transform: translateY(-9px) rotate(-45deg); }

    nav { position: fixed; left: 0; top: 0; width: 100%; height: 100%; float: none;
          background: #fff; z-index: 999; overflow-y: auto; padding: 70px 0 50px;
          transform: translateX(100%); transition: transform .3s; }
    body.nav-active nav { transform: translateX(0); }
    nav .menu { display: block; }
    nav ul.dropdown { display: block; }
    nav li.hasNav { float: none; margin: 0; height: auto; padding: 0; border-bottom: 1px solid #eee; }
    nav li a { font-size: 16px; line-height: 1.4; padding: 14px 20px; }
    nav li.enquire { margin: 15px 20px 0; }
    nav li.enquire a { text-align: center; margin-top: 0; }

    .sub_menu { position: static; display: none; width: 100%; left: 0; top: 0; box-shadow: none;
                background: #f7f7f7; padding-bottom: 0; }
    .sub_menu li a { padding: 10px 20px; padding-right: 50px; }
    .sub_menu li ul { position: static; box-shadow: none; padding: 0; width: 100%; background: none; }
    .sub_menu li ul a { padding-left: 35px; }
    nav li.hasNav.on > .sub_menu { display: block; } /* 移动端点击展开兜底 */

    /* 产品巨幕菜单 -> 手风琴 */
    #product_menu .sub_menu { background: #f7f7f7; }
    #product_menu .container { display: block; padding: 0; }
    #product_menu .sub_menu_rt { width: 100%; }
    #product_menu .sub_menu_rt ul { grid-template-columns: 1fr; gap: 0; }
    #product_menu .sub_menu_rt li a { color: #333; border-bottom: 1px solid #e5e5e5; padding: 10px 20px; padding-right: 50px; }
    #product_menu .sub_menu_rt li a i { opacity: 1; }
    #product_menu .sub_menu_rt li li a { border: 0; padding: 8px 15px 8px 35px; }
    #product_menu .thumb { display: none; }

    /* ---------- 通用 ---------- */
    .container { padding: 0 15px; }
    .double-padding-60 { padding: 40px 0; }
    .padding-top-60 { padding-top: 40px; }
    .padding-bottom-60 { padding-bottom: 40px; }
    .h2_title { font-size: 24px; }
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 24px; padding: 0 15px; box-sizing: border-box; }
    .link-div a { padding: 12px 18px; font-size: 15px; }
    .link-thumb img { width: 100%; }

    /* ---------- 首页各区块 ---------- */
    .footerads_lt { width: 100%; }
    .footerads_rt { width: 100%; margin-top: 25px; }

    .home_since_lt { width: 100%; order: 1; margin-bottom: 30px; }
    .home_since_rt { width: 100%; }

    .home_six { flex-wrap: wrap; display: flex; }
    .home_six li { flex-basis: calc(50% - 10px); margin-right: 10px; margin-bottom: 25px; }
    .home_six li:nth-child(2n) { margin-right: 0; }

    .home_adv li.box { width: calc(50% - 10px); margin-right: 20px; }
    .home_adv li:nth-child(3n) { margin-right: 20px; }
    .home_adv li:nth-child(2n) { margin-right: 0; }

    .home_proline_lt { width: 100%; margin-bottom: 25px; }
    .home_proline_rt { width: 100%; }
    .home_proline_rt li { flex-basis: calc(33.333% - 7px); }

    .home_procat_lt { width: 100%; float: none; padding-top: 0; }
    .home_procat_rt { width: 100%; float: none; }
    .home_procat_rt li { width: calc(50% - 30px); }

    .cert_rt li, .cert_rt .swiper-slide { width: calc(50% - 20px); margin-right: 20px; }
    .cert_rt li:nth-child(3n), .cert_rt li:nth-child(4n) { margin-right: 20px; }
    .cert_rt li:nth-child(2n) { margin-right: 0; }

    /* ---------- about / 内页 ---------- */
    .page_about_rt { width: 100%; padding-left: 0; padding-top: 30px; }
    .page_about .thumb { width: 100%; }

    .page_business_lt { width: 100%; padding-right: 0; }
    .page_business .thumb { width: 100%; margin-top: 30px; }

    .whatdo_items ul li { width: calc(50% - 7.5px); margin-right: 15px; }
    .whatdo_items ul li:nth-child(3n) { margin-right: 15px; }
    .whatdo_items ul li:nth-child(2n) { margin-right: 0; }

    .page_whypartner_rt { width: 100%; padding-right: 0; }
    .page_whypartner .thumb { width: 100%; padding-top: 30px; }

    .page_whychooseus li .img { width: 100%; border-radius: 15px; order: 1 !important; }
    .page_whychooseus li .desc { width: 100%; padding: 25px 5px; order: 2 !important; }
    .page_whychooseus li .desc h4 { font-size: 24px; }

    .page_our_service li { width: 100%; margin-right: 0; padding: 35px 25px; border-radius: 15px; margin-bottom: 20px; }

    .page_customer_lt { width: 100%; padding-right: 0; }
    #our_clients .page_customer .thumb { width: 100%; margin-top: 30px; }

    .praise_person .desc { width: 100%; padding: 15px 0 0; }
    .page_praise li { width: calc(50% - 7px); margin-right: 13.333px; }
    .page_praise li:nth-child(4n) { margin-right: 13.333px; }
    .page_praise li:nth-child(2n) { margin-right: 0; }

    .page_fengyang .thumb { width: 100%; }
    .page_fengyang_lt { width: 100%; margin: 30px 0 0; padding-bottom: 0; }
    .page_fengyang .page_more_a { position: static; margin-top: 25px; }

    .page_cert .certs_lt { width: 100%; }
    .page_cert .certs_lt .certs-next-prev.swiper-certs-prev { margin-right: 0; left: 0; }
    .page_cert .certs_lt .certs-next-prev.swiper-certs-next { right: 0; }
    .page_cert .desc_rt { width: 100%; padding: 30px 0 0; }
    .page_cert .page_more_a { position: static; margin-top: 25px; text-align: left; }

    .page_hotspro_ulist { grid-template-columns: repeat(2, 1fr); }

    .page_team li .desc { width: 100%; padding: 0; order: 1; }
    .page_team li .img { width: 100%; order: 2; margin-top: 25px; }
    .page_team li:nth-child(2n) .desc { order: 1; padding: 0; }

    .page_resources li .img { width: 100%; order: 2; margin-top: 25px; }
    .page_resources li .desc { width: 100%; order: 1; padding-right: 0; }
    .page_resources li:nth-child(2n) .desc { order: 1; padding-left: 0; }

    .page_more_about li { width: calc(50% - 10px); margin-right: 15px; }
    .page_more_about li:nth-child(3n) { margin-right: 15px; }
    .page_more_about li:nth-child(2n) { margin-right: 0; }

    .faqs_tabs li { width: calc(50% - 10px); margin-right: 10px; margin-bottom: 10px; padding: 20px 0; }
    .faqs_tabs li:nth-child(4n) { margin-right: 10px; }
    .faqs_tabs li:nth-child(2n) { margin-right: 0; }

    .page_intouch_rt { width: 100%; padding-left: 0; order: 1; }
    .page_intouch .thumb { width: 100%; order: 2; margin-top: 30px; }

    .contact_box li { width: 100%; margin-right: 0; margin-bottom: 20px; padding: 35px 20px; }
    .contact_rt { width: 100%; order: 1; }
    .contact_lt { width: 100%; order: 2; margin: 30px 0 0; min-height: 400px; }

    .page_worktime ul { padding: 0; }
    .page_worktime li { width: 100%; margin: 0 0 20px; height: auto; }

    /* ---------- news / products ---------- */
    .home_news .news_left { width: 100%; }
    .news_right { width: 100%; margin-top: 40px; }
    .news_left li .thumb { width: 260px; }
    .news_left li .desc { width: calc(100% - 260px - 25px); }

    .product_lt { width: 100%; float: none; margin: 0 0 30px; }
    .product_rt { width: 100%; float: none; }
    .product_ulist li { width: calc(50% - 15px); margin-right: 30px; }
    .product_ulist li:nth-child(3n) { margin-right: 30px; }
    .product_ulist li:nth-child(2n) { margin-right: 0; }

    .pc-slide { width: 100%; float: none; }
    .products_desc_rt { width: 100%; float: none; padding: 25px 0 0; }
    .products_form ul.formul > li { width: 100%; margin-right: 0; }

    .news_ulist li .thumb { width: 100%; }
    .news_ulist li .desc { width: 100%; padding: 15px 0 0; }

    .download_ulists a { padding-right: 0; }
    .download_ulists span { position: static; display: inline-block; margin-top: 10px; }

    /* ---------- 侧边客服 ---------- */
    .kefu_equire { width: calc(100vw - 90px); max-width: 600px; }
    .kefu_equire .formul > li { width: 100%; margin-right: 0; }
}

/* ====================== ≤768px 手机 ====================== */
@media (max-width: 768px) {
    .section-welcome { height: 36px; line-height: 36px; font-size: 12px; }
    .header { height: 56px; }
    .logo img { height: 40px; }
    #heder-fixed, .white_topbar #heder-fixed { height: 92px; }

    .h2_title { font-size: 20px; margin-bottom: 20px; }
    .h2_title:after { margin-top: 15px; width: 80px; }
    .news_h1 { font-size: 24px; margin-bottom: 30px; }
    .home_about_desc { font-size: 14px; line-height: 1.8; }
    .link-div a { font-size: 14px; padding: 10px 14px; }
    .page_more_a a { width: 100% !important; margin-bottom: 10px; display: block; box-sizing: border-box; }
    .double-padding-60 { padding: 30px 0; }

    /* 首页 */
    .home_adv li.box { width: 100%; margin-right: 0; }
    .home_adv li:nth-child(3n) { margin-right: 0; }
    /* 触屏无 hover：常显文字 */
    .home_adv li b, .home_adv li p { opacity: 1; }
    .home_adv li .box-p { transform: translateY(0); }
    .home_adv li p { height: auto; -webkit-line-clamp: 4; }

    .home_proline_rt li { flex-basis: calc(50% - 5px); margin-right: 10px; }
    .home_proline_rt li:nth-child(2n) { margin-right: 0; }
    .home_proline_rt li p { position: static; opacity: 1; visibility: visible; height: auto;
                            background: var(--logo-color); padding: 10px; margin-top: 8px; }

    .home_procat_rt li { width: 100%; margin-right: 0; }
    .home_six li { flex-basis: 100%; margin-right: 0; }
    .cert_rt li, .cert_rt .swiper-slide { width: 100%; margin-right: 0; }
    .cert_rt li:nth-child(3n), .cert_rt li:nth-child(4n) { margin-right: 0; }
    #banner-slider .swiper-pagination-b * { width: 28px; }

    /* 内页 */
    .page_about_rt, .page_whypartner_rt, .page_customer_lt { padding-top: 25px; }
    .whatdo_items ul li { width: 100%; margin-right: 0; }
    .whatdo_items ul li:nth-child(3n), .whatdo_items ul li:nth-child(4), .whatdo_items ul li:nth-child(5) { margin-right: 0; width: 100%; }
    .page_our_service li { padding: 25px 18px; }
    .page_our_service li b { font-size: 20px; }
    .page_whychooseus li .desc h4 { font-size: 20px; }
    .praise_person { display: block; text-align: center; }
    .praise_person .username { padding: 12px 0 0; align-items: center; }
    .page_praise li { width: 100%; margin-right: 0; }
    .page_praise li:nth-child(4n) { margin-right: 0; }
    .certs_title_li li { font-size: 17px; }
    .faqs_tabs li { width: 100%; margin-right: 0; }
    .contact_box li { padding: 25px 15px; }
    .iso-thumb img { width: 140px; }
    .iso-thumb { padding-left: 1em; }

    /* news / products */
    .news_left li { padding: 15px; }
    .news_left li .thumb { width: 100%; }
    .news_left li .desc { width: 100%; margin-top: 15px; }
    .news_left li h4 a { font-size: 17px; }
    .news_left li span { padding-left: 30px; }
    .product_ulist li { width: 100%; margin-right: 0; }
    .products_desc_rt h1 { font-size: 20px; }
    .products_form_h2 { font-size: 24px; }
    .products_form_p { font-size: 16px; }
    .preview { padding: 0 35px; }
    .inquiry_btn span { display: block; text-align: center; }
    .news_ulist li .desc { padding-left: 0; }
    .page_content h2, .page-content h2 { font-size: 20px; }
    .news-content iframe { width: 100% !important; height: 56vw !important; }

    /* 页脚 */
    .footer_lt p, .footer_email p, .footer_center p, .fmenu a { font-size: 14px; }
    .footer_center b { font-size: 17px; margin-bottom: 20px; }
    .fmenu em { margin: 0 8px; }
    .copyright { font-size: 14px; padding-top: 25px; }
}

/* ====================== ≤480px 小屏手机 ====================== */
@media (max-width: 480px) {
    /* 顶栏只保留邮箱，隐藏社交图标 */
    .section-welcome .tshare a:not(.mail) { display: none; }
    .tshare a.mail { margin-right: 0; font-size: 12px; }

    .h2_title { font-size: 18px; }
    .page-banner h1 { font-size: 20px; }
    .link-div a { font-size: 13px; padding: 8px 10px; }
    .link-div a.link-3d { font-size: 13px; padding: 8px 10px; }

    .logo img { height: 34px; }
    .header { height: 50px; }
    #heder-fixed, .white_topbar #heder-fixed { height: 86px; }

    nav li a { font-size: 15px; }
    .page_hotspro_ulist p { font-size: 14px; padding: 10px 15px; }
    .download_ulists a { padding-left: 55px; background-size: auto 40px; }
    .download_ulists h3 { font-size: 16px; }
    .desc_p, .desc_p.product-features { padding: 15px; }
    .products_form .wpcf7-submit { width: 100%; }
    .contact_rt .wpcf7-submit { width: 100%; }
}