/* ═══════════════════════════════════════════════════════════
   TroveHall 统一导航组件 — th-nav.css
   2026-08-18 抽公共组件根治改造
   与 th-auth.css 配套。样式基准取自 cinematic/v2.html 原站头，
   所有 CSS 变量带 fallback（daigou/product 页未定义变量，实测确认）
   ═══════════════════════════════════════════════════════════ */

.th-nav {
  position: fixed; top: 0; left: 0; right: 0;
  /* z-index 高于产品页登录墙（#thProductWall z-index:99990）——
     站头是全站骨架，登录墙遮住时用户仍须能用菜单/搜索/切换语言。
     实测：不提层级会导致移动端汉堡按钮点击被墙拦截（2026-08-18） */
  z-index: 99995;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(255, 248, 240, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(43, 33, 24, 0.06);
  transition: all 0.4s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.th-nav *, .th-nav *::before, .th-nav *::after { box-sizing: border-box; }

/* ── 品牌 ── */
.th-nav-brand {
  font-family: var(--display, 'Playfair Display', Georgia, serif);
  font-size: 1.6rem; font-weight: 700;
  color: var(--espresso, #2b2118);
  text-decoration: none; letter-spacing: -0.03em;
  white-space: nowrap; flex-shrink: 0;
}
.th-nav-brand span { color: var(--accent, #c4703a); }

/* ── 搜索框 ── */
.th-nav-search {
  display: flex; align-items: center; gap: 0.4rem;
  flex: 1; max-width: 320px; margin: 0 1.2rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(43, 33, 24, 0.15);
  border-radius: var(--radius-full, 999px);
  padding: 0.3rem 0.9rem;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
}
.th-nav-search:focus-within { border-color: rgba(43, 33, 24, 0.45); }
.th-nav-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 0.85rem;
  color: var(--bark, #4a3b2c); padding: 0.2rem 0;
}
.th-nav-search button {
  background: transparent; border: none; cursor: pointer;
  color: var(--espresso, #2b2118); font-size: 1rem; line-height: 1; padding: 0;
}

/* ── 链接区 ── */
.th-nav-links { display: flex; align-items: center; gap: 2rem; }
.th-nav-links > a {
  color: var(--bark, #4a3b2c); text-decoration: none;
  font-weight: 500; font-size: 0.9rem; transition: color 0.2s;
  white-space: nowrap;
}
.th-nav-links > a:hover { color: var(--accent, #c4703a); }

.th-nav-cta {
  background: var(--espresso, #2b2118);
  color: var(--cream, #fff8f0) !important;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-full, 999px);
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.th-nav-cta:hover {
  background: var(--accent, #c4703a) !important;
  box-shadow: var(--shadow-button, 0 6px 18px rgba(43, 33, 24, 0.22));
  transform: translateY(-1px);
}

/* ── 下拉 ── */
.thn-drop { position: relative; }
.thn-dbtn {
  background: transparent; border: none; cursor: pointer;
  color: var(--bark, #4a3b2c); font-family: inherit;
  font-size: 0.9rem; font-weight: 600;
  padding: 0.4rem 0.2rem; white-space: nowrap;
}
.thn-dbtn:hover { color: var(--accent, #c4703a); }
.thn-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid rgba(43, 33, 24, 0.1); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(43, 33, 24, 0.14);
  padding: 0.5rem; display: none; flex-direction: column; gap: 2px; z-index: 99997;
}
.thn-drop.open .thn-menu { display: flex; }
.thn-menu a {
  color: var(--bark, #4a3b2c); text-decoration: none; font-size: 0.88rem;
  padding: 0.5rem 0.8rem; border-radius: 8px; white-space: nowrap;
}
.thn-menu a:hover { background: rgba(43, 33, 24, 0.06); }

/* 订单追踪下拉（左对齐 + 表单） */
.th-nav-track-menu { right: auto; left: 0; min-width: 260px; padding: 0.9rem; }
.th-nav-track-form { display: flex; gap: 0.4rem; }
.th-nav-track-form input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 0.85rem;
  border: 1.5px solid rgba(43, 33, 24, 0.15); border-radius: 8px;
  padding: 0.45rem 0.6rem; outline: none;
}
.th-nav-track-form input:focus { border-color: rgba(43, 33, 24, 0.45); }
.th-nav-track-form button {
  background: var(--espresso, #2b2118); color: #fff; border: none; cursor: pointer;
  border-radius: 8px; padding: 0.45rem 0.9rem; font-family: inherit;
  font-size: 0.82rem; font-weight: 600;
}
.th-nav-track-hint {
  font-size: 0.78rem; color: var(--bark, #4a3b2c);
  margin-top: 0.5rem; line-height: 1.45; opacity: 0.85;
}

/* ── 语言切换 ── */
.th-nav-lang {
  background: transparent; border: 1.5px solid rgba(43, 33, 24, 0.2);
  border-radius: var(--radius-full, 999px); cursor: pointer;
  color: var(--bark, #4a3b2c); font-family: inherit;
  font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem;
  transition: all 0.2s; white-space: nowrap;
}
.th-nav-lang:hover {
  border-color: var(--espresso, #2b2118); color: var(--espresso, #2b2118);
}

/* ── 会员态 ── */
.th-nav-member { display: flex; align-items: center; }
.th-nav-member .thn-dbtn { font-weight: 600; }

/* ── 汉堡按钮（桌面隐藏） ── */
.th-nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: 0.4rem; margin-left: 0.5rem;
  flex-direction: column; gap: 4px; flex-shrink: 0;
}
.th-nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--espresso, #2b2118); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.th-nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.th-nav-toggle.open span:nth-child(2) { opacity: 0; }
.th-nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 抽屉遮罩 */
.th-nav-overlay {
  position: fixed; inset: 0; z-index: 99993;
  background: rgba(43, 33, 24, 0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.th-nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════════
   移动端（≤768px）：汉堡抽屉
   原站头此处是 .nav-links a:not(.nav-cta){display:none}
   —— 链接直接消失且无替代入口，本组件根治该问题
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .th-nav { padding: 0.8rem 1.2rem; gap: 0.5rem; }
  .th-nav-brand { font-size: 1.3rem; }
  /* m3 回归修复（Wave-0 后 390 实测汉堡 l401>390 被挤出屏）：
     搜索框 flex:1 贪占 + min-width:auto 拒绝收缩 → 行溢出 65.8px 把汉堡推出视口。
     汉堡改 absolute 锚右缘（脱离 flex 流）；search min-width:0 解除 min-content 钉死
     + margin-right 3.75rem 让位 → 任何宽度搜索框必止于汉堡左缘前 */
  .th-nav-search { max-width: none; margin: 0 0.5rem; margin-right: 3.75rem; min-width: 0; padding: 0.25rem 0.75rem; }
  .th-nav-toggle {
    display: flex; position: absolute; right: 1.05rem; top: 50%;
    transform: translateY(-50%); margin-left: 0;
  }

  /* 链接区变抽屉 */
  .th-nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99994;
    width: min(82vw, 320px);
    background: var(--cream, #fff8f0);
    border-left: 1px solid rgba(43, 33, 24, 0.08);
    box-shadow: -8px 0 32px rgba(43, 33, 24, 0.16);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0.25rem; padding: 4.5rem 1.2rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .th-nav-links.open { transform: translateX(0); }

  .th-nav-links > a,
  .th-nav-links .thn-dbtn {
    display: block; width: 100%; text-align: left;
    font-size: 1rem; padding: 0.85rem 0.6rem;
    border-bottom: 1px solid rgba(43, 33, 24, 0.06);
  }

  /* 抽屉内下拉改为内联展开，不再绝对定位 */
  .thn-drop { width: 100%; }
  .thn-menu {
    position: static; top: auto; right: auto; left: auto;
    min-width: 0; width: 100%;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 0.5rem 0.8rem; background: transparent;
  }
  .th-nav-track-menu { min-width: 0; padding: 0 0 0.5rem 0.8rem; }
  .thn-menu a { font-size: 0.92rem; padding: 0.6rem 0.6rem; }

  .th-nav-cta {
    text-align: center; margin-top: 1rem;
    padding: 0.85rem 1.6rem; border-bottom: none !important;
  }
  .th-nav-lang { align-self: flex-start; margin-top: 0.8rem; }
  .th-nav-member { width: 100%; }
  .th-nav-member .thn-dbtn { border-bottom: 1px solid rgba(43, 33, 24, 0.06); }

  /* 2026-09-08 d1（移动 P0 复现后补）：currency select 由 th-currency.js 按断点
     归位——移动 ≤768px 注入抽屉 .th-nav-links 内（主行腾给搜索框）。
     胶囊撑满抽屉行宽（触屏目标 ≥44px）；toggle 固定 44×44——
     WP/Astra 全局 button padding 会把它撑到 86px 宽挤占整条（390 实测） */
  .th-nav-toggle { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
  .th-nav-links .th-currency-select {
    width: 100%; margin: 1.2rem 0 0.4rem;
    padding: 0.75rem 1rem; font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════
   2026-09-08 Wave-0 移动热修（审计 F-01/F-02/F-06/F-09）
   ═══════════════════════════════════════════════════════════ */

/* 触屏/窄屏：输入 ≥16px（iOS 聚焦防缩放，iPad 触屏同命中）；
   ⚱ 提交钮撑满表单高度（≥44px 触控带）；抽屉内 track 输入同理 */
@media (hover: none), (max-width: 768px) {
  /* 垂直 padding 归零 + min-height 47 → ⚱ stretch 后真 ≥44px（修正 32×34） */
  .th-nav-search { padding-top: 0; padding-bottom: 0; min-height: 47px; }
  .th-nav-search input,
  .th-nav-track-form input { font-size: 1rem; }
  .th-nav-search button {
    align-self: stretch; display: flex; align-items: center;
    padding: 0 0.7rem; font-size: 1.15rem; min-width: 40px;
  }
  .th-nav-track-form button { font-size: 1rem; padding: 0.45rem 1rem; }
}

/* 极窄屏（≤340px，如 iPhone SE 1 代）：不再整条隐藏搜索框，
   收缩为 ⚱ 提交钮入口（点按进 /products/ 目录），320 档有搜索入口（审计 F-02） */
@media (max-width: 340px) {
  /* m5: margin-right:auto —— search 停 grow 后 space-between 会把它推到行尾与汉堡重叠（320 实测 251..296 ∩ 268..303）；
     auto 吸收自由空间 → 搜索钮贴品牌后，汉堡恒锚右缘 */
  .th-nav-search { flex: 0 1 47px; max-width: 47px; margin: 0 0.25rem; margin-right: auto; padding: 0; min-height: 47px; justify-content: center; }
  .th-nav-search input { display: none; }
  .th-nav-search button { flex: 1 1 auto; min-width: 44px; padding: 0; justify-content: center; }
}

/* 抽屉打开时锁滚动 */
body.th-nav-locked { overflow: hidden; }

/* ── WP 页（Astra 主题）适配 ──
   隐藏 Astra 原生站头，避免双站头；由 PHP 侧加 body class 控制 */
body.th-nav-wp .ast-main-header-wrap,
body.th-nav-wp .site-header,
body.th-nav-wp #masthead { display: none !important; }
body.th-nav-wp { padding-top: 0 !important; }
body.th-nav-wp #page, body.th-nav-wp .site-content { padding-top: 76px; }
@media (max-width: 768px) {
  /* 2026-09-08 Wave-0：导航 min-height 44px 增高 → 补位同步 66→80 */
  body.th-nav-wp #page, body.th-nav-wp .site-content { padding-top: 80px; }
}

/* ═══════════════════════════════════════════════════════════
   2026-09-08 d2：WP 按钮基样盖写（Astra 内联 + trovehall-brand.css）
   证据（计算样式探测 0908）：WP 页 nav 内全部 BUTTON（汉堡/⚱/下拉/语言）
   bg=rgb(233,69,96) 粉红、radius 6、fs 15/600、padding 左右 32px —— 来自
   th-nav.css 之后打印的 Astra customizer 内联 button{padding:12-14px 24-28px}
   与最后加载的 trovehall-brand.css button{background:var(--th-red)!important}：
   汉堡被撑 64×44、触感/配色全走样（「导航栏看不到东西」视觉层根因）。
   静态页对照干净（无 brand.css：toggle 44×44 透明）。
   处置：#th-nav 域内 ID 特异性 + !important 把按钮复位为组件设计值，
   再按桌面/抽屉各自补布局值。═
   ─────────────────────────────────────────────────────── */
#th-nav .th-nav-toggle,
#th-nav .th-nav-search button,
#th-nav .th-nav-msearch button,
#th-nav .thn-dbtn,
#th-nav .th-nav-lang,
#th-nav .th-nav-member button {
  background: transparent !important;
  color: var(--bark, #4a3b2c) !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
/* 桌面（>768）各按钮设计值（与静态页一致） */
#th-nav .th-nav-toggle {
  width: 44px !important; height: 44px !important; padding: 0 !important;
}
#th-nav .th-nav-search button {
  padding: 0 0.7rem !important; min-width: 40px !important;
  font-size: 1.15rem !important; font-weight: 400 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
#th-nav .thn-dbtn {
  padding: 0.4rem 0.2rem !important; font-size: 0.9rem !important; font-weight: 600 !important;
}
#th-nav .th-nav-member .thn-dbtn { font-weight: 600 !important; }
#th-nav .th-nav-lang {
  padding: 0.3rem 0.75rem !important; font-size: 0.8rem !important; font-weight: 600 !important;
  line-height: normal !important;
  border: 1.5px solid rgba(43, 33, 24, 0.2) !important;
  border-radius: 999px !important;
}
/* 抽屉内（≤768）：dbtn 全宽行式（值同 th-nav.css 原 drawer 规则，防 Astra 盖写矮化） */
@media (max-width: 768px) {
  #th-nav .th-nav-links .thn-dbtn {
    padding: 0.85rem 0.6rem !important;
    font-size: 1rem !important;
    line-height: normal !important;
    border-bottom: 1px solid rgba(43, 33, 24, 0.06) !important;
  }
  #th-nav .th-nav-links .th-nav-lang {
    margin-top: 0.8rem !important; align-self: flex-start !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   2026-09-09 navfix：移动导航 APP 化（大佬真实反馈）
   - 顶栏搜索已由 JS 移入抽屉（th-nav-msearch）→ 顶栏只剩 品牌+汉堡
   - 抽屉打开即全览：分类 5 直链(.thn-cat)、Track 直链、搜索行置顶
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 抽屉内搜索行（替代原顶栏搜索位；44px+ 触屏目标、1rem 防 iOS 聚焦缩放） */
  .th-nav-links .th-nav-msearch {
    display: flex; align-items: center; gap: 0.5rem;
    flex: none; margin: 0 0 0.9rem; min-width: 0; min-height: 47px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(43, 33, 24, 0.15);
    border-radius: 999px; padding: 0 0.35rem 0 0.9rem;
    box-sizing: border-box;
  }
  .th-nav-links .th-nav-msearch:focus-within { border-color: rgba(43, 33, 24, 0.45); }
  .th-nav-links .th-nav-msearch input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 1rem; color: var(--bark, #4a3b2c);
    padding: 0.3rem 0;
  }
  .th-nav-links .th-nav-msearch button {
    flex: none; white-space: nowrap; cursor: pointer;
    background: var(--espresso, #2b2118); color: var(--cream, #fff8f0);
    border: none; border-radius: 999px;
    padding: 0.55rem 1.15rem; font-size: 0.9rem; font-weight: 600;
    font-family: inherit; min-height: 40px;
  }
  /* 分类平铺直链：与主链接同构的行式，缩进区分层级 */
  .th-nav-links .thn-cat { padding-left: 1.4rem !important; }

  /* 会员区行式（登录直链 + 登录后 My Orders/My Account/Logout 三直链） */
  .th-nav-links .th-nav-member { width: 100%; }
  .th-nav-links .th-nav-member a,
  .th-nav-links .th-nav-member a.th-nav-login-row {
    display: block; width: 100%; text-align: left;
    font-size: 1rem !important; font-weight: 500 !important;
    padding: 0.85rem 0.6rem; text-decoration: none;
    color: var(--bark, #4a3b2c) !important;
    border-bottom: 1px solid rgba(43, 33, 24, 0.06);
    white-space: normal !important;
  }
}

/* navfix 追加：msearch 钮设计值 —— 置 d2 复位组之后（同 #th-nav ID specificity
   后声明赢），WP 页不被透明复位吞掉实底（verify-d2 09-09 实测粉红复发 → 复位漏网后补） */
@media (max-width: 768px) {
  #th-nav .th-nav-links .th-nav-msearch button {
    background: var(--espresso, #2b2118) !important;
    color: var(--cream, #fff8f0) !important;
    border-radius: 999px !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.9rem !important; font-weight: 600 !important;
    min-height: 40px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   2026-09-09 navd：移动导航 = APP/小程序形态（大佬拍板方案 X）
   证据=实测 10 站导航结构 + 研究数据（见 OBS 海外购项目参考研究）
   - 顶栏 = 品牌 + 搜索胶囊(常驻,第一入口) + 语言/币种右缘
   - 底部固定 4 Tab：首页/分类/购物车/我的（替代汉堡抽屉）
   - 全部 ID 级(#th-nav)声明 → 同 specificity 后声明赢，压过上方
     抽屉期 class 级移动规则(旧 .th-nav-toggle/msearch/drawer 规则已无
     元素引用，保留为历史注释不删，避免 170+ 页 CDN 大 diff 回归)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 顶栏行：brand 固定 + 搜索胶囊吃满剩余 + extras(语言/币种) 右缘 */
  #th-nav { padding: 0.55rem 0.8rem; gap: 0.5rem; }
  #th-nav .th-nav-brand { font-size: 1.05rem; flex: 0 0 auto; }
  #th-nav .th-nav-search {
    max-width: none; flex: 1 1 auto; min-width: 0;
    margin: 0 0 0 0.4rem; margin-right: 0;   /* 覆盖抽屉期 margin-right:3.75rem 让位规则 */
  }
  #th-nav .th-nav-extras {
    display: flex; align-items: center; gap: 0.35rem;
    flex: 0 0 auto; margin-left: 0.1rem;
  }
  #th-nav .th-nav-lang { padding: 0.15rem 0.5rem !important; font-size: 0.72rem !important; }
  #th-nav .th-nav-lang { position: relative !important; }
  #th-nav .th-nav-lang::after { content: ''; position: absolute; display: block; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; }
  /* navd3→navd4: 顶栏宽度预算重排（390 实测 extras 144px 挤压搜索 input 至 31px）——
     brand/1.05rem + lang 收窄(!important 盖 318 行防-Astra 设计值，实测 12.8px/.3rem 未收)
     + 币种 select 移动紧凑款(JS max-width:64px) → 搜索输入实测 ≥80px */
  #th-nav .th-nav-extras .th-currency-select { margin: 0; flex: 0 0 auto; }
}
/* ≤360px（iPhone SE 档）：顶栏只留 brand+search+lang，币种让位（lang 已能切、币种低频） */
@media (max-width: 360px) {
  #th-nav .th-nav-extras .th-currency-select { display: none !important; }
  /* 覆盖抽屉期 340 规则「搜索框收缩为 ⚱ 图标、input display:none」——
     navd 顶栏搜索是唯一搜索入口，任何宽度必须真实可输入（320 实测 inputW=0） */
  #th-nav .th-nav-search input { display: block !important; }
}

/* ── 底部 Tab 栏（body 级，非 #th-nav 域）── */
.th-nav-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99995;
  display: flex; align-items: stretch;
  background: rgba(255, 248, 240, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(43, 33, 24, 0.09);
  box-shadow: 0 -6px 24px rgba(43, 33, 24, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.th-nav-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; min-height: 54px;
  padding: 6px 2px 5px; color: var(--bark, #4a3b2c);
  text-decoration: none; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.01em; -webkit-tap-highlight-color: transparent;
}
.th-nav-tab svg { width: 22px; height: 22px; display: block; }
.th-nav-tab-label { line-height: 1.25; }
.th-nav-tab.active { color: var(--espresso, #2b2118); font-weight: 700; }
.th-nav-tab.active svg { stroke-width: 2.5; }
/* Tab 栏 54px+安全区 让内容可滚至其上方（JS 加 body class） */
body.th-nav-tabbed { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
/* 切回桌面时 body class 移除 → 无残留 */


/* ═══ 2026-09-11 修复：1240–1682px 导航溢出（登录入口/主 CTA/币种被裁）═══
   实测 1440px 下导航固有宽 1722px：brand 120.9 + search 226.2 + links 1169.5
   （其中 320px 纯粹是 gap:2rem × 10 个间隔）+ 币种 87.2 + padding 80。
   原设计只有 ≤768 断点，769–1682 之间无任何适配 → 出屏 155–315px，
   1280 下 "Log In / Sign Up" 被截成 "Log In / Sign"，
   1440 下主 CTA 只剩约 25px 黑弧，币种选择器 ≤1600px 完全不可见。
   本段只压缩有富余的间距与字号，**不隐藏任何入口**
   （页脚缺 how-it-works / pricing / expert-buying，隐藏 = 让用户彻底失去入口）。 */
@media (min-width: 1240px) and (max-width: 1439px) {
  .th-nav { padding: 1rem 0.875rem; }
  .th-nav-brand { font-size: 1.3rem; }
  .th-nav-search { max-width: 130px; margin: 0 0.45rem; }
  .th-nav-links { gap: 0.5rem; }
  .th-nav-links > a, .thn-dbtn { font-size: 0.8rem; }
}
@media (min-width: 1440px) and (max-width: 1682px) {
  .th-nav { padding: 1rem 1.25rem; }
  .th-nav-search { max-width: 200px; margin: 0 0.7rem; }
  .th-nav-links { gap: 0.6rem; }
  .th-nav-links > a, .thn-dbtn { font-size: 0.85rem; }
}
/* ═══════════════════════════════════════════════════════════
   2026-09-11 fontfix1：全站文本输入控件 ≥16px（iOS 聚焦防缩放）
   ═══════════════════════════════════════════════════════════
   取证：font-scan.cjs 实测 11 页 77 个控件，46 个 <16px（其中 17 个可见，
   会真实触发 Safari 聚焦放大）。上方 239 行 Wave-0 先例只覆盖
   .th-nav-search / .th-nav-track-form 两个选择器，其余控件全部漏网：
     首页 #productLink 14.40px ／ /expert/ 表单 15.20px
     /account/ .tf 14.08px ／ 币种 select 11.52px(静态页) 10.51px(WP页)
     /cart/ /faq/ /about-us/ 站头搜索 14.59px ／ #thChatIn 13.60px
   做法：th-nav.css 是全站最后加载的公共样式表（静态页 ?v= ／ WP 页
   wp_enqueue_style ?ver=），在此统一兜底 —— 一处覆盖全站。
   排除 button/submit/reset/checkbox/radio/image/range/file：它们不唤起
   键盘、不触发缩放，强改字号只会破坏按钮版式（全站实测 37 个
   type="button" + 3 个 type="submit"）。
   ⚠️ 仅窄屏/触屏生效，桌面端不受影响。 */
@media (max-width: 768px), (hover: none) {
  input:not([type=button]):not([type=submit]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=image]):not([type=range]):not([type=file]),
  select,
  textarea { font-size: 16px !important; }
}
