:root {
  --primary-color: #000000;
  --secondary-color: #FFFFFF;
  --login-btn-color: #FCBC45;
  --register-btn-color: #FFFFFF;
  --header-offset: 100px; /* Desktop: header-top (60px) + main-nav (40px) */
}

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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: var(--secondary-color);
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

/* Header Top Section (Desktop) */
.header-top {
  background-color: var(--primary-color);
  width: 100%;
  padding: 15px 0;
  min-height: 30px;
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  display: block;
}

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

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-login {
  background-color: var(--login-btn-color);
  color: var(--primary-color);
}

.btn-login:hover {
  background-color: #e6a73d;
}

.btn-register {
  background-color: var(--register-btn-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-register:hover {
  background-color: #f0f0f0;
}

/* Main Navigation (Desktop) */
.main-nav {
  background-color: #333333;
  width: 100%;
  display: flex;
  padding: 10px 0;
  min-height: 20px;
  align-items: center;
}

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

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

.nav-link:hover,
.nav-link.current-active {
  color: var(--login-btn-color);
}

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

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Nav Buttons (Desktop - Hidden) */
.mobile-nav-buttons {
  display: none;
}

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

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 40px 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: 200px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

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

.footer-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

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

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

.footer-section ul li a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--login-btn-color);
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .site-header {
    flex-direction: column;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 30px;
  }

  .hamburger-menu {
    display: flex;
    order: 1;
    margin-right: 15px;
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }
  
  .desktop-nav-buttons {
    display: none;
  }
  
  /* Mobile Nav Buttons - Always visible below header-top */
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    background-color: var(--primary-color);
    padding: 10px 15px;
    width: 100%;
    min-height: 40px;
  }

  /* Main Navigation (Mobile - Hidden by default) */
  .main-nav {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    height: calc(100vh - var(--header-offset));
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    display: none; /* Hidden by default, will be flex when active */
    overflow-y: auto;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

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

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

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

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

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

  .footer-section ul {
    margin-top: 10px;
  }
  .footer-section ul li {
    display: inline-block;
    margin: 0 8px 8px 8px;
  }
  .footer-section ul li a {
    white-space: nowrap;
  }
}
/* 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;
  }
}
