/* ============================================================
   手机端/平板自适应样式（在 style.css 之后加载，增量覆盖，不影响 PC 原样式）
   断点：≤1300 首页热卖热区等比缩放；≤1200 容器流式；≤768 手机端
   ============================================================ */

/* 汉堡菜单按钮（PC 隐藏） */
.nav-toggle { display: none; }

/* ---------- ≤1300px：首页热卖热区图等比缩放 ---------- */
@media (max-width: 1300px) {
  /* 背景图实际 1920x1272，PC 热区按居中 1300px 区域设计，换算成全图百分比 */
  .hot_product { height: auto; background-size: 100% auto; background-position: top center; }
  .hot_product .container { width: 100%; height: 0; padding: 0; padding-bottom: 66.25%; }
  .hot_product .container .area1 { left: 16.15%; top: 22.64%; width: 23.18%; height: 71.46%; }
  .hot_product .container .area2 { left: 40.73%; top: 22.64%; width: 20.83%; height: 34.59%; }
  .hot_product .container .area3 { left: 63.02%; top: 22.64%; width: 20.83%; height: 34.59%; }
  .hot_product .container .area4 { left: 40.73%; top: 59.59%; width: 20.83%; height: 34.59%; }
  .hot_product .container .area5 { left: 63.02%; top: 59.59%; width: 20.83%; height: 34.59%; }
}

/* ---------- ≤1200px：容器流式 ---------- */
@media (max-width: 1200px) {
  .container { width: 100%; min-width: 0; padding: 0 15px; box-sizing: border-box; }
  .categorys { flex-shrink: 0; width: 220px; }
  .product_list { width: auto; flex: 1; min-width: 0; }
  .oem .bg { height: auto; padding: 40px 0; background-size: cover; }
  .oem .video { width: 100%; max-width: 800px; height: auto; margin: 0 auto; }
  .oem .video video { height: auto; display: block; }
}

