:root {
    --header-offset: 105px; /* Desktop: Calculated based on header-top (60px) + main-nav (45px) */
}
@media (max-width: 768px) {
    :root {
        --header-offset: 110px; /* Mobile: Calculated based on header-top (60px) + mobile-nav-buttons (50px) */
    }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    background-color: #FFFFFF; /* Background specified as #FFFFFF */
}

/* Ensure body padding for fixed header */
body {
    padding-top: var(--header-offset);
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: transparent; /* Base, will be overridden by sections */
    display: flex;
    flex-direction: column; /* Default for mobile, desktop will override */
}

.header-top {
    background-color: #000000; /* Primary color */
    width: 100%;
    padding: 15px 0;
    display: flex;
    align-items: center;
    min-height: 30px; /* Ensure content adaptation */
}

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

.logo {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
    background-color: #1a1a1a; /* Darker shade for mobile buttons section */
    width: 100%;
    padding: 10px 0;
    min-height: 30px;
}

.mobile-nav-buttons .header-container {
    justify-content: center;
    gap: 12px;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: 0.4s;
}

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

.main-nav {
    background-color: #1a1a1a; /* Slightly lighter black for contrast */
    width: 100%;
    display: flex; /* Default for desktop */
    padding: 10px 0;
    min-height: 25px; /* Ensure content adaptation */
}

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

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 15px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-login {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Contrasting text for login */
}

.btn-register {
    background-color: #FFFFFF; /* Register color */
    color: #000000; /* Contrasting text for register */
    border: 1px solid #FCBC45; /* Add a subtle border for definition */
}

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

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

/* Footer styles */
.site-footer {
    background-color: #000000; /* Primary color */
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
}

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

.site-footer .footer-section {
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.site-footer .footer-section h3 {
    color: #FCBC45;
    font-size: 18px;
    margin-bottom: 15px;
}

.site-footer .footer-logo {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

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

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

.site-footer .footer-nav a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
    color: #FCBC45;
}

.site-footer .copyright {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
        min-height: 40px;
    }
    .header-container {
        padding: 0 15px;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }
    .hamburger-menu {
        display: block;
        order: 0;
    }
    .logo {
        flex: 1 !important; /* Force logo to take available space */
        display: flex !important; /* Use flex to center the content */
        justify-content: center !important;
        align-items: center !important;
        order: 1;
        font-size: 22px;
    }
    .desktop-nav-buttons {
        display: none;
    }
    .mobile-nav-buttons {
        display: flex; /* Show on mobile */
        padding: 10px 0;
        min-height: 40px;
    }
    .mobile-nav-buttons .header-container {
        padding: 0 15px;
        width: 100%;
        max-width: none;
    }
    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset); /* Align with the bottom of the fixed header */
        left: 0;
        width: 70%; /* Adjust as needed */
        height: calc(100% - var(--header-offset));
        background-color: #000000; /* Dark background for mobile menu */
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px 0;
    }
    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0);
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 15px;
        width: 100%;
        max-width: none;
    }
    .nav-link {
        width: 100%;
        padding: 12px 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .site-footer .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .site-footer .footer-section {
        text-align: center;
        width: 100%;
        min-width: unset;
    }
    .site-footer .footer-logo {
        margin-bottom: 10px;
    }
    .site-footer .copyright {
        margin-top: 10px;
    }
    
    /* Mobile content overflow prevention */
    .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.no-scroll {
        overflow: 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;
  }
}
