/* -----------------------------------
   基础与 Header 布局
----------------------------------- */
.main-header {
  padding-top: 6px;
  background-color: #ffffff;
  background: var(--color-bg-header, #ffffff);
}

.main-header .container {
  width: 100%;
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
}

.logo-image {
  transition: all 0.3s ease;
}

.date-display {
  order: 2;
  margin-left: auto;
  margin-right: 10px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flag-icon {
  width: 20px;
  height: 13px;
  border-radius: 8px;
}

.header-controls .logo {
  order: 1;
}

.header-user {
  order: 3;
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  width: auto;
  text-align: center;
}

/* 按钮样式 */
.btn-login,
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-login:hover,
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* 移动端汉堡包按钮 */
.header-controls .mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  cursor: pointer;
  border-radius: 50%;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: #ffffff;
  display: block;
}

.actions-right {
  display: none;
}

/* -----------------------------------
   桌面端导航 (Head Bot)
----------------------------------- */
.head-bot {
  display: block !important;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0;
}

.desktop-nav-ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav-li {
  padding: 0 0.5rem;
}

.desktop-nav-li.border-r {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.desktop-nav-li:last-child {
  border-right: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #dc2626;
}

.nav-link.active {
  color: #dc2626 !important;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 2px;
  animation: slideInBottom 0.3s ease-out;
}

.badge-hot {
  height: 12px;
}

.head-bot nav ul li a i,
.head-bot nav ul li a svg {
  width: 18px;
  height: 18px;
}

/* -----------------------------------
   移动端侧边抽屉菜单
----------------------------------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.mobile-menu-overlay.hidden {
  display: none;
}

.mobile-menu-container {
  background-color: #ffffff;
  height: 100%;
  width: 80%;
  max-width: 24rem;
  overflow-y: auto;
}

.mobile-menu-header {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.close-menu-btn {
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
}

.close-menu-btn:hover {
  color: #374151;
}

.mobile-menu-content {
  padding: 0 1rem 1rem 1rem;
}

.mobile-search-box {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.search-input-group {
  display: flex;
}

.search-input {
  flex: 1;
  border: 1px solid #9ca3af;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.search-btn {
  background-color: #dc2626;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-li {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
}

.mobile-nav-link {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1f2937;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.mobile-nav-link.active {
  color: #dc2626 !important;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.1), transparent);
  padding-left: 12px;
  border-left: 3px solid #dc2626;
}

.icon-spacing {
  margin-right: 0.5rem;
}

.mobile-badge-hot {
  height: 15px;
}

/* 社交媒体图标 */
.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-icon {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.social-dark {
  background-color: #1f2937;
}

.social-red {
  background-color: #dc2626;
}

.social-purple {
  background-color: #6441a5;
}

/* -----------------------------------
   动画与粘性定位 (Sticky)
----------------------------------- */
@keyframes slideInBottom {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  animation: slideIn 0.5s ease-out forwards;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.is-sticky .logo-image {
  width: 140px;
  height: 70px;
}

/* -----------------------------------
   响应式断点 (Media Queries)
----------------------------------- */
@media (min-width: 768px) {
  .actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    order: 3;
    flex: 0 0 auto;
    width: auto;
  }
}

@media (max-width: 850px) {
  .header-controls {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
  }

  .header-controls .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    order: 1;
    color: #5c5c5c !important;
  }

  .header-controls .logo {
    order: 2;
    flex: 1;
    text-align: center;
  }

  .header-controls .logo img {
    margin: 0 auto;
  }

  .header-user {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .date-display,
  .main-header .head-bot {
    display: none !important;
  }
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.icon.home {
  background-image: url('/assets/images/common/icons/black-home.svg') ;
  background-size: 18px 18px ;
  background-repeat: no-repeat ;
}
.icon.promo {
  background-image: url('/assets/images/common/icons/black-promo.svg');
}
.icon.card {
  background-image: url('/assets/images/common/icons/black-card.svg');
}
.icon.slot {
  background-image: url('/assets/images/common/icons/black-slot.svg');
}
.icon.fish {
  background-image: url('/assets/images/common/icons/black-fish.svg');
}
.icon.lottery {
  background-image: url('/assets/images/common/icons/black-lottery.svg');
}
.icon.casino {
  background-image: url('/assets/images/common/icons/black-casino.svg');
}
.icon.sport {
  background-image: url('/assets/images/common/icons/black-sport.svg');
}
.icon.game {
  background-image: url('/assets/images/common/icons/black-game.svg');
}
