:root {
    --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
}
@media (max-width: 768px) {
    :root {
        --header-offset: 120px; /* Mobile: header-top (60px) + mobile-nav-buttons (60px) */
    }
    .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 {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f0f0f0;
    background-color: #121212;
    padding-top: var(--header-offset);
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background-color: #1a2a40; /* Dark blue for overall header background */
    min-height: 110px; /* Ensure minimum height for desktop header */
}

.header-top {
    background-color: #0f4a8e; /* Darker variant of auxiliary color for top bar */
    padding: 10px 0;
    width: 100%;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700; /* Gold color for logo */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-login {
    background-color: #FFD700; /* Main color */
    color: #1a2a40; /* Dark text for contrast */
}

.btn-register {
    background-color: #1E90FF; /* Auxiliary color */
    color: #FFFFFF;
}

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

.main-nav {
    background-color: #1a2a40; /* Dark blue for main navigation bar */
    width: 100%;
    display: flex; /* Desktop default: visible and flex */
    justify-content: center;
    padding: 10px 0;
}

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

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700; /* Gold on hover */
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
}

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

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

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

/* Footer Styles */
.site-footer {
    background-color: #0f4a8e; /* Darker variant of auxiliary color for footer */
    color: #FFFFFF;
    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-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Gold color for footer logo */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    display: block;
}

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

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

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

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

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

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

.copyright {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    order: 4; /* Ensures copyright is always at the bottom */
}

@media (max-width: 768px) {
    .site-header {
        min-height: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0 15px;
        justify-content: space-between;
        height: 60px; /* Fixed height for mobile top bar */
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        order: 2; /* Logo centered */
    }

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

    .hamburger-menu {
        display: block; /* Visible on mobile */
        order: 1; /* Hamburger to the left */
        color: #FFD700;
    }

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

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

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

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: #0f4a8e; /* Same as header-top */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        height: 60px; /* Fixed height for mobile buttons bar */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset); /* Position below header and buttons */
        left: 0;
        width: 100%;
        height: calc(100% - var(--header-offset));
        background-color: #1a2a40; /* Dark blue for mobile menu */
        overflow-y: auto;
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease;
        z-index: 999;
    }

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

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

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

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

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

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

    body.no-scroll {
        overflow: hidden;
    }

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

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

    .footer-logo {
        margin-bottom: 10px;
    }

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

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

    .copyright {
        margin-top: 20px;
    }
}
/* 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;
  }
}
