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

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #FFFFFF;
    background-color: #FFFFFF;
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
}

/* Site Header - Fixed Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 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 header-top and main-nav */
}

/* Header Top Area (Desktop: Logo Left, Buttons Right; Mobile: Hamburger Left, Logo Center) */
.header-top {
    background-color: #000000; /* Primary dark color */
    width: 100%;
    min-height: 70px;
    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; /* Desktop padding */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF; /* White text on dark background */
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 10px 0;
}

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

/* Main Navigation Area (Desktop: Menu Centered) */
.main-nav {
    background-color: #FFFFFF; /* Secondary light color, contrasting with header-top */
    width: 100%;
    min-height: 50px;
    display: flex; /* Desktop default: visible */
    justify-content: center;
    align-items: center;
    position: static; /* Desktop default: in normal flow */
}

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

.nav-link {
    color: #000000; /* Black text on light background */
    text-decoration: none;
    padding: 8px 15px;
    font-weight: bold;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #FCBC45; /* Gold hover effect */
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: 0; /* Ensures it stays left */
}

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

.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 Navigation Buttons (Mobile Only) */
.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
    background-color: #1a1a1a; /* Slightly darker than header-top for subtle contrast */
    width: 100%;
    min-height: 60px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

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

.btn-login {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Black text for contrast */
    border: 1px solid #FCBC45;
}

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

.btn-register {
    background-color: #FFFFFF; /* Register color */
    color: #000000; /* Black text for contrast */
    border: 1px solid #FFFFFF;
}

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

/* Footer Styles */
.site-footer {
    background-color: #000000; /* Dark background */
    color: #FFFFFF;
    padding: 40px 0 20px;
    font-size: 14px;
}

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

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

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

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

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

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

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

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

.site-footer .copyright {
    margin: 0;
    color: #CCCCCC;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Mobile Header Offset */
    :root {
        --header-offset: 130px; /* Mobile: header-top (70px) + mobile-nav-buttons (60px) */
    }

    body {
        overflow-x: hidden;
    }

    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    .header-container {
        padding: 0 15px; /* Smaller mobile padding */
        max-width: none; /* Remove max-width on mobile */
        width: 100%;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

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

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 20px;
        padding: 10px 0;
        order: 1; /* Center logo */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: var(--header-offset); /* Start below the fixed header */
        left: 0;
        width: 70%; /* Adjust as needed */
        height: calc(100% - var(--header-offset)); /* Full height below header */
        flex-direction: column; /* Vertical menu */
        align-items: flex-start;
        padding: 20px;
        background-color: #1a1a1a; /* Dark background for mobile menu */
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

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

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        max-width: none; /* Remove max-width on mobile */
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #FFFFFF; /* White text on dark mobile menu */
    }

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

    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        max-width: none; /* Remove max-width on mobile */
        width: 100%;
        padding: 10px 15px; /* Smaller mobile padding */
    }

    .mobile-menu-overlay {
        display: none; /* Hidden by default */
        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; /* Show when active */
    }

    .site-footer .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

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

    .site-footer h3 {
        text-align: left;
    }
    .site-footer .copyright {
        font-size: 12px;
    }
}
/* 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;
  }
}
