/* Basic Reset & Global Styles */
:root {
    --primary-color: #e50914; /* Red */
    --secondary-color: #ffc107; /* Gold/Amber */
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #e0e0e0;
    --dark-text: #333;
    --border-color: #333;
    --header-height: 80px;
    --footer-height: auto;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0d0d0d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

ul {
    list-style: none;
}

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

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

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

.header-top-bar .contact-info span {
    margin-right: 20px;
}

.header-top-bar .contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.header-top-bar .social-links a {
    color: #bbb;
    margin-left: 15px;
    font-size: 1.1em;
}

.header-top-bar .social-links a:hover {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: var(--header-height);
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-brand .logo {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
}

.navbar-brand .brand-text {
    color: var(--secondary-color);
}

.navbar-toggler {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggler .toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.navbar-collapse {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav {
    display: flex;
    margin-left: auto; /* Push nav to center/right */
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

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

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

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

.nav-item.dropdown .nav-link::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1;
    display: none;
    border-top: 3px solid var(--primary-color);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: #fff;
    padding: 12px 16px;
    display: block;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #333;
    color: var(--secondary-color);
}

.navbar-user-actions {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 10px;
}

.btn-login {
    background-color: #444;
    color: #fff;
}

.btn-login:hover {
    background-color: #555;
}

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

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

.language-selector {
    position: relative;
    margin-left: 15px;
}

.btn-language {
    background: none;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.btn-language i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.language-selector .dropdown-menu {
    min-width: 120px;
    left: auto;
    right: 0;
    text-align: right;
}

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

.marquee-container {
    display: flex;
    align-items: center;
    color: #fff;
}

.marquee-icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--secondary-color);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.marquee-icon-emoji {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden; /* Important for horizontal scrolling */
    white-space: nowrap;
}

.marquee-content {
    display: inline-block; /* Allows content to scroll horizontally */
    animation: marquee-scroll 30s linear infinite; /* Adjust duration as needed */
    padding-right: 100%; /* Ensure content scrolls fully out */
}

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

.marquee-item {
    color: #fff;
    margin-right: 50px; /* Space between items */
    font-size: 0.95em;
    display: inline-block;
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--secondary-color);
}

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


/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: #bbb;
    padding: 40px 0 20px;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-widget h3 {
    color: var(--secondary-color);
    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: var(--primary-color);
}

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

.footer-widget ul {
    list-style: none;
}

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

.footer-widget ul li a {
    color: #bbb;
    font-size: 0.9em;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-widget .social-links {
    margin-top: 20px;
}

.footer-widget .social-links a {
    color: #bbb;
    margin-right: 15px;
    font-size: 1.3em;
}

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

.footer-widget.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

.payment-methods {
    margin-bottom: 20px;
}

.payment-methods img {
    height: 30px; /* Adjust size as needed */
    margin: 0 10px;
    filter: grayscale(80%) brightness(1.2);
    transition: filter 0.3s ease;
}

.payment-methods img:hover {
    filter: grayscale(0%) brightness(1);
}

.copyright, .age-restriction {
    font-size: 0.85em;
    margin-bottom: 5px;
}

.age-restriction {
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        margin-left: 0;
    }
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        display: none; /* Hidden by default on mobile */
        padding-bottom: 20px;
    }
    .navbar-collapse.show {
        display: flex; /* Show when toggled */
    }
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    .nav-item {
        margin: 0;
        width: 100%;
    }
    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
    }
    .nav-link::after {
        display: none;
    }
    .nav-item.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #2a2a2a;
        width: 100%;
    }
    .dropdown-item {
        padding-left: 40px;
    }
    .navbar-user-actions {
        flex-direction: column;
        width: 100%;
        padding: 10px 20px;
        align-items: stretch;
    }
    .navbar-user-actions .btn,
    .navbar-user-actions .language-selector {
        width: 100%;
        margin: 5px 0;
    }
    .btn-language {
        justify-content: center;
    }
    .navbar-toggler {
        display: block;
    }
    .header-top-bar .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info span {
        margin: 5px 0;
    }
    .header-top-bar .social-links {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }
    .footer-widget {
        min-width: unset;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    .footer-widget h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-widget ul {
        padding-left: 0;
    }
    .footer-widget ul li {
        display: inline-block;
        margin: 0 10px 10px;
    }
    .footer-widget .social-links {
        justify-content: center;
        display: flex;
    }
    .payment-methods {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .payment-methods img {
        margin: 5px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
