@charset "utf-8";
/* ============================================================
   Hebei Senmao Medical — Responsive Layer
   Added 2026-11-28. Loaded AFTER all existing CSS so it overrides
   the legacy fixed-width (1200/1250/1440px) PC-only layout.
   Scope: tablet (<=1100px), mobile (<=767px), small phone (<=479px).
   Desktop (>1100px) layout is preserved, except a global fix for an
   editor-embedded hard-coded 1414px <ul> in news articles that overflows
   even on desktop.
   ============================================================ */

/* Global fix: news article body has an inline width:1414px <ul> from the editor */
#shownews .text ul[style],#shownews .text li[style],
.page-news ul[style],.admin_buy_cn ul[style]{ max-width:100%; }

/* ============================================================
   NAV ENHANCEMENT (all widths) — button look + hover + single row
   Added 2026-11-28 after adding the 7th menu item (BUYING GUIDES)
   which overflowed the fixed 700px #index_nav and wrapped to row 2.
   ============================================================ */
#index_nav{ width:auto; max-width:calc(100% - 260px); }
#MainMenu{ height:auto; line-height:normal; }
#MainMenu > ul{ white-space:nowrap; display:flex; flex-wrap:nowrap; align-items:center; }
#MainMenu > ul > li{ float:none !important; display:inline-block !important; }
/* button skin for top-level links */
#MainMenu > ul > li > a{
  background:#f4f7fa !important;
  border:1px solid #e2e8ee !important;
  border-radius:6px !important;
  margin:0 3px;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
#MainMenu > ul > li > a span{
  float:none !important;
  display:block !important;
  padding:9px 14px !important;
  font-size:14px !important;
  line-height:1.2;
  letter-spacing:.2px;
}
#MainMenu > ul > li > a:link span,
#MainMenu > ul > li > a:visited span{ color:#33404d !important; }
#MainMenu > ul > li > a:hover{
  background:#1c6aae !important;
  border-color:#1c6aae !important;
  box-shadow:0 3px 10px rgba(28,106,174,.25) !important;
}
#MainMenu > ul > li > a:hover span{ color:#fff !important; }
#MainMenu > ul > li > a.selected,
#MainMenu > ul > li > a#menu_selected{ background:#164690 !important; border-color:#164690 !important; }
#MainMenu > ul > li > a.selected span,
#MainMenu > ul > li > a#menu_selected span{ color:#fff !important; }

/* ---------- helpers reused across breakpoints ---------- */
@media (max-width:1100px){
  html,body{ -webkit-text-size-adjust:100%; }
  /* fluid containers */
  .contain,.top,#page_main,#page_main2,.index-newproducts,.index-products2,
  .productsroll,#ScrollBox,.con_dh ul,.site-nav2,.page-right2,.foot,
  .index-products,.index-news,.chanpin_xp,.page-guestbook,.ny_lxwm{
    width:100%; max-width:100%; box-sizing:border-box;
  }
  .contain,.top,#page_main,#page_main2,.page-right2,.site-nav2,.productsroll,#ScrollBox{
    padding-left:15px; padding-right:15px;
  }
  .banner{ width:100%; }
  /* home news section has an inline width:1200px wrapper */
  #index_main > div[style*="1200px"]{ width:100% !important; box-sizing:border-box; padding-left:15px; padding-right:15px; }
  /* product / news card grids: 3 columns on tablet */
  .index-products ul li,.index-news ul li{ width:31%; box-sizing:border-box; margin:12px 1%; height:auto; }
  .index-products ul li a img,.index-news ul li a img{ width:100%; height:auto; }
  /* two-column inner pages */
  .page-left{ width:28%; }
  .page-right{ width:70%; }
  .about_con,.about_tel,.ys_left,.ys_right,.db_con{ max-width:100%; box-sizing:border-box; }
  /* long related-news rows must not push width */
  #shownews .related-list li{ max-width:31%; margin-right:1%; }
  /* admin content (product details) media */
  .admin_buy_cn img,.text img,.page-news img{ max-width:100%; height:auto; }
  .admin_buy_cn table,.text table,.page-news table{ max-width:100%; }
  /* floating contact rail + legacy inline widths also overflow on tablet */
  .yb_conct,#floatDivBoxs,#rightArrow{ display:none !important; }
  .site_left{ width:100% !important; }
  /* news article body: editor embeds a hard-coded 1414px <ul> */
  .admin_buy_cn ul,.text ul,.page-news ul,.admin_buy_cn li,.text li,.page-news li,
  .admin_buy_cn p,.text p,.page-news p{ max-width:100% !important; box-sizing:border-box; }
  .admin_buy_cn ul[style],.text ul[style],.page-news ul[style]{ width:auto !important; }
}

