/* Basic Reset & Global Styles */
:root {
    --primary-color: #e44d26; /* A vibrant orange/red */
    --secondary-color: #ffc107; /* A bright yellow */
    --dark-bg: #1a1a1a;
    --light-bg: #2a2a2a;
    --text-color: #f0f0f0;
    --light-text-color: #cccccc;
    --border-color: #3a3a3a;
    --header-height: 80px;
    --top-bar-height: 30px;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

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

.header-top-bar {
    background-color: #111;
    color: var(--light-text-color);
    font-size: 0.85em;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-selector {
    margin-right: 20px;
}

.language-selector .lang-btn {
    color: var(--light-text-color);
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.language-selector .lang-btn:hover,
.language-selector .lang-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.auth-buttons .btn {
    display: inline-block;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-register {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-register:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.header-main-nav > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo img {
    max-height: 50px;
    display: block;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    position: relative;
}

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

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

.nav-item.has-submenu:hover > .nav-link::after {
    width: 100%;
}

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

.nav-item.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    color: var(--light-text-color);
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.header-promo-banner {
    background-color: var(--primary-color);
    padding: 10px 0;
    text-align: center;
    font-size: 0.95em;
    color: #fff;
}

.header-promo-banner .banner-link {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: underline;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #222;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.2em;
}

.marquee-icon-emoji {
    color: var(--secondary-color);
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px; /* Adjust height based on content */
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee-animation 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-text {
    color: var(--light-text-color);
    margin-right: 20px;
    font-size: 0.95em;
}

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

.marquee-separator {
    color: var(--border-color);
    margin-right: 20px;
}

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

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

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

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

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

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

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

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

.footer-col ul li a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

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

.payment-icons, .game-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.payment-icons img, .game-providers img {
    max-height: 30px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.payment-icons img:hover, .game-providers img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.copyright, .responsible-gaming-info {
    flex: 1 1 100%;
    margin-bottom: 10px;
}

.responsible-gaming-info img {
    vertical-align: middle;
    margin-left: 10px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens */
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }
    .header-main-nav > .container {
        justify-content: space-between;
    }
    .auth-buttons {
        order: 3; /* Move auth buttons to the end */
    }
    .header-top-bar .top-bar-content {
        justify-content: center;
    }
    .language-selector {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .auth-buttons .btn {
        margin: 0 5px;
    }

    .footer-widgets {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        max-width: 400px;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
        display: flex;
    }
    .payment-icons, .game-providers {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        padding: 5px 0;
    }
    .top-bar-content {
        flex-direction: column;
    }
    .language-selector {
        margin-bottom: 5px;
    }
    .auth-buttons {
        margin-top: 5px;
    }
    .header-main-nav {
        padding: 10px 0;
    }
    .navbar-brand .logo img {
        max-height: 40px;
    }
    .header-promo-banner {
        font-size: 0.85em;
        padding: 8px 0;
    }
    .marquee-icon {
        margin-right: 10px;
        font-size: 1em;
    }
    .marquee-text {
        font-size: 0.9em;
    }
    .site-footer {
        padding: 30px 0 15px;
    }
    .footer-col h3 {
        font-size: 1.1em;
    }
    .copyright, .responsible-gaming-info {
        font-size: 0.85em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
