/* ==========================================================================
   v4 特效与动效层。加载顺序：theme.css 之后、页面 CSS 之前。
   只放「原站没有的类名」（xm- 前缀）和对全局交互元素的动效，不改布局尺寸。
   两套品牌性格靠 html[data-brand] 区分：
     nianjiu  琥珀橙，异形用圆角 + 票券半圆缺口
     nuoyuan  翡翠绿 + 青，异形用 HUD 斜切角，头图带全息网格
     两站主按钮都是 135° 渐变胶囊 + 同色柔和投影 + 周期流光（不要底边厚度，2026-11-28 用户要求）
   界面要「高清透」：不用毛玻璃、颗粒、扫描线、发光文字这类发虚的效果（2026-11-28 用户要求）
   动效一律包在 prefers-reduced-motion: no-preference 里，关掉动画不影响功能。
   ========================================================================== */

/* ---------------------------------------------------------------- 通用：按压回弹 */
.xm-btn, uni-button, .rent-btn, .confirm-time-btn.is-ask, .dp-btn, .native-modal__btn,
.tab-item, .xm-zone, .xm-chip, .quick-filter-item, .quick-filter-all, .display-switch, .logo-contact,
.native-appdl-btn, .xm-press {
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s var(--spring), box-shadow .2s ease, filter .2s ease, opacity .15s;
}
.xm-btn:active, uni-button:active, .rent-btn:active, .confirm-time-btn.is-ask:active, .dp-btn:active,
.native-modal__btn:active, .xm-zone:active, .xm-chip:active, .quick-filter-item:active, .quick-filter-all:active,
.display-switch:active, .logo-contact:active, .native-appdl-btn:active, .xm-press:active {
  transform: scale(.95); transition-duration: .08s;
}

/* 点击涟漪（fx.js 在 pointerdown 时插入） */
.xm-ripple-host { position: relative; overflow: hidden; }
.xm-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: rgba(255, 255, 255, .55); transform: scale(0); animation: xm-ripple .55s ease-out forwards;
}
@keyframes xm-ripple { to { transform: scale(36); opacity: 0; } }

/* 骨架屏流光 */
.xm-skel { position: relative; overflow: hidden; background: var(--muted); border-radius: var(--r-md); }
.xm-skel::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: xm-shimmer 1.3s infinite;
}
@keyframes xm-shimmer { to { transform: translateX(100%); } }

/* 首页卡片骨架 */
.xm-skel-card { margin: 0 12px 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); }
.xm-skel-card .xm-skel { height: 14px; margin-bottom: 10px; }
.xm-skel-card .xm-skel.is-img { height: 86px; width: 110px; float: left; margin-right: 12px; }
.xm-skel-card .xm-skel.is-short { width: 46%; }
.xm-skel-card .xm-skel.is-block { clear: both; height: 64px; }

/* ---------------------------------------------------------------- 入场：滚动渐显（fx.js 打 .xm-reveal / .is-in） */
@media (prefers-reduced-motion: no-preference) {
  .xm-reveal { opacity: 0; transform: translateY(18px) scale(.985); }
  .xm-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .45s ease, transform .6s var(--spring);
    transition-delay: calc(var(--xm-i, 0) * 45ms);
  }
}

/* 数字滚动时用等宽数字，避免抖动 */
.xm-count { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 首页 v4 组件 */
.xm-hero-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 260px; z-index: -1; pointer-events: none;
  background: var(--hero); overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 100%); mask: linear-gradient(180deg, #000 55%, transparent 100%);
}
.xm-hero-bg::before, .xm-hero-bg::after { content: ''; position: absolute; pointer-events: none; }

/* 横幅幻灯片：图 + 左侧标语 */
.xm-slide { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-lg); }
.xm-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.xm-slide__copy { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 46%; }
.xm-slide__title { display: block; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; color: #fff; }
.xm-slide__sub { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; }
.swiper-bar .xm-swiper-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; z-index: 3; }

/* 专区图标宫格 */
.xm-zones {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px;
  margin: 12px 12px 4px; padding: 14px 8px 12px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--card-shadow);
}
.xm-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.xm-zone__icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: transparent; transition: transform .35s var(--spring), box-shadow .25s;
}
.xm-zone__icon img { width: 100%; height: 100%; object-fit: contain; display: block;  }
.xm-zone__label { font-size: 12px; line-height: 16px; color: var(--t1); white-space: nowrap; }
.xm-zone.is-on .xm-zone__icon { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tap); transform: translateY(-2px); }
.xm-zone.is-on .xm-zone__label { color: var(--tap-deep); font-weight: 700; }

/* 首页商品卡：通栏白条改成悬浮圆角卡片 */
html[data-brand] .goods-box { padding: 2px 12px 0 !important; gap: 12px !important; }
html[data-brand] .goods-item2 {
  padding: 14px 14px 12px; border-bottom: 0; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--card-shadow);
}
html[data-brand] .goods-item2 .goods-img { transition: transform .5s var(--ease); }
html[data-brand] .goods-item2:active .goods-img { transform: scale(1.06); }
html[data-brand] .nav-container .filter-bar { background: var(--bg); }

/* 登录页吉祥物 */
.xm-login-mascot { position: absolute; right: 8px; top: 20px; width: 150px; height: 150px; object-fit: contain; z-index: 1; pointer-events: none; }
html[data-brand] .login-container .xm-brand, html[data-brand] .login-container .title { position: relative; z-index: 2; }

