/* 房间相关样式已移除 */

/* 计时器音波扩散动画背景 */
html, body {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

html.no-splash #page-splash {
  display: none !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* 添加筹码弹窗 */
.topup-popup-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  /* 必须高于 #game-layer(999999)，否则游戏内弹窗被盖住、退出后才看见 */
  z-index: 1000001;
}
.topup-popup-box {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}
.topup-bg {
  display: block;
  width: 100%;
  height: 100%;
}

/* iPhone 主屏幕引导层总容器：控制整层坐标系与层级 */
.splash-a2hs-guide {
  position: absolute;
  left: 0;
  top: 0;
  /* 这里是设计稿坐标系，若要改成视口坐标可改为 100vw/100vh */
  width: 750px;
  height: 1334px;
  /* 必须高于启动页与登录页元素 */
  z-index: 1000002;
  /* 容器不拦截点击，仅卡片本体可点 */
  pointer-events: none;
}

/* 引导卡片主体：位置、大小、圆角、背景都在这里调 */
.splash-a2hs-card {
  position: absolute;
  /* 左右边距：越小越宽 */
  left: 55px;
  right: 55px;
  /* 距底部偏移：增大=更往上，减小=更靠底 */
  bottom: 5px;
  /* 卡片高度下限：增大可容纳更多文案 */
  min-height: 398px;
  border-radius: 24px;
  background: rgba(12, 12, 18, 0.92);
  border: 1px solid rgba(255, 232, 188, 0.7);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  /* 内边距：上 右 下 左；下边留给箭头指示区域 */
  padding: 34px 72px 132px 32px;
  box-sizing: border-box;
  pointer-events: auto;
}

/* 标题文字：字号、粗细、下间距 */
.splash-a2hs-title {
  color: #ffe8bc;
  font-size: 46px;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 18px;
}

/* 说明文案：可直接微调字号与行高 */
.splash-a2hs-desc {
  color: #f7f7f7;
  font-size: 34px;
  line-height: 1.6;
  opacity: 0.95;
}

/* 文案内“...”样式标签 */
.splash-a2hs-inline-dots {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 241, 206, 0.6);
  vertical-align: middle;
}

.splash-a2hs-inline-dots::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff1cc;
  transform: translate(-50%, -50%);
  box-shadow: -8px 0 0 #fff1cc, 8px 0 0 #fff1cc;
}

/* 关闭按钮：右上角圆形 X */
.splash-a2hs-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 63px;
  height: 63px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 32px;
  line-height: 63px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

/* 右下角指示组容器：整体移动箭头/手指/点点 */
.splash-a2hs-pointer-wrap {
  position: absolute;
  right: 8px;
  bottom: 8px;
  /* 调这两个值可整体放大/缩小指示组占位 */
  width: 96px;
  height: 96px;
  pointer-events: none;
}

/* 手指图标：纯 CSS/字符方案，后续可替换成图片资源 */
.splash-a2hs-pointer-hand {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90px;
  height: 90px;
  font-size: 78px;
  line-height: 90px;
  text-align: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transform-origin: center center;
  animation: splash-a2hs-hand-bob 1s ease-in-out infinite;
}

@keyframes splash-a2hs-hand-bob {
  0% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(-2px); }
}

