/* public mirror stamp 20260805032938 */
/**
 * H5 关键样式（全局 class，不依赖 CSS Modules）
 * 用途：iOS Safari 若 module 哈希样式异常/未挂上，布局仍可用。
 * 与 modules 并存：同属性 modules 可覆盖增强。
 *
 * 约定：
 * - 居中用 grid，禁止 absolute+translate+scale 叠放
 * - 顶栏仅 logo（余额胶囊已移除，首页在 VIP 卡）
 * - 触屏无 catFill 蓝墨
 */

/* 状态栏采样：html 白；内容底仍浅蓝（壳层 .h5-root） */
html[data-h5-viewport='1'] {
  background: #ffffff !important;
}

[data-ui='h5'].h5-root,
.h5-root[data-ui='h5'] {
  --h5-page-pad-x: 10px;
  --h5-section-gap: 16px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  /* 内容区浅蓝；状态栏靠 html/theme-color 白，勿把 #eef4ff 顶到系统栏 */
  background: #eef4ff;
  color: #1a2744;
  overflow: hidden;
  font-family: 'Oxanium', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  /* 禁缩放辅助：双击不放大；禁长按选中/复制/呼出菜单 */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* me 等与全站同浅底；顶渐变在 .pageBgBand，勿 !important 盖死 */

/* 整壳内默认不可选；输入框若以后有再开 text */
[data-ui='h5'] *,
[data-ui='h5'] *::before,
[data-ui='h5'] *::after {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

[data-ui='h5'] input,
[data-ui='h5'] textarea,
[data-ui='h5'] [contenteditable='true'] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

[data-ui='h5'] img,
[data-ui='h5'] a {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* —— 顶栏 grid —— */
.h5-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: var(--h5-page-pad-x, 12px);
  padding-right: var(--h5-page-pad-x, 12px);
  background: transparent;
}

/* 9YUI 模糊层：从 safe-area 下起，勿糊状态栏（对齐 VIP 顶白接缝） */
.h5-topbar-blur {
  position: absolute;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top, 0px);
  bottom: -16px;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 68%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, #000 0, #000 68%, transparent 100%);
}

.h5-topbar-left,
.h5-topbar-center,
.h5-topbar-right {
  position: relative;
  z-index: 1;
}

.h5-topbar-left {
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
}

.h5-topbar-center {
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h5-topbar-right {
  justify-self: end;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 无内容时才缩成占位点（勿裁切通知铃） */
.h5-topbar-right:empty {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.h5-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.h5-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* —— 主区 ——
 * 壳层 body/#root overflow:hidden，橡皮筋只能发生在 .h5-main
 * overscroll-behavior-y 须为 auto；inner 略高于 100% 保证不足一屏也能弹
 */
.h5-main {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  /* Thrill 底栏占位：62 + 4 + 14 + safe */
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
  /* 透明：露出壳层顶部 pageBgBand 渐变 */
  background: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.h5-main::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* PC H5 全局藏系统条（critical 首屏兜底） */
html[data-h5-viewport='1'] *:not(.os-viewport):not(.os-padding):not(.os-content):not(.os-host),
.h5-root *:not(.os-viewport):not(.os-padding):not(.os-content):not(.os-host),
[data-ui='h5'] *:not(.os-viewport):not(.os-padding):not(.os-content):not(.os-host) {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html[data-h5-viewport='1'] *:not(.os-viewport):not(.os-padding):not(.os-content):not(.os-host)::-webkit-scrollbar,
.h5-root *:not(.os-viewport):not(.os-padding):not(.os-content):not(.os-host)::-webkit-scrollbar,
[data-ui='h5'] *:not(.os-viewport):not(.os-padding):not(.os-content):not(.os-host)::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* 综艺直播间：全屏，无顶栏/底栏占位（首屏 critical 兜底） */
.h5-root[data-h5-live] .h5-main {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  overscroll-behavior-y: none;
  background: #dfe6f2;
}

.h5-main-inner {
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--h5-section-gap, 12px);
  padding-top: var(--h5-section-gap, 12px);
  padding-bottom: var(--h5-section-gap, 12px);
}

.h5-main-inner[data-h5-page='home'] {
  min-height: calc(100% + 1px);
  /* 首卡 VIP 顶外距收紧（与 modules 一致） */
  padding-top: 6px;
}

/* 活动：外壳不滚，内层 H5Activity.body 滚，顶 Tab 固定 */
.h5-main-inner[data-h5-page='activity'] {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
  padding-bottom: 0;
}

.h5-root[data-h5-live] .h5-main-inner {
  min-height: 100%;
  height: 100%;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #dfe6f2;
}

/* 四层仅左右 pad；层间距见 main-inner gap */
.h5-promo {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 var(--h5-page-pad-x, 12px);
}

/* —— 入口双卡 —— */
.h5-entry {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--h5-page-pad-x, 12px);
}

.h5-search {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 var(--h5-page-pad-x, 12px);
}

/* wrap 定宽高；card 铺满（与 module 一致） */
.h5-entry-wrap {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  aspect-ratio: 1.12 / 1;
  min-height: 0;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.h5-entry-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 4px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  /* 无外阴影 / 内阴影（含长按） */
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transform: none;
  transition: transform 0.35s ease;
}

.h5-entry-card.is-pressed {
  transform: scale(0.97);
  -webkit-transform: scale(0.97);
  box-shadow: none;
}

/* PCH5 入口：悬停仅 1.03；无蓝墨/邻卡置灰（细节见 H5EntryCards.module） */
@media (hover: hover) and (pointer: fine) {
  .h5-entry-wrap:hover .h5-entry-card:not(.is-pressed) {
    transform: scale(1.03);
    -webkit-transform: scale(1.03);
  }
}

.h5-entry-icon-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h5-entry-icon {
  display: block;
  width: 96%;
  height: auto;
  max-height: 92%;
  object-fit: contain;
}

.h5-entry-label {
  flex-shrink: 0;
  margin: 0;
  padding: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a2744;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* —— 底栏：H5 始终全宽，禁止 460 夹窄（PC 缩窗拉大时会缩） —— */
.h5-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 4px var(--h5-page-pad-x, 12px)
    calc(14px + env(safe-area-inset-bottom, 0px));
  -webkit-transform: translateY(0);
  transform: translateY(0);
  pointer-events: none;
}

.h5-bottom.is-hidden {
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: transform 300ms ease-out;
}

.h5-bottom-nav {
  pointer-events: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 62px;
  padding: 4px 14px;
  border-radius: 999px;
  /* 与 module 一致：磨砂白约 10% 透 */
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.06);
}

.h5-bottom-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  color: rgba(26, 39, 68, 0.48);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* 禁止在 item 根上 scale：无 transition 会 0 帧跳，且与 itemInner 叠乘 */
  transform: none;
  -webkit-transform: none;
}

.h5-bottom-item.is-active {
  color: #2f7bff;
  font-weight: 700;
}

.h5-bottom-item.is-active svg,
.h5-bottom-item.is-active svg * {
  opacity: 1 !important;
  fill: #2f7bff !important;
  fill-opacity: 1 !important;
}

/*
 * svg+文字 scale 必须在内层，写死 416/224（与余额胶囊 / lab 一致）
 * 禁止再给 .h5-bottom-item:active 无时长 scale
 */
.h5-bottom-item-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transform: translateZ(0) scale(0.926);
  -webkit-transform: translateZ(0) scale(0.926);
  transform-origin: center center;
  transition: transform 416ms cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-transition: -webkit-transform 416ms cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .h5-bottom-item.is-active:hover .h5-bottom-item-inner {
    transform: translateZ(0) scale(1);
    -webkit-transform: translateZ(0) scale(1);
  }
}

.h5-bottom-item.is-active:active .h5-bottom-item-inner {
  transform: translateZ(0) scale(0.9);
  -webkit-transform: translateZ(0) scale(0.9);
  transition-duration: 224ms;
  -webkit-transition-duration: 224ms;
  transition-timing-function: linear;
  -webkit-transition-timing-function: linear;
}

/* iOS critical rebuild stamp: 20260801k */
[data-ui='h5']{--h5-crit:'20260801k';}

