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

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: 110px; /* Desktop calculated height */
    display: flex;
    flex-direction: column;
}

.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 30px;
    height: 30px; /* Approximate height for content */
}

.logo {
    font-weight: bold;
    font-size: 24px;
    color: #FCBC45; /* Login button color for prominence */
    text-decoration: none;
    text-transform: uppercase;
    display: block;
}

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

.main-nav {
    background-color: #333333; /* Darker grey, contrasting with header-top */
    width: 100%;
    display: flex;
    padding: 10px 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mobile-nav-buttons {
    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;
    font-size: 14px;
}

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

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

.footer-col h3 {
    color: #FCBC45;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.6;
    margin: 0;
}

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

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

.footer-nav a {
    color: #FFFFFF;
    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 rgba(255, 255, 255, 0.1);
}

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

    .site-header {
        min-height: 100px; /* Mobile calculated height */
    }

    .header-top {
        padding: 10px 15px;
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap */
        align-items: center;
        justify-content: space-between;
        height: 40px; /* Approximate height for hamburger/logo */
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0;
        justify-content: flex-start; /* Adjust for hamburger */
    }

    .hamburger-menu {
        display: block;
        order: 0; /* Place hamburger first */
        margin-right: 15px;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 20px;
        order: 1; /* Place logo second, allow it to grow and center */
        margin-right: 45px; /* Offset for hamburger space on the right */
    }

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

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
        background-color: #000000; /* Same as header-top to blend */
        order: 2; /* Below header-top */
        height: 40px; /* Approximate height for buttons */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: var(--header-offset); /* Starts below the header */
        left: 0;
        width: 70%;
        max-width: 300px; /* Limit width for smaller screens */
        height: calc(100% - var(--header-offset));
        background-color: #222222;
        flex-direction: column;
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease-out;
        z-index: 1001;
        overflow-y: auto;
    }

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

    .nav-container {
        flex-direction: column;
        padding: 20px 0;
        width: 100%;
        max-width: none; /* Ensure it takes full width of the nav */
    }

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

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

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

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

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

    .footer-col {
        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;
  }
}
