/* 由 scripts/build-css-bundle.mjs 生成，勿手改。源文件顺序见下方各段注释。 */

/* ===== /css/base/font-plus-jakarta.css ===== */
/* public/assets/test/css/base/font-plus-jakarta.css */
/* Global font: Plus Jakarta Sans (Variable)
   ⚠️ 与 /css/base.css 声明同一个 family，且 base.css 在本文件之后加载
   （index.html :198 先、:203 后）⇒ 字重重叠时 base.css 会赢。
   两份必须保持一致，改字体路径/format 时两个文件都要改。 */

/* woff2 在前、ttf 兜底：只下载第一条能用的，命中 woff2 省约 111KB（58.3KB vs 169.7KB） */
@font-face{
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans/PlusJakartaSans-VariableFont_wght.woff2") format("woff2"),
       url("/assets/fonts/plus-jakarta-sans/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
}

@font-face{
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans/PlusJakartaSans-Italic-VariableFont_wght.woff2") format("woff2"),
       url("/assets/fonts/plus-jakarta-sans/PlusJakartaSans-Italic-VariableFont_wght.ttf") format("truetype");
}

/* ✅ 全站强制：从根节点开始覆盖 */
:root{
  --fm-font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* ✅ 覆盖范围尽量全：html/body + 常见控件 + Dcat/Admin 组件 */
html, body,
button, input, select, textarea,
optgroup,
pre, code, kbd, samp,
.form-control, .btn, .dropdown-menu,
.nav, .navbar, .breadcrumb,
.table, .card, .modal, .popover, .tooltip,
.select2-container, .select2-dropdown,
.swal2-container, .sweet-alert,
.antialiased{
  font-family: var(--fm-font-sans) !important;
}

/* 可选：让数字更整齐（如果你喜欢） */
/* body{ font-variant-numeric: tabular-nums; } */

/* ===== /css/theme-tokens.css ===== */
/* public/assets/test/css/theme-tokens.css */
:root {
  --fm-brand-yellow: #f7cd52;
  --fm-brand-yellow-light: #ffe08a;
  --fm-brand-yellow-deep: #d9a927;
  --fm-brand-yellow-soft: #fff7df;
  --fm-brand-yellow-wash: #fffdf5;
  --fm-brand-yellow-ink: #6f5200;
  --fm-brand-yellow-rgb: 247, 205, 82;
  --fm-brand-yellow-light-rgb: 255, 224, 138;
  --fm-brand-yellow-deep-rgb: 217, 169, 39;
  --fm-brand-yellow-soft-rgb: 255, 247, 223;
  --fm-brand-yellow-wash-rgb: 255, 253, 245;

  --fm-brand-primary: var(--fm-brand-yellow);
  --fm-brand-primary-hover: var(--fm-brand-yellow-light);
  --fm-brand-primary-active: var(--fm-brand-yellow-deep);
  --fm-brand-primary-soft: var(--fm-brand-yellow-soft);
  --fm-brand-primary-wash: var(--fm-brand-yellow-wash);
  --fm-brand-primary-ink: var(--fm-brand-yellow-ink);

  --fm-brand-gradient: linear-gradient(
    135deg,
    var(--fm-brand-yellow-light) 0%,
    var(--fm-brand-yellow) 58%,
    var(--fm-brand-yellow-deep) 100%
  );
  --fm-brand-gradient-vertical: linear-gradient(
    180deg,
    var(--fm-brand-yellow-light) 0%,
    var(--fm-brand-yellow) 100%
  );
  --fm-brand-ring: rgba(var(--fm-brand-yellow-rgb), .22);
  --fm-brand-shadow: rgba(var(--fm-brand-yellow-rgb), .24);
  --fm-brand-line: rgba(var(--fm-brand-yellow-rgb), .36);

  --ck3-accent: var(--fm-brand-yellow);
  --ck3-accent-deep: var(--fm-brand-yellow-deep);
  --ck3-accent-soft: var(--fm-brand-yellow-soft);
  --mco-primary: var(--fm-brand-yellow);
  --mco-primary-2: var(--fm-brand-yellow-light);
  --mco-primary-3: var(--fm-brand-yellow-deep);
  --gsv2-yellow: var(--fm-brand-yellow);
  --fm-yellow: var(--fm-brand-yellow);
  --fm-orange: var(--fm-brand-yellow);
}

/* ===== /css/partials/fm-notify.css ===== */
/* public/assets/test/css/partials/fm-toast.css */
/* FK01 Global Notify (Top-right) — subtle, compact, non-intrusive
   - Works for: #fm_notify_root / #fm_toast_root / .fm-toast-root
   - Toast node: .fm-toast
   - Message: .fm-toast__msg / .fm-toast__text
   - Icon: .fm-toast__icon
   - No close button (hidden)
*/

/* =========================
   0) Root container
   ========================= */
#fm_notify_root,
#fm_toast_root,
.fm-toast-root{
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 1000002 !important; /* > login modal overlay */
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: auto !important;
  max-width: min(92vw, 360px) !important;
  pointer-events: none !important; /* container 不挡点击 */
}

/* =========================
   1) Toast card
   ========================= */
.fm-toast{
  pointer-events: auto !important; /* card 本体可 hover */
  position: relative !important;

  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;

  padding: 10px 12px !important;
  border-radius: 12px !important;

  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow:
    0 10px 26px rgba(15,23,42,.10),
    0 1px 0 rgba(255,255,255,.50) inset !important;
  backdrop-filter: blur(10px) !important;

  color: #0f172a !important;
  font-size: 13px !important;
  line-height: 1.38 !important;

  opacity: 0 !important;
  transform: translateY(-6px) !important;
  transition: opacity .16s ease, transform .16s ease !important;

  /* 左侧细色条（克制，不突兀） */
  border-left: 3px solid var(--fm-toast-tint, #2563eb) !important;
}

/* 入场/退场（兼容你现有 enter-active/leave-active） */
.fm-toast.is-in,
.fm-toast-enter-active{
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.fm-toast-leave-active{
  opacity: 0 !important;
  transform: translateY(-6px) !important;
}

/* hover：稍微更实一点，不要发光 */
.fm-toast:hover{
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(15,23,42,.14) !important;
}

/* =========================
   2) Icon (small, tasteful)
   ========================= */
.fm-toast__icon{
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  flex: 0 0 22px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin-top: 1px !important;

  /* 默认：info */
  background: rgba(37,99,235,.10) !important;
  color: #2563eb !important;
}

/* 如果你 icon 是 <span class="material-icons">... */
.fm-toast__icon .material-icons{
  font-size: 16px !important;
  line-height: 1 !important;
}

/* 如果你 icon 是 svg */
.fm-toast__icon svg{
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}

/* =========================
   3) Text layout
   ========================= */
.fm-toast__body,
.fm-toast__content{
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
}

/* 只保留一块文本，两行截断 */
.fm-toast__msg,
.fm-toast__text{
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  word-break: break-word !important;
}

/* meta 如果存在：更小更淡 */
.fm-toast__meta{
  margin-top: 2px !important;
  font-size: 12px !important;
  color: rgba(15,23,42,.60) !important;
}

/* =========================
   4) Disable bar/close (you said no close button)
   ========================= */
.fm-toast__bar{ display:none !important; }
.fm-toast__close{ display:none !important; }

/* =========================
   5) Type tints (FK01 subdued)
   Supports: .fm-toast.is-xxx  and .fm-toast--xxx
   ========================= */

/* INFO */
.fm-toast.is-info,
.fm-toast--info{
  --fm-toast-tint: #2563eb;
  border-color: rgba(37,99,235,.14) !important;
}
.fm-toast.is-info .fm-toast__icon,
.fm-toast--info .fm-toast__icon{
  background: rgba(37,99,235,.10) !important;
  color: #2563eb !important;
}

/* SUCCESS */
.fm-toast.is-success,
.fm-toast--success{
  --fm-toast-tint: #10b981;
  border-color: rgba(16,185,129,.14) !important;
}
.fm-toast.is-success .fm-toast__icon,
.fm-toast--success .fm-toast__icon{
  background: rgba(16,185,129,.10) !important;
  color: #10b981 !important;
}

/* WARN / WARNING */
.fm-toast.is-warn,
.fm-toast.is-warning,
.fm-toast--warn{
  --fm-toast-tint: var(--fm-brand-yellow);
  border-color: rgba(var(--fm-brand-yellow-rgb), .16) !important;
}
.fm-toast.is-warn .fm-toast__icon,
.fm-toast.is-warning .fm-toast__icon,
.fm-toast--warn .fm-toast__icon{
  background: rgba(var(--fm-brand-yellow-rgb), .12) !important;
  color: var(--fm-brand-yellow) !important;
}

/* ERROR */
.fm-toast.is-error,
.fm-toast--error{
  --fm-toast-tint: #ef4444;
  border-color: rgba(239,68,68,.16) !important;
}
.fm-toast.is-error .fm-toast__icon,
.fm-toast--error .fm-toast__icon{
  background: rgba(239,68,68,.10) !important;
  color: #ef4444 !important;
}

/* =========================
   6) Mobile
   ========================= */
@media (max-width: 480px){
  #fm_notify_root,
  #fm_toast_root,
  .fm-toast-root{
    top: 10px !important;
    right: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }
  .fm-toast{
    border-radius: 12px !important;
    padding: 10px 11px !important;
  }
}

/* =========================
   7) Hard override for the “giant pill center” bug
   If some old CSS makes toast full-width/centered, this forces it back.
   ========================= */
.fm-toast{
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* =========================
   8) Optional: hide auth-inline toast (if your modal has its own)
   (If you still want it, delete this block)
   ========================= */
#login_modal .auth-toast,
#login_modal [data-auth-toast]{
  display: none !important;
}

/* ===== /css/fonts-googleapis.css ===== */
/* fallback */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: block; /* 关键：不要先显示 fallback 文字 */
    /* 自托管子集：只保留站内实际用到的 54 个连字，128,616 → 3,588 字节。
       不再用 local()：用户本机可能装着旧版 Material Icons，命中后缺失的字形
       会退化成文字（「sh」「st」），比多下一次 3.5KB 更糟。
       子集由 scripts/build-icon-font.py 从后端原始字体生成。 */
    src: url('/css/fonts/material-icons.woff2') format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* 图标字体未就绪时，连字文本（chevron_right / expand_more 之类）会按 fallback 度量
   把宽度撑到 100px 以上。font-display:block 只把字形画成透明，**不改变占位宽度**，
   于是同一行里的文字被挤窄、折成多行，整块变高；字体一到又塌回去，
   表现就是「内容先被顶到下面、随后又跳回原位」。
   固定成 1em 宽并裁剪溢出，宽度就不再取决于字体是否加载完成。 */
.material-icons,
.material-icons-outlined,
.material-icons-round,
.material-icons-sharp,
.material-icons-two-tone {
    width: 1em;
    min-width: 1em;
    max-width: 1em;
    overflow: hidden;
    flex: 0 0 auto;
}

/* 字体未就绪时先留白（A 方案止血）。
   「留白」而不是「显示字母」：连字名（chevron_right / shopping_cart）在字体没到时
   会被当普通文字渲染，再被上面的 1em 宽度裁成「sh」「st」，看起来像 page bug。
   类由 index.html 里的内联脚本在首帧前挂到 <html> 上，字体加载成功后移除。
   :not(svg) 不能省 —— 星标、购物车的图标已经换成内联 SVG，它们也带着 .material-icons 类，
   颜色被清掉就连同图标一起消失了。 */
.fm-icons-pending .material-icons:not(svg),
.fm-icons-pending .fm-toast__icon:not(svg) {
    color: transparent !important;
}

/* ===== /css/swiper-bundle.min.css ===== */
/**
 * Swiper 11.2.10
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * https://swiperjs.com
 *
 * Copyright 2014-2025 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: June 28, 2025
 */

@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active{pointer-events:auto}.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}

/* ===== /css/base.css ===== */
/* =========================================
   Global Font: Plus Jakarta Sans
   放在全局 CSS 中，确保全站都会加载

   ⚠️ 这里和 /css/base/font-plus-jakarta.css 声明的是**同一个 family**。
   index.html 里 font-plus-jakarta.css(:198) 先加载、base.css(:203) 后加载，
   同 family + 同 style + 字重范围重叠时**后声明的赢**。
   ⇒ 两份必须写一致，否则谁生效取决于 link 顺序，改一份等于没改。
   ========================================= */

/* woff2 在前、ttf 兜底：浏览器只下载第一条能用的，命中 woff2 就省掉约 111KB
   （实测 woff2 58.3KB vs ttf 169.7KB）。只留 woff2 一行的话，文件没部署上去字体就彻底没了。
   format() 必须与真实格式一致：写错会让本该跳过的文件也被下载，老引擎甚至直接丢弃整条声明。
   字重 200 800 是字体真实轴范围（原来写 100 900 超出，超出的部分会被钳制，不影响渲染）。 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/plus-jakarta-sans/PlusJakartaSans-VariableFont_wght.woff2') format('woff2'),
         url('/assets/fonts/plus-jakarta-sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/plus-jakarta-sans/PlusJakartaSans-Italic-VariableFont_wght.woff2') format('woff2'),
         url('/assets/fonts/plus-jakarta-sans/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --fm-font: "Plus Jakarta Sans",
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
}

/* 基础兜底：html/body/表单控件先统一字体 */
html,
body,
input,
textarea,
select,
button {
    font-family: var(--fm-font);
}

strong,
b {
    font-weight: 600;
}

/* 强制全站字体（排除 Material Icons / toast icon） */
*:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon) {
    font-family: var(--fm-font) !important;
}

/* Material Icons 保持原字体，防止图标乱码 */
.fm-toast__icon {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* 登录弹窗：强制全站最高层 */
#login_modal.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999 !important;
}

/* 弹窗卡片本身也建立层级 */
#login_modal .auth-card {
    position: relative;
    z-index: 1;
}

/* 关闭按钮：提高层级 + 增大可点击热区 + 适配刘海屏安全区 */
#login_modal .auth-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 10;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    pointer-events: auto;
}

/* iOS / Safari：防止 input focus 自动放大（登录弹窗内） */
#login_modal input,
#login_modal select,
#login_modal textarea,
#login_modal .auth-input-wrap input,
#login_modal .auth-input-wrap select,
#login_modal .auth-input-wrap textarea {
    font-size: 16px !important;
    line-height: 1.2;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* iOS：彻底阻止 focus 自动放大（核心：表单控件字号 >=16） */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }

    /* 登录弹窗里再兜一层 */
    #login_modal input,
    #login_modal select,
    #login_modal textarea {
        font-size: 16px !important;
    }
}

@supports (-webkit-touch-callout: none) {
    /* focus-within 时禁止容器被缩放 */
    .auth-card:focus-within,
    .fm-modal-dialog:focus-within {
        transform: none !important;
    }
}

/* ===== /css/styles.css ===== */
/* =========================
   全局基础
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --header-height: 72px;
    --container-width: 1200px;

    --bg-body: #f3f4f6;
    --accent: #ff6b1a;

    --text-main: #111827;
    --text-muted: #6b7280;

    --card-bg: #ffffff;
    --border-soft: rgba(15, 23, 42, 0.06);

    /* 阴影整体调得很轻 */
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.1);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --IconFF1: "Material Icons";
    --IconFF: var(--IconFF1);

    /* ⚠️ 先保留：避免你别的样式/脚本引用它导致报错 */
    --banner-color: #303545;
}

/* 字体引入：曾在这里放两条 @import（/assets/test/fonts/css2.css、icon.css），
   但它们位于 `*{}` 规则之后，按 CSS 规范属于非法位置 ⇒ 浏览器整条丢弃、连请求都不发，
   线上从未生效过。真正的字体定义在 /css/fonts-googleapis.css（`<link>` 直接引入）。
   别再把 @import 加回来：这个文件的第一条语句是 `*{box-sizing}`，任何 @import 都必然是死的。 */

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    /* 关键：不要给 html/body 固定 100% 高度，让内容自然撑高，
       Android Chrome 才能在滚动时自动隐藏 URL 栏 */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* 动态视口，iOS Safari 地址栏隐藏时内容自适应 */
    background: var(--bg-body);
    overflow-x: hidden;
    overflow-y: auto;
}

/* 主体区域：默认按内容高度自然撑开，超出视口时让 body 整体滚动 */
#page_main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 头部、底部不参与拉伸，只按内容高度排布 */
#site_header {
    flex-shrink: 0;
}

#site_footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* 公共宽度容器 */
.container {
    width: min(100% - 48px, var(--container-width));
    margin-inline: auto;
}

/* 通用按钮 */
.btn {
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-dark {
    background: #111827;
    color: #ffffff;
}

.btn-dark:hover {
    background: #020617;
}

/* Footer 里面的 logo 用（通用组件） */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
}

.logo-mark {
    font-size: 20px;
}

.logo-text {
    font-size: 18px;
}

/* =========================
   Hero 区域（保留：避免其它页面复用 hero-section 被影响）
   ========================= */
.hero-section {
    position: relative;
    padding: 24px 0 40px;
}

/* =========================
   Material Icons 映射（供整个站点用）
   ========================= */
[icon]::before,
[icon-only]::before,
[icon-after]::after {
    font-family: var(--IconFF);
    font-style: normal;
    speak: none;
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    overflow: hidden;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

/* =========================
   分类区域
   ========================= */
.category-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

.category-section .section-header {
    margin-bottom: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    padding: 18px 10px;
    text-align: center;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    font-size: 13px;
    color: #111827;
}

/* =========================
   活动推荐
   ========================= */
.news-section {
    background: #f3f4f6;
    padding: 32px 0 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-info {
    padding: 12px 14px 14px;
}

.news-info h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.news-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================
   你原本的全局 nav 宽度覆盖（保留）
   ========================= */
#global_nav > .inner.container,
#main_nav  > .inner.container {
    width: min(1440px, calc(100% - 80px)); /* 左右各 40px */
    margin-inline: auto;
}

/* =========================
   Country modal overlay（保留）
   ========================= */
.cm-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-out;
}

.cm-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   响应式（保留你原本的布局收缩逻辑）
   ========================= */
@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 16px;
    }

    .exclusive-offers {
        margin-top: 12px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== /css/country-modal.css ===== */
/* =========================
   Country Selector Modal — DESIGN MATCH (CLEAN)
   ========================= */

body.cm-lock { overflow: hidden; }

#country_modal.cm-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999; /* ✅ 直接拉满，避免被 header/其它浮层压住 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#country_modal.cm-overlay.is-open,
#country_modal.cm-overlay.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* Dialog shell */
#country_modal .cm-dialog{
  width: 405px;
  max-width: calc(100vw - 32px);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

/* Hero */
#country_modal .cm-hero{
  position: relative;
  padding: 28px 20px 18px;
  background-size: cover;
  background-position: center;
}

#country_modal .cm-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.65) 100%);
  pointer-events:none;
}

#country_modal .cm-hero > *{ position: relative; }

#country_modal .cm-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.70);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
#country_modal .cm-close:hover{ color:#fff; }

#country_modal .cm-title{
  margin: 0;
  color: #FFF;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.84px;
  text-align: center;
}

#country_modal .cm-subtitle{
  margin-top: 10px;
  color: #FFF;
  text-align: center;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}
#country_modal .cm-subtitle > div{ margin-top: 2px; }

#country_modal .cm-contents{
  display: flex;
  width: 100%;
  padding: 38px 20px 44px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  background: #fff;
}

/* Field blocks */
#country_modal .cm-field{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#country_modal .cm-field-label{
  color: #000;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* =========================
   FM Custom Select
   ========================= */
#country_modal .fm-select{ position: relative; width: 100%; }

#country_modal .fm-select__btn{
  width: 100%;
  height: 65px;
  padding: 10px 20px;
  border: none;
  border-radius: 16px;
  background: #F1F1F1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  -webkit-tap-highlight-color: transparent;
}

#country_modal .fm-select__value{
  color: #000;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#country_modal .fm-select__chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,0,0,.55);
  border-bottom: 2px solid rgba(0,0,0,.55);
  transform: rotate(45deg);
  margin-left: 14px;
  flex: 0 0 auto;
}

#country_modal .fm-select.is-open .fm-select__chev{
  transform: rotate(-135deg);
}

/* Panel */
#country_modal .fm-select__panel{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(0,0,0,0.06);

  padding: 8px;
  display: none;
  z-index: 10;

  max-height: min(280px, calc(100vh - 220px));
  overflow: auto;
}

#country_modal .fm-select.is-open .fm-select__panel{ display: block; }

#country_modal .fm-option{
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;

  padding: 12px 12px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #000;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

#country_modal .fm-option:hover{ background: rgba(0,0,0,0.05); }

#country_modal .fm-option.is-selected{
  background: rgba(var(--fm-brand-yellow-rgb), 0.22);
}

#country_modal .fm-option.is-selected::after{
  content: "✓";
  font-weight: 600;
  color: rgba(0,0,0,0.7);
}

#country_modal .fm-select__hidden{ display: none; }

/* Confirm */
#country_modal .cm-confirm{
  width: 100%;
  display: flex;
  height: 54px;
  padding: 13px 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border: none;
  cursor: pointer;
  border-radius: 73px;

  background:
    linear-gradient(276deg, rgba(255,88,11,.22) 9.94%, rgba(var(--fm-brand-yellow-rgb), 0) 47.03%, rgba(255,88,11,.22) 92%),
    var(--fm-brand-yellow);

  color: #111827;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}
#country_modal .cm-confirm:active{ transform: translateY(1px); }

@media (max-width: 480px){
  #country_modal .cm-dialog{ width: 100%; max-width: calc(100vw - 24px); border-radius: 24px; }
  #country_modal .cm-contents{ padding: 28px 16px 40px; gap: 28px; }
  #country_modal .cm-title{ font-size: 24px; }
}

/* =========================================================
   LOGIN MODAL — FIX auth-close 偏移 / 点不到 X
   追加到 login-modal.css 最底部
   ========================================================= */

#login_modal { position: fixed; } /* 防止某些情况下 absolute 参照错位 */

/* ✅ 关闭按钮：位置、尺寸、居中、可点 */
#login_modal .auth-close{
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;

  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: none !important;
  border-radius: 999px !important;
  background: rgba(148,163,184,0.14) !important;

  cursor: pointer !important;
  z-index: 50 !important;

  /* 关键：让 “×” 不会因为 line-height 偏移 */
  font-size: 28px !important;
  line-height: 1 !important;
  transform: none !important;

  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
}

#login_modal .auth-close:hover{
  background: rgba(148,163,184,0.22) !important;
}

/* ✅ 防止 X 是伪元素/图标层，但点击被它吃掉 or 偏移 */
#login_modal .auth-close::before,
#login_modal .auth-close::after,
#login_modal .auth-close > *{
  pointer-events: none !important;
}

/* ✅ 如果你 X 用的是 material-icons */
#login_modal .auth-close .material-icons{
  font-size: 24px !important;
  line-height: 1 !important;
  display: block !important;
  transform: none !important;
}

/* ✅ 如果你 X 用的是 svg */
#login_modal .auth-close svg{
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* =========================================================
   Country Modal — fix cm-title 覆盖 close 按钮（点不到）
   追加到 country modal CSS 最底部
   ========================================================= */

/* 1) 关闭按钮永远在最上层、可点 */
#country_modal .cm-hero { position: relative !important; }
#country_modal .cm-close{
  z-index: 30 !important;
  pointer-events: auto !important;
}

/* 2) 标题/副标题让出右上角空间，避免盒子压到 close */
#country_modal .cm-title{
  padding: 0 64px !important;   /* 右侧给 close 留空间 */
}

/* 3) 标题层不需要响应点击，直接穿透（最稳） */
#country_modal .cm-title,
#country_modal .cm-subtitle{
  pointer-events: none !important;
}


/* =========================
   Country Modal — final fix
   ========================= */

/* 默认关闭：不可见、不可点 */
#country_modal.cm-overlay{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

/* 打开时：可见、可点 */
#country_modal.cm-overlay.is-open,
#country_modal.cm-overlay.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}

/* hero 做定位上下文 */
#country_modal .cm-hero{
  position: relative !important;
}

/* close 默认不要强行可点 */
#country_modal .cm-close{
  z-index: 20 !important;
  pointer-events: none !important;
}

/* 只有打开时，close 才可点 */
#country_modal.cm-overlay.is-open .cm-close,
#country_modal.cm-overlay.is-active .cm-close{
  pointer-events: auto !important;
}

/* 标题给右上角让位 */
#country_modal .cm-title{
  padding: 0 64px !important;
}

/* 标题说明文字不抢点击 */
#country_modal .cm-title,
#country_modal .cm-subtitle{
  pointer-events: none !important;
}

/* ===== /css/chat-widget.css ===== */
/* public/assets/test/css/chat-widget.css */

/* Floating entry */
#fm_chat_widget{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}

#fm_chat_widget .fm-chat-toggle,
#fm_chat_widget .fm_chat_toggle{
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fm-brand-yellow-rgb), .92);
  background:
    radial-gradient(circle at 28% 24%, rgba(var(--fm-brand-yellow-rgb), .96) 0, rgba(var(--fm-brand-yellow-rgb), .96) 14%, rgba(var(--fm-brand-yellow-rgb), 0) 38%),
    linear-gradient(135deg, var(--fm-brand-yellow-light) 0%, var(--fm-brand-yellow) 54%, var(--fm-brand-yellow-deep) 100%);
  color: #5a390a;
  box-shadow: 0 12px 28px rgba(var(--fm-brand-yellow-rgb), .26);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

#fm_chat_widget .fm-chat-toggle:hover,
#fm_chat_widget .fm_chat_toggle:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(var(--fm-brand-yellow-rgb), .32);
  filter: saturate(1.03);
}

#fm_chat_widget .fm-chat-toggle__icon{
  font-size: 26px;
  line-height: 1;
  color: inherit;
}

#fm_chat_widget .fm-chat-toggle__badge{
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(239,68,68,.28);
  border: 2px solid rgba(255,255,255,.94);
  pointer-events: none;
}

#fm_chat_widget .fm-chat-toggle__badge[hidden]{
  display: none !important;
}

/* Popup shell */
body.fm-chat-open{ overflow: hidden; }

#fm_chat_modal_v3.ac3pop{
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
}

#fm_chat_modal_v3.ac3pop.is-open{
  pointer-events: auto;
  opacity: 1;
}

#fm_chat_modal_v3 .ac3pop-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.28);
  backdrop-filter: blur(6px);
}

#fm_chat_modal_v3 .ac3pop-panel{
  position: absolute;
  right: 18px;
  bottom: 18px;

  /* ✅ 大小“旋钮” */
  width: min(44vw, 520px);     /* 原 min(35vw,520px) */
  min-width: 360px;            /* 原 360px */
  height: min(78vh, 860px);    /* ✅ 新增：高度 */
  max-height: calc(100vh - (var(--hv2-h, 80px) + 48px)); /* ✅ 防顶到header */

  border-radius: 26px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);

  overflow: hidden;
  transform: translateX(12px);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}


#fm_chat_modal_v3.ac3pop.is-open .ac3pop-panel{
  transform: translateX(0);
}

#fm_chat_modal_v3 .ac3pop-close{
  position: absolute;
  top: 13px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fm_chat_modal_v3 .ac3pop-close .material-icons{
  font-size: 18px;
  color: rgba(17,24,39,.78);
}

#fm_chat_modal_v3 .ac3pop-frame{
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}
/* =========================================================
   Mobile: FORCE show header + tabbar (only via chat-widget.css)
   + avoid chat widget covering tabbar
   ========================================================= */
@media (max-width: 768px){

  /* 1) ✅ 手机端必须同时显示 header + tabbar */
  #site_header{
    display: block !important;
  }
  #mobile_tabbar{
    display: flex !important;
  }

  /* 你项目里桌面头是 #site_header_v2：手机端避免双头 */
  #site_header_v2{
    display: none !important;
  }

  /* 2) ✅ main 内容给 header / tabbar 让位（只用 CSS 兜底） */
  /* header 高度如果你不是 56px，可以改成你的真实高度 */
  #page_main{
  }

  /* 3) ✅ chat 浮动入口按钮：抬高到 tabbar 上方，避免挡住 */
  #fm_chat_widget{
    bottom: calc(24px + 72px + env(safe-area-inset-bottom)) !important;
    right: 18px !important;
    z-index: 99999 !important; /* 确保在 tabbar 上方可点（但不遮挡 tabbar区域） */
  }

  /* 4) ✅ chat 弹窗面板：也抬高，避免压住 tabbar */
  #fm_chat_modal_v3 .ac3pop-panel{
    bottom: calc(18px + 72px + env(safe-area-inset-bottom)) !important;
    right: 12px !important;
    left: 12px !important;          /* 手机端更像中间弹窗 */
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: calc(100vh - 56px - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px) !important;
    max-height: none !important;
    border-radius: 22px !important;
  }

  /* iframe 填满面板 */
  #fm_chat_modal_v3 .ac3pop-frame{
    width: 100% !important;
    height: 100% !important;
  }

  /* 关闭按钮别跑到屏幕外 */
  #fm_chat_modal_v3 .ac3pop-close{
    top: auto !important;
    right: 18px !important;
    bottom: calc(18px + 72px + env(safe-area-inset-bottom) + 12px) !important;
    z-index: 100000 !important;
  }

  /* 5) ✅ 如果你启用了 mb-use-backheader：允许 back header + tabbar 并存 */
  body.mb-use-backheader #mobile_back_header{
    display: flex !important;
  }
  /* 这条不要强行隐藏 site_header（因为你说“要 header”，默认你要的是 site_header；
     如果你要 backheader 而不是 site_header，就打开下一行注释 */
  /* body.mb-use-backheader #site_header{ display: none !important; } */

  /* 6) ✅ 防止某些页面全局 overflow 影响 tabbar/弹窗 */
  html, body{
    overflow-x: hidden !important;
  }
}

