/* Basic Resets & Global Styles */
:root {
    --primary-color: #ffd700; /* Gold */
    --secondary-color: #32cd32; /* Lime Green */
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --gray-text: #aaaaaa;
    --border-color: #333;
    --button-hover-bg: #e6c200;
    --button-active-bg: #ccae00;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--light-text);
    background-color: #0d0d0d;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--button-hover-bg);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--button-hover-bg);
    text-decoration: none;
}

/* Header Styles */
.site-header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

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

.topbar-menu li {
    display: inline-block;
    margin-left: 20px;
}

.topbar-menu a {
    color: var(--gray-text);
}

.topbar-menu a:hover {
    color: var(--primary-color);
}

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

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container takes full width */
}

.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

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

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--light-text);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.has-submenu > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    min-width: 180px;
    z-index: 100;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 10px 0;
}

.nav-menu > li:hover > .submenu {
    display: block;
}

.submenu li {
    padding: 0 15px;
}

.submenu a {
    padding: 8px 0;
    font-weight: normal;
    white-space: nowrap;
}

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

.language-selector select {
    background-color: #333;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
}

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

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Marquee Styles */
.marquee-section {
    background-color: #222;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin: 0 auto;
    padding: 0 15px;
}

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

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden; /* Hide content outside the wrapper */
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite; /* Adjust duration as needed */
    padding-right: 50px; /* Space between repeating content */
}

.marquee-content a {
    color: var(--light-text);
    margin-right: 50px; /* Space between individual messages */
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.marquee-content a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

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


/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--gray-text);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px; /* Space between columns */
}

.footer-col {
    flex: 1;
    min-width: 220px; /* Minimum width for columns before wrapping */
    margin-bottom: 20px;
}

.footer-col .widget-title {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

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

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

.footer-col ul li a {
    color: var(--gray-text);
    transition: color 0.3s ease;
    font-size: 0.9em;
}

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

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    text-decoration: none;
}

.payment-logos img {
    height: 30px;
    margin-right: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-logos img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.copyright {
    margin-bottom: 10px;
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-restriction img {
    height: 30px;
    width: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-topbar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .topbar-menu {
        padding-top: 5px;
    }

    .header-main .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }

    .main-navigation {
        width: 100%;
        order: 3; /* Move navigation below logo and actions */
        text-align: left;
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
        position: absolute;
        right: 15px;
        top: 25px; /* Adjust based on logo position */
        z-index: 101;
    }

    .nav-menu {
        flex-direction: column;
        display: none; /* Hide by default */
        background-color: #2a2a2a;
        position: absolute;
        top: 100%; /* Below header-main */
        left: 0;
        width: 100%;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu a {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .submenu {
        position: static;
        display: block; /* Always show submenu items when parent is clicked */
        background-color: #3a3a3a;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-left: 20px;
    }

    .submenu a {
        padding: 8px 30px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        order: 2; /* Place actions below logo, above navigation toggle */
    }

    .marquee-content {
        animation-duration: 20s; /* Faster scroll on smaller screens */
    }

    .footer-widgets {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
    }

    .footer-col .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    .payment-logos {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
