/* MOBILE-OWNER: mobile-audit —— 本文件只放 ≤480px 手机端规则；桌面端/站主规则请勿写这里 */
/* v3 · 2026-11-23 · 版本号用 filemtime，无需改主题版本常量 */

@media (max-width: 480px) {
  /* ── ① 可点区域 ≥44×44 ── */
  .hdr-burger { width: 44px; height: 44px; min-width: 44px; }
  .hdr-account { width: 44px; height: 44px; min-width: 44px; }
  .hdr-cart { height: 44px; padding: 9px 13px 10px; }
  .hdr-logo { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-arrow { width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; }
  .featured-quick { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .ing-tabs { gap: 8px; }
  .ing-tab { height: 44px; line-height: 44px; }

  /* 轮播圆点：视觉仍是 9px 圆点，点按区 44×44 */
  .hero-dots { gap: 0; }
  .hero-dot { width: 44px; height: 44px; border-radius: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; }
  .hero-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
  .hero-dot.is-active { background: transparent; }
  .hero-dot.is-active::after { background: #fff; }

  /* 页脚（.site-footer，原规则特异性高于 footer，这里用同等特异性覆盖） */
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer input[type="email"], .site-footer input[type="text"] { min-height: 44px; }
  .site-footer button, .site-footer input[type="submit"] { min-height: 44px; }

  /* ── ② 交互反馈：去掉移动端 300ms 点击延迟 + 按下即变（原来全站 0 条 :active） ── */
  a, button, [role="button"], summary, input[type="submit"] { touch-action: manipulation; }
  .pdp-atc:active, .hdr-cart:active, .hdr-account:active, .hdr-burger:active,
  a.button:active, .featured-quick:active, .ing-tab:active, .hero-arrow:active,
  .hero-dot:active, .add_to_cart_button:active, .site-footer a:active { opacity: .8; }

  /* ── ③ 交易链路控件 ── */
  input.qty, .woocommerce .quantity input[type="number"] { min-height: 44px; width: 56px; }
  #place_order { width: 100%; min-height: 48px; }
  .woocommerce-checkout input.input-text,
  .woocommerce-checkout select,
  .woocommerce-checkout textarea { min-height: 44px; }
}

/* 360 及更窄：header 元素放大后要收 logo，实测过 scrollWidth 369 > 360 */
@media (max-width: 380px) {
  .hdr-logo img { width: 140px; height: auto; }
  .hdr-tools { gap: 6px; }
}
@media (max-width: 480px) {
  /* 页脚 + trust 区文字链：行内元素不吃 min-height，必须转 inline-flex 才能到 44 */
  .site-footer a, .footer-in a, .footer-cols a, .footer-top a, .footer-mid a,
  .trust-item-txt a, a.details { display: inline-flex; align-items: center; min-height: 44px; }
  .trust-item-txt p { margin: 0; }
}
@media (max-width: 480px) {
  /* 底部法务/联系条：容器类名不稳定，用属性选择器兜住 tel/mailto/政策页链接 */
  a[href^="tel:"], a[href^="mailto:"], a[href*="/contact"], a[href*="privacy"],
  a[href*="refund"], a[href*="shipping"], a[href*="terms"] {
    display: inline-flex; align-items: center; min-height: 44px;
  }
}