/* 底部“...”提示气泡 */
.splash-a2hs-pointer-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 74px;
  height: 42px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 241, 206, 0.65);
  color: #fff1cc;
  font-size: 30px;
  letter-spacing: 2px;
  line-height: 40px;
  text-align: center;
}
.topup-keypad-img {
  position: absolute;
  pointer-events: none;
}
.topup-keypad-overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}
.topup-key-btn {
  position: absolute;
  cursor: pointer;
  transition: transform 0.1s ease;
  transform-origin: center;
}
.topup-key-active {
  transform: scale(0.92);
}
.topup-display {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  pointer-events: none;
}
.topup-display img {
  height: 100%;
  width: auto;
  display: block;
}
.topup-confirm-btn,
.topup-close-btn {
  position: absolute;
  cursor: pointer;
  z-index: 3;
}
.topup-confirm-btn {
  transition: transform 0.12s ease;
  transform-origin: center;
}
.topup-confirm-active {
  transform: scale(1.08);
}
.topup-toast {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  /* 同上：保证在游戏层之上可见 */
  z-index: 1000003;
  pointer-events: none;
}
.topup-toast-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topup-toast-bg {
  width: 703px;
  height: 101px;
  max-width: 90vw;
  max-height: 20vh;
  object-fit: contain;
}
.topup-toast-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 0 36px;
  pointer-events: none;
}
/* 房间相关样式已移除 */

/* 联盟成员列表：隐藏滚动条（仍可滚动） */
.guild-alliance-members-scroll {
  scrollbar-width: none;
}
.guild-alliance-members-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.guild-member-admin-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 228, 182, 0.75);
  border-radius: 12px;
  background: linear-gradient(180deg, #f2e2be 0%, #c7a467 52%, #9d7138 100%);
  color: #5f2800;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 0 rgba(255, 246, 220, 0.45);
  -webkit-text-stroke: 0.6px rgba(255, 238, 210, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 2px 6px rgba(0,0,0,0.38);
  cursor: pointer;
  padding: 0;
  outline: none;
}

.guild-member-admin-btn.is-admin {
  background: linear-gradient(180deg, #8df6a1 0%, #3fbb5d 55%, #238f43 100%) !important;
  color: #f2ffe8 !important;
  border-color: rgba(205, 255, 216, 0.95) !important;
  text-shadow: 0 1px 0 rgba(20, 74, 35, 0.55) !important;
  -webkit-text-stroke: 0.6px rgba(24, 82, 39, 0.65);
  box-shadow: inset 0 1px 0 rgba(226, 255, 233, 0.48), 0 2px 8px rgba(21, 80, 43, 0.45);
}

.guild-member-admin-btn:active {
  transform: scale(0.96);
}

.guild-member-badge-text {
  letter-spacing: 1px;
}
/* 房间相关样式已移除 */



html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  
}

:root {
  --safe-top: constant(safe-area-inset-top);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: constant(safe-area-inset-bottom);
  --safe-bottom: env(safe-area-inset-bottom);
}

/* 房间大厅：牌桌列表（三列） */
.room-table-list {
  position: absolute;
  top: 309px;
  left: 30px;
  width: 690px;
  height: 840px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 5;
}
.room-table-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.room-table-list {
  scrollbar-width: none;
}


.app-root-scale {
  width: 750px;
  height: 1334px;
  position: fixed;
  left: var(--app-left, 0px);
  top: var(--app-top, 0px);
  background: transparent;
  z-index: 1;
  box-sizing: border-box;

  transform: scale(var(--app-scale, 1));
  transform-origin: top left;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* ===================== 启动页遮罩（覆盖开场动画的静态部分） =====================
#page-splash {
  overflow: hidden;
  background: #000;
  position: relative;
}
 */
#page-splash .splash-frames {
  position: absolute;
  left: 0;
  top: 285px;
  width: 750px;
  height: 713px;
  --splash-frame-scale: 0.96;
  transform: scale(var(--splash-frame-scale));
  transform-origin: center center;
  object-fit: contain;
  z-index: 10;
  pointer-events: none;
  visibility: visible;
}

#splashMask {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  object-fit: contain;
  z-index: 15;
  pointer-events: none;
}
/* 
#splashQdzz {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  transform: none;
  z-index: 20;
  pointer-events: none;
  object-fit: cover;
}

启动页加载进度条（按设计稿坐标） */
#splashProgressWrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  z-index: 15; /* 高于遮罩图与动画 */
  pointer-events: none;
}