/* ===== /css/a2hs-ios.css ===== */
.fm-only-mobile{display:none;}
@media (max-width: 860px){ .fm-only-mobile{display:block;} }

/* ===== FAB ===== */
.fm-a2hs-fab{
    position: fixed;
    right: 12px;
    bottom: calc(100px + env(safe-area-inset-bottom));
    z-index: 1200;
}
.fm-a2hs-fab__btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30,58,138,.18);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(15,23,42,.10);
    color: #0f172a;
    font-size: 13px;
    line-height: 1;
}
.fm-a2hs-fab__btn .material-icons{ font-size:18px; color:#2563eb; }

/* ===== Modal ===== */
.fm-a2hs-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;           /* ✅ 必须压过你站内 tabbar */
}
.fm-a2hs-modal.is-open{ display:block; }
.fm-a2hs-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
}

/* ✅ 打开弹窗时：禁滚动 + 禁止底部菜单/浮窗点击 */
html.fm-modal-open, html.fm-modal-open body{
    overflow: hidden;
    height: 100%;
    overscroll-behavior: contain;
    touch-action: none;
}

/* 这里把你站内“固定在底部/悬浮的东西”都禁用点按
   你如果有明确的 tabbar id/class，优先补上去 */
html.fm-modal-open #mobile_tabbar,
html.fm-modal-open .mb-tabbar,
html.fm-modal-open .fm-buybar,
html.fm-modal-open #fm_chat_widget_wrap{
    pointer-events: none !important;
}

/* 主卡片 */
.fm-a2hs-card{
    position: relative;
    width: calc(100vw - 28px);
    max-width: 520px;
    margin: 11vh auto 0;
    background:#fff;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.20);
    overflow: hidden;
}
.fm-a2hs-head{ padding: 16px 16px 10px; }
.fm-a2hs-title{
    font-weight: 600;
    font-size: 18px;
    color:#0f172a;
    text-align:center;
}

.fm-a2hs-steps{ padding: 8px 16px 6px; }
.fm-a2hs-step{
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    padding: 10px 0;
}
.fm-a2hs-step .n{ font-weight: 600; font-size: 34px; line-height: 1; color:#111827; }
.fm-a2hs-step .t{ font-weight: 600; font-size: 15px; color:#0f172a; margin-bottom: 10px; }

/* URL box */
.fm-a2hs-urlbox{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background:#f1f5f9;
}
.fm-a2hs-urlbox .url{
    font-size: 13px;
    color:#0f172a;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fm-a2hs-urlbox .copy{
    border:0;
    background: transparent;
    color:var(--fm-brand-yellow);
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
}

/* Safari toolbar mock */
.fm-a2hs-safari{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background:#f8fafc;
    border: 1px solid rgba(15,23,42,.08);
}
.fm-a2hs-safari .i{ color:#64748b; font-size: 22px; }
.fm-a2hs-safari .is-highlight{
    color:#2563eb;
    background: rgba(var(--fm-brand-yellow-rgb), .18);
    border: 2px solid rgba(var(--fm-brand-yellow-rgb), .75);
    border-radius: 12px;
    padding: 6px 8px;
}

/* Menu mock */
.fm-a2hs-menu{
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    overflow: hidden;
    background:#fff;
}
.fm-a2hs-menu .row{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 12px 12px;
    border-top: 1px solid rgba(15,23,42,.06);
}
.fm-a2hs-menu .row:first-child{ border-top:0; }
.fm-a2hs-menu .label{ font-size: 14px; color:#0f172a; }
.fm-a2hs-menu .ico{ color:#64748b; }
.fm-a2hs-menu .row.is-highlight{
    background: rgba(var(--fm-brand-yellow-rgb), .12);
    outline: 2px solid rgba(var(--fm-brand-yellow-rgb), .55);
    outline-offset: -2px;
}

.fm-a2hs-note{
    margin-top: 10px;
    font-size: 12px;
    color:#64748b;
    line-height: 1.5;
}

.fm-a2hs-foot{
    padding: 12px 16px 16px;
    display:flex;
}
.fm-a2hs-ok{
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 15px;
    background: var(--fm-brand-yellow);
    color:#0b1220;
    cursor: pointer;
}

/* ===== /css/header.css ===== */
/* assets/header.css
 * 头部相关样式全部放这里，其他页面只要引入这个文件就能复用 header
 */

a {
    text-decoration: none;
}

/* 顶部两层 Header 外壳 */
#site_header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* 顶部细导航条 */
#global_nav {
    position: relative;
    z-index: 1;
    background: #f9fafb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
    color: #6b7280;
}

#global_nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.global-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.global-left .link {
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}

.global-left .link:hover {
    color: #111827;
}

.global-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download_app {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #4b5563;
    font-size: 12px;
}

.download_app:hover {
    color: #111827;
}

.language_currency {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 12px;
    color: #4b5563;
}

.language_currency .flag {
    font-size: 15px;
}

.language_currency .divider {
    color: #d1d5db;
}

/* 主导航行 */
#main_nav {
    position: relative;
    z-index: 20;
    background: #ffffff;
    transition: box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

#main_nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.main-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
#nav_logo a {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 22px;
    color: #111827;
    text-decoration: none;
}

/* 一级分类导航 */
#nav_zone {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}

#nav_zone .type {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    color: #4b5563;
}

#nav_zone .bt {
    color: #4b5563;
    text-decoration: none;
    padding: 4px 0;
    position: relative;
}

#nav_zone .bt span {
    letter-spacing: 0.04em;
}

#nav_zone .bt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: width 180ms ease;
}

#nav_zone .type:hover .bt {
    color: #111827;
}

#nav_zone .type:hover .bt::after {
    width: 100%;
}

.drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #9ca3af;
    line-height: 1;
    transform: translateY(1px);
}

.has-drop:hover .drop-icon {
    color: #6b7280;
}

/* 右侧：搜索 + 购物车 + 用户 */
.menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 1 auto;   /* ✅ 允许缩小 */
    justify-content: flex-end;
}

/* 搜索条 */
.cpt-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 4px 0 16px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid transparent;
    flex: 0 1 clamp(240px, 28vw, 360px);  /* ✅ 最小240，中间随屏幕变，最大360 */
}

.cpt-search:hover {
    border-color: #e5e7eb;
}

.cpt-search input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
}

.cpt-search input[type="search"]::placeholder {
    color: #9ca3af;
}

.cpt-search .btw {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 0 12px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
}

.cpt-search .btw:hover {
    color: #111827;
}

/* 让“搜索”按钮只显示图标（可选） */
.cpt-search .btw span[icon-only] {
    font-size: 0;
}
.cpt-search .btw span[icon-only]::before {
    content: "search";
    font-family: "Material Icons";
    font-size: 18px;
    font-weight: normal;
}

/* 登录按钮（未登录时） */
.user .login-btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #111827;
}

.user .login-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* ============ 购物车 + 头像区域 ============ */
.menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 小圆形图标按钮（购物车） */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
}

.icon-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.icon-btn .material-icons {
    font-size: 20px;
}

/* 头像按钮本身不再加背景，只包住圆形头像 */
.avatar-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* 小圆头像（深色圆 + 首字母 / 头像图） */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 大号头像（下拉卡片里） */
.avatar-circle-lg {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

/* ============ 用户下拉菜单 ============ */

.user-logged {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.24),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    padding: 18px 20px 14px;
    display: none;
    color: #111827;
}

.user-dropdown.is-open {
    display: block;
}

/* 顶部：头像 + 基本信息 */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.user-basic {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-id {
    font-weight: 600;
    font-size: 15px;
}

.user-email {
    font-size: 12px;
    color: #6b7280;
}

/* 中间菜单：两列栅格 */
.user-dropdown-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
    padding: 4px 0 10px;
}

.user-menu-item {
    text-decoration: none;
    border: none;
    background: none;
    padding: 4px 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    text-align: left;
}

.user-menu-item:hover {
    color: #111827;
}

.user-menu-icon {
    font-family: "Material Icons";
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
}

/* 底部：退出 */
.user-dropdown-footer {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
}

.user-menu-logout {
    color: #f97316;
    font-weight: 600;
}

.user-menu-logout .user-menu-icon {
    color: #f97316;
}

/* 吸顶状态 */
#main_nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.has-fixed-mainnav main {
    padding-top: 72px;
}

/* 响应式：Header */
@media (max-width: 1024px) {
    #main_nav .inner {
        gap: 16px;
    }

    #nav_zone {
        display: none;
    }

    .menu {
        flex: 1;
    }

    .user-dropdown {
        right: 4px;
    }
}



/* =========================
   全局顶部 Toast 提示条（方案 B：卡片气泡）
   如果使用本方案，请把上面方案 A 整段删掉，只保留这一段
   ========================= */
.fm-toast-root {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 2000;
}

.fm-toast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 18px;        /* 圆角卡片，依然比较圆润 */
    font-size: 13px;
    line-height: 1.5;
    pointer-events: auto;

    max-width: min(460px, calc(100vw - 40px));
    text-align: center;
    word-break: break-all;

    background: rgba(255, 255, 255, 0.96);             /* 近白色底，亮色系 */
    border: 1px solid rgba(209, 213, 219, 0.9);        /* 淡灰边 */
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

/* 进入 / 离场动画 */
.fm-toast-enter {
    opacity: 0;
    transform: translateY(-8px);
}
.fm-toast-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s ease;
}
.fm-toast-leave {
    opacity: 1;
    transform: translateY(0);
}
.fm-toast-leave-active {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.fm-toast__icon {
    font-family: "Material Icons";
    font-size: 18px;
    line-height: 1;
}

/* 蓝色 info：用左边色条 + 文字色来表现，色块非常浅 */
.fm-toast--info {
    border-color: rgba(59, 130, 246, 0.30);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    background-image: linear-gradient(
        to right,
        rgba(59, 130, 246, 0.04),
        rgba(59, 130, 246, 0.00)
    );
}

/* 红色 error：一样思路，浅红渐变 */
.fm-toast--error {
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(248, 113, 113, 0.08);
    color: #b91c1c;
    background-image: linear-gradient(
        to right,
        rgba(248, 113, 113, 0.05),
        rgba(248, 113, 113, 0.00)
    );
}

/* 购物车按钮：作为数量角标的定位容器 */
.cart-btn {
  position: relative;
}

/* 右上角数量角标 */
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -6px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;

  font-size: 11px;
  font-weight: 600;
  line-height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.55);
}

/* 数量为 0 时隐藏 */
.cart-count-badge.is-empty {
  display: none;
}





/* =========================
   Header 搜索框「正经版」最终覆盖（放 header.css 最底部）
   目标：menu 占满剩余空间，但搜索框有上限，不会撑爆
   ========================= */

/* 1) 右侧 menu 要吃满剩余空间（不然会出现你截图那种大空白） */
#site_header #main_nav .menu{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  justify-content: flex-end;
}

/* 2) 搜索容器：可伸缩 + 有最大宽度（关键） */
#site_header #main_nav .menu > .search{
  flex: 1 1 auto !important;
  min-width: 220px !important;
  max-width: 420px !important;      /* ✅ 想更窄：改 360 / 380 */
}

/* 3) 搜索条本体：别用你之前的 clamp 固死，直接跟随 .search 宽度 */
#site_header #main_nav .menu > .search .cpt-search{
  width: 100% !important;
  flex: 1 1 auto !important;        /* 覆盖你原来的 flex: 0 1 clamp(...) */
}

#site_header #main_nav .menu > .search .cpt-search input[type="search"]{
  min-width: 0 !important;
}

/* 4) 右侧按钮永远不被挤变形 */
#site_header #main_nav .menu-actions,
#site_header #main_nav .user{
  flex: 0 0 auto !important;
}

/* 5) 1024 断点：保留原布局（只是让搜索更稳一点） */
@media (max-width: 1024px){
  #site_header #main_nav .menu > .search{
    max-width: 360px !important;
    min-width: 200px !important;
  }
}

/* 手机端国家/语言入口（放 main_nav 的 menu-actions） */
.lc-mini{
  display: none;                 /* 默认隐藏：桌面用 global_nav 的 language_currency */
  width: auto;
  padding: 0 10px;
  gap: 6px;
  border-radius: 999px;
}
.lc-mini-flag{ font-size: 15px; line-height: 1; }
.lc-mini-currency{ font-size: 12px; font-weight: 600; color: #374151; }






/* =========================
   Header — Mobile Clean (ONE version only)
   - Left: Logo
   - Right: Search btn + Avatar + Lang/Currency pill
   - Hide user-dropdown on mobile always
   - No Material Icons
   ========================= */

:root{
  --fm-text:#111827;
  --fm-muted:#6b7280;
  --fm-border:#e5e7eb;
  --fm-soft:#f3f4f6;
  --fm-accent:#2563eb;
  --fm-shadow: 0 10px 22px rgba(15,23,42,0.06);
}

/* SVG icon base */
#site_header .fm-ico{
  width: 20px;
  height: 20px;
  display: block;
  color: currentColor;
}

/* 桌面搜索按钮里如果放 svg，让它居中 */
#site_header .cpt-search .btw{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* drop-icon 如果你用 svg */
#site_header .drop-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#9ca3af;
}

/* ====== Mobile layout (ONLY this one) ====== */
@media (max-width: 768px){

  /* 顶部细条：手机隐藏 */
  #global_nav{ display:none !important; }

  /* ✅ 手机端：永远隐藏用户下拉（包含 is-open） */
  #site_header .user-dropdown,
  #site_header .user-dropdown.is-open{
    display:none !important;
  }

  /* ✅ 你不需要 hamburger：即使 DOM 里还有，也强制隐藏 */
  #site_header .m-hamburger{
    display:none !important;
  }

  /* 主导航白色条 */
  #site_header #main_nav{
    background:#fff;
    border-bottom: 1px solid rgba(229,231,235,0.9);
    box-shadow: var(--fm-shadow);
  }

  /* 关键：恢复“一行布局”，不换行、不 absolute 居中 */
  #site_header #main_nav .inner{
    position: relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;

    height:56px !important;
    padding: 0 14px !important;
    gap: 12px !important;
  }

  /* 左侧只留 Logo，靠左 */
  #site_header #main_nav .main-left{
    width:auto !important;
    flex: 0 0 auto !important;
    margin-left:0 !important;
    gap:0 !important;
  }

  #site_header #main_nav #nav_logo{
    position: static !important;
    transform:none !important;
  }

  #site_header #main_nav #nav_logo a{
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .10em;
    color: var(--fm-text);
    white-space: nowrap;
  }

  /* 手机不显示分类 */
  #site_header #main_nav #nav_zone{
    display:none !important;
  }

  /* 右侧 menu：只放 actions，不要被你桌面的 flex:1 影响 */
  #site_header #main_nav .menu{
    width:auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    justify-content:flex-end !important;
    gap: 10px !important;
  }

  /* 手机隐藏桌面搜索条 */
  #site_header #main_nav .menu > .search{
    display:none !important;
  }

  /* actions：全部垂直居中同高对齐 */
  #site_header #main_nav .menu-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    margin-left:0 !important;
  }

  /* （可选）如果你手机不想显示购物车：打开这一行 */
  /* #site_header #main_nav .cart-btn{ display:none !important; } */

  /* 搜索按钮：灰底圆角方块 */
  #site_header .icon-btn.m-search-btn{
    width:40px !important;
    height:40px !important;
    border:none !important;
    background: var(--fm-soft) !important;
    color: var(--fm-text) !important;
    border-radius: 14px !important;
    box-shadow:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
  }

  /* 头像：圆形 */
  #site_header #main_nav .avatar-circle{
    width:40px !important;
    height:40px !important;
    border-radius:999px !important;
    background: var(--fm-text) !important;
    color:#fff !important;
  }

  /* 语言胶囊：ZH / CNY */
  #site_header .lc-mini{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:40px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(229,231,235,0.95) !important;
    background:#fff !important;
    color: var(--fm-text) !important;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06) !important;
    white-space:nowrap !important;
  }
  #site_header .lc-mini .lc-mini-text{
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:.02em !important;
  }

  /* ===== Mobile Search Panel (可选：点🔍展开) ===== */
  #site_header #main_nav .m-search-panel{
    position:absolute;
    left:14px;
    right:14px;
    top:56px;
    display:none;
    padding: 10px 0 12px;
    z-index:50;
  }
  #site_header #main_nav .m-search-panel.is-open{ display:block; }

  #site_header #main_nav .m-search-panel .m-search-bar{
    width:100%;
    height:40px;
    padding:0 10px 0 14px;
    border-radius: 14px;
    background:#fff;
    border:1px solid rgba(229,231,235,0.95);
    box-shadow: 0 16px 30px rgba(15,23,42,0.10);
    display:flex;
    align-items:center;
    gap:8px;
  }
  #site_header #main_nav .m-search-panel input[type="search"]{
    flex:1;
    min-width:0;
    border:none;
    outline:none;
    background:transparent;
    font-size:13px;
    color:var(--fm-text);
  }
  #site_header #main_nav .m-search-panel input[type="search"]::placeholder{
    color:#9ca3af;
  }
  #site_header #main_nav .m-search-panel .btw{
    border:none;
    background:transparent;
    padding:0;
    color:var(--fm-accent);
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}
/* =========================
   HEADER PATCH (fix double search + align mobile edges)
   把这段放到 header.css 最底部
   ========================= */

/* ---- 1) 默认：移动端专用控件先隐藏（避免桌面出现第二套搜索） ---- */
#site_header .m-search-btn,
#site_header #m_search_panel,
#site_header .lc-mini{
  display: none;
}

/* ---- 2) 桌面端：彻底隐藏移动搜索面板（避免成为 flex 第三列）---- */
@media (min-width: 769px){
  #site_header #m_search_panel{ display:none !important; }
  #site_header .m-search-btn{ display:none !important; }
  #site_header .lc-mini{ display:none !important; }
}

/* ---- 3) 手机端：一行布局，Logo 左贴，右侧 actions 贴右 ---- */
@media (max-width: 768px){

  /* 关键：你的 inner 带 container，会有 max-width/margin/padding，手机强制拉满并收紧左右 */
  #site_header #main_nav .inner.container{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 10px !important;   /* 想更贴边：改 8；想更安全：改 12 */
    padding-right: 10px !important;
  }

  /* 一行：不换行，左右两端对齐 */
  #site_header #main_nav .inner{
    flex-wrap: nowrap !important;
    height: 56px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* 左侧只保留 logo：不要 100% 宽，不要负 margin */
  #site_header #main_nav .main-left{
    width: auto !important;
    margin-left: 0 !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
  }

  /* 防止你旧代码把 logo absolute 居中 */
  #site_header #main_nav #nav_logo{
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  /* 右侧 menu 不要变 100% */
  #site_header #main_nav .menu{
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  /* 手机隐藏 PC 搜索条 */
  #site_header #main_nav .menu > .search{
    display: none !important;
  }

  /* actions 贴右，去掉 margin-left 推开 */
  #site_header #main_nav .menu-actions{
    margin-left: 0 !important;
    padding-right: 0 !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  /* 手机显示：搜索按钮 + 语言胶囊 */
  #site_header .m-search-btn{ display:inline-flex !important; }
  #site_header .lc-mini{ display:inline-flex !important; }

  /* 搜索按钮：圆角方块（不要圆形） */
  #site_header .icon-btn.m-search-btn{
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    background: #f3f4f6 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: #111827 !important;
  }
  #site_header .icon-btn.m-search-btn svg{
    width: 20px;
    height: 20px;
  }

  /* 语言胶囊：更像你截图那种 pill */
  #site_header .lc-mini{
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(229,231,235,0.95) !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06) !important;
  }

  /* m_search_panel：必须绝对定位 + 默认不显示，否则就变“第二个搜索框” */
  #site_header #m_search_panel{
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 56px !important;
    display: none !important;
    z-index: 80 !important;
  }
  #site_header #m_search_panel.is-open{
    display: block !important;
  }
}



/* =========================
   LOGO IMAGE — HARD FORCE (put at VERY bottom)
   ========================= */

/* 先把 nav_logo 的可用高度撑满（不然你加高 img 也会被压缩观感） */
#site_header #main_nav #nav_logo a{
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ✅ 强制所有 nav_logo 里的 img 按高度显示（干掉 26/32 之类限制） */
#site_header #main_nav #nav_logo img,
#site_header #main_nav #nav_logo img.fm-logo-img{
  height: 52px !important;        /* 桌面：52（你想更大：56） */
  width: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block !important;

  /* 防止太长挤到右侧按钮 */
  max-width: 320px !important;
  object-fit: contain !important;
}

/* 手机：你现在截图是手机视图，直接给你更饱满 */
@media (max-width: 768px){
  #site_header #main_nav #nav_logo img,
  #site_header #main_nav #nav_logo img.fm-logo-img{
    height: 44px !important;      /* 手机：44（建议 42~46） */
    max-width: 220px !important;
  }
}

/* ====== 可选：如果 PNG 上下留白太大，打开这段“裁空白 + 放大一点” ====== */
/*
#site_header #main_nav #nav_logo img,
#site_header #main_nav #nav_logo img.fm-logo-img{
  clip-path: inset(18% 0 22% 0);   // 裁上下留白（按需要改 12~26%）
  transform: scale(1.10);          // 再放大一点
  transform-origin: left center;
}
*/
/* 桌面 */
#site_header #main_nav #nav_logo img.fm-logo-img{
  height: 56px !important;   /* 原来 52，改大一点就会更“长” */
  max-width: 420px !important; /* 原来 320，放宽上限 */
}

/* 手机 */
@media (max-width: 768px){
  #site_header #main_nav #nav_logo img.fm-logo-img{
    height: 48px !important;   /* 原来 44 */
    max-width: 260px !important; /* 原来 220 */
  }
}

/* ===== /css/partials/header-v2.css?v=20261012-1 ===== */
/* public/assets/test/css/partials/header-v2.css */
/* CLEAN: Desktop V2 + Mobile header/backheader/tabbar (deduped) */

/* =========================
   Vars
   ========================= */
:root{
    /* Desktop header v2 */
    --hv2-h: 80px;
    --hv2-pad-x: 40px;
    --hv2-blur: 28px;

    --hv2-bg-0: rgba(255,255,255,.92);
    --hv2-bg-1: rgba(255,255,255,.82);
    --hv2-bg-2: rgba(255,255,255,.62);
    --hv2-bg-3: rgba(255,255,255,.00);

    --hv2-fade-h: 18px;

    --hv2-border: rgba(255,255,255,.42);
    --hv2-shadow: 0 12px 36px rgba(0,0,0,.10);

    --hv2-text: rgba(17,24,39,.86);
    --hv2-muted: rgba(17,24,39,.62);

    --hv2-search-w: 360px;

    --hv2-dd-w: 327px;
    --hv2-dd-pad: 10px;
    --hv2-dd-radius: 20px;

    --hv2-item-h: 52px;
    --hv2-item-gap: 10px;
    --hv2-item-radius: 16px;

    --hv2-icon: 32px;
    --hv2-icon-radius: 10px;

    --hv2-item-font: 14px;
    --hv2-pill-radius: 6px;

    /* Mobile nav system */
    --fm-mb-backbar-h: 52px;
    --fm-mb-tabbar-h: 62px;
}

@media (max-width: 1280px){
    :root{ --hv2-search-w: 300px; --hv2-pad-x: 28px; }
}
@media (max-width: 1100px){
    :root{ --hv2-search-w: 260px; --hv2-pad-x: 22px; }
}

/* =========================
   Page offset (desktop fixed header)
   ========================= */
@media (min-width: 769px){
    #page_main{ padding-top: var(--hv2-h); }
}

/* =========================
   Desktop Header V2 (#site_header_v2)
   ========================= */
.fm-header-v2{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hv2-h);
    z-index: 99999;
    pointer-events: auto;
}
.fm-header-v2, .fm-header-v2 *{ box-sizing: border-box; }

.fm-header-v2::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
        180deg,
        var(--hv2-bg-0) 0%,
        var(--hv2-bg-1) 44%,
        var(--hv2-bg-2) 86%,
        var(--hv2-bg-3) 100%
    );
    border-bottom: 1px solid var(--hv2-border);
    box-shadow: var(--hv2-shadow);

    backdrop-filter: blur(var(--hv2-blur)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--hv2-blur)) saturate(1.15);
    pointer-events:none;
}

.fm-header-v2::after{
    content:"";
    position:absolute;
    left:0; right:0;
    top: 100%;
    height: var(--hv2-fade-h);
    background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 100%);
    pointer-events:none;
}

.fm-header-v2 .hv2-bar{
    position: relative;
    z-index: 1;

    height: var(--hv2-h);
    width: 100%;
    padding: 0 var(--hv2-pad-x);

    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(420px, 1fr);
    align-items: center;
    column-gap: 18px;
}

/* Left (logo) */
.fm-header-v2 .hv2-left{ justify-self: start; display:flex; align-items:center; }
.fm-header-v2 .hv2-logo{ display:flex; align-items:center; text-decoration:none; }
.fm-header-v2 .hv2-logo img{ height: 50px; width:auto; display:block; }

/* Center nav */
.fm-header-v2 .hv2-nav{
    justify-self: center;
    display:flex;
    align-items:center;
    gap: 28px;
    white-space: nowrap;
}
.fm-header-v2 .hv2-nav-item{
    display:inline-flex;
    align-items:center;
    gap: 6px;

    text-decoration:none;
    color: var(--hv2-text);

    font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;

    padding: 10px 6px;
    border-radius: 10px;
}
.fm-header-v2 .hv2-nav-item:hover{
    background: rgba(255,255,255,.20);
    color: rgba(17,24,39,1);
}
.fm-header-v2 .hv2-ico{ display:block; color: var(--hv2-muted); }

/* Right */
.fm-header-v2 .hv2-right{
    justify-self: end;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap: 12px;
    min-width: 420px;
}

/* LC */
.fm-header-v2 .hv2-lc{
    display:inline-flex;
    align-items:center;
    gap: 8px;

    border: 0;
    background: transparent;
    cursor: pointer;

    padding: 10px 10px;
    border-radius: 12px;

    color: var(--hv2-text);
    font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
}
.fm-header-v2 .hv2-lc:hover{ background: rgba(255,255,255,.20); }

/* Search (pc) */
.fm-header-v2 .hv2-search{ position: relative; display:flex; align-items:center; }
.fm-header-v2 .hv2-search-iconbtn{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    padding: 0;
}
.fm-header-v2 .hv2-search-iconbtn:hover{ background: rgba(255,255,255,.90); }

.fm-header-v2 .hv2-search-bar{
    display:none;
    align-items:center;
    gap: 10px;

    height: 40px;
    width: var(--hv2-search-w);

    padding: 0 12px;
    border-radius: 20px;

    background: rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255,255,255,.22);

    backdrop-filter: blur(27.6px);
    -webkit-backdrop-filter: blur(27.6px);
}
.fm-header-v2 .hv2-search-input{
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;

    color: #FFF;
    font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
}
.fm-header-v2 .hv2-search-input::placeholder{ color: rgba(255,255,255,.78); }

.fm-header-v2 .hv2-search.is-open .hv2-search-iconbtn{ display:none; }
.fm-header-v2 .hv2-search.is-open .hv2-search-bar{ display:flex; }

/* Disable browser search X */
.fm-header-v2 .hv2-search-input::-webkit-search-cancel-button{ -webkit-appearance:none; appearance:none; display:none; }
.fm-header-v2 .hv2-search-input::-webkit-search-decoration{ -webkit-appearance:none; }
.fm-header-v2 .hv2-search-input::-ms-clear{ display:none; width:0; height:0; }
.fm-header-v2 .hv2-search-input::-ms-reveal{ display:none; width:0; height:0; }

/* =========================
   PC: hv2 user avatar + dropdown
   ========================= */
