/**
 * 大屏幕壳层视觉覆盖（frame.html）
 * 不改 iframe 内模块页面
 */
:root {
  --fs-glass: rgba(10, 14, 22, 0.62);
  --fs-glass-strong: rgba(10, 14, 22, 0.82);
  --fs-line: rgba(255, 255, 255, 0.14);
  --fs-line-strong: rgba(232, 195, 106, 0.45);
  --fs-text: #f8f4ea;
  --fs-muted: rgba(248, 244, 234, 0.68);
  --fs-accent: #e8c36a;
  --fs-accent-soft: rgba(232, 195, 106, 0.22);
  --fs-accent-glow: rgba(232, 195, 106, 0.35);
  --fs-radius: 0.55rem;
  --fs-dock-pad: 0.18rem;
}

/* ===== 顶部：Logo + 参与人数 ===== */
.Panel_Top {
  z-index: 20;
  height: auto;
  pointer-events: none;
}

.top_menu {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0.35rem;
}

.wx-screen-logo {
  display: block;
  max-height: 1.2rem;
  max-width: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0.25rem 0 0 0.15rem;
  filter: drop-shadow(0 0.08rem 0.18rem rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.tp-1 {
  right: 0.6rem;
  top: 0.45rem;
  height: auto;
  min-height: 0.7rem;
  line-height: 1.2;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--fs-glass) !important;
  border: 1px solid var(--fs-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0.12rem 0.35rem rgba(0, 0, 0, 0.25);
  font-size: 0.32rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--fs-text);
}

/* ===== 底部导航 Dock ===== */
.wx-screen-dock {
  pointer-events: none;
}

.wx-screen-dock .navbar,
.wx-screen-dock .subnav {
  pointer-events: auto;
}

.navbar.wx-dock-bar {
  left: 0.42rem;
  right: 0.42rem;
  bottom: 0.32rem;
  gap: 0.14rem;
  padding: var(--fs-dock-pad) 0.28rem var(--fs-dock-pad) 0.2rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    var(--fs-glass) !important;
  border: 1px solid var(--fs-line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 0.22rem 0.7rem rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    box-shadow 0.42s ease !important;
  will-change: transform, opacity;
}

.navbar.wx-dock-bar.wx-dock-ready {
  animation: none;
}

@keyframes wxDockIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.5rem, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.navbar.wx-dock-bar:not(.wx-dock-ready):not(.wx-dock-hidden) {
  animation: wxDockIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.navbar.wx-dock-bar.wx-dock-ready:not(.wx-dock-hidden) {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* 收起：下沉 + 淡出 + 轻微缩小，保留可过渡（不用 visibility 打断） */
.navbar.wx-dock-bar.wx-dock-hidden {
  opacity: 0 !important;
  transform: translate3d(0, calc(100% + 0.45rem), 0) scale(0.96) !important;
  filter: blur(2px);
  pointer-events: none !important;
  box-shadow: none !important;
}

/* 底部热区：收起时抬高层级，避免透明导航栏挡住无法唤出 */
.wx-dock-hotzone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  z-index: 898;
  cursor: default;
  pointer-events: none;
}

.wx-dock-hotzone.is-peek {
  z-index: 960;
  pointer-events: auto;
}

.wx-dock-hotzone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 72px;
  height: 4px;
  margin-left: -36px;
  border-radius: 999px;
  background: rgba(232, 195, 106, 0.35);
  box-shadow: 0 0 12px rgba(232, 195, 106, 0.25);
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
  pointer-events: none;
}

.wx-dock-hotzone.is-peek::after {
  opacity: 1;
  transform: scaleX(1);
  animation: wxDockPeek 2.2s ease-in-out infinite;
}

.wx-dock-hotzone:hover::after {
  background: rgba(232, 195, 106, 0.7);
  box-shadow: 0 0 16px rgba(232, 195, 106, 0.45);
  transform: scaleX(1.15);
  animation: none;
}

@keyframes wxDockPeek {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1);
  }
}

.navbar.wx-dock-bar .nav-items {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 0.06rem;
  overflow: visible;
  mask-image: none;
}

/* 菜单项均分整段可用宽度 */
.navbar.wx-dock-bar .nav-items .menu-item.navbar-btn {
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.wx-dock-divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  margin: 0.22rem 0.18rem;
  background: linear-gradient(
    180deg,
    transparent 8%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 92%
  );
}

.wx-dock-tools {
  display: flex !important;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0.06rem;
  float: none !important;
}

.wx-dock-tools .right-item {
  float: none !important;
  width: auto !important;
  flex: 0 0 auto;
}

.wx-dock-spacer {
  display: none !important;
}