#splashLoadingHint {
  position: absolute;
  left: 55px;
  top: 1142px;
  width: 640px;
  height: 38px;
  color: #f5d164fc;
  font-size: 28px;
  line-height: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(58, 34, 0, 0.65), 0 0 8px rgba(240, 187, 52, 0.35);
  z-index: 16;
}

#splashJdtBg {
  position: absolute;
  left: 55px;
  top: 1193px;
  width: 640px;
  height: 33px;
}

#splashJdtFillClip {
  position: absolute;
  left: 55px;
  top: 1193px;
  width: 0px; /* JS 动态设置 */
  height: 33px;
  overflow: hidden;
}

#splashJdtFill {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 33px;
}

#splashJdtCoin {
  position: absolute;
  left: 55px; /* JS 动态设置 */
  top: 1193px;
  width: 33px;
  height: 33px;
}



/* ===================== 小九房间页面背景 ===================== */

/* 缩放适配：由JS动态设置scale值 */
/* 相关样式已由JS动态控制，如需透明背景请在具体元素上设置 */
/* 按序纵向排列8个点击区 */
.mine-click-btn[data-idx="1"] { top: 0; }
.mine-click-btn[data-idx="2"] { top: 100px; }
.mine-click-btn[data-idx="3"] { top: 200px; }
.mine-click-btn[data-idx="4"] { top: 300px; }
.mine-click-btn[data-idx="5"] { top: 400px; }
.mine-click-btn[data-idx="6"] { top: 500px; }
.mine-click-btn[data-idx="7"] { top: 600px; }
.mine-click-btn[data-idx="8"] { top: 700px; }
/* ===================== 公会/个人中心页面背景 ===================== */
/* .guild-bg-img: 公会页面背景图片（ghlm.webp） */
.guild-bg-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  z-index: 1;
}

/* 工会页帧动画：0103.mp4 -> frames2（750x795） */
.guild-video {
  position: absolute;
  left: 0;
  top: 187px;
  width: 750px;
  height: 808px;
  z-index: 2;
  object-fit: contain;
}

/* 工会页：视频显示时隐藏其它内容，避免视频非满屏时透出后面的页面 */
#main-guild {
  position: relative;
}
#main-guild.guild-video-mode > *:not(.guild-bg-img):not(.guild-video):not(#guildJoinHotspot):not(#guildCreateHotspot):not(#guildRoleEntryHotspot):not(#guildLeaderAvatarUnderLayer):not(#guildLeaderTextOverlayLayer) {
  display: none !important;
}
#main-guild.guild-video-mode .guild-video {
  z-index: 2;
}
#main-guild.guild-video-mode #guildJoinHotspot {
  z-index: 6;
}
#main-guild.guild-video-mode #guildCreateHotspot {
  z-index: 7;
}
/* .mine-bg-img: 个人中心页面背景图片（wdbj.webp） */
.mine-bg-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  z-index: 1;
}
.mine-click-area {
  position: absolute;
  left: 0;
  top: 250px;
  width: 750px;
  height: 800px;
  z-index: 2;
}
.mine-click-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.mine-click-overlay-ghbb {
  position: absolute;
  left: 0;
  top: 100px;
  width: 312px;
  height: 87px;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}
.mine-click-area .mine-click-btn {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 3;
  cursor: pointer;
}
/* 房间页面布局与图片样式 */
/* 房间背景容器 */
/* ...重复样式已删除，仅保留唯一定义... */
/* 房间页面布局与图片样式 */
.room-bg {
  position: absolute;
  left: 26px;
  top: 250px;
  width: 695px;
  height: auto;
  z-index: 2;
  background: transparent;
}
.room-bg-img {
  display: block;
  width: 695px;
  height: auto;
  object-fit: contain;
  z-index: 2;
}
.room-table-item {
  position: relative;
  width: 222px;
  height: 349px;
  margin: 0 auto;
  /* 牌桌整体缩放：让左右“座位耳朵”离边框留空隙 */
  --room-table-scale: 0.95;
  --room-table-w: 211px;
  --room-table-h: 332px;
  --room-table-left: 6px;
  --room-table-top: 9px;
  cursor: pointer;
}

