/* Basic Reset & Global Styles */
:root {
    --primary-color: #008000; /* Vibrant Green */
    --secondary-color: #FFD700; /* Gold */
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --border-color: #333333;
    --font-family: 'Montserrat', 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: var(--dark-bg);
}

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

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

ul {
    list-style: none;
}

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

.flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #006600; /* direct darker green */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #ccac00; /* direct darker gold */
}

/* Header Styles */
.main-header {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.language-selector .lang-option {
    margin-left: 15px;
    color: var(--gray-text);
}

.language-selector .lang-option.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.header-auth-buttons .btn {
    margin-left: 10px;
}

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

.logo img {
    height: 50px; /* Adjust as needed */
    vertical-align: middle;
}

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

.main-navigation .nav-link {
    color: var(--light-text);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.main-navigation .nav-link:hover {
    color: var(--secondary-color);
}

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

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

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

.nav-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    min-width: 150px;
    z-index: 100;
    padding: 10px 0;
    border-radius: 5px;
}

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

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--light-text);
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.hamburger-menu {
    display: none; /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 2px;
}

/* Marquee Styles (from provided fragment, adapted) */
.marquee-section {
    background-color: #0d0d0d;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; /* Important for marquee effect */
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

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

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee-scroll 20s linear infinite;
    color: var(--gray-text);
}

.marquee-content a {
    color: var(--secondary-color);
    margin-right: 30px; /* Space between items */
}

.marquee-content a:hover {
    text-decoration: underline;
}

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

/* Footer Styles */
.main-footer {
    background-color: #0d0d0d;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.footer-widgets-area {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.footer-widget h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-widget p {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.footer-widget ul {
    padding-left: 0;
}

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

.footer-widget ul li a {
    color: var(--gray-text);
}

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

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

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.provider-logos, .payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-logos img, .payment-logos img {
    height: 30px;
    filter: grayscale(100%) brightness(70%);
    transition: filter 0.3s ease;
}

.provider-logos img:hover, .payment-logos img:hover {
    filter: grayscale(0%) brightness(100%);
}

.footer-bottom-bar {
    padding-top: 20px;
}

.copyright {
    color: var(--gray-text);
}

.licensing-info {
    text-align: right;
    color: var(--gray-text);
}

.licensing-info .license-badge {
    height: 40px;
    margin-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens */
    }
    .hamburger-menu {
        display: flex; /* Show hamburger menu */
    }
    .header-main-nav .container {
        justify-content: space-between;
    }
    .grid-layout-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .licensing-info {
        text-align: center;
    }
    .footer-widget {
        text-align: center;
    }
    .social-links, .provider-logos, .payment-logos {
        justify-content: center;
    }
    /* Mobile navigation overlay */
    .main-navigation.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below the header */
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        border-top: 1px solid var(--border-color);
        padding-bottom: 20px;
        z-index: 99;
    }
    .main-navigation.active .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    .main-navigation.active .nav-item {
        width: 100%;
        text-align: center;
    }
    .main-navigation.active .nav-link {
        padding: 10px 0;
        width: 100%;
    }
    .nav-item.dropdown .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #2a2a2a;
        border: none;
        border-radius: 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;
  }
}