/* ---------- ≤768px：手机端 ---------- */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  img { max-width: 100%; }
  .mt40 { margin-top: 20px; }
  .mt50 { margin-top: 20px; }
  .about_bg { width: 100%; display: block; }

  /* 头部 + 汉堡菜单 */
  .header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .header .header-logo { position: static; width: auto; margin: 0; padding: 8px 0; text-align: left; }
  .header .header-logo img { width: 56px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; box-sizing: border-box; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header .navbar { width: 100%; padding: 0; display: block; }
  .header .navbar-nav { display: none; flex-direction: column; width: 100%; }
  .header .navbar-nav.open { display: flex; }
  .header .navbar-nav li { padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .header .navbar-nav li a { display: block; padding: 13px 4px; font-size: 16px; }
  .header .header-contect-dtl { display: none; }

  /* 首页 banner */
  .swiper-banner .swiper-slide img { width: 100%; height: auto; display: block; }
  .swiper-banner .swiper-button-next, .swiper-banner .swiper-button-prev { display: none; }

  /* 首页模块 */
  .index-product { margin-top: 40px; }
  .index-title { font-size: 28px; line-height: 1.4; }
  .index-desc { font-size: 14px; margin-bottom: 20px; }
  .hot-product .item { width: 48%; margin-bottom: 15px; }
  .hot-product .item .img { height: auto; }
  .hot-product .item .img img { width: 100%; max-height: none; height: auto; display: block; }
  .hot-product .item .title { font-size: 14px; margin-top: 10px; padding: 0 10px; }
  .hot-product .item .link-btn { margin: 10px 0 15px 10px; width: 96px; height: 30px; line-height: 30px; font-size: 13px; }

  /* OEM 视频 */
  .oem { margin-top: 40px; }
  .oem .bg { padding: 25px 0; }

  /* Why Choose */
  .why-choose-me-box { margin-top: 30px; }
  .pictureList .item { width: 48%; margin-bottom: 20px; }
  .pictureList .item .title { font-size: 18px; padding: 10px 0; }
  .pictureList .item .text { font-size: 13px; }

  /* 页脚 */
  .footer { margin-top: 40px; background-position: center; padding-top: 30px; }
  .footer .footer-content { flex-direction: column; padding: 10px 0; }
  .footer .footer-content .left, .footer .footer-content .center, .footer .footer-content .right { width: 100%; }
  .footer .footer-content .left { height: auto; font-size: 15px; }
  .footer .footer-content .left > div { margin-bottom: 12px; }
  .footer .footer-content .left .footer_logo img { width: 80px; }
  .footer .footer-content .center { margin: 15px 0; }
  .footer .footer-nav { height: auto; }
  .footer .footer-nav li { padding: 6px 0; }
  .footer .footer-nav li a { font-size: 15px; }
  .footer .right .h2 { font-size: 18px; margin-bottom: 12px; padding-bottom: 10px; }
  .footer .right .contact-info p { font-size: 14px; }
  .footer .copyright { font-size: 13px; }

  /* 内页 banner */
  .page-banner { min-height: 150px; }
  .page-banner h2 { font-size: 28px; padding: 0 15px; }

  /* 列表页：侧栏 + 内容 纵向排列 */
  .flex.mt40.justify-between { flex-direction: column; }
  .categorys { width: 100%; margin-bottom: 20px; }
  .categorys .left_navbar > li { border-bottom: 1px solid #eee; padding: 4px 0; }
  .categorys .left_navbar li a { font-size: 15px; }
  .product_list { width: 100%; }
  .channel-product .item { width: 48%; margin-right: 4%; margin-bottom: 15px; }
  .channel-product .item:nth-child(3n) { margin-right: 4%; }
  .channel-product .item:nth-child(2n) { margin-right: 0; }
  .channel-product .item .img { height: auto; }
  .channel-product .item .img img { width: 100%; height: auto; }
  .channel-product .item .title { padding: 0 10px; font-size: 14px; margin-top: 10px; }
  .channel-product .item .link-btn { margin: 10px 0 15px 10px; width: 96px; height: 30px; line-height: 30px; font-size: 13px; }

  /* 分页 */
  #pages { overflow-x: auto; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .pagination li a, .pagination li span { padding: 8px 12px; margin: 3px; }

  /* 产品详情（放大镜） */
  .show_product h1 { padding: 20px 0; font-size: 18px; }
  #magnifier { width: 100%; }
  .small-box, .small-box table td { width: 100%; height: auto; }
  .small-box table { width: 100%; }
  .small-box img { max-width: 100%; width: 100%; height: auto; }
  .thumbnail-box .list { width: calc(100% - 70px); }
  .big-box { display: none !important; }
  .details { min-height: 0; margin-top: 30px; }
  .details .content { font-size: 14px; }
  .article-prevnext li { font-size: 14px; }

  /* 关于我们 */
  .page-about { margin-top: 30px; }
  .page-about .container.flex { flex-direction: column; }
  .page-about .left, .page-about .right { width: 100%; }
  .page-about .h3 { font-size: 26px; margin-bottom: 15px; }
  .page-about .left p { font-size: 15px; }
  .page-about .right { margin-top: 20px; }

  /* 联系我们 */
  .contact-breadcrumb { padding-top: 20px; }
  .contact-wrap { flex-direction: column; padding: 20px 0; }
  .contact-wrap .item { width: 100%; border-right: none; border-bottom: 1px solid #ccc; padding: 20px 10px; }
  .contact-wrap .item:last-child { border-bottom: none; }
  .contact-wrap .item .fa { font-size: 40px; height: auto; }
  .contact-wrap .item .title { font-size: 18px; }
  .contact-wrap .item .content { font-size: 15px; margin-top: 10px; text-align: center; word-break: break-all; }
}

/* ---------- 分类菜单：折叠面板 + 子菜单手风琴（元素由 footer 的 JS 注入，PC 隐藏） ---------- */
.cat-toggle, .cat-caret { display: none; }

@media (max-width: 768px) {
  .cat-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; background: #282c34; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; border-radius: 4px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
  .cat-toggle .cat-toggle-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-toggle .cat-toggle-arrow { flex: 0 0 auto; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #D6B997; transition: transform .25s ease; }
  .cat-toggle.open { border-radius: 4px 4px 0 0; }
  .cat-toggle.open .cat-toggle-arrow { transform: rotate(180deg); }

  .categorys .left_navbar { display: none; margin: 0; padding: 4px 12px 10px; background: #fff; border: 1px solid #e5e5e5; border-top: none; border-radius: 0 0 4px 4px; box-shadow: 0 4px 10px rgba(0,0,0,.05); }
  .categorys .left_navbar.open { display: block; }
  .categorys .left_navbar > li { position: relative; border-bottom: 1px solid #f2f2f2; padding: 0; }
  .categorys .left_navbar > li:last-child { border-bottom: none; }
  .categorys .left_navbar > li > a { display: block; padding: 12px 44px 12px 2px; }
  .categorys .left_navbar > li.has-child > a { font-weight: 700; }

  .cat-caret { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0; width: 44px; height: 46px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .cat-caret::before { content: ''; width: 8px; height: 8px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); transition: transform .2s ease; margin-top: -5px; }
  .categorys .left_navbar > li.expanded > .cat-caret::before { transform: rotate(-135deg); margin-top: 3px; }

  .categorys .child_navbar { display: none; margin: 0 0 10px; padding: 2px 0 2px 12px; border-left: 2px solid #D6B997; }
  .categorys .left_navbar > li.expanded > .child_navbar { display: block; }
  .categorys .child_navbar li { padding: 0; }
  .categorys .child_navbar li a { display: block; padding: 10px 2px; font-size: 14px; }
}
