:root {
    --primary-color: #0D1117;
    --secondary-color: #FFD700;
    --header-top-bg: var(--primary-color);
    --main-nav-bg: #1A202C; /* Slightly lighter dark for contrast */
    --header-offset: 105px; /* Desktop: header-top (51px) + main-nav (54px) = 105px */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding-top: var(--header-offset);
}

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

.header-top {
    background-color: var(--header-top-bg);
    padding: 10px 0;
    min-height: 51px; /* 10px padding + ~31px content + 10px padding */
    display: flex;
    align-items: center;
}

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

.logo {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

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

.btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    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;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background-color: #E6B800; /* Slightly darker gold on hover */
}

.main-nav {
    background-color: var(--main-nav-bg);
    padding: 10px 0;
    min-height: 54px; /* 10px padding + ~34px content + 10px padding */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

.hamburger-menu, .mobile-menu-overlay, .mobile-buttons-area {
    display: none;
}

/* Footer styles */
.site-footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 40px 0;
    font-size: 14px;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
    padding-bottom: 20px; /* Add some space between columns on smaller screens */
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-logo {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.copyright-info {
    color: #CCCCCC;
    margin-top: 20px;
    line-height: 1.5;
}

.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: var(--secondary-color);
}

/* Mobile styles */
@media (max-width: 768px) {
    :root {
        --header-offset: 95px; /* Mobile: header-top (44px) + mobile-buttons-area (51px) = 95px */
    }

    body {
        overflow-x: hidden;
    }

    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    .site-header {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

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

    .logo {
        flex-grow: 1;
        text-align: center;
        order: 2;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        order: 1;
        padding: 5px;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #FFFFFF;
        transition: all 0.3s ease-in-out;
    }

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

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

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

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

    .mobile-buttons-area {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--header-top-bg);
        width: 100%;
        box-sizing: border-box;
        min-height: 51px; /* 10px padding + ~31px content + 10px padding */
    }

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 80%; /* Adjust width as needed */
        height: calc(100vh - var(--header-offset));
        background-color: var(--main-nav-bg);
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    }

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

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

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

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

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

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