
    :root {
        --primary-color: #26A9E0;
        --secondary-color: #FFFFFF;
        --login-btn-color: #EA7C07;
        --text-color: #000000;
        --header-top-bg: #1e8bc3; /* Darker shade of primary for header top */
        --main-nav-bg: #FFFFFF; /* White for main navigation */
        --footer-bg: #222222; /* Dark grey for footer */
        --header-offset: 130px; /* Desktop: header-top (approx 60px height + 10px top/bottom padding) + main-nav (approx 40px height + 10px top/bottom padding) */
    }

    @media (max-width: 768px) {
        :root {
            --header-offset: 110px; /* Mobile: header-top (approx 40px height + 10px top/bottom padding) + mobile-nav-buttons (approx 30px height + 10px top/bottom padding) */
        }
    }

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

    a {
        text-decoration: none;
        color: var(--primary-color);
    }

    a:hover {
        color: #1a7bb7; /* Darker shade of primary */
    }

    /* Site Header */
    .site-header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        min-height: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .header-top {
        background-color: var(--header-top-bg);
        color: var(--secondary-color);
        padding: 10px 0;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

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

    .logo {
        font-size: 24px;
        font-weight: bold;
        color: var(--secondary-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 300px;
        display: block;
        line-height: 1;
    }

    .logo:hover {
        color: var(--secondary-color);
    }

    .desktop-nav-buttons {
        display: flex;
        gap: 15px;
        margin-left: auto;
    }

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

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

    .btn-login:hover {
        background-color: #c96706; /* Darker login color */
        transform: translateY(-2px);
    }

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

    .btn-register:hover {
        background-color: #1a7bb7; /* Darker primary color */
        transform: translateY(-2px);
    }

    .main-nav {
        background-color: var(--main-nav-bg);
        padding: 10px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: flex; /* Desktop default: flex */
        flex-direction: row; /* Desktop default: row */
        position: static; /* Desktop default: static */
        min-height: 40px;
        align-items: center;
    }

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

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

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

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

    .hamburger-menu {
        display: none; /* Hidden on desktop */
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        order: 0;
        margin-right: 10px;
    }

    .hamburger-menu .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--secondary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

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

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

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

    .mobile-nav-buttons {
        display: none; /* Hidden on desktop, shown on mobile via media query */
    }

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

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

    /* Site Footer */
    .site-footer {
        background-color: var(--footer-bg);
        color: #cccccc;
        padding: 40px 20px 20px;
        font-size: 14px;
        line-height: 1.8;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .footer-col:first-child {
        max-width: 35%; /* Allow first column (logo/description) to be wider */
    }

    .footer-logo {
        font-size: 22px;
        font-weight: bold;
        color: var(--secondary-color);
        margin-bottom: 15px;
        display: block;
    }

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

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

    .site-footer p {
        margin-bottom: 15px;
    }

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

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

    .footer-nav a {
        color: #cccccc;
        transition: color 0.3s ease;
    }

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

    .footer-bottom {
        max-width: 1200px;
        margin: 20px auto 0;
        text-align: center;
        color: #999999;
    }

    /* Mobile Styles */
    @media (max-width: 768px) {
        body {
            overflow-x: hidden;
        }
        .page-content img {
            max-width: 100% !important;
            height: auto !important;
            display: block;
        }
        .page-content {
            overflow-x: hidden;
            max-width: 100%;
        }

        .header-top {
            padding: 10px 0;
            min-height: 40px;
        }

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

        .hamburger-menu {
            display: block;
            order: 0;
            margin-right: 10px;
        }

        .logo {
            flex: 1 !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            order: 1;
            font-size: 20px;
            padding-right: 40px; /* Offset for hamburger space to truly center */
            max-width: calc(100% - 70px); /* Adjust max-width to prevent overflow with hamburger */
        }

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

        .mobile-nav-buttons {
            display: flex !important;
            width: 100%; max-width: 100%;
            box-sizing: border-box;
            padding: 10px 15px;
            overflow: hidden;
            gap: 10px;
            flex-wrap: nowrap;
            background-color: var(--secondary-color);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            min-height: 30px;
            align-items: center;
        }

        .mobile-nav-buttons .btn {
            flex: 1; min-width: 0;
            max-width: calc(50% - 5px);
            box-sizing: border-box;
            padding: 8px 12px;
            font-size: 13px;
            white-space: normal;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .main-nav {
            display: none; /* Hidden by default on mobile */
            flex-direction: column; /* Vertical menu */
            position: fixed;
            top: var(--header-offset);
            left: 0;
            width: 80%;
            max-width: 300px;
            height: calc(100% - var(--header-offset));
            background-color: var(--main-nav-bg);
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
            transform: translateX(-100%); /* Off-screen by default */
            transition: transform 0.3s ease;
            overflow-y: auto;
            padding: 20px 0;
            box-sizing: border-box;
            border-top: none;
        }

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

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

        .nav-link {
            width: 100%;
            padding: 10px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            white-space: normal;
        }

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

        .nav-link::after {
            display: none;
        }

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

        .footer-col {
            min-width: 100%;
            max-width: 100%;
            text-align: center;
        }
        .footer-col:first-child {
            max-width: 100%;
        }

        .footer-logo {
            text-align: center;
        }

        .site-footer h3 {
            text-align: center;
        }

        .footer-nav {
            text-align: center;
        }
    }

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