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

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

/* Marquee Section Styles */
.marquee-section {
    background-color: #ffcc00;
    color: #333;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.marquee-icon {
    font-size: 1.2em;
    margin-right: 10px;
    flex-shrink: 0;
}

.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 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-right: 20px;
}

.marquee-content a:hover {
    text-decoration: underline;
}

.marquee-text-separator {
    margin: 0 10px;
    color: #666;
}

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

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

.header-top-bar {
    background-color: #222;
    color: #eee;
    font-size: 0.9em;
    padding: 5px 0;
}

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

.top-bar-left span {
    margin-right: 15px;
}

.top-bar-left .top-bar-link {
    color: #eee;
    text-decoration: none;
    margin-left: 15px;
}

.top-bar-left .top-bar-link:hover {
    color: #ffcc00;
}

.language-selector select {
    background-color: #333;
    color: #eee;
    border: none;
    padding: 3px 5px;
    border-radius: 3px;
    cursor: pointer;
}

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

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

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

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

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

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

.main-navigation ul li {
    position: relative;
    margin-left: 30px;
}

.main-navigation ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.main-navigation ul li a:hover {
    color: #ffcc00;
}

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

.main-navigation .has-submenu:hover > .submenu {
    display: block;
}

.main-navigation .submenu li {
    margin: 0;
}

.main-navigation .submenu li a {
    padding: 8px 20px;
    white-space: nowrap;
    font-weight: normal;
}

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

.search-box {
    position: relative;
    margin-right: 20px;
}

.search-box input {
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 5px;
    width: 150px;
    transition: width 0.3s ease;
}

.search-box input:focus {
    width: 200px;
    outline: none;
    border-color: #ffcc00;
}

.search-box button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

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

.btn-primary {
    background-color: #ffcc00;
    color: #333;
    margin-left: 10px;
}

.btn-primary:hover {
    background-color: #e0b300;
}

.btn-secondary {
    background-color: #007bff;
    color: #fff;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: 20px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow-y: auto;
}

.mobile-navigation {
    background-color: #fff;
    width: 280px;
    height: 100%;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active .mobile-navigation {
    transform: translateX(0);
}

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

.mobile-navigation ul li {
    margin-bottom: 10px;
}

.mobile-navigation ul li a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.mobile-navigation ul li a:hover {
    color: #ffcc00;
}

.mobile-navigation .submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    display: none; /* Controlled by JS */
}

.mobile-navigation .has-submenu > a {
    position: relative;
}

.mobile-navigation .has-submenu > a::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.mobile-navigation .has-submenu.active > a::after {
    content: '-';
}

.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-buttons .btn {
    width: 100%;
    padding: 12px;
}

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

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

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-widget:last-child {
    padding-right: 0;
}

.footer-widget h4 {
    color: #ffcc00;
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
}

.footer-widget h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #ffcc00;
    margin-top: 5px;
}

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

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.payment-methods img {
    height: 25px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

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

.footer-links ul, .footer-support ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li, .footer-support ul li {
    margin-bottom: 8px;
}

.footer-links ul li a, .footer-support ul li a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover, .footer-support ul li a:hover {
    color: #ffcc00;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: #eee;
}

.newsletter-form input::placeholder {
    color: #bbb;
}

.newsletter-form button {
    background-color: #ffcc00;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e0b300;
}

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

.social-media a:hover {
    color: #ffcc00;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

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

.age-restriction img {
    height: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    .header-actions .search-box {
        margin-right: 10px;
    }
    .header-actions .user-auth {
        display: none; /* Hide desktop auth buttons */
    }
    .menu-toggle {
        display: block;
    }
    .site-logo {
        flex-grow: 1;
    }
    .header-wrapper {
        justify-content: space-between;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        padding-right: 0;
        min-width: unset;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-left, .top-bar-right {
        margin-bottom: 5px;
    }
    .top-bar-left span {
        display: block;
        margin-bottom: 5px;
    }
    .top-bar-left .top-bar-link {
        margin: 0 5px;
    }
    .marquee-content {
        animation-duration: 20s; /* Faster scroll on smaller screens */
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 40px;
    }
    .search-box input {
        width: 100px;
    }
    .search-box input:focus {
        width: 150px;
    }
}

/* Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
