:root {
  --header-offset: 130px; /* Desktop: 70px (header-top) + 60px (main-nav) */
  --primary-color: #000000;
  --secondary-color: #FFFFFF;
  --login-btn-bg: #FCBC45;
  --register-btn-bg: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #000000;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 130px; /* Mobile: 70px (header-top) + 60px (mobile-nav-buttons) */
  }
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: var(--header-offset);
  background-color: var(--secondary-color); /* #FFFFFF */
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

/* Header Top Area (Desktop) */
.header-top {
  background-color: var(--primary-color); /* #000000 */
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px; /* Desktop side padding for header-top */
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-on-dark);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 1px;
}

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

/* Main Navigation (Desktop) */
.main-nav {
  background-color: #1a1a1a; /* Dark gray to contrast with #000000 header-top */
  min-height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
}

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

.nav-link {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--login-btn-bg);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--login-btn-bg);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons Styling */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-login {
  background-color: var(--login-btn-bg); /* #FCBC45 */
  color: var(--text-on-light); /* #000000 */
}

.btn-login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-register {
  background-color: var(--register-btn-bg); /* #FFFFFF */
  color: var(--text-on-light); /* #000000 */
  border: 2px solid var(--login-btn-bg);
}

.btn-register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

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

/* Footer Styling */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  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-column {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.footer-column h3 {
  color: var(--login-btn-bg);
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-column p {
  line-height: 1.6;
  color: #bbb;
}

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

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

.footer-nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--login-btn-bg);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #bbb;
}

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

  .header-top {
    min-height: 70px;
    padding: 0 15px; /* Mobile side padding */
    justify-content: space-between;
  }

  .header-container {
    padding: 0; /* Remove padding as header-top already has it */
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }

  .logo {
    flex: 1;
    text-align: center;
    font-size: 24px;
    margin-left: -30px; /* Offset for hamburger menu width to visually center */
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }

  .hamburger-menu span {
    display: block;
    height: 3px;
    background-color: var(--text-on-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .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);
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    padding: 10px 15px;
    min-height: 60px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 900;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #2a2a2a;
    padding-top: var(--header-offset); /* Push menu items down below the fixed header */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    font-size: 16px;
  }
  .nav-link:last-child {
      border-bottom: none;
  }
  .nav-link::after {
      bottom: 0;
  }

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

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

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    min-width: unset;
    max-width: 100%;
    text-align: center;
  }

  .footer-column h3 {
    margin-top: 20px;
  }

  /* Mobile content overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-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;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