@media (min-width: 769px){
    .fm-header-v2 .hv2-user{ position: relative; display:inline-flex; align-items:center; }
    .fm-header-v2 .hv2-user-btn{ border:0; background:transparent; padding:0; cursor:pointer; border-radius:999px; }

    .fm-header-v2 .hv2-avatar{
        width:36px; height:36px; border-radius:999px;
        display:flex; align-items:center; justify-content:center;
        background:#9ca3af; color:#0b1220; font-weight:600; font-size:16px;
        overflow:hidden;
        box-shadow: 0 0 0 5px rgba(255,255,255,.92), 0 14px 30px rgba(15,23,42,.16);
        transition: transform 120ms ease, box-shadow 140ms ease;
    }
    .fm-header-v2 .hv2-user-btn:hover .hv2-avatar{
        transform: translateY(-1px);
        box-shadow: 0 0 0 5px rgba(255,255,255,.95), 0 18px 42px rgba(15,23,42,.18);
    }
    .fm-header-v2 .hv2-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

    .fm-header-v2 .hv2-user-pop{
        position:absolute;
        top: calc(100% + 12px);
        right:0;
        width:240px;
        padding:10px;
        border-radius:18px;
        background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 100%);
        border:1px solid rgba(255,255,255,.55);
        box-shadow: 0 18px 46px rgba(0,0,0,.18);
        backdrop-filter: blur(22px) saturate(1.1);
        -webkit-backdrop-filter: blur(22px) saturate(1.1);
        display:none;
        z-index:999999;
    }
    .fm-header-v2 .hv2-user.is-open .hv2-user-pop{ display:block; }

    .fm-header-v2 .hv2-user-meta{
        display:flex;
        align-items:center;
        gap:10px;
        padding:8px 8px 12px;
        margin-bottom:2px;
        border-bottom:1px solid rgba(17,24,39,.08);
    }
    .fm-header-v2 .hv2-user-meta-avatar{
        width:38px;
        height:38px;
        flex:0 0 38px;
        border-radius:999px;
        display:flex;
        align-items:center;
        justify-content:center;
        overflow:hidden;
        background:#9ca3af;
        color:#0b1220;
        font-size:16px;
        font-weight:600;
    }
    .fm-header-v2 .hv2-user-meta-avatar img{
        width:100%;
        height:100%;
        display:block;
        object-fit:cover;
    }
    .fm-header-v2 .hv2-user-meta-copy{
        min-width:0;
        display:flex;
        flex-direction:column;
        gap:2px;
        font-family:"Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    }
    .fm-header-v2 .hv2-user-meta-copy strong,
    .fm-header-v2 .hv2-user-meta-copy span{
        display:block;
        overflow:hidden;
        white-space:nowrap;
        text-overflow:ellipsis;
    }
    .fm-header-v2 .hv2-user-meta-copy strong{
        max-width:168px;
        color:rgba(17,24,39,.95);
        font-size:14px;
        font-weight:600;
        line-height:1.25;
    }
    .fm-header-v2 .hv2-user-meta-copy span{
        max-width:168px;
        color:rgba(17,24,39,.58);
        font-size:12px;
        font-weight:600;
        line-height:1.3;
    }

    .fm-header-v2 .hv2-user-item{
        width:100%; height:46px;
        display:flex; align-items:center;
        padding:0 12px;
        border-radius:14px;
        font-family:"Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        font-size:14px; font-weight:600;
        color: rgba(17,24,39,.92);
        text-decoration:none;
        border:1px solid rgba(17,24,39,.06);
        background: rgba(255,255,255,.72);
        cursor:pointer;
        transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
    }
    .fm-header-v2 .hv2-user-item + .hv2-user-item{ margin-top:8px; }
    .fm-header-v2 .hv2-user-item:hover{
        background: rgba(255,255,255,.90);
        border-color: rgba(37,99,235,.18);
        box-shadow: 0 10px 22px rgba(37,99,235,.12);
        transform: translateY(-1px);
    }
    .fm-header-v2 .hv2-user-item--danger{
        color:#b91c1c;
        background: rgba(254,242,242,.88);
        border-color: rgba(248,113,113,.28);
    }
}

/* =========================
   PC Home Transparent Header (Desktop V2)
   ========================= */
@media (min-width: 769px){
    .fm-header-v2.hv2-home,
    body.is-home .fm-header-v2{
        --hv2-bg-0: rgba(255,255,255,.05);
        --hv2-bg-1: rgba(255,255,255,.03);
        --hv2-bg-2: rgba(255,255,255,.012);
        --hv2-bg-3: rgba(255,255,255,.00);
        --hv2-border: rgba(255,255,255,.10);
        --hv2-shadow: 0 8px 22px rgba(0,0,0,.06);
        --hv2-blur: 14px;
    }
    .fm-header-v2.hv2-home::after,
    body.is-home .fm-header-v2::after{
        background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 100%);
    }
}

/* =========================
   Visibility policy
   ========================= */
#site_header_v2{ display:none; }
#site_header{ display:none; }
#mobile_back_header{ display:none; }
#mobile_tabbar{ display:none; }

@media (min-width: 769px){
    #site_header_v2{ display:block; }
    #site_header, #mobile_back_header, #mobile_tabbar{ display:none !important; }
}
@media (max-width: 768px){
    #site_header_v2{ display:none !important; }
    #site_header{ display:block; }
    body.mb-use-backheader #mobile_back_header{ display:flex; }
    body.mb-use-backheader #site_header{ display:none !important; }
    body.mb-has-tabbar #mobile_tabbar{ display:flex; }
}

/* ===================================================================
   Mobile: TabBar / BackHeader
   =================================================================== */
@media (max-width: 768px){
    body.mb-has-tabbar{
        padding-bottom: calc(var(--fm-mb-tabbar-h) + env(safe-area-inset-bottom));
    }
    #mobile_tabbar{
        position: fixed;
        left:0; right:0; bottom:0;
        height: calc(var(--fm-mb-tabbar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background:#fff;
        border-top:1px solid rgba(15,23,42,.10);
        box-shadow: 0 -8px 24px rgba(15,23,42,.10);
        z-index: 999;
        align-items:center;
        justify-content:space-around;
    }

    body.mb-use-backheader{
        padding-top: calc(var(--fm-mb-backbar-h) + env(safe-area-inset-top));
    }
    #mobile_back_header{
        position: fixed;
        left:0; right:0; top:0;
        height: calc(var(--fm-mb-backbar-h) + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        background:#fff;
        border-bottom:1px solid rgba(15,23,42,.10);
        z-index: 1000;
        align-items:center;
        justify-content:center;
    }

    #mobile_back_header .mbh-left,
    #mobile_back_header .mbh-right{
        position:absolute;
        top: env(safe-area-inset-top);
        height: var(--fm-mb-backbar-h);
        display:flex;
        align-items:center;
    }
    #mobile_back_header .mbh-left{ left:6px; }
    #mobile_back_header .mbh-right{ right:6px; min-width:44px; gap:8px; justify-content:flex-end; }

    #mobile_back_header .mbh-back{
        width:44px; height:44px;
        display:flex; align-items:center; justify-content:center;
        border-radius:12px;
        color:#0f172a;
        text-decoration:none;
        -webkit-tap-highlight-color: transparent;
    }
    #mobile_back_header .mbh-back:active{ background: rgba(15,23,42,.06); }

    #mobile_back_header .mbh-title{
        max-width:72%;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        display:flex; align-items:center; justify-content:center;
    }
    #mobile_back_header .mbh-logo{ height:33px; width:auto; display:block; object-fit:contain; }

    /* back header lc-mini icon-only */
    #mobile_back_header .lc-mini{
        width:44px; height:44px; padding:0;
        border:0;
        background:transparent;
        box-shadow:none;
        border-radius:12px;
        display:inline-flex; align-items:center; justify-content:center;
        cursor:pointer;
        -webkit-tap-highlight-color: transparent;
    }
    #mobile_back_header .lc-mini:active{ background: rgba(15,23,42,.06); }
    #mobile_back_header .lc-mini svg{ width:24px; height:24px; display:block; }
}

/* ===================================================================
   Mobile: V1 header scope (#site_header)
   =================================================================== */
#site_header a{ text-decoration:none; }
#site_header .fm-ico{ width:20px; height:20px; display:block; color: currentColor; }

@media (max-width: 768px){
    #site_header #global_nav{ display:none !important; }

    /* default (non-home): white bar */
    #site_header #main_nav{
        background:#fff;
        border-bottom:1px solid rgba(229,231,235,0.90);
        box-shadow: 0 10px 22px rgba(15,23,42,0.06);
    }

    #site_header #main_nav .inner.container{
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding-left:10px !important;
        padding-right:10px !important;
    }

    #site_header #main_nav .inner{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        flex-wrap:nowrap !important;
        height:56px !important;
        padding:0 !important;
        gap:12px !important;
        position:relative !important;
    }

    #site_header #main_nav .main-left{ width:auto !important; flex:0 0 auto !important; margin-left:0 !important; }
    #site_header #main_nav #nav_logo{ position:static !important; transform:none !important; }
    #site_header #main_nav #nav_zone{ display:none !important; }

    #site_header #main_nav .menu{
        width:auto !important;
        flex:0 0 auto !important;
        min-width:0 !important;
        justify-content:flex-end !important;
        align-items:center !important;
        gap:10px !important;
    }
    #site_header #main_nav .menu > .search{ display:none !important; }

    #site_header #main_nav .menu-actions{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:10px !important;
        margin-left:0 !important;
    }

    /* icon-only buttons */
    #site_header .icon-btn.m-search-btn,
    #site_header .lc-mini{
        width:40px !important;
        height:40px !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        border-radius:12px !important;
        cursor:pointer !important;
        -webkit-tap-highlight-color: transparent;
        color:#111827 !important;
    }
    #site_header .icon-btn.m-search-btn:active,
    #site_header .lc-mini:active{ background: rgba(15,23,42,0.06) !important; }

    #site_header .icon-btn.m-search-btn svg,
    #site_header .lc-mini svg{
        width:22px !important;
        height:22px !important;
        display:block !important;
    }

    /* search panel */
    #site_header #m_search_panel{
        position:absolute !important;
        left:10px !important;
        right:10px !important;
        top:56px !important;
        display:none !important;
        z-index:80 !important;
    }
    #site_header #m_search_panel.is-open{ display:block !important; }

    #site_header #m_search_panel .cpt-search{
        width:100% !important;
        height:40px !important;
        padding:0 10px 0 14px !important;
        border-radius:14px !important;
        background:#fff !important;
        border:1px solid rgba(229,231,235,0.95) !important;
        box-shadow:0 16px 30px rgba(15,23,42,0.10) !important;
    }

    /* logo size */
    #site_header #main_nav #nav_logo a{
        display:inline-flex !important;
        align-items:center !important;
        height:100% !important;
        padding:0 !important;
        line-height:1 !important;
    }
    #site_header #main_nav #nav_logo img,
    #site_header #main_nav #nav_logo img.fm-logo-img{
        height:48px !important;
        width:auto !important;
        display:block !important;
        object-fit:contain !important;
        max-width:260px !important;
    }
}

/* ===================================================================
   ✅ FINAL OVERRIDE: Mobile Home header transparent overlay (NO white line)
   命中：#site_header.fm-mh-home （你现在就是 is-xmas fm-mh-home）
   =================================================================== */
@media (max-width: 768px){

    html #site_header.fm-mh-home,
    html #site_header.is-xmas.fm-mh-home{
        position: absolute !important;
        top:0; left:0; right:0;
        z-index: 999999 !important;
        background: transparent !important;
        border:0 !important;
        box-shadow:none !important;
        padding-top: 0 !important; /* safe-area 交给 inner */
    }

    html #site_header.fm-mh-home #main_nav,
    html #site_header.is-xmas.fm-mh-home #main_nav{
        background: transparent !important;
        border:0 !important;
        border-bottom:0 !important;
        box-shadow:none !important;
    }

    html #site_header.fm-mh-home #main_nav .inner,
    html #site_header.fm-mh-home #main_nav .inner.container,
    html #site_header.is-xmas.fm-mh-home #main_nav .inner,
    html #site_header.is-xmas.fm-mh-home #main_nav .inner.container{
        background: transparent !important;
        border:0 !important;
        border-bottom:0 !important;
        box-shadow:none !important;

        height: calc(56px + env(safe-area-inset-top)) !important;
        padding-top: env(safe-area-inset-top) !important;
    }

    /* 杀掉潜在伪元素分割线（有些主题用 ::after 做 1px 线） */
    html #site_header.fm-mh-home #main_nav::before,
    html #site_header.fm-mh-home #main_nav::after,
    html #site_header.fm-mh-home #main_nav .inner::before,
    html #site_header.fm-mh-home #main_nav .inner::after{
        content:none !important;
        display:none !important;
    }

    /* 可读性（你想更干净可删） */
    html #site_header.fm-mh-home #nav_logo img,
    html #site_header.fm-mh-home .menu-actions svg{
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
    }

    /* 下滑变“实底”时可用（你用 JS 给 #site_header 加 .is-solid 即可） */
    /*html #site_header.fm-mh-home.is-solid #main_nav{
        background: rgba(255,255,255,.78) !important;
        border-bottom: 1px solid rgba(255,255,255,.55) !important;
        box-shadow: 0 10px 22px rgba(15,23,42,.10) !important;
        backdrop-filter: blur(12px) saturate(1.15) !important;
        -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
    }
*/
    html #site_header.fm-mh-home.is-solid #main_nav,
    html #site_header.is-xmas.fm-mh-home.is-solid #main_nav{
        background: rgba(255,255,255,.50) !important; /* ✅ 50% 白色 */
        border-bottom: 1px solid rgba(255,255,255,.28) !important;
        box-shadow: 0 10px 22px rgba(15,23,42,.08) !important;
        backdrop-filter: blur(12px) saturate(1.12) !important;
        -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
    }
}
/* =========================
   PC V2: guest CTA (Sign Up pill) + search icon size
   ========================= */
@media (min-width: 769px){

  /* 让放大镜按钮也变成 46px（对齐你设计图） */
  .fm-header-v2 .hv2-search-iconbtn{
    width:46px;
    height:46px;
    border-radius:999px;
    border:1.5px solid rgba(15,23,42,.65);
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* ✅ 未登录按钮：display:flex; height:46px; padding:0 24px; align-items:center; */
  .fm-header-v2 .hv2-auth-btn{
    display:flex;
    height:46px;
    padding:0 24px;
    align-items:center;
    justify-content:center;

    border-radius:999px;
    border:1.5px solid rgba(15,23,42,.65);
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: rgba(17,24,39,.92);
    font-family:"Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size:13px;
    font-weight:600;
    letter-spacing:.2px;
    white-space:nowrap;

    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .fm-header-v2 .hv2-auth-btn:hover,
  .fm-header-v2 .hv2-search-iconbtn:hover{
    background: rgba(255,255,255,.55);
  }

  .fm-header-v2 .hv2-auth-btn:active,
  .fm-header-v2 .hv2-search-iconbtn:active{
    transform: translateY(1px);
  }

  .fm-header-v2 .hv2-auth-btn:focus-visible,
  .fm-header-v2 .hv2-search-iconbtn:focus-visible{
    outline: 2px solid rgba(37,99,235,.35);
    outline-offset: 2px;
  }

  /* 首页透明头时，底色更轻一点（避免太白块） */
  .fm-header-v2.hv2-home .hv2-auth-btn,
  body.is-home .fm-header-v2 .hv2-auth-btn,
  .fm-header-v2.hv2-home .hv2-search-iconbtn,
  body.is-home .fm-header-v2 .hv2-search-iconbtn{
    background: rgba(255,255,255,.18);
  }
}

/* =========================
   ✅ PC: Search Suggest dropdown (restore)
   依赖 JS 渲染的类：hv2-suggest / hv2-sg-*
   ========================= */
@media (min-width: 769px){

  /* 让下拉相对 hv2-search 定位 */
  .fm-header-v2 .hv2-search{ position: relative; }

  /* （可选但建议）让打开后的搜索框更接近你图里的白色输入条 */
  .fm-header-v2 .hv2-search-bar{
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 22px rgba(15,23,42,.10);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
  }
  .fm-header-v2 .hv2-search-input{
    color: rgba(15,23,42,.92);
  }
  .fm-header-v2 .hv2-search-input::placeholder{
    color: rgba(15,23,42,.45);
  }
  .fm-header-v2 .hv2-ico-white{ color: rgba(15,23,42,.70); }

  .fm-header-v2 .hv2-search-close{
    width: 32px;
    height: 32px;
    border: 0;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: rgba(15,23,42,.78);
    font-weight: 600;
    line-height: 32px;
  }
  .fm-header-v2 .hv2-search-close:hover{
    background: rgba(15,23,42,.06);
  }

  /* 下拉容器 */
  .fm-header-v2 .hv2-suggest{
    position: absolute;
    top: calc(100% + 10px); /* ✅ 你的图里是 10 */
    left: 0;
    width: 100%;                 /* ✅ 自动跟随搜索框宽度 */
    min-width: var(--hv2-dd-w);  /* ✅ 兜底 327 */
    max-width: 92vw;

    padding: var(--hv2-dd-pad);  /* ✅ 10 */
    border-radius: var(--hv2-dd-radius); /* ✅ 20 */

    /* ✅ 玻璃质感：下面有图时会“透出图片色” */
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.58);
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);

    display: none;
    z-index: 999999;
    pointer-events: auto;
  }
  .fm-header-v2 .hv2-suggest.is-show{ display: block; }

  .fm-header-v2 .hv2-suggest-inner{
    display: flex;
    flex-direction: column;
    gap: var(--hv2-item-gap); /* ✅ 10 */
  }

  /* 单条 */
  .fm-header-v2 .hv2-sg-item{
    position: relative;
    overflow: hidden;

    height: var(--hv2-item-h); /* ✅ 52 */
    border-radius: var(--hv2-item-radius); /* ✅ 16 */
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    text-decoration: none;
    color: rgba(15,23,42,.92);

    /* ✅ item 也做半透明，形成你说的“图片效果” */
    background: rgba(255,255,255,.34);
    border: 1px solid rgba(255,255,255,.36);

    transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
  }

  /* ✅ 轻微左暗右亮的层（更接近你截图的层次） */
  .fm-header-v2 .hv2-sg-item::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(
      90deg,
      rgba(15,23,42,.18) 0%,
      rgba(15,23,42,.06) 56%,
      rgba(255,255,255,.00) 100%
    );
    opacity: .55;
    pointer-events:none;
  }

  .fm-header-v2 .hv2-sg-item > *{ position: relative; z-index: 1; }

  .fm-header-v2 .hv2-sg-item:hover{
    background: rgba(255,255,255,.46);
    border-color: rgba(37,99,235,.18);
    box-shadow: 0 10px 22px rgba(37,99,235,.12);
    transform: translateY(-1px);
  }

  /* 左侧：icon + 标题 */
  .fm-header-v2 .hv2-sg-left{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .fm-header-v2 .hv2-sg-cover{
    width: var(--hv2-icon);       /* ✅ 32 */
    height: var(--hv2-icon);
    border-radius: var(--hv2-icon-radius); /* ✅ 10 */
    object-fit: cover;
    flex: 0 0 auto;

    background: rgba(15,23,42,.10);
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
  }

  /* icon 缺省（JS 用 span 占位） */
  .fm-header-v2 span.hv2-sg-cover{
    display: inline-block;
  }

  .fm-header-v2 .hv2-sg-title{
    font-size: var(--hv2-item-font); /* ✅ 14 */
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  /* 右侧折扣胶囊（你图里 -22% 那种） */
  .fm-header-v2 .hv2-sg-discount{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 12px;
    border-radius: 12px;

    background: var(--fm-brand-yellow); /* 需要更“品牌橙”就改成 #ff5a1f */
    color: rgba(15,23,42,.92);

    font-weight: 600;
    font-size: 14px;
    letter-spacing: .2px;

    box-shadow: 0 10px 18px rgba(0,0,0,.12);
    flex: 0 0 auto;
  }

  .fm-header-v2 .hv2-sg-empty{
    height: 46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 14px;
    background: rgba(255,255,255,.30);
    border: 1px solid rgba(255,255,255,.34);
    color: rgba(15,23,42,.62);
    font-size: 13px;
    font-weight: 600;
  }
}
/* =========================================================
   HV2 — Ultra Transparent Glass (NO gray fill, NO borders)
   Append at END of header-v2.css
   ========================================================= */
@media (min-width: 769px){

  .fm-header-v2{
    /* 玻璃“几乎透明”的关键：0.001~0.01
       0 = 很多浏览器不渲染 backdrop-filter */
    --hv2-glass-a: .001;        /* 默认：几乎 0 底色 */
    --hv2-glass-a-hover: .01;   /* hover：仍然非常透 */
    --hv2-glass-blur: 16px;

    --hv2-glass-shadow: 0 18px 48px rgba(0,0,0,.18);
    --hv2-glass-shadow-hover: 0 22px 60px rgba(0,0,0,.22);
  }

  /* 首页（更暗背景）可稍微提升透明强度，不会发灰 */
  .fm-header-v2.hv2-home,
  body.is-home .fm-header-v2{
    --hv2-glass-a: .001;
    --hv2-glass-a-hover: .012;
    --hv2-glass-shadow: 0 18px 54px rgba(0,0,0,.22);
    --hv2-glass-shadow-hover: 0 24px 70px rgba(0,0,0,.26);
  }

  /* =========================
     Search icon button: “无底色”玻璃
     ========================= */
  .fm-header-v2 .hv2-search-iconbtn{
    border: 0 !important;
    outline: none !important;

    /* 关键：近似透明的背景用于触发 blur */
    background: rgba(255,255,255,var(--hv2-glass-a)) !important;

    box-shadow: var(--hv2-glass-shadow) !important;

    backdrop-filter: blur(var(--hv2-glass-blur)) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(var(--hv2-glass-blur)) saturate(1.25) !important;

    transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
  }
  .fm-header-v2 .hv2-search-iconbtn:hover{
    background: rgba(255,255,255,var(--hv2-glass-a-hover)) !important;
    box-shadow: var(--hv2-glass-shadow-hover) !important;
    transform: translateY(-1px);
  }
  .fm-header-v2 .hv2-search-iconbtn:active{ transform: translateY(0); }

  /* =========================
     Search expanded bar: 无边框 + 超透玻璃
     ========================= */
  .fm-header-v2 .hv2-search-bar{
    border: 0 !important;
    outline: none !important;

    background: rgba(255,255,255,var(--hv2-glass-a)) !important;
    box-shadow: var(--hv2-glass-shadow) !important;

    backdrop-filter: blur(calc(var(--hv2-glass-blur) + 8px)) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(calc(var(--hv2-glass-blur) + 8px)) saturate(1.25) !important;

    transition: box-shadow .18s ease, background .18s ease;
  }
  .fm-header-v2 .hv2-search.is-open .hv2-search-bar:hover{
    background: rgba(255,255,255,var(--hv2-glass-a-hover)) !important;
    box-shadow: var(--hv2-glass-shadow-hover) !important;
  }

  /* 输入文字：给你“透明控件”的可读性（首页白字，非首页深字） */
  .fm-header-v2 .hv2-search-input{ color: rgba(11,18,32,.90) !important; }
  .fm-header-v2 .hv2-search-input::placeholder{ color: rgba(11,18,32,.48) !important; }

  .fm-header-v2.hv2-home .hv2-search-input,
  body.is-home .fm-header-v2 .hv2-search-input{ color: rgba(255,255,255,.92) !important; }
  .fm-header-v2.hv2-home .hv2-search-input::placeholder,
  body.is-home .fm-header-v2 .hv2-search-input::placeholder{ color: rgba(255,255,255,.70) !important; }

  /* 关闭按钮也无底色 */
  .fm-header-v2 .hv2-search-close{
    border: 0 !important;
    background: transparent !important;
  }

  /* =========================
     User: 去掉白圈 + 按钮外壳超透明
     ========================= */
  .fm-header-v2 .hv2-user-btn{
    border: 0 !important;
    outline: none !important;

    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background: rgba(255,255,255,var(--hv2-glass-a)) !important;
    box-shadow: var(--hv2-glass-shadow) !important;

    backdrop-filter: blur(var(--hv2-glass-blur)) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(var(--hv2-glass-blur)) saturate(1.25) !important;

    transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
  }
  .fm-header-v2 .hv2-user-btn:hover{
    background: rgba(255,255,255,var(--hv2-glass-a-hover)) !important;
    box-shadow: var(--hv2-glass-shadow-hover) !important;
    transform: translateY(-1px);
  }

  /* ✅ 关键：你现在的“白色边框”其实是这里的 box-shadow 画出来的 */
  .fm-header-v2 .hv2-avatar{
    box-shadow: none !important;  /* kill the white ring */
    border: 0 !important;

    width: 34px !important;
    height: 34px !important;

    overflow: hidden;
    border-radius: 999px;

    /* 头像内容本身不再做“灰底”，避免你说的发灰 */
    background: transparent !important;
  }

  /* dropdown（顺手也别发灰：超透 + 无边框） */
  .fm-header-v2 .hv2-user-pop{
    border: 0 !important;
    background: rgba(255,255,255,.06) !important; /* 依然极透，但让 blur 生效 */
    box-shadow: 0 26px 70px rgba(0,0,0,.26) !important;

    backdrop-filter: blur(22px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
  }

  .fm-header-v2 .hv2-user-item{
    border: 0 !important;
    background: rgba(255,255,255,.04) !important; /* 超透，避免灰块 */
  }
  .fm-header-v2 .hv2-user-item:hover{
    background: rgba(255,255,255,.08) !important;
  }

  /* focus 专业一点（不靠边框） */
  .fm-header-v2 .hv2-search-iconbtn:focus-visible,
  .fm-header-v2 .hv2-user-btn:focus-visible{
    outline: 2px solid rgba(37,99,235,.28) !important;
    outline-offset: 3px !important;
  }
}




@media (max-width: 768px){

  /* 首页：滚动后 header 本体改成 fixed，吸顶 */
  html #site_header.fm-mh-home.is-solid,
  html #site_header.is-xmas.fm-mh-home.is-solid{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* 首页：滚动后 main_nav 变成 50% 白底 */
  html #site_header.fm-mh-home.is-solid #main_nav,
  html #site_header.is-xmas.fm-mh-home.is-solid #main_nav,
  html #site_header.fm-mh-home #main_nav.is-solid,
  html #site_header.is-xmas.fm-mh-home #main_nav.is-solid{
    background: rgba(255,255,255,.50) !important;
    border-bottom: 1px solid rgba(255,255,255,.28) !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.08) !important;
    backdrop-filter: blur(12px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
  }
}



/* =========================================================
   Hero header pages: let header overlay hero section
   ========================================================= */
@media (min-width: 769px){
  body.has-hero-header #page_main{
    padding-top: 0 !important;
  }
}



/* =========================================================
   Game Detail Hero Header
   - PC: logo -> back button + taller bar
   - Mobile: logo -> back button + taller bar
   ========================================================= */

/* =========================
   PC
   ========================= */
@media (min-width: 769px){

  /* 详情页主内容顶部同步一点，不然 header 高了会显得挤 */
  body.has-hero-header-detail #page_main{
    padding-top: 92px !important;
  }

  .fm-header-v2.hv2-detail{
    height: 92px;
  }

  .fm-header-v2.hv2-detail .hv2-bar{
    height: 92px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .fm-header-v2.hv2-detail .hv2-backbtn{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    height: 46px;
    padding: 0 16px 0 14px;
    border-radius: 999px;

    text-decoration: none;
    color: rgba(255,255,255,.94);

    background: rgba(255,255,255,.10);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);

    backdrop-filter: blur(14px) saturate(1.18);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
  }

  .fm-header-v2.hv2-detail .hv2-backbtn:hover{
    background: rgba(255,255,255,.16);
  }

  .fm-header-v2.hv2-detail .hv2-backbtn__ic{
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
  }

  .fm-header-v2.hv2-detail .hv2-backbtn__txt{
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .1px;
  }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px){

  /* hero_header 页已经不用 mobile_back_header，这里直接调 site_header */
  body.has-hero-header-detail{
    padding-top: 0 !important;
  }

  html #site_header.fm-mh-detail #main_nav .inner,
  html #site_header.fm-mh-detail #main_nav .inner.container,
  html #site_header.is-xmas.fm-mh-detail #main_nav .inner,
  html #site_header.is-xmas.fm-mh-detail #main_nav .inner.container{
    height: calc(64px + env(safe-area-inset-top)) !important;
    padding-top: env(safe-area-inset-top) !important;
  }

  /* 搜索面板跟着下移 */
  #site_header.fm-mh-detail #m_search_panel{
    top: 64px !important;
  }

  /* 左侧 logo 位改成返回按钮 */
  #site_header.fm-mh-detail #nav_logo .mh-backbtn{
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 12px !important;
    background: transparent !important;
    color: #111827 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  #site_header.fm-mh-detail #nav_logo .mh-backbtn:active{
    background: rgba(15,23,42,.06) !important;
  }

  #site_header.fm-mh-detail #nav_logo .mh-backbtn svg{
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }

  /* 右侧两个 icon 也顺手跟高度对齐 */
  #site_header.fm-mh-detail .icon-btn.m-search-btn,
  #site_header.fm-mh-detail .lc-mini{
    width: 44px !important;
    height: 44px !important;
  }

  /* 滚动后实底状态也稍微更厚一点 */
  html #site_header.fm-mh-home.fm-mh-detail.is-solid #main_nav,
  html #site_header.is-xmas.fm-mh-home.fm-mh-detail.is-solid #main_nav{
    backdrop-filter: blur(14px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
  }
}