/* 「我的」头部：品牌渐变 + 吉祥物探头（页面 CSS 用了 :root:root:root 提权，这里只能 !important） */
html[data-brand] .xmm-head { position: relative; overflow: hidden; }
html[data-brand] .xmm-head > * { position: relative; z-index: 1; }
html[data-brand] .xmm-head::after {
  content: ''; position: absolute; right: 104px; bottom: -30px; width: 120px; height: 120px; z-index: 0; pointer-events: none;
  background: var(--mascot) center / contain no-repeat; opacity: .95;
}
html[data-brand="nianjiu"] { --mascot: url(/web/assets/img/brand/nianjiu/mascot.webp?v=20261128f); --empty-art: url(/web/assets/img/brand/nianjiu/spots/empty.webp?v=20261128f); --notfound-art: url(/web/assets/img/brand/nianjiu/spots/notfound.webp?v=20261128f); --offline-art: url(/web/assets/img/brand/nianjiu/spots/offline.webp?v=20261128f); }
html[data-brand="nuoyuan"] { --mascot: url(/web/assets/img/brand/nuoyuan/mascot.webp?v=20261128f); --empty-art: url(/web/assets/img/brand/nuoyuan/spots/empty.webp?v=20261128f); --notfound-art: url(/web/assets/img/brand/nuoyuan/spots/notfound.webp?v=20261128f); --offline-art: url(/web/assets/img/brand/nuoyuan/spots/offline.webp?v=20261128f); }
html[data-brand="nianjiu"] .xmm-head {
  background: radial-gradient(120% 90% at 85% 10%, #C2622A 0%, transparent 60%),
              linear-gradient(160deg, #6B3B1E 0%, #3B2416 100%) !important;
}
html[data-brand="nuoyuan"] .xmm-head {
  background: radial-gradient(70% 90% at 90% 0%, rgba(25, 211, 224, .55), transparent 70%),
              linear-gradient(150deg, #13B873 0%, #0B8F64 55%, #0A6E5A 100%) !important;
}
html[data-brand="nuoyuan"] .xmm-head .xmm-withdraw { color: var(--tap-deep) !important; }

/* 输入框：白底 + 品牌色描边，聚焦时主色描边（不用灰底，2026-11-28 用户要求） */
html[data-brand] .u-form-item__body__right__content__slot {
  background: var(--surface) !important; border: 1.5px solid var(--outline) !important; border-radius: 12px !important;
  transition: border-color .2s, box-shadow .2s;
}
html[data-brand] .u-form-item__body__right__content__slot:focus-within {
  border-color: var(--tap) !important; box-shadow: 0 0 0 3px rgba(var(--tap-rgb), .14);
}
html[data-brand] .u-form-item__body__right__content__slot .u-input { background-color: transparent !important; }
/* 所有输入控件一律白底：表单外的 u-input、多行输入、首页搜索框 */
html[data-brand] .u-input, html[data-brand] .u-textarea, html[data-brand] uni-textarea, html[data-brand] .xm-search {
  background-color: var(--surface) !important;
}
html[data-brand] .u-input--square, html[data-brand] .u-input--radius, html[data-brand] .u-input--circle, html[data-brand] .u-textarea {
  border-color: var(--outline) !important;
}
html[data-brand] .search-box { background: var(--surface) !important; border: 1.5px solid var(--outline) !important; }
html[data-brand] .search-box:focus-within { border-color: var(--tap) !important; }
html[data-brand] .uni-input-placeholder, html[data-brand] input::placeholder, html[data-brand] textarea::placeholder { color: var(--t3); }

/* 各页原有的「暂无 xx」空态统一加吉祥物（只加图，不改文案和结构） */
html[data-brand] .no-data:not(.row-cell *)::before, html[data-brand] .empty-tip::before, html[data-brand] .xm-empty::before,
html[data-brand] .empty-state:not(:has(img, uni-image))::before, html[data-brand] .xm-empty-tip::before {
  content: ''; display: block; width: 132px; height: 132px; margin: 24px auto 8px;
  background: var(--empty-art) center / contain no-repeat;
}
html[data-brand] .xm-empty-tip { flex-direction: column; }

/* 弹窗：正文用主文字色（不发灰），次按钮白底品牌描边品牌字 */
html[data-brand] .native-modal__content { color: var(--t1); }
html[data-brand] .native-modal__btn:not(.native-modal__btn--primary) {
  background: var(--surface); color: var(--tap-deep); box-shadow: inset 0 0 0 1.5px var(--tap);
}

/* 品牌吉祥物空态 */
.xm-mascot-empty { display: flex; flex-direction: column; align-items: center; padding: 36px 24px 28px; color: var(--t3); font-size: 13px; }
.xm-mascot-empty img { width: 132px; height: 132px; object-fit: contain; margin-bottom: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .xm-float { animation: xm-hero-in .6s var(--spring) both; }
  @keyframes xm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .xm-zone.is-on .xm-zone__icon { animation: xm-boing .5s var(--spring); }
  @keyframes xm-boing { 0% { transform: scale(.86); } 60% { transform: translateY(-3px) scale(1.06); } 100% { transform: translateY(-2px); } }
}

/* ---------------------------------------------------------------- 底部导航 v4（tabbar.js）
   选择器带 html[data-brand] 前缀，压过页面 CSS 里 .custom-tab-bar[data-uv] 的白底细线 */
.custom-tab-bar .xm-tab-svg { width: 24px; height: 24px; display: block; color: var(--t3); transition: color .2s, transform .35s var(--spring); }
.custom-tab-bar .is-active .xm-tab-svg { color: var(--tap-deep); transform: translateY(-1px) scale(1.08); }
.custom-tab-bar .xm-tab-svg .fill { opacity: 0; transition: opacity .2s; }
.custom-tab-bar .is-active .xm-tab-svg .fill { opacity: 1; }

/* ================================================================ 念旧（主站）：怀旧街机 */
/* 实体按键：渐变面 + 底边厚度，按下沉 2px */
html[data-brand="nianjiu"] .xm-btn--primary, html[data-brand="nianjiu"] .rent-btn,
html[data-brand="nianjiu"] .native-modal__btn--primary, html[data-brand="nianjiu"] .dp-btn-confirm,
html[data-brand="nianjiu"] .native-appdl-btn, html[data-brand="nianjiu"] .xm-btn-3d,
html[data-brand="nianjiu"] .login-btn, html[data-brand="nianjiu"] uni-button[style*="var(--tap,"], html[data-brand="nianjiu"] .buy-now {
  position: relative; overflow: hidden;
  background: var(--btn-grad) !important; color: #fff !important;
  box-shadow: 0 6px 16px rgba(var(--tap-rgb), .30) !important; text-shadow: none; border: 0 !important;
}
html[data-brand="nianjiu"] .xm-btn--primary:active, html[data-brand="nianjiu"] .rent-btn:active,
html[data-brand="nianjiu"] .native-modal__btn--primary:active, html[data-brand="nianjiu"] .dp-btn-confirm:active,
html[data-brand="nianjiu"] .native-appdl-btn:active, html[data-brand="nianjiu"] .xm-btn-3d:active,
html[data-brand="nianjiu"] .login-btn:active, html[data-brand="nianjiu"] uni-button[style*="var(--tap,"]:active {
  transform: scale(.96) !important;
}
/* 荧光笔改成像素虚线下划 */
/* 头图：落日条纹 + 扫描线 */
html[data-brand="nianjiu"] .xm-hero-bg::before {
  right: -40px; top: 40px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 168, 92, .22);
}
html[data-brand="nianjiu"] .xm-slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(59, 36, 22, .5) 0%, rgba(59, 36, 22, .12) 46%, transparent 66%);
}
html[data-brand="nianjiu"] .xm-slide__title { text-shadow: 0 1px 2px rgba(80, 30, 0, .45); }
html[data-brand="nianjiu"] .xm-slide__sub { background: #FFC23D; color: #3B2416; }
html[data-brand="nianjiu"] .xm-zones, html[data-brand="nianjiu"] .goods-item2 { border: 1px solid #F2E2CD; }

/* ================================================================ 诺源（分站）：清新科技 */
html[data-brand="nuoyuan"] .xm-btn--primary, html[data-brand="nuoyuan"] .rent-btn,
html[data-brand="nuoyuan"] .native-modal__btn--primary, html[data-brand="nuoyuan"] .dp-btn-confirm,
html[data-brand="nuoyuan"] .native-appdl-btn, html[data-brand="nuoyuan"] .xm-btn-glow,
html[data-brand="nuoyuan"] .login-btn, html[data-brand="nuoyuan"] uni-button[style*="var(--tap,"], html[data-brand="nuoyuan"] .buy-now {
  position: relative; overflow: hidden;
  background: var(--btn-grad) !important; color: #fff !important;
  box-shadow: 0 6px 16px rgba(var(--tap-rgb), .30) !important; border: 0 !important;
}
html[data-brand="nuoyuan"] .xm-hero-bg::before {
  /* 全息网格，向下淡出 */
  inset: 0;
  background-image: linear-gradient(rgba(16, 200, 120, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 200, 120, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 80%); mask: linear-gradient(180deg, #000 0%, transparent 80%);
}
html[data-brand="nuoyuan"] .xm-hero-bg::after {
  /* 极光团 */
  left: -20%; right: -20%; top: -60px; height: 220px;
  background: radial-gradient(40% 60% at 25% 40%, rgba(25, 211, 224, .35), transparent 70%),
              radial-gradient(35% 55% at 75% 30%, rgba(16, 200, 120, .35), transparent 70%);
}
html[data-brand="nuoyuan"] .xm-slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 60, 45, .55) 0%, rgba(4, 60, 45, .12) 50%, transparent 72%);
}
html[data-brand="nuoyuan"] .xm-slide__title { text-shadow: 0 1px 2px rgba(0, 40, 30, .45); }
html[data-brand="nuoyuan"] .xm-slide__sub { background: #fff; color: var(--tap-deep); }
html[data-brand="nuoyuan"] .xm-zone.is-on .xm-zone__icon { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tap), 0 6px 16px rgba(var(--tap-rgb), .35); }
html[data-brand="nuoyuan"] .goods-item2:active { box-shadow: 0 0 0 1.5px rgba(var(--tap-rgb), .5), var(--card-shadow) !important; }
/* 主按钮流光：每 3.6 秒扫过一次（两站都有）。
   注意：这里前面曾多出一个孤立的选择器，把整个 @media 块变成非法规则，流光一直没生效（2026-11-28 修）。 */
@media (prefers-reduced-motion: no-preference) {
  html[data-brand] .xm-btn--primary::after, html[data-brand] .rent-btn::after,
  html[data-brand] .dp-btn-confirm::after, html[data-brand] .xm-btn-glow::after,
  html[data-brand] .login-btn::after, html[data-brand] uni-button[style*="var(--tap,"]::after,
  html[data-brand] .native-appdl-btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: xm-sweep 3.6s ease-in-out infinite;
  }
  @keyframes xm-sweep { 0%, 62% { left: -60%; } 100% { left: 130%; } }
}

