:root {
  --header-offset: 120px; /* Desktop: total header height */
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --header-top-height-desktop: 60px; /* Approx height of header-top on desktop */
  --main-nav-height-desktop: 50px; /* Approx height of main-nav on desktop */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: total header height (header-top + mobile-buttons-area) */
    --header-top-height-mobile: 60px; /* Approx height of header-top on mobile */
    --mobile-buttons-area-height: 60px; /* Approx height of mobile-buttons-area */
    --mobile-actual-header-height: calc(var(--header-top-height-mobile) + var(--mobile-buttons-area-height)); /* ~120px */
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.no-scroll {
  overflow: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: var(--primary-color); /* Deep blue */
  width: 100%;
  padding: 10px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold for logo */
  text-transform: uppercase;
  padding: 5px 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-login {
  background-color: var(--secondary-color); /* Gold */
  color: var(--primary-color); /* Deep blue text for contrast */
  border: 2px solid var(--secondary-color);
}
.btn-login:hover {
  background-color: #e3c430; /* Slightly darker gold */
  color: var(--primary-color);
}

.btn-register {
  background-color: transparent;
  color: var(--secondary-color); /* Gold text */
  border: 2px solid var(--secondary-color);
}
.btn-register:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.main-nav {
  background-color: #1A3A7F; /* A slightly lighter blue than primary, but still dark */
  width: 100%;
  display: flex; /* Desktop: always visible */
  flex-direction: row;
  position: static; /* Desktop: normal flow */
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-color-light); /* White text for contrast */
  padding: 8px 15px;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color); /* Gold on hover/active */
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile specific elements - hidden on desktop */
.hamburger-menu, .mobile-buttons-area, .mobile-menu-overlay {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color); /* Deep blue */
  color: var(--text-color-light); /* White text */
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold for footer logo */
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.footer-info p {
  line-height: 1.6;
  margin: 0;
}

.footer-col h3 {
  color: var(--secondary-color); /* Gold for headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--text-color-light);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--secondary-color);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: flex-start;
    position: relative;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-right: auto;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    z-index: 1000;
    text-align: center;
    display: block;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-buttons-area {
    display: block;
    background-color: var(--primary-color);
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-buttons-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
  }
  .mobile-buttons-container .btn {
      flex: 1;
      font-size: 14px;
      padding: 8px 15px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--mobile-actual-header-height); /* Start below the visible header elements */
    left: 0;
    width: 80%;
    height: calc(100% - var(--mobile-actual-header-height));
    background-color: #1a2a50;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .mobile-menu-overlay.active {
    display: block;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    width: 100%;
    min-width: unset;
  }
  .footer-col h3 {
    margin-top: 20px;
  }
  .footer-nav {
    padding: 0;
  }
  .footer-nav li {
    margin-bottom: 5px;
  }
}
/* Payment Methods 图标容器样式 */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img,
.payment-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Game Providers 图标容器样式 */
.game-providers-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.game-providers-icons img,
.game-provider-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Social Media 图标容器样式 */
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.social-media-icons img,
.social-media-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