.navbar.wx-dock-bar .navbar-btn {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  max-width: none;
  height: auto !important;
  padding: 0.12rem 0.06rem 0.1rem !important;
  padding-bottom: 0.1rem !important;
  border-radius: 0.42rem !important;
  background: transparent !important;
  border: 1px solid transparent;
  margin: 0 !important;
  float: none !important;
  overflow: visible !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.navbar-btn .icon-div {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-btn .icon-div::before {
  content: "";
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 0;
}

.navbar-btn .icon.iconfont {
  position: relative;
  z-index: 1;
  font-size: 0.48rem !important;
  line-height: 0.72rem;
  width: 0.72rem !important;
  height: 0.72rem;
  color: var(--fs-muted) !important;
  text-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-btn p {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  line-height: 1.2 !important;
  color: var(--fs-muted);
  font-size: 0.22rem !important;
  letter-spacing: 0.04em;
  margin: 0.12rem 0 0 !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-btn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-0.06rem);
}

.navbar-btn:hover .icon-div::before {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.navbar-btn:hover .icon.iconfont {
  color: var(--fs-text) !important;
  transform: scale(1.05);
}

.navbar-btn:hover p {
  color: var(--fs-text);
}

.navbar-btn.current,
.navbar-btn.active,
.navbar-btn.is-active {
  background: var(--fs-accent-soft) !important;
  border-color: var(--fs-line-strong);
  box-shadow: 0 0 0 1px rgba(232, 195, 106, 0.12), 0 0.12rem 0.35rem rgba(0, 0, 0, 0.25);
}

.navbar-btn.current .icon-div::before,
.navbar-btn.active .icon-div::before,
.navbar-btn.is-active .icon-div::before {
  background: rgba(232, 195, 106, 0.2);
  border-color: rgba(232, 195, 106, 0.45);
  box-shadow: 0 0 0.35rem var(--fs-accent-glow);
  animation: wxDockPulse 1.8s ease-in-out infinite;
}

.navbar-btn.current .icon.iconfont,
.navbar-btn.active .icon.iconfont,
.navbar-btn.is-active .icon.iconfont {
  color: var(--fs-accent) !important;
}

.navbar-btn.current p,
.navbar-btn.active p,
.navbar-btn.is-active p {
  color: var(--fs-text);
  font-weight: 600;
}

@keyframes wxDockPulse {
  0%,
  100% {
    box-shadow: 0 0 0.2rem var(--fs-accent-glow);
  }
  50% {
    box-shadow: 0 0 0.45rem var(--fs-accent-glow);
  }
}

/* 右侧工具区略紧凑，不参与左侧均分 */
.wx-dock-tools .navbar-btn {
  min-width: 0.9rem;
  max-width: 1.15rem;
  flex: 0 0 auto !important;
}

.wx-dock-tools .navbar-btn p {
  font-size: 0.2rem !important;
}

/* 仅在 JS 显示时用 flex；勿写 display:!important，否则会压过 style="display:none" */
.navbar-s {
  bottom: 2.05rem;
  right: 0.55rem;
  left: auto;
  width: auto !important;
  min-width: 2.4rem;
  padding: 0.16rem 0.22rem !important;
  gap: 0.12rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    var(--fs-glass-strong) !important;
  border: 1px solid var(--fs-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 0.16rem 0.45rem rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-s[style*="display: block"],
.navbar-s[style*="display:flex"],
.navbar-s[style*="display: flex"] {
  display: flex !important;
  align-items: center;
}

.navbar-s .navbar-btn {
  min-width: 0.9rem;
  max-width: 1rem;
  padding: 0.14rem !important;
}

.navbar-s .navbar-btn p {
  display: none;
}

.subnav li {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 40%),
    var(--fs-glass-strong) !important;
  border: 1px solid var(--fs-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--fs-radius);
  box-shadow: 0 0.16rem 0.4rem rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.subnav li .z {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid transparent;
  border-radius: 0.32rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.subnav li .z:hover {
  background: var(--fs-accent-soft) !important;
  border-color: var(--fs-line-strong);
  transform: translateY(-0.03rem);
}

/* ===== 开场密码弹层 ===== */
.loginformbg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(232, 195, 106, 0.14), transparent 60%),
    rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000001;
}

.loginform {
  width: min(92vw, 420px);
  height: auto;
  margin-left: 0;
  margin-top: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 36px 32px 32px;
  border-radius: 18px;
  background: rgba(12, 18, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-shadow: none;
  font-size: 16px;
}

.loginform .activity_title {
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.35em;
  color: #fff;
}

.loginform .activity_sub {
  display: block;
  margin-bottom: 1.2em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9em;
  letter-spacing: 0.06em;
}

.loginform .password {
  height: 44px;
  line-height: 44px;
  margin: 0 auto 18px;
  font-size: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
  text-indent: 18px;
}

.loginform .password:focus {
  outline: none;
  border-color: rgba(232, 195, 106, 0.65);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(232, 195, 106, 0.2);
}

.loginform .button-login {
  height: 46px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: none;
  background: linear-gradient(180deg, #f0d48a 0%, #c9a045 100%);
  color: #2a220f;
  box-shadow: 0 10px 24px rgba(201, 160, 69, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.loginform .button-login:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f5dc98 0%, #d4ab4f 100%);
}

.loginform .button-login:active {
  transform: translateY(0);
  filter: brightness(0.96);
  background: linear-gradient(180deg, #e6c878 0%, #b8923c 100%);
}

/* ===== 二维码浮层 ===== */
#box {
  padding: 0.12rem 0.12rem 0.18rem;
  border-radius: 0.22rem;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0.18rem 0.45rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  top: 0.45rem;
  right: 0.55rem;
}

#box > span {
  display: block;
  margin-bottom: 0.08rem;
  padding: 0.04rem 0.08rem;
  font-size: 0.22rem;
  letter-spacing: 0.04em;
  color: var(--fs-text);
  text-shadow: 0 0.03rem 0.08rem rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#box img {
  border-radius: 0.1rem;
  background: #fff;
}

.coor {
  background-color: var(--fs-accent) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* ===== 加载层 ===== */
.load-container {
  background:
    radial-gradient(ellipse 60% 45% at 50% 45%, rgba(232, 195, 106, 0.16), transparent 55%),
    rgba(4, 8, 18, 0.88);
}

/* ===== 弹幕可读性 ===== */
.barrage {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55) !important;
}

.barrage .barrage_box {
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
