/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-top-bar {
    background-color: #f8f8f8;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left a, .top-bar-right a {
    margin-right: 15px;
    color: #666;
}
.top-bar-right .language-selector {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
    color: #666;
}
.top-bar-right .language-selector .flag-icon {
    width: 20px;
    height: auto;
    margin-right: 5px;
}
.login-btn, .register-btn {
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}
.register-btn {
    background-color: #28a745;
}
.login-btn:hover {
    background-color: #0056b3;
}
.register-btn:hover {
    background-color: #218838;
}

.header-main-nav {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-main-nav .logo img {
    height: 40px;
}
.primary-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.primary-navigation ul li {
    position: relative;
    margin-left: 25px;
}
.primary-navigation ul li a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}
.primary-navigation ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.primary-navigation .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 4px;
}
.primary-navigation .dropdown-menu li {
    margin: 0;
}
.primary-navigation .dropdown-menu li a {
    padding: 8px 20px;
    color: #555;
    font-weight: normal;
    white-space: nowrap;
}
.primary-navigation .dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}
.primary-navigation ul li.has-dropdown:hover > .dropdown-menu {
    display: block;
}
.header-actions button {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
    color: #555;
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}
.main-footer a {
    color: #aaa;
}
.main-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}
.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}
.footer-widget:last-child {
    padding-right: 0;
}
.footer-widget h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-left: 3px solid #007bff;
    padding-left: 10px;
}
.footer-widget p {
    margin-bottom: 10px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 8px;
}
.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}
.social-links a:hover {
    background-color: #007bff;
}
.payment-icons img, .partner-logos img {
    height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.payment-icons img:hover, .partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.copyright {
    margin: 0;
}
.age-restriction img {
    height: 40px;
    vertical-align: middle;
}

/* Marquee Styles */
.marquee-section {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}
.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-animation 30s linear infinite; /* Adjust speed as needed */
}
.marquee-icon {
    font-size: 1.2em;
    margin-right: 10px;
    color: #ffc107; /* Highlight color */
}
.marquee-wrapper {
    display: inline-block; /* Ensure content stays on one line */
}
.marquee-content {
    display: flex;
    align-items: center;
}
.marquee-text {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}
.marquee-text:hover {
    text-decoration: underline;
    color: #ffc107;
}
.marquee-separator {
    color: #888;
    margin-right: 15px;
}

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

/* Responsive Adjustments (Simplified) */
@media (max-width: 992px) {
    .primary-navigation {
        display: none;
    }
    .header-actions {
        display: flex;
        align-items: center;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-main-nav .container {
        justify-content: space-between;
    }
    .footer-widget {
        flex-basis: 48%; /* Two columns on smaller screens */
    }
}
@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-left, .top-bar-right {
        margin-bottom: 10px;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        min-width: unset;
        width: 100%;
        padding-right: 0;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .copyright {
        margin-bottom: 10px;
    }
    .marquee-container {
        animation-duration: 20s; /* Faster on smaller screens */
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}
.mobile-menu-content {
    background-color: #fff;
    width: 80%;
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-mobile-menu {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}
.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-navigation ul li {
    border-bottom: 1px solid #eee;
}
.mobile-navigation ul li:last-child {
    border-bottom: none;
}
.mobile-navigation ul li a {
    display: block;
    padding: 15px 10px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.mobile-navigation ul li a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
