/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.site-header {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top-bar {
    background-color: #0d0d0d;
    padding: 10px 0;
    font-size: 0.85em;
}

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

.top-bar-links li {
    display: inline-block;
    margin-right: 15px;
}
.top-bar-links a {
    color: #ccc;
    text-decoration: none;
}
.top-bar-links a:hover {
    color: #fff;
}

.language-selector select,
.currency-selector select {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

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

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

.site-logo img {
    max-height: 50px;
    display: block;
}

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

.main-navigation .nav-list > li {
    display: inline-block;
    position: relative;
    margin: 0 15px;
}

.main-navigation .nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-weight: bold;
    transition: color 0.2s ease;
}
.main-navigation .nav-link:hover,
.main-navigation .nav-link.active-nav-link {
    color: #ffd700; /* Gold accent */
}

.main-navigation .submenu {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 5px;
    left: 0;
    top: 100%;
}

.main-navigation .nav-list > li:hover .submenu,
.main-navigation .nav-list > li.focused .submenu,
.main-navigation .nav-list > li.hovered .submenu {
    display: block;
}

.main-navigation .submenu li a {
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.main-navigation .submenu li a:hover,
.main-navigation .submenu li a.active-nav-link {
    background-color: #3a3a3a;
    color: #ffd700;
}

.header-user-actions {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-right: 15px;
}
.search-box input {
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 20px;
    background-color: #333;
    color: #fff;
    width: 150px;
    transition: width 0.3s ease;
}
.search-box input::placeholder {
    color: #aaa;
}
.search-box input:focus {
    width: 200px;
    outline: none;
    border-color: #ffd700;
}
.search-box button {
    background: none;
    border: none;
    color: #aaa;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1em;
}
.search-box button:hover {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    background-color: #333;
    color: #fff;
    border: 1px solid #ffd700;
}
.btn-login:hover {
    background-color: #ffd700;
    color: #1a1a1a;
    border-color: #ffd700;
}

.btn-register {
    background-color: #ffd700;
    color: #1a1a1a;
    border: 1px solid #ffd700;
}
.btn-register:hover {
    background-color: #e0b000;
    border-color: #e0b000;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
    z-index: 1001;
}
.mobile-menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}
.mobile-menu-toggle.active .icon-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .icon-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.marquee-icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: #e74c3c;
    flex-shrink: 0;
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite; /* Adjust duration based on content length */
    padding-right: 100%; /* Ensures smooth loop */
}

.marquee-item {
    display: inline-block;
    margin-right: 40px;
    color: #555;
    text-decoration: none;
    font-size: 0.95em;
    padding: 5px 0;
    transition: color 0.2s ease;
}
.marquee-item:hover {
    color: #3498db;
    text-decoration: underline;
}

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

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

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

.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;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

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

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

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col ul li a:hover {
    color: #ffd700;
}

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

.footer-logo img {
    max-height: 40px;
    margin-bottom: 15px;
    display: block;
}

.social-media a {
    color: #ccc;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.2s ease;
}
.social-media a:hover {
    color: #ffd700;
}

.payment-icons img {
    max-height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(80%);
    transition: filter 0.2s ease;
}
.payment-icons img:hover {
    filter: grayscale(0%);
}

.licensing-info {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

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

.disclaimer {
    font-size: 0.8em;
    color: #777;
}
.disclaimer a {
    color: #ffd700;
    text-decoration: none;
}
.disclaimer a:hover {
    text-decoration: underline;
}

/* FontAwesome icons for search and social media */
.fa-search:before { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.fa-facebook-f:before { content: '\f39e'; font-family: 'Font Awesome 5 Brands'; }
.fa-twitter:before { content: '\f099'; font-family: 'Font Awesome 5 Brands'; }
.fa-instagram:before { content: '\f16d'; font-family: 'Font Awesome 5 Brands'; }
.fa-youtube:before { content: '\f167'; font-family: 'Font Awesome 5 Brands'; }
.fa-telegram-plane:before { content: '\f3fe'; font-family: 'Font Awesome 5 Brands'; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens */
        width: 100%;
        order: 3; /* Push to new line */
        margin-top: 15px;
        background-color: #2a2a2a;
        border-radius: 5px;
    }
    .main-navigation.active {
        display: block;
    }
    .main-navigation .nav-list > li {
        display: block;
        margin: 0;
        border-bottom: 1px solid #333;
    }
    .main-navigation .nav-list > li:last-child {
        border-bottom: none;
    }
    .main-navigation .nav-link {
        padding: 12px 15px;
    }
    .main-navigation .submenu {
        position: static;
        box-shadow: none;
        background-color: #333;
        padding-left: 20px;
        border-radius: 0;
        border-top: 1px solid #444;
    }
    .main-navigation .submenu li a {
        padding: 10px 15px;
    }

    .header-user-actions {
        order: 2;
        flex-grow: 1;
        justify-content: flex-end;
    }
    .mobile-menu-toggle {
        display: block; /* Show toggle button */
    }
    .search-box {
        flex-grow: 1; /* Allow search box to take more space */
        margin-right: 10px;
    }
    .search-box input {
        width: 100%;
        max-width: 200px; /* Limit width even when expanded */
    }
    .main-nav-container {
        flex-wrap: wrap;
    }
    .site-logo {
        flex-grow: 1;
    }
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-bar-links {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    .top-bar-links li {
        margin-right: 10px;
        margin-bottom: 5px;
        display: inline-block;
    }
    .top-bar-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .language-selector, .currency-selector {
        margin-left: 0;
        flex-grow: 1;
    }
    .language-selector select, .currency-selector select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3 {
        text-align: center;
    }
    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .footer-col ul li {
        flex-basis: 45%; /* Two columns */
        margin-bottom: 0;
    }
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    .social-media {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    .payment-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .search-box input {
        max-width: 150px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
