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

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #FFFFFF; /* Default text color for dark theme */
    background-color: #000000; /* Default background for dark theme */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background-color: transparent; /* Handled by child elements for distinct colors */
}

.header-top {
    background-color: #000000; /* Primary color */
    padding: 10px 0;
    min-height: 40px;
    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%;
    box-sizing: border-box;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FCBC45; /* Contrasting color for logo */
    text-transform: uppercase;
    padding: 5px 0;
    display: inline-block;
    line-height: 1;
}

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

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

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

.btn-login:hover {
    background-color: #e0a53b;
    box-shadow: 0 0 10px rgba(252, 188, 69, 0.7);
}

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

.btn-register:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.main-nav {
    background-color: #333333; /* Dark gray, contrasting with header-top */
    padding: 10px 0;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

.mobile-nav-toggle,
.mobile-buttons-area {
    display: none;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    gap: 30px;
    margin-bottom: 30px;
}

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

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

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

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

.footer-nav a {
    color: #FFFFFF;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    color: #FFFFFF;
    opacity: 0.7;
}

/* Mobile Styles */
@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;
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        max-width: none;
        justify-content: space-between;
    }

    .header-top {
        padding: 10px 0;
        min-height: 40px;
    }

    .logo {
        flex: 1;
        text-align: center;
        order: 2; /* Logo in center */
        font-size: 24px;
    }

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

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        order: 1; /* Hamburger on left */
    }

    .mobile-nav-toggle .icon-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #FCBC45;
        transition: all 0.3s ease;
    }

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

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

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

    .mobile-buttons-area {
        display: flex;
        justify-content: center;
        background-color: #000000; /* Same as header-top for consistency */
        padding: 10px 20px;
        gap: 12px;
        min-height: 40px;
    }

    .mobile-buttons-area .btn {
        flex: 1;
        max-width: 150px; /* Limit button width on mobile */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: var(--header-offset); /* Position below header and mobile buttons */
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-offset));
        flex-direction: column;
        background-color: #222222; /* Darker background for mobile menu */
        overflow-y: auto;
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    }

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

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

    .nav-link {
        width: 100%;
        padding: 15px 10px;
        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;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 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-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-col h3 {
        text-align: center;
    }

    .footer-nav {
        text-align: center;
    }
}

/* No scroll for body when mobile menu is active */
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;
  }
}
