/* ============================================================
   ★批次C B10/B11/B12 点击命中区覆盖层（独立文件，不碰 mobile.css 转发器）
   加载位置：index.html 动态设备 CSS 之后（保证同特异性覆盖）
   三件套：content:"" / position:absolute / border-radius:inherit
   宿主需 position:relative|absolute；::after 仅扩大命中盒，不改变视觉
   ============================================================ */

/* ---------- B10 搜索清空× 非对称扩盒（右侧扩≤2px 防抢占搜索按钮） ---------- */
/* PC/移动宿主原本已是 absolute，此处仅显式兜底，不重复也无副作用 */
.search-clear-btn { position:absolute; }
.search-clear-btn::after,
#searchClearBtn::after,
.mobile-search-clear-btn::after {
  content:"";
  position:absolute;
  inset:-10px -2px -10px -10px;   /* 上/左各扩10px，右仅2px（防侵入搜索按钮），下10px */
  border-radius:inherit;
}

/* 移动端清空×统一间距：right 统一 64px，padding-right 统一 88px，净间距 4~6px→12~14px */
@media (max-width:768px){
  #searchClearBtn { right:64px; }
  .nav-search input { padding-right:88px; }
  .mobile-search-clear-btn { right:64px; }
  .mobile-search-input-wrap input { padding-right:88px; }
}

/* ---------- B11 排序箭头：gap + ::after 扩命中盒，不撑高排序栏 ---------- */
.sort-arrows { gap:6px; }
.sort-arrows .arr { position:relative; }
.sort-arrows .arr::after {
  content:"";
  position:absolute;
  inset:-2px -6px;
  border-radius:inherit;
}
.sort-arrows .arr:active { color:var(--color-brand); transform:scale(.9); }

/* ---------- B12 弹窗关闭× 扩命中区（收藏心形已 display:none 隐藏，不动） ---------- */
.rebate-close,
.cc-close,
.download-modal-close,
.phone-buy-close,
.uo-modal-close,
.kefu-wx-close,
.sl-close,
.fans-modal-close,
.invite-qr-close,
.login-modal-close,
.msp-chip-del,
.history-del { position:relative; }

.rebate-close::after,
.cc-close::after {
  content:"";
  position:absolute;
  inset:-9px;
  border-radius:inherit;
}

.download-modal-close::after,
.phone-buy-close::after,
.uo-modal-close::after,
.kefu-wx-close::after,
.sl-close::after,
.fans-modal-close::after,
.invite-qr-close::after,
.login-modal-close::after {
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:inherit;
}

.msp-chip-del::after,
.history-del::after {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
}

/* 统一补 :active 触屏反馈 */
.rebate-close:active,
.cc-close:active,
.download-modal-close:active,
.phone-buy-close:active,
.uo-modal-close:active,
.kefu-wx-close:active,
.sl-close:active,
.fans-modal-close:active,
.invite-qr-close:active,
.login-modal-close:active,
.msp-chip-del:active,
.history-del:active { filter:brightness(.9); }

/* 批次D L06/L08：详情底栏接入冻结安全区，消除下沉弹回（不恢复已下线的32px） */
.dm-bottom-bar { padding-bottom: var(--ca-sab, env(safe-area-inset-bottom, 0px)); }
.dm-bottom-spacer { height: calc(61px + var(--ca-sab, env(safe-area-inset-bottom, 0px))); }

/* 批次D L09：≤360px 窄屏领券按钮自适应，宽屏保留280px定宽 */
@media (max-width:360px){
  .dm-bottom-bar .dm-bb-buy { width:auto; flex:1 1 auto; min-width:0; max-width:280px; }
}

/* 批次D L11：弹窗内容层随可视视口收缩，避免软键盘遮挡（vh保留+dvh覆盖） */
.modal-content { max-height: 90vh; max-height: calc(100dvh - 24px); }
.uo-modal-body { max-height: 60vh; max-height: calc(100dvh - 120px); }
.fans-modal { max-height: 70vh; max-height: calc(100dvh - 32px); }
.ll-modal { max-height: 86vh; max-height: calc(100dvh - 16px); }
#inviteGateRoot .ig-full { max-height: 100vh; max-height: 100dvh; }

/* 批次D L19：确认框遮罩抬层级，盖住详情底栏（登录弹窗本就9999不受影响） */
.modal-overlay { z-index: 1200; }