.room-table-img {
  position: absolute;
  left: var(--room-table-left);
  top: var(--room-table-top);
  width: var(--room-table-w);
  height: var(--room-table-h);
  display: block;
  object-fit: contain;
  z-index: 5;
}

.room-card-overlay {
  position: absolute;
  left: var(--room-table-left);
  top: var(--room-table-top);
  width: var(--room-table-w);
  height: var(--room-table-h);
  pointer-events: none;
  z-index: 5;
}

.room-card-text-wrap {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 行间距：25px */
  gap: 25px;
  padding: 0;
  box-sizing: border-box;
  transform: translateY(-50%);
}

.room-card-text {
  position: relative;
  width: 100%;
  color: #fff;
  font-size: 27px;
  font-weight: 400;
  text-align: center;
  line-height: 25px;
  text-shadow: none;
}

/* 兼容：若 overlay 内没有 .room-card-text-wrap（例如 index.html 的静态结构），也要有更大的行间距 */
.room-card-overlay > .room-card-text + .room-card-text {
  margin-top: 25px;
}

.room-card-text.line1,
.room-card-text.line2,
.room-card-text.line3 {
  position: relative;
  left: 0;
  top: 0;
}

.room-card-start {
  position: absolute;
  left: 57px;
  top: 54px;
  width: 107px;
  height: 33px;
  background: url('assets/images/yxdt/yks.webp') no-repeat center;
  background-size: contain;
  display: none;
}

.room-card-vip {
  position: absolute;
  left: 156px;
  top: 17px;
  width: 38px;
  height: 38px;
  z-index: 4;
  pointer-events: none;
  object-fit: contain;
}

.room-card-id {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 60px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.6);
  color: #ffd37a;
  font-size: 16px;
  border-radius: 6px;
  text-align: center;
  z-index: 4;
}

.room-card-avatars {
  position: absolute;
  left: 0;
  top: 0;
  width: 222px;
  height: 349px;
}

.room-card-avatar {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  display: none;
}
.room-card-avatar.slot1 { left: 88.5px; top: 0px; }
.room-card-avatar.slot2 { left: 177px; top: 70px; }
.room-card-avatar.slot3 { left: 177px; top: 143px; }
.room-card-avatar.slot4 { left: 177px; top: 220px; }
.room-card-avatar.slot5 { left: 88.5px; top: 304px; }
.room-card-avatar.slot6 { left: 0px; top: 220px; }
.room-card-avatar.slot7 { left: 0px; top: 143px; }
.room-card-avatar.slot8 { left: 0px; top: 70px; }

/* 小九大厅牌桌头像布局（参考 main-x9.js / fwd.css）：6 个槽位对称环绕。
   仅作用于大厅卡片容器（.room-card-avatars.game-x9），不影响牛牛(8人)。 */
.room-card-avatars.game-x9 {
  width: 215px;
  height: 336px;
}
.room-card-avatars.game-x9 .room-card-avatar {
  width: 50px;
  height: 50px;
}
.room-card-avatars.game-x9 .room-card-avatar.slot1 { left: 82px; top: 0px; }
.room-card-avatars.game-x9 .room-card-avatar.slot2 { left: 170px; top: 80px; }
.room-card-avatars.game-x9 .room-card-avatar.slot3 { left: 170px; top: 190px; }
.room-card-avatars.game-x9 .room-card-avatar.slot4 { left: 82px; top: 290px; }
.room-card-avatars.game-x9 .room-card-avatar.slot5 { left: -7px; top: 190px; }
.room-card-avatars.game-x9 .room-card-avatar.slot6 { left: -7px; top: 80px; }
.room-x9-btn {
  position: absolute;
  left: 0;
  top: 596px;
  z-index: 6;
  cursor: pointer;
  width: 57px;
/* .room-x9-btn: 小九切换按钮（x9ann1.webp） */
  height: 209px;
}
.room-nn-btn {
  position: absolute;
  right: 0;
  top: 596px;
  z-index: 6;
  cursor: pointer;
  width: 57px;
/* .room-nn-btn: 牛牛切换按钮（nnann1.webp） */
  height: 209px;
}
.room-liuhe-btn {
  position: absolute;
  left: 262px;
  top: 1130px;
  z-index: 8;
  cursor: pointer;
  width: 226px;
/* .room-liuhe-btn: 六合入口按钮（2358c45f-2dc3-474b-a417-056666945304.webp） */
  height: 62px;
}
#homeVideoMask {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  z-index: 20;
  pointer-events: none;
}
#homeVideo {
  pointer-events: none;
  z-index: 10;
}

