:root {
  --header-offset: 120px; /* Desktop: Header + button area total height */
  --primary-color: #1A2E47;
  --accent-color: #FFD700;
  --text-light: #FFFFFF;
  --text-dark: #1A2E47; /* For text on accent background */
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #0D1721; /* Darker than primary for contrast */
  --footer-bg: var(--primary-color);
  --button-primary-bg: var(--accent-color);
  --button-secondary-bg: #E0B400; /* Slightly darker gold for secondary button */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 180px; /* Mobile: Taller for logo + buttons */
  }
}

/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Ensure content isn't hidden by fixed header */
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}
body.no-scroll {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Site Header - Fixed & Suspended */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header Top - Desktop Layout */
.header-top {
  background-color: var(--header-top-bg);
  padding: 15px 0;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Ensure spacing from edges */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Ensure visibility on desktop */
}

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

/* Main Navigation - Desktop Layout */
.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  display: flex; /* Desktop: visible by default */
  justify-content: center;
  align-items: center;
  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; /* Allow wrapping on smaller desktop screens */
  gap: 25px; /* Spacing between nav links */
}
.nav-link {
  color: var(--text-light);
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* General Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline */
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--button-primary-bg);
  color: var(--text-dark); /* Dark text on gold button */
  border: 2px solid var(--button-primary-bg);
}
.btn-primary:hover {
  background-color: #f0c500;
  border-color: #f0c500;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Mobile Specific Elements - Hidden by default on desktop */
.hamburger-menu, .mobile-nav-buttons, .mobile-menu-overlay {
  display: none; 
}

/* Footer Styles */
.site-footer {
  background-color: var(--footer-bg);
  color: #bbb;
  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;
  padding-bottom: 30px;
}
.footer-col {
  flex: 1;
  min-width: 250px;
}
.footer-col h3 {
  color: var(--accent-color);
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-col p, .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}
.footer-col ul li a {
  color: #bbb;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--accent-color);
}
.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
}

/* Mobile Media Query */
@media (max-width: 768px) {
  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .header-top {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* To push hamburger left, logo center, space right */
    position: relative;
  }

  /* Hamburger Menu */
  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1002; /* Above logo and buttons */
    background: none;
    border: none;
    padding: 0;
    margin-left: 15px; /* Align with container padding */
    order: 0; /* Leftmost */
  }
  .hamburger-menu::before,
  .hamburger-menu::after,
  .hamburger-menu span {
    content: '';
    display: block;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    position: absolute;
    left: 0;
    width: 100%;
    transition: all 0.3s ease;
  }
  .hamburger-menu::before { top: 0; }
  .hamburger-menu span { top: 50%; transform: translateY(-50%); }
  .hamburger-menu::after { bottom: 0; }

  .hamburger-menu.active::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
  .hamburger-menu.active span { opacity: 0; }
  .hamburger-menu.active::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

  /* Mobile Logo Centering (Text Logo) */
  .logo {
    font-size: 24px;
    order: 1; /* Center position */
    flex: 1; /* Take available space to help center */
    text-align: center; /* Center text logo */
    margin: 0; /* Reset margins */
    padding: 0; /* Reset padding */
    color: var(--accent-color); /* Ensure visibility */
  }
  /* If the logo were an image, use this for centering:
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px; 
  }
  */

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }

  /* Mobile Navigation Buttons - Independent area below header-top */
  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--header-top-bg); /* Same as header-top */
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
    z-index: 998; /* Below hamburger menu, above content */
  }

  /* Main Navigation - Mobile (Hidden by default, fixed position) */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Vertical links */
    position: fixed;
    top: 0; /* Start from top */
    left: 0;
    width: 80%; /* Menu width */
    height: 100%;
    background-color: var(--main-nav-bg); /* Same as desktop main nav */
    padding-top: var(--header-offset); /* Push menu content below header */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 1001; /* Above overlay, below hamburger */
    overflow-y: auto; /* Allow scrolling if menu content is long */
  }
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }
  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start; /* Align links to the left */
    padding: 20px 15px; /* Padding inside the menu */
    gap: 15px; /* Spacing between mobile nav links */
  }
  .main-nav .nav-link {
    width: 100%; /* Full width links */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Below menu, above content */
  }
  .mobile-menu-overlay.active {
    display: block; /* Show overlay when active */
  }

  /* Footer Mobile */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    min-width: unset; /* Remove min-width for mobile */
    width: 100%;
  }
  .footer-col h3 {
    margin-top: 20px;
  }
  .footer-col ul {
    padding-top: 10px;
  }
  .footer-col ul 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
