/* 白鸽首页 UI 修复：公告滚动、更多功能、移动端开奖按钮 */

/* ===== 顶部公告滚动修复 ===== */
.notice-bar {
  position: relative !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.notice-icon {
  flex: 0 0 auto !important;
}

.notice-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  height: 22px !important;
  line-height: 22px !important;
  position: relative !important;
}

.notice-scroll {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  width: max-content !important;
  animation: baigeNoticeMarquee 45s linear infinite !important;
  will-change: transform;
}

.notice-text {
  display: inline-block !important;
  white-space: nowrap !important;
  padding-right: 48px !important;
  line-height: 22px !important;
}

.notice-more {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 50 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%) !important;
  color: #b8860b !important;
  white-space: nowrap !important;
}

@keyframes baigeNoticeMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== 首页更多功能布局修复 ===== */
#dashMoreSheet {
  display: none !important;
}

#dashMoreSheet.is-open {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 10px 8px !important;
  margin-top: 8px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

#dashMoreSheet .dash-nav-item,
#dashMoreSheet button,
#dashMoreSheet a {
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 7px 2px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  color: #334155 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#dashMoreSheet .dash-nav-icon,
#dashMoreSheet svg,
#dashMoreSheet i {
  width: 20px !important;
  height: 20px !important;
  font-size: 18px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

#dashMoreSheet .dash-nav-item span:last-child,
#dashMoreSheet button span:last-child,
#dashMoreSheet a span:last-child {
  display: block !important;
  width: 100% !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#dashMoreSheet .dash-nav-item:active,
#dashMoreSheet button:active,
#dashMoreSheet a:active {
  background: #eef4ff !important;
  transform: scale(0.98);
}

#dashNavMoreBtn[aria-expanded="true"] {
  background: #eef4ff !important;
  color: #2563eb !important;
}

/* ===== 移动端开奖按钮空白修复 ===== */
@media (max-width: 768px) {
  .hall-draw-actions {
    display: flex !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  #hallDrawRefreshBtn,
  #hallDrawSettingsBtn,
  #hallDrawPeekBtn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 32px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
  }

  #hallDrawRefreshBtn::before,
  #hallDrawSettingsBtn::before,
  #hallDrawPeekBtn::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  #hallDrawRefreshBtn::before {
    content: "刷";
  }

  #hallDrawSettingsBtn::before {
    content: "⚙";
    font-size: 16px !important;
  }

  #hallDrawPeekBtn::before {
    content: "咪";
  }
}

@media (max-width: 480px) {
  .notice-bar {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .notice-content {
    height: 20px !important;
    line-height: 20px !important;
  }

  .notice-text {
    font-size: 11px !important;
    line-height: 20px !important;
    padding-right: 36px !important;
  }

  .notice-more {
    font-size: 11px !important;
    padding: 2px 7px !important;
  }

  #dashMoreSheet.is-open {
    gap: 6px !important;
    padding: 8px 6px !important;
  }

  #dashMoreSheet .dash-nav-item,
  #dashMoreSheet button,
  #dashMoreSheet a {
    min-height: 54px !important;
  }

  #dashMoreSheet .dash-nav-item span:last-child,
  #dashMoreSheet button span:last-child,
  #dashMoreSheet a span:last-child {
    font-size: 10.5px !important;
  }
}