/* =========================================================
   TEMP TEST
   Force Header Solid White
   - PC + Mobile
   - append at END of header-v2.css
   ========================================================= */

/* =========================
   PC
   ========================= */
@media (min-width: 769px){

  /* hero 页原本是覆盖在内容上，这里改回正常白头占位 */
  body.has-hero-header #page_main{
    padding-top: 80px !important;
  }
  body.has-hero-header-detail #page_main{
    padding-top: 92px !important;
  }

  /* 整个头改成白底实心 */
  .fm-header-v2,
  .fm-header-v2.hv2-home,
  .fm-header-v2.hv2-detail,
  body.is-home .fm-header-v2{
    --hv2-bg-0: #ffffff !important;
    --hv2-bg-1: #ffffff !important;
    --hv2-bg-2: #ffffff !important;
    --hv2-bg-3: #ffffff !important;
    --hv2-border: rgba(15,23,42,.08) !important;
    --hv2-shadow: 0 10px 26px rgba(15,23,42,.06) !important;
    --hv2-blur: 0px !important;
  }

  .fm-header-v2::before{
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fm-header-v2::after{
    display: none !important;
  }

  /* 文本 / icon 改成深色，避免白底下看不清 */
  .fm-header-v2 .hv2-nav-item,
  .fm-header-v2 .hv2-lc,
  .fm-header-v2 .hv2-caret,
  .fm-header-v2 .hv2-ico,
  .fm-header-v2 .hv2-search-close{
    color: rgba(15,23,42,.88) !important;
  }

  .fm-header-v2 .hv2-nav-item:hover,
  .fm-header-v2 .hv2-lc:hover{
    background: rgba(15,23,42,.04) !important;
    color: rgba(15,23,42,1) !important;
  }

  /* 搜索按钮 / 登录按钮 / 用户按钮 */
  .fm-header-v2 .hv2-search-iconbtn,
  .fm-header-v2 .hv2-auth-btn,
  .fm-header-v2 .hv2-user-btn{
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    box-shadow: 0 6px 18px rgba(15,23,42,.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fm-header-v2 .hv2-search-iconbtn:hover,
  .fm-header-v2 .hv2-auth-btn:hover,
  .fm-header-v2 .hv2-user-btn:hover{
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.08) !important;
  }

  /* 展开搜索框 */
  .fm-header-v2 .hv2-search-bar{
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fm-header-v2 .hv2-search-input{
    color: rgba(15,23,42,.92) !important;
  }

  .fm-header-v2 .hv2-search-input::placeholder{
    color: rgba(15,23,42,.45) !important;
  }

  .fm-header-v2 .hv2-ico-white{
    color: rgba(15,23,42,.72) !important;
  }

  /* 用户下拉 */
  .fm-header-v2 .hv2-user-pop{
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 18px 40px rgba(15,23,42,.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fm-header-v2 .hv2-user-item{
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,.06) !important;
  }

  .fm-header-v2 .hv2-user-item:hover{
    background: rgba(15,23,42,.03) !important;
    border-color: rgba(15,23,42,.10) !important;
    box-shadow: none !important;
  }

  /* detail 返回按钮原本是白字玻璃，这里改成白底深字 */
  .fm-header-v2.hv2-detail .hv2-backbtn{
    background: #ffffff !important;
    color: rgba(15,23,42,.92) !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fm-header-v2.hv2-detail .hv2-backbtn:hover{
    background: #ffffff !important;
  }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px){

  /* 首页 / hero / detail 原本透明浮在内容上，这里改回正常白头 */
  html #site_header,
  html #site_header.fm-mh-home,
  html #site_header.is-xmas.fm-mh-home,
  html #site_header.fm-mh-detail,
  html #site_header.is-xmas.fm-mh-detail,
  html #site_header.fm-mh-home.is-solid,
  html #site_header.is-xmas.fm-mh-home.is-solid{
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* main nav 白底实心 */
  html #site_header #main_nav,
  html #site_header.fm-mh-home #main_nav,
  html #site_header.is-xmas.fm-mh-home #main_nav,
  html #site_header.fm-mh-detail #main_nav,
  html #site_header.is-xmas.fm-mh-detail #main_nav,
  html #site_header.fm-mh-home.is-solid #main_nav,
  html #site_header.is-xmas.fm-mh-home.is-solid #main_nav,
  html #site_header.fm-mh-home #main_nav.is-solid,
  html #site_header.is-xmas.fm-mh-home #main_nav.is-solid{
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html #site_header #main_nav .inner,
  html #site_header #main_nav .inner.container,
  html #site_header.fm-mh-home #main_nav .inner,
  html #site_header.fm-mh-home #main_nav .inner.container,
  html #site_header.is-xmas.fm-mh-home #main_nav .inner,
  html #site_header.is-xmas.fm-mh-home #main_nav .inner.container,
  html #site_header.fm-mh-detail #main_nav .inner,
  html #site_header.fm-mh-detail #main_nav .inner.container,
  html #site_header.is-xmas.fm-mh-detail #main_nav .inner,
  html #site_header.is-xmas.fm-mh-detail #main_nav .inner.container{
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* 杀掉首页透明头给 logo / icon 加的阴影 */
  html #site_header.fm-mh-home #nav_logo img,
  html #site_header.fm-mh-home .menu-actions svg,
  html #site_header.is-xmas.fm-mh-home #nav_logo img,
  html #site_header.is-xmas.fm-mh-home .menu-actions svg{
    filter: none !important;
  }

  /* 搜索 icon / 语言 icon / 返回按钮保持深色 */
  #site_header .icon-btn.m-search-btn,
  #site_header .lc-mini,
  #site_header.fm-mh-detail #nav_logo .mh-backbtn{
    color: #111827 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #site_header .icon-btn.m-search-btn:active,
  #site_header .lc-mini:active,
  #site_header.fm-mh-detail #nav_logo .mh-backbtn:active{
    background: rgba(15,23,42,.05) !important;
  }

  /* 手机搜索展开面板也白底 */
  #site_header #m_search_panel .cpt-search{
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 12px 24px rgba(15,23,42,.08) !important;
  }
}

/* ===================================================================
   ✅ 移动端搜索建议下拉（#m_search_panel）
   -------------------------------------------------------------------
   桌面端那套 .hv2-suggest / .hv2-sg-* 全部写在 @media (min-width:769px)
   里、且以 .fm-header-v2 为前缀，而移动端头是 #site_header（无该类），
   所以移动端一条都命中不了 —— 这就是之前移动端「搜了没提示」的原因。
   这里给移动端单独写一份，复用同一批类名，两端互不影响。
   数据同桌面端：/api/front/games/search-suggest
   =================================================================== */
@media (max-width: 768px){

  #site_header #m_search_panel .hv2-suggest{
    display: none;
    margin-top: 8px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 16px 30px rgba(15,23,42,.14);
    max-height: 62vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #site_header #m_search_panel .hv2-suggest.is-show{ display: block; }

  #site_header #m_search_panel .hv2-suggest-inner{
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  #site_header #m_search_panel .hv2-sg-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 52px;
    padding: 0 10px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(15,23,42,.92);
    background: rgba(15,23,42,.03);
    border: 1px solid rgba(15,23,42,.05);
    -webkit-tap-highlight-color: transparent;
  }
  #site_header #m_search_panel .hv2-sg-item:active{
    background: rgba(15,23,42,.07);
  }

  #site_header #m_search_panel .hv2-sg-left{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  #site_header #m_search_panel .hv2-sg-cover{
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(15,23,42,.08);
  }
  #site_header #m_search_panel span.hv2-sg-cover{ display: inline-block; }

  #site_header #m_search_panel .hv2-sg-title{
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #site_header #m_search_panel .hv2-sg-discount{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--fm-brand-yellow, #f7cd52);
    color: rgba(15,23,42,.92);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .2px;
    flex: 0 0 auto;
  }
}

/* ===== /fm-front-overrides/app-vue.css ===== */
/* ========================================
   图标样式 - 每种图标独立设置，避免污染
   ======================================== */

/* 1. PC端头部搜索图标（放大镜）- 黑色 */
.fm-header-v2 .hv2-search-iconbtn svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

.fm-header-v2 .hv2-search-ico svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

.fm-header-v2 .cpt-search .btw svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

/* 2. 移动端头部搜索图标（放大镜）- 黑色 */
#site_header .cpt-search .btw svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

#site_header .m-search-btn svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

/* 3. 移动端底部Tab栏选中状态 - 黄色 */
#mobile_tabbar .mb-tab.is-active {
  background: transparent !important;
}

#mobile_tabbar .mb-tab.is-active svg {
  stroke: #ffc800 !important;
}

#mobile_tabbar .mb-tab.is-active em {
  color: #ffc800 !important;
}

.cm-primary-bg {
  background:
    linear-gradient(276deg, rgba(255, 88, 11, 0.22) 9.94%, rgba(var(--fm-brand-yellow-rgb, 255, 200, 0), 0) 47.03%, rgba(255, 88, 11, 0.22) 92%),
    var(--fm-brand-yellow, #ffc800);
  color: #000000;
  border: none;
}

.cm-primary-bg:hover {
  background:
    linear-gradient(276deg, rgba(255, 88, 11, 0.3) 9.94%, rgba(var(--fm-brand-yellow-rgb, 255, 200, 0), 0) 47.03%, rgba(255, 88, 11, 0.3) 92%),
    #f59e0b;
}

.cm-confirm {
  width: 100%;
  display: flex;
  height: 54px;
  padding: 13px 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 73px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.cm-confirm {
  background: #FFCB2E !important;
  color: #000000 !important;
  border: none;
  font-weight: 600 !important;
}



.cm-confirm:active {
  transform: translateY(1px);
}

.cm-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#ck3_root .cm-confirm {
  font-weight: 600 !important;
}

@media (max-width: 900px) {

  body.page-account-home.page-account-edit.page-email-edit #page_main,
  body.page-account-home.page-account-edit.page-email-edit .account-page,
  body.page-account-home.page-account-edit.page-email-edit .account-shell {
    background: linear-gradient(180deg, #f7f5ea 0, #f8f8f8 120px, #fff 360px) !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.page-account-home.page-account-edit.page-email-edit .account-shell {
    padding: 0 !important;
  }
}

.fm-header-v2 {
  z-index: 999 !important;
}

@media (min-width: 769px) {
  .fm-header-v2 .hv2-user-meta {
    border: none;
  }

  .fm-header-v2 .hv2-cart {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 24, 39, .86);
    text-decoration: none;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease;
  }

  .fm-header-v2 .hv2-cart:hover {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .20);
    transform: translateY(-1px);
  }

  .fm-header-v2 .hv2-cart .material-icons {
    font-size: 21px;
    line-height: 1;
  }

  .fm-header-v2 .hv2-cart__badge {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(239, 68, 68, .25);
  }

  .order-detail-header-btn {
    font-weight: 600 !important;
  }
}

/* 登录弹窗logo图标尺寸调整 */
.am2-modal .fmml-brand img,
.am2-modal .fmml-brand svg {
  max-width: 48px !important;
  max-height: 48px !important;
  width: 48px !important;
  height: 48px !important;
}

/* 在线客服浮动按钮样式 - 右下角圆形按钮 */
button[style*="position: fixed"],
a[style*="position: fixed"],
div[style*="position: fixed"] {
  background: #FFCB2E;
  color: #000000 !important;
  border: none !important;
  font-weight: 600 !important;
}

/* 登录弹窗输入框提示字体不加粗 */
.am2-modal input::placeholder,
.am2-modal textarea::placeholder,
.am2-modal input::-webkit-input-placeholder,
.am2-modal textarea::-webkit-input-placeholder,
.am2-modal input::-moz-placeholder,
.am2-modal textarea::-moz-placeholder,
.am2-modal input:-ms-input-placeholder,
.am2-modal textarea:-ms-input-placeholder,
.am2-modal input::-ms-input-placeholder,
.am2-modal textarea::-ms-input-placeholder,
#fmml input::placeholder,
#fmml textarea::placeholder,
#fmml input::-webkit-input-placeholder,
#fmml textarea::-webkit-input-placeholder,
#fmml input::-moz-placeholder,
#fmml textarea::-moz-placeholder,
#fmml input:-ms-input-placeholder,
#fmml textarea:-ms-input-placeholder,
#fmml input::-ms-input-placeholder,
#fmml textarea::-ms-input-placeholder,
.as-textarea textarea::placeholder {
  font-weight: 400 !important;
}

/* 输入框使用系统字体，不加粗 - 使用更高特异性选择器覆盖全局规则 */
input:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon),
textarea:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon),
input:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon)::placeholder,
textarea:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon)::placeholder,
.am2-modal input,
.am2-modal textarea,
.am2-modal input::placeholder,
.am2-modal textarea::placeholder,
#fmml input,
#fmml textarea,
#fmml input::placeholder,
#fmml textarea::placeholder,
.fmml-input input,
.fmml-textarea textarea,
.fmml-input input::placeholder,
.fmml-textarea textarea::placeholder {
  --fm-font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-weight: 400 !important;
}

#login_modal.am2 .am2-primary {
  background: #FFCB2E !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 600 !important;
}

.fm-header-v2 .hv2-user-item {
  font-weight: 400 !important;
}

.ucx-signout {
  font-weight: 600 !important;
}

.ucx-redeem-btn {
  font-weight: 600 !important;
}

.ucx-recent-name {
  font-weight: 600 !important;
}

.ucx-coupon-save {
  font-weight: 600 !important;
}

#home_banner_v2.hmb3 .hmb3-badge,
#home_banner_v3.hmb3 .hmb3-badge {
  font-weight: 600 !important;
}

.uc3-msgbox-wrap[data-v-862da7ca] {
  flex: 1;
  position: relative;
  overflow: hidden
}

.uc3-msgbox[data-v-862da7ca] {
  overflow-anchor: none;
  height: 100%;
  position: relative
}

.uc3-msgbox[data-v-862da7ca] * {
  overflow-anchor: none !important
}

.uc3-loading[data-v-862da7ca] {
  z-index: 9999;
  pointer-events: none;
  background-color: #f8fafc;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden
}

.uc3-loading-text[data-v-862da7ca] {
  background: linear-gradient(90deg, #87cefa, #c7a6ff, #87cefa) 0 0/200% 100%;
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 18px;
  font-weight: 600
}

.uc3-loading-dots[data-v-862da7ca] {
  vertical-align: bottom;
  align-items: flex-end;
  gap: 4px;
  margin-left: 2px;
  display: inline-flex
}

.uc3-loading-dot[data-v-862da7ca] {
  background: linear-gradient(90deg, #87cefa, #c7a6ff);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: 1.4s ease-in-out infinite loading-dot-862da7ca
}

.uc3-loading-dot[data-v-862da7ca]:nth-child(2) {
  animation-delay: .2s
}

.uc3-loading-dot[data-v-862da7ca]:nth-child(3) {
  animation-delay: .4s
}

@keyframes loading-gradient-862da7ca {
  0% {
    background-position: 0%
  }

  to {
    background-position: 200%
  }
}

@keyframes loading-dot-862da7ca {

  0%,
  80%,
  to {
    opacity: .5;
    transform: translateY(0)
  }

  40% {
    opacity: 1;
    transform: translateY(-8px)
  }
}

.uc3-topbar__close[data-v-862da7ca] {
  color: #666;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 4px 8px;
  font-size: 20px;
  line-height: 1
}

.uc3-topbar__close[data-v-862da7ca]:hover {
  color: #333
}

#uc3_root .uc3-img {
  object-fit: contain !important;
  width: auto !important;
  max-width: 98px !important;
  height: auto !important;
  max-height: 98px !important
}

@media (width>=769px) {
  #uc3_root {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important
  }

  #uc3_root .uc3-panel {
    z-index: 100;
    box-sizing: border-box !important;
    background-color: #b5b5b5 !important;
    width: 520px !important;
    max-width: 520px !important;
    height: 730px !important;
    max-height: 730px !important
  }

  #uc3_root .uc3-sendbtn {
    color: #000 !important;
    box-shadow: none !important;
    background: #ffcb2e !important;
    border-color: #ffcb2e !important;
    font-weight: 600 !important;
  }

  #uc3_root .uc3-sendbtn:hover {
    filter: brightness(.95);
    background: #ffcb2e !important
  }

  #uc3_root .uc3-sendbtn svg {
    color: #000 !important
  }

  #uc3_root .uc3-oc-actions .uc3-oc-btn {
    color: #000 !important;
    background: #ffcb2e !important;
    border-color: #ffcb2e !important;
    font-weight: 600 !important;
  }

  #uc3_root .uc3-oc-actions .uc3-oc-btn:hover {
    filter: brightness(.95);
    background: #ffcb2e !important
  }

  #uc3_root .uc3-oc-actions .uc3-oc-btn.is-confirmed {
    color: #666 !important;
    background: #f1f1f1 !important
  }

  #uc3_root .uc3-topbar {
    z-index: 3 !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: #ffffffb8 !important;
    border-bottom: 1px solid #ffffff75 !important;
    flex: 0 0 72px !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 72px !important;
    padding: 0 20px !important;
    display: flex !important;
    position: relative !important
  }

  #uc3_root .uc3-topbar__logo {
    object-fit: contain !important;
    flex: none !important;
    width: 42px !important;
    height: 42px !important;
    display: block !important
  }

  #uc3_root .uc3-topbar__left {
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    display: flex !important
  }

  #uc3_root .uc3-topbar__title {
    color: #111827eb !important;
    letter-spacing: .1px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    display: block !important
  }

  #uc3_root .uc3-topbar__sub {
    color: #1118277a !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    display: block !important;
    overflow: hidden !important
  }

  #uc3_root .uc3-topbar__close {
    color: #1118279e !important;
    cursor: pointer !important;
    background: #0000000f !important;
    border: none !important;
    border-radius: 50% !important;
    flex: none !important;
    justify-content: center !important;
    align-items: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important
  }

  #uc3_root .uc3-topbar__close:hover {
    color: #111827e0 !important;
    background: #0000001f !important
  }

  #uc3_root .uc3-inputbar {
    align-items: center !important
  }
}

#home_items.iv2 .iv2-more {
  font-weight: 600 !important;
}

.orders-subtitle {
  font-size: 13px !important;
}

.order-flow-title {
  font-weight: 600 !important;
}

.order-detail-title {
  font-weight: 600 !important;
}

.order-item-name {
  font-weight: 600 !important;
}

.order-item-sub-title {
  font-weight: 500 !important;
}

.order-info-title {
  font-weight: 600 !important;
}

.order-status-badge {
  font-weight: 600 !important;
}

.order-account-safe {
  font-weight: 600 !important;
}

.order-op-btn--pay {
  background: #ffcb2e !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

.m-order-thumb {
  border-radius: 22px !important;
}

.order-item-thumb-link {
  border-radius: 22px ;
}

/* ========================================
   图标样式 - 每种图标独立设置，避免污染
   ======================================== */

/* 1. PC端头部搜索图标（放大镜）- 黑色 */
.fm-header-v2 .hv2-search-iconbtn svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

.fm-header-v2 .hv2-search-ico svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

.fm-header-v2 .cpt-search .btw svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

/* 2. 移动端头部搜索图标（放大镜）- 黑色 */
#site_header .cpt-search .btw svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

#site_header .m-search-btn svg {
  color: #000000 !important;
  stroke: #000000 !important;
  stroke-width: 1 !important;
}

/* 3. 移动端底部Tab栏选中状态 - 黄色 */
#mobile_tabbar .mb-tab.is-active {
  background: transparent !important;
}

#mobile_tabbar .mb-tab.is-active svg {
  stroke: #ffc800 !important;
}

#mobile_tabbar .mb-tab.is-active em {
  color: #ffc800 !important;
}

.cm-primary-bg {
  background:
    linear-gradient(276deg, rgba(255, 88, 11, 0.22) 9.94%, rgba(var(--fm-brand-yellow-rgb, 255, 200, 0), 0) 47.03%, rgba(255, 88, 11, 0.22) 92%),
    var(--fm-brand-yellow, #ffc800);
  color: #000000;
  border: none;
}

.cm-primary-bg:hover {
  background:
    linear-gradient(276deg, rgba(255, 88, 11, 0.3) 9.94%, rgba(var(--fm-brand-yellow-rgb, 255, 200, 0), 0) 47.03%, rgba(255, 88, 11, 0.3) 92%),
    #f59e0b;
}

.cm-confirm {
  width: 100%;
  display: flex;
  height: 54px;
  padding: 13px 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 73px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.cm-confirm {
  background: #FFCB2E !important;
  color: #000000 !important;
  border: none;
  font-weight: 600 !important;
}



.cm-confirm:active {
  transform: translateY(1px);
}

.cm-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#ck3_root .cm-confirm {
  font-weight: 600 !important;
}

@media (max-width: 900px) {

  body.page-account-home.page-account-edit.page-email-edit #page_main,
  body.page-account-home.page-account-edit.page-email-edit .account-page,
  body.page-account-home.page-account-edit.page-email-edit .account-shell {
    background: linear-gradient(180deg, #f7f5ea 0, #f8f8f8 120px, #fff 360px) !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.page-account-home.page-account-edit.page-email-edit .account-shell {
    padding: 0 !important;
  }
}

.fm-header-v2 {
  z-index: 999 !important;
}

@media (min-width: 769px) {
  .fm-header-v2 .hv2-user-meta {
    border: none;
  }

  .fm-header-v2 .hv2-cart {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 24, 39, .86);
    text-decoration: none;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease;
  }

  .fm-header-v2 .hv2-cart:hover {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .20);
    transform: translateY(-1px);
  }

  .fm-header-v2 .hv2-cart .material-icons {
    font-size: 21px;
    line-height: 1;
  }

  .fm-header-v2 .hv2-cart__badge {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(239, 68, 68, .25);
  }

  .order-detail-header-btn {
    font-weight: 600 !important;
  }
}

/* 登录弹窗logo图标尺寸调整 */
.am2-modal .fmml-brand img,
.am2-modal .fmml-brand svg {
  max-width: 48px !important;
  max-height: 48px !important;
  width: 48px !important;
  height: 48px !important;
}

/* 在线客服浮动按钮样式 - 右下角圆形按钮 */
button[style*="position: fixed"],
a[style*="position: fixed"],
div[style*="position: fixed"] {
  background: #FFCB2E;
  color: #000000 !important;
  border: none !important;
  font-weight: 600 !important;
}

/* 登录弹窗输入框提示字体不加粗 */
.am2-modal input::placeholder,
.am2-modal textarea::placeholder,
.am2-modal input::-webkit-input-placeholder,
.am2-modal textarea::-webkit-input-placeholder,
.am2-modal input::-moz-placeholder,
.am2-modal textarea::-moz-placeholder,
.am2-modal input:-ms-input-placeholder,
.am2-modal textarea:-ms-input-placeholder,
.am2-modal input::-ms-input-placeholder,
.am2-modal textarea::-ms-input-placeholder,
#fmml input::placeholder,
#fmml textarea::placeholder,
#fmml input::-webkit-input-placeholder,
#fmml textarea::-webkit-input-placeholder,
#fmml input::-moz-placeholder,
#fmml textarea::-moz-placeholder,
#fmml input:-ms-input-placeholder,
#fmml textarea:-ms-input-placeholder,
#fmml input::-ms-input-placeholder,
#fmml textarea::-ms-input-placeholder {
  font-weight: 400 !important;
}

/* 输入框使用系统字体，不加粗 - 使用更高特异性选择器覆盖全局规则 */
input:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon),
textarea:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon),
input:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon)::placeholder,
textarea:not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.fm-toast__icon)::placeholder,
.am2-modal input,
.am2-modal textarea,
.am2-modal input::placeholder,
.am2-modal textarea::placeholder,
#fmml input,
#fmml textarea,
#fmml input::placeholder,
#fmml textarea::placeholder,
.fmml-input input,
.fmml-textarea textarea,
.fmml-input input::placeholder,
.fmml-textarea textarea::placeholder {
  --fm-font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-weight: 400 !important;
}

#login_modal.am2 .am2-primary {
  background: #FFCB2E !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 600 !important;
}

.fm-header-v2 .hv2-user-item {
  font-weight: 400 !important;
}

.ucx-signout {
  font-weight: 600 !important;
}

.ucx-redeem-btn {
  font-weight: 600 !important;
}

.ucx-recent-name {
  font-weight: 600 !important;
}

.ucx-coupon-save {
  font-weight: 600 !important;
}

#home_banner_v2.hmb3 .hmb3-badge,
#home_banner_v3.hmb3 .hmb3-badge {
  font-weight: 600 !important;
}

.uc3-msgbox-wrap[data-v-862da7ca] {
  flex: 1;
  position: relative;
  overflow: hidden
}

.uc3-msgbox[data-v-862da7ca] {
  overflow-anchor: none;
  height: 100%;
  position: relative
}

.uc3-msgbox[data-v-862da7ca] * {
  overflow-anchor: none !important
}

.uc3-loading[data-v-862da7ca] {
  z-index: 9999;
  pointer-events: none;
  background-color: #f8fafc;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden
}

.uc3-loading-text[data-v-862da7ca] {
  background: linear-gradient(90deg, #87cefa, #c7a6ff, #87cefa) 0 0/200% 100%;
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 18px;
  font-weight: 600
}

.uc3-loading-dots[data-v-862da7ca] {
  vertical-align: bottom;
  align-items: flex-end;
  gap: 4px;
  margin-left: 2px;
  display: inline-flex
}

.uc3-loading-dot[data-v-862da7ca] {
  background: linear-gradient(90deg, #87cefa, #c7a6ff);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: 1.4s ease-in-out infinite loading-dot-862da7ca
}

.uc3-loading-dot[data-v-862da7ca]:nth-child(2) {
  animation-delay: .2s
}

.uc3-loading-dot[data-v-862da7ca]:nth-child(3) {
  animation-delay: .4s
}

@keyframes loading-gradient-862da7ca {
  0% {
    background-position: 0%
  }

  to {
    background-position: 200%
  }
}

@keyframes loading-dot-862da7ca {

  0%,
  80%,
  to {
    opacity: .5;
    transform: translateY(0)
  }

  40% {
    opacity: 1;
    transform: translateY(-8px)
  }
}

.uc3-topbar__close[data-v-862da7ca] {
  color: #666;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 4px 8px;
  font-size: 20px;
  line-height: 1
}

.uc3-topbar__close[data-v-862da7ca]:hover {
  color: #333
}

#uc3_root .uc3-img {
  object-fit: contain !important;
  width: auto !important;
  max-width: 98px !important;
  height: auto !important;
  max-height: 98px !important
}

@media (width>=769px) {
  #uc3_root {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important
  }

  #uc3_root .uc3-panel {
    z-index: 100;
    box-sizing: border-box !important;
    background-color: #b5b5b5 !important;
    width: 520px !important;
    max-width: 520px !important;
    height: 730px !important;
    max-height: 730px !important
  }

  #uc3_root .uc3-sendbtn {
    color: #000 !important;
    box-shadow: none !important;
    background: #ffcb2e !important;
    border-color: #ffcb2e !important;
    font-weight: 600 !important;
  }

  #uc3_root .uc3-sendbtn:hover {
    filter: brightness(.95);
    background: #ffcb2e !important
  }

  #uc3_root .uc3-sendbtn svg {
    color: #000 !important
  }

  #uc3_root .uc3-oc-actions .uc3-oc-btn {
    color: #000 !important;
    background: #ffcb2e !important;
    border-color: #ffcb2e !important;
    font-weight: 600 !important;
  }

  #uc3_root .uc3-oc-actions .uc3-oc-btn:hover {
    filter: brightness(.95);
    background: #ffcb2e !important
  }

  #uc3_root .uc3-oc-actions .uc3-oc-btn.is-confirmed {
    color: #666 !important;
    background: #f1f1f1 !important
  }

  #uc3_root .uc3-topbar {
    z-index: 3 !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: #ffffffb8 !important;
    border-bottom: 1px solid #ffffff75 !important;
    flex: 0 0 72px !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 72px !important;
    padding: 0 20px !important;
    display: flex !important;
    position: relative !important
  }

  #uc3_root .uc3-topbar__logo {
    object-fit: contain !important;
    flex: none !important;
    width: 42px !important;
    height: 42px !important;
    display: block !important
  }

  #uc3_root .uc3-topbar__left {
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    display: flex !important
  }

  #uc3_root .uc3-topbar__title {
    color: #111827eb !important;
    letter-spacing: .1px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    display: block !important
  }

  #uc3_root .uc3-topbar__sub {
    color: #1118277a !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    display: block !important;
    overflow: hidden !important
  }

  #uc3_root .uc3-topbar__close {
    color: #1118279e !important;
    cursor: pointer !important;
    background: #0000000f !important;
    border: none !important;
    border-radius: 50% !important;
    flex: none !important;
    justify-content: center !important;
    align-items: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important
  }

  #uc3_root .uc3-topbar__close:hover {
    color: #111827e0 !important;
    background: #0000001f !important
  }

  #uc3_root .uc3-inputbar {
    align-items: center !important
  }
}

