/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: #007bff;
}
a:hover {
    color: #0056b3;
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top-bar {
    background-color: #333;
    color: #fff;
    padding: 8px 0;
    font-size: 0.9em;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.language-selector {
    display: flex;
    align-items: center;
}
.language-selector i {
    margin-right: 5px;
}
.language-selector select {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.auth-buttons .btn {
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}
.btn-login {
    background-color: #007bff;
    color: #fff;
}
.btn-login:hover {
    background-color: #0056b3;
}
.btn-register {
    background-color: #28a745;
    color: #fff;
}
.btn-register:hover {
    background-color: #218838;
}

.header-main-nav {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand .site-logo {
    height: 40px; /* Adjust as needed */
    width: auto;
}
.main-navigation .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation .nav-item {
    margin-left: 25px;
}
.main-navigation .nav-link {
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}
.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #28a745; /* Green-gold accent */
    transition: width 0.3s ease;
}
.main-navigation .nav-link:hover::after,
.main-navigation .nav-link.active::after {
    width: 100%;
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}
.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.mobile-menu-toggle span:nth-child(1) {
    top: 0px;
}
.mobile-menu-toggle span:nth-child(2) {
    top: 8px;
}
.mobile-menu-toggle span:nth-child(3) {
    top: 16px;
}
.mobile-menu-toggle.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.mobile-menu-toggle.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.mobile-nav-overlay {
    display: none; /* Hidden by default, toggled by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    overflow-y: auto;
}
.mobile-nav-overlay.active {
    display: block;
}
.mobile-nav-content {
    padding: 60px 20px 20px;
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-item {
    margin-bottom: 15px;
}
.mobile-nav-link {
    color: #fff;
    font-size: 1.2em;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
}

/* Marquee Styles */
.marquee-section {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}
.marquee-icon {
    font-size: 1.2em;
    margin-right: 15px;
    color: #e6b800; /* Gold-like color */
}
.marquee-wrapper {
    display: inline-block;
    animation: marquee 20s linear infinite; /* Adjust duration as needed */
}
.marquee-content span {
    display: inline-block;
    padding-right: 50px; /* Space between repeating content */
    color: #555;
    font-size: 0.95em;
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Half content width, as it's duplicated */
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: #28a745;
}
.footer-col p {
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: #fff;
}
.social-links a {
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #28a745;
}
.payment-icons img {
    height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
}
.licensing-info img {
    height: 40px;
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.footer-bottom p {
    margin: 0;
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-main-nav .container {
        justify-content: space-between;
    }
    .mobile-nav-overlay.active {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        text-align: center;
    }
    .payment-icons {
        text-align: center;
    }
    .licensing-info {
        text-align: center;
    }
}
body.no-scroll {
    overflow: hidden;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
