/* Basic Resets and Global Styles */
body, h1, h2, h3, p, ul, li, a, button, input, select {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}
html {
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}
.header-top-bar {
    background-color: #f8f8f8;
    padding: 10px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #eee;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.welcome-message {
    color: #666;
}
.top-bar-links {
    display: flex;
    align-items: center;
}
.top-bar-links a {
    margin-left: 20px;
    color: #666;
    transition: color 0.3s ease;
}
.top-bar-links a:hover {
    color: #e44d26; /* Red accent */
}
.language-selector select {
    border: 1px solid #ddd;
    background: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    margin-left: 15px;
    cursor: pointer;
    outline: none;
}
.header-main-nav {
    padding: 15px 0;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo img {
    vertical-align: middle;
}
.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
}
.main-navigation li {
    margin: 0 15px;
}
.main-navigation .nav-link {
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}
.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: #e44d26;
}
.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0;
    height: 3px;
    background-color: #e44d26;
    transition: width 0.3s ease;
}
.main-navigation .nav-link:hover::after,
.main-navigation .nav-link.active::after {
    width: 100%;
}
.auth-buttons {
    display: flex;
    gap: 10px;
}
.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}
.auth-buttons .btn-login {
    background-color: #f0ad4e; /* Gold accent */
    color: #fff;
}
.auth-buttons .btn-login:hover {
    background-color: #e99c30;
    box-shadow: 0 4px 8px rgba(240, 173, 78, 0.4);
}
.auth-buttons .btn-register {
    background-color: #e44d26; /* Red accent */
    color: #fff;
}
.auth-buttons .btn-register:hover {
    background-color: #cc3e1f;
    box-shadow: 0 4px 8px rgba(228, 77, 38, 0.4);
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.4s;
}
.hamburger-menu.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.header-search-bar {
    padding: 10px 0;
    background-color: #f2f2f2;
    border-top: 1px solid #ddd;
}
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}
.search-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 1em;
}
.search-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}
.search-form button:hover {
    background-color: #0056b3;
}

/* Marquee Styles */
.marquee-section {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #f0ad4e;
}
.marquee-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.marquee-icon {
    margin-right: 15px;
    font-size: 1.8em;
    color: #f0ad4e; /* Gold accent */
    flex-shrink: 0;
}
.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee-animation 30s linear infinite;
    padding-left: 100%; /* Start off-screen */
}
.marquee-item {
    color: #fff;
    margin-right: 60px;
    font-size: 0.95em;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.marquee-item:hover {
    color: #f0ad4e;
}
@keyframes marquee-animation {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Footer Styles */
.main-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 0.9em;
}
.footer-top {
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 30px;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-col {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
}
.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 2px solid #e44d26;
    padding-bottom: 5px;
    display: inline-block;
}
.footer-col p, .footer-col li {
    line-height: 1.8;
    margin-bottom: 8px;
}
.footer-col a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: #e44d26; /* Red accent */
}
.social-media {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}
.social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icon:hover {
    background-color: #e44d26;
    transform: translateY(-3px);
}
.social-icon img {
    width: 20px;
    height: 20px;
    filter: invert(100%); /* Make icons white */
}
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.payment-icons img {
    height: 30px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.payment-icons img:hover {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.05);
}
.age-restriction {
    margin-top: 20px;
    font-size: 1.1em;
    color: #f0ad4e;
    font-weight: bold;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.footer-bottom .copyright {
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #aaa;
}
.footer-bottom .disclaimer {
    font-size: 0.75em;
    color: #888;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 15px;
}
.regulatory-logos {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.regulatory-logos img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.regulatory-logos img:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation ul {
        margin-top: 15px;
        justify-content: center;
    }
    .nav-wrapper {
        justify-content: center;
    }
    .auth-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .top-bar-links {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar-links a, .language-selector select {
        margin: 0;
    }
    .nav-wrapper {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .logo {
        flex-grow: 1;
        text-align: left;
    }
    .main-navigation {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .main-navigation.active {
        display: flex;
        max-height: 500px; /* Adjust as needed */
        overflow: auto;
    }
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-navigation li:last-child {
        border-bottom: none;
    }
    .main-navigation .nav-link {
        padding: 12px 15px;
        width: 100%;
    }
    .main-navigation .nav-link::after {
        bottom: 0;
        height: 2px;
    }
    .auth-buttons {
        display: none; /* Hide auth buttons on mobile nav */
    }
    .mobile-menu-toggle {
        display: block; /* Show hamburger */
        order: 2; /* Position after logo */
    }
    .header-search-bar .search-form {
        margin: 0 15px;
    }
    .marquee-container {
        flex-direction: column;
        text-align: center;
    }
    .marquee-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 95%;
    }
    .footer-col h3 {
        margin-bottom: 10px;
    }
    .social-media, .payment-icons {
        justify-content: center;
    }
    .regulatory-logos {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-buttons .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .search-form input, .search-form button {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    .marquee-icon {
        font-size: 1.3em;
    }
    .marquee-item {
        font-size: 0.85em;
        margin-right: 30px;
    }
    .footer-col p, .footer-col li {
        font-size: 0.85em;
    }
    .footer-col h3 {
        font-size: 1.1em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