/* ================= MOBILE ================= */
@media (max-width:767px){
  html,body{ overflow-x:hidden; width:100%; }
  body{ font-size:15px; line-height:24px; }

  /* top utility bar */
  .t_top{ line-height:34px; }
  .t_top .contain{ text-align:center; padding:0 8px; }
  .t_top .contain img{ vertical-align:middle; }
  .index_search{ float:none; width:100%; margin:6px 0 2px; height:38px; line-height:38px; }
  .search2{ width:calc(100% - 46px); }
  .search3{ width:40px; }
  #searchtext{ width:100%; }

  /* header: logo centered, nav becomes a horizontal scroll strip */
  .top{ position:relative; padding:0 10px; }
  .logo{ float:none; width:auto; text-align:center; padding:10px 0 6px; }
  .logo a img{ max-width:190px; height:auto; }
  #index_nav{
    float:none; width:100%; padding:0; margin:0;
    overflow-x:auto; overflow-y:hidden; white-space:nowrap;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  #index_nav::-webkit-scrollbar{ display:none; }
  #MainMenu{ height:auto; line-height:normal; }
  .ddsmoothmenu ul li{ float:none; display:inline-block; }
  .ddsmoothmenu ul li a span{ float:none; display:inline-block; }
  #MainMenu > ul > li > a span{ padding:10px 13px !important; }
  #index_nav{ max-width:100% !important; }
  .ddsmoothmenu ul.menulevel{ display:none !important; visibility:hidden !important; }

  /* language switcher */
  .x1{ float:none; margin:8px auto 12px; text-align:center; }
  .language-btn{ justify-content:center; }
  .language-dropdown{
    right:auto; left:50%; transform:translateX(-50%);
    width:min(92vw,400px); max-width:92vw; box-sizing:border-box;
  }
  .language-list{ grid-template-columns:repeat(2,1fr); }

  /* banner / inner-page hero images */
  .mySwiper,.swiper{ width:100%; overflow:hidden; }
  .swiper-slide img{ width:100%; height:auto; }
  .ny_xinwen,.ny_liuyan,.ny_jianjie,.ny_chanpin,.ny_tupian,.ny_lianxi{
    height:auto; min-height:140px; background-size:cover; background-position:center;
  }

  /* floating contact rail: off-canvas on desktop, useless + overflowing on phone */
  .yb_conct,#floatDivBoxs,#rightArrow{ display:none !important; }

  /* home intro / about */
  .about{ padding:40px 0 30px; }
  .about_img{ float:none; width:100%; margin-bottom:18px; }
  .about_img img{ width:100%; max-width:100%; height:auto; }
  .about_con{ width:100%; float:none; }
  .about_h{ font-size:22px; }
  .about_tel{ width:100%; float:none; margin:0; padding-top:20px; }
  .index_title1 div,.pro_h{ width:100%; box-sizing:border-box; }
  .index_title p{ font-size:26px; }
  .index_title1 p{ font-size:26px; }
  .ny_title b{ font-size:28px; line-height:36px; }

  /* product + news cards: single column */
  .index-products ul li,.index-news ul li{
    float:none; display:block; width:100%; height:auto;
    margin:12px 0; box-sizing:border-box;
  }
  .index-products ul li img,.index-news ul li img{ width:100%; height:auto; }
  .index-products ul li i,.index-news ul li i{ height:auto; }
  .index-products .pro_more,.index-news .pro_more{ margin:12px auto 16px; }
  .index-products2 ul li{ float:none; width:100%; margin:0 0 24px; box-sizing:border-box; }

  /* inner page layout: side nav stacks above content */
  #page_main,#page_main2{ padding:0 12px 24px; }
  .site-nav2{ padding:14px 0; }
  .site_left,.site_right{ float:none; width:100%; }
  .page-left,.page-right,.page-right2,.site_left,.site_right{ width:100%; float:none; margin:0; }
  .page-left{ box-shadow:none; margin-bottom:18px; }
  .left-contact,.page-products{ padding:12px; }
  .ddsmoothmenu-v ul li a{ line-height:40px; }
  .page-products2 #ShowImages2 li{ padding:12px; box-sizing:border-box; }

  /* product listing grid */
  #ShowImages li{ width:48%; margin:1%; box-sizing:border-box; }
  #ShowImages .images_img a{ height:auto; }
  #ShowImages .images_img img,.images_img2 img{ max-width:100%; height:auto; }
  .images_img2,.images_title2{ float:none; width:100%; box-sizing:border-box; }
  .pro_listcon{ -webkit-line-clamp:4; }

  /* product detail page */
  .jqzoom,#spec-n1{ max-width:100%; }
  .jqzoom img{ max-width:100%; height:auto; }
  #spec-list ul.list-h li{ float:left; width:33.33%; box-sizing:border-box; padding:4px; }
  #spec-list ul.list-h li img{ width:100%; height:auto; }
  #pro_info li{ line-height:28px; font-size:14px; }
  .related_cp ul li{ width:48%; }
  .related_cp2 ul li{ width:100%; margin:8px 0; box-sizing:border-box; }

  /* news list + article */
  ul.newsList li{ padding:14px; }
  ul.newsList li a{ font-size:17px; line-height:26px; }
  .page-news table,.page-jobs table{ width:100% !important; }
  #shownews .related-list li{ float:none; width:100%; margin:0 0 6px; }
  .related-list li a{ white-space:normal; }
  .text,.editor,.admin_buy_cn{ font-size:15px; line-height:26px; }
  .text img,.editor img,.admin_buy_cn img{ max-width:100% !important; height:auto !important; }
  .text table,.editor table,.admin_buy_cn table{ display:block; width:100%; overflow-x:auto; }

  /* forms */
  .page-guestbook,.chanpin_xp,.ny_lxwm{ width:100%; box-sizing:border-box; }
  .page-guestbook dl dt,.chanpin_xp dl dt{ width:84px; }
  .page-guestbook dl dd,.chanpin_xp dl dd{ width:calc(100% - 96px); margin-left:0; }
  .page-guestbook dl dd input,.chanpin_xp .Content,.page-guestbook .Content{ width:100%; max-width:100%; box-sizing:border-box; }
  .ly_left,.lx-lx{ width:100%; float:none; }
  .ly_left img{ max-width:100%; height:auto; }
  .nylx_left{ padding:16px; }

  /* footer */
  .con_bg{ padding:28px 0; }
  .bot_cp,.db_con{ float:none; width:100%; margin:0 0 20px; box-sizing:border-box; }
  .db_con img{ max-width:18px; }
  #copyright{ padding:20px 0; line-height:24px; }
  .foot{ text-align:center; padding:0 12px; box-sizing:border-box; }
  .con_dh ul{ padding:0; }
  .con_dh li{ width:33.33%; height:auto; }
  .con_dh li a{ line-height:44px; font-size:14px; }

  /* content-page building blocks for long-tail FAQ / guides */
  .faq-item,.guide-block,.scenario-card{ width:100%; box-sizing:border-box; }
  .faq-q{ font-size:17px; padding:12px 0; }
  .faq-a{ font-size:15px; line-height:26px; }
  .guide-cols{ display:block; }
  .guide-cols > *{ width:100% !important; float:none !important; margin-bottom:16px; }
}