#home_items.iv2 .iv2-more {
  font-weight: 600 !important;
}

.orders-subtitle {
  font-size: 13px !important;
}

.order-flow-title {
  font-weight: 600 !important;
}

.order-detail-title {
  font-weight: 600 !important;
}

.order-item-name {
  font-weight: 600 !important;
}

.order-item-sub-title {
  font-weight: 500 !important;
}

.order-info-title {
  font-weight: 600 !important;
}

.order-status-badge {
  font-weight: 600 !important;
}

.order-account-safe {
  font-weight: 600 !important;
}

.order-op-btn--pay {
  background: #ffcb2e !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

.m-order-thumb {
  border-radius: 22px !important;
}

.order-item-thumb-link {
  border-radius: 22px ;
}

/* public/assets/test/css/partials/why-flashmunk-v2.css */
/* Why FlashMunk V2 — 2 big + 4 mini; PC container wide & auto-sync by JS */

.wf2 {
  --wf2-accent: var(--fm-brand-yellow);
  --wf2-text: #111827;
  --wf2-muted: #6b7280;
  --wf2-border: #e5e7eb;
  --wf2-card: #f3f4f6;

  /* ✅ PC 默认更宽：避免你说的“左右边距太大” */
  --wf2-container: 1440px;
  --wf2-gutter: 24px;

  padding: 54px 0 46px;

}

.wf2,
.wf2 * {
  box-sizing: border-box;
}

.wf2-inner {
  width: 100%;
  max-width: var(--wf2-container);
  margin: 0 auto;
  /* padding: 0 var(--wf2-gutter); */
}

/* ===== Head ===== */
.wf2-head {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.wf2-titleRow {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.wf2-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wf2-text);
  font-size: 32px;
  line-height: 1.12;
  padding-right: 34px;
}

.wf2-brand {
  position: relative;
  display: inline-block;
  color: var(--wf2-accent);
  font-weight: 600;
}

.wf2-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: var(--wf2-accent);
  border-radius: 999px;
}

.wf2-sparkle {
  position: absolute;
  right: 0;
  top: -6px;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.wf2-sub {
  margin: 10px auto 0;
  max-width: 720px;
  color: var(--wf2-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ===== Primary cards ===== */


.wf2-card {
  position: relative;
  border: 1px solid #edf0f4;
  background: #f4f5f7;
  border-radius: 22px;
  padding: 18px 18px 16px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.wf2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 70% 70%, rgba(17, 24, 39, .06), transparent 60%),
    radial-gradient(420px 220px at 30% 20%, rgba(17, 24, 39, .04), transparent 60%);
  opacity: 1;
  pointer-events: none;
}

.wf2-card[style*="--wf2-bg"]::before {
  background:
    var(--wf2-bg) center / cover no-repeat,
    radial-gradient(600px 260px at 70% 70%, rgba(17, 24, 39, .06), transparent 60%);
  opacity: .18;
}

.wf2-cardTop {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  z-index: 1;
}

.wf2-cardIcon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf2-cardIcon svg {
  width: 26px;
  height: 26px;
}

.wf2-cardNo {
  font-weight: 600;
  color: rgba(17, 24, 39, .18);
  letter-spacing: .04em;
  font-size: 14px;
}

.wf2-kicker {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--wf2-text);
  font-size: 18px;
  margin-top: 4px;
}

.wf2-cardTitle {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-weight: 600;
  color: var(--wf2-text);
  font-size: 22px;
  line-height: 1.15;
  max-width: 520px;
  /* PC 更宽一点，别挤 */
}

.wf2-cardDesc {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #7b808a;
  font-size: 13px;
  line-height: 1.45;
  max-width: 560px;
}

.wf2-moreBtn {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #0b0b0d;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .14);
}

.wf2-moreBtn:hover {
  transform: translateY(-1px);
}

.wf2-moreBtn:active {
  transform: translateY(0);
}

.wf2-moreBtn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

.wf2-morePanel {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(229, 231, 235, .7);
  color: var(--wf2-text);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Secondary grid ===== */


.wf2-mini {
  padding: 16px 16px 18px;
  min-height: 150px;
  border-right: 1px solid #f1f2f4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wf2-mini:nth-child(4n) {
  border-right: 0;
}

.wf2-miniIcon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e9eaee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf2-miniIcon svg {
  width: 26px;
  height: 26px;
}

.wf2-miniTitle {
  font-weight: 600;
  color: var(--wf2-text);
  font-size: 16px;
  margin-top: 2px;
}

.wf2-miniDesc {
  color: #8b909a;
  font-size: 13px;
  line-height: 1.45;
}

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .wf2 {
    padding: 46px 0 38px;
  }

  /* 统一移动端 gutter（你项目没定义就用 14） */
  .wf2-inner {
    padding: 0 var(--fm-gutter-m, 14px);
  }

  .wf2-title {
    font-size: 26px;
    padding-right: 30px;
  }

  .wf2-brand::after {
    bottom: -5px;
    height: 4px;
  }

  .wf2-primary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wf2-card {
    padding: 16px 16px 16px;
    min-height: 248px;
  }

  .wf2-cardTitle {
    font-size: 20px;
  }

  .wf2-cardDesc {
    font-size: 12.5px;
  }

  .wf2-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }

  .wf2-mini {
    border-right: 1px solid #f1f2f4;
    border-top: 1px solid #f1f2f4;
    min-height: 164px;
  }

  .wf2-mini:nth-child(1),
  .wf2-mini:nth-child(2) {
    border-top: 0;
  }

  .wf2-mini:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .wf2-moreBtn:hover,
  .wf2-moreBtn:active {
    transform: none;
  }
}

/* ===== Banner 渐变：缩短 ===== */
#home_banner_v2.hmb3::after,
#home_banner_v3.hmb3::after {
    content: "" !important;
    display: block !important;
    height: 40% !important;
    background: linear-gradient(
        to bottom,
        rgba(243, 244, 246, 0) 0%,
        rgba(243, 244, 246, .85) 72%,
        rgba(243, 244, 246, 1) 100%
    ) !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

#home_banner_v2.hmb3 .hmb3-link,
#home_banner_v3.hmb3 .hmb3-link,
#home_banner_v2.hmb3 .hmb3-img,
#home_banner_v3.hmb3 .hmb3-img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 72%,
        rgba(0, 0, 0, .96) 80%,
        rgba(0, 0, 0, .75) 88%,
        rgba(0, 0, 0, .35) 95%,
        rgba(0, 0, 0, 0) 100%
    ) !important;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 72%,
        rgba(0, 0, 0, .96) 80%,
        rgba(0, 0, 0, .75) 88%,
        rgba(0, 0, 0, .35) 95%,
        rgba(0, 0, 0, 0) 100%
    ) !important;
}

/* ===== /css/partials/home-banner-v2.css?v=20261104-16 ===== */
/* public/assets/test/css/partials/home-banner-v2.css */
/* Home Banner V2/V3 (hmb3) — Full-bleed image + bottom overlay slot (PC) + centered slot (Mobile) */

#home_banner_v2.hmb3,
#home_banner_v3.hmb3{
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;

    /* ===== Desktop defaults ===== */
    --hmb3-h: clamp(460px, calc(100vw * 9 / 21), 720px);
    --hmb3-nav: 46px;

    /* slot layout */
    --hmb3-slot-scale: 1;
    --hmb3-slot-max: 980px;

    /* vertical rectangle logo */
    --hmb3-logo-w: 123px;
    --hmb3-logo-h: 164px;
    --hmb3-logo-radius: 24px;

    /* typography */
    --hmb3-title-size: 48px;
    --hmb3-title-lh: 1.05;
    --hmb3-sub-size: 14px;

    /* buttons */
    --hmb3-btn-h: 46px;
    --hmb3-btn-px: 22px;
    --hmb3-btn-fs: 14px;

    background: #0b1220; /* fallback */
}

/* PC：首页 hero 自己承担 header 占位，避免 header 和 banner 之间出现空缝 */
@media (min-width: 769px){
    body.is-home.has-hero-header #page_main{
        padding-top: 0 !important;
    }

    /* PC：banner section 在文档流正常位置（不 fixed，滚动正常），
       宽度随视口缩放自适应，水平居中；
       overflow: hidden 让内部固定大小的图片被裁切，不会溢出 */
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        margin-top: 0;
        position: relative;
        overflow: hidden;

        width: min(1920px, calc(100vw - 24px)) !important;
        max-width: 1920px !important;
        /* PC 按素材原始 2520×1080 = 7:3 渲染，再整体压矮 20px：
           1920 满宽时 803px，1440 视口（1416 宽）时 587px */
        height: min(803px, calc((100vw - 24px) * 3 / 7 - 20px)) !important;
        min-height: 0 !important;

        margin-left: auto !important;
        margin-right: auto !important;
        left: 0;
        right: 0;
    }

    /* PC：内部 swiper 跟随 section 高度（7:3 比例由 section 决定），且必须裁切 */
    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        height: 100% !important;
        overflow: hidden !important;
        position: relative;
    }

    /* PC：去掉 hero 顶部额外加高 */
    body.is-home #home_banner_v2.hmb3 .hmb3-swiper,
    body.is-home #home_banner_v3.hmb3 .hmb3-swiper{
        height: 100% !important;
    }

    /* PC：wrapper 不限宽度，溢出由 .hmb3-swiper 的 overflow: hidden 裁切 */
    /* PC 端左右+底部 mask 在文件下方统一设置，避免重复 */
}

/* swiper container */
#home_banner_v2.hmb3 .hmb3-swiper,
#home_banner_v3.hmb3 .hmb3-swiper{
    width: 100%;
    height: var(--hmb3-h);
}

/* swiper wrapper：使用独立 translate 属性，避免与外层 section 的居中 transform 冲突 */
#home_banner_v2.hmb3 .swiper-wrapper,
#home_banner_v3.hmb3 .swiper-wrapper{
    translate: var(--slide-x, 0%) 0;
    transition-duration: 500ms;
    will-change: translate;
}

#home_banner_v2.hmb3 .hmb3-slide,
#home_banner_v3.hmb3 .hmb3-slide{
    width: 100%;
    height: 100%;
    position: relative;
}

#home_banner_v2.hmb3 .hmb3-link,
#home_banner_v3.hmb3 .hmb3-link{
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* PC：所有 slide 堆叠在同一位置（绝对定位），wrapper 不再平移，
       防止 wrapper translate 时相邻 slide 露到 section 之外 */
@media (min-width: 769px){
    #home_banner_v2.hmb3 .hmb3-swiper .swiper-wrapper,
    #home_banner_v3.hmb3 .hmb3-swiper .swiper-wrapper{
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        translate: 0 0 !important;
        transition: none !important;
    }

    #home_banner_v2.hmb3 .hmb3-swiper .swiper-slide,
    #home_banner_v3.hmb3 .hmb3-swiper .swiper-slide{
        position: absolute !important;
        inset: 0 !important;
        flex: none !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* hero image（基础规则：移动端默认 100% 尺寸，由 .hmb3-swiper/.hmb3-slide 控制） */
#home_banner_v2.hmb3 .hmb3-img,
#home_banner_v3.hmb3 .hmb3-img{
    display: block;
    width: 100%;
    height: 100%;
}

/* <picture> 只是个选源容器：默认是 inline，会把 block 的 img 包在行盒里量错高度 */
#home_banner_v2.hmb3 .hmb3-link picture,
#home_banner_v3.hmb3 .hmb3-link picture{
    display: block;
    width: 100%;
    height: 100%;
}

/* PC：图片铺满 section（容器已是素材的 7:3，cover 不会再裁切） */
@media (min-width: 769px){
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        width: 100% !important;
        height: 99% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover;
        object-position: 50% 50%;
    }
}

/* bottom fade to page bg (PC) */
#home_banner_v2.hmb3::after,
#home_banner_v3.hmb3::after{
    content:"";
    position: absolute;
    left:0; right:0; bottom:0;
    height: 18%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(243,244,246,0) 0%,
        rgba(243,244,246,.7) 60%,
        rgba(243,244,246,1) 100%
    );
    z-index: 2;
}

/* overlay layer */
#home_banner_v2.hmb3 .hmb3-overlay,
#home_banner_v3.hmb3 .hmb3-overlay{
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* ===== PC: inner aligns content to bottom-left ===== */
#home_banner_v2.hmb3 .hmb3-inner,
#home_banner_v3.hmb3 .hmb3-inner{
    height: 100%;
    width: min(1440px, calc(100% - 80px));
    margin-inline: auto;

    display: flex;
    align-items: flex-end;

    padding-bottom: 52px;
}

/* slot container */
#home_banner_v2.hmb3 .hmb3-slot,
#home_banner_v3.hmb3 .hmb3-slot{
    pointer-events: auto;
    max-width: var(--hmb3-slot-max);

    transform: translateY(10px) scale(var(--hmb3-slot-scale));
    transform-origin: left bottom;
}

/* ===== SLOT CONTENT (no card) ===== */
#home_banner_v2.hmb3 .hmb3-ph,
#home_banner_v3.hmb3 .hmb3-ph{
    display: flex;
    align-items: flex-end;
    gap: 26px;

    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* left logo (vertical rectangle) */
#home_banner_v2.hmb3 .hmb3-ph-logo,
#home_banner_v3.hmb3 .hmb3-ph-logo{
    width: var(--hmb3-logo-w);
    height: var(--hmb3-logo-h);
    aspect-ratio: 3 / 4;

    border-radius: var(--hmb3-logo-radius);
    overflow: hidden;
    flex: 0 0 auto;

    background-color: #d1d5db;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;

    box-shadow: 0 18px 40px rgba(15,23,42,.14);

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: .08em;
    color: #0b1220;
}

/* if logo contains img */
#home_banner_v2.hmb3 .hmb3-ph-logo img,
#home_banner_v3.hmb3 .hmb3-ph-logo img{
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* right body */
#home_banner_v2.hmb3 .hmb3-ph-body,
#home_banner_v3.hmb3 .hmb3-ph-body{
    min-width: 0;
    padding-bottom: 4px;
}

/* title */
#home_banner_v2.hmb3 .hmb3-ph-title,
#home_banner_v3.hmb3 .hmb3-ph-title{
    font-size: var(--hmb3-title-size);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: var(--hmb3-title-lh);
    color: #111827;
    margin: 0 0 10px 0;
}

/* ticker row */
#home_banner_v2.hmb3 .hmb3-ticker,
#home_banner_v3.hmb3 .hmb3-ticker{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
    font-size: var(--hmb3-sub-size);
    color: rgba(17,24,39,.62);
}

/* avatars */
#home_banner_v2.hmb3 .hmb3-tav,
#home_banner_v3.hmb3 .hmb3-tav{
    display: inline-flex;
    align-items: center;
}

#home_banner_v2.hmb3 .hmb3-av,
#home_banner_v3.hmb3 .hmb3-av{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 8px 16px rgba(15,23,42,.12);
}
#home_banner_v2.hmb3 .hmb3-av + .hmb3-av,
#home_banner_v3.hmb3 .hmb3-av + .hmb3-av{
    margin-left: -7px;
}

/* ticker text */
#home_banner_v2.hmb3 .hmb3-tt,
#home_banner_v3.hmb3 .hmb3-tt{
    min-width: 0;
    transition: opacity 160ms ease;
}

#home_banner_v2.hmb3 .hmb3-user,
#home_banner_v3.hmb3 .hmb3-user{
    font-size: var(--hmb3-sub-size);
    font-weight: 600;
    color: rgba(17,24,39,.62);
    line-height: 1.15;
}

#home_banner_v2.hmb3 .hmb3-msg,
#home_banner_v3.hmb3 .hmb3-msg{
    font-size: var(--hmb3-sub-size);
    color: rgba(17,24,39,.58);
    line-height: 1.15;
}

/* actions */
#home_banner_v2.hmb3 .hmb3-ph-actions,
#home_banner_v3.hmb3 .hmb3-ph-actions{
    display: flex;
    align-items: center;
    gap: 12px;
}

#home_banner_v2.hmb3 .hmb3-btn,
#home_banner_v3.hmb3 .hmb3-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: var(--hmb3-btn-h);
    padding: 0 var(--hmb3-btn-px);
    border-radius: 999px;
    text-decoration: none;

    background:#FFCB2E !important;
    color: #111827;
    font-weight: 600;
    font-size: var(--hmb3-btn-fs);

    box-shadow: 0 14px 26px rgba(15,23,42,.12);
}
#home_banner_v2.hmb3 .hmb3-btn:active,
#home_banner_v3.hmb3 .hmb3-btn:active{
    transform: scale(.98);
}

#home_banner_v2.hmb3 .hmb3-badge,
#home_banner_v3.hmb3 .hmb3-badge{
    display: inline-flex;
    align-items: center;

    height: var(--hmb3-btn-h);
    padding: 0 var(--hmb3-btn-px);
    border-radius: 999px;

    background: rgba(255,255,255,.92);
    border: 0;
    color: #ef4444;
    font-weight: 600;
    font-size: var(--hmb3-btn-fs);

    box-shadow: 0 14px 26px rgba(15,23,42,.10);
}

/* controls */
#home_banner_v2.hmb3 .hmb3-controls,
#home_banner_v3.hmb3 .hmb3-controls{
    position: absolute;
    right: 56px;
    bottom: 56px;
    display: flex;
    gap: 12px;
    z-index: 4;
    pointer-events: auto;
}

#home_banner_v2.hmb3 .hmb3-nav,
#home_banner_v3.hmb3 .hmb3-nav{
    width: var(--hmb3-nav);
    height: var(--hmb3-nav);
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
    box-shadow: 0 16px 34px rgba(15,23,42,.18);
}

#home_banner_v2.hmb3 .hmb3-prev,
#home_banner_v3.hmb3 .hmb3-prev{
    background: rgba(255,255,255,.92);
    color: #111827;
}

#home_banner_v2.hmb3 .hmb3-next,
#home_banner_v3.hmb3 .hmb3-next{
    background: rgba(17,24,39,.92);
    color: #fff;
}

#home_banner_v2.hmb3 .hmb3-nav:hover,
#home_banner_v3.hmb3 .hmb3-nav:hover{
    transform: translateY(-1px);
}
#home_banner_v2.hmb3 .hmb3-nav:active,
#home_banner_v3.hmb3 .hmb3-nav:active{
    transform: translateY(0) scale(.98);
}

#home_banner_v2.hmb3 .hmb3-ico,
#home_banner_v3.hmb3 .hmb3-ico{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

/* =========================================================
   MOBILE FIX (你图里那种“边框/上下边距”问题)
   1) 强制 full-bleed：突破外层容器左右留白
   2) 减轻底部白渐变，避免“下半截像空白”
   3) 轻微 scale 盖住 subpixel 细线（看起来像有边框）
   4) slot 居中/上下间距更像你截图
========================================================= */
@media (max-width: 768px){

    /* full-bleed breakout（外层如果有 container/padding，这一招必杀） */
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        /* 手机别圆角（否则你会看到“边框感”） */
        border-radius: 0;
    }

    /* 手机高度：别太高（你截图下半段空太多） */
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        --hmb3-h: clamp(460px, 118vw, 620px);

        --hmb3-slot-scale: 1;
        --hmb3-slot-max: 92vw;

        --hmb3-logo-w: 90px;
        --hmb3-logo-h: 120px;
        --hmb3-logo-radius: 18px;

        --hmb3-title-size: 34px;
        --hmb3-sub-size: 14px;

        --hmb3-btn-h: 56px;
        --hmb3-btn-px: 22px;
        --hmb3-btn-fs: 15px;
    }

    /* 图片：移动端更居中 + scale 避免左右出现“发丝边” */
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        object-position: 52% 18%;
        transform: scale(1.03);
        transform-origin: center;
    }

    /* 底部白渐变：缩短 + 末端不要完全白死（保留一点画面） */
    #home_banner_v2.hmb3::after,
    #home_banner_v3.hmb3::after{
        height: 22%;
        background: linear-gradient(
            to bottom,
            rgba(243,244,246,0) 0%,
            rgba(243,244,246,.55) 58%,
            rgba(243,244,246,.92) 100%
        );
    }

    /* 文字区域：居中 + 上下边距更舒服（对齐你截图） */
    #home_banner_v2.hmb3 .hmb3-inner,
    #home_banner_v3.hmb3 .hmb3-inner{
        width: calc(100% - 22px);
        padding-bottom: 26px;

        /* 让内容不要“卡太底”，更像你截图那种下方留白 */
        align-items: flex-end;
    }

    #home_banner_v2.hmb3 .hmb3-slot,
    #home_banner_v3.hmb3 .hmb3-slot{
        margin: 0 auto;
        transform-origin: center bottom;
    }

    /* 手机：slot 内容更像海报——居中排版 */
    #home_banner_v2.hmb3 .hmb3-ph,
    #home_banner_v3.hmb3 .hmb3-ph{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    #home_banner_v2.hmb3 .hmb3-ph-body,
    #home_banner_v3.hmb3 .hmb3-ph-body{
        padding-bottom: 0;
    }

    #home_banner_v2.hmb3 .hmb3-ticker,
    #home_banner_v3.hmb3 .hmb3-ticker{
        justify-content: center;
        margin-bottom: 14px;
    }

    #home_banner_v2.hmb3 .hmb3-ph-actions,
    #home_banner_v3.hmb3 .hmb3-ph-actions{
        justify-content: center;
        width: 100%;
        gap: 14px;
    }

    /* 控制按钮：贴边一点 */
    #home_banner_v2.hmb3 .hmb3-controls,
    #home_banner_v3.hmb3 .hmb3-controls{
        right: 12px;
        bottom: 12px;
    }
}
/* =========================================================
   FINAL TUNE (MOBILE): banner less "giant", inner tighter
   - also hides arrows & big icon to avoid crowding
========================================================= */
@media (max-width: 768px){

    /* 1) 全宽去“边框感” + 高度收回到正常 */
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3,
    .hmb3{
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        --hmb3-h: clamp(360px, 118vw, 520px); /* ✅ 比你现在小一圈 */
        --hmb3-title-size: 32px;

        --hmb3-btn-h: 44px;
        --hmb3-btn-px: 16px;
        --hmb3-btn-fs: 14px;
    }

    /* 白雾别那么长（你现在看起来“下面空太多”就来自这里） */
    .hmb3::after{ height: 28% !important; }

    /* 2) inner：左右留白更合理 + 底部留白减少 */
    .hmb3 .hmb3-inner{
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;

        /* ✅ 原来你给太大了，这里收紧 */
        padding-bottom: calc(16px + env(safe-area-inset-bottom) + var(--fm-mb-tabbar-h, 0px)) !important;

        justify-content: center !important;
    }

    /* 3) slot：别缩放（缩放会让布局显得“挤+怪”） */
    .hmb3 .hmb3-slot{
        transform: translateY(10px) !important;
        width: 100% !important;
        max-width: 520px !important;
    }

    /* 4) 内容居中纵排 */
    .hmb3 .hmb3-ph{
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    /* ✅ 你现在“挤”的很大原因：大 icon + 左右箭头压住按钮 */
    .hmb3 .hmb3-ph-logo{ display: none !important; }
    .hmb3 .hmb3-controls{ display: none !important; }

    .hmb3 .hmb3-ticker{
        justify-content: center !important;
        margin-bottom: 16px !important;
    }

    /* 5) 按钮等宽并排 */
    .hmb3 .hmb3-ph-actions{
        width: min(420px, 100%) !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .hmb3 .hmb3-btn,
    .hmb3 .hmb3-badge{ width: 100% !important; }
}

/* 超小屏：按钮一列 */
@media (max-width: 360px){
    .hmb3 .hmb3-ph-actions{ grid-template-columns: 1fr !important; }
}
/* ===============================
   FIX: hmb3 banner slider bleeding / left shift
   =============================== */
@media (max-width: 768px){

    /* 1) 确保外层不超宽（避免 100vw + safe-area 导致偏移） */
    .hmb3,
    .hmb3-inner{
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2) 轮播“视窗”必须裁切（关键：不然切换时会露出下一张） */
    /* 如果你没有 hmb3-viewport，就把这一条改成作用在 .hmb3-inner 上 */
    .hmb3-viewport,
    .hmb3-inner{
        overflow: hidden !important;
        position: relative;
        /* iOS 某些情况下 overflow:hidden + 圆角会漏边，用 clip 兜底 */
        clip-path: inset(0);
    }

    /* 3) track 不允许有 gap / padding / margin（否则 slide 不是严格 100%） */
    .hmb3-track{
        display: flex !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;

        will-change: transform;
        transform: translate3d(0,0,0);
    }

    /* 4) 每一张必须严格占满视窗宽 */
    .hmb3-slide,
    .hmb3-item{
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 5) 图片/背景居中 cover，避免“左偏” */
    .hmb3-slide img,
    .hmb3-item img{
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* 如果你是用 background-image 方式： */
    .hmb3-slide,
    .hmb3-item{
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}
@media (max-width: 768px){
    /* 只在 hmb3 内生效，避免影响其他模块 */
    .hmb3 .hmb3-ph-body{
        transform: translateY(80px) !important;
    }
}




/* =========================================
   HMB3 polish:
   - actions 居中
   - 按钮/徽章文字居中
   - ticker 文案过渡更柔和
   ========================================= */
#home_banner_v2.hmb3 .hmb3-ph-actions,
#home_banner_v3.hmb3 .hmb3-ph-actions{
    justify-content: center;
    flex-wrap: wrap;
}

#home_banner_v2.hmb3 .hmb3-btn,
#home_banner_v2.hmb3 .hmb3-badge,
#home_banner_v3.hmb3 .hmb3-btn,
#home_banner_v3.hmb3 .hmb3-badge{
    justify-content: center;
    text-align: center;
}

#home_banner_v2.hmb3 .hmb3-ticker,
#home_banner_v3.hmb3 .hmb3-ticker{
    justify-content: center;
}

#home_banner_v2.hmb3 .hmb3-txt,
#home_banner_v3.hmb3 .hmb3-txt{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 20px;
    line-height: 1.35;
    text-align: center;
    color: rgba(17,24,39,.66);
    letter-spacing: .01em;
    padding: 0 2px;

    transition:
        opacity .26s ease,
        transform .26s cubic-bezier(.22,.61,.36,1),
        filter .26s ease;
    will-change: opacity, transform, filter;
}

#home_banner_v2.hmb3 .hmb3-txt.is-switching,
#home_banner_v3.hmb3 .hmb3-txt.is-switching{
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
}




/* =========================
   HMB3 ticker icon - flame (no circle bg)
   ========================= */
#home_banner_v2.hmb3 .hmb3-tav,
#home_banner_v3.hmb3 .hmb3-tav{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: auto;
    height: auto;
    margin-right: 2px;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#home_banner_v2.hmb3 .hmb3-tav-ico,
#home_banner_v3.hmb3 .hmb3-tav-ico{
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;

    filter:
        drop-shadow(0 0 6px rgba(var(--fm-brand-yellow-rgb), .22))
        drop-shadow(0 2px 6px rgba(239,68,68,.12));
}

#home_banner_v2.hmb3 .hmb3-tav-ico.is-flame,
#home_banner_v3.hmb3 .hmb3-tav-ico.is-flame{
    transform-origin: 50% 78%;
    animation: hmb3FlamePulse 1.9s ease-in-out infinite;
}

@keyframes hmb3FlamePulse{
    0%,100%{
        transform: translateY(0) scale(1);
        opacity: .96;
    }
    50%{
        transform: translateY(-0.6px) scale(1.05);
        opacity: 1;
    }
}

/* =========================
   HMB3 flame icon tune
   - bigger icon
   - closer to ticker text
   ========================= */
#home_banner_v2.hmb3 .hmb3-ticker,
#home_banner_v3.hmb3 .hmb3-ticker{
    gap: 6px; /* 原来 10px，收紧图标和文字距离 */
}

#home_banner_v2.hmb3 .hmb3-tav,
#home_banner_v3.hmb3 .hmb3-tav{
    margin-right: -7px;
    transform: translateX(2px);
    margin-bottom: 3px;
}

#home_banner_v2.hmb3 .hmb3-tav-ico,
#home_banner_v3.hmb3 .hmb3-tav-ico{
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}




