/* Basic Resets & Global Styles */
:root {
    --primary-color: #28a745; /* Green */
    --secondary-color: #ffc107; /* Gold */
    --accent-color: #17a2b8; /* Cyan for highlights */
    --text-color-dark: #343a40;
    --text-color-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --bg-light: #ffffff;
    --border-color: #444;
    --header-height: 80px;
    --top-bar-height: 40px;
    --mobile-header-height: 60px;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
}

/* Marquee Section */
.marquee-section {
    background-color: #222;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.marquee-icon {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 0 15px;
    flex-shrink: 0;
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
    padding-right: 50px; /* Space between repeated content */
}

.marquee-item {
    color: var(--text-color-light);
    margin-right: 50px;
    font-size: 0.95em;
    display: inline-block;
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--primary-color);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Header Styles */
.site-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #111;
    padding: 10px 0;
    font-size: 0.85em;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .top-link {
    color: var(--text-color-light);
    margin-right: 20px;
    transition: color 0.3s ease;
}

.top-bar-left .top-link:hover {
    color: var(--primary-color);
}

.language-selector, .currency-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.lang-btn, .currency-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.lang-btn:hover, .currency-btn:hover {
    background-color: #333;
}

.lang-btn .flag-icon {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

.lang-dropdown-menu, .currency-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 150px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.lang-dropdown-menu[aria-hidden="false"], .currency-dropdown-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li a, .currency-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color-light);
    white-space: nowrap;
}

.lang-dropdown-menu li a:hover, .currency-dropdown-menu li a:hover {
    background-color: #3e3e3e;
    color: var(--primary-color);
}

.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color-light);
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 180px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color-light);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #3e3e3e;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    margin-left: 10px;
    padding: 8px 18px;
    font-size: 0.9em;
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.8em;
    cursor: pointer;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Off-screen */
    width: 300px;
    height: 100%;
    background-color: #222;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar-header .logo img {
    height: 45px;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 2em;
    cursor: pointer;
}

.mobile-nav-list {
    flex-grow: 1;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    color: var(--text-color-light);
    font-size: 1.1em;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-color);
}

.mobile-nav-item.has-dropdown .mobile-dropdown-menu {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-nav-item.has-dropdown.active .mobile-dropdown-menu {
    max-height: 300px; /* Adjust as needed */
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 8px 0;
    color: #ccc;
    font-size: 0.95em;
}

.mobile-dropdown-menu li a:hover {
    color: var(--secondary-color);
}

.mobile-auth-buttons {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.mobile-auth-buttons .btn {
    flex: 1;
    margin: 0 5px;
}

/* Footer Styles */
.site-footer {
    background-color: #111;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-col:last-child {
    padding-right: 0;
}

.footer-col h3, .footer-col h4 {
    color: var(--text-color-light);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

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

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

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

.social-links a {
    color: var(--text-color-light);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.support-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.support-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter-signup form {
    display: flex;
    margin-top: 15px;
}

.newsletter-signup input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: var(--text-color-light);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-signup .btn-subscribe {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-signup .btn-subscribe:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
}

.footer-middle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.payment-methods, .gaming-licenses {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.payment-methods h4, .gaming-licenses h4 {
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.payment-icons img {
    height: 35px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%) brightness(100%);
}

.gaming-licenses p {
    margin-bottom: 10px;
}

.gaming-licenses a {
    color: var(--primary-color);
}

.license-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.age-restriction, .responsible-gaming {
    height: 40px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.age-restriction:hover, .responsible-gaming:hover {
    filter: grayscale(0%) brightness(100%);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide main nav on smaller screens */
    }
    .header-actions {
        order: 2;
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }
    .main-header .container {
        height: var(--mobile-header-height);
    }
    .logo img {
        height: 50px;
    }
    .auth-buttons {
        display: none; /* Hide desktop auth buttons */
    }
    .top-bar-right {
        display: none; /* Simplify top bar for mobile */
    }
    .top-bar-left {
        width: 100%;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .marquee-content {
        animation: marquee-scroll 25s linear infinite; /* Faster scroll for mobile */
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }
    .footer-col.about-us .social-links {
        justify-content: center;
        display: flex;
    }
    .newsletter-signup form {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-middle {
        flex-direction: column;
        text-align: center;
    }
    .payment-methods, .gaming-licenses {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .payment-icons, .license-icons {
        justify-content: center;
    }
    .marquee-icon {
        display: none; /* Hide icons on very small screens */
    }
    .marquee-container {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-sidebar {
        width: 100%; /* Full width on very small screens */
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }
    .top-bar-left .top-link {
        margin-right: 0;
    }
}
/* FontAwesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
