/* Basic Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a2e;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #00bcd4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00e5ff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

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

.btn-primary {
    background-color: #00bcd4;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    background-color: #00e5ff;
    box-shadow: 0 6px 15px rgba(0, 229, 255, 0.4);
}

.btn-login {
    background-color: transparent;
    color: #00bcd4;
    border: 1px solid #00bcd4;
}

.btn-login:hover {
    background-color: #00bcd4;
    color: #ffffff;
}

.btn-register {
    background-color: #ffc107;
    color: #1a1a2e;
}

.btn-register:hover {
    background-color: #ffe082;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #333;
    background-color: #2c2c44;
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.5);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* FontAwesome for icons - assumed loaded externally or via CDN */
/* Example styling, actual font-family might vary based on Font Awesome version */
.fas, .fab {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* For solid icons */
    margin-right: 5px;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #2c2c44;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a5a;
    color: #fff;
    font-size: 0.9em;
    position: relative; /* Needed for positioning if any child elements are absolute */
}

.marquee-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden; /* Hide content outside the wrapper */
    position: relative;
    height: 25px; /* Fixed height for marquee */
}

.marquee-icon {
    margin-right: 15px;
    font-size: 1.2em;
    color: #ffc107;
    flex-shrink: 0; /* Prevent icon from shrinking */
    line-height: 1;
}

.marquee-content-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
    height: 100%;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding-right: 50px; /* Space between items */
    flex-shrink: 0;
    height: 100%;
}

.marquee-item a {
    color: #ffc107;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.marquee-item a:hover {
    color: #ffe082;
}

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

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

.header-top-bar {
    background-color: #1a1a2e;
    padding: 8px 0;
    font-size: 0.85em;
    color: #ccc;
}

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

.top-links ul, .mobile-nav-list, .nav-list {
    display: flex;
    gap: 20px;
}

.top-links a, .language-selector select, .auth-buttons a {
    color: #ccc;
    padding: 5px 0;
}

.language-selector select {
    background-color: #1a1a2e;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    appearance: none; /* Remove default select styling */
    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%23cccccc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.9%2011-3.1%2016.3l132%20160c5.4%206.5%2015.4%206.5%2020.8%200l132-160c1.8-5.3.7-11.4-3.1-16.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 25px; /* Make space for the arrow */
}

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

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

.site-logo img {
    height: 40px; /* Adjust as needed */
}

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

.nav-item {
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00bcd4;
    transition: width 0.3s ease;
}

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

.has-submenu .nav-link i {
    margin-left: 5px;
    font-size: 0.8em;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #2c2c44;
    border: 1px solid #3a3a5a;
    border-radius: 5px;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    padding: 10px 0;
    z-index: 100;
    top: calc(100% + 5px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

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

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

.submenu li a:hover {
    background-color: #3a3a5a;
    color: #00e5ff;
}

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

.search-toggle, .menu-toggle {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.2em;
    cursor: pointer;
    display: none; /* Hidden on desktop */
    padding: 5px;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1001;
    display: none; /* Hidden by default */
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background-color: #1a1a2e;
    width: 300px;
    max-width: 80%;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    position: relative;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

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

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
}

.mobile-navigation .mobile-nav-list {
    flex-direction: column;
    gap: 0px;
    margin-top: 30px;
}

.mobile-nav-item {
    border-bottom: 1px solid #3a3a5a;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    color: #e0e0e0;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link:hover {
    color: #00e5ff;
}

.mobile-submenu {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
    /* border-top: 1px solid #3a3a5a; */
    padding-bottom: 10px;
}

.mobile-submenu li a {
    padding: 8px 0;
    color: #ccc;
    display: block;
}

.mobile-submenu li a:hover {
    color: #00e5ff;
}

.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #3a3a5a;
    padding-top: 20px;
}

/* Responsive adjustments for header */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main navigation on smaller screens */
    }
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }
    .top-bar-left, .top-bar-right {
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .auth-buttons {
        margin-top: 10px;
    }
    .header-actions .btn-deposit {
        display: none; /* Hide deposit button on mid-size screens */
    }
}

@media (max-width: 768px) {
    .site-logo img {
        height: 35px;
    }
    .header-top-bar {
        font-size: 0.8em;
    }
    .top-links ul {
        gap: 10px;
    }
    .main-header-area {
        padding: 10px 0;
    }
}

/* Footer Specific Styles */
.site-footer {
    background-color: #2c2c44;
    color: #ccc;
    padding: 40px 0 20px;
    border-top: 1px solid #3a3a5a;
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a5a;
    margin-bottom: 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-widget h3 {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

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

.footer-widget p {
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

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

.social-links a:hover {
    color: #00bcd4;
    transform: translateY(-3px);
}

.footer-links ul, .footer-support ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-support a {
    color: #ccc;
    font-size: 0.9em;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover, .footer-support a:hover {
    color: #00bcd4;
    padding-left: 5px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-icons img {
    height: 30px;
    filter: grayscale(80%) brightness(1.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%) brightness(1);
    transform: translateY(-2px);
}

.licensing-info {
    font-size: 0.8em;
    line-height: 1.6;
    color: #888;
    margin-top: 15px;
}

.licensing-info a {
    color: #00bcd4;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
}

.bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.85em;
    color: #888;
}

.age-restriction-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.age-restriction-footer img {
    height: 25px;
}

.age-restriction-footer span {
    font-size: 0.8em;
    color: #888;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-widget h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-about, .footer-links, .footer-support, .footer-payments {
        margin-bottom: 30px;
    }
    .social-links {
        justify-content: center;
    }
    .payment-icons {
        justify-content: center;
    }
    .bottom-content {
        flex-direction: column;
    }
    .copyright {
        width: 100%;
    }
    .age-restriction-footer {
        margin-top: 20px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
