/* Basic Reset & Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* 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: #f8f9fa;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

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

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

.language-selector select {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
}

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

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

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

.main-navigation ul {
    display: flex;
}

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

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

.main-navigation ul li a:hover,
.main-navigation ul li a.active {
    color: #007bff;
    text-decoration: none;
}

.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: 10;
    top: 100%;
    left: 0;
    border-radius: 4px;
}

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

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

.main-navigation .submenu li a {
    padding: 10px 15px;
    white-space: nowrap;
    font-weight: normal;
    border-bottom: 1px solid #eee;
}

.main-navigation .submenu li:last-child a {
    border-bottom: none;
}

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

.header-actions .btn {
    margin-left: 10px;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.header-actions .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.header-actions .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.header-actions .btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.header-actions .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.header-actions .search-button,
.header-actions .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 10px;
    color: #333;
}

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

/* Marquee Styles */
.marquee-section {
    background-color: #ffc107; /* Warning color */
    color: #333;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

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

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

.marquee-icon-emoji {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

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

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

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

.marquee-text {
    color: #333;
    font-weight: bold;
    margin-right: 20px;
}

.marquee-separator {
    margin: 0 10px;
    color: rgba(0,0,0,0.5);
}

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

.footer-widgets {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.widget-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

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

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

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

.footer-widget p, .footer-widget ul li {
    color: #ced4da;
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #ced4da;
}

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

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

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

.payment-methods {
    margin-top: 20px;
}

.payment-methods img {
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
}

.footer-bottom {
    padding-top: 20px;
}

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

.footer-bottom p {
    margin: 0;
    color: #ced4da;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    color: #ced4da;
}

.footer-nav ul li a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-actions .btn {
        display: none; /* Hide desktop login/register on smaller screens */
    }
    .header-inner {
        justify-content: space-between;
    }
    .footer-widget {
        flex-basis: 48%; /* Two columns */
    }
    .footer-widget:nth-child(even) {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .header-top-bar .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-top-bar .contact-info {
        margin-bottom: 10px;
    }
    .footer-widget {
        flex-basis: 100%; /* Single column */
        padding-right: 0;
    }
    .bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    .footer-nav ul li {
        margin: 0 10px;
    }
    .marquee-wrapper {
        white-space: normal; /* Allow text to wrap if it's too long for a single line */
        animation: none; /* Disable marquee animation on small screens */
    }
    .marquee-content {
        padding-left: 0;
        animation: none;
        display: block; /* Make it block to wrap */
    }
}
/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none; /* Hidden by default */
    justify-content: flex-end; /* Align content to the right */
}

.mobile-menu-overlay.open {
    display: flex;
}

.mobile-menu-content {
    background-color: #fff;
    width: 280px;
    height: 100%;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.close-mobile-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #333;
    margin-bottom: 20px;
}

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

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

.mobile-navigation ul li:last-child a {
    border-bottom: none;
}

.mobile-navigation ul li a:hover,
.mobile-navigation ul li a.active {
    color: #007bff;
}

.mobile-actions {
    margin-top: auto; /* Push actions to the bottom */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-actions .btn {
    width: 100%;
    text-align: center;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
