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

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    background-color: #FFFFFF;
    color: #333333;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000000; /* Primary color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
    background-color: #000000; /* Primary color */
    width: 100%;
    padding: 15px 0;
}

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

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

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

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

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

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

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

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

.main-nav {
    background-color: #333333; /* Dark gray, different from header-top */
    width: 100%;
    display: flex; /* Desktop default: visible */
}

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

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

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

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    order: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-button-area {
    display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
    background-color: #000000; /* Primary color */
    color: #FFFFFF;
    padding: 40px 20px;
    line-height: 1.6;
}

.site-footer h3 {
    color: #FCBC45; /* Highlight color for titles */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

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

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

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

.copyright {
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.8;
}

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

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

.footer-nav-list a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
        flex-wrap: wrap;
    }

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

    .mobile-menu-toggle {
        display: flex; /* Visible on mobile */
    }

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

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

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

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

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

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: var(--header-offset); /* Position below the header and button area */
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100% - var(--header-offset));
        background-color: #1a1a1a; /* Darker background for mobile menu */
        flex-direction: column;
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

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

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

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

    .mobile-button-area {
        display: flex; /* Visible on mobile, below header-top */
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
        background-color: #222222; /* Different background for mobile buttons */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

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

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

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

    .footer-col {
        min-width: unset;
        text-align: center;
    }

    .footer-nav-list {
        text-align: center;
    }
    
    .page-content img {
      max-width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-content {
      overflow-x: hidden;
      max-width: 100%;
    }
    body {
      overflow-x: hidden;
    }
}

/* Utility class to prevent body scroll */
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;
  }
}
