/* ===========================================================
   Hanhe Paracord — 移动端修正（仅 <=767px 生效）
   依据 2026-11-10 实测：375×812 视口，6 个页面
   解决的问题：
     1. 点击目标过小（6/6 页 70%-90% 的链接 < 40px）
     2. 字号过小（页脚 12px、标签 10px，共 29 处）
     3. 固定浮层遮挡正文右缘与底栏
     4. 商品详情主 CTA 落在折叠线下 283px
   =========================================================== */

@media (max-width: 767px) {

  /* ---------- 1. 基础字号 ---------- */
  body { font-size: 15px; }
  p, li { font-size: 15px; line-height: 1.7; }

  /* 页脚原来 12px */
  footer p, footer a, footer span, .copyright p {
    font-size: 13.5px;
    line-height: 1.75;
  }

  /* 首屏与市场条的自定义小字 */
  .hh-kicker { font-size: 11.5px !important; letter-spacing: .08em !important; }
  .hh-hero-badge span { font-size: 11px !important; }
  .hh-mkts-list { font-size: 13px !important; line-height: 1.8 !important; }
  .hh-mkts-label { font-size: 12px !important; }

  /* ---------- 2. 点击目标 ---------- */

  /* 汉堡按钮：原 50×19 */
  a[href="#offcanvas-mobile-menu"],
  .mobile-menu-toggle,
  .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* 面包屑：原高度 25px（不可点/难点） */
  .breadcrumb-item,
  .breadcrumb-item a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
  }

  /* 主按钮：原 .btn-buy 125×25 */
  .btn, .btn-buy, .btn-primary,
  .hh-btn-primary, .hh-btn-ghost {
    min-height: 46px !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* 商品详情主 CTA 通栏，拇指好按 */
  .btn-buy { width: 100%; }

  /* 电话/邮箱链接：原 142×22 / 191×22 */
  a[href^="tel:"], a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 0;
  }

  /* 页脚链接 */
  footer a, .footer-area a {
    display: block;
    min-height: 38px;
    line-height: 38px;
  }

  /* 轮播圆点：原 20×20 */
  .slick-dots li button,
  .slick-dots li {
    min-width: 34px;
    min-height: 34px;
  }

  /* ---------- 3. 首屏与面包屑占用过高 ---------- */
  /* 面包屑原高 155px，压到约 95px，把商品页主 CTA 往前提 */
  .breadcrumb-section {
    padding: 22px 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .breadcrumb-section .page-title,
  .breadcrumb-section h1,
  .breadcrumb-section h2 {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }

  /* ---------- 4. 固定浮层 ---------- */
  /* WhatsApp 竖条 70×240 压在正文右缘 */
  .suspension {
    top: auto !important;
    bottom: 62px !important;
    right: 8px !important;
    transform: scale(.72);
    transform-origin: right bottom;
  }

  /* Quick Inquiry 底栏 300×40 占掉底部 80% 宽 */
  .feedback {
    width: auto !important;
    right: 10px !important;
    border-radius: 22px 22px 0 0 !important;
  }
  .feedback .feedbackHeader {
    height: 38px !important;
    line-height: 38px !important;
    font-size: 13px !important;
    text-indent: 40px !important;
    padding-right: 14px !important;
    background-position: 12px center !important;
  }

  /* ---------- 5. 表格与规格 ---------- */
  table.prod-spec td,
  table.prod-spec th {
    font-size: 14px;
    padding: 10px 8px;
    word-break: break-word;
  }

  /* ---------- 6. 我的自定义区块在小屏的呼吸感 ---------- */
  .hh-hero { padding-top: 12px !important; }
  .hh-facts { margin-bottom: 14px !important; }
  .hh-facts b { font-size: 16px !important; }
  .hh-facts span { font-size: 10.5px !important; }
  .hh-review { padding: 20px 16px 16px !important; }
  .hh-review-text { font-size: 14px !important; }
}

/* 超小屏（<=360px）进一步收紧，避免换行太碎 */
@media (max-width: 360px) {
  body, p, li { font-size: 14px; }
  .hh-title { font-size: 19px !important; }
  .hh-facts b { font-size: 14px !important; }
  .hh-facts span { font-size: 9.5px !important; }
}