/* =========================================================
   HMB3 Mobile - Swiper real node fix
   追加到 home-banner-v2.css 最底部
   目标：
   - 修复手机端首屏右侧露白
   - 命中真实 swiper 结构
   - 避免 100vw 子像素导致的发丝空白
   ========================================================= */
@media (max-width: 768px){

    /* 1) 外层仍然裁切 */
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        overflow: hidden !important;
    }

    /* 2) 命中真实 swiper 容器 */
    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        width: 100% !important;
        height: var(--hmb3-h) !important;
        overflow: hidden !important;
        position: relative;
    }

    /* 3) 命中真实 swiper track（你之前写错成 hmb3-track 了） */
    #home_banner_v2.hmb3 .swiper-wrapper,
    #home_banner_v3.hmb3 .swiper-wrapper{
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        will-change: translate;
        translate: var(--slide-x, 0%) 0;
    }

    /* 4) 每张 slide 严格占满 */
    #home_banner_v2.hmb3 .swiper-slide,
    #home_banner_v3.hmb3 .swiper-slide{
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        overflow: hidden !important;
    }

    #home_banner_v2.hmb3 .hmb3-link,
    #home_banner_v3.hmb3 .hmb3-link{
        display: block;
        width: 100% !important;
        height: 100% !important;
    }

    /* 5) 图片轻微放大 1px 级兜底，盖掉右侧发丝缝 */
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        display: block !important;
        width: calc(100% + 2px) !important;
        min-width: calc(100% + 2px) !important;
        height: 100% !important;
        margin-left: -1px !important;

        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* 大屏手机 / iPad 竖屏（600–768）：竖版 banner 在这个宽度会被上下裁掉一截，
   居中裁会把游戏 logo 的顶部切掉，改成顶部对齐，和 769–1024 的平板档保持一致。 */
@media (min-width: 600px) and (max-width: 768px){
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        object-position: 50% 0% !important;
    }
}



@media (max-width: 768px){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================
   HMB3 FINAL FIX
   不再给 banner 盖一层灰/白板
   而是让图片本身底部透明淡出，直接融到页面背景
   ========================================= */

body.is-home{
    /* 首页分区着色：banner + 分类入口白底，商品区只留一点淡淡的灰，靠分割线区分就够了 */
    --hmb3-merge-bg: #fff;
    background: #fafbfc !important;
}

/* banner 自己底色就是下方区域背景 */
#home_banner_v2.hmb3,
#home_banner_v3.hmb3{
    background: var(--hmb3-merge-bg) !important;
    position: relative;
    overflow: hidden !important;
}

/* 彻底禁用之前那层“灰雾盖板” */
#home_banner_v2.hmb3::after,
#home_banner_v3.hmb3::after{
    content: none !important;
    display: none !important;
    background: none !important;
}

/* 关键：让图片本身在底部淡出 */
#home_banner_v2.hmb3 .hmb3-link,
#home_banner_v3.hmb3 .hmb3-link,
#home_banner_v2.hmb3 .hmb3-img,
#home_banner_v3.hmb3 .hmb3-img{
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 88%,
        rgba(0,0,0,.96) 92%,
        rgba(0,0,0,.78) 95%,
        rgba(0,0,0,.45) 98%,
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 88%,
        rgba(0,0,0,.96) 92%,
        rgba(0,0,0,.78) 95%,
        rgba(0,0,0,.45) 98%,
        rgba(0,0,0,0) 100%
    );

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* 吃掉 1px 拼接线 */
body.is-home #home_banner_v2.hmb3 + *,
body.is-home #home_banner_v3.hmb3 + *{
    position: relative;
    margin-top: -1px !important;
    z-index: 3;
}

/* 平板档（601–1280，含 iPad mini 竖屏 744/768、iPad Air 820）：只保留底部渐变淡出。
   容器现在与素材同为 7:3，图片正好铺满，若继续左右各淡出 22%，
   会直接吃掉美术字的两端（旧的左右渐变是为「1920 定宽图溢出裁切」设计的）。
   601–768 那段只在竖屏生效，横着的小手机仍然走下面的手机档 mask。 */
@media (min-width: 769px) and (max-width: 1280px),
       (min-width: 601px) and (max-width: 768px) and (orientation: portrait){
    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        -webkit-mask-image: linear-gradient(
            to right,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,.18) 3%,
            rgba(0,0,0,.62) 8%,
            rgba(0,0,0,.92) 16%,
            rgba(0,0,0,1) 22%,
            rgba(0,0,0,1) 78%,
            rgba(0,0,0,.92) 84%,
            rgba(0,0,0,.62) 92%,
            rgba(0,0,0,.18) 97%,
            rgba(0,0,0,0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 30%,
            rgba(0,0,0,.95) 44%,
            rgba(0,0,0,.78) 58%,
            rgba(0,0,0,.5) 72%,
            rgba(0,0,0,.22) 86%,
            rgba(0,0,0,0) 100%
        ) !important;
        mask-image: linear-gradient(
            to right,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,.18) 3%,
            rgba(0,0,0,.62) 8%,
            rgba(0,0,0,.92) 16%,
            rgba(0,0,0,1) 22%,
            rgba(0,0,0,1) 78%,
            rgba(0,0,0,.92) 84%,
            rgba(0,0,0,.62) 92%,
            rgba(0,0,0,.18) 97%,
            rgba(0,0,0,0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 30%,
            rgba(0,0,0,.95) 44%,
            rgba(0,0,0,.78) 58%,
            rgba(0,0,0,.5) 72%,
            rgba(0,0,0,.22) 86%,
            rgba(0,0,0,0) 100%
        ) !important;

        -webkit-mask-composite: source-in !important;
        mask-composite: intersect !important;

        -webkit-mask-repeat: no-repeat, no-repeat;
        mask-repeat: no-repeat, no-repeat;
        -webkit-mask-size: 100% 100%, 100% 100%;
        mask-size: 100% 100%, 100% 100%;
    }

    /* 图片自身不再加 mask，避免与容器 mask 叠加造成二次淡出 */
    #home_banner_v2.hmb3 .hmb3-link,
    #home_banner_v3.hmb3 .hmb3-link,
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
}

/* 手机端：再短一点，避免底部变脏 */
@media (max-width: 768px){
    #home_banner_v2.hmb3 .hmb3-link,
    #home_banner_v3.hmb3 .hmb3-link,
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        -webkit-mask-image:   linear-gradient(
            to bottom,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 30%,
            rgba(0,0,0,.95) 44%,
            rgba(0,0,0,.78) 58%,
            rgba(0,0,0,.5) 72%,
            rgba(0,0,0,.22) 86%,
            rgba(0,0,0,0) 100%
        ) !important;
        mask-image:    linear-gradient(
            to bottom,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 30%,
            rgba(0,0,0,.95) 44%,
            rgba(0,0,0,.78) 58%,
            rgba(0,0,0,.5) 72%,
            rgba(0,0,0,.22) 86%,
            rgba(0,0,0,0) 100%
        ) !important;
    }

    body.is-home #home_banner_v2.hmb3 + *,
    body.is-home #home_banner_v3.hmb3 + *{
        margin-top: -1px !important;
    }
}

/* =========================================================
   HMB3 button color override
   目标：主按钮保留 var(--fm-brand-yellow) 品牌黄，但整体比原来柔一点
   ========================================================= */
#home_banner_v2.hmb3 .hmb3-btn,
#home_banner_v3.hmb3 .hmb3-btn{
    background:#FFCB2E !important;
    color: #111827 !important;
    box-shadow: 0 12px 24px rgba(var(--fm-brand-yellow-rgb), .22) !important;
}

#home_banner_v2.hmb3 .hmb3-btn:hover,
#home_banner_v3.hmb3 .hmb3-btn:hover{
    background:#FFCB2E !important;
    color: #111827 !important;
    box-shadow: 0 14px 26px rgba(var(--fm-brand-yellow-rgb), .26) !important;
}

#home_banner_v2.hmb3 .hmb3-btn:active,
#home_banner_v3.hmb3 .hmb3-btn:active{
    background: #FFCB2E !important;
    color: #111827 !important;
    transform: scale(.98);
}



/* ===== Banner slot hide when current slide has no game ===== */
#home_banner_v2.hmb3 .hmb3-slot.is-empty,
#home_banner_v3.hmb3 .hmb3-slot.is-empty{
    display: none !important;
}

/* ===== If no logo image, do not reserve left space ===== */
#home_banner_v2.hmb3 .hmb3-ph.is-no-logo,
#home_banner_v3.hmb3 .hmb3-ph.is-no-logo{
    gap: 0 !important;
}

#home_banner_v2.hmb3 .hmb3-ph.is-no-logo .hmb3-ph-body,
#home_banner_v3.hmb3 .hmb3-ph.is-no-logo .hmb3-ph-body{
    padding-left: 0 !important;
}

/* optional: tighten desktop when logo exists */
@media (min-width: 769px){
    #home_banner_v2.hmb3 .hmb3-slot,
    #home_banner_v3.hmb3 .hmb3-slot{
        max-width: 860px;
    }
}



/* =========================================
   HMB3 desktop fix:
   - remove fake left gap under title
   - keep ticker / actions left-aligned on PC
   ========================================= */
@media (min-width: 769px){
    #home_banner_v2.hmb3 .hmb3-ph,
    #home_banner_v3.hmb3 .hmb3-ph{
        gap: 18px !important; /* 原来 26px，略收一点 */
        align-items: flex-end;
    }

    #home_banner_v2.hmb3 .hmb3-ph-body,
    #home_banner_v3.hmb3 .hmb3-ph-body{
        display: flex;
        flex-direction: column;
        align-items: flex-start !important; /* 关键：子项不要再横向拉满/居中 */
        min-width: 0;
        padding-bottom: 4px;
    }

    #home_banner_v2.hmb3 .hmb3-ticker,
    #home_banner_v3.hmb3 .hmb3-ticker{
        justify-content: flex-start !important;
        align-self: flex-start !important;
        width: auto !important;
        margin-left: 0 !important;
    }

    #home_banner_v2.hmb3 .hmb3-txt,
    #home_banner_v3.hmb3 .hmb3-txt{
        justify-content: flex-start !important;
        text-align: left !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-actions,
    #home_banner_v3.hmb3 .hmb3-ph-actions{
        justify-content: flex-start !important;
        align-self: flex-start !important;
        width: auto !important;
        margin-left: 0 !important;
        flex-wrap: nowrap !important;
    }

    /* 没图时本来就不要占左边位置，这里再兜底 */
    #home_banner_v2.hmb3 .hmb3-ph.is-no-logo,
    #home_banner_v3.hmb3 .hmb3-ph.is-no-logo{
        gap: 0 !important;
    }
}

/* =========================================
   HMB3 mobile interaction + stable CTA
   - Let the full hero stay swipeable through the faded area
   - Keep CTA row fixed when title/ticker text changes
   ========================================= */
@media (max-width: 768px){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        touch-action: pan-y pinch-zoom;
    }

    #home_banner_v2.hmb3 .hmb3-overlay,
    #home_banner_v3.hmb3 .hmb3-overlay,
    #home_banner_v2.hmb3 .hmb3-inner,
    #home_banner_v3.hmb3 .hmb3-inner,
    #home_banner_v2.hmb3 .hmb3-slot,
    #home_banner_v3.hmb3 .hmb3-slot,
    #home_banner_v2.hmb3 .hmb3-ph,
    #home_banner_v3.hmb3 .hmb3-ph,
    #home_banner_v2.hmb3 .hmb3-ph-body,
    #home_banner_v3.hmb3 .hmb3-ph-body,
    #home_banner_v2.hmb3 .hmb3-ph-title,
    #home_banner_v3.hmb3 .hmb3-ph-title,
    #home_banner_v2.hmb3 .hmb3-ticker,
    #home_banner_v3.hmb3 .hmb3-ticker,
    #home_banner_v2.hmb3 .hmb3-ph-actions,
    #home_banner_v3.hmb3 .hmb3-ph-actions,
    #home_banner_v2.hmb3 .hmb3-badge,
    #home_banner_v3.hmb3 .hmb3-badge{
        pointer-events: none !important;
    }

    #home_banner_v2.hmb3 .hmb3-btn,
    #home_banner_v3.hmb3 .hmb3-btn{
        pointer-events: auto !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-body,
    #home_banner_v3.hmb3 .hmb3-ph-body{
        width: min(420px, 100%) !important;
        min-height: 140px !important;
        display: grid !important;
        grid-template-rows: 44px 24px var(--hmb3-btn-h);
        row-gap: 10px !important;
        align-items: center !important;
        justify-items: stretch !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-title,
    #home_banner_v3.hmb3 .hmb3-ph-title{
        height: 44px !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
        text-align: center !important;
        align-self: end !important;
    }

    #home_banner_v2.hmb3 .hmb3-ticker,
    #home_banner_v3.hmb3 .hmb3-ticker{
        height: 24px !important;
        min-height: 24px !important;
        margin: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        align-self: center !important;
    }

    #home_banner_v2.hmb3 .hmb3-txt,
    #home_banner_v3.hmb3 .hmb3-txt{
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-actions,
    #home_banner_v3.hmb3 .hmb3-ph-actions{
        align-self: end !important;
        height: var(--hmb3-btn-h) !important;
        margin: 0 !important;
    }

    #home_banner_v2.hmb3 .hmb3-btn,
    #home_banner_v3.hmb3 .hmb3-btn,
    #home_banner_v2.hmb3 .hmb3-badge,
    #home_banner_v3.hmb3 .hmb3-badge{
        min-width: 0 !important;
        height: var(--hmb3-btn-h) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* =========================================================
   FIX(超小屏 ≤360px)：第二个 CTA 被裁掉
   ---------------------------------------------------------
   症状：宽度 ≤360px 时「Top up games」完整可见，但下面的
        「xx% off today」徽章只露出上半截，像是被切了一半。

   原因：这一档 `.hmb3 .hmb3-ph-actions` 是 grid-template-columns:1fr
        （一列两个 CTA 上下排列，见文件上方注释「超小屏：按钮一列」），
        但下面两条规则把容器高度锁死成一个按钮的高度：
          - .hmb3-ph-body  grid-template-rows: 44px 24px var(--hmb3-btn-h)
          - .hmb3-ph-actions height: var(--hmb3-btn-h)
        于是第二个 CTA 溢出到容器外，又被 #home_banner_v3.hmb3 的
        overflow:hidden 裁掉。

   修法：这一档把行高和 actions 高度改成自适应，容器随内容长高。
        ph-body 是 flex-end 对齐 + translateY，底边位置不变，
        多出来的高度向上扩展，两个 CTA 都能完整显示。
   ========================================================= */
@media (max-width: 360px){
    #home_banner_v2.hmb3 .hmb3-ph-body,
    #home_banner_v3.hmb3 .hmb3-ph-body{
        grid-template-rows: 44px 24px auto !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-actions,
    #home_banner_v3.hmb3 .hmb3-ph-actions{
        height: auto !important;
    }
}

/* 桌面档（>=1281）：按 1920 设计稿渲染——高度固定 803（=1920 × 3/7 - 20），
   图片保持 1920×823 居中，窄于 1920 的部分由 section 的 overflow 裁两侧；
   左右再叠一层 mask，让裁切线淡出到页面底色（平板档 769–1280 仍按容器比例铺满，
   不套用这条，否则 810 这种宽度会变成一张竖图）。 */
@media (min-width: 1281px){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        height: 803px !important;
    }

    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        height: 803px !important;

        -webkit-mask-image: linear-gradient(
            to right,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,.18) 3%,
            rgba(0,0,0,.62) 8%,
            rgba(0,0,0,.92) 16%,
            rgba(0,0,0,1) 22%,
            rgba(0,0,0,1) 78%,
            rgba(0,0,0,.92) 84%,
            rgba(0,0,0,.62) 92%,
            rgba(0,0,0,.18) 97%,
            rgba(0,0,0,0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 30%,
            rgba(0,0,0,.95) 44%,
            rgba(0,0,0,.78) 58%,
            rgba(0,0,0,.5) 72%,
            rgba(0,0,0,.22) 86%,
            rgba(0,0,0,0) 100%
        ) !important;
        mask-image: linear-gradient(
            to right,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,.18) 3%,
            rgba(0,0,0,.62) 8%,
            rgba(0,0,0,.92) 16%,
            rgba(0,0,0,1) 22%,
            rgba(0,0,0,1) 78%,
            rgba(0,0,0,.92) 84%,
            rgba(0,0,0,.62) 92%,
            rgba(0,0,0,.18) 97%,
            rgba(0,0,0,0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,1) 30%,
            rgba(0,0,0,.95) 44%,
            rgba(0,0,0,.78) 58%,
            rgba(0,0,0,.5) 72%,
            rgba(0,0,0,.22) 86%,
            rgba(0,0,0,0) 100%
        ) !important;

        -webkit-mask-composite: source-in !important;
        mask-composite: intersect !important;

        -webkit-mask-repeat: no-repeat, no-repeat;
        mask-repeat: no-repeat, no-repeat;
        -webkit-mask-size: 100% 100%, 100% 100%;
        mask-size: 100% 100%, 100% 100%;
    }

    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        width: 1920px !important;
        height: 823px !important;
        object-fit: cover;
        object-position: 50% 50%;
    }
}


/* 兜底：桌面档会给 .hmb3-link 写 1920×823 的内联样式（设计稿 1:1 渲染），
   万一内联样式残留到手机/平板（首帧宽度判断不准、Safari 刷新后尺寸晚到），
   图片会被撑成 1920 宽、只能看到中间一块。这里在 <=1280 强制回到容器尺寸。 */
@media (max-width: 1280px){
    #home_banner_v2.hmb3 .hmb3-link,
    #home_banner_v3.hmb3 .hmb3-link{
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
    }
}
/* 手机档：竖版 banner 的画面里已经有游戏 logo，再叠一行游戏名会压字、重复。
   1222 行与 src/assets/override.css 都给它写了 display + !important，
   这里加 html 前缀抬高优先级，免得被后注入的 override.css 盖掉。 */
@media (max-width: 768px){
    html #home_banner_v2.hmb3 .hmb3-ph-title,
    html #home_banner_v3.hmb3 .hmb3-ph-title{
        display: none !important;
    }
}

/* 平板档（769–1280，含 iPad Air 820）：标题跟手机一致 32px，
   线在文件末尾，靠“同权重后写覆盖”盖掉 26 行的 48px。 */
@media (min-width: 769px) and (max-width: 1280px){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        --hmb3-title-size: 32px;
    }
}

/* =========================================================
   iPad mini 竖屏（744/768 宽）并入平板档：横版素材 + 7:3 框，与 769–1280 一致。
   原因：手机档的高度上限 520px 会把 744×520 压成 1.43:1，竖版海报（0.84:1）cover
   之后只剩 59% 的高度；换成横版素材并把框改成和素材同比例，就零裁切了。
   只认竖屏：601–768 横着的小手机（740×360 那种）继续走手机档，免得横版图被裁成一条。
   容器左右/底部淡出由 988 行那组 mask 负责（断点已同步放宽到 601）。 */
@media (min-width: 601px) and (max-width: 768px) and (orientation: portrait){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3,
    .hmb3{
        /* 覆盖手机档的全出血（那边带 !important，这里必须同样带） */
        width: min(1920px, calc(100vw - 24px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;

        --hmb3-h: min(823px, calc((100vw - 24px) * 3 / 7));
    }

    /* 手机档给图片加的是「顶部对齐 + 3% 放大 + 从 30% 高度开始淡出」，
       那是给竖版海报用的；这里要像平板一样居中铺满、不放大、不吃淡出。 */
    #home_banner_v2.hmb3 .hmb3-link,
    #home_banner_v3.hmb3 .hmb3-link,
    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        object-position: 50% 50% !important;
        transform: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* 手机档把 CTA 往下拨了 10px，但那套留白是按 460–520 高的竖图算的；
       换成 309 高的横条后整块偏上，再往下补 20px（共 30px），
       底下仍留 ~30px，不会压出 banner 底边。 */
    #home_banner_v2.hmb3 .hmb3-slot,
    #home_banner_v3.hmb3 .hmb3-slot{
        transform: translateY(30px) !important;
    }
}
/* =========================================================
   LOOTBAR 风格卡片轮播（全档）
   参考 https://www.lootbar.com/zh-Hant/ 首页 banner（1440×900 实测值）。
     · 卡片 3:1、8px 圆角，阴影 0 4px 12px rgba(0,0,0,.15)
     · 舞台 = 卡片 + 两侧各一条露边，居中；露边卡缩到 .893、压在激活卡下面
     · 卡片下方 8px 是短条指示点：28×4，非激活 #c0c2c6，激活品牌黄；
     · hover 时两侧露边区出现白色 ‹ ›（无圆底），整条露边区可点 = 上一张/下一张
     · 卡片上不叠游戏名/晒单/按钮，hmb3-inner 全档隐藏，DOM 留给 SEO。
   舞台宽 = 首页内容宽（和商品网格 .iv2-inner 同一条公式，左右边缘对齐）：
     桌面档：卡片 3:1；手机档 卡片 18:7（见文件末尾的 <=768 覆盖段）
   ========================================================= */
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        /* 舞台宽 = 首页统一内容宽（和下面商品网格 .iv2-inner 同一条公式，左右边缘对齐）。
           舞台 = 卡片宽 × 1.25（两侧各一条露边），所以轨道（卡片）恒为舞台的 80%，
           露边恒为舞台的 10%。1440 视口下：舞台 1300、卡片 1040、露边 130。 */
        --hmb3-stage-w: min(var(--home-maxw, 1300px), calc(100% - var(--home-gutter, 100px)));
        /* 露边卡退到平面后方 12px，透视投影出来就是参考站那个 0.893 的缩小量 */
        --hmb3-side-depth: -12px;
        /* 露边卡沿 X 轴的位移（相对卡片自身宽度）——决定露边露出多少：
           位移 20% 时，透视后只有外侧 12.5% 露在激活卡外面。手机档会覆盖成更小的值。 */
        --hmb3-side-dx: 20%;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        /* 内部不再留 padding：上下留白交给 .hmb3-module / stage */
        padding: 0 !important;
        overflow: hidden !important;
        /* banner 区白底；下面的商品区是灰底（body.is-home），分界线在分类入口下方 */
        background: #fff !important;
        border-bottom: 0 !important;
    }

    /* 舞台：宽 = 卡片 × 1.25（两侧各留一条露边），居中等宽；横向裁掉第 2 张以后的卡片，
       纵向留 12px padding 给激活卡的阴影（overflow 裁的是 padding box）。
       左右各 10% 的两条露边用 mask 渐隐到背景色，卡片不再以硬边「断」在舞台边界上
       （参考 ldshop 首页：两侧的相邻 banner 是淡出消失的）。 */
    #home_banner_v2.hmb3 .hmb3-stage,
    #home_banner_v3.hmb3 .hmb3-stage{
        width: var(--hmb3-stage-w);
        margin: 0 auto;
        padding: 12px 0;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    }

    /* 轨道：宽 = 舞台的 80%（百分比是相对舞台算的，不写在变量里，避免 % 在别处解析错），
       高用 3:1 比例算出。 */
    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        position: relative !important;
        width: 80% !important;
        height: auto !important;
        /* 3.33:1：1440 下卡片 1300×390 */
        aspect-ratio: 10 / 3;
        max-height: none !important;
        margin: 0 auto !important;
        overflow: visible !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* 透视必须挂在 slide 的直接父元素（wrapper）上：露边卡靠 translateZ 退后，
       投影出「滚筒」式的立体位移（参考站 UL.c-carousel-items 也是 perspective: 100px）。 */
    #home_banner_v2.hmb3 .hmb3-swiper .swiper-wrapper,
    #home_banner_v3.hmb3 .hmb3-swiper .swiper-wrapper{
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        translate: none !important;
        transition: none !important;
        perspective: 100px;
        perspective-origin: 50% 50%;
        will-change: auto;
    }

    /* 每张卡片：绝对定位在轨道中线上，--dx 负责横向位移（单位是自身宽度的百分比），
       --dz 负责纵深（两者都由 bannerSlideStyle 给出）。激活卡在平面上（-dz: 0），
       相邻卡位移 20% 卡宽并退到后方 12px，透视后缩小到 0.893，只露出外侧 12.5%，
       切换时 Z 轴和 X 轴一起插值，观感就是参考站那种「滚筒」式转场。 */
    #home_banner_v2.hmb3 .hmb3-swiper .hmb3-slide,
    #home_banner_v3.hmb3 .hmb3-swiper .hmb3-slide{
        position: absolute !important;
        inset: auto !important;
        top: 0 !important;
        left: 50% !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        background: #e8eaee;
        /* 阴影压得很浅：参考站的 .15/12px 放在我们这块浅灰底上会把卡片边缘勾得太硬 */
        box-shadow: 0 1px 3px rgba(17, 24, 39, .05) !important;
        transform: translateX(calc(-50% + var(--dx, 0%))) translateZ(var(--dz, 0px)) !important;
        transition: transform .2s ease-out !important;
        will-change: transform;
        z-index: 2;
    }

    #home_banner_v2.hmb3 .hmb3-swiper .hmb3-slide.swiper-slide-active,
    #home_banner_v3.hmb3 .hmb3-swiper .hmb3-slide.swiper-slide-active{
        z-index: 3;
    }

    /* 首尾克隆归位那一帧：不加过渡，避免肉眼看到卡片倒滑 */
    #home_banner_v2.hmb3.is-banner-jump .hmb3-swiper .hmb3-slide,
    #home_banner_v3.hmb3.is-banner-jump .hmb3-swiper .hmb3-slide{
        transition: none !important;
    }

    /* 卡片内：链接/图片铺满，去掉原来的 1920×823 内联尺寸与底部淡出 mask；
       素材是 1920×823，卡片是 3:1 时 cover 会上下各裁一点，位置略上移，保住标题行。 */
    #home_banner_v2.hmb3 .hmb3-link,
    #home_banner_v3.hmb3 .hmb3-link{
        position: absolute !important;
        inset: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        width: 100% !important;
        height: 99% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: 50% 44% !important;
        transform: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* 文字覆盖层（封面 + 游戏名 + 晒单 + 两个按钮）PC 与移动端都显示，
       位置/配色沿用下面 .hmb3-slot 那一套；这里只放开显示，不再隐藏。 */

    #home_banner_v2.hmb3 .hmb3-controls,
    #home_banner_v3.hmb3 .hmb3-controls{
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        z-index: 4;
        pointer-events: none !important;
    }

    /* 箭头：整条露边区就是热区（露边宽 × 卡片高），常显白色圆钮，hover/focus 略放大；
       section 高 = 20(pad) + 12(stage pad) + 卡片高 + 12 + (-4)(dots margin) + 16(dots) + 26(pad)
       所以热区的上边 = 32px、下边 = 50px。露边宽 = 舞台的 10%（卡片宽的 12.5%）。 */
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav{
        position: absolute !important;
        top: 32px !important;
        bottom: auto !important;
        height: calc(100% - 82px) !important;
        width: calc(var(--hmb3-stage-w) * .1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
        opacity: 1;
        cursor: pointer;
        pointer-events: auto !important;
        transition: opacity .18s ease !important;
    }

    /* 箭头本体：白色圆钮 + 深色细箭头，常显（原来是 hover 才出现的透明剪影，太不显眼） */
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav .hmb3-ico,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav .hmb3-ico{
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .94);
        color: #1f2937 !important;
        font-size: 28px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        /* ‹ › 两个字形在多数字体里偏上，稍微压一下让它居中 */
        padding-bottom: 3px;
        box-shadow: 0 2px 10px rgba(17, 24, 39, .22);
        transition: background-color .18s ease, transform .18s ease;
    }

    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav:hover .hmb3-ico,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav:hover .hmb3-ico,
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav:focus-visible .hmb3-ico,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav:focus-visible .hmb3-ico{
        background: #fff;
        transform: scale(1.08);
    }

    #home_banner_v2.hmb3 .hmb3-controls .hmb3-prev,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-prev{
        left: calc((100% - var(--hmb3-stage-w)) / 2) !important;
        right: auto !important;
    }

    #home_banner_v2.hmb3 .hmb3-controls .hmb3-next,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-next{
        left: auto !important;
        right: calc((100% - var(--hmb3-stage-w)) / 2) !important;
    }

    /* 热区是一整条露边 × 卡片高 的透明按钮，浏览器默认焦点框会画成一个黑方框，
       这里去掉 outline，用箭头圆钮上的放大作为键盘焦点提示。 */
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav:focus,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav:focus,
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav:focus-visible,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav:focus-visible{
        outline: none !important;
    }

    /* 指示点：6px 正圆 + 激活态 20×6 胶囊（对齐设计稿），点击区靠透明描边撑到 14px。 */
    #home_banner_v2.hmb3 .hmb3-dots,
    #home_banner_v3.hmb3 .hmb3-dots{
        position: relative;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        height: 18px;
        /* 往上顶掉 stage 的 12px 内边距，让圆点离卡片只有 14px（参考站实测值） */
        margin-top: -4px;
    }

    #home_banner_v2.hmb3 .hmb3-dot,
    #home_banner_v3.hmb3 .hmb3-dot{
        box-sizing: content-box;
        width: 6px;
        height: 6px;
        padding: 0;
        /* 用透明描边撑命中区，画出来的才是正圆 */
        border: 4px solid transparent;
        border-radius: 999px;
        background: #c0c2c6;
        background-clip: padding-box;
        cursor: pointer;
        transition: width .25s ease, height .25s ease, border-width .25s ease, background-color .2s ease;
    }

    /* 激活点 = 当前这张图：实心长椭圆（品牌黄），不用描边 */
    #home_banner_v2.hmb3 .hmb3-dot.is-active,
    #home_banner_v3.hmb3 .hmb3-dot.is-active{
        width: 20px;
        height: 10px;
        border-width: 2px;
        border-color: transparent;
        background: #f5a300;
        background-clip: content-box;
    }

