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

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
    color: #E0E0E0; /* Light text for dark background */
    background-color: #0F131C;
    overflow-x: hidden;
}

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

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background-color: transparent; /* Actual background comes from header-top and main-nav */
}

.header-top {
    background-color: #1A202C; /* Primary dark color */
    width: 100%;
    padding: 15px 0; /* Vertical padding for logo/buttons, makes height 60px with content */
}

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

.logo {
    color: #FFD700; /* Gold for logo */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent logo text from wrapping */
}

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

.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;
    color: #1A202C; /* Dark text for gold buttons */
    background-color: #FFD700; /* Gold button */
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #E6C200; /* Slightly darker gold on hover */
}

.main-nav {
    background-color: #B8860B; /* Darker gold for main nav, contrasting with header-top */
    width: 100%;
    display: flex; /* Desktop default: visible */
    padding: 10px 0; /* Vertical padding for nav links, makes height 50px with content */
}

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

.nav-link {
    color: #FFFFFF; /* White text for nav links */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFD700; /* Gold on hover */
}

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

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700; /* Gold bars */
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

.mobile-menu-overlay {
    display: none;
}

/* Footer Styles */
.site-footer {
    background-color: #1A202C; /* Primary dark color */
    color: #E0E0E0;
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: #FFD700; /* Gold for footer headings */
    font-size: 18px;
    margin-bottom: 15px;
}

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

.footer-nav li a {
    color: #E0E0E0;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #A0A0A0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .hamburger-menu {
        display: block; /* Visible on mobile */
        order: 1;
    }

    .logo {
        order: 2;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 20px;
    }

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

    .mobile-nav-buttons-wrapper {
        display: block; /* Visible on mobile */
        width: 100%;
        background-color: #1A202C; /* Same as header-top for consistency */
        padding: 10px 0; /* Vertical padding for buttons, makes height 50px with content */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-buttons-container {
        max-width: none; /* Important: remove max-width for mobile container */
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 15px;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: var(--header-offset); /* Position below fixed header */
        left: 0;
        width: 80%; /* Menu width */
        height: calc(100% - var(--header-offset));
        background-color: #1A202C; /* Dark background for mobile menu */
        flex-direction: column;
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        display: flex; /* Show menu when active */
        transform: translateX(0);
    }
    
    .main-nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
        gap: 15px;
        max-width: none; /* Important: remove max-width for mobile container */
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-link:last-child {
        border-bottom: none;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col {
        min-width: unset;
    }
}
/* 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;
  }
}