/* ================= SMALL PHONE ================= */
@media (max-width:479px){
  .t_top .contain a{ font-size:13px; }
  #ShowImages li{ width:100%; margin:0 0 16px; }
  .index-products ul li,.index-news ul li{ margin:10px 0; }
  .related_cp ul li{ width:100%; }
  .con_dh li{ width:50%; }
  .ddsmoothmenu ul li a span{ padding:10px 11px; font-size:13px; }
  .language-dropdown{ width:94vw; }
}

/* ================= NAV CENTERING (desktop + large tablet, >=1000px) ======
   .top originally holds 3 floated blocks (logo left / nav left / language
   right), so the nav button group sits left of center. Flex with equal
   flex:1 side columns centers the nav exactly between logo and language.
   Below 1000px the 3-column flex is too tight for the language button, so
   those widths keep the existing stacked + scroll-strip layout.
   ==================================================================== */
@media (min-width:1000px){
  .top{ display:flex !important; align-items:center; justify-content:center; }
  .top > .logo{ float:none !important; flex:1 1 0; min-width:0; }
  #index_nav{ float:none !important; flex:0 0 auto; width:auto !important; max-width:none !important; }
  .top > .x1{ float:none !important; flex:1 1 0; min-width:0; margin-top:0 !important; text-align:right; }
  .top > .clear{ display:none !important; }
}

