/* General Body Styles */
body {
    font-family: 'Open Sans', 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 {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

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

.btn-login {
    background-color: #f4c20d; /* Gold */
    color: #333;
}

.btn-login:hover {
    background-color: #e0b00c;
}

.btn-signup {
    background-color: #28a745; /* Green */
    color: #fff;
}

.btn-signup:hover {
    background-color: #218838;
}

/* Marquee Section */
.marquee-section {
    background-color: #343a40;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.9em;
}

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

.marquee-icon {
    margin-right: 15px;
    font-size: 1.2em;
}

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

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee 30s linear infinite;
}

.marquee-item {
    color: #fff;
    margin-right: 50px;
    display: inline-block;
}

.marquee-item:hover {
    text-decoration: underline;
}

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

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: #1a1a1a;
    color: #eee;
    padding: 8px 0;
    font-size: 0.85em;
}

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

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: #f4c20d;
}

.social-links a {
    color: #eee;
    margin-left: 15px;
    font-size: 1.1em;
}

.social-links a:hover {
    color: #f4c20d;
}

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

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

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-right: 20px;
}

.nav-links li {
    position: relative;
    margin-right: 25px;
}

.nav-links li:last-child {
    margin-right: 0;
}

.nav-item {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #f4c20d;
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    z-index: 10;
    border-radius: 5px;
}

.dropdown:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: #333;
    padding: 8px 20px;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #f0f2f5;
    color: #f4c20d;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.language-selector .dropdown-toggle {
    background-color: #eee;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.language-selector .dropdown-toggle:hover {
    background-color: #ddd;
}

.language-selector .flag-icon {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

/* Footer Styles */
.main-footer {
    background-color: #1a1a1a;
    color: #eee;
    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(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #f4c20d;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: #28a745;
}

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

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

.footer-column ul li a {
    color: #eee;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #f4c20d;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.about-us p {
    margin-bottom: 20px;
}

.payment-methods h4, .contact-social h4 {
    margin-top: 25px;
}

.payment-icons img {
    width: 40px;
    height: auto;
    margin-right: 10px;
    filter: grayscale(100%) brightness(180%);
    transition: filter 0.3s ease;
}

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

.contact-social p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-social p i {
    margin-right: 10px;
    color: #f4c20d;
}

.contact-social p a {
    color: #eee;
}

.social-icons a {
    color: #eee;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f4c20d;
}

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

.responsible-gaming-logos img {
    height: 30px;
    margin: 0 10px 15px;
    filter: brightness(150%);
}

.copyright {
    margin: 0;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links-wrapper {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links li a {
        padding: 10px 20px;
        display: block;
    }

    .nav-item::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        border-radius: 0;
        background-color: #f9f9f9;
        border-left: 3px solid #f4c20d;
        margin-left: 20px;
    }

    .dropdown-menu li a {
        padding-left: 30px;
    }

    .auth-buttons, .language-selector {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        margin-right: 0;
    }

    .auth-buttons {
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info, .social-links {
        margin-bottom: 10px;
    }
    .contact-info span {
        margin: 0 10px;
    }
    .social-links a {
        margin: 0 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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