/* 769-860：商品网格在这一档已经换成手机留白（--home-gutter-m），banner 跟着它走，
   否则最窄的桌面档两根轴线会差 74px。 */
@media (min-width: 769px) and (max-width: 860px){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        --hmb3-stage-w: calc(100% - var(--home-gutter-m, 26px));
    }
}

/* 手机档（<=768）：照参考站手机端——卡片满宽出血，左右不露相邻卡片、不出现切换按钮，
   指示点叠在卡片底部中间（白色圆点，参考站就是这个排法）。
   390 视口下实测：卡片 0..390（390×152，18:7），圆点在卡片底上方约 12px。 */
@media (max-width: 768px){
    #home_banner_v2.hmb3,
    #home_banner_v3.hmb3{
        --hmb3-stage-w: 100%;
        /* 手机不做透视缩放；相邻卡片位移 100% 后正好完全错出屏幕 */
        --hmb3-side-depth: 0px;
        --hmb3-side-dx: 100%;

        /* 上下留白全部交给外层 .hmb3-module 的 15px，section 自己不再留白 */
        padding: 0 !important;
    }

    #home_banner_v2.hmb3 .hmb3-stage,
    #home_banner_v3.hmb3 .hmb3-stage{
        padding: 0;
        /* 参考站手机端两侧不做淡出 */
        -webkit-mask-image: none;
        mask-image: none;
    }

    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        width: 100% !important;
        /* 手机端 2:1（390 下卡片 364×182），按设计稿 */
        aspect-ratio: 2 / 1;
    }

    #home_banner_v2.hmb3 .hmb3-img,
    #home_banner_v3.hmb3 .hmb3-img{
        /* 18:7 只从 2.33:1 的素材上裁掉约 9% 的高度，居中裁就行 */
        object-position: 50% 50% !important;
    }

    /* 卡片里的图是整张铺满的，左右不再做白色收边 */
    #home_banner_v2.hmb3 .hmb3-slide::before,
    #home_banner_v3.hmb3 .hmb3-slide::before,
    #home_banner_v2.hmb3 .hmb3-slide::after,
    #home_banner_v3.hmb3 .hmb3-slide::after{
        content: none;
    }

    /* 手机上不显示左右圆钮（滑动 + 圆点就够了，参考站手机端也没有） */
    #home_banner_v2.hmb3 .hmb3-controls,
    #home_banner_v3.hmb3 .hmb3-controls{
        display: none !important;
    }

    /* 指示点和 PC 完全一致：28×4 短条、灰/品牌黄；手机端压在卡片底部中间，不单独占一行 */
    #home_banner_v2.hmb3 .hmb3-dots,
    #home_banner_v3.hmb3 .hmb3-dots{
        display: none !important;
        position: absolute;
        z-index: 4;
        left: 0;
        right: 0;
        /* section 底部还留了 16px，20px 的 bottom 让圆点落在卡片底上方约 10px */
        bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 12px;
        margin: 0;
        pointer-events: auto;
    }

    #home_banner_v2.hmb3 .hmb3-dot,
    #home_banner_v3.hmb3 .hmb3-dot{
        box-sizing: content-box;
        width: 5px;
        height: 5px;
        padding: 0;
        border: 4px solid transparent;
        border-radius: 999px;
        background: #c0c2c6;
        background-clip: padding-box;
        cursor: pointer;
        transition: width .25s ease, background-color .2s ease;
    }

    #home_banner_v2.hmb3 .hmb3-dot.is-active,
    #home_banner_v3.hmb3 .hmb3-dot.is-active{
        width: 16px;
        background: #f5a300;
        background-clip: padding-box;
    }
}

/* =========================================================
   首页 banner 模块：轮播 + 指示点 + 分类入口在同一个盒子里（一块白底、底部一条分割线）。
   桌面：盒子满宽，盒子内的舞台 / 分类行都按商品网格宽度居中，左右边缘与商品对齐；
   手机：盒子左右留 --home-gutter-m/2（= 13px）、上下各 15px，卡片与分类行贴盒子内边缘。
   ========================================================= */
.hmb3-module{
    background: #fff;
    /* 参考站的分割线是很淡的一根（rgba(0,0,0,.08)），不要用重色 */
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    margin-bottom: 40px;
    /* 底部留一点呼吸，避免按钮行贴着分割线 */
    padding-bottom: 16px;
}

/* 分类入口那一行已按需求整体移除（PC + 移动），相关样式一并删除。 */

@media (max-width: 768px){
    /* 手机端整个模块一块：上下各 15px，左右和下面商品网格同宽同起点 */
    .hmb3-module{
        padding: 15px calc(var(--home-gutter-m, 26px) / 2);
        margin-bottom: 16px;
    }
}

/* =========================================================
   移动端吸底新人优惠条（仅 <=768 显示）
   位置参考 ldshop：贴在底部 tabbar 上方，白色底 + 顶部一根淡线。
   tabbar 变量来自 public/css/partials/footer-v2.css:288-305。
   ========================================================= */
.hmb3-promo{
    display: none;
}

@media (max-width: 768px){

    .hmb3-promo{
        position: fixed;
        left: 0;
        right: 0;
        /* 紧贴底部 tabbar 上沿（tabbar 自身 bottom = env(safe-area-inset-bottom)、高 52px） */
        bottom: calc(env(safe-area-inset-bottom) + var(--fm-mbbar-h, 52px));
        z-index: 9998;
        display: block;
        padding: 10px 13px 12px;
        /* 淡淡的黄底，和活动条呼应 */
        background: #fff9e8;
        border-top: 1px solid rgba(15, 23, 42, .08);
        box-shadow: 0 -6px 16px rgba(15, 23, 42, .08);
        box-sizing: border-box;
    }

    .hmb3-promo-text{
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 9px;
        color: #1f2937;
        font-size: 13px;
        line-height: 1.35;
    }

    .hmb3-promo-ico{
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #f5a300;
    }

    .hmb3-promo-ico svg{
        width: 20px;
        height: 20px;
    }

    .hmb3-promo-copy{
        flex: 1 1 auto;
        min-width: 0;
    }

    .hmb3-promo-hl{
        color: #e5484d;
        font-weight: 700;
        white-space: nowrap;
    }

    .hmb3-promo-actions{
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .hmb3-promo-later{
        flex: 0 0 38%;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(31, 41, 55, .14);
        border-radius: 10px;
        background: #fff;
        color: #6b7280;
        font-size: 14px;
        font-family: inherit;
        cursor: pointer;
    }

    .hmb3-promo-cta{
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        border-radius: 10px;
        /* 项目统一的品牌黄 */
        background: #ffcb2e;
        color: #1f2937;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .hmb3-promo-cta:active{
        background: #efb900;
    }

    /* 吸底条占用约 92px；首页底部的留白由 footer 自己承担（footer-v2.css:685-690），
       这里把这段高度加回去，最下面的内容才不会被长期遮住 */
    body.is-home.has-mbtabbar #site_footer.fmhb2[class],
    body.is-home.mb-has-tabbar #site_footer.fmhb2[class]{
        padding-bottom: calc(48px + env(safe-area-inset-bottom) + 8px + var(--fm-promo-space, 0px)) !important;
    }
}

/* =========================================================
   卡片上的文字覆盖层（封面 + 游戏名 + 晒单 + 两个按钮）
   PC 与移动端都显示，贴在「激活卡片」左下角。
   .hmb3-inner 先对齐到舞台（stage）宽度，卡片占舞台 80%（手机 100%），
   所以槽位与底部白色渐变都用相对舞台的百分比，和卡片严丝合缝。

   可读性：在卡片下半部铺一层从白到透明的渐变（.hmb3-inner::before），
   文字一律压在白底上——不管 banner 素材多花、多深，字都看得清。
   ========================================================= */
@media (min-width: 769px){
    #home_banner_v2.hmb3 .hmb3-overlay,
    #home_banner_v3.hmb3 .hmb3-overlay{
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
    }

    #home_banner_v2.hmb3 .hmb3-inner,
    #home_banner_v3.hmb3 .hmb3-inner{
        position: relative !important;
        width: var(--hmb3-stage-w) !important;
        max-width: none !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* 卡片下半部的白色渐隐：压住素材，保证文字对比度 */
    #home_banner_v2.hmb3 .hmb3-inner::before,
    #home_banner_v3.hmb3 .hmb3-inner::before{
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: 0;
        height: 62%;
        z-index: 1;
        border-radius: 0 0 8px 8px;
        background: linear-gradient(to top,
            rgba(255, 255, 255, .97) 0%,
            rgba(255, 255, 255, .92) 22%,
            rgba(255, 255, 255, .6) 52%,
            rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
    }

    #home_banner_v2.hmb3 .hmb3-slot,
    #home_banner_v3.hmb3 .hmb3-slot{
        position: absolute !important;
        z-index: 2;
        left: calc(10% + 36px) !important;
        bottom: 52px !important;
        max-width: calc(80% - 88px) !important;
        transform: none !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph,
    #home_banner_v3.hmb3 .hmb3-ph{
        gap: 18px !important;
        align-items: flex-end !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-logo,
    #home_banner_v3.hmb3 .hmb3-ph-logo{
        width: 92px !important;
        height: 123px !important;
        border-radius: 14px !important;
        /* 和手机端一致：白描边 + 投影，和 banner 底图分开 */
        box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 10px 22px rgba(17, 24, 39, .32), 0 2px 6px rgba(17, 24, 39, .18) !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-title,
    #home_banner_v3.hmb3 .hmb3-ph-title{
        font-size: 26px !important;
        line-height: 1.18 !important;
        letter-spacing: -.01em !important;
        margin: 0 0 6px 0 !important;
        color: #111827 !important;
    }

    #home_banner_v2.hmb3 .hmb3-ticker,
    #home_banner_v3.hmb3 .hmb3-ticker{
        margin: 0 0 12px 0 !important;
        font-size: 13px !important;
        gap: 8px !important;
    }

    #home_banner_v2.hmb3 .hmb3-ph-actions,
    #home_banner_v3.hmb3 .hmb3-ph-actions{
        gap: 10px !important;
    }

    #home_banner_v2.hmb3 .hmb3-btn,
    #home_banner_v3.hmb3 .hmb3-btn{
        height: 40px !important;
        padding: 0 20px !important;
        font-size: 13.5px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .14) !important;
    }

    /* 未登录时 banner 上方的新人券提示条（桌面档） */
    .hmb3-notice{
        /* 卡片是定位元素（z-index 1~3），提示条不定位会被它们盖住 */
        position: relative;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 44px;
        padding: 7px 16px;
        background: #fdf7e3;
        border-bottom: 1px solid rgba(15, 23, 42, .06);
        color: #3f3f46;
        font-size: 14px;
        line-height: 1.3;
    }

    .hmb3-notice-ico{
        display: inline-flex;
        align-items: center;
        color: #d97706;
    }

    .hmb3-notice-copy{
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hmb3-notice-hl{
        color: #e5484d;
        font-weight: 700;
        margin: 0 2px;
    }

    .hmb3-notice-cta{
        flex: none;
        display: inline-flex;
        align-items: center;
        height: 30px;
        padding: 0 16px;
        margin-left: 4px;
        border-radius: 999px;
        background: #1f2937;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: background .2s ease;
    }

    .hmb3-notice-cta:hover{
        background: #111827;
    }
}

@media (max-width: 768px){
    /* 手机端覆盖层只留两个按钮：指示点、晒单行都隐藏 */
    #home_banner_v2.hmb3 .hmb3-dots,
    #home_banner_v3.hmb3 .hmb3-dots{
        display: none !important;
    }

    /* 手机端 banner 模块底部不要那条分界线，卡片下面直接接商品区 */
@media (max-width: 768px){
    .hmb3-module{
        border-bottom: 0 !important;
        padding-bottom: 10px !important;
    }
}

/* 手机端覆盖层：整块竖向叠放，底部对齐——晒单行在上、两个等宽按钮在下 */
    /* 手机端不显示 banner 上方的新人提示条（手机由吸底的新人条承担） */
    .hmb3-notice{
        display: none !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-inner,
    html body #home_banner_v3.hmb3 .hmb3-inner{
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        height: 100% !important;
        max-height: 100% !important;
        padding: 0 16px 26px !important;
    }


    /* 手机端卡片不要投影：浅色底上会沿下沿勾出一条灰线，看起来像 banner 和盒子之间有缝 */
    html body #home_banner_v2.hmb3 .hmb3-swiper .hmb3-slide,
    html body #home_banner_v3.hmb3 .hmb3-swiper .hmb3-slide{
        box-shadow: none !important;
        /* 图片高度是小数，卡片底部会漏出 1px 底色，这里压成白色 */
        background: #fff !important;
    }

    /* 卡片底部一层白色渐隐，晒单行压在浅色区上，花哨 banner 上也读得清 */
    html body #home_banner_v2.hmb3 .hmb3-inner::before,
    html body #home_banner_v3.hmb3 .hmb3-inner::before{
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -14px;
        height: 46%;
        pointer-events: none;
        /* 底部这段必须是纯白，否则和卡片下沿之间会露出一条缝 */
        background: linear-gradient(to top, #fff 0%, #fff 14%, rgba(255, 255, 255, .72) 48%, rgba(255, 255, 255, 0) 100%);
        z-index: 0;
    }

    html body #home_banner_v2.hmb3 .hmb3-slot,
    html body #home_banner_v3.hmb3 .hmb3-slot{
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        transform: none !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ph,
    html body #home_banner_v3.hmb3 .hmb3-ph{
        display: block !important;
        height: auto !important;
        text-align: center !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ph-body,
    html body #home_banner_v3.hmb3 .hmb3-ph-body{
        display: block !important;
        grid-template-rows: none !important;
        height: auto !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ticker,
    html body #home_banner_v3.hmb3 .hmb3-ticker{
        justify-content: center !important;
        margin: 0 0 10px 0 !important;
        font-size: 12px !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ph-actions,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions{
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        width: 100% !important;
        gap: 12px !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ph-actions .hmb3-btn,
    html body #home_banner_v2.hmb3 .hmb3-ph-actions .hmb3-badge,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions .hmb3-btn,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions .hmb3-badge{
        flex: 1 1 0 !important;
        width: auto !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }
}

/* ============================================================================
   试验：PC 卡片铺满内容宽（= 下方商品网格宽），不再露左右相邻卡
   —— 只影响桌面档，手机档逻辑不变
   ============================================================================ */
@media (min-width: 769px) {
    #home_banner_v2.hmb3 .hmb3-stage,
    #home_banner_v3.hmb3 .hmb3-stage{
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    #home_banner_v2.hmb3 .hmb3-swiper,
    #home_banner_v3.hmb3 .hmb3-swiper{
        width: 100% !important;
    }

    /* 覆盖层的白色渐隐和内容起点跟着卡片变宽重算 */
    #home_banner_v2.hmb3 .hmb3-inner::before,
    #home_banner_v3.hmb3 .hmb3-inner::before{
        left: 0 !important;
        right: 0 !important;
    }

    #home_banner_v2.hmb3 .hmb3-slot,
    #home_banner_v3.hmb3 .hmb3-slot{
        left: 36px !important;
        max-width: calc(100% - 260px) !important;
    }

    /* 箭头改成右下角并排两个圆钮 */
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-nav,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-nav{
        top: auto !important;
        bottom: 66px !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* 卡片底边到 section 底边固定 26px（stage 12 + dots 14），再多留 16px 就是按钮底边 */
    #home_banner_v2.hmb3 .hmb3-controls .hmb3-prev,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-prev{
        left: auto !important;
        right: calc((100% - var(--hmb3-stage-w)) / 2 + 16px + 66px) !important;
    }

    #home_banner_v2.hmb3 .hmb3-controls .hmb3-next,
    #home_banner_v3.hmb3 .hmb3-controls .hmb3-next{
        right: calc((100% - var(--hmb3-stage-w)) / 2 + 16px) !important;
    }
}

/* ============================================================================
   移动端：按设计稿布局
   —— 白底圆角卡：标题 + 晒单在卡顶白区，banner 图是卡内一块圆角图，
      游戏封面压在图片右侧，指示点在图片下方白区，两个 CTA 在卡片下方
   ============================================================================ */
@media (max-width: 768px) {
    /* 卡片下方给两个 CTA 留位置 */
    html body #home_banner_v2.hmb3,
    html body #home_banner_v3.hmb3{
        padding-bottom: 56px !important;
    }

    /* 卡片：白底圆角 */
    html body #home_banner_v2.hmb3 .hmb3-swiper .hmb3-slide,
    html body #home_banner_v3.hmb3 .hmb3-swiper .hmb3-slide{
        background: #fff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 10px rgba(17, 24, 39, .06) !important;
    }

    /* 图片是卡内一块圆角图：上 46px 留给标题/晒单，下 30px 留给指示点 */
    html body #home_banner_v2.hmb3 .hmb3-link,
    html body #home_banner_v3.hmb3 .hmb3-link{
        display: block !important;
        height: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-img,
    html body #home_banner_v3.hmb3 .hmb3-img{
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: 50% 50% !important;
        border-radius: 16px !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* 覆盖层只当定位容器，里面的文字/按钮全部绝对定位 */
    html body #home_banner_v2.hmb3 .hmb3-inner,
    html body #home_banner_v3.hmb3 .hmb3-inner{
        position: relative !important;
        display: block !important;
        padding: 0 !important;
        height: 100% !important;
    }

    /* 文字都在白区，底部那层白雾不需要了 */
    html body #home_banner_v2.hmb3 .hmb3-inner::before,
    html body #home_banner_v3.hmb3 .hmb3-inner::before{
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: auto !important;
        height: 34% !important;
        background: linear-gradient(to bottom, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* 底部不再铺白雾，指示点直接压在图上 */
    html body #home_banner_v2.hmb3 .hmb3-inner::after,
    html body #home_banner_v3.hmb3 .hmb3-inner::after{
        content: none !important;
    }

    /* 没有白雾兜底，用 drop-shadow 给指示点描一圈淡淡的边，保证在任何图上都看得见 */
    html body #home_banner_v2.hmb3 .hmb3-dots .hmb3-dot,
    html body #home_banner_v3.hmb3 .hmb3-dots .hmb3-dot{
        filter: drop-shadow(0 1px 2px rgba(17, 24, 39, .45)) !important;
    }

    /* 文字/封面/指示点都要压在渐变之上 */
    html body #home_banner_v2.hmb3 .hmb3-ph-title,
    html body #home_banner_v3.hmb3 .hmb3-ph-title,
    html body #home_banner_v2.hmb3 .hmb3-ticker,
    html body #home_banner_v3.hmb3 .hmb3-ticker{
        z-index: 2 !important;
    }

    /* slot / ph 不定位，让子元素以 inner 为定位父级 */
    html body #home_banner_v2.hmb3 .hmb3-slot,
    html body #home_banner_v3.hmb3 .hmb3-slot,
    html body #home_banner_v2.hmb3 .hmb3-ph,
    html body #home_banner_v3.hmb3 .hmb3-ph,
    html body #home_banner_v2.hmb3 .hmb3-ph-body,
    html body #home_banner_v3.hmb3 .hmb3-ph-body{
        position: static !important;
        display: block !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        grid-template-rows: none !important;
    }

    /* 标题：卡顶左侧 */
    html body #home_banner_v2.hmb3 .hmb3-ph-title,
    html body #home_banner_v3.hmb3 .hmb3-ph-title{
        display: block !important;
        position: absolute !important;
        top: 12px !important;
        left: 18px !important;
        right: 120px !important;
        width: calc(100% - 138px) !important;
        max-width: calc(100% - 138px) !important;
        /* override.css 里有一条 min-width:100% !important，会把标题顶成整行 */
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        font-size: 19px !important;
        line-height: 22px !important;
        color: #1f2937 !important;
        text-shadow: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 晒单行：标题下面 */
    html body #home_banner_v2.hmb3 .hmb3-ticker,
    html body #home_banner_v3.hmb3 .hmb3-ticker{
        position: absolute !important;
        top: 38px !important;
        left: 18px !important;
        right: 18px !important;
        width: calc(100% - 36px) !important;
        max-width: calc(100% - 36px) !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 11px !important;
        color: #6b7280 !important;
    }

    /* 游戏封面：压在图片右侧 */
    html body #home_banner_v2.hmb3 .hmb3-ph-logo,
    html body #home_banner_v3.hmb3 .hmb3-ph-logo{
        display: block !important;
        position: absolute !important;
        top: 76px !important;
        right: 18px !important;
        width: 84px !important;
        height: 104px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 10px 22px rgba(17, 24, 39, .32), 0 2px 6px rgba(17, 24, 39, .18) !important;
        z-index: 3 !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ph-logo img,
    html body #home_banner_v3.hmb3 .hmb3-ph-logo img{
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 两个 CTA：卡片下方等宽 */
    html body #home_banner_v2.hmb3 .hmb3-ph-actions,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions{
        position: absolute !important;
        left: 14px !important;
        right: 14px !important;
        bottom: 4px !important;
        width: auto !important;
        z-index: 3 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }

    html body #home_banner_v2.hmb3 .hmb3-ph-actions .hmb3-btn,
    html body #home_banner_v2.hmb3 .hmb3-ph-actions .hmb3-badge,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions .hmb3-btn,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions .hmb3-badge{
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 40px !important;
        min-height: 40px !important;
    }

    /* 白色 CTA 用品牌黄细描边 */
    html body #home_banner_v2.hmb3 .hmb3-ph-actions .hmb3-badge,
    html body #home_banner_v3.hmb3 .hmb3-ph-actions .hmb3-badge{
        border: 1px solid rgba(245, 163, 0, .55) !important;
    }

    /* 指示点：图片下方白区、靠左 */
    html body #home_banner_v2.hmb3 .hmb3-dots,
    html body #home_banner_v3.hmb3 .hmb3-dots{
        display: flex !important;
        position: absolute !important;
        left: 18px !important;
        right: auto !important;
        bottom: 58px !important;
        height: 12px !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
}

/* ===== /css/partials/footer-v2.css ===== */
/* public/assets/test/css/partials/footer-home-v2.css */
/* Home Footer V2 (PC black full-width + Mobile spec) + Mobile TabBar (clean final) */

#site_footer.fmhb2{
  --hb2-max: 1410px;
  --hb2-radius: 56px;
  --hb2-left-w: 420px;

  margin: 0;
  padding: 0;
  border: 0;

  /* ⛔ 必须提层：游戏详情页的 `main#page_main` 是 position:relative + isolation:isolate，
     自成层叠上下文，按绘制顺序整块**画在静态 footer 之上**；main 内部那个铺满视口、
     z-index:-1 的浅色渐变（`main::after`，白 2%→68%）就会盖住 footer，把深底压成浅灰、
     白字几乎看不见（/about /news 的 main 没这两个属性，所以只有 /game/* 发病）。
     提升为定位元素后 footer 重新画在 main 之上；购买栏(9990)/弹层(1000020) 仍然更高。 */
  position: relative;
  z-index: 1;

  background: #080a0f;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
#site_footer.fmhb2,
#site_footer.fmhb2 *{
  box-sizing: border-box;
}

#site_footer.fmhb2 .hb2-wrap{
  width: 100%;
  margin: 0;
  padding: 26px 0 30px;
}
#site_footer.fmhb2 .hb2-card{
  width: min(var(--hb2-max), calc(100% - 44px));
  margin: 0 auto;

  display: flex;
  overflow: hidden;
  border-radius: var(--hb2-radius);
  background:
    radial-gradient(900px 520px at 0% 45%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(90deg, #0b0f16 0%, #070a10 100%);
  box-shadow: 0 26px 80px rgba(0,0,0,.55);
}

/* left */
#site_footer.fmhb2 .hb2-left{
  flex: 0 0 var(--hb2-left-w);
  padding: 34px 34px 30px;
  position: relative;
}
#site_footer.fmhb2 .hb2-left::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,.08);
}

#site_footer.fmhb2 .hb2-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}
#site_footer.fmhb2 .hb2-brand img{
  height: 67px;
  width: auto;
  display: block;
}
#site_footer.fmhb2 .hb2-brand--m{ display: none; }
#site_footer.fmhb2 .hb2-brand--pc{ display: inline-flex; }

/* sns (PC) */
#site_footer.fmhb2 .hb2-sns{
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
#site_footer.fmhb2 .hb2-sns-btn{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  text-decoration: none;

  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
#site_footer.fmhb2 .hb2-sns-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
}
#site_footer.fmhb2 .hb2-sns-btn svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
#site_footer.fmhb2 .hb2-ico-txt{
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
}

/* right */
#site_footer.fmhb2 .hb2-right{
  flex: 1 1 auto;
  padding: 38px 54px 34px;
}
#site_footer.fmhb2 .hb2-nav{
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  column-gap: clamp(80px, 7vw, 150px);
  row-gap: 26px;
}
#site_footer.fmhb2 .hb2-ttl{
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}
#site_footer.fmhb2 .hb2-link{
  display: block;
  text-decoration: none;
  font-size: 16px;
  line-height: 2.05;
  color: rgba(255,255,255,.42);
  transition: color .14s ease, transform .14s ease;
}
#site_footer.fmhb2 .hb2-link:hover{
  color: rgba(255,255,255,.72);
  transform: translateX(1px);
}
#site_footer.fmhb2 .hb2-copy{
  margin-top: 14px;
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,.38);
}

/* 经营主体 + 客服邮箱：广告落地页的信任基线，桌面右对齐、跟在版权行下面 */
#site_footer.fmhb2 .hb2-entity{
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.30);
}
#site_footer.fmhb2 .hb2-entity__name{
  display: block;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#site_footer.fmhb2 .hb2-entity__mail{
  display: inline-block;
  margin-top: 2px;
  color: rgba(255,255,255,.52);
  text-decoration: none;
}
#site_footer.fmhb2 .hb2-entity__mail:hover{
  color: rgba(255,255,255,.78);
  text-decoration: underline;
}

/* =========================
   Mobile footer spec
   ========================= */
@media (max-width: 768px){

  #site_footer.fmhb2 .hb2-brand img{
    height: 67px;
    padding-left: 0;
    margin-top: 0;
    width: auto;
    display: block;
  }

  #site_footer.fmhb2{
    padding-bottom: 70px;
    background: #fff;
    color: #000;
  }

  #site_footer.fmhb2 .hb2-wrap{ padding: 0; }

  #site_footer.fmhb2 .hb2-card{
    width: 100%;
    margin: 0;
    border-radius: 0;
    flex-direction: column;
    background: #fff;
    box-shadow: none;
  }

  #site_footer.fmhb2 .hb2-left{ order: 2; }
  #site_footer.fmhb2 .hb2-right{ order: 1; }

  #site_footer.fmhb2 .hb2-left{
    padding: 6px 16px 18px;
    flex: 0 0 auto;
    position: relative;
  }
  #site_footer.fmhb2 .hb2-left::after{ display: none; }

  #site_footer.fmhb2 .hb2-brand--pc{ display: none; }
  #site_footer.fmhb2 .hb2-brand--m{
    display: flex;
    justify-content: center;
    padding: 14px 12px 6px;
  }
  #site_footer.fmhb2 .hb2-brand--m img{
    height: 48px;
    width: auto;
    display: block;
  }

  #site_footer.fmhb2 .hb2-right{ padding: 8px 16px 4px; }

  #site_footer.fmhb2 .hb2-nav{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 0;
  }

  #site_footer.fmhb2 .hb2-ttl{
    align-self: stretch;
    margin: 10px 0 10px;
    color: #000;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -1px;
  }

  #site_footer.fmhb2 .hb2-link{
    color: rgba(0,0,0,0.50);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: -0.165px;

    text-decoration: none;
    transform: none;
    padding: 2px 0;
  }

  #site_footer.fmhb2 .hb2-sns{
    position: static;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  #site_footer.fmhb2 .hb2-sns-btn{
    width: 54px;
    height: 54px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.16);
    color: #111827;
    box-shadow: none;
  }

  #site_footer.fmhb2 .hb2-copy{ display: none; }

  /*
   * 移动端版权行是隐藏的，但经营主体**不能**跟着藏：广告流量大半来自移动端，
   * 「谁在卖、怎么联系」是审核与信任的硬要求。手机上改成居中的浅灰小字。
   */
  #site_footer.fmhb2 .hb2-entity{
    display: block;
    margin: 12px 16px 4px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(0,0,0,0.45);
  }
  #site_footer.fmhb2 .hb2-entity__mail{
    color: rgba(0,0,0,0.60);
  }

  #mobile_tabbar .mb-tab{
    position: relative;
    overflow: visible;
  }

  #mobile_tabbar .mb-tab .mb-tab-badge{
    position: absolute;
    left: calc(50% + 8px);
    top: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(239,68,68,.22);
    border: 2px solid rgba(255,255,255,.96);
    pointer-events: none;
    z-index: 3;
  }

  #mobile_tabbar .mb-tab .mb-tab-badge[hidden]{
    display: none !important;
  }
}

