/* 小商品集货服务中心 · 三语镜像站样式
   零外部依赖; 布局一律用 CSS 逻辑属性, 希伯来语 RTL 自动镜像 */
:root {
  --teal: #0f8f97;
  --teal-dark: #0c6f78;
  --teal-deep: #0b3f47;
  --mint: #19b3a1;
  --price: #e4393c;
  --ink: #1d3038;
  --ink-2: #526770;
  --ink-3: #8a9ba3;
  --line: #e9eff1;
  --bg: #f4f7f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(14, 60, 68, .055);
  --shadow-hover: 0 14px 30px rgba(14, 60, 68, .13);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
html[lang="he"] body { font-family: "Segoe UI", Arial, "Noto Sans Hebrew", "David", var(--font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; }
bdi { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
::selection { background: #bfeceb; color: var(--teal-deep); }

/* ===== 顶部语言栏: 常驻页面最上方 ===== */
.lang-bar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, #0a323a, #10434b 60%, #0d3d45);
  color: #cfe7e8; box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.lang-inner { max-width: 1240px; height: 44px; margin: 0 auto; padding: 0 4px; display: flex; align-items: center; gap: 12px; }
.lang-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lang-label svg { width: 16px; height: 16px; color: #7fd8d0; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); }
.lang-btn { padding: 5px 16px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; color: #cfe7e8; transition: background .18s, color .18s, box-shadow .18s; }
.lang-btn:hover { background: rgba(255,255,255,.17); color: #fff; }
.lang-btn.on { background: #fff; color: #0c626a; font-weight: 700; box-shadow: 0 2px 9px rgba(0,0,0,.2); }
.lang-hint { margin-inline-start: auto; font-size: 11.5px; color: #8fb6b9; white-space: nowrap; }

/* ===== 今日汇率条 ===== */
.rate-bar { background: #eef8f7; border-bottom: 1px solid #d7ecea; }
.rate-inner { max-width: 1240px; margin: 0 auto; padding: 7px 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #0c626a; }
.rate-title { padding: 2px 10px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rate-values { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-values bdi { font-weight: 600; }
.rate-date { margin-inline-start: auto; font-size: 11.5px; color: #5b8b8e; white-space: nowrap; }

/* ===== 主头部 ===== */
.hd { background: #fff; box-shadow: 0 1px 0 rgba(14,60,68,.07); }
.hd-top { max-width: 1240px; margin: 0 auto; padding: 16px 4px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; min-width: 0; font-size: 21px; font-weight: 700; color: var(--teal-deep); white-space: nowrap; letter-spacing: -.01em; }
.logo-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--mint)); box-shadow: 0 5px 14px rgba(15,143,151,.24); }
.logo-mark svg { width: 23px; height: 23px; }
.logo-text { line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.search { flex: 1; min-width: 0; max-width: 560px; position: relative; display: flex; align-items: center; border: 2px solid #dce9ea; border-radius: 999px; background: #fbfdfd; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,143,151,.12); }
.search-ic { position: absolute; inset-inline-start: 15px; display: inline-flex; color: #9db1b7; pointer-events: none; }
.search-ic svg { width: 17px; height: 17px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 9px 14px; padding-inline-start: 42px; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: #a7b7bd; }
.search button { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; margin-inline-end: -2px; border: 0; border-radius: 999px; padding: 9px 22px; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(120deg, var(--teal), var(--mint)); box-shadow: 0 3px 10px rgba(15,143,151,.25); transition: filter .2s, transform .2s; }
.search button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.search button svg { width: 15px; height: 15px; }
.hd-links { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hd-links a { transition: color .18s; }
.hd-links a:hover { color: var(--teal); }

/* ===== 导航条 ===== */
.hd-nav { background: linear-gradient(90deg, #0f8f97, #12a89e); }
[dir="rtl"] .hd-nav { background: linear-gradient(270deg, #0f8f97, #12a89e); }
.nav-wrap { max-width: 1240px; margin: 0 auto; display: flex; align-items: stretch; }
.all-cat { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 250px; border: 0; padding: 0 18px; height: 46px; color: #fff; font-size: 14px; font-weight: 600; text-align: start; background: rgba(0,0,0,.13); }
.all-cat:hover { background: rgba(0,0,0,.2); }
.all-cat svg { width: 17px; height: 17px; }
.nav-items { display: flex; flex: 1 1 auto; min-width: 0; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav-items::-webkit-scrollbar { display: none; }
.nav-items a { display: inline-flex; align-items: center; padding: 0 22px; height: 46px; color: rgba(255,255,255,.92); font-size: 13.5px; white-space: nowrap; border-bottom: 3px solid transparent; transition: background .18s; }
.nav-items a:hover { background: rgba(255,255,255,.13); }
.nav-items a.on { background: rgba(255,255,255,.17); border-bottom-color: #fff; font-weight: 600; }

/* ===== 页面骨架 ===== */
.wrap { max-width: 1240px; margin: 18px auto 0; padding: 0 4px; display: flex; gap: 16px; align-items: flex-start; }
.side { width: 250px; flex-shrink: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.side-hd { display: flex; align-items: center; gap: 9px; padding: 14px 16px; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(120deg, var(--teal), var(--mint)); }
.side-hd svg { width: 17px; height: 17px; }
.side-close { display: none; margin-inline-start: auto; border: 0; background: rgba(255,255,255,.2); color: #fff; width: 26px; height: 26px; border-radius: 8px; font-size: 18px; line-height: 1; }
.side ul { list-style: none; }
.side .cat-sub { padding: 4px 0 8px; }
.side .cat-sub .cat-sub { padding: 0; }
.side a { display: block; padding: 6px 16px; font-size: 12.8px; line-height: 1.5; color: var(--ink-2); border-inline-start: 3px solid transparent; transition: background .16s, color .16s; }
.side a:hover { background: #f0fafa; color: var(--teal); }
.side .lvl1 > a { padding-block: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #f1f5f6; }
.side .lvl2 > a { padding-inline-start: 26px; color: #6d8088; }
.side .lvl3 > a { padding-inline-start: 38px; font-size: 12.3px; }
.side .lvl4 > a { padding-inline-start: 48px; font-size: 12.3px; }
.side .active > a { color: var(--teal); background: #eaf8f7; border-inline-start-color: var(--teal); font-weight: 600; }
/* 子商城专区入口(原空壳分类树收敛为一个链接) */
.side .cat-zone > a { display: flex; align-items: center; color: var(--teal-deep); background: #f4fbfa; }
.side .cat-zone > a:hover { background: #e6f7f5; }
.cat-go { margin-inline-start: auto; font-size: 12px; opacity: .6; }
.zone-tip { display: flex; margin: -4px 0 16px; }
.zone-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #cfe7e6; border-radius: 999px; background: #f2fbfb; color: var(--teal-deep); font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.zone-link:hover { background: #e2f6f4; transform: translateY(-1px); }
.zone-link svg { width: 15px; height: 15px; }
[dir="rtl"] .zone-link svg { transform: scaleX(-1); }
.side-mask { display: none; }

.main { flex: 1; min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.crumb { padding: 2px 2px 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.crumb a:hover { color: var(--teal); }
.crumb-count { color: #9aabb1; }
.sep { display: inline-block; margin-inline: 7px; color: #bcc9cd; }

/* ===== 首页 Hero ===== */
.hero { position: relative; overflow: hidden; margin: -18px -18px 26px; padding: 38px 40px 34px; border-radius: var(--radius) var(--radius) 0 0; color: #fff; background: linear-gradient(120deg, #0a424b 0%, #0f8f97 52%, #19b3a1 100%); }
[dir="rtl"] .hero { background: linear-gradient(240deg, #0a424b 0%, #0f8f97 52%, #19b3a1 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.16), transparent 45%); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.orb-a { width: 320px; height: 320px; top: -160px; inset-inline-end: -70px; }
.orb-b { width: 190px; height: 190px; bottom: -110px; inset-inline-start: 38%; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 340px; min-width: 0; }
.hero-tag { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.hero h1 { font-size: 30px; line-height: 1.3; font-weight: 700; margin: 15px 0 10px; letter-spacing: .005em; }
.hero p { max-width: 560px; font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 19px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: #fff; color: #0c6f78; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.42); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
[dir="rtl"] .btn-primary svg { transform: scaleX(-1); }
.hero-stats { display: flex; min-width: 0; gap: 12px; flex-wrap: wrap; }
.stat { min-width: 116px; display: flex; flex-direction: column; gap: 3px; padding: 14px 17px; border-radius: 14px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(10px); }
.stat strong { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 11.5px; color: rgba(255,255,255,.85); }

/* ===== 商品区块 ===== */
.sec { margin-bottom: 26px; }
.sec-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 0 12px 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); border-inline-start: 4px solid var(--teal); }
.sec-hd h2 { font-size: 17px; font-weight: 700; color: var(--ink); }
.sec-hd .more { font-size: 12.5px; color: var(--teal); white-space: nowrap; transition: opacity .18s; }
.sec-hd .more:hover { opacity: .7; text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 14px; }
.card { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { transform: translateY(-3px); border-color: #cbe8e7; box-shadow: var(--shadow-hover); }
.card .pic { aspect-ratio: 1; overflow: hidden; background: linear-gradient(160deg, #fbfdfd, #f2f6f7); }
.card .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.card:hover .pic img { transform: scale(1.055); }
.card-body { padding: 10px 12px 12px; }
.card .nm { height: 2.9em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.8px; line-height: 1.45; color: #24383f; word-break: break-word; }
.card .cd { margin-top: 6px; color: #9dabb1; font-size: 11px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .pr { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.card .pr b { color: var(--price); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card .pr span { color: var(--ink-3); font-size: 11.5px; }
.card .px { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; font-size: 11.5px; color: #0e8289; font-variant-numeric: tabular-nums; }
.card .px small { margin-inline-start: 3px; font-size: 9.5px; color: #93a8ac; }
.card .px .px-dot { color: #b9cdd0; }
.card .st { display: inline-flex; align-items: center; gap: 3px; margin-top: 7px; padding: 2px 9px; border-radius: 999px; background: #eef8f7; color: #0e8289; font-size: 11px; }
.tag-zy { display: inline-block; margin-inline-end: 5px; padding: 0 5px; border-radius: 4px; background: var(--price); color: #fff; font-style: normal; font-size: 10.5px; line-height: 1.5; vertical-align: 1px; }

/* ===== 分页 ===== */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; padding: 22px 0 6px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 6px 11px; border: 1px solid #e2eaec; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); transition: background .18s, border-color .18s, color .18s; }
.pg:hover { border-color: var(--teal); color: var(--teal); }
.pg.on { border-color: var(--teal); background: linear-gradient(120deg, var(--teal), var(--mint)); color: #fff; font-weight: 600; }
.pg.dis { color: #c6d0d3; pointer-events: none; }
.pg-info { margin-inline-start: 10px; color: var(--ink-3); font-size: 12px; }

/* ===== 商品详情 ===== */
.detail { display: flex; gap: 28px; align-items: flex-start; }
.d-pics { width: 360px; max-width: 100%; flex-shrink: 0; }
.d-main { border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 1; overflow: hidden; background: linear-gradient(160deg, #fbfdfd, #f2f6f7); }
.d-main img { width: 100%; height: 100%; object-fit: contain; }
.d-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d-thumbs img { width: 66px; height: 66px; object-fit: contain; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .18s, transform .18s; }
.d-thumbs img:hover { border-color: var(--teal); transform: translateY(-2px); }
.d-info { flex: 1; min-width: 0; }
.d-info h1 { font-size: 21px; line-height: 1.45; font-weight: 700; margin-bottom: 16px; }
.d-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 15px 18px; margin-bottom: 16px; border: 1px solid #ffe2dc; border-radius: 12px; background: linear-gradient(100deg, #fff4f1, #fffaf8); }
[dir="rtl"] .d-price { background: linear-gradient(260deg, #fff4f1, #fffaf8); }
.d-price > span { color: var(--price); font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.d-price em { color: var(--ink-3); font-style: normal; font-size: 13px; }
.d-price i { margin-inline-start: auto; color: var(--ink-3); font-style: normal; font-size: 12.5px; }
.price-alt { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 2px; }
.price-alt .pa { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid #f7ddd5; border-radius: 9px; background: #fff; color: #b45309; font-size: 14px; font-variant-numeric: tabular-nums; }
.price-alt .pa b { font-weight: 700; }
.price-alt .pa small { font-size: 10px; color: #98a7ab; font-weight: 400; }
.price-rate { flex: 1 0 100%; font-size: 11px; color: #8b9a9e; font-variant-numeric: tabular-nums; }
.d-tb { width: 100%; border-collapse: collapse; }
.d-tb th, .d-tb td { padding: 10px 12px; border-bottom: 1px solid #eff3f4; text-align: start; font-size: 12.8px; font-weight: 400; word-break: break-word; }
.d-tb th { width: 100px; background: #f8fbfb; color: #71858c; font-weight: 500; }
.d-tb tr:last-child th, .d-tb tr:last-child td { border-bottom: 0; }

/* ===== 其它页面 ===== */
.about { padding: 10px 8px 24px; }
.about .hero-tag { background: #eaf8f7; border-color: #cdeceb; color: var(--teal); text-transform: none; letter-spacing: .04em; }
.about h2 { font-size: 23px; margin: 16px 0 12px; }
.about p { max-width: 760px; color: var(--ink-2); line-height: 1.95; margin-bottom: 8px; }
.empty { padding: 70px 10px; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty a { color: var(--teal); text-decoration: underline; }

/* ===== 专题页 ===== */
.fx-banner { margin-bottom: 16px; }
.fx-banner img { width: 100%; border-radius: 12px; }
.fx-banner-text { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 190px; padding: 30px 38px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #0a424b, #0f8f97 55%, #19b3a1); }
[dir="rtl"] .fx-banner-text { background: linear-gradient(240deg, #0a424b, #0f8f97 55%, #19b3a1); }
.fx-banner-text::after { content: ""; position: absolute; top: -110px; inset-inline-end: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.09); }
.fx-banner-text > div { position: relative; z-index: 1; }
.fx-banner-text span { display: inline-block; padding: 4px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.fx-banner-text strong { display: block; margin: 12px 0 6px; font-size: 26px; line-height: 1.25; }
.fx-banner-text p { font-size: 13px; color: rgba(255,255,255,.88); }
.fx-page .sec { margin: 22px 0; }
.fx-rt { margin: 16px 0; overflow-x: auto; }
.fx-rt img { max-width: 100%; }
.fx-layout { display: flex; gap: 16px; align-items: flex-start; }
.fx-side { width: 190px; flex-shrink: 0; padding: 8px; border-radius: 12px; background: #f8fbfb; }
.fx-side ul { list-style: none; }
.fx-side a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 12.8px; color: var(--ink-2); }
.fx-side a:hover { background: #edf7f6; color: var(--teal); }
.fx-side .lvl1 > a { font-weight: 600; }
.fx-side .active > a { background: #e3f4f2; color: var(--teal); font-weight: 600; }
.fx-content { flex: 1; min-width: 0; }

/* ===== 页脚 ===== */
.ft { margin-top: 30px; background: linear-gradient(110deg, #0b343c, #103f47); color: #c8dfe1; }
.ft-inner { max-width: 1240px; margin: 0 auto; padding: 36px 4px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.ft-brand { display: flex; align-items: flex-start; gap: 14px; }
.ft-brand .logo-mark { width: 44px; height: 44px; }
.ft-brand strong { display: block; font-size: 16px; color: #fff; margin-bottom: 6px; }
.ft-brand p { max-width: 380px; font-size: 12.5px; line-height: 1.8; color: #9dbfc2; }
.ft-col h4 { font-size: 13.5px; color: #fff; margin-bottom: 12px; }
.ft-col a, .ft-col span { display: block; font-size: 12.5px; line-height: 1.9; color: #9dbfc2; }
.ft-col a:hover { color: #fff; }
.ft-bottom { max-width: 1240px; margin: 0 auto; padding: 14px 4px 24px; border-top: 1px solid rgba(255,255,255,.11); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: #87adb1; }

/* ===== 入场动效 ===== */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero, .crumb, .sec, .detail, .about, .fx-banner { animation: rise .42s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .hd-links { display: none; }
  .all-cat { flex-basis: 200px; }
  .wrap { padding-inline: 12px; }
  .side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 280px; z-index: 80; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.18); }
  [dir="rtl"] .side { transform: translateX(100%); box-shadow: -8px 0 30px rgba(0,0,0,.18); }
  body.cat-open .side { transform: none; }
  .side-close { display: block; }
  .side-mask { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(8,38,43,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  body.cat-open .side-mask { opacity: 1; visibility: visible; }
}
@media (max-width: 820px) {
  .hd-top { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .logo { font-size: 19px; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .nav-wrap { padding-inline: 12px; }
  .all-cat { flex-basis: auto; padding-inline: 14px; }
  .nav-items a { padding-inline: 16px; }
  .lang-inner { padding-inline: 16px; }
  .rate-inner { padding-inline: 16px; }
  .lang-hint { display: none; }
  .wrap { margin-top: 14px; }
  .main { padding: 14px; }
  .hero { margin: -14px -14px 22px; padding: 28px 24px; }
  .hero h1 { font-size: 25px; }
  .detail { flex-direction: column; }
  .d-pics { width: 100%; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-inline: 16px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-bottom { padding-inline: 16px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .card-body { padding: 9px 10px 10px; }
  .card .pr b { font-size: 15px; }
  .card .px { font-size: 10.5px; gap: 4px; }
  .rate-inner { gap: 7px; font-size: 11px; }
  .rate-date { margin-inline-start: 0; }
  .price-alt .pa { padding: 5px 9px; font-size: 13px; }
  .logo { font-size: 16px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-mark svg { width: 20px; height: 20px; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 22px; }
  .btn { padding: 9px 14px; font-size: 12.5px; }
  .hero-actions { gap: 8px; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-copy { flex: 1 1 auto; }
  .hero-stats { width: 100%; min-width: 0; }
  .stat { flex: 1 1 0; min-width: 0; padding: 11px 12px; }
  .stat strong { font-size: 18px; }
  .stat span { font-size: 10.5px; }
  .fx-banner-text { min-height: 160px; padding: 22px 20px; }
  .fx-banner-text strong { font-size: 21px; }
  .fx-layout { flex-direction: column; }
  .fx-side { width: 100%; }
  .fx-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .fx-side .lvl2 > a { padding-inline-start: 12px; }
  .d-tb th { width: 84px; }
  .d-tb th, .d-tb td { padding: 8px; font-size: 12px; }
  .lang-btn { padding: 5px 11px; font-size: 12px; }
  .lang-label span { display: none; }
  .ft-inner { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   设备自适应增强: 桌面 / 平板 / 手机
   原则: 断点按内容宽度而非具体机型; 全部用逻辑属性, 希伯来语 RTL 自动镜像
   ========================================================================== */

/* 容器左右留白随视口变化: 大屏不贴边, 小屏不挤压 */
:root { --pad: clamp(10px, 2.4vw, 20px); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { height: auto; }
.lang-inner, .rate-inner, .hd-top, .nav-wrap, .wrap, .ft-inner, .ft-bottom {
  padding-inline: max(var(--pad), env(safe-area-inset-left), env(safe-area-inset-right));
}
.wrap { padding-block: 0; }
.ft-bottom { padding-bottom: max(24px, calc(18px + env(safe-area-inset-bottom))); }

/* 分区标题: 竖条与文字之间的间距, 原来用的是物理 padding, RTL 下贴到一起 */
.sec-hd { padding-block: 2px 12px; padding-inline-start: 12px; padding-inline-end: 0; }

/* —— 大屏 (≥1400px): 内容区放宽, 一行多放一张卡 —— */
@media (min-width: 1400px) {
  .lang-inner, .rate-inner, .hd-top, .nav-wrap, .wrap, .ft-inner, .ft-bottom { max-width: 1320px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
  .hero { padding: 42px 46px 38px; }
}

/* —— 桌面 (≥1101px): 头部吸附, 长列表滚动时搜索与导航始终可用 —— */
@media (min-width: 1101px) {
  .hd { position: sticky; top: 44px; z-index: 50; background: #fff; }
  .hd.scrolled { box-shadow: 0 8px 22px rgba(14, 60, 68, .1); }
  /* 左侧分类树有 130+ 项, 整列直插到底会把页面撑到 8000px 以上:
     改为侧栏吸附 + 内部滚动, 商品区读完后不会再有几屏空白 */
  .side { position: sticky; top: 170px; align-self: flex-start; max-height: calc(100vh - 192px); overflow-y: auto; scrollbar-width: thin; }
  .side::-webkit-scrollbar { width: 6px; }
  .side::-webkit-scrollbar-thumb { background: rgba(15, 143, 151, .28); border-radius: 999px; }
}

/* —— 平板横屏 / 小笔记本 (821–1100px) —— */
@media (max-width: 1100px) and (min-width: 821px) {
  .side { width: 300px; }
  .side a { padding-block: 9px; }
  .hero { padding: 32px 30px 28px; }
  .hero h1 { font-size: 27px; }
  .hero p { max-width: 620px; }
  .stat { min-width: 108px; padding: 13px 15px; }
  .d-pics { width: 320px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); }
}

/* —— 平板横屏 / 小笔记本 (1101–1300px): 首屏压缩一点, 别让 hero 占掉半屏 —— */
@media (min-width: 1101px) and (max-width: 1300px) {
  .hero { padding: 28px 30px 26px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13px; }
  .hero-actions { margin-top: 16px; }
  .stat { min-width: 100px; padding: 11px 13px; }
}

/* —— 平板竖屏 / 手机横屏 (≤900px): 规格表从四栏改成"标签+值"堆叠, 不再把数字挤断行 —— */
@media (max-width: 900px) {
  .detail { flex-direction: column; gap: 20px; }
  .d-tb, .d-tb tbody { display: block; }
  .d-tb tr { display: grid; grid-template-columns: minmax(84px, 32%) 1fr; align-items: stretch; border-bottom: 1px solid #eff3f4; }
  .d-tb tr:last-child { border-bottom: 0; }
  .d-tb th, .d-tb td { width: auto; border: 0; padding: 8px 10px; }
  .d-tb th { background: transparent; color: #71858c; }
  .d-tb td[colspan] { grid-column: 2 / -1; }
  .d-pics { width: 100%; }
  .d-main { max-width: 520px; margin-inline: auto; }
  .d-thumbs { justify-content: center; }
}

/* —— 手机竖屏 (≤640px): 两列卡片、字号收敛、点击区域放大 —— */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  .card .nm { font-size: 12.3px; }
  .pager { gap: 4px; padding-top: 18px; }
  .pg { min-width: 40px; padding: 9px 10px; font-size: 13px; }
  .crumb { font-size: 12px; padding-bottom: 10px; margin-bottom: 14px; }
  .hero { padding: 22px 18px 20px; }
  .hero h1 { font-size: 21px; }
  .hero p { font-size: 12.8px; line-height: 1.75; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { min-width: 0; padding: 10px 8px; text-align: center; align-items: center; }
  .stat strong { font-size: 17px; }
  .stat span { font-size: 10.5px; line-height: 1.3; }
  .d-info h1 { font-size: 18px; margin-bottom: 12px; }
  .d-price { padding: 12px 14px; }
  .d-price > span { font-size: 23px; }
  .d-price i { font-size: 11.5px; }
  .d-thumbs img { width: 62px; height: 62px; }
  .lang-btn { padding: 6px 12px; min-height: 32px; }
  .ft-inner { gap: 18px; padding-block: 26px 20px; }
  .zone-link { padding: 7px 13px; font-size: 12.5px; }
  .fx-banner-text { min-height: 140px; }
}

/* —— 窄屏手机 (≤430px): 搜索按钮只留图标, 把宽度让给输入框 —— */
@media (max-width: 430px) {
  .search button span { display: none; }
  .search button { padding-inline: 16px; }
  .logo { font-size: 15.5px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-items a { padding-inline: 14px; }
}

/* —— 超窄屏 (≤380px) —— */
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }
  .card .pr b { font-size: 14px; }
  .card .px { font-size: 9.8px; }
  .stat strong { font-size: 16px; }
}

/* —— 触屏设备: 去掉 hover 位移, 放大可点区域 —— */
@media (hover: none), (pointer: coarse) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card:hover .pic img { transform: none; }
  .pg { min-height: 40px; }
  .side a { padding-block: 9px; }
  .lang-btn { min-height: 32px; }
  .d-thumbs img { width: 72px; height: 72px; }
}

/* —— 矮屏横屏 (手机横放): 压缩纵向留白, 避免一屏只看得到 hero —— */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-block: 16px; }
  .hero h1 { font-size: 20px; margin: 8px 0 6px; }
  .hero p { display: none; }
  .stat { padding: 8px 12px; }
}
