﻿/* ===== 底部栏分级弹性布局 barfix3：宽/中/窄 三档自适应（独立文件） ===== */
/* 宽档(>=1100px)：三区并排，使用现有默认样式 */

/* 中档(780~1100px)：状态区折叠为头像、hover悬浮详情；技能丹药区可横向滚动 */
.scroll-bottom-bar.bar-mid .scroll-left,
.scroll-bottom-bar.bar-narrow .scroll-left {
  min-width: 64px !important;
  max-width: 64px !important;
  flex-shrink: 0 !important;
}
.scroll-bottom-bar.bar-mid .scroll-avatar { width: 52px !important; height: 52px !important; }
.scroll-bottom-bar.bar-mid .scroll-stats,
.scroll-bottom-bar.bar-narrow .scroll-stats { display: none !important; }
.scroll-bottom-bar.bar-mid .scroll-left,
.scroll-bottom-bar.bar-narrow .scroll-left { position: relative !important; }
.scroll-bottom-bar.bar-mid .scroll-left:hover .scroll-stats,
.scroll-bottom-bar.bar-narrow .scroll-left:hover .scroll-stats {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 100% !important;
  margin-bottom: 6px !important;
  background: linear-gradient(180deg,#f8f2e6,#ede3d0) !important;
  border: 2px solid #8b7355 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  min-width: 200px !important;
  z-index: 60 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #5a3a1a !important;
  white-space: nowrap !important;
}
.scroll-bottom-bar.bar-mid .scroll-center,
.scroll-bottom-bar.bar-narrow .scroll-center {
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.scroll-bottom-bar.bar-mid .scroll-center::-webkit-scrollbar,
.scroll-bottom-bar.bar-narrow .scroll-center::-webkit-scrollbar { display: none !important; }

/* 窄档(<780px)：技能/丹药拆两行，底栏加高 */
.scroll-bottom-bar.bar-narrow {
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
}
.scroll-bottom-bar.bar-narrow .scroll-center {
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  overflow-x: visible !important;
}
.scroll-bottom-bar.bar-narrow .scroll-center > .scroll-divider { display: none !important; }
.scroll-bottom-bar.bar-narrow .scroll-skills,
.scroll-bottom-bar.bar-narrow .scroll-potions { justify-content: center !important; }
.scroll-bottom-bar.bar-narrow .scroll-left { min-width: 60px !important; max-width: 60px !important; }
.scroll-bottom-bar.bar-narrow .scroll-avatar { width: 50px !important; height: 50px !important; }

/* ===== barfix4：血条悬停浮层改用Portal渲染（避免被overflow裁切），禁用旧CSS浮层 ===== */
.scroll-bottom-bar.bar-mid .scroll-left:hover .scroll-stats,
.scroll-bottom-bar.bar-narrow .scroll-left:hover .scroll-stats { display: none !important; }
.bar-hover-stats {
  background: linear-gradient(180deg,#f8f2e6,#ede3d0) !important;
  border: 2px solid #8b7355 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  min-width: 200px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #5a3a1a !important;
  white-space: nowrap !important;
}

/* ===== 底栏技能/丹药提示框 Portal 浮层 barfix5 =====
   旧 CSS hover tooltip 被 chat-container/scroll-bottom-bar 的 overflow:hidden 裁切，
   改为 Portal 渲染到 body，position:fixed 跟随按钮坐标，任何浏览器/档位都完整可见 */
.scroll-bottom-bar .tooltip { display: none !important; }
.bar-hover-tip {
  transform: translate(-50%, -100%);
  margin-top: -8px;
  background: rgba(30,20,10,0.95);
  border: 1px solid #b8860b;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11px;
  color: #e8d8b8;
  white-space: nowrap;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.bar-hover-tip .tt-name { color: #f0c040; font-weight: bold; font-size: 12px; margin-bottom: 2px; display: inline; }
.bar-hover-tip .tt-desc { color: #a89878; font-size: 10px; }
.bar-hover-tip .tt-cd { color: #7ec8e3; font-size: 10px; margin-top: 2px; }