/* floating contact rail overflows at 1101-1250px (outside the old <=1100 rule) */
@media (min-width:1101px) and (max-width:1250px){
  .yb_conct,#floatDivBoxs,#rightArrow{ display:none !important; }
}

/* home product/news sections are hard-coded 1250px; fluid for 1101-1250px */
@media (min-width:1101px) and (max-width:1250px){
  .index-products,.index-news{ width:100% !important; max-width:100%; box-sizing:border-box; }
  .index-products ul li,.index-news ul li{ width:31% !important; box-sizing:border-box; margin:16px 1% !important; height:auto; }
  .index-products ul li a img,.index-news ul li a img{ width:100%; height:auto; }
}

/* .contain/.top hard-coded 1200px also overflows at 1101-1199px */
@media (min-width:1101px) and (max-width:1250px){
  .contain,.top{ width:100% !important; max-width:1200px; box-sizing:border-box; padding-left:15px; padding-right:15px; }
  .index_search{ width:auto; max-width:325px; }
}

/* footer blocks (.foot 1200px + its parents) under 1250px */
@media (min-width:1101px) and (max-width:1250px){
  .foot,#friendlink,#copyright,.con_bg .clear{ width:100% !important; max-width:1200px; box-sizing:border-box; }
  .con_bg > div{ max-width:1200px; box-sizing:border-box; }
}

/* footer wrapper div inside #index_main is 1200px at 1101-1250px */
@media (min-width:1101px) and (max-width:1250px){
  #index_main > div{ width:100% !important; max-width:1200px; box-sizing:border-box; }
}

/* ===== A-fix: product images — square white container, centered, no distortion ===== */
/* home featured product cards: remove hard-coded 362x272 stretch, force square contain */
.index-products ul li{ height:auto !important; }
.index-products ul li a img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:1 / 1 !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#fff !important;
}
/* product detail "Related Products" thumbnails */
.related_cp2 ul li img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:1 / 1 !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#fff !important;
  border:1px solid #CCCCCC !important;
  padding:5px !important;
  box-sizing:border-box !important;
}

/* ===== flex-fix: home featured product cards — align rows, no float gaps ===== */
.index-products ul{display:flex !important;flex-wrap:wrap !important;}
.index-products ul li{float:none !important;display:flex !important;}
.index-products ul li a{display:flex !important;flex-direction:column !important;width:100% !important;}
.index-products ul li a .pro_more{margin-top:auto !important;}

/* ===== text-fix: product cards — title 2 lines centered, desc clamp 2 lines, align buttons ===== */
.index-products ul li a p{
  height:50px !important; line-height:25px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  text-align:center !important; overflow:hidden !important; margin:0 0 4px !important;
}
.index-products ul li a i{
  display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important;
  height:44px !important; line-height:22px !important; overflow:hidden !important;
  margin:0 9px !important; text-align:center !important;
}
.index-products ul li a .pro_more{ margin-top:auto !important; }

/* ===== news-fix: index-news cards — title 2 lines centered, desc clamp 2 lines ===== */
.index-news ul li a p{
  height:50px !important; line-height:25px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  text-align:center !important; overflow:hidden !important; margin:0 0 4px !important;
}
.index-news ul li a i{
  display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important;
  height:44px !important; line-height:22px !important; overflow:hidden !important;
  margin:0 9px !important; text-align:center !important;
}
