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

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

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

a:hover {
    color: #0056b3;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #212529;
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: #0056b3; /* Deep blue for top bar */
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

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

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

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1rem;
}

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

.navbar-brand .site-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.navbar-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    position: relative;
    margin-right: 25px;
}

.nav-links li:last-child {
    margin-right: 0;
}

.nav-links a {
    color: #333;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border-top: 3px solid #007bff;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 8px 20px;
    white-space: nowrap;
    color: #555;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.auth-buttons .btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-login {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

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

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

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Marquee Section */
.marquee-section {
    background-color: #fefce8; /* Light yellow background */
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden; /* Ensures marquee content stays within bounds */
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #ffc107; /* Warning yellow */
}

.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;
    position: relative;
    height: 1.6em; /* Height of a single line of text */
}

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

.marquee-content p {
    display: inline-block;
    margin: 0 30px 0 0; /* Space between messages */
    color: #856404; /* Dark yellow/brown for text */
    font-size: 0.95rem;
}

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


/* Footer Styles */
.main-footer {
    background-color: #212529; /* Dark background */
    color: #f8f9fa;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

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

.footer-col h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: #bbb;
    line-height: 1.8;
}

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

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

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

.footer-col ul li a:hover {
    color: #fff;
}

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

.payment-methods h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.payment-icon {
    height: 25px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%); /* Make icons white/light */
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #343a40;
    color: #fff;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
}

.newsletter-form .btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form .btn-subscribe:hover {
    background-color: #0056b3;
}

.social-media-footer {
    margin-top: 20px;
}

.social-media-footer h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.disclaimer {
    font-style: italic;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-menu {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 12px 15px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-top: none;
        padding: 0 0 0 20px;
        background-color: #f9f9f9;
    }

    .dropdown-menu a {
        padding: 8px 15px;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons .btn {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .social-links {
        margin-bottom: 10px;
    }

    .social-links a {
        margin: 0 10px;
    }
}

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

    .footer-col {
        text-align: center;
    }

    .payment-methods, .social-media-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form .btn-subscribe {
        border-radius: 5px;
        margin-bottom: 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
