/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-top-bar {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 0.9em;
    color: #666;
    border-bottom: 1px solid #eee;
}
.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: #e44d26; /* Example accent color */
}
.social-links a {
    margin-left: 15px;
    color: #666;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #e44d26;
}
.header-main-nav {
    padding: 15px 0;
}
.header-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For absolute positioning of menu */
}
.navbar-brand {
    display: flex;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
    font-size: 1.5em;
}
.logo-img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}
.main-navigation .nav-menu {
    display: flex;
}
.nav-item {
    position: relative;
    margin: 0 15px;
}
.nav-link {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: #e44d26;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border-radius: 5px;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #333;
    transition: background-color 0.3s ease;
}
.dropdown-item:hover {
    background-color: #f0f0f0;
    color: #e44d26;
}
.auth-buttons .btn {
    padding: 8px 20px;
    border-radius: 5px;
    margin-left: 10px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: #e44d26;
    color: #fff;
}
.btn-primary:hover {
    background-color: #c0392b;
}
.btn-secondary {
    background-color: #2c3e50;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #1a242f;
}
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #333;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #fff8e1; /* Light yellow background */
    padding: 10px 0;
    border-bottom: 1px solid #ffe0b2;
    overflow: hidden;
    white-space: nowrap;
}
.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: #e44d26;
    flex-shrink: 0;
}
.marquee-icon-emoji {
    animation: bounce 1s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}
.marquee-content-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 p {
    display: inline;
    margin-right: 50px;
    font-size: 0.95em;
    color: #555;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Footer Styles */
.main-footer {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #ecf0f1; /* Light gray text */
    padding: 50px 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: 0 15px 30px 0;
}
.footer-widget:last-child {
    margin-right: 0;
}
.widget-title {
    font-size: 1.2em;
    color: #e44d26; /* Accent color */
    margin-bottom: 20px;
    position: relative;
}
.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #e44d26;
    margin-top: 10px;
}
.footer-widget p {
    line-height: 1.6;
    margin-bottom: 15px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul li a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}
.footer-widget ul li a:hover {
    color: #e44d26;
}
.social-icons a {
    color: #ecf0f1;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #e44d26;
}
.payment-icons img, .certifications img {
    height: 30px; /* Adjust as needed */
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(150%); /* Make icons white/light */
}
.payment-icons img:hover, .certifications img:hover {
    filter: none; /* Color on hover */
}
.footer-bottom {
    border-top: 1px solid #4a627a;
    padding-top: 20px;
    text-align: center;
}
.copyright, .disclaimer {
    margin-bottom: 10px;
    color: #bdc3c7;
}

/* Responsive adjustments for mobile menu */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the main header-main-nav */
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .main-navigation.active {
        display: flex; /* Show when active */
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-link {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .dropdown-menu {
        position: static; /* Make dropdowns inline in mobile menu */
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background-color: #f9f9f9;
        display: none; /* Hidden by default, JS will toggle */
    }
    .nav-item.dropdown:hover .dropdown-menu {
        display: none; /* Override desktop hover behavior */
    }
    .dropdown-item {
        padding-left: 40px;
        border-bottom: 1px solid #eee;
    }
    .dropdown-item:last-child {
        border-bottom: none;
    }
    .auth-buttons {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        padding: 15px 20px;
        background-color: #f0f0f0;
        border-top: 1px solid #ddd;
    }
    .auth-buttons.active {
        display: flex; /* Show when active */
    }
    .auth-buttons .btn {
        margin: 5px 0;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info span {
        margin: 5px 0;
    }
    .social-links {
        margin-top: 10px;
    }
    .marquee-content p {
        margin-right: 30px;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        min-width: unset;
        width: 100%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
