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

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent; /* Handled by header-top and main-nav */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
    background-color: #000000; /* Primary color */
    padding: 10px 0;
    color: #FFFFFF;
}

.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: #FCBC45; /* Contrasting color for logo */
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    padding: 5px 0;
}

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

.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: 8px 15px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #555555;
    border-radius: 4px;
}

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

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

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

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

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

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

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

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu .bar:last-child {
    margin-bottom: 0;
}

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

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

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

.mobile-buttons-area {
    display: none; /* Hidden on desktop */
    background-color: #000000;
    padding: 10px 0;
    border-top: 1px solid #1a1a1a;
}

.mobile-buttons-area .header-container {
    justify-content: center;
    gap: 15px;
}

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

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

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

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

.site-footer .footer-column {
    flex: 1;
    min-width: 180px;
    margin-bottom: 20px;
}

.site-footer h3 {
    color: #FCBC45;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

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

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

.site-footer ul li a:hover {
    color: #FCBC45;
}

.site-footer .copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #cccccc;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        width: 100%;
        max-width: none;
        padding: 0 15px;
        justify-content: space-between;
    }

    .logo {
        flex: 1;
        text-align: center;
        padding: 5px 0;
        font-size: 24px;
    }

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

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

    .mobile-buttons-area {
        display: block;
    }

    .mobile-buttons-area .header-container {
        max-width: none;
        width: 100%;
        padding: 0 15px;
    }

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset); /* Below header */
        left: 0;
        width: 250px;
        height: calc(100% - var(--header-offset));
        background-color: #222222;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

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

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

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

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

    .site-footer .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-column {
        min-width: unset;
        width: 100%;
    }
}
/* 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;
  }
}