/* ===========================================================
   第二轮：复测后仍未达标的项（375×812 实测）
   1) footer p 仍 16px —— 被 .footer-widget p (0,1,1) 压过
   2) .suspension 缩放 0.72 后内部可点区仅 31.7px
   3) 面包屑 34px / slick 圆点 34px / 抽屉关闭 20px / 抽屉导航 34px
   =========================================================== */

@media (max-width: 767px) {

  /* 1. 页脚正文：提高优先级压过 .footer-widget p */
  footer p,
  footer .footer-widget p,
  footer .widget p,
  footer .footer-widget li,
  footer .footer-widget span {
    font-size: 13.5px !important;
    line-height: 1.75 !important;
  }
  footer h4, footer h5, footer .widget-title {
    font-size: 15px !important;
  }

  /* 2. WhatsApp 竖条：0.72 太小，回到 0.88，可点区约 39px，且不影响正文 */
  .suspension {
    transform: scale(.88) !important;
    right: 4px !important;
    bottom: 58px !important;
  }
  .suspension .a,
  .suspension a {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 3a. 面包屑：34 -> 44 */
  .breadcrumb-item,
  .breadcrumb-item a {
    min-height: 44px !important;
    font-size: 13px !important;
  }

  /* 3b. 轮播圆点：34 -> 44，但视觉仍小 */
  .slick-dots li,
  .slick-dots li button {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* 3c. 抽屉关闭按钮 20×20 */
  button.offcanvas-close,
  .offcanvas-close,
  .offcanvas-header button {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
  }

  /* 3d. 抽屉内导航链接（Home / Product / Rifle Slings 等 34px） */
  #offcanvas-mobile-menu a,
  .offcanvas-mobile-menu a,
  .mobile-menu a {
    min-height: 46px !important;
    display: flex !important;
    align-items: center;
  }

  /* 3e. "More About Us" 等次级文字链接 */
  .hh-btn-ghost,
  a.btn-link,
  .about-btn a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
  }

  /* 3f. 头部 logo 链接：图片 130×38，容器补足到 44 */
  .header-logo a,
  .logo a,
  a.logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* 4. Quick Inquiry 底栏再压薄一点，减少遮挡 */
  .feedback .feedbackHeader {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 12.5px !important;
  }
}

/* ===========================================================
   第三轮：修正缩放抵消 + 侧栏/列表类链接
   实测残留：
     - .suspension 内部 a 视觉 38.7px（0.88 缩放把 44 变成 38.7）
     - 面包屑 Home 宽 38.8px
     - 侧栏分类链接高 19.3px、分类列表高 35px
   =========================================================== */

@media (max-width: 767px) {

  /* 1. WhatsApp：先给 50px，缩放 0.88 后视觉 = 44px */
  .suspension .a,
  .suspension a {
    min-width: 50px !important;
    min-height: 50px !important;
  }

  /* 2. 面包屑横向内边距，避免 "Home" 只有 38.8px 宽 */
  .breadcrumb-item a {
    padding: 0 6px !important;
  }

  /* 3. 侧栏 / 分类列表这类“块级”链接才需要 44px 高
        （段落里的行内链接不动，WCAG 2.5.8 对 inline link 有豁免） */
  aside a,
  .sidebar a,
  #sidebar a,
  .widget-category a,
  .category-list a,
  .category-list li a,
  .product-category a,
  .shop-category a,
  .list-group a,
  .list-group-item {
    min-height: 44px !important;
    display: flex !important;
    align-items: center;
  }

  /* 4. About 区的次级按钮 */
  .about-content a,
  .about-area a.hh-btn-ghost {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
  }
}

@media (max-width: 767px){ div.cate-index-group h5 a{min-height:40px;display:flex;align-items:center} h3.title.my-10 a,.product-item h3 a{min-height:36px;display:flex;align-items:center} }

/* HH-ASIDE-FIX-20261117 */
/* 手机端侧滑菜单第二层横向滚动（实测 clientWidth 300 / scrollWidth 513） */
@media (max-width: 991px) {
  #offcanvas-mobile-menu .inner { overflow-x: hidden !important; }
  #offcanvas-mobile-menu .offcanvas-menu ul,
  #offcanvas-mobile-menu .offcanvas-menu .sub-menu { max-width: 100% !important; }
  #offcanvas-mobile-menu .offcanvas-menu .sub-menu { padding-left: 14px !important; }
  #offcanvas-mobile-menu .offcanvas-menu a {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    display: block;
  }
}
