/* Shared responsive layer. Loaded after page styles so legacy desktop rules
   remain the source of truth above 768px while narrow layouts can reflow. */
.main, .footer .footer_inner { width: min(94%, 16.4rem); max-width: 1640px; }
img { max-width: 100%; }
.foot_follow .follow_item.qr_open .follow_pop { opacity: 1; visibility: visible; }
.s_banner_bg img, .p_banner_bg img, .index_banner img { width: 100%; height: 100%; object-fit: cover; }
.s_banner_con, .p_banner_con, .ad_hero_inner, .n_art_body, .ct_body { min-width: 0; }
.p_grid, .news_grid, .n_video_grid, .n_relate_grid, .s_grid, .c_grid { min-width: 0; }
/* AOS translates this image from the right during its entrance animation.
   Keep the transformed box inside the viewport so it cannot widen the page. */
.ab_intro_img[data-aos] { transform: none !important; }

@media (max-width: 1440px) {
  .header { padding-left: clamp(.28rem, 4vw, 1.4rem); padding-right: clamp(.28rem, 4vw, 1.4rem); }
  .header .head_nav { column-gap: clamp(.2rem, 2.2vw, .8rem); }
  .header .head_right, .header .head_opts { column-gap: clamp(.18rem, 2vw, .6rem); }
}

/* Keep the original desktop composition intact while giving the 1200px
   class of screens a predictable content gutter. */