.home-hotspot {
  position: absolute;
  border-radius: 100px;
  cursor: pointer;
  z-index: 30;
  background: rgba(0,0,0,0);
}

#hotspot-x9 {
  left: 74px;
  top: 230px;
  width: 208px;
  height: 215px;
}

#hotspot-unsupported {
  left: 58px;
  top: 806px;
  width: 232px;
  height: 222px;
}

#unsupported-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 705px;
  height: 106px;
  transform: translate(-50%, -50%);
  background: url('assets/images/tsbj.webp') no-repeat center;
  background-size: contain;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
  color: #ffe8c2;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* 首页中间视频样式 */
#homeVideo,
#homeFrames {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translateX(-49.6%);
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}
.web-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 130px;
  z-index: 50;
}

/* 背景图片（dibu2.webp） */
.web-header .header-bg { 
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 130px;
  object-fit: none;
  opacity: 0.8;
  z-index: 1;
}
/* 余额背景（yek.webp） */
.web-header .header-balance-bg {
 position: absolute;
  left: 175px;
  top: 48px;
  width: 205px;
  height: 45px;
  object-fit: none;
  z-index: 2;
}
/* 余额文字 */
.web-header .header-balance-text {
  position: absolute;
  left: 175px;
  top: 45px;
  width: 205px;
  height: 45px;
  color: #cc9e6b;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
/* 用户信息容器 */
.web-header .header-user {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 60px;
  z-index: 3;
}
/* 用户名文字 */
.web-header .header-username {
  position: absolute;
  left: 193px;
  top: 12px;
  width: 127px;
  height: 26px;
  color: #cc9e6b;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* 用户ID文字 */
.web-header .header-userid {
  position: absolute;
  left: 374px;
  top: 12px;
  width: 127px;
  height: 26px;
  color: #cc9e6b;
  font-size: 22px;
  font-weight: 700;
  opacity: 0.85;
  line-height: 26px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* 收分按钮（s.webp/ks.webp） */
.web-header .header-collect {
  /* 原图尺寸: 60x60 */
  position: absolute;
  left: 345px;
  top: 37px;
  width: 60px;
  height: 60px;
  object-fit: none;
  z-index: 4;
  cursor: pointer;
}
/* 充值按钮（j.webp） */
.web-header .header-topup {
  /* 原图尺寸: 60x60 */
  position: absolute;
  left: 405px;
  top: 36px;
  width: 60px;
  height: 60px;
  object-fit: none;
  z-index: 4;
  cursor: pointer;
}
/* 额外按钮（b.webp） */
.web-header .header-extra {
  /* 原图尺寸: 65x65 */
  position: absolute;
  left: 98px;
  top: 89px;
  width: 65px;
  height: 65px;
  object-fit: none;
  z-index: 4;
  cursor: pointer;
}
/* 客服按钮（zxkf.webp） */
.web-header .header-kf {
  /* 原图尺寸: 84x87 */
  position: absolute;
  left: 550px;
  top: 10px;
  width: 84px;
  height: 87px;
  object-fit: none;
/* ===================== 顶部栏相关 ===================== */
/* .web-header: 整个顶部栏容器 */
  z-index: 4;
  cursor: pointer;
  pointer-events: auto;
}
/* 消息按钮（xx.webp） */
.web-header .header-msg {
  /* 原图尺寸: 60x75 */
  position: absolute;
/* .web-header .header-bg: 顶部栏背景图片（dibu2.webp） */
  left: 668px;
  top: 15px;
  width: 60px;
  height: 75px;
  object-fit: none;
  z-index: 4;
  cursor: pointer;
  pointer-events: auto;
}

/* 头像边框（xk.webp） */
.web-header .header-avatar-frame {
  position: absolute;
  left: 15px;
  top: 4px;
  width: 100px;
  height: 100px;
  object-fit: none;
  z-index: 5;
}
/* 头像（avatar.webp） */
/* .web-header .header-balance-text: 余额文字 */
.web-header .header-avatar {
  position: absolute;
  left: 25px;  /* 居中对齐 100px 框内 */
  top: 14px;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  z-index: 4;  /* 置于边框下方 */
  cursor: pointer;
}
/* =====================================================
   CSS 常用属性速查表（给自己看的）
   -----------------------------------------------------
   
   位置 / 尺寸
   left    : 距离左边（x 坐标）
   top     : 距离上边（y 坐标）
   right   : 距离右边
   bottom  : 距离下边
   width   : 宽度
   height  : 高度

   布局 / 定位
   position:
     - absolute : 绝对定位（常用，按设计稿坐标摆）

     - relative : 相对定位（给子元素当参照）
     - fixed    : 固定在屏幕上
     - static   : 默认（基本不用）

   显示 / 隐藏
   display:
     - block : 显示
     - none  : 隐藏
   opacity : 透明度（0=全透明，1=不透明）

   z-index : 层级，数字越大越靠上

   图片 / 视频
   object-fit:
     - cover   : 填满容器（可能裁剪）
     - contain : 完整显示（可能留黑边）

   字体 / 文字
   font-size : 字号
   color     : 文字颜色
   text-align: 对齐（left / center / right）


   动画 / 交互
   transition : 过渡动画（如渐显）
   transform  : 变形（scale / translate）
   cursor     : 鼠标样式（pointer = 可点击）

   常用单位
   px : 像素（你这个项目主要用这个）
   %  : 百分比（相对父元素）
   ===================================================== */

/* .web-header .header-topup: 充值按钮（j.webp） */
.page {
  position: absolute;
  inset: 0;
}

/* 页面层级与背景：避免登录/注册时透出公会页面 */
#page-splash {
  z-index: 6;
  background: #000;
}
#page-login {
  z-index: 5;
  background: #000;
}
#page-home {
  z-index: 1;
}

