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

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
    background-color: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
    background-color: #000000; /* Main color */
    padding: 10px 0;
    min-height: 60px; /* Adjust based on content */
    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;
}

.logo {
    color: #FCBC45; /* Gold, stands out on black */
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

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

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

.btn-login {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Black text on gold */
}

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

.btn-register {
    background-color: #FFFFFF; /* Register color */
    color: #000000; /* Black text on white */
}

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

.main-nav {
    background-color: #333333; /* Dark grey, contrasting with black */
    padding: 10px 0;
    min-height: 50px; /* Adjust based on content */
    display: flex; /* Desktop default: flex */
    align-items: center;
}

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

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

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

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

/* Footer styles */
.site-footer {
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* White text */
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

.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;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-link {
    color: #FFFFFF; /* White text */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-text {
    color: #CCCCCC; /* Light grey for general text */
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222222;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header-top {
        padding: 15px 0;
        min-height: 70px;
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        max-width: none; /* Ensure it takes full width */
        justify-content: space-between;
    }

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

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

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        order: 1; /* Hamburger to the left */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #FCBC45; /* Gold bars */
        transition: all 0.3s ease;
    }

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

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

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

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column; /* Vertical alignment */
        position: fixed;
        top: var(--header-offset); /* Position below fixed header and buttons */
        left: 0;
        width: 80%;
        height: calc(100% - var(--header-offset));
        background-color: #333333; /* Same as desktop main-nav */
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        display: flex; /* Must be flex to show */
        transform: translateX(0); /* Slide in */
    }

    .main-nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
        width: 100%;
        max-width: none; /* Ensure it takes full width */
    }

    .main-nav .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #444444;
    }

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

    .mobile-nav-buttons {
        display: block; /* Always visible */
        background-color: #1a1a1a; /* Darker grey */
        padding: 10px 0;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-buttons .nav-buttons-container {
        width: 100%;
        max-width: none; /* Ensure it takes full width */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 0 15px;
    }

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

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

    body.no-scroll {
        overflow: hidden;
    }

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

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

    .page-content img {
      max-width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-content {
      overflow-x: hidden;
      max-width: 100%;
    }
    body {
      overflow-x: 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;
  }
}
