:root {
  --primary-color: #000000;
  --secondary-color: #FFFFFF;
  --accent-color: #FCBC45; /* For login button text and register button background */
  --header-offset: 105px; /* Desktop: header-top (60px) + main-nav (45px) */
}

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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color, contrasting with white background */
  background-color: var(--secondary-color); /* General page background */
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent; /* Actual background set by header-top and main-nav */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: var(--primary-color); /* Black */
  padding: 10px 0;
  min-height: 40px;
  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: 0 20px;
  box-sizing: border-box;
}

.logo {
  color: var(--secondary-color); /* White */
  text-decoration: none;
  font-size: 28px;
  font-weight: bold;
  padding: 5px 0;
  line-height: 1;
  display: block;
}

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

.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;
  white-space: nowrap;
}

.btn-login {
  background-color: #333333; /* Dark grey */
  color: var(--accent-color); /* FCBC45 */
  border: 1px solid #333333;
}

.btn-login:hover {
  background-color: var(--accent-color); /* FCBC45 */
  color: var(--primary-color); /* Black */
  border-color: var(--accent-color);
}

.btn-register {
  background-color: var(--accent-color); /* FCBC45 */
  color: var(--secondary-color); /* White */
  border: 1px solid var(--accent-color);
}

.btn-register:hover {
  background-color: #f7a826; /* Slightly darker gold */
  border-color: #f7a826;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary-color); /* White */
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 8px; }
.hamburger-menu span:nth-child(3) { top: 16px; }

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

.main-nav {
  background-color: #1a1a1a; /* Dark grey, contrasting with header-top */
  padding: 10px 0;
  min-height: 35px;
  display: flex; /* Desktop: visible and flex */
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center; /* Center menu items on desktop */
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-link {
  color: var(--secondary-color); /* White */
  text-decoration: none;
  font-size: 16px;
  padding: 8px 15px;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color); /* Gold */
  background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
  border-radius: 3px;
}

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

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer styles */
.site-footer {
  background-color: var(--primary-color); /* Black */
  color: var(--secondary-color); /* White */
  padding: 40px 20px 20px;
  text-align: center;
  font-size: 14px;
}

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

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

.footer-col h3 {
  color: var(--accent-color); /* Gold */
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
}

.footer-col p {
  line-height: 1.6;
  color: #cccccc; /* Light grey */
}

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

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

.footer-nav a {
  color: #cccccc; /* Light grey */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-color); /* Gold */
}

.footer-bottom {
  border-top: 1px solid #333333; /* Dark grey line */
  padding-top: 20px;
  margin-top: 30px;
  color: #999999; /* Medium grey */
}

/* Mobile styles */
@media (max-width: 768px) {
  .header-top {
    height: 60px; /* Fixed height for mobile header top */
    padding: 0 15px;
  }

  .header-container {
    position: relative; /* Needed for absolute positioning of logo */
    padding: 0;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .logo {
    font-size: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001; /* Above mobile buttons, below hamburger menu */
  }

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

  .hamburger-menu {
    display: block;
    order: -1;
    position: relative;
    z-index: 1002;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below the fixed header */
    left: 0;
    width: 250px; /* Sidebar width */
    height: calc(100vh - var(--header-offset));
    background-color: var(--primary-color); /* Black */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-bottom: 20px;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 17px;
  }

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

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */\    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #333333; /* Dark grey background for buttons */
    padding: 10px 15px;
    height: 50px; /* Fixed height for mobile buttons */
    width: 100%;
    box-sizing: border-box;
    z-index: 999; /* Below hamburger menu */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
  }

  .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: 990;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer mobile adjustments */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    width: 100%;
    min-width: unset;
  }

  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-nav li {
    margin-bottom: 0;
  }

  .footer-nav a {
    padding: 5px 10px;
    display: block;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 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;
  }
}
