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

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

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top-bar {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

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

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

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

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

.social-links a:hover {
    color: #e9ecef;
}

.header-main-nav {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

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

.navbar-brand .site-name {
    font-size: 1.8em;
    font-weight: bold;
}

.main-navigation {
    flex-grow: 1;
    text-align: right;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block; /* For desktop, align right */
}

.nav-menu > li {
    display: inline-block;
    position: relative;
    margin-left: 25px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: #007bff;
}

.sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    z-index: 100;
    left: 0;
    top: 100%;
}

.nav-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: auto; /* Push to right on mobile */
    z-index: 101;
}

.menu-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-toggle .icon-bar:last-child {
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-button {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #555;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #007bff;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-left: 10px;
}

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

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

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

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

.search-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.search-form input[type="search"] {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1.1em;
    outline: none;
}

.search-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3;
}

.close-search {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-search:hover {
    color: #333;
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #bbb;
    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-bottom: 30px;
    padding-right: 20px;
}

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

.footer-widget h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #007bff;
    margin-top: 10px;
}

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

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

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

.footer-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #007bff;
}

.company-address p {
    margin-bottom: 8px;
}

.company-address i {
    margin-right: 8px;
    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: #888;
}

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

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

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

.footer-social-links a {
    color: #bbb;
    font-size: 1.2em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

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

.footer-bottom a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        text-align: left; /* Adjust for smaller screens */
    }
    .nav-menu {
        display: none; /* Hide on smaller screens, toggle with JS */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 99;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        display: block;
        margin: 0;
    }

    .nav-menu > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-menu > li:last-child > a {
        border-bottom: none;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        padding: 0 0 0 20px;
        min-width: unset;
    }

    .menu-toggle {
        display: block; /* Show on smaller screens */
    }

    .header-actions {
        margin-left: auto; /* Push actions to the right */
    }
    .header-main-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info, .social-links {
        margin-bottom: 10px;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        min-width: unset;
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    .footer-widget h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .newsletter-form {
        justify-content: center;
    }
    .footer-social-links {
        text-align: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
