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

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

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

a:hover {
    color: #c23d1e;
}

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

.header-top {
    background-color: #f0f0f0;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

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

.top-nav a, .social-links a {
    margin-right: 15px;
    color: #555;
}

.top-nav a:last-child, .social-links a:last-child {
    margin-right: 0;
}

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

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

.logo img {
    height: 50px; /* Adjust as needed */
    max-width: 100%;
}

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

.main-navigation .nav-item {
    position: relative;
    margin-left: 30px;
}

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

.main-navigation .nav-link:hover {
    color: #e44d26; /* Example hover color */
}

.main-navigation .has-dropdown > .nav-link i {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 180px;
    display: none;
    z-index: 10;
    border-top: 3px solid #e44d26;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #555;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #e44d26;
}

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

.header-actions .btn {
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 0.9em;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: #e44d26;
    color: #fff;
    border: none;
}

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

.btn-secondary {
    background-color: #007bff;
    color: #fff;
    border: none;
}

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

.search-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
    color: #555;
}

.mobile-menu {
    display: none; /* Hidden by default, shown via JS for mobile */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    padding-bottom: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 80px); /* Adjust based on header height */
}

.mobile-menu.active {
    display: block;
}

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

.mobile-nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-weight: bold;
}

.mobile-nav-link:hover {
    background-color: #f5f5f5;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    background-color: #f9f9f9;
    display: none; /* Controlled by JS */
}

.mobile-dropdown-menu li a {
    padding: 10px 15px;
    color: #555;
    display: block;
}

.mobile-dropdown-menu li a:hover {
    background-color: #eee;
    color: #e44d26;
}

/* Marquee Styles */
.marquee-section {
    background-color: #fef0cd;
    padding: 10px 0;
    border-bottom: 1px solid #fce8a6;
    overflow: hidden;
}

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

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

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

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-content a {
    color: #d4a700;
    margin-right: 30px;
    font-weight: 500;
}

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

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

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

.footer-widgets .container {
    margin-bottom: 30px;
}

.footer-widget-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.footer-widget-area .widget {
    flex: 1 1 23%; /* Approx 4 columns */
    margin-bottom: 20px;
    padding-right: 15px;
}

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

.widget-title {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #e44d26;
}

.widget p, .widget ul {
    line-height: 1.6;
    margin-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li a {
    color: #ccc;
    display: block;
    padding: 5px 0;
}

.widget ul li a:hover {
    color: #e44d26;
    text-decoration: underline;
}

.contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: #e44d26;
    flex-shrink: 0;
    padding-top: 3px; /* Align icon with text */
}

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

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

.newsletter-form button {
    padding: 10px 15px;
    background-color: #e44d26;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

.payment-title {
    color: #fff;
    font-size: 1em;
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

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

.copyright {
    margin: 0;
}

.social-icons-bottom a {
    color: #ccc;
    font-size: 1.2em;
    margin-left: 15px;
}

.social-icons-bottom a:hover {
    color: #e44d26;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    .header-actions .btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-main .container {
        justify-content: space-between;
    }
    .footer-widget-area .widget {
        flex: 1 1 48%; /* 2 columns */
        padding-right: 10px;
        margin-bottom: 30px;
    }
    .footer-widget-area .widget:nth-child(2n) {
        padding-right: 0;
    }
    .footer-widget-area .widget:nth-child(odd) {
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    .header-main {
        padding: 10px 0;
    }
    .logo img {
        height: 40px;
    }
    .footer-widget-area .widget {
        flex: 1 1 100%; /* 1 column */
        padding-right: 0;
        margin-bottom: 25px;
    }
    .footer-bottom .container {
        flex-direction: column;
    }
    .copyright {
        margin-bottom: 15px;
    }
    .social-icons-bottom a {
        margin: 0 10px;
    }
    .marquee-content {
        animation: marquee-scroll 15s linear infinite; /* Faster for smaller screens */
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
