:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 120px; /* Mobile: header-top (60px) + mobile-buttons (60px) */
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  color: var(--text-color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Mobile Content Area Protection */
@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;
  }
}

/* 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);
  background-color: var(--text-color-light); /* Base background, covered by sections */
}

/* Header Top Section (Desktop: Logo Left, Buttons Right) */
.header-top {
  background-color: var(--primary-color); /* Dark blue */
  height: 60px; /* Fixed height for calculation */
  display: flex;
  align-items: center;
  padding: 0; /* Container handles padding */
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Contrasting golden color for logo text */
  text-decoration: none;
  text-transform: uppercase;
  padding: 5px 0;
  display: block;
  white-space: nowrap;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
}

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

.btn-login {
  background-color: var(--secondary-color); /* Golden color for Login */
  color: var(--primary-color); /* Dark text for Login button */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-login:hover {
  background-color: #FFD700; /* Lighter gold on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-register {
  background-color: #4CAF50; /* Green color for Register */
  color: var(--text-color-light); /* White text for Register button */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-register:hover {
  background-color: #66BB6A; /* Lighter green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Main Navigation (Desktop: Menu Centered) */
.main-nav {
  background-color: #C09A04; /* Darker gold, distinct from primary blue */
  height: 50px; /* Fixed height for calculation */
  display: flex; /* Desktop: default to flex for horizontal layout */
  align-items: center;
  padding: 0; /* Container handles padding */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center; /* Center menu items horizontally */
  align-items: center;
  padding: 0 30px; /* Horizontal padding */
}

.nav-link {
  color: var(--text-color-light);
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  border-radius: 3px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color); /* Primary color highlight on hover/active */
  background-color: rgba(0, 0, 0, 0.1); /* Slightly transparent background on hover */
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-icon:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-icon:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Buttons (Always Visible Below Logo) */
.mobile-buttons {
  display: none; /* Hidden by default on desktop */
  background-color: var(--primary-color); /* Dark blue for mobile buttons section */
  padding: 10px 15px;
  justify-content: center;
  gap: 10px;
  height: 60px; /* Fixed height for calculation */
  align-items: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

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

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

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

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-section p,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer ul li a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
}

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

  .header-top {
    height: 60px; /* Fixed height for calculation */
    padding: 0 15px; /* Smaller horizontal padding for mobile */
  }

  .header-container {
    padding: 0; /* Reset container padding */
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    padding: 0;
  }

  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
  }

  .mobile-buttons {
    display: flex;
    order: 3;
    width: 100%;
    height: 60px; /* Fixed height for calculation */
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below header + mobile buttons */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #C09A04; /* Keep darker gold for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%); /* Slide out to the left by default */
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    margin: 5px 0;
    text-align: left;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    min-width: unset;
    text-align: center;
  }
}
/* 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;
  }
}
