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

/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 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: #2c3e50;
    color: #ecf0f1;
    padding: 10px 0;
    font-size: 0.9em;
}

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

.top-bar-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-bar-links a:hover {
    color: #3498db;
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.8em;
    font-weight: bold;
}

.company-logo {
    height: 40px;
    margin-right: 10px;
}

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

.primary-navigation .nav-item {
    position: relative;
    margin-left: 25px;
}

.primary-navigation .nav-link {
    color: #555;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-navigation .nav-link:hover,
.primary-navigation .nav-link.active {
    color: #3498db;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1;
    border-top: 3px solid #3498db;
    padding: 10px 0;
}

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

.dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
    color: #3498db;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

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

.search-toggle-btn, .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 20px;
    color: #555;
    transition: color 0.3s ease;
}

.search-toggle-btn:hover, .mobile-menu-toggle:hover {
    color: #3498db;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default on larger screens */
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.1em;
    outline: none;
}

.search-submit-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-submit-btn:hover {
    background-color: #2980b9;
}

.close-search-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

/* Footer Styles */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    font-size: 0.95em;
    border-top: 5px solid #3498db;
}

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

.footer-widget .widget-title {
    color: #ecf0f1;
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget .widget-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin-top: 10px;
}

.footer-widget p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-widget .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget .link-list li {
    margin-bottom: 10px;
}

.footer-widget .footer-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget .footer-link:hover {
    color: #3498db;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

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

.contact-info p i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1em;
}

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

.newsletter-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.subscribe-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #2980b9;
}

.payment-methods {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.payment-icon {
    height: 25px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.footer-bottom-bar {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
}

.footer-bottom-bar .copyright {
    margin: 0;
}

.footer-bottom-bar .copyright a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
}

.footer-bottom-bar .copyright a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .primary-navigation {
        display: none; /* Hide desktop nav */
    }

    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }

    .nav-container {
        justify-content: space-between;
    }

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

    .header-top-bar .top-bar-links {
        margin-top: 10px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-widget .widget-title::after {
        margin: 10px auto 0;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        align-items: center;
    }
    .top-bar-links {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .top-bar-links a {
        margin: 0;
    }
    .logo-link {
        font-size: 1.5em;
    }
    .company-logo {
        height: 35px;
    }
}
/* Utility classes for icons (assuming Font Awesome) */
.fas, .fab {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.fa-search:before { content: "\f002"; }
.fa-facebook-f:before { content: "\f39e"; }
.fa-twitter:before { content: "\f099"; }
.fa-linkedin-in:before { content: "\f0e1"; }
.fa-instagram:before { content: "\f16d"; }
.fa-map-marker-alt:before { content: "\f3c5"; }
.fa-phone:before { content: "\f095"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-clock:before { content: "\f017"; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