.hidden {
  display: none !important;
}

.init-hidden {
  display: none;
}

body.room-mode #lobby-layer,
html.room-mode #lobby-layer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.room-mode #page-home,
html.room-mode #page-home {
  display: none !important;
}

video {
  width: 100%;
/* .web-header .header-extra: 额外按钮（b.webp） */
  height: 100%;
  object-fit: cover;
}

/* ===== 登录页复刻用（新增） ===== */

/* 背景 */
.bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  z-index: 1;
}
/* .web-header .header-avatar-frame: 头像边框（xk.webp） */

/* 快速登录图 */
.bjksdr {
  position: absolute;
  width: 117px;
  height: 145px;
  left: 316px;
  top: 989px;
  z-index: 3;
}

/* .web-header .header-avatar: 头像（avatar.webp） */
/* 登录面板 */
.drbb {
  position: absolute;
  width: 696px;
  height: 531px;
  left: 29px;
  top: 404px;
  
   z-index: 2;
}

/* 登录面板背景图 */
.drbb-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 696px;
  height: 531px;
  pointer-events: none;
}

/* 输入框 */
.input-user,
.input-pass {
  position: absolute;
  left: 100px;
  width: 440px;
  height: 40px;
  line-height: 40px;
  z-index: 10;
  pointer-events: auto;
  background: transparent;
  border: none;
  outline: none;
  font-size: 30px;
  color: #93554b;
}

