/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e; /* Dark background */
    color: #f0f0f0; /* Light text */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background-color: #0d111c; /* Even darker header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: #1a1a2e;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.language-selector {
    display: flex;
    align-items: center;
}

.language-selector i {
    margin-right: 5px;
    color: #ffd700; /* Gold accent */
}

.language-selector select {
    background-color: transparent;
    border: none;
    color: #f0f0f0;
    padding: 3px 5px;
    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%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffd700%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.3-6.4H18.7c-5%200-9.3%203.3-11.3%208.2-2.1%204.9-1.2%2010.5%202.2%2014.2l128%20127.9c3.9%203.9%2010.2%203.9%2014.1%200l128-127.9c3.5-3.6%204.4-9.2%202.2-14.2z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 25px; /* Space for the custom arrow */
}

.language-selector select:focus {
    outline: none;
}

.auth-buttons .btn {
    background-color: #ffd700; /* Gold */
    color: #0d111c;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.auth-buttons .btn:hover {
    background-color: #e0b800;
}

.auth-buttons .btn-register {
    background-color: #00b386; /* Green accent */
    color: #fff;
}

.auth-buttons .btn-register:hover {
    background-color: #009973;
}

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

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

.site-logo {
    height: 40px; /* Adjust as needed */
    width: auto;
    display: block;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.8em;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.highlight {
    color: #ffd700;
}

.nav-item.has-submenu .nav-link i {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item.has-submenu:hover .nav-link i {
    transform: rotate(180deg);
}

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

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

.submenu li a {
    color: #f0f0f0;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #2b2b40;
    color: #ffd700;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #2b2b40;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.marquee-content {
    display: inline-block; /* Ensure content stays on one line */
}

.marquee-item {
    display: inline-block;
    margin-right: 50px;
    color: #f0f0f0;
    font-size: 0.9em;
}

.marquee-item i {
    color: #00b386; /* Green accent */
    margin-right: 8px;
}

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

/* Footer Styles */
.main-footer {
    background-color: #0d111c;
    color: #a0a0a0;
    padding: 40px 0 20px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-widgets .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* Negative margin to offset padding in cols */
}

.footer-col {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #f0f0f0;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

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

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

.footer-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffd700;
}

.social-links {
    margin-top: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    color: #a0a0a0;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700;
}

.payment-methods h4 {
    color: #f0f0f0;
    font-size: 1em;
    margin-bottom: 10px;
}

.payment-icon {
    height: 25px; /* Adjust as needed */
    margin-right: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
}

.copyright {
    margin-bottom: 10px;
    color: #777;
}

.responsible-gambling-info {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.responsible-gambling-info p {
    margin: 0;
    max-width: 400px;
}

.age-restriction-icon, .gamcare-icon {
    height: 30px; /* Adjust as needed */
    opacity: 0.8;
}

.license-info {
    margin-top: 15px;
    color: #888;
    font-size: 0.85em;
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffd700; /* Gold accent */
    color: #0d111c; /* Dark text */
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background-color: #e0b800;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #0d111c;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-link {
        padding: 12px 15px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-content {
        justify-content: space-between;
    }
    .nav-item.has-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: #1a1a2e;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .nav-item.has-submenu.active .submenu {
        max-height: 200px; /* Adjust based on content */
    }
    .submenu li a {
        padding-left: 30px;
    }
    .footer-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .auth-buttons {
        margin-top: 10px;
    }
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    .site-logo {
        height: 35px;
    }
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    .footer-col h3 {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-col ul {
        margin-bottom: 20px;
    }
    .social-links, .payment-methods {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .payment-icon {
        height: 20px;
    }
    .responsible-gambling-info {
        flex-direction: column;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