/* ===================================================================
   Mobile Bottom TabBar - final clean version
   =================================================================== */

:root{
  --fm-mbbar-h: 52px;       /* 比你之前 56px 再低一点 */
  --fm-mbbar-side: 12px;
  --fm-mbbar-lift: 8px;     /* 整体上移 8px */
  --fm-mbbar-cols: 4;
}

@media (max-width: 900px){

  body.has-mbtabbar #page_main{
    padding-bottom: calc(var(--fm-mbbar-h) + env(safe-area-inset-bottom) + 16px);
  }

  #mobile_tabbar{
    position: fixed;
    left: var(--fm-mbbar-side);
    right: var(--fm-mbbar-side);
    bottom: calc(env(safe-area-inset-bottom) + var(--fm-mbbar-lift));
    height: var(--fm-mbbar-h);

    display: flex;
    align-items: stretch;

    padding: 2px;
    z-index: 9999;
    overflow: hidden;

    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow:
      0 8px 20px rgba(15,23,42,.09),
      0 2px 6px rgba(15,23,42,.04);

    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;   /* 左下不要半圆 */
    border-bottom-right-radius: 0;  /* 右下不要半圆 */

    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #mobile_tabbar .mb-tab{
    flex: 1 1 0;
    min-width: 0;
    height: 100%;

    margin: 0;
    padding: 0 1px 2px;   /* 整体位置更自然，轻微靠下 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;

    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    color: #8F8F8F;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
  }

  #mobile_tabbar .mb-tab:active{
    transform: scale(.985);
  }

  #mobile_tabbar .mb-tab.is-active{
    color: #090B08;
    background: rgba(9,11,8,.05);
  }

  /* icon 容器：不固定死高度，避免上方空白 */
  #mobile_tabbar .mb-tab-ico-wrap{
    width: 100%;
    height: auto;
    flex: 0 0 auto;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    line-height: 0;
    margin: 0;
    transform: none;
  }

  /* 默认 icon */
  #mobile_tabbar .mb-tab-ico{
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
    transform: none;
    vertical-align: bottom;
  }

  /* 按你四个 SVG 微调 */
  #mobile_tabbar .mb-tab--home .mb-tab-ico{
    width: 17px;
    height: 16px;
  }

  #mobile_tabbar .mb-tab--orders .mb-tab-ico{
    width: 14px;
    height: 15px;
  }

  #mobile_tabbar .mb-tab--support .mb-tab-ico{
    width: 18px;
    height: 18px;
  }

  #mobile_tabbar .mb-tab--me .mb-tab-ico{
    width: 18px;
    height: 18px;
  }

  #mobile_tabbar .mb-tab em{
    display: block;
    width: 100%;
    min-width: 0;

    margin: 0;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;

    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transform: none;
  }

  #mobile_tabbar .mb-tab.is-active em::after{
    display: none !important;
  }

  #fm_chat_widget_wrap{
    display: none !important;
  }
}

@media (min-width: 901px){
  #mobile_tabbar{
    display: none !important;
  }
}

@media (max-width: 900px){

  /* 1) 去掉底部“悬空感” */
  body.has-mbtabbar #page_main{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 10px);
  }

  #mobile_tabbar{
    bottom: env(safe-area-inset-bottom); /* 去掉之前额外上抬的 8px */
    height: 52px;                        /* 再压低一点高度 */
    padding: 1px 2px;                    /* 内边距也收紧 */
  }



  /* 4) 再把 icon 容器本身压实一点 */
  #mobile_tabbar .mb-tab-ico-wrap{
    line-height: 0;
  }
}


@media (max-width: 900px){

  /* 1) bar 本体往上留一点点，补回底部留白 */
  #mobile_tabbar{
    bottom: calc(env(safe-area-inset-bottom));
  }

  /* 2) 页面底部安全区同步一点，避免内容被顶住 */
  body.has-mbtabbar #page_main{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 12px);
  }

}















@media (max-width: 900px){

  /* iOS 主屏启动：整块 bar 上移，而不是 bar 自己长高 */
  html.is-ios-standalone #mobile_tabbar{
    bottom: env(safe-area-inset-bottom) !important;
    
    height: 48px !important;
    padding: 1px 2px !important;
    box-sizing: border-box !important;

    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  html.is-ios-standalone #mobile_tabbar .mb-tab{
    height: 100% !important;
    padding: 0 1px 1px !important;
    justify-content: flex-end !important;
    gap: 0 !important;
  }

  /* 清掉你前面可能残留的 transform 干扰 */
  html.is-ios-standalone #mobile_tabbar .mb-tab-ico-wrap,
  html.is-ios-standalone #mobile_tabbar .mb-tab em{
    transform: none !important;
  }

  /* 注意：你 body 原始是 mb-has-tabbar，不是只有 has-mbtabbar */
  html.is-ios-standalone body.mb-has-tabbar #page_main,
  html.is-ios-standalone body.has-mbtabbar #page_main{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 12px) !important;
  }

  /* footer 底部留白也一起重算，不然视觉还是会怪 */
  html.is-ios-standalone #site_footer.fmhb2{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 8px) !important;
  }
}






/* =========================================================
   iOS Safari 添加到桌面（standalone）专用补丁
   - 不改普通手机端
   - 不改现有 tabbar 逻辑
   - 只补齐 bar 下方透明安全区
   ========================================================= */
@media (max-width: 900px){

  /* 仅在 standalone 命中 */
  html.is-ios-standalone #mobile_tabbar{
    overflow: visible !important; /* 让补丁层能画到 bar 外面 */
  }

  /* 给 bar 下方那段 safe-area 补白底，避免透明空隙 */
  html.is-ios-standalone #mobile_tabbar::after{
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: 100%;
    height: env(safe-area-inset-bottom);

    background: #fff; /* 跟 tabbar 本体一致 */

    border-left: 1px solid rgba(15,23,42,.08);
    border-right: 1px solid rgba(15,23,42,.08);

    pointer-events: none;
    z-index: -1;
  }

  /* 页面主体底部预留：兼容你两种 body class */
  html.is-ios-standalone body.mb-has-tabbar #page_main,
  html.is-ios-standalone body.has-mbtabbar #page_main{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 12px) !important;
  }

  /* footer 底部也顺带补齐，避免 footer 区域被裁切 */
  html.is-ios-standalone #site_footer.fmhb2{
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
}















/* =========================================================
   Mobile footer fix
   - 只修首页 footer
   - 不动你其他手机页
   ========================================================= */
@media (max-width: 768px){

  /* 1) 首页不要把“tabbar 预留空间”加在 body 最后面
     否则空白会出现在 footer 下方 */
  body.is-home.mb-has-tabbar,
  body.home-page.mb-has-tabbar,
  body.is-home.has-mbtabbar,
  body.home-page.has-mbtabbar{
    padding-bottom: 0 !important;
  }

  /* 2) 把底部预留收回到 footer 自己内部
     这样 tabbar 不会挡住 footer，但也不会在 footer 外面多一大块空白 */
  #site_footer.fmhb2{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 8px) !important;
    background: #fff !important;
  }

  /* 3) 移动端左侧块现在是空的，直接隐藏，避免多余留白 */
  #site_footer.fmhb2 .hb2-left{
    display: none !important;
  }

  /* 4) 压紧顶部间距 */
  #site_footer.fmhb2 .hb2-right{
    padding: 8px 16px 0 !important;
  }

  /* 5) logo 不要居中，改成左对齐 */
  #site_footer.fmhb2 .hb2-brand--m{
    display: flex !important;
    justify-content: flex-start !important;
    padding: 0 0 12px !important;
  }

  #site_footer.fmhb2 .hb2-brand--m img{
    height: 42px !important;
    width: auto !important;
    display: block !important;
  }

  /* 6) 你现在只有两列，就按两列排，不要再 repeat(3) */
  #site_footer.fmhb2 .hb2-nav{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 28px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  #site_footer.fmhb2 .hb2-col{
    min-width: 0;
  }

  /* 7) 标题和链接再紧一点，避免看起来“散” */
  #site_footer.fmhb2 .hb2-ttl{
    margin: 0 0 10px !important;
    letter-spacing: -0.2px !important;
  }

  #site_footer.fmhb2 .hb2-link{
    padding: 3px 0 !important;
  }

  /* 8) 清掉底部多余的小缝 */
  #site_footer.fmhb2 .hb2-wrap,
  #site_footer.fmhb2 .hb2-card{
    margin: 0 !important;
  }

  /* 9) iOS 加桌面时，沿用同样的 footer 底部预留，不要再用你前面那个 70px */
  html.is-ios-standalone #site_footer.fmhb2{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 8px) !important;
  }
}



/* 首页专用：收掉 #page_main 底部预留，改由 footer 自己承担 */
@media (max-width: 900px){

  body.is-home.mb-has-tabbar #page_main,
  body.home-page.mb-has-tabbar #page_main,
  body.is-home.has-mbtabbar #page_main,
  body.home-page.has-mbtabbar #page_main{
    padding-bottom: 0 !important;
  }

  body.is-home.mb-has-tabbar #site_footer.fmhb2,
  body.home-page.mb-has-tabbar #site_footer.fmhb2,
  body.is-home.has-mbtabbar #site_footer.fmhb2,
  body.home-page.has-mbtabbar #site_footer.fmhb2{
    padding-bottom: calc(48px + env(safe-area-inset-bottom) + 8px) !important;
  }

}


/* =========================================================
   Mobile TabBar - 所有 tab 的图标和文字间距拉开
   只影响手机端
   ========================================================= */
@media (max-width: 900px){
  #mobile_tabbar .mb-tab .mb-tab-ico-wrap{
    margin-bottom: 4px !important;
  }

  #mobile_tabbar .mb-tab em{
    margin-top: 2px !important;
  }
}

/* =========================================================
   Mobile TabBar - 去掉左右留白
   只影响手机端
   ========================================================= */
@media (max-width: 900px){
  #mobile_tabbar{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}


/* =========================================================
   Footer HB2 - PC logo 放大
   只影响桌面端
   ========================================================= */
@media (min-width: 769px){
  #site_footer.fmhb2 .hb2-brand--pc img{
    height: 170px !important; /* 原来 67，可再调 80 / 84 / 88 */
    width: auto !important;
    display: block !important;
  }
}


/* =========================================================
   Footer HB2 - PC logo 暗底增强可见性
   ========================================================= */
@media (min-width: 769px){
  #site_footer.fmhb2 .hb2-brand--pc img{
    height: 170px !important;
    width: auto !important;
    display: block !important;

    filter:
      drop-shadow(0 0 1px rgba(255,255,255,.75))
      drop-shadow(0 0 10px rgba(255,255,255,.10))
      drop-shadow(0 6px 18px rgba(0,0,0,.30));
  }
}

@media (max-width: 900px){

  /* 激活文字 */
  #mobile_tabbar .mb-tab.is-active em{
    color: #000 !important;
  }

  /* 激活时：隐藏原 svg，改用背景图图标 */
  #mobile_tabbar .mb-tab.is-active .mb-tab-ico-wrap{
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
  }

  #mobile_tabbar .mb-tab.is-active .mb-tab-ico-wrap svg{
    opacity: 0 !important;
  }

  /* 首页 */
  #mobile_tabbar .mb-tab--home.is-active .mb-tab-ico-wrap{
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='19'%20viewBox='0%200%2020%2019'%20fill='none'%3E%3Cpath%20d='M9.99512%200C10.3821%200%2010.7602%200.123041%2011.0654%200.352539L19.3271%206.53223C20.0823%207.09701%2020.2163%208.14543%2019.6123%208.86719C19.407%209.11318%2019.132%209.2957%2018.8242%209.39746V16.0908C18.8238%2017.3991%2017.7697%2018.4559%2016.4316%2018.5713H16.4277L16.3301%2018.5781L16.3223%2018.5791H16.3145L16.2119%2018.5811H3.78516C2.40317%2018.5811%201.24248%2017.5534%201.16992%2016.2031L1.16895%2016.1943L1.16699%2016.0977V16.0908L1.16602%209.39648C0.525194%209.18416%200.044224%208.62081%200.00292969%207.92969L0.00195312%207.91992L0%207.84375V7.83496C0%207.32258%200.248075%206.84389%200.664062%206.53223L8.9248%200.352539C9.23004%200.122983%209.60809%204.45413e-05%209.99512%200ZM12.4971%2011.8535C12.3742%2011.844%2012.2499%2011.8565%2012.1318%2011.8916C12.0139%2011.9266%2011.9033%2011.9837%2011.8066%2012.0596C11.271%2012.4802%2010.7487%2012.6679%2010.2158%2012.668C9.68241%2012.668%209.16017%2012.4802%208.625%2012.0596C8.52829%2011.9836%208.41689%2011.9267%208.29883%2011.8916C8.18096%2011.8566%208.05722%2011.8441%207.93457%2011.8535C7.81174%2011.8629%207.69114%2011.8943%207.58008%2011.9473C7.46902%2012.0003%207.36905%2012.0743%207.28613%2012.165C7.20317%2012.2559%207.13884%2012.3622%207.09863%2012.4785C7.05844%2012.5949%207.04278%2012.7182%207.05371%2012.8408C7.06466%2012.9633%207.10157%2013.082%207.16113%2013.1895C7.22082%2013.297%207.30268%2013.3918%207.39941%2013.4678C8.25474%2014.1386%209.20211%2014.4941%2010.2158%2014.4941C11.2294%2014.4941%2012.1764%2014.1386%2013.0312%2013.4678C13.2267%2013.3144%2013.3545%2013.0901%2013.377%2012.8418C13.3993%2012.5929%2013.3133%2012.349%2013.1455%2012.165C13.0628%2012.0744%2012.9624%2012.0013%2012.8516%2011.9482C12.7406%2011.8952%2012.6199%2011.863%2012.4971%2011.8535Z'%20fill='%23000'/%3E%3C/svg%3E");
  }

  /* 订单 */
  #mobile_tabbar .mb-tab--orders.is-active .mb-tab-ico-wrap{
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Cpath%20d='M15.6433%204.71289H17.465C17.9481%204.71289%2018.4114%204.90481%2018.7531%205.24644C19.0947%205.58807%2019.2866%206.05141%2019.2866%206.53455V19.2861C19.2866%2019.7693%2019.0947%2020.2326%2018.7531%2020.5742C18.4114%2020.9159%2017.9481%2021.1078%2017.465%2021.1078H6.53503C6.0519%2021.1078%205.58856%2020.9159%205.24693%2020.5742C4.9053%2020.2326%204.71338%2019.7693%204.71338%2019.2861V6.53455C4.71338%206.05141%204.9053%205.58807%205.24693%205.24644C5.58856%204.90481%206.0519%204.71289%206.53503%204.71289H8.35669'%20fill='black'/%3E%3Cpath%20d='M15.6433%204.71289H17.465C17.9481%204.71289%2018.4114%204.90481%2018.7531%205.24644C19.0947%205.58807%2019.2866%206.05141%2019.2866%206.53455V19.2861C19.2866%2019.7693%2019.0947%2020.2326%2018.7531%2020.5742C18.4114%2020.9159%2017.9481%2021.1078%2017.465%2021.1078H6.53503C6.0519%2021.1078%205.58856%2020.9159%205.24693%2020.5742C4.9053%2020.2326%204.71338%2019.7693%204.71338%2019.2861V6.53455C4.71338%206.05141%204.9053%205.58807%205.24693%205.24644C5.58856%204.90481%206.0519%204.71289%206.53503%204.71289H8.35669'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M12%2011.0898H15.6433'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M12%2015.6436H15.6433'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M8.35693%2011.0898H8.36693'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M8.35693%2015.6436H8.36693'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M14.7327%202.8916H9.26776C8.76472%202.8916%208.35693%203.29939%208.35693%203.80243V5.62408C8.35693%206.12712%208.76472%206.53491%209.26776%206.53491H14.7327C15.2358%206.53491%2015.6436%206.12712%2015.6436%205.62408V3.80243C15.6436%203.29939%2015.2358%202.8916%2014.7327%202.8916Z'%20fill='black'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  /* 客服 */
  #mobile_tabbar .mb-tab--support.is-active .mb-tab-ico-wrap{
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Cpath%20d='M8.14994%2019.4795C9.92613%2020.3906%2011.9693%2020.6374%2013.9114%2020.1754C15.8535%2019.7134%2017.5666%2018.5729%2018.7422%2016.9595C19.9178%2015.3461%2020.4785%2013.3659%2020.3232%2011.3757C20.1679%209.38546%2019.3069%207.51614%2017.8954%206.10457C16.4838%204.69301%2014.6145%203.83201%2012.6243%203.67675C10.6341%203.52149%208.65385%204.08216%207.04045%205.25774C5.42705%206.43332%204.28658%208.1465%203.82454%2010.0886C3.36251%2012.0306%203.60931%2014.0738%204.52045%2015.85L2.65918%2021.3408L8.14994%2019.4795Z'%20fill='black'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M9.25684%209.24239C9.47563%208.62042%209.90749%208.09595%2010.4759%207.76187C11.0444%207.4278%2011.7127%207.30568%2012.3625%207.41715C13.0124%207.52861%2013.6018%207.86647%2014.0264%208.37088C14.451%208.87528%2014.6834%209.51369%2014.6824%2010.173C14.6824%2012.0343%2011.8905%2012.9649%2011.8905%2012.9649'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M11.9658%2016.6875H11.9758'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  /* 我的 */
  #mobile_tabbar .mb-tab--me.is-active .mb-tab-ico-wrap{
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%3E%3Ccircle%20cx='12.5'%20cy='12.5'%20r='9.25'%20fill='black'%20stroke='black'%20stroke-width='1.5'/%3E%3Cpath%20d='M9.24862%2015.8499C8.89608%2015.2489%208.71981%2014.9483%209.0079%2014.4453C9.296%2013.9424%209.77416%2013.9424%2010.7305%2013.9424H14.2711C15.2274%2013.9424%2015.7055%2013.9424%2015.9936%2014.4453C16.2817%2014.9483%2016.1055%2015.2489%2015.7529%2015.8499C15.592%2016.1244%2015.3956%2016.3796%2015.1668%2016.6084C14.4597%2017.3155%2013.5007%2017.7127%2012.5008%2017.7127C11.5008%2017.7127%2010.5418%2017.3155%209.83476%2016.6084C9.60595%2016.3796%209.40958%2016.1244%209.24862%2015.8499Z'%20fill='white'/%3E%3C/svg%3E");
  }
}




@media (max-width: 900px){

  #mobile_tabbar .mb-tab--home.is-active .mb-tab-ico-wrap{
    width: 20px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
  }

  #mobile_tabbar .mb-tab--orders.is-active .mb-tab-ico-wrap{
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }

  #mobile_tabbar .mb-tab--support.is-active .mb-tab-ico-wrap{
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }

  #mobile_tabbar .mb-tab--me.is-active .mb-tab-ico-wrap{
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
  }
}


@media (max-width: 900px){


  /* 清掉之前额外拉开的距离 */
  #mobile_tabbar .mb-tab .mb-tab-ico-wrap{
    margin-bottom: 0 !important;
  }

  #mobile_tabbar .mb-tab em{
    margin-top: 0 !important;
  }

}

@media (max-width: 900px){

  /* 首页默认态：不要再用原始 25x25 的 svg，改用和 active 同画板的灰色版 */
  #mobile_tabbar .mb-tab--home:not(.is-active) .mb-tab-ico-wrap{
    width: 20px !important;
    height: 19px !important;
    flex: 0 0 19px !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;

    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='19'%20viewBox='0%200%2020%2019'%20fill='none'%3E%3Cpath%20d='M9.99512%200C10.3821%200%2010.7602%200.123041%2011.0654%200.352539L19.3271%206.53223C20.0823%207.09701%2020.2163%208.14543%2019.6123%208.86719C19.407%209.11318%2019.132%209.2957%2018.8242%209.39746V16.0908C18.8238%2017.3991%2017.7697%2018.4559%2016.4316%2018.5713H16.4277L16.3301%2018.5781L16.3223%2018.5791H16.3145L16.2119%2018.5811H3.78516C2.40317%2018.5811%201.24248%2017.5534%201.16992%2016.2031L1.16895%2016.1943L1.16699%2016.0977V16.0908L1.16602%209.39648C0.525194%209.18416%200.044224%208.62081%200.00292969%207.92969L0.00195312%207.91992L0%207.84375V7.83496C0%207.32258%200.248075%206.84389%200.664062%206.53223L8.9248%200.352539C9.23004%200.122983%209.60809%204.45413e-05%209.99512%200ZM12.4971%2011.8535C12.3742%2011.844%2012.2499%2011.8565%2012.1318%2011.8916C12.0139%2011.9266%2011.9033%2011.9837%2011.8066%2012.0596C11.271%2012.4802%2010.7487%2012.6679%2010.2158%2012.668C9.68241%2012.668%209.16017%2012.4802%208.625%2012.0596C8.52829%2011.9836%208.41689%2011.9267%208.29883%2011.8916C8.18096%2011.8566%208.05722%2011.8441%207.93457%2011.8535C7.81174%2011.8629%207.69114%2011.8943%207.58008%2011.9473C7.46902%2012.0003%207.36905%2012.0743%207.28613%2012.165C7.20317%2012.2559%207.13884%2012.3622%207.09863%2012.4785C7.05844%2012.5949%207.04278%2012.7182%207.05371%2012.8408C7.06466%2012.9633%207.10157%2013.082%207.16113%2013.1895C7.22082%2013.297%207.30268%2013.3918%207.39941%2013.4678C8.25474%2014.1386%209.20211%2014.4941%2010.2158%2014.4941C11.2294%2014.4941%2012.1764%2014.1386%2013.0312%2013.4678C13.2267%2013.3144%2013.3545%2013.0901%2013.377%2012.8418C13.3993%2012.5929%2013.3133%2012.349%2013.1455%2012.165C13.0628%2012.0744%2012.9624%2012.0013%2012.8516%2011.9482C12.7406%2011.8952%2012.6199%2011.863%2012.4971%2011.8535Z'%20fill='%238F8F8F'/%3E%3C/svg%3E");
  }

  #mobile_tabbar .mb-tab--home:not(.is-active) .mb-tab-ico-wrap svg{
    opacity: 0 !important;
  }
}


@media (max-width: 900px){

  /* 整体统一上移 5px + 图标文字间距统一 5px */
  #mobile_tabbar .mb-tab{
    justify-content: flex-end !important;
    gap: 5px !important;
    padding: 0 1px 5px !important;
  }

  /* 清掉旧的 margin / transform 干扰 */
  #mobile_tabbar .mb-tab .mb-tab-ico-wrap,
  #mobile_tabbar .mb-tab em{
    margin: 0 !important;
    transform: none !important;
  }

  /* 默认态和激活态都共用同一套图标容器尺寸 */
  #mobile_tabbar .mb-tab--home .mb-tab-ico-wrap{
    width: 20px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
  }

  #mobile_tabbar .mb-tab--orders .mb-tab-ico-wrap{
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }

  #mobile_tabbar .mb-tab--support .mb-tab-ico-wrap{
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }

  #mobile_tabbar .mb-tab--me .mb-tab-ico-wrap{
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
  }

  /* 默认态 svg 跟容器走，避免默认比激活小 */
  #mobile_tabbar .mb-tab .mb-tab-ico-wrap svg{
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  /* 激活态背景图也严格跟同一容器尺寸走 */
  #mobile_tabbar .mb-tab.is-active .mb-tab-ico-wrap{
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
  }

  #mobile_tabbar .mb-tab.is-active .mb-tab-ico-wrap svg{
    opacity: 0 !important;
  }
}





@media (max-width: 900px){
  #mobile_tabbar .mb-tab--home:not(.is-active) .mb-tab-ico-wrap{
    transform: scale(1) !important;
    transform-origin: center center !important;
  }
}

/* =========================================================
   Footer HB2 - PC flatten footer glow
   去掉底部 footer 的光斑、边框和分隔线，只保留纯色暗块
   ========================================================= */
@media (min-width: 769px){
  #site_footer.fmhb2{
    background: #080a0f !important;
  }

  #site_footer.fmhb2 .hb2-card{
    background: #080a0f !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  #site_footer.fmhb2 .hb2-left::after{
    display: none !important;
  }

  #site_footer.fmhb2 .hb2-brand--pc img{
    filter: none !important;
  }
}

/* =========================================================
   游戏详情页（移动端）底部避让
   页面底部有 `#fm_mbuybar`（fixed，z-index 9990）常驻购买栏，实测高 122px；
   footer 进入正常文档流后，最后几行（公司主体 / 邮箱 / 版权）会被它压住。
   ⛔ 必须用 `#site_footer.fmhb2.is-game-footer`（1 id + 2 class）：
      写成 `#site_footer.is-game-footer` 与 `#site_footer.fmhb2` 特异度相同，
      按源序会被上面的 `padding-bottom:70px` 覆盖（实测仍是 56px，等于没生效）。
   ⛔ 也不要放到 AppShell 的 scoped <style>：组件 CSS 随懒加载 chunk 后到，
      且不作用于 LegacyFooter 这个子组件根以外的节点。
   ========================================================= */
@media (max-width: 900px){
  /* ⛔⛔ 避让绝不能依赖 `:has()`：广告流量里还有大量老 WebView / Safari < 15.4，
     不支持 `:has()` 时**整条规则被静默丢弃**。实测该故障的指纹是「购买栏只在页脚
     下边缘露出末端 8px」：`#site_footer...{padding-bottom:0}`（纯选择器）生效，
     `body:has(...)`（body 留白）没生效 ⇒ 文档末尾没有留白带，页脚白底一直压到页面
     最底，把栏盖到只剩最后 8px。
     ⛔ 也不能把留白写成页脚的 padding-bottom：`.fm-gsv2`（游戏页 main）有
     `position:relative; isolation:isolate`，栏的 z-index 被关在这个层叠上下文里，
     而页脚是它的**后置兄弟**且 z-index:1 ⇒ 页脚盒子覆盖到哪儿就盖到哪儿
     （实测 elementFromPoint 在栏的位置命中的是 footer）。
     ✅ 正确做法：padding 归 0 + **margin-bottom 让位**。
     margin 在页脚盒子**之外**，页脚的背景/内容都盖不到栏；而且它是纯选择器，
     不依赖 `:has()`，也不依赖 body 的 padding。 */
  html body #site_footer.fmhb2.is-game-footer{
    /* `html body` 前缀是为了压过文件里那些 `html.is-ios-standalone #site_footer.fmhb2`
       的 (1,2,1) 规则（它们会给页脚加回 48–70px 下内边距，等于把白底重新推进栏里）。 */
    padding-bottom: 0 !important;
    /* 122px = 购买栏实测高度（含它自己的内边距）。写成 122 而不是 124 是为了
       让页脚白底的下边缘正好贴住购买栏上边缘，中间不留一条 body 灰缝。 */
    margin-bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 游戏页 main 原本自带 `padding-bottom:120px`，那是「还没有 footer」时代给购买栏留的位。
     现在避让由上面的 margin 接管 ⇒ 两份留白叠加（120+122=242px），中间露出一条
     body 灰底，就是用户看到的「底部空白」。
     ⛔ 不要直接删 .fm-page-game-show 的 padding-bottom：没挂 footer 的场景仍然需要它。 */
  main.fm-page-game-show{
    padding-bottom: 0 !important;
  }

  /* 右下角悬浮客服球（`.fm-floating-support`，固定 right:16px + 48px 宽）会压住
     Legal 列最后两条政策链接的文字尾部（实测 `Return & Refund Policy`、
     `AML & Anti-Fraud Policy` 与球矩形相交）。右侧给球留出一条通道：
     内容右边界 = 100% - 60px，球左边界 = 100% - 64px，任何视口都不再重叠。 */
  #site_footer.fmhb2.is-game-footer .hb2-nav{
    padding-right: 60px !important;
  }
}