.input-user::placeholder,
.input-pass::placeholder {
  color: #93554b;
  opacity: 1;
}

.input-user::-webkit-input-placeholder,
.input-pass::-webkit-input-placeholder {
  color: #93554b;
}

.input-user:-ms-input-placeholder,
.input-pass:-ms-input-placeholder {
  color: #93554b;
}

.input-user::-ms-input-placeholder,
.input-pass::-ms-input-placeholder {
  color: #93554b;
}

.input-user {
  top: 100px;
}

.input-pass {
  top: 220px;
}

/* 输入框 */
.srk {
  position: absolute;
  width: 263px;
  height: 28px;
}

.srk-account {
  left: 243px;
  top: 948px;
}

.srk-password {
  left: 243px;
  top: 1005px;
}

/* 忘记密码 */
.wjmm {
  position: absolute;
  width: 147px;
  height: 45px;
  left: 481px;
  top: 696px;
  z-index: 3;
}

/* 登录按钮 */
.dr-btn {
  position: absolute;
  width: 309px;
  height: 105px;
  left: 220px;
  top: 766px;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.15s ease;
  transform-origin: center;
}

.dr-btn:active {
  transform: scale(1.05);
}

/* 快速登录 */
.ksdr {
  position: absolute;
  width: 263px;
  height: 24px;
  left: 243px;
  top: 948px;
  z-index: 3;
}
/* 登录面板视频（覆盖 drbb） */
.drbb-video {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 750px;
  height: 422px;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.drbb-video.video-softstart {
  opacity: 1;
}

/* 登录页版本号（右下角） */
.login-version {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 1000007;
  font-size: 14px;
  line-height: 1;
  color: rgba(220, 120, 120, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
/* ===== 首页整体 ===== */
#page-home {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ===== 首页公告托盘（ggl.webp）===== */
.home-announce {
  position: absolute;
  left: 40px;
  top: 130px;
  z-index: 20;
  height: 55px;
  width: 662px;
  z-index: 40;
  background: url('assets/images/ggl.webp') no-repeat;
  background-size: 662px 55px;
  pointer-events: none;

  /* 可由 JS 动态覆盖时长 */
  --marquee-duration: 16s;
  --marquee-start: 100%;
  --marquee-end: -100%;
}

.home-announce-marquee {
  position: absolute;
  left: 57px; /* ✅ 左侧预留 57px 放喇叭 */
  right: 12px;
  top: 5px;
  height: 45px; /* ✅ 上下各留 5px */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-announce-marquee-runner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: home-announce-marquee var(--marquee-duration) linear infinite;
  color: #93554b;
  font-size: 22px;
  line-height: 1;
}

#home-announce-text {
  color: #93554b;
}

@keyframes home-announce-marquee {
  0% { transform: translateX(var(--marquee-start, 100%)); }
  100% { transform: translateX(var(--marquee-end, -100%)); }
}

/* ===== 全屏背景 ===== */
.home-main {
  position: absolute;
  inset: 0; /* top/right/bottom/left 全 0 */
  z-index: 1;
}

.home-main .beig {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* 第1层：大厅全屏背景 bg_global */
}

/* 内容区统一为全屏叠层，避免被背景/keep-alive home 覆盖 */
.home-main .main-content-block {
  position: absolute;
  left: 0;
  top: 0;
  width: 750px;
  height: 1334px;
  z-index: 3; /* 内容层默认在第3层 */
}

/* 房间大厅层：遮挡底部页面，避免透出公会 */
#main-room {
  background: transparent;
  z-index: 6; /* 房间大厅层需高于其它内容块，避免 yxbj 被覆盖 */
}

/* ===== 顶部栏（覆盖在背景上） ===== */
.home-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 底部栏（覆盖在背景上） ===== */
.home-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 750px;                 /* ✅ 固定为设计稿宽度 */
  height: 120px;
  transform: translateX(-50%);  /* ✅ 居中 */
  z-index: 50;
   pointer-events: auto;
}

