/* ============================================================
   畅捷官网 (cjds.com.cn) 移动端适配层
   ------------------------------------------------------------
   用法：把本文件全部内容【追加到 /style/css/index.min.css 末尾】。
   所有规则都包在媒体查询里，PC 端（>=1025px）完全不受影响。

   ⚠ 必要前提：页面 <head> 里的 viewport 必须改成下面这一行，
     否则本文件的媒体查询在手机上不会触发：
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
   ============================================================ */


/* ========================= 平板 768 ~ 1024px ========================= */
@media (min-width: 768px) and (max-width: 1024px) {

  html, body { min-width: 0 !important; }

  .container {
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .row { margin-left: 0 !important; }

  .span1, .span2, .span3, .span4, .span5, .span6, .span7,
  .span8, .span9, .span10, .span11, .span12, .span13, .span14,
  .span15, .span16, .span17, .span18, .span19, .span20 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .site-header { height: auto !important; }
  .site-header .header-logo { float: none !important; width: auto !important; }
  .site-header .header-nav { float: none !important; width: 100% !important; }
  .site-header .header-search { float: none !important; width: 100% !important; margin: 10px 0 !important; }
  .site-header .nav-list { width: 100% !important; height: auto !important; }
  .site-header .nav-item { margin-left: 8px !important; }
  .site-header .nav-item .link { padding: 14px 10px !important; }

  .home-hero-slider, .home-hero-slider .slide, .focus, .f426x240 {
    width: 100% !important;
    height: auto !important;
  }
  .home-hero-slider .slide img, .f426x240 img {
    width: 100% !important;
    height: auto !important;
  }

  .xm-carousel-wrapper { height: auto !important; }
  .xm-carousel-list li, .brick-item, .products li {
    width: 31.33% !important;
    margin-left: 2% !important;
    box-sizing: border-box !important;
  }
  .xm-carousel-list li:nth-child(3n+1),
  .brick-item:nth-child(3n+1),
  .products li:nth-child(3n+1) { margin-left: 0 !important; }

  .brick-item-m, .brick-item-m-2, .brick-item-s { height: auto !important; }
  .brick-item .figure-img img,
  .brick-item-m .figure-img img,
  .brick-item-s .figure-img img,
  .products li .pic img,
  .xm-carousel-list li .thumb img {
    width: 100% !important;
    height: auto !important;
  }

  .limit-box, .products { width: 100% !important; }
  .limit-buy-bd { width: 100% !important; }

  .productnav .product-nav .pro-ul,
  .productnav .product-nav ul { width: 100% !important; }
  .product .prolist { width: 100% !important; padding: 0 15px; box-sizing: border-box; }
  .prolist li { width: 48% !important; margin: 0 1% 20px !important; }

  .site-footer .list-service li { width: 33.33% !important; }
  .site-footer .footer-links .col-links { width: 30% !important; }
  .site-footer .footer-links .col-contact { width: 30% !important; }

  .home-star-goods .box-bd,
  .home-recm-box .xm-carousel-wrapper,
  .home-star-goods .xm-carousel-list { width: 100% !important; }
}


/* ========================= 手机 <= 767px ========================= */
@media (max-width: 767px) {

  /* ---------- 基础 ---------- */
  html, body {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  body { font-size: 14px; }
  img { max-width: 100% !important; height: auto !important; }
  a { -webkit-tap-highlight-color: rgba(0, 0, 0, .1); }
  table { width: 100% !important; }
  input, textarea, select { max-width: 100%; box-sizing: border-box; }

  .container {
    width: 100% !important;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .row { margin-left: 0 !important; margin-right: 0 !important; }

  /* 20 栅格整体转单列 */
  .span1, .span2, .span3, .span4, .span5, .span6, .span7,
  .span8, .span9, .span10, .span11, .span12, .span13, .span14,
  .span15, .span16, .span17, .span18, .span19, .span20 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  /* ---------- 头部：Logo / 横向滚动导航 / 搜索 ---------- */
  .site-header { height: auto !important; }
  .site-header .container {
    display: block;
    padding: 10px 12px 0;
  }
  .site-header .header-logo {
    float: none !important;
    width: auto !important;
    margin: 0 auto 8px !important;
    text-align: center;
  }
  .site-header .logo,
  .site-header .logo img {
    width: 150px !important;
    height: auto !important;
    margin: 0 auto;
  }
  .site-header .logo:before,
  .site-header .logo:after { display: none !important; }

  .site-header .header-nav {
    float: none !important;
    width: 100% !important;
    order: 3;
  }
  .site-header .nav-list {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header .nav-list::-webkit-scrollbar { display: none; }
  .site-header .nav-item {
    float: none !important;
    flex: 0 0 auto;
    margin-left: 0 !important;
  }
  .site-header .nav-item .link {
    padding: 10px 14px 12px !important;
    font-size: 14px;
    white-space: nowrap;
  }
  .site-header .nav-item .arrow,
  .site-header .nav-category,
  .site-header .header-nav-menu { display: none !important; }

  .site-header .header-search {
    float: none !important;
    width: 100% !important;
    margin: 8px 0 10px !important;
  }
  .site-header .search-form { display: flex !important; }
  .site-header .search-text {
    flex: 1 1 auto;
    width: auto !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
  }
  .site-header .search-btn {
    flex: 0 0 56px;
    width: 56px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 14px;
    border: 0;
  }
  .site-header .search-hot-words { display: none !important; }

  /* ---------- 首页轮播 ---------- */
  .home-hero-container { padding: 0 !important; }
  .home-hero-slider,
  .home-hero-slider .slide,
  .focus,
  .f426x240 {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  .home-hero-slider .slide img,
  .f426x240 img {
    width: 100% !important;
    height: auto !important;
  }
  .rslides_tabs { width: 100% !important; bottom: 8px !important; }
  .rslides_nav { display: none !important; }
  .home-about { font-size: 18px !important; line-height: 36px !important; }
  .homeabout { padding: 8px 4px !important; font-size: 13px !important; line-height: 22px !important; }

  /* ---------- 首页板块标题 ---------- */
  .xm-plain-box .box-hd {
    height: auto !important;
    padding: 12px 0 6px;
    overflow: hidden;
  }
  .xm-plain-box .box-hd .title {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
  .xm-plain-box .box-hd .title small { font-size: 12px !important; }
  .xm-plain-box .box-hd .more {
    position: static !important;
    float: right;
    margin-top: 4px;
  }
  .xm-plain-box .box-hd .more .more-link {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  .xm-plain-box .box-hd .more .tab-list { display: none !important; }

  /* ---------- 商品卡片：两列 ---------- */
  .home-star-goods .box-bd,
  .home-recm-box .xm-carousel-wrapper,
  .home-brick-box .box-bd,
  .home-star-goods .xm-carousel-list,
  .review-list, .content-list, .video-list { width: 100% !important; }
  .xm-carousel-wrapper { height: auto !important; }

  .xm-carousel-list li,
  .brick-item,
  .products li,
  .product .prolist li {
    width: calc(50% - 7px) !important;
    margin-left: 14px !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
  }
  .xm-carousel-list li:nth-child(2n+1),
  .brick-item:nth-child(2n+1),
  .products li:nth-child(2n+1),
  .product .prolist li:nth-child(2n+1) { margin-left: 0 !important; }

  .brick-item-m, .brick-item-m-2, .brick-item-s { height: auto !important; padding: 12px 8px !important; }
  .brick-item .figure-img img,
  .brick-item-m .figure-img img,
  .brick-item-m-2 .figure-img img,
  .brick-item-s .figure-img img,
  .products li .pic img,
  .xm-carousel-list li .thumb img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .brick-item-m .title,
  .brick-item-m-2 .title,
  .brick-item-s .title,
  .products li h3,
  .xm-carousel-list li .title {
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }
  .brick-item-m .desc, .brick-item-m .rank { display: none !important; }
  .brick-item-m .price, .brick-item-m-2 .price, .products li .price { font-size: 14px !important; }
  .brick-item-s .figure-more, .brick-item-s .more { display: none !important; }
  .review-wrapper { display: none !important; }

  .limit-box { width: 100% !important; height: auto !important; }
  .limit-buy-bd { width: 100% !important; }
  .products { width: 100% !important; margin-top: 12px !important; }
  .products li .pic { width: 100% !important; height: auto !important; padding: 4px !important; }

  /* ---------- 列表页 / 详情页 ---------- */
  .pline, .productnav, .product { width: 100% !important; }
  .productnav .product-nav { margin: 8px auto !important; }
  .productnav .product-nav .pro-ul {
    width: 100% !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .productnav .product-nav ul {
    width: 100% !important;
    float: none !important;
    margin: 8px 0 !important;
  }
  .productnav .product-nav ul li {
    float: none !important;
    display: inline-block;
    margin: 0 10px 10px 0 !important;
    font-size: 14px !important;
  }
  .product .prolist {
    width: 100% !important;
    margin: 16px auto !important;
    padding: 0 5px;
    box-sizing: border-box;
  }
  .product .prolist li { height: auto !important; padding: 12px 6px !important; }
  .page { text-align: center; padding: 10px 0 20px; }
  .page li { margin: 0 3px !important; }
  .page a { padding: 6px 10px !important; font-size: 13px; }
  .news_head { width: 100% !important; height: auto !important; margin: 0 !important; padding: 14px 0 !important; }
  .news_head h1 { font-size: 17px !important; line-height: 1.5 !important; }

  /* ---------- 页脚 ---------- */
  .site-footer .container { padding: 0 12px; }
  .site-footer .footer-service { padding: 16px 0 !important; }
  .site-footer .list-service li {
    float: left !important;
    width: 50% !important;
    height: 34px !important;
    margin-bottom: 6px;
    font-size: 13px !important;
    text-align: center;
  }
  .site-footer .list-service li:nth-child(odd) { border-left: 0 !important; }
  .site-footer .footer-links { padding: 20px 0 !important; display: block !important; }
  .site-footer .footer-links .col-links {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 16px !important;
  }
  .site-footer .footer-links .col-links dt { margin-bottom: 8px !important; }
  .site-footer .footer-links .col-links dd { margin: 4px 0 0 !important; line-height: 1.8; }
  .site-footer .footer-links .col-contact {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    border-left: 0 !important;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px !important;
    text-align: left !important;
  }
  .footer-beian {
    float: none !important;
    height: auto !important;
    text-align: center !important;
    line-height: 1.8;
    padding: 8px 0;
  }
  .site-info { padding: 16px 0 !important; text-align: center; }

  /* ---------- 右侧悬浮工具栏：只留返回顶部 ---------- */
  .toolbar-item-weixin,
  .toolbar-item-feedback,
  .toolbar-item-app,
  .toolbar-layer { display: none !important; }
}
