/* General Body Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: #007bff;
}
a:hover {
    color: #0056b3;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-login {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}
.btn-login:hover {
    background-color: #e9f5ff;
}
.btn-subscribe {
    background-color: #28a745;
    color: #fff;
    border: 1px solid #28a745;
    padding: 10px 15px;
    cursor: pointer;
}
.btn-subscribe:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Marquee Styles */
.marquee-section {
    background-color: #ffc107; /* Warning yellow */
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.marquee-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content when not scrolling */
    padding: 0 15px;
}
.marquee-icon {
    font-size: 1.2em;
    margin-right: 10px;
    color: #333;
}
.marquee-icon-emoji {
    display: inline-block;
    animation: bounce 1s infinite alternate;
}
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}
.marquee-wrapper {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite; /* Adjust duration as needed */
    animation-play-state: running;
}
.marquee-wrapper:hover {
    animation-play-state: paused;
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-size: 0.95em;
}
.marquee-text {
    color: #333;
    font-weight: bold;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.marquee-text:hover {
    color: #007bff;
}
.marquee-separator {
    margin: 0 10px;
    color: #666;
}
@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* Ensure the marquee content repeats to fill space - handled by JS for robustness */


/* 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: #f1f1f1;
    padding: 8px 0;
    font-size: 0.85em;
    color: #555;
}
.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: #007bff;
}
.social-links a {
    color: #555;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #007bff;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 15px 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}
.navbar-brand .logo-img {
    height: 40px;
    margin-right: 10px;
}
.navbar-brand .brand-text {
    color: #333;
}
.navbar-toggler {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}
.navbar-collapse {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}
.navbar-nav {
    display: flex;
    margin-left: auto; /* Push nav to center/right */
}
.nav-item {
    position: relative;
    margin-left: 25px;
}
.nav-link {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-item.active .nav-link {
    color: #007bff;
}
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 5px;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    color: #333;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}
.navbar-actions {
    margin-left: 30px;
    display: flex;
    gap: 10px;
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #f1f1f1;
    padding: 50px 0 20px;
    font-size: 0.9em;
}
.main-footer a {
    color: #f1f1f1;
    transition: color 0.3s ease;
}
.main-footer a:hover {
    color: #007bff;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}
.widget-title {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}
.footer-widget p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #ccc;
}
.footer-widget ul li {
    margin-bottom: 8px;
}
.footer-widget ul li a {
    color: #ccc;
}
.footer-widget ul li a:hover {
    color: #007bff;
}
.footer-social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: background-color 0.3s ease;
}
.footer-social-links a:hover {
    background-color: #007bff;
}
.footer-widget.contact-info i {
    margin-right: 10px;
    color: #007bff;
}
.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder {
    color: #aaa;
}
.newsletter-form .btn-subscribe {
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
    white-space: nowrap;
}
.newsletter-disclaimer {
    margin-top: 10px;
    font-size: 0.8em;
    color: #aaa;
}
.newsletter-disclaimer a {
    color: #007bff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
}
.copyright {
    margin: 0;
    color: #ccc;
}
.copyright a {
    color: #007bff;
}
.payment-methods img {
    height: 25px;
    margin-left: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.payment-methods img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        display: none; /* Hidden by default on mobile */
    }
    .navbar-collapse.show {
        display: flex;
    }
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }
    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .nav-link {
        padding: 12px 20px;
        color: #333;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin-top: 0;
        border-radius: 0;
        background-color: #f8f8f8;
    }
    .dropdown-item {
        padding: 8px 20px;
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-actions {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
        gap: 8px;
    }
    .navbar-actions .btn {
        width: 100%;
    }
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-info, .social-links {
        margin-bottom: 10px;
    }
    .social-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .payment-methods {
        margin-top: 15px;
    }
    .payment-methods img {
        margin: 0 8px;
    }
    .marquee-container {
        justify-content: flex-start; /* Allow scrolling on small screens */
    }
}

/* Scroll-to-top button styles (added here for completeness, usually in JS in this context) */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.scroll-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