@media (min-width: 1101px) and (max-width: 1200px) {
  .main, .footer .footer_inner { width: calc(100% - .8rem); }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .header .head_logo { width: .86rem; }
  .header .head_nav .head_item { font-size: max(12px, .15rem); }
  .header .head_link { font-size: .14rem; padding-left: .12rem; padding-right: .12rem; }
  .header .head_opts .head_lang_toggle { font-size: .12rem; }
  .main, .footer .footer_inner { width: calc(100% - .56rem); }
  .p_grid, .news_grid, .n_video_grid, .n_relate_grid, .s_grid, .c_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad_content_row, .p_scene, .ct_body { gap: .28rem; }

  /* The contact page uses desktop absolute positioning by default. At tablet
     widths, let the map and company card flow below the heading instead. */
  .ct_body { overflow: hidden; }
  .ct_info { height: auto; padding: .72rem 0 .42rem; }
  .ct_info .ct_sec_title { position: static; }
  .ct_map {
    position: relative;
    left: auto;
    top: auto;
    width: min(12.4rem, 100%);
    height: auto;
    aspect-ratio: 12.4 / 6.05;
    margin: .3rem auto .22rem;
  }
  .ct_map .ct_map_pin { left: 56.4%; top: 45.8%; width: .4rem; height: .4rem; }
  .ct_card {
    position: relative;
    left: auto;
    top: auto;
    width: min(7.6rem, 100%);
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .sec_about .about_row { flex-direction: column; gap: .3rem; }
  .sec_about .about_fig { width: 100%; height: auto; aspect-ratio: 8.8 / 6; flex: 0 0 auto; }
  .sec_about .about_info { width: 100%; }
  .sec_about .about_stats { margin-top: .3rem; }
  .sec_service .service_row { flex-direction: column; gap: .28rem; }
  .sec_service .service_list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .12rem; }
  .sec_service .service_map { width: 100%; height: auto; aspect-ratio: 2 / 1; flex: 0 0 auto; }
  .sec_service .service_map > img { object-fit: contain; }
  .sec_service .map_tag { left: auto; top: auto; }
  .sec_service .tag_1 { left: 82.3%; top: 22.8%; }
  .sec_service .tag_2 { left: 77.1%; top: 26.5%; }
  .sec_service .tag_3 { left: 78.7%; top: 30.7%; }
  .sec_service .tag_4 { left: 73.5%; top: 31.3%; }
  .sec_service .tag_5 { left: 72.4%; top: 22.3%; }
  .sec_service .tag_6 { left: 51.1%; top: 25.7%; }
  .sec_service .tag_7 { left: 48.3%; top: 44.7%; }
  .sec_service .tag_8 { left: 80%; top: 46.8%; }
  .sec_apply .apply_cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: .12rem; }
  .sec_apply .apply_col,
  .sec_apply .apply_col_1,
  .sec_apply .apply_col:hover,
  .sec_apply .apply_cols:hover .apply_col_1:not(:hover) {
    flex: none;
    min-height: 2.9rem;
    padding: .3rem .24rem;
  }
  .sec_apply .apply_col .apply_reveal,
  .sec_apply .apply_col_1 .apply_reveal,
  .sec_apply .apply_col:hover .apply_reveal,
  .sec_apply .apply_cols:hover .apply_col_1:not(:hover) .apply_reveal {
    margin-top: .18rem;
    max-height: none;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .page_wrap { padding-top: .72rem; padding-bottom: .5rem; }
  .main, .footer .footer_inner { width: calc(100% - .32rem); max-width: none; }
  .position { margin: .18rem 0 .22rem; }
  .position .main { min-height: .44rem; height: auto; padding: .1rem .14rem; flex-wrap: wrap; }
  .class_name { font-size: .3rem; column-gap: .12rem; }
  .class_name i { width: .3rem; height: .3rem; margin-top: .06rem; }

  .s_banner, .p_banner { height: 3.2rem; min-height: 0; }
  .s_banner_con, .p_banner_con { padding: 0 .16rem; }
  .s_banner_tit, .p_banner_tit { font-size: clamp(.28rem, 7vw, .48rem); line-height: 1.15; }
  .s_banner_txt, .p_banner_txt, .s_banner_sub, .p_banner_sub { max-width: 100%; font-size: .14rem; line-height: 1.5; }
  .s_banner_bar, .p_banner_bar { height: auto; min-height: .56rem; }
  .s_banner_bar .main, .p_banner_bar .main { min-height: .56rem; height: auto; padding: .1rem 0; flex-wrap: wrap; gap: .08rem .16rem; }
  .s_tabs, .p_tabs { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .s_tab, .p_tab { flex: 0 0 auto; min-width: 1.15rem; }

  .hero { min-height: 5.2rem; }
  .index_banner { height: min(72vw, 6.8rem); min-height: 4.3rem; }
  .hero_con { width: calc(100% - .32rem); left: .16rem; right: .16rem; }
  .hero_cn { font-size: clamp(.3rem, 8vw, .64rem); line-height: 1.15; }
  .hero_en { font-size: .16rem; }
  .hero_desc { max-width: 100%; font-size: .14rem; line-height: 1.5; }
  .hero_btns { flex-wrap: wrap; gap: .12rem; }
  .hero_btn { min-width: 1.3rem; min-height: .44rem; }
  .sec_product, .sec_apply, .sec_about, .sec_service, .sec_news { height: auto !important; min-height: 0; padding: .55rem 0; overflow: hidden; }
  .sec_product .main, .sec_apply .main, .sec_about .main, .sec_service .main, .sec_news .main { height: auto; }
  .sec_head { flex-direction: column; gap: .16rem; }
  .sec_desc { max-width: 100%; text-align: left; font-size: .14rem; line-height: 1.6; }
  .sec_cn, .sec_en { font-size: .3rem; line-height: 1.15; }
  .about_info { width: 100%; }
  .about_fig { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .about_fig img { width: 100%; height: 100%; object-fit: cover; }
  .about_fig[data-aos], .about_info[data-aos] { transform: none !important; }
  .service_bg, .apply_bgs, .news_bg { display: none; }
  .service_row, .apply_cols { width: 100%; }
  .apply_cols { display: flex; flex-direction: column; height: auto; gap: .12rem; }
  .apply_col,
  .apply_col_1,
  .apply_col:hover,
  .apply_cols:hover .apply_col_1:not(:hover) {
    flex: 0 0 auto;
    width: 100%;
    min-height: 2.75rem;
    padding: .34rem .28rem .3rem;
  }
  .apply_col::before, .apply_col::after { opacity: 1; }
  .apply_col::after { height: 100%; }
  .apply_col .apply_reveal,
  .apply_col_1 .apply_reveal,
  .apply_col:hover .apply_reveal,
  .apply_cols:hover .apply_col_1:not(:hover) .apply_reveal {
    margin-top: .2rem;
    max-height: none;
    opacity: 1;
  }
  .apply_col .apply_desc { max-width: 100%; }
  .service_list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .12rem; }
  .service_item { min-width: 0; }
  .sec_service .service_row { flex-direction: column; gap: .2rem; }
  .sec_service .service_map { width: 100%; height: auto; aspect-ratio: 2 / 1; flex: 0 0 auto; }
  .sec_service .service_map > img { object-fit: contain; }
  .sec_service .map_tag { font-size: .1rem; line-height: 1.2; }
  .sec_service .map_tag i { width: .14rem; height: .14rem; }
  /* The adjacent service list carries names; keep dense map labels accessible
     without letting them overlap across the mobile map. */
  .sec_service .tag_1 { left: 82.3%; top: 22.8%; }
  .sec_service .tag_2 { left: 77.1%; top: 26.5%; }
  .sec_service .tag_3 { left: 78.7%; top: 30.7%; }
  .sec_service .tag_4 { left: 73.5%; top: 31.3%; }
  .sec_service .tag_5 { left: 72.4%; top: 22.3%; }
  .sec_service .tag_6 { left: 51.1%; top: 25.7%; }
  .sec_service .tag_7 { left: 48.3%; top: 44.7%; }
  .sec_service .tag_8 { left: 80%; top: 46.8%; }
  .sec_service .map_tag > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sec_service .service_list { width: 100%; display: grid; grid-template-columns: 1fr; gap: 0; }
  .sec_service .service_item { display: block; padding: .08rem 0; }
  .sec_service .service_card { width: min(2.4rem, 100%); margin: .12rem auto 0; }
  .foot_follow .follow_pop { display: block; }
  .ab_intro_img { transform: none !important; }

  .p_grid, .news_grid, .n_video_grid, .n_relate_grid, .s_grid, .c_grid, .prod_grid { grid-template-columns: 1fr !important; gap: .18rem; }
  .p_card, .n_card, .n_item, .s_card, .news_card, .service_card { min-width: 0; }
  .p_card_img, .n_card_img, .n_item_img, .news_card_img { aspect-ratio: 1.55; height: auto; }
  .p_card_img img, .n_card_img img, .n_item_img img, .news_card_img img { height: 100%; object-fit: cover; }
  .p_scene, .ad_content_row, .ct_body, .about_row, .service_row, .events_top, .news_item { display: flex; flex-direction: column; }
  .p_scene_l, .p_scene_r, .ad_cta_left, .ad_cta_right, .ct_info, .ct_form { width: 100%; max-width: none; }
  .p_banner_prod { position: relative; right: auto; bottom: auto; width: min(72vw, 4.8rem); height: auto; margin: .12rem auto 0; }
  .p_banner_prod img { height: auto; object-fit: contain; }
  .p_banner { height: auto; min-height: 3.2rem; padding-bottom: .2rem; }
  .p_banner_con { position: relative; inset: auto; padding-top: .45rem; }
  .p_banner.detail { height: auto; padding-bottom: .2rem; }
  .p_banner.detail .p_banner_con { height: auto; }
  .p_banner.detail .p_banner_txt { padding-top: 1.2rem; }
  .p_banner.detail .p_banner_img {
    position: relative;
    inset: auto;
    display: flex;
    width: calc(100% - .32rem);
    height: auto;
    min-height: 1.8rem;
    margin: .16rem auto 0;
    padding: 0;
  }
  .p_banner.detail .p_banner_img img {
    width: 100%;
    height: auto;
    max-height: 2.6rem;
    object-fit: contain;
  }
  .prod_nav { display: none; }

  .search_form, .search_header { width: 100%; }
  .search_form { display: flex; }
  .search_form input { min-width: 0; flex: 1; }
  .search_submit { flex: 0 0 .84rem; }
  .n_item_con { min-width: 0; }
  .n_item_tit, .n_card_tit, .p_card_name { white-space: normal; overflow-wrap: anywhere; }

  .ct_map { width: 100%; height: auto; min-height: 0; overflow: hidden; aspect-ratio: 12.4 / 6.05; }
  .s_map { width: 100%; height: auto; min-height: 0; overflow: hidden; aspect-ratio: 1320 / 602; }
  .ct_map img, .s_map_img { width: 100%; height: 100%; object-fit: contain; }
  .ct_card_list, .ct_form_grid { grid-template-columns: 1fr !important; }
  .ct_input, .ct_area, .ct_submit { width: 100%; min-height: .46rem; }
  .ct_submit { min-height: .5rem; }
  .ct_body { display: block; overflow: visible; padding-bottom: .5rem; }
  .ct_info { height: auto; padding: .35rem 0 .1rem; }
  .ct_info .ct_sec_title { position: static; margin-bottom: .2rem; }
  .ct_map { position: relative; left: auto; top: auto; margin: 0 0 .2rem; height: auto; aspect-ratio: 12.4 / 6.05; }
  .ct_map .ct_map_pin { left: 54%; top: 48%; width: .28rem; height: .28rem; }
  .ct_card { position: relative; left: auto; top: auto; width: 100%; padding: .28rem .22rem; row-gap: .22rem; }
  .ct_card_logo img { width: min(5.25rem, 100%); height: auto; }
  .ct_card_item { font-size: .14rem; line-height: 1.55; }
  .ct_msg .ct_sec_title { margin-top: .35rem; }
  .ct_form { height: auto; margin-top: .25rem; padding: .25rem .18rem .3rem; }
  .ct_form_row { flex-direction: column; row-gap: .14rem; }
  .ct_form_row_area { height: auto; }
  .ct_field, .ct_form_row_area .ct_field { width: 100%; height: auto; }
  .ct_area { min-height: 1.8rem; }
  .ad_hero { height: 3.6rem; }
  .ad_hero_txt { padding-top: 1.4rem; }
  .ad_content_inner { padding-top: .3rem; }
  .ad_tabs { overflow-x: auto; }
  .ad_tab { min-width: 1.5rem; }
  .ad_table { display: none; width: 100%; min-width: 0; overflow-x: auto; white-space: nowrap; }
  .ad_table.active { display: block; }

  .footer .footer_inner { padding-top: .48rem; }
  .footer .foot_top { gap: .24rem; }
  .footer .foot_logo { width: min(5.36rem, 100%); height: auto; aspect-ratio: 5.36 / .51; }
  .footer .foot_nav { padding-top: .18rem; gap: .08rem .14rem; }
  .footer .foot_nav a { white-space: normal; font-size: .14rem; }
  .footer .foot_bar { align-items: flex-start; flex-direction: column; gap: .1rem; }
  .footer .foot_bar .foot_icp { flex-wrap: wrap; row-gap: .08rem; }
  .service_float { width: .56rem; height: .56rem; right: .14rem; bottom: .14rem; }

  .foot_follow {
    height: auto;
    min-height: 0;
    padding: .28rem 0;
    background: linear-gradient(135deg, #0E131A 0%, #10243A 52%, #0A192A 100%);
  }
  .foot_follow .follow_deco { display: none; }
  .foot_follow .follow_inner {
    height: auto;
    min-height: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .22rem;
  }
  .foot_follow .follow_title { width: 100%; flex: 0 0 auto; padding-top: 0; }
  .foot_follow .follow_cn { font-size: .24rem; line-height: 1.3; }
  .foot_follow .follow_en { margin-top: .02rem; font-size: .16rem; line-height: 1.3; }
  .foot_follow .follow_list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .14rem;
  }
  .foot_follow .follow_item {
    display: grid;
    grid-template-columns: .48rem minmax(0, 1fr);
    align-items: center;
    column-gap: .1rem;
    row-gap: .08rem;
    min-width: 0;
    min-height: 1.08rem;
    padding: .12rem;
    background: rgba(0, 73, 154, .22);
    border: 1px solid rgba(255, 255, 255, .12);
  }
  .foot_follow .follow_icon { grid-row: 1 / span 2; width: .42rem; height: .42rem; }
  .foot_follow .follow_txt { min-width: 0; row-gap: .04rem; }
  .foot_follow .follow_name { font-size: .15rem; line-height: 1.35; }
  .foot_follow .follow_sub { font-size: .11rem; line-height: 1.4; overflow-wrap: anywhere; }
  .foot_follow .follow_arrow { display: none; }
  .foot_follow .follow_pop {
    display: block;
    left: auto;
    right: .08rem;
    top: .08rem;
    width: .72rem;
    height: .72rem;
  }
  .foot_follow .follow_item.qr_open { grid-template-columns: minmax(0, 1fr); }
  .foot_follow .follow_item.qr_open .follow_icon { display: none; }
  .foot_follow .follow_item.qr_open .follow_txt { grid-column: 1; grid-row: 1; }
  .foot_follow .follow_item.qr_open .follow_pop {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 2;
    margin: .08rem auto 0;
  }
  .foot_follow .follow_item:not(.qr_open):hover .follow_pop { opacity: 0; visibility: hidden; }
}

@media (max-width: 576px) {
  .s_banner, .p_banner { height: 2.65rem; }
  .s_banner_tit, .p_banner_tit { font-size: .3rem; }
  .s_banner_txt, .p_banner_txt { font-size: .13rem; }
  .page_box { gap: .12rem; margin-top: .5rem; }
  .page_box .pages { gap: .06rem; }
  .page_box .pages .item { width: .4rem; height: .4rem; line-height: .4rem; font-size: .15rem; }
  .page_box .pages .ellipsis { line-height: .4rem; font-size: .15rem; }
}

@media (max-width: 390px) {
  .main, .footer .footer_inner { width: calc(100% - .28rem); }
  .header { padding-left: .14rem; padding-right: .14rem; }
  .header .head_logo { width: 1rem; }
  .mobile_menu_toggle { width: 44px; height: 44px; }
  .hero_btn { min-width: 1.16rem; }
}
