/* 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;
}

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

.header-top-bar {
    background-color: #16162a;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-links .social-icon {
    color: #fff;
    margin-right: 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.social-links .social-icon:hover {
    color: #ffd700; /* Gold accent */
}

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

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-login {
    background-color: #e44d26; /* Red accent */
    color: #fff;
    border: 1px solid #e44d26;
}

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

.btn-register {
    background-color: #ffd700; /* Gold accent */
    color: #1a1a2e;
    border: 1px solid #ffd700;
}

.btn-register:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.language-selector {
    margin-left: 15px;
    position: relative;
}

.language-selector i {
    color: #fff;
    margin-right: 5px;
}

.language-selector select {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 5px;
    appearance: none; /* Remove default arrow */
    cursor: pointer;
    outline: none;
}

.navbar {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
}

.navbar-brand .logo-img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.navbar-brand .brand-text {
    display: inline-block;
}

.navbar-toggler {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    font-weight: 500;
    display: block;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #ffd700;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #2a2a3e;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #3e3e5a;
    color: #ffd700;
}

.navbar-search-mobile {
    display: none; /* Hidden by default, shown on mobile */
}

/* Marquee Styles */
.marquee-section {
    background-color: #fefefe;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.marquee-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0 15px;
}

.marquee-icon {
    font-size: 1.5em;
    color: #e44d26;
    margin-right: 15px;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

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

.marquee-content p {
    margin: 0;
    color: #555;
    font-size: 0.95em;
}

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

/* Footer Styles */
.main-footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
    border-top: 5px solid #ffd700; /* Gold border */
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-widgets .widget {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 30px 0;
}

.widget:last-child {
    margin-right: 0;
}

.widget-title {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #e44d26;
    margin-top: 10px;
}

.about-us-widget p {
    margin-bottom: 20px;
    color: #aaa;
}

.social-links-footer .social-icon-footer {
    color: #fff;
    font-size: 1.3em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links-footer .social-icon-footer:hover {
    color: #e44d26;
}

.quick-links-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.quick-links-widget ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links-widget ul li a:hover {
    color: #ffd700;
}

.payment-icons,
.licenses-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.payment-icon,
.license-icon {
    height: 30px; /* Adjust as needed */
    filter: grayscale(80%) brightness(150%);
    transition: filter 0.3s ease;
}

.payment-icon:hover,
.license-icon:hover {
    filter: grayscale(0%) brightness(100%);
}

.security-title {
    margin-top: 30px;
}

.contact-info-widget p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #aaa;
}

.contact-info-widget p i {
    color: #ffd700;
    margin-right: 10px;
    font-size: 1.1em;
}

.contact-info-widget p a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-widget p a:hover {
    color: #ffd700;
}

.working-hours {
    font-style: italic;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

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

.age-restriction {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.age-icon {
    height: 25px;
    margin-right: 10px;
}

.age-restriction p {
    margin: 0;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a1a2e;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    .navbar-collapse.show .navbar-nav {
        display: flex;
    }
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-link {
        padding: 12px 20px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #3e3e5a;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .dropdown-item {
        padding-left: 40px;
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-search-mobile {
        display: flex;
        width: 100%;
        padding: 10px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-search-mobile .search-input {
        flex-grow: 1;
        padding: 8px 10px;
        border: 1px solid #555;
        border-radius: 5px 0 0 5px;
        background-color: #3e3e5a;
        color: #fff;
    }
    .navbar-search-mobile .search-button {
        background-color: #e44d26;
        border: 1px solid #e44d26;
        border-left: none;
        padding: 8px 12px;
        border-radius: 0 5px 5px 0;
        color: #fff;
        cursor: pointer;
    }
    .footer-widgets .widget {
        flex-basis: 48%; /* Two columns on medium screens */
        margin-right: 4%;
    }
    .footer-widgets .widget:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .header-top-bar .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .user-actions {
        margin-top: 10px;
    }
    .navbar-brand {
        font-size: 1.5em;
    }
    .footer-widgets .widget {
        flex-basis: 100%; /* Single column on small screens */
        margin-right: 0;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .copyright, .age-restriction {
        margin-top: 10px;
    }
    .navbar-brand .brand-text {
        font-size: 0.8em; /* Adjust font size for smaller screens */
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
