/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
}

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

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

.btn-primary:hover {
    background-color: #d04320;
    border-color: #d04320;
    color: #fff;
}

.btn-secondary {
    background-color: #f7b32b; /* Gold/Yellow */
    color: #333;
    border: 1px solid #f7b32b;
}

.btn-secondary:hover {
    background-color: #e6a21c;
    border-color: #e6a21c;
    color: #333;
}

/* Marquee Section */
.marquee-section {
    background-color: #333;
    color: #fff;
    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: #f7b32b;
    flex-shrink: 0;
}

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

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
    padding-right: 50px; /* Space between repeated content */
}

.marquee-item {
    color: #fff;
    margin-right: 40px;
    display: inline-block;
    font-size: 0.95em;
    text-decoration: none;
}

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

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

/* Header Styles */
.site-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: #222;
    padding: 10px 0;
    color: #fff;
    font-size: 0.9em;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.language-selector select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.auth-buttons .btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

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

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

.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
    max-width: 100%;
}

.main-navigation .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation .menu-item {
    position: relative;
}

.main-navigation .menu-item a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.main-navigation .menu-item a:hover {
    color: #e44d26;
    text-decoration: none;
}

.main-navigation .current-menu-item a {
    color: #e44d26;
}

.main-navigation .sub-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: 100;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li a {
    padding: 8px 20px;
    white-space: nowrap;
    font-weight: normal;
    color: #555;
}

.main-navigation .sub-menu li a:hover {
    background-color: #f5f5f5;
    color: #e44d26;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #333;
    width: 30px;
    height: 30px;
    position: relative;
}

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

.menu-item-mobile-only {
    display: none; /* Hidden on desktop */
}

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

.site-footer a {
    color: #f7b32b;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.footer-widget p {
    line-height: 1.8;
}

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

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

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

.footer-widget ul li a:hover {
    color: #f7b32b;
    text-decoration: none;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: #e44d26;
    color: #fff;
    text-decoration: none;
}

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

.payment-icons img, .security-icons img {
    height: 30px; /* Adjust as needed */
    width: auto;
    filter: grayscale(100%) brightness(150%); /* Make icons look consistent on dark background */
    transition: filter 0.3s ease;
}

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

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.age-restriction img {
    height: 40px;
    width: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation .menu {
        display: none; /* Hide desktop menu */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the header-main */
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .main-navigation .menu.active {
        display: flex; /* Show when active */
    }

    .main-navigation .menu-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-navigation .menu-item:last-child {
        border-bottom: none;
    }

    .main-navigation .menu-item a {
        padding: 15px 20px;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 20px;
        border-top: 1px solid #eee;
        border-bottom: none;
    }

    .main-navigation .menu-item-has-children:hover > .sub-menu {
        display: block; /* Keep dropdown behavior for touch/click */
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .header-content {
        justify-content: space-between;
    }

    .top-bar-content {
        justify-content: center;
    }

    .auth-buttons {
        display: none; /* Hide desktop login/register */
    }

    .menu-item-mobile-only {
        display: block; /* Show mobile login/register */
        margin-top: 10px;
        padding: 0 20px;
    }

    .menu-item-mobile-only .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .payment-icons, .security-icons {
        justify-content: center;
    }

    .footer-widget .widget-title {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .copyright {
        margin-bottom: 15px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