/* ================================================================ 二级页头图带（core/hero.js）
   导航栏与头图同色连成一片；大标题在头图里，导航栏标题等头图滚走后再淡入（fx.js 给 html 打 xm-scrolled）。
   底边异形：念旧＝像素城垛，诺源＝斜切弧线；颜色取下方内容的底色（router 写入 --under）。 */
html[data-brand="nianjiu"] { --hero-top: #FFD3A6; --hero-bot: #FFF4E8; }
html[data-brand="nuoyuan"] { --hero-top: #B4F5D6; --hero-bot: #EAFDF4; }
html[data-brand] body.xm-has-hero uni-page-head .uni-page-head { background-color: var(--hero-top) !important; transition: box-shadow .25s; }
html[data-brand] body.xm-has-hero uni-page-head .uni-page-head__title { opacity: 0 !important; transform: translateY(6px); transition: opacity .25s, transform .25s; }
html[data-brand].xm-scrolled body.xm-has-hero uni-page-head .uni-page-head__title { opacity: 1 !important; transform: none; }
html[data-brand].xm-scrolled body.xm-has-hero uni-page-head .uni-page-head { box-shadow: 0 1px 0 var(--line); }

.xm-page-hero {
  position: relative; z-index: 1; height: 112px; margin-bottom: 4px; overflow: visible;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bot) 100%);
}
.xm-page-hero__title {
  position: absolute; left: 20px; top: 16px; max-width: 58%; z-index: 2;
  font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: 1px; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xm-page-hero__title::after {
  content: ''; display: block; margin-top: 6px; width: 36px; height: 5px; border-radius: 3px; background: var(--btn-grad);
}
.xm-page-hero__art {
  position: absolute; right: 6px; bottom: -8px; z-index: 2; width: 128px; height: 128px; object-fit: contain; pointer-events: none;
}
.xm-page-hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; z-index: 1; background: var(--under, var(--bg)); }
/* 装饰：念旧落日圆 + 像素星；诺源全息网格 + 光斑 */
.xm-page-hero::before { content: ''; position: absolute; pointer-events: none; }
html[data-brand] .xm-page-hero__edge {
  height: 22px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'><path d='M0 22V14C22 14 30 4 52 4H100V22z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'><path d='M0 22V14C22 14 30 4 52 4H100V22z'/></svg>") center / 100% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .xm-page-hero__art { animation: xm-hero-in .6s var(--spring) both; }
  .xm-page-hero__title { animation: xm-title-in .5s var(--ease) both; }
  @keyframes xm-hero-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
  @keyframes xm-title-in { from { opacity: 0; transform: translateX(-12px); } }
  
/* ================================================================ 异形底部导航（ui/tabbar.js）
   白色底板 + 中间凸起（念旧：像素台阶凸台；诺源：圆弧凸包），整体用 drop-shadow 包出一圈品牌色柔光。
   中间是吉祥物头像按钮（去在线客服），选中项换立体图标弹起，未选中是品牌浅色线框，不加底色块。 */
html[data-brand] .custom-tab-bar.xm-tabbar {
  background: transparent !important; border-top: 0 !important; box-shadow: none !important;
  filter: drop-shadow(0 -3px 8px rgba(var(--tap-rgb), .16));
}
.xm-tabbar__shape { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: #fff; pointer-events: none; }
.xm-tabbar__shape::before {
  /* 中间椭圆凸台：与头像同心的整只椭圆（96×74，头像 60），头像上方留 7px、两侧留 18px 白边，整颗头像都包在外形里；
     圆心 = 头像圆心，在底板上沿下 7px（.xm-tab-center 顶 +6.8 − 30 + 30），改头像尺寸或位置要一起算 */
  content: ''; position: absolute; left: 50%; top: -30px; width: 96px; height: 74px; margin-left: -48px;
  background: #fff; border-radius: 50%;
}
.xm-tabbar__shape::after {
  /* 两侧反向圆角：半径 10 的凹弧从底板上沿接到椭圆侧边（椭圆在底板上 10px 处半宽约 43） */
  content: ''; position: absolute; left: 50%; top: -10px; width: 106px; height: 10px; margin-left: -53px;
  background:
    radial-gradient(circle at 0 0, transparent 10px, #fff 10.5px) left bottom / 50% 100% no-repeat,
    radial-gradient(circle at 100% 0, transparent 10px, #fff 10.5px) right bottom / 50% 100% no-repeat;
}
html[data-brand] .xm-tabbar .tab-bar-content { position: relative; z-index: 1; }
.xm-tab-center { position: relative; }
.xm-tab-bump {
  width: 60px; height: 60px; margin: -30px auto 2px; padding: 3px; box-sizing: border-box; border-radius: 50%;
  background: var(--btn-grad); box-shadow: 0 6px 14px rgba(var(--tap-rgb), .35);
}
.xm-tab-avatar { display: block; width: 100%; height: 100%; border-radius: inherit; background: #fff; object-fit: cover; object-position: center 12%; }
.xm-tab-3d { width: 34px; height: 34px; object-fit: contain; display: block; }
.xm-tabbar .tab-item.is-current .tab-text { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .xm-tab-3d { animation: xm-tab-pop .5s var(--spring) both; }
  @keyframes xm-tab-pop { 0% { transform: translateY(8px) scale(.6); } 70% { transform: translateY(-5px) scale(1.12); } 100% { transform: translateY(-3px) scale(1); } }
  @keyframes xm-bump-breathe { 0%, 100% { box-shadow: 0 6px 14px rgba(var(--tap-rgb), .35); } 50% { box-shadow: 0 6px 22px rgba(var(--tap-rgb), .55); } }
  .xm-tab-center:active .xm-tab-bump { transform: scale(.92); }
}

/* ================================================================ 「我的」v4（center-index.js）
   浅色品牌头图 + 大吉祥物；余额区做成浮起的异形票券卡（念旧：两侧半圆缺口；诺源：斜切角）；菜单立体图标。
   页面 CSS 用了 :root:root:root 提权，这里只能 !important。 */
html[data-brand] .xmm-page { background: var(--bg) !important; }
html[data-brand] .xmm-head {
  position: relative; overflow: visible !important; color: var(--t1) !important;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 14px 18px 18px !important;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bot) 100%) !important;
}
html[data-brand] .xmm-head::after { display: none; }
html[data-brand] .xmm-head .xmm-name { color: var(--t1) !important; font-size: 19px !important; font-weight: 800 !important; }
html[data-brand] .xmm-head .xmm-sub { color: var(--t2) !important; }
html[data-brand] .xmm-avatar { border: 3px solid #fff !important; box-shadow: 0 0 0 2px var(--tap), 0 6px 14px rgba(var(--tap-rgb), .25); }
html[data-brand] .xmm-row { position: relative; z-index: 2; padding-right: 96px; }
html[data-brand] .xmm-setting { position: absolute !important; right: 0; top: -6px; width: 40px !important; height: 40px !important; }
.xmm-3d-set { width: 30px; height: 30px; object-fit: contain; }
html[data-brand] .xmm-head > .xmm-mascot { position: absolute; right: 46px; top: calc(env(safe-area-inset-top, 0px) + 6px); width: 120px; height: 120px; object-fit: contain; z-index: 1; pointer-events: none; }
/* 余额票券卡 */
html[data-brand] .xmm-money {
  position: relative; z-index: 3; margin: 22px 0 -54px -4px !important; padding: 16px 18px !important; align-items: center !important;
  background: var(--surface); border-radius: 18px; box-shadow: 0 10px 26px rgba(var(--tap-rgb), .16);
}
html[data-brand] .xmm-money-label { color: var(--t2) !important; }
html[data-brand] .xmm-money-label .xmm-ico { color: var(--t2) !important; }
html[data-brand] .xmm-balance { color: var(--price) !important; font-size: 28px !important; }
html[data-brand] .xmm-withdraw {
  position: relative; overflow: hidden; background: var(--btn-grad) !important; color: #fff !important;
  box-shadow: 0 6px 16px rgba(var(--tap-rgb), .30);
}
html[data-brand="nianjiu"] .xmm-money {
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  filter: drop-shadow(0 8px 14px rgba(200, 110, 40, .16)); box-shadow: none;
}
html[data-brand="nianjiu"] .xmm-money::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed var(--line); z-index: -1; opacity: 0;
}
html[data-brand="nuoyuan"] .xmm-money {
  border-radius: 6px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: none; filter: drop-shadow(0 8px 14px rgba(16, 140, 90, .16));
  background: linear-gradient(135deg, #fff 0%, #fff 70%, #E7FBF2 100%);
}
html[data-brand] .xmm-cards { top: 0 !important; padding-top: 70px !important; }
html[data-brand] .xmm-card { border-radius: 18px !important; box-shadow: var(--card-shadow); }
html[data-brand] .xmm-card-title { font-size: 16px !important; font-weight: 800 !important; display: inline-flex; align-items: center; gap: 6px; }
html[data-brand] .xmm-card-title::before { content: ''; width: 5px; height: 16px; border-radius: 3px; background: var(--btn-grad); }
.xmm-3d { width: 40px; height: 40px; object-fit: contain; display: block; }
html[data-brand] .xmm-item { transition: transform .3s var(--spring); }
html[data-brand] .xmm-item:active { background: transparent !important; transform: scale(.9); }
html[data-brand] .xmm-item-name { color: var(--t1) !important; margin-top: 6px !important; }
@media (prefers-reduced-motion: no-preference) {
  .xmm-mascot { animation: xm-hero-in .6s var(--spring) both; }
  html[data-brand] .xmm-item:active .xmm-3d { animation: xm-boing .45s var(--spring); }
}

/* 有头图时，各页自绘的「返回 + 标题」条不再需要（系统导航 + 头图已经有了） */
html[data-brand] body.xm-has-hero .activity-center > .header, html[data-brand] body.xm-has-hero .activity-rule-page > .header,
html[data-brand] body.xm-has-hero .header:has(> .back-btn), html[data-brand] body.xm-has-hero .we-ts__bar,
html[data-brand] body.xm-has-hero .we-kefu__bar, html[data-brand] body.xm-has-hero .yd-navbar { display: none !important; }
/* Tab 根页面（发布、消息）没有导航栏：头图顶到状态栏，自带的大标题隐藏 */
html[data-brand] body.xm-hero-root .xm-page-hero { height: calc(112px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box; }
html[data-brand] body.xm-hero-root .xm-page-hero__title { top: calc(22px + env(safe-area-inset-top, 0px)); }
html[data-brand] body.xm-hero-root .custom-title-bar { display: none !important; }

/* 旧空态图（灰色方块）换成品牌「坐在空箱子上」插画 */
html[data-brand] .empty-state .empty-image, html[data-brand] .empty-state > uni-image { display: none !important; }
html[data-brand] .empty-state::before {
  content: ''; display: block; width: 132px; height: 132px; margin: 24px auto 8px;
  background: var(--empty-art) center / contain no-repeat;
}

/* 发布页两张入口卡：深色块换成品牌浅色卡 + 立体图标 */
html[data-brand] .recycle-entry-btn {
  position: relative; overflow: hidden; background: var(--surface) !important; color: var(--t1) !important;
  border-radius: 16px !important; box-shadow: var(--card-shadow) !important; border: 1.5px solid var(--line) !important;
  padding-left: 52px !important;
}
html[data-brand] .recycle-entry-btn::before {
  content: ''; position: absolute; left: 10px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  background: var(--entry-ico) center / contain no-repeat;
}
html[data-brand] .recycle-entry-btn:first-child { --entry-ico: var(--ico-withdraw); }
html[data-brand] .recycle-entry-btn:last-child { --entry-ico: var(--ico-bundle); }
html[data-brand="nianjiu"] { --ico-withdraw: url(/web/assets/img/brand/nianjiu/icons/tool-withdraw.webp?v=20261128f); --ico-bundle: url(/web/assets/img/brand/nianjiu/icons/tool-card.webp?v=20261128f); }
html[data-brand="nuoyuan"] { --ico-withdraw: url(/web/assets/img/brand/nuoyuan/icons/tool-withdraw.webp?v=20261128f); --ico-bundle: url(/web/assets/img/brand/nuoyuan/icons/tool-card.webp?v=20261128f); }
html[data-brand] .recycle-entry-btn .recycle-entry-title, html[data-brand] .recycle-entry-btn .recycle-entry-txt { color: var(--t1) !important; }
html[data-brand] .recycle-entry-btn .recycle-entry-arrow { color: var(--tap-deep) !important; }
html[data-brand] .auth_btn { background: var(--tap-tint) !important; color: var(--tap-deep) !important; border-radius: 14px !important; }

/* emoji 换成的立体小图标（fx.js swapEmoji） */
.xm-emo { display: inline-block; width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: -0.28em; margin: 0 .12em; }

/* ================================================================ 商品详情 v4（goods-detail.js）
   参考站：各区块是悬浮圆角卡；价格卡上提压住大图（异形：念旧顶边两角缺口票券、诺源斜切右上角）；
   账号信息做成小方块；交易流程与客服换立体图标。 */
html[data-brand] body.pages-goods-index .info-des { position: relative; z-index: 2; padding: 0 12px; margin-top: -26px; }
html[data-brand] body.pages-goods-index .img-box { border-radius: 0 0 22px 22px; overflow: hidden; }
html[data-brand] body.pages-goods-index .detail-tip-card {
  border-radius: 14px 14px 0 0 !important; margin: 0 6px; background: var(--btn-grad) !important;
}
html[data-brand] body.pages-goods-index .detail-tip-card .detail-tip-text { color: #fff !important; font-weight: 600; }
html[data-brand] body.pages-goods-index .detail-tip-card .detail-tip-shield { filter: brightness(0) invert(1); }
html[data-brand] body.pages-goods-index .box1 {
  border-radius: 18px !important; box-shadow: var(--card-shadow); position: relative;
}
html[data-brand="nianjiu"] body.pages-goods-index .box1 {
  -webkit-mask: radial-gradient(circle 9px at 0 64px, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 64px, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 64px, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 64px, transparent 98%, #000) right / 51% 100% no-repeat;
  box-shadow: none; filter: drop-shadow(0 6px 12px rgba(200, 110, 40, .12));
}
html[data-brand="nuoyuan"] body.pages-goods-index .box1 {
  border-radius: 6px !important;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  box-shadow: none; filter: drop-shadow(0 6px 12px rgba(16, 140, 90, .12));
}
html[data-brand] body.pages-goods-index .price-value { font-size: 32px !important; font-weight: 900 !important; }
html[data-brand] body.pages-goods-index .all_shengyu > * {
  margin: 12px 0 0 !important; border-radius: 18px !important; box-shadow: var(--card-shadow); background: var(--surface) !important;
  border-top: 0 !important; border-bottom: 0 !important;
}
html[data-brand] body.pages-goods-index .stat-item {
  background: var(--muted); border-radius: 12px; padding: 10px 8px !important; border: 1px solid var(--line);
}
html[data-brand] body.pages-goods-index .goods-stats { gap: 8px !important; }
html[data-brand="nuoyuan"] body.pages-goods-index .stat-item { border-radius: 4px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
html[data-brand] body.pages-goods-index .lincheng img, html[data-brand] body.pages-goods-index .lincheng uni-image { width: 40px !important; height: 40px !important; }
html[data-brand] body.pages-goods-index .kefu-icon { width: 28px !important; height: 28px !important; }
html[data-brand] body.pages-goods-index .fixedBtm {
  border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(var(--tap-rgb), .12) !important; border-top: 0 !important;
}
html[data-brand] body.pages-goods-index .confirmTime {
  background: var(--surface) !important; color: var(--tap-deep) !important; box-shadow: inset 0 0 0 1.5px var(--tap) !important;
}
html[data-brand] body.pages-goods-index .box3_xin .goods-content { background: transparent !important; padding: 0 !important; border: 0 !important; }
html[data-brand] .native-404::before { content: ''; display: block; width: 150px; height: 150px; margin: 10px auto 6px; background: var(--notfound-art) center / contain no-repeat; }
html[data-brand] .page-error::before { content: ''; display: block; width: 150px; height: 150px; margin: 40px auto 8px; background: var(--offline-art) center / contain no-repeat; }
html[data-brand] .detail-empty::before {
  content: ''; display: block; width: 140px; height: 140px; margin: 10px auto 6px;
  background: var(--empty-art) center / contain no-repeat;
}

html[data-brand] .row-cell .no-data::before { content: none !important; display: none !important; }
.xm-page-hero__title:empty::after { display: none; }

/* ================================================================ iOS 化（2026-11-28 用户：看下 iOS 的设计，干净清爽）
   系统字体；导航标题居中 17 半粗；大标题 32；分组卡片 12 圆角、发丝分隔线；装饰点到为止。 */
html[data-brand] body, html[data-brand] uni-page-body, html[data-brand] .uni-input-input, html[data-brand] uni-button {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-brand] uni-page-head .uni-page-head-bd { left: 56px !important; right: 56px !important; }
html[data-brand] uni-page-head .uni-page-head__title { text-align: center !important; font-size: 17px !important; font-weight: 600 !important; }
html[data-brand] .xm-page-hero__title { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: .3px; top: 10px; }
html[data-brand] .xm-page-hero__title::after { width: 28px; height: 4px; border-radius: 2px; margin-top: 4px; }
html[data-brand] .xm-hl::after, html[data-brand] .xm-section-title__text::after, html[data-brand] .home-section-hl::after {
  height: 4px !important; bottom: 1px !important; border-radius: 2px !important; background: rgba(var(--tap-rgb), .55) !important;
}
html[data-brand] .xm-spark, html[data-brand] .xm-glint { display: none !important; }

/* 页面底色一律纯白 */
html[data-brand] body, html[data-brand] uni-page-body, html[data-brand] uni-page-wrapper, html[data-brand] .xmm-page, html[data-brand] .mian { background-color: #fff !important; }

/* iOS inset grouped：设置类页面的单元格组做成白色圆角分组卡，发丝分隔线缩进 16 */
html[data-brand] body.pages-center-myshezhi .main, html[data-brand] body.pages-center-setting .cont,
html[data-brand] body.pages-account-alertPref .setting-group, html[data-brand] .xm-group {
  margin: 8px 16px 14px !important; border-radius: 14px !important; overflow: hidden; background: #fff !important;
  box-shadow: var(--card-shadow) !important;
}
html[data-brand] .u-cell__body { min-height: 50px; box-sizing: border-box; }
html[data-brand] .u-cell__title-text { font-size: 16px !important; color: var(--t1) !important; }
html[data-brand] .u-cell__right-icon-wrap, html[data-brand] .u-cell__right-icon-wrap .u-icon__icon { color: var(--t3) !important; }
html[data-brand] .u-line { border-color: var(--line) !important; margin-left: 16px !important; width: auto !important; }
html[data-brand] body.pages-center-myshezhi .logout {
  margin: 8px 16px !important; border-radius: 14px !important; background: #fff !important; box-shadow: var(--card-shadow);
  color: #FF3B30 !important; font-weight: 600;
}

/* 扁平横幅左侧是浅色留白：标语用深色字、不加暗色遮罩 */
html[data-brand] .xm-slide::after { content: none !important; }
html[data-brand] .xm-slide__title { color: var(--t1) !important; text-shadow: none !important; font-size: 22px; font-weight: 800; }
html[data-brand] .xm-slide__sub { background: var(--btn-grad) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }

/* 选中的导航图标：实心扁平 + 弹一下 */
.custom-tab-bar .xm-tab-svg.is-on { color: var(--tap-deep); width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .custom-tab-bar .xm-tab-svg.is-on { animation: xm-tab-pop .5s var(--spring) both; }
}

/* 导航图标：全部用实心扁平图形；未选中是浅品牌色（不是灰），选中是深品牌色 + 弹一下 */
html[data-brand="nianjiu"] { --tab-idle: #F5B58A; }
html[data-brand="nuoyuan"] { --tab-idle: #8FDDB8; }
.custom-tab-bar .xm-tab-svg { color: var(--tab-idle) !important; width: 26px !important; height: 26px !important; }
.custom-tab-bar .is-current .xm-tab-svg { color: var(--tap-deep) !important; }
@media (prefers-reduced-motion: no-preference) { .custom-tab-bar .is-current .xm-tab-svg { animation: xm-tab-pop .5s var(--spring) both; } }
.custom-tab-bar .tab-text { color: var(--tab-idle) !important; }
.custom-tab-bar .is-current .tab-text, .custom-tab-bar .xm-tab-center .tab-text { color: var(--tap-deep) !important; }
/* iOS 式图标块：菜单 44、专区 52，图块自带圆角底色，不再加任何阴影/描边 */
.xmm-3d { width: 44px !important; height: 44px !important; }
html[data-brand] .xm-zone__icon { width: 52px; height: 52px; border-radius: 14px; }
/* 三角券寄售流程：5 个品牌扁平图标 + 序号，之间用浅色连线 */
.xm-steps { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; position: relative; }
.xm-steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--line); z-index: 0; }
.xm-step { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; background: var(--muted); display: flex; align-items: center; justify-content: center; }
.xm-step img { width: 30px; height: 30px; object-fit: contain; }
.xm-step i { position: absolute; left: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--btn-grad); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 首页右下悬浮按钮（hub-index.js homeFab） */
.xm-fab { position: fixed; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 950; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.xm-fab button { border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--spring), opacity .25s; }
.xm-fab button:active { transform: scale(.9); }
.xm-fab-top { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--tap-deep); box-shadow: var(--card-shadow); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px) scale(.8); pointer-events: none; }
.xm-fab.show-top .xm-fab-top { opacity: 1; transform: none; pointer-events: auto; }
.xm-fab-pub { width: 54px; height: 54px; border-radius: 50%; background: var(--btn-grad); box-shadow: 0 6px 16px rgba(var(--tap-rgb), .35); display: flex; align-items: center; justify-content: center; }
.xm-fab-label { margin-top: -16px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--tap-deep); font-size: 11px; font-weight: 700; box-shadow: var(--card-shadow); pointer-events: none; }
/* 收款账户：三个并列选项用 iOS 式描边按钮，不堆三条渐变 */
html[data-brand] body.pages-center-myPayment .bind-button {
  background: #fff !important; color: var(--tap-deep) !important; box-shadow: inset 0 0 0 1.5px var(--tap) !important;
}
html[data-brand] body.pages-center-myPayment .bind-button::after { content: none !important; }
/* 空态一律「图在上、字在下」居中（有的页面空态容器是横向 flex） */
html[data-brand] .no-data, html[data-brand] .empty-tip, html[data-brand] .xm-empty, html[data-brand] .empty-state, html[data-brand] .xm-empty-tip {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center; text-align: center; width: 100%;
}
/* 其它页面自带的空列表（捆绑包订单 .empty-list、主播列表永远为空的 .we-zb__more）也配插画 */
html[data-brand] .empty-list:not([style*="display: none"])::before, html[data-brand] .we-zb__more::before {
  content: ''; display: block; width: 132px; height: 132px; margin: 24px auto 8px;
  background: var(--empty-art) center / contain no-repeat;
}
html[data-brand] .empty-list, html[data-brand] .we-zb__more { display: flex; flex-direction: column; align-items: center; }

/* ================================================================ 全站列表卡片异形（参考站卡片 + 品牌票券感）
   念旧：卡片两侧靠下各挖一个半圆缺口（像票据撕口），落在价格/操作行上方；
   诺源：右上角斜切 18px（HUD 切角）。阴影改 drop-shadow，跟着异形走。 */
html[data-brand] :is(.goods-item2, .oness, .xmg-card, .goods-card, .post-card, .rec-card, .consultation-item, .we-kefu__item) {
  border-radius: 16px !important; background-color: #fff !important; box-shadow: none !important;
}
html[data-brand="nianjiu"] :is(.goods-item2, .oness, .xmg-card, .goods-card, .post-card, .rec-card, .consultation-item, .we-kefu__item) {
  -webkit-mask: radial-gradient(circle 9px at 0 calc(100% - 52px), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% calc(100% - 52px), transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 calc(100% - 52px), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% calc(100% - 52px), transparent 98%, #000) right / 51% 100% no-repeat;
  filter: drop-shadow(0 4px 10px rgba(255, 122, 43, .13));
}
html[data-brand="nuoyuan"] :is(.goods-item2, .oness, .xmg-card, .goods-card, .post-card, .rec-card, .consultation-item, .we-kefu__item) {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  filter: drop-shadow(0 4px 10px rgba(16, 200, 120, .14));
}
/* 订单卡原来是通栏白条，补上外边距成卡片 */
html[data-brand] .oness { margin: 12px 12px 0 !important; overflow: hidden; }
html[data-brand] :is(.post-card, .rec-card, .consultation-item) { margin: 0 12px 12px !important; }

/* ================================================================ 聊天气泡异形（私聊 / 群聊）
   自己的消息：品牌渐变 + 右上角收成小尖角；对方：白卡 + 品牌浅描边 + 左上角尖角。
   诺源再把对角切一刀（HUD 切角），念旧保持圆润。气泡第一次出现时从发送方向弹入。 */
html[data-brand] .we-msg-bubble {
  position: relative; padding: 10px 14px !important; font-size: 15px; line-height: 22px;
  border-radius: 18px !important;
}
html[data-brand] .we-msg-row.is-mine .we-msg-bubble {
  background: var(--btn-grad) !important; color: #fff !important; border-top-right-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(var(--tap-rgb), .22);
}
html[data-brand] .we-msg-row.is-peer .we-msg-bubble {
  background: #fff !important; color: var(--t1) !important; border-top-left-radius: 4px !important;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 10px rgba(var(--tap-rgb), .08);
}
html[data-brand="nuoyuan"] .we-msg-row.is-mine .we-msg-bubble { clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px)); border-radius: 14px 4px 14px 14px !important; }
html[data-brand="nuoyuan"] .we-msg-row.is-peer .we-msg-bubble { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); border-radius: 4px 14px 14px 14px !important; }
html[data-brand] .we-msg-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(var(--tap-rgb), .35); }
@media (prefers-reduced-motion: no-preference) {
  html[data-brand] .we-msg-row.is-mine .we-msg-bubble { animation: xm-bubble-r .35s var(--spring) both; transform-origin: right top; }
  html[data-brand] .we-msg-row.is-peer .we-msg-bubble { animation: xm-bubble-l .35s var(--spring) both; transform-origin: left top; }
  @keyframes xm-bubble-r { from { opacity: 0; transform: translateX(14px) scale(.9); } }
  @keyframes xm-bubble-l { from { opacity: 0; transform: translateX(-14px) scale(.9); } }
}

/* ================================================================ 首页商品卡 v4.1「票券」（ui/goods-card.js）
   用户 2026-11-28：「首页这些不够炫」。借参考站卡片的封图角标、编号、彩色登录方式标签，做成品牌票券：
   - 描边是品牌渐变：::before 铺渐变、::after 白底内缩 1.5px，两层都压在内容下面（isolation），
     卡片本身不裁切，所以 drop-shadow 跟着外形走；
   - 念旧：圆角 + 撕口两侧半圆缺口；诺源：右上斜切 + 撕口两侧 V 形切口（.xm-gc-perf 的两个 <b>）；
   - 数据块品牌浅色渐变，4 项主指标配扁平图标、数值渐变字；次指标拆成带图标的小胶囊；
   - 价格渐变大字；「号主在线秒上」前一颗在线绿点（只闪三下）；封图角标进场滑入一次。 */
html[data-brand] .goods-item2 {
  position: relative; isolation: isolate; overflow: visible !important;
  padding: 14px !important; border: 0 !important; border-radius: 18px !important;
  background: transparent !important; box-shadow: none !important;
  -webkit-mask: none !important; mask: none !important; clip-path: none !important;
  filter: drop-shadow(0 6px 14px rgba(var(--tap-rgb), .13));
}
html[data-brand] .goods-item2:active { box-shadow: none !important; }
html[data-brand] .goods-item2::before, html[data-brand] .goods-item2::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
}
html[data-brand] .goods-item2::before { inset: 0; border-radius: 18px; background: var(--gc-border); }
html[data-brand] .goods-item2::after { inset: 1.5px; border-radius: 16.5px; background: #fff; }
/* 诺源切角：外层 20px；内层线向内平移 1.5px 后在内缩坐标里是 20 + 1.5 − 1.5√2 − 1.5 ≈ 19.1px */
html[data-brand="nuoyuan"] .goods-item2::before { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
html[data-brand="nuoyuan"] .goods-item2::after { clip-path: polygon(0 0, calc(100% - 19.1px) 0, 100% 19.1px, 100% 100%, 0 100%); }

/* 封图：角标 + 编号 */
html[data-brand] .goods-item2 .goods-header-img-box { position: relative; border-radius: 14px !important; }
html[data-brand="nuoyuan"] .goods-item2 .goods-header-img-box { border-radius: 10px !important; }
.xm-gc-ribbon {
  position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 2px;
  height: 20px; padding: 0 8px 0 5px; border-bottom-right-radius: 10px;
  font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .5px; color: #fff;
}
.xm-gc-ribbon-ico { width: 14px; height: 14px; display: block; }
.xm-gc-ribbon.is-jp { background: linear-gradient(135deg, var(--t1), var(--t2)); color: var(--accent); }
.xm-gc-ribbon.is-tj { background: linear-gradient(135deg, var(--price), var(--tap)); }
.xm-gc-ribbon.is-tj .xm-gc-ribbon-ico { filter: brightness(0) invert(1); }
.xm-gc-code {
  position: absolute; right: 5px; bottom: 5px; z-index: 2; padding: 2px 6px; border-radius: 7px;
  font-size: 9.5px; line-height: 12px; font-weight: 600; letter-spacing: .3px; color: #fff; white-space: nowrap;
  background: color-mix(in srgb, var(--t1) 72%, transparent); font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .xm-gc-ribbon { animation: xm-ribbon-in .45s var(--spring) .15s both; }
  @keyframes xm-ribbon-in { from { transform: translateX(-105%); } }
}

/* 标题与标签 */
html[data-brand] .goods-item2 .goods-header-shop-title { font-weight: 700 !important; color: var(--t1) !important; }
html[data-brand] .goods-item2 .goods-header-shop-des { gap: 6px !important; }
html[data-brand] .goods-item2 .goods-content-tag {
  display: inline-flex !important; align-items: center; gap: 3px; height: 22px; box-sizing: border-box;
  padding: 0 8px 0 6px !important; border: 0 !important; border-radius: 999px !important;
  font-size: 11px !important; line-height: 1 !important; font-weight: 600 !important; white-space: nowrap;
  background: var(--tap-tint) !important; color: var(--tap-deep) !important;
}
html[data-brand] .goods-item2 .goods-content-tag.region-tag { background: var(--qq-tint) !important; color: var(--qq) !important; }
html[data-brand] .goods-item2 .goods-content-tag.wechat-region { background: var(--wx-tint) !important; color: var(--wx) !important; }
.xm-gc-glyph { display: inline-flex; width: 12px; height: 12px; flex-shrink: 0; }
.xm-gc-glyph svg { width: 100%; height: 100%; display: block; }

/* 数据块 */
html[data-brand] .goods-item2 .goods-content {
  margin-top: 12px !important; padding: 12px 4px 10px !important; border-radius: 14px !important;
  background: var(--gc-panel) !important; box-shadow: inset 0 0 0 1px var(--line);
}
html[data-brand="nuoyuan"] .goods-item2 .goods-content {
  border-radius: 10px !important; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
html[data-brand] .goods-item2 .goods-stats .stat-item { position: relative; min-width: 0; }
html[data-brand] .goods-item2 .goods-stats .stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--outline), transparent);
}
.xm-gc-stat-ico { width: 24px; height: 24px; display: block; margin-bottom: 4px; }
html[data-brand] .goods-item2 .goods-stats .stat-value {
  font-size: 16px !important; font-weight: 800 !important; max-width: 100%; overflow: hidden;
  background: var(--gc-num); -webkit-background-clip: text; background-clip: text;
}
/* 数值超过 7 个字（如 18100.00亿、1:278462）缩小一档，免得挤进隔壁格 */
html[data-brand] .goods-item2 .goods-stats .stat-value.is-long { font-size: 13px !important; }
html[data-brand] .goods-item2 .goods-stats .stat-value, html[data-brand] .goods-item2 .goods-stats .stat-value span { color: transparent !important; }
html[data-brand] .goods-item2 .goods-stats .stat-label { color: var(--t2) !important; }
html[data-brand] .goods-item2 .xm-gc-chips {
  display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px;
  margin-top: 10px !important; padding: 0 2px !important; white-space: normal !important; overflow: visible !important;
}
.xm-gc-chip {
  display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 6px 0 4px; box-sizing: border-box;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px; line-height: 1; font-weight: 600; color: var(--t2); white-space: nowrap;
}
.xm-gc-chip-ico { width: 13px; height: 13px; display: block; }
html[data-brand="nuoyuan"] .xm-gc-chip { border-radius: 4px 11px 11px 11px; }

/* 票券撕口：虚线 + 两侧缺口。缺口压在描边上，白底盖住那一段描边，再用内描边画出缺口轮廓 */
.xm-gc-perf { position: relative; display: block; height: 18px; margin: 8px -14px 2px; }
.xm-gc-perf::before { content: ''; position: absolute; left: 16px; right: 16px; top: 8.25px; border-top: 1.5px dashed var(--outline); }
.xm-gc-perf b { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--outline); }
.xm-gc-perf b:first-child { left: -9px; clip-path: inset(0 0 0 50%); }
.xm-gc-perf b:last-child { right: -9px; clip-path: inset(0 50% 0 0); }
/* 诺源：V 形切口。外层三角是描边色，里层白三角各边内缩 1.5px（1.5√2 ≈ 2.1px，即 10.6%） */
html[data-brand="nuoyuan"] .xm-gc-perf b { top: -1px; width: 20px; height: 20px; border-radius: 0; box-shadow: none; background: var(--outline); }
html[data-brand="nuoyuan"] .xm-gc-perf b::after { content: ''; position: absolute; inset: 0; background: #fff; }
html[data-brand="nuoyuan"] .xm-gc-perf b:first-child { left: -10px; clip-path: polygon(50% 0, 100% 50%, 50% 100%); }
html[data-brand="nuoyuan"] .xm-gc-perf b:first-child::after { clip-path: polygon(50% 10.6%, 89.4% 50%, 50% 89.4%); }
html[data-brand="nuoyuan"] .xm-gc-perf b:last-child { right: -10px; clip-path: polygon(50% 0, 0 50%, 50% 100%); }
html[data-brand="nuoyuan"] .xm-gc-perf b:last-child::after { clip-path: polygon(50% 10.6%, 10.6% 50%, 50% 89.4%); }

/* 价格与操作 */
html[data-brand] .goods-item2 .goods-footer { padding: 0 !important; }
html[data-brand] .goods-item2 .goods-footer .price-section .price-big {
  font-size: 24px !important; font-weight: 800 !important; line-height: 30px !important;
  background: var(--gc-price); -webkit-background-clip: text; background-clip: text;
}
html[data-brand] .goods-item2 .goods-footer .price-big, html[data-brand] .goods-item2 .goods-footer .price-big span { color: transparent !important; }
html[data-brand] .goods-item2 .goods-footer .price-yen { font-size: 14px !important; }
html[data-brand] .goods-item2 .goods-footer :is(.price-unit, .price-old) { color: var(--t2) !important; }
html[data-brand] .goods-item2 .goods-footer .confirm-time-btn.is-online {
  display: inline-flex !important; align-items: center; gap: 5px; height: 24px !important; padding: 0 9px 0 8px !important;
  font-weight: 700 !important; background: var(--tap-tint) !important; color: var(--tap-deep) !important;
}
.xm-live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--success); color: var(--success); flex-shrink: 0; }
html[data-brand="nuoyuan"] .xm-live { background: var(--tap); color: var(--tap); }
@media (prefers-reduced-motion: no-preference) {
  .xm-live::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: xm-live 1.6s ease-out .4s 3; }
  @keyframes xm-live { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
}
html[data-brand] .goods-item2 .goods-footer .rent-btn {
  height: 34px !important; padding: 0 20px !important; line-height: 34px !important; font-size: 14px !important; font-weight: 700 !important;
}

