/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0d1a26; /* Dark background */
    color: #e0e0e0;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: #f7b32b; /* Gold/Yellow accent */
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700; /* Brighter gold on hover */
}

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

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login {
    background-color: #334455; /* Dark grey-blue */
    color: #e0e0e0;
    border: 1px solid #556677;
}

.btn-login:hover {
    background-color: #445566;
    transform: translateY(-2px);
}

.btn-register {
    background-color: #f7b32b; /* Gold accent */
    color: #1a1a1a;
    border: 1px solid #ffd700;
}

.btn-register:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}

/* Header Styles */
.main-header {
    background-color: #1a2a3a; /* Dark green-goldish header background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #13202e; /* Slightly darker top bar */
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #2a3d4e;
}

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

.top-bar-left .announcement-link {
    color: #e0e0e0;
    margin-right: 20px;
}

.top-bar-left .announcement-link i {
    color: #f7b32b;
    margin-right: 5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.language-selector i {
    margin-right: 5px;
    color: #f7b32b;
}

.language-selector select {
    background-color: #2a3d4e;
    color: #e0e0e0;
    border: 1px solid #445566;
    padding: 5px 10px;
    border-radius: 3px;
    appearance: none; /* Remove default dropdown arrow */
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: #f7b32b;
}

.top-bar-right .help-link,
.top-bar-right .contact-link {
    color: #e0e0e0;
    margin-left: 15px;
}

.top-bar-right .help-link i,
.top-bar-right .contact-link i {
    color: #f7b32b;
    margin-right: 5px;
}


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

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

.logo img {
    height: 50px; /* Adjust as needed */
    max-width: 100%;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: #e0e0e0;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #f7b32b;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #f7b32b;
    border-radius: 2px;
}

.nav-link.special {
    color: #ff4d4d; /* Red for promotions/VIP */
}

.nav-link.special:hover {
    color: #ff6666;
}

.nav-link.special::after {
    background-color: #ff4d4d;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a3d4e;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    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 {
    padding: 10px 15px;
    display: block;
    color: #e0e0e0;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #3a4d5e;
    color: #f7b32b;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 28px;
    color: #f7b32b;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-content {
    width: 280px;
    background-color: #1a2a3a;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.close-mobile-nav {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 30px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

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

.mobile-nav-list li a {
    color: #e0e0e0;
    font-size: 18px;
    display: block;
    padding: 8px 0;
}

.mobile-nav-list li a:hover {
    color: #f7b32b;
}

.mobile-dropdown-toggle {
    position: relative;
}

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

.mobile-dropdown-menu {
    display: none; /* Hidden by default */
    padding-left: 20px;
    margin-top: 5px;
}

.mobile-dropdown-menu li a {
    font-size: 16px;
    padding: 5px 0;
    color: #c0c0c0;
}

.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Marquee Section */
.marquee-section {
    background-color: #2a3d4e; /* Darker blue-grey */
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #3a4d5e;
}

.marquee-container {
    display: flex;
    align-items: center;
    /* animation: marquee-animation 30s linear infinite; */ /* JavaScript will handle dynamic speed */
}

.marquee-icon {
    margin-right: 15px;
    font-size: 20px;
    color: #f7b32b;
    flex-shrink: 0;
}

.marquee-content p {
    margin: 0;
    color: #e0e0e0;
    font-size: 15px;
}

/* Animation for marquee (if CSS-driven, or overridden by JS) */
@keyframes marquee-animation {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Footer Styles */
.main-footer {
    background-color: #1a2a3a; /* Same as header */
    color: #c0c0c0;
    padding-top: 40px;
    font-size: 15px;
    border-top: 1px solid #2a3d4e;
}

.footer-top {
    border-bottom: 1px solid #2a3d4e;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-top .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
}

.footer-section h3 {
    color: #f7b32b;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: #f7b32b;
}

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

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

.footer-section ul li a {
    color: #c0c0c0;
    display: block;
}

.footer-section ul li a:hover {
    color: #f7b32b;
    transform: translateX(5px);
}

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

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #2a3d4e;
    color: #e0e0e0;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: #f7b32b;
    color: #1a2a3a;
}

.provider-logos,
.payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.provider-logos img,
.payment-logos img {
    height: 30px; /* Uniform height for logos */
    filter: grayscale(80%) brightness(120%);
    transition: filter 0.3s ease;
    max-width: 100px;
    object-fit: contain;
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #f7b32b;
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background-color: #2a3d4e;
    padding: 10px;
    border-radius: 5px;
}

.age-restriction .age-icon {
    height: 40px;
    width: auto;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #2a3d4e; /* Double border effect */
    background-color: #13202e; /* Slightly darker */
}

.footer-bottom .copyright {
    margin-bottom: 5px;
    color: #e0e0e0;
}

.footer-bottom .licensing {
    color: #a0a0a0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-navigation {
        display: none; /* Hide main navigation on smaller screens */
    }
    .auth-buttons {
        display: none; /* Hide auth buttons on smaller screens */
    }
    .mobile-menu-toggle {
        display: block; /* Show toggle button */
    }
    .nav-content {
        justify-content: space-between;
    }
    .logo {
        flex-grow: 1;
        text-align: left;
    }
    .top-bar-left {
        display: none; /* Hide news on smaller screens */
    }
    .top-bar .container {
        justify-content: center;
    }
    .top-bar-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .language-selector {
        margin-right: 0;
    }
    .top-bar-right .help-link,
    .top-bar-right .contact-link {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .footer-top .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        max-width: 90%;
        margin-bottom: 20px;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .provider-logos,
    .payment-logos {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    .mobile-nav-content {
        width: 100%;
    }
    .close-mobile-nav {
        right: 20px;
        top: 20px;
    }
    .marquee-content p {
        font-size: 14px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