/* 底部按钮与中间动画点击态放大效果 */
.home-bottom .tab-btn,
#bottomAnimWrap {
  transition: transform 0.2s ease-out;
  transform-origin: center center;
}

.home-bottom .tab-btn:active {
  transform: translateX(-50%) scale(1.09);
}

#bottomAnimWrap:active {
  transform: translateX(-50%) scale(1.09);
}


.home-bottom .db {
  inset: 0;
  object-fit: cover;
  opacity: 1;
}

/* ===== 中间动画按钮 ===== */
.center-btn {
  position: absolute;
  left: 50%;
  top: -40px; /* 浮在底栏上 */
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  z-index: 100;
}

.center-btn video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



    
/* ===== 底部中间动画包裹层（只管位置） ===== */
#bottomAnimWrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 50px;            /* 你说的层高 */
  z-index: 60;
  pointer-events: auto;
}

/* ===== 动画背景 ===== */
#bottomAnimBg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: url("assets/images/dbdh/gg.webp") no-repeat center;
  background-size: contain;
  z-index: 1;
}

/* ===== 帧动画本体 ===== */
#bottomAnim {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translate(-50%, 8px);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 2;
  will-change: transform;
}
/* fj.webp 特效层（最上层） */
#bottomAnimFx {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%) scale(1);
  background: url("assets/images/dbdh/fj.webp") no-repeat center;
  background-size: contain;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}
#bottomStar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 180px;
  height: 160px;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}

.bottom-star {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--star-w, 31px);
  height: var(--star-h, 31px);
  opacity: 0;
  --dx: 0px;
  --dy: 78px;
  --spin: 0deg;
  --scale: 1;
  --duration: 1s;
  --rot: 0deg;
  background: url('assets/images/dbdh/xx1.webp') center no-repeat;
  background-size: auto;
  filter: drop-shadow(0 0 8px rgba(255, 205, 120, 0.75));
  transform-origin: center;
  animation: bottom-star-rise var(--duration) linear forwards;
}

@keyframes bottom-star-rise {
  0% {
    transform: translate(calc(-50%), 0) scale(var(--scale)) rotate(0deg);
    opacity: 0;
  }
  12% { opacity: 0.9; }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-1 * var(--dy))) scale(var(--scale)) rotate(var(--spin));
    opacity: 0;
  }
}
/* ===== 底部按钮（原尺寸）===== */
.tab-btn {
  position: absolute;
  bottom: 10px;
  cursor: pointer;
 transform: translateX(-50%);
  z-index: 82;
}

/* ===== 活动指示框 ===== */
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 78px; /* 默认 home */
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 81;
  transition: left 0.25s ease;
}

/* ===== MP4 软启动：避免首次进入可见卡顿 ===== */
.video-softstart {
  opacity: 0;
  transition: opacity 0.18s ease;
  will-change: opacity;
}
.video-softstart.is-ready {
  opacity: 1;
}

/* ===== 连接服务器遮罩（App/WebView）===== */
@keyframes xhyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#serverConnectingOverlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  pointer-events: auto;
  display: none;
}

#serverConnectingBox {
  position: absolute;
  width: 660px;
  height: 210px;
  transform-origin: top left;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

#serverConnectingBox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/jiaz.webp') no-repeat center;
  background-size: 100% 100%;
  opacity: 0.6;
  z-index: 0;
}

#serverConnectingSpinner {
  width: 206px;
  height: 206px;
  animation: xhyl-spin 2.4s linear infinite;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

#serverConnectingText {
  color: #fff;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  position: relative;
  z-index: 1;
}