/* ================================================================ 首页筛选条
   三个下拉：选中有值 / 展开时文字变品牌深色，底下长出一截渐变短条，箭头翻转；「筛选」做成渐变胶囊按钮，
   高级筛选里有值时右上角一颗价格红圆点。图标都是内联 SVG，跟着文字颜色走。 */
html[data-brand] .filter-bar {
  height: 50px !important; padding: 0 12px 0 16px !important; gap: 4px;
  background: #fff !important; border-bottom: 0 !important; box-shadow: 0 1px 0 var(--line);
}
html[data-brand] .filter-bar .filter-item { flex: 1 1 0; gap: 3px; }
html[data-brand] .filter-bar .filter-item uni-text { position: relative; font-size: 14px !important; font-weight: 600 !important; color: var(--t1) !important; }
html[data-brand] .filter-bar .filter-item uni-text::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 18px; height: 3px; margin-left: -9px;
  border-radius: 3px; background: var(--btn-grad); transform: scaleX(0); transition: transform .3s var(--spring);
}
html[data-brand] .filter-bar .filter-item:is(.sort-active, .is-open) uni-text { color: var(--tap-deep) !important; font-weight: 800 !important; }
html[data-brand] .filter-bar .filter-item:is(.sort-active, .is-open):not(.xm-filter-btn) uni-text::after { transform: scaleX(1); }
html[data-brand] .filter-bar .xm-fb-ico {
  display: inline-flex; width: 12px !important; height: 12px !important; opacity: 1 !important; color: var(--tap);
  transition: transform .3s var(--spring);
}
html[data-brand] .filter-bar .xm-fb-ico svg { width: 100%; height: 100%; display: block; }
html[data-brand] .filter-bar .xm-filter-btn {
  flex: 0 0 auto; flex-direction: row-reverse; justify-content: center !important; gap: 4px;
  height: 32px; padding: 0 14px 0 11px; box-sizing: border-box; border-radius: 999px;
  background: var(--btn-grad); box-shadow: 0 4px 12px rgba(var(--tap-rgb), .28);
}
html[data-brand] .filter-bar .xm-filter-btn uni-text, html[data-brand] .filter-bar .xm-filter-btn:is(.sort-active, .is-open) uni-text { color: #fff !important; font-weight: 700 !important; }
html[data-brand] .filter-bar .xm-filter-btn .xm-fb-ico { width: 14px !important; height: 14px !important; color: #fff; }
html[data-brand] .filter-bar .xm-filter-btn.sort-active::after {
  content: ''; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--price); box-shadow: 0 0 0 2px #fff;
}
html[data-brand="nuoyuan"] .filter-bar .xm-filter-btn { border-radius: 6px 16px 16px 16px; }

/* ================================================================ 首页专区 v4.1：人物从圆台里探出来
   用户 2026-11-28 拿参考站专区截图：「能改成这样吗那个图标，看着高级点」。
   每格：底下一个品牌浅色圆台（::before），半身人物立在圆台里，头和肩探出圆台上沿；
   人物图用遮罩裁成「圆台下半弧 + 圆心以上整片」，腰部的截断线藏进圆台弧线里。
   选中：圆台外一圈品牌色环 + 整体上浮；人物打开页面时依次弹入一次，之后静止。 */
html[data-brand] .xm-zones { gap: 12px 4px; padding: 12px 6px 12px; }
html[data-brand] .xm-zone { gap: 4px; }
html[data-brand] .xm-zone .xm-zone__icon {
  position: relative; width: 84px; height: 86px; border-radius: 0; box-shadow: none !important; background: none;
}
html[data-brand] .xm-zone .xm-zone__icon::before {
  content: ''; position: absolute; left: 11px; bottom: 0; width: 62px; height: 62px; border-radius: 50%;
  background: var(--zone-disc); transition: box-shadow .25s;
}
html[data-brand] .xm-zone .xm-zone__icon img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  -webkit-mask: radial-gradient(circle 31px at 50% calc(100% - 31px), #000 30.5px, transparent 31px),
                linear-gradient(#000 0 0) top / 100% calc(100% - 31px) no-repeat;
          mask: radial-gradient(circle 31px at 50% calc(100% - 31px), #000 30.5px, transparent 31px),
                linear-gradient(#000 0 0) top / 100% calc(100% - 31px) no-repeat;
}
html[data-brand] .xm-zone .xm-zone__label { font-size: 12px; font-weight: 600; color: var(--t1); }
html[data-brand] .xm-zone.is-on .xm-zone__icon { transform: translateY(-2px); }
html[data-brand] .xm-zone.is-on .xm-zone__icon::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tap), 0 6px 14px rgba(var(--tap-rgb), .28); }
html[data-brand] .xm-zone.is-on .xm-zone__label { color: var(--tap-deep); font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
  html[data-brand] .xm-zone .xm-zone__icon img { animation: xm-fig-in .55s var(--spring) both; }
  html[data-brand] .xm-zone:nth-child(2) .xm-zone__icon img { animation-delay: .04s; }
  html[data-brand] .xm-zone:nth-child(3) .xm-zone__icon img { animation-delay: .08s; }
  html[data-brand] .xm-zone:nth-child(4) .xm-zone__icon img { animation-delay: .12s; }
  html[data-brand] .xm-zone:nth-child(5) .xm-zone__icon img { animation-delay: .16s; }
  html[data-brand] .xm-zone:nth-child(6) .xm-zone__icon img { animation-delay: .20s; }
  html[data-brand] .xm-zone:nth-child(7) .xm-zone__icon img { animation-delay: .24s; }
  html[data-brand] .xm-zone:nth-child(8) .xm-zone__icon img { animation-delay: .28s; }
  @keyframes xm-fig-in { from { opacity: 0; transform: translateY(16px); } }
}
