:root {
    --primary-color: #000000;
    --secondary-color: #FFFFFF;
    --header-top-bg: #1A1A1A;
    --main-nav-bg: #000000;
    --footer-bg: #000000;
    --text-color: #FFFFFF;
    --btn-login-bg: #FCBC45;
    --btn-register-bg: #FFFFFF;
    --btn-login-text: #000000;
    --btn-register-text: #000000;
    --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) */
    }
}

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    background-color: var(--secondary-color);
    color: #333;
    overflow-x: hidden;
}

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

.header-top {
    background-color: var(--header-top-bg);
    padding: 20px 0;
    color: var(--text-color);
}

.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: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-login {
    background-color: var(--btn-login-bg);
    color: var(--btn-login-text);
}

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

.btn-register {
    background-color: var(--btn-register-bg);
    color: var(--btn-register-text);
}

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

.main-nav {
    background-color: var(--main-nav-bg);
    padding: 15px 0;
    display: flex;
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--btn-login-bg);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-menu-overlay {
    display: none;
}

/* Site Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 40px 20px 20px;
    font-size: 15px;
}

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

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--btn-login-bg);
}

.footer-col p,
.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--btn-login-bg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

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

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        order: 2;
    }

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

    .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;
        height: 3px;
        width: 100%;
        background-color: var(--text-color);
        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);
    }

    .mobile-nav-buttons {
        display: block;
        background-color: var(--header-top-bg);
        padding: 10px 0;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-buttons-container {
        display: flex;
        justify-content: center;
        gap: 12px;
        max-width: 100%;
        padding: 0 15px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 100%;
        height: calc(100% - var(--header-offset));
        background-color: var(--main-nav-bg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

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

    .nav-link {
        font-size: 20px;
        padding: 10px 0;
        width: 100%;
    }

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

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

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

    .footer-col {
        min-width: unset;
    }

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