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

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

.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; /* Primary color for header top */
    width: 100%;
    padding: 15px 0;
    min-height: 30px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FCBC45; /* Contrasting color for logo */
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav {
    background-color: #FFFFFF; /* Secondary color for main navigation */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    min-height: 25px;
}

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

.nav-link {
    color: #000000; /* Contrasting text color for white background */
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FCBC45;
}

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

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

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

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

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

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

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

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

.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 10px;
    background-color: #000000;
    padding: 10px 20px;
    min-height: 30px;
}

.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: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

/* Footer styles */
.site-footer {
    background-color: #000000; /* Primary color for footer */
    color: #FFFFFF;
    padding: 40px 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-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #FCBC45; /* Accent color for footer headings */
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-section p {
    color: #CCCCCC;
}

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

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

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

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

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

/* Mobile styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        justify-content: space-between;
        position: relative; /* Needed for logo centering */
    }

    .hamburger-menu {
        display: block;
        order: 1;
        margin-right: auto;
    }

    .logo {
        order: 2;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: fit-content;
    }

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

    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        order: 3;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 250px;
        height: calc(100% - var(--header-offset));
        background-color: #000000; /* Dark background for mobile menu */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 20px 0;
        overflow-y: auto;
    }

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

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

    .nav-link {
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid #333333;
        color: #FFFFFF; /* White text for dark mobile menu */
    }

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

    .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);
    }

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

    .footer-section {
        min-width: unset;
    }

    /* Mobile content overflow prevention */
    .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;
  }
}
