:root {
  --primary-color: #0A2463;
  --accent-color: #E3B505;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --header-top-height-desktop: 70px;
  --main-nav-height-desktop: 50px;
  --header-top-height-mobile: 60px;
  --mobile-button-area-height-mobile: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Desktop default padding for fixed header */
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop));
}

/* Header Top Area - Desktop */
.header-top {
  background-color: var(--primary-color); /* Dark blue */
  color: var(--text-light);
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  padding: 5px 0;
}

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

/* Main Navigation Area - Desktop */
.main-nav {
  background-color: var(--accent-color); /* Golden yellow */
  min-height: var(--main-nav-height-desktop);
  display: flex;
  align-items: center;
  width: 100%;
}

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

.nav-link {
  color: var(--primary-color);
  padding: 8px 15px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-login {
  background-color: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
}

.btn-login:hover {
  background-color: transparent;
  color: var(--text-light);
}

.btn-register {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-register:hover {
  background-color: darken(var(--accent-color), 10%); /* Placeholder for darker color */
  color: var(--text-light);
  border-color: darken(var(--accent-color), 10%);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Above mobile button area */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-light);
  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);
}

/* Mobile Button Area (Hidden on Desktop) */
.mobile-button-fixed-area {
  display: none; /* Hidden by default on desktop */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none;
}

/* Site Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
}

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

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

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-light);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root {
    --header-top-height-mobile-calc: 60px; /* Actual height of header-top on mobile */
    --mobile-button-area-height-mobile-calc: 60px; /* Actual height of mobile-button-fixed-area on mobile */
  }

  body {
    padding-top: calc(var(--header-top-height-mobile-calc) + var(--mobile-button-area-height-mobile-calc));
  }

  .site-header {
    min-height: auto;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: flex-start;
    gap: 15px; /* Space between hamburger and logo */
  }

  .hamburger-menu {
    display: flex;
    order: 0;
  }

  .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    order: 1;
  }

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

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: calc(var(--header-top-height-mobile-calc) + var(--mobile-button-area-height-mobile-calc));
    left: 0;
    width: 80%; /* Sidebar width */
    height: calc(100vh - var(--header-top-height-mobile-calc) - var(--mobile-button-area-height-mobile-calc));
    flex-direction: column;
    background-color: var(--primary-color); /* Dark blue for mobile menu */
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px 0;
  }

  .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 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .mobile-button-fixed-area {
    display: flex;
    position: fixed;
    top: var(--header-top-height-mobile-calc);
    left: 0;
    width: 100%;
    background-color: var(--primary-color); /* Same as header-top for consistency */
    padding: 10px 0;
    z-index: 999; /* Below hamburger menu */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-button-fixed-area .header-container {
    justify-content: center;
    gap: 15px;
  }

  .mobile-button-fixed-area .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }
}
/* 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;
}
