/* General Body Styles */
body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

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

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

.btn-login {
    background-color: #28a745; /* Green */
    color: #fff;
}

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

.btn-register {
    background-color: #007bff; /* Blue */
    color: #fff;
}

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

/* Marquee Section */
.marquee-section {
    background-color: #222;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    border-bottom: 1px solid #333;
}

.marquee-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.marquee-icon {
    flex-shrink: 0;
    padding-right: 10px;
    font-size: 1.2em;
    color: #ffc107; /* Gold/Yellow for icon */
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    height: 1.5em; /* Adjust based on content line height */
    flex-grow: 1;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee 25s linear infinite; /* Adjust duration as needed */
}

.marquee-content a {
    color: #fff;
    margin-right: 30px;
}

.marquee-content a:hover {
    color: #ffc107;
}

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

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

.header-top-bar {
    background-color: #000;
    padding: 10px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #333;
}

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

.language-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.lang-btn img {
    margin-right: 5px;
    border-radius: 2px;
}

.lang-btn i {
    margin-left: 5px;
    font-size: 0.7em;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1001;
    display: none; /* Hidden by default */
}

.lang-dropdown-menu li a {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    color: #fff;
}

.lang-dropdown-menu li a:hover {
    background-color: #333;
    color: #ffc107;
}

.lang-dropdown-menu li a img {
    margin-right: 8px;
}

.auth-buttons a {
    margin-left: 10px;
    font-size: 0.9em;
}

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

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

.navbar-brand .site-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.main-navigation {
    flex-grow: 1;
    text-align: center;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-item {
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: #ffc107; /* Gold accent */
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1002;
    display: none; /* Hidden by default */
    text-align: left;
}

.dropdown-menu li a {
    padding: 10px 15px;
    color: #fff;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #333;
    color: #ffc107;
}

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

.header-search {
    position: relative;
    margin-left: 20px;
}

.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.search-form {
    display: flex;
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.search-form input[type="search"] {
    border: none;
    padding: 15px 20px;
    flex-grow: 1;
    font-size: 1.1em;
    outline: none;
}

.search-form button {
    background-color: #ffc107;
    border: none;
    color: #1a1a1a;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #e0a800;
}

.search-form .close-search {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

/* Footer Styles */
.main-footer {
    background-color: #1a1a1a; /* Dark background */
    color: #ccc;
    padding-top: 40px;
    font-size: 0.9em;
}

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

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

.footer-column h3 {
    color: #ffc107; /* Gold accent */
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

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

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffc107;
}

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

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 1.2em;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: #ffc107;
    color: #1a1a1a;
}

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

.payment-icons img {
    height: 30px; /* Adjust as needed */
    width: auto;
    filter: grayscale(100%) brightness(150%); /* Make them light grey */
    transition: filter 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%) brightness(100%); /* Color on hover */
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333; /* Should be border-top, not border-bottom */
}

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

.age-restriction {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #888;
}

.age-restriction img {
    height: 25px; /* Adjust as needed */
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-list {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar-content {
        width: 100%;
    }
    .auth-buttons {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .auth-buttons a {
        flex: 1;
        margin: 0 5px;
    }

    .header-main-nav > .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navbar-brand {
        flex-basis: auto; /* Allow logo to take natural width */
    }

    .menu-toggle {
        display: block; /* Show on mobile */
        order: 2; /* Position after logo */
    }
    .header-search {
        order: 3; /* Position after menu toggle */
        margin-left: 10px;
    }
    .main-navigation {
        flex-basis: 100%; /* Take full width */
        order: 4; /* Below logo/toggles */
        text-align: left;
    }
    .nav-list {
        flex-direction: column;
        display: none; /* Hidden by default for mobile */
        background-color: #222;
        padding: 10px 0;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }
    .nav-list.active {
        display: flex; /* Show when active */
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        padding: 12px 20px;
    }
    .nav-link::after {
        display: none; /* Remove underline animation on mobile */
    }
    .dropdown-menu {
        position: static; /* No absolute positioning on mobile */
        width: 100%;
        background-color: #333;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
    }
    .dropdown-menu li a {
        padding: 8px 30px;
    }
    .search-form .close-search {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .auth-buttons {
        flex-direction: column;
    }
    .auth-buttons a {
        margin: 5px 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
