/* ===== hz-mobile-fix.css v2 (2026-11-08) ===========================
   手机端 UI 修复：可点区域 ≥44px、浮动客服气泡归位、面料铺横幅裁切、
   移动导航抽屉。桌面端不受影响（浮动气泡除外）。
   ================================================================ */

/* ---- 1. 浮动客服气泡：归位右下角，不再压首屏正文 ---- */
.hz-fab { bottom: 22px !important; top: auto !important; right: 14px !important; }   /* top:auto 必须一起压：原站有 top:422px */
@media (max-width: 767px) {
  .hz-fab { bottom: 18px !important; top: auto !important; width: 50px !important; height: 50px !important; }
}

@media (max-width: 767px) {

  /* ---- 2. 顶部导航：可点区域提到 44px（原 16~21px） ---- */
  .hz-nav-links a,
  .hz-nav-right > a,
  .hz-nav-right .hz-lang,
  .hz-nav-right span.cur {
    min-height: 44px; display: inline-flex; align-items: center; padding-left: 8px; padding-right: 8px;
  }
  .hz-nav-links { gap: 2px; }
  .hz-nav-right { gap: 4px; }

  /* 主题头：汉堡 / 购物车 / 账户图标 */
  .t4s-push-menu-btn, .t4s-push-menu-btn.t4s-lh-1 {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  a.t4s-pr, .t4s-action-ic, .t4s-cart-ic, .t4s-icon-btn {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }

  /* 语言药丸 */
  .hz-lang, span.cur, .hz-univ-lang .cur { min-height: 40px; }

  /* ---- 3. 商品卡热区 ---- */
  button.hz-quickadd, .hz-quickadd {
    width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px;
  }
  .hz-card-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  h3.t4s-product-title a, .t4s-product-title a { display: block; padding: 11px 0; min-height: 44px; }

  /* ---- 4. 通用按钮 / tab / 分类卡 ---- */
  .t4s-btn.t4s-btn-custom, a.t4s-btn.t4s-btn-custom {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  .t4s-tabs-head a, a.t4s-cat-title, a.t4s-active {
    min-height: 44px; display: inline-flex; align-items: center;
  }

  /* ---- 5. 页脚链接热区（原 17px 高，几乎点不中） ---- */
  .t4s-footer a, footer a, .hz-foot a {
    min-height: 36px; display: inline-flex; align-items: center;
  }

  /* 邮箱 / 电话可点区 */
  a[href^="mailto"], a[href^="tel"] { min-height: 34px; display: inline-flex; align-items: center; }

  /* 面包屑 */
  .hz-breadcrumb a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 30px; }

  /* ---- 6. 首页「面料铺」横幅：手机端聚焦面料区，去掉上下大留白 ---- */
  #hz-fabric-shop { background: #f6f2ea; padding: 12px 0 16px; }
  #hz-fabric-shop .hz-fab-wrap { padding: 0 12px; }
  #hz-fabric-shop .hz-fab-link img {
    width: 100%; height: auto; aspect-ratio: 5 / 3;
    object-fit: cover; object-position: center 72%;
    border-radius: 6px; box-shadow: 0 1px 0 rgba(138, 109, 59, .14);
  }
}

/* ================= 7. 移动导航抽屉（hz-mobile-nav.js） ================= */
.hz-mnav-mask {
  position: fixed; inset: 0; background: rgba(26, 10, 10, .46);
  opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 99990;
}
.hz-mnav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 82vw; max-width: 330px;
  background: #faf6ee; z-index: 99991; transform: translateX(-102%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  box-shadow: 2px 0 24px rgba(26, 10, 10, .18);
  font-family: 'Microsoft YaHei', 'PingFang SC', Poppins, Arial, sans-serif;
}
body.hz-mnav-open .hz-mnav { transform: translateX(0); }
body.hz-mnav-open .hz-mnav-mask { opacity: 1; pointer-events: auto; }
body.hz-mnav-open { overflow: hidden; }

.hz-mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 16px; border-bottom: 1px solid #e8e0d2;
}
.hz-mnav-brand { font-size: 13.5px; letter-spacing: .12em; color: #2b2b2b; font-weight: 600; line-height: 1.5; }
.hz-mnav-brand i { color: #8a6d3b; font-style: normal; }
.hz-mnav-close {
  width: 44px; height: 44px; border: none; background: transparent; color: #6b6459;
  font-size: 24px; line-height: 1; cursor: pointer; margin-right: -8px;
}
.hz-mnav nav { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.hz-mnav nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 18px; color: #2b2b2b; text-decoration: none;
  font-size: 15px; letter-spacing: .02em; border-bottom: 1px solid rgba(232, 224, 210, .7);
}
.hz-mnav nav a:active { background: #f2ece0; }
.hz-mnav nav a span.ar { color: #b9b0a2; font-size: 13px; }
.hz-mnav-foot { padding: 14px 18px 22px; border-top: 1px solid #e8e0d2; }
.hz-mnav-foot a { color: #8a6d3b; font-size: 13px; text-decoration: none; }

/* hz 2026-11-08: 本站没有收藏夹功能，隐藏主题的心形收藏图标（点了只会 404，属于误导） */
.t4s-site-nav__heart, .t4s-toolbart-wish, a[data-link-wishlist] { display: none !important; }

/* hz 2026-11-08: 自建页（购物车/订单确认）顶部固定语言胶囊会压住「返回」链接 → 右侧留安全区 */
@media (max-width: 767px) {
  .hz-head .hz-wrap { padding-right: 96px; }
  .hz-back { font-size: 12.5px; }
}

/* hz 2026-11-08: 手机端页头「返回」与固定语言胶囊争位（重叠）→ 隐藏返回，面包屑已提供同功能入口 */
@media (max-width: 767px) {
  .hz-head .hz-back { display: none !important; }
  .hz-head .hz-wrap { padding-right: 92px; }
}
