:root {
    --primary-color: #007bff; /* A nice blue for general accents */
    --secondary-color: #6c757d; /* Grey for secondary elements */
    --accent-gold: #FFD700; /* Gold for premium feel */
    --accent-green: #28a745; /* Green for success/call to action */
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-dark: #212529;
    --bg-light: #ffffff;
    --border-color: #e0e0e0;
    --font-family-sans: 'Arial', sans-serif;
    --font-family-serif: 'Georgia', serif;
}

/* Base styles */
body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: #f4f7f6;
}

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

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

a:hover {
    text-decoration: underline;
}

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

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

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

.btn-login:hover {
    background-color: #0056b3; /* Darken primary */
    text-decoration: none;
}

.btn-register {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: 1px solid var(--accent-gold);
}

.btn-register:hover {
    background-color: #e6b800; /* Darken gold */
    text-decoration: none;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-left a, .top-bar-right a {
    color: var(--text-light);
    margin-right: 15px;
}

.top-bar-left a:hover, .top-bar-right a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.language-selector select {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20512%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M192%20448c-8.188%200-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75%200-45.25l160-160c12.5-12.5%2032.75-12.5%2045.25%200s12.5%2032.75%200%2045.25L77.25%20256l137.4%20137.4c12.5%2012.5%2012.5%2032.75%200%2045.25C208.4%20444.9%20200.2%20448%20192%20448z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow, pointing right */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

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

.main-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.main-nav .nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 180px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10;
}

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

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

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
    text-decoration: none;
}

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

.search-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--text-dark);
}

.search-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none; /* Hidden by default */
    background-color: var(--bg-dark);
    position: absolute;
    width: 100%;
    top: 100%; /* Position below the main header */
    left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-list li a:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-menu {
    display: none;
    background-color: rgba(0,0,0,0.2);
}

.mobile-dropdown-menu li a {
    padding-left: 35px;
    font-size: 0.9em;
}

.mobile-auth-buttons {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}
.mobile-auth-buttons .btn {
    flex: 1;
    margin: 0 5px;
}

/* Marquee Styles */
.marquee-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    display: flex;
    align-items: center;
}

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

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

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite; /* Adjust duration as needed */
}

.marquee-content p {
    margin: 0;
    padding-right: 50px; /* Space between messages */
    display: inline-block;
}

.marquee-link {
    color: var(--accent-gold);
    font-weight: bold;
}

.marquee-link:hover {
    text-decoration: underline;
}

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


/* Footer Styles */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--accent-gold);
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

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

.footer-col ul li a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
}

.payment-methods, .responsible-gaming-logos {
    margin-top: 30px;
    text-align: center;
}

.payment-methods h4, .responsible-gaming-logos h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.payment-logo, .rg-logo {
    max-height: 40px;
    margin: 0 10px;
    filter: grayscale(100%) brightness(150%);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.payment-logo:hover, .rg-logo:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

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

.footer-bottom p {
    margin: 0;
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .main-header .container {
        justify-content: space-between;
    }
    .header-actions {
        gap: 10px;
    }
    .top-bar-right .btn {
        padding: 8px 15px;
    }
    .language-selector select {
        padding: 5px 8px;
        background-position: right 8px center;
    }
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar-left, .top-bar-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .top-bar-right a {
        margin-right: 0;
    }
    .marquee-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .marquee-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .marquee-content-container {
        width: 100%;
    }
    .marquee-content {
        animation-duration: 15s; /* Faster scroll on smaller screens */
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
