:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
}

@media (max-width: 768px) {
    :root {
        --header-offset: 110px; /* Mobile: header-top (60px) + mobile-nav-buttons (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;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #1a1a1a;
    padding-top: var(--header-offset);
    overflow-x: hidden;
}

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

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

.header-top {
    background-color: var(--primary-color); /* Dark blue */
    color: #ffffff;
    min-height: 60px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color); /* Gold */
    text-transform: uppercase;
    padding: 10px 0;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.login-btn {
    background-color: var(--secondary-color); /* Gold */
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

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

.register-btn {
    background-color: var(--primary-color); /* Dark blue */
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

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

.main-nav {
    background-color: var(--secondary-color); /* Gold */
    min-height: 50px;
    display: flex;
    align-items: center;
    width: 100%;
}

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

.nav-link {
    color: var(--primary-color); /* Dark blue */
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #333;
    transform: translateY(-2px);
}

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

.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 30px;
}

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

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
}

.footer-nav a {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}

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

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

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

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        order: 1; /* Hamburger on left */
        z-index: 1001;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
    }

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

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

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

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset); /* Below the header and mobile buttons */
        left: 0;
        width: 100%;
        height: calc(100% - var(--header-offset));
        background-color: var(--primary-color);
        padding: 20px 0;
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

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

    .nav-link {
        color: #ffffff;
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        background-color: var(--primary-color);
        padding: 10px 15px;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 998;
        min-height: 50px;
    }

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

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

    body.no-scroll {
        overflow: hidden;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3 {
        margin-top: 20px;
    }

    .footer-nav a {
        display: inline-block;
        margin: 0 8px 8px;
    }
}
/* 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;
  }
}