/* 批次D L20：toast 层级抬到灯箱/粉丝/邀请码/客服之上（覆盖层最后加载胜出，移动端/PC都加载本文件） */
.toast { z-index: 20000; }

/* 批次D L29：加载蒙层抬层级，盖住导航/底栏（保持pointer-events:none不改交互语义） */
.dtk-loading-overlay { z-index: 950; }

/* 批次D L21：dual预览模式列表高度减去底栏，避免被Tab栏吃掉（APP已关闭dual，仅影响?dual=1预览） */
body.dual #page-home.active {
  height: calc(100dvh - var(--nav-height, 56px) - var(--sat, 0px) - 60px - var(--ca-sab, env(safe-area-inset-bottom, 0px)));
}

/* 批次D L30：平台切换遮罩独立模糊态，品牌收尾不再提前清除（只加态，不改 is-loading 语义） */
.dtk-rank-list.is-platform-switching { opacity:.55; pointer-events:none; }


/* V108.2248：订单页平台 tab 栏横向滚动（6 个 tab 挤在一行导致文字压成两行）
   .uo-tabs 占满剩余宽度并可横滑；tab 不收缩、不换行；刷新按钮固定右侧不随滚动。 */
.uo-platform-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.uo-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;               /* Firefox 隐藏滚动条 */
  gap: 5px;
}
.uo-tabs::-webkit-scrollbar { display: none; }   /* Chrome/Safari 隐藏滚动条 */
.uo-tab {
  flex: 0 0 auto;                      /* 不收缩，保证文案完整 */
  white-space: nowrap;
  padding: 4px 12px;
}
.uo-sync {
  flex: 0 0 auto;                      /* 刷新按钮固定在右，不参与滚动 */
}

/* 批次D L06/L08 补修：鸿蒙 ArkWeb env()=0→--ca-sab=0，冻结无补偿，in-harmony 直补固定安全区 */
html.in-harmony .dm-bottom-bar { padding-bottom: 32px; }
html.in-harmony .dm-bottom-spacer { height: calc(61px + 32px); }

/* 批次D L10 补修：鸿蒙手势条直补，ll-modal 贴底按钮避开系统手势条 */
html.in-harmony .ll-modal { padding-bottom: 54px; }

/* ========== UX排期D批第二批 (V108.2252) ========== */
/* L17 键盘焦点环：仅键盘导航显示，鼠标点击不出现；排除 input（已有border/shadow反馈） */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-rausch-red, #ff385c);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* L26 收款/提现表单：提交按钮吸底 + 44px 命中，避免软键盘遮挡提交 */
@media (max-width: 768px) {
  #wdSubmit, #payeeSubmit {
    position: sticky; bottom: 0; z-index: 1;
    min-height: 44px;
    box-shadow: 0 -6px 12px rgba(255, 255, 255, .9);
  }
}

/* ========== UX排期D批 L31：邀请码浮层 dvh 上限 + 关闭× 44px 命中盒 ========== */
/* JS内联<style>在head末尾，晚于本文件，必须!important才能覆盖 */
#inviteGateRoot .ig-sheet,
#inviteGateRoot .ig-dialog {
  max-height: 78vh !important;
  max-height: 78dvh !important;
}
#inviteGateRoot .ig-sheet-close { position: absolute; }
#inviteGateRoot .ig-sheet-close::after {
  content:"";
  position:absolute;
  inset:-11px;
  border-radius:inherit;
}

/* ========== UX排期D批 L12：剩余热区补44命中盒（.btn-fav被全局隐藏故不含） ========== */
.detail-top-fav { position: relative; }
.detail-top-fav::after {
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:inherit;
}

/* ========== UX排期D批 L05：低高度横屏压缩纵向占用（纯增量，不改现有断点） ========== */
/* 触发面：手机横屏(如 667x375)，高度<500 时导航/底栏/banner 仍按竖屏高度撑开导致内容被挤压 */
/* 1024x768 横屏平板高度768>500 不受影响，仍走PC布局 */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --nav-height: 44px; }
  .hero { display: none; }
  .mobile-tabbar { height: 48px; padding-bottom: 0; }
}


/* V113.2296 骨架态不压暗：覆盖批次D L21 的 .55（hit-target 最后加载，同特异性胜出） */
.dtk-rank-list.is-skeleton-loading { opacity: 1 }
