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

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

/* 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-bar {
    background-color: #0056b3; /* Primary Blue */
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

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

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

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

.header-top-bar .social-links a:hover {
    color: #e0e0e0;
}

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

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

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

.navbar-brand h1 {
    font-size: 1.8em;
    margin: 0;
    color: #0056b3;
}

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

.main-navigation ul li {
    position: relative;
    margin-left: 30px;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #007bff; /* Secondary Blue */
}

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

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

.main-navigation ul .sub-menu li {
    margin: 0;
}

.main-navigation ul .sub-menu li a {
    padding: 8px 20px;
    white-space: nowrap;
    color: #555;
}

.main-navigation ul .sub-menu li a:hover {
    background-color: #f8f8f8;
    color: #007bff;
}

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

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

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-right: 15px;
    color: #333;
}

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

.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 */
.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: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

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

.search-form-container form {
    display: flex;
}

.search-form-container input[type="search"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1.1em;
}

.search-form-container button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-form-container button[type="submit"]:hover {
    background-color: #0056b3;
}

.close-search {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #555;
    cursor: pointer;
}

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

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

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

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

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

.site-footer .contact-details p {
    display: flex;
    align-items: center;
}

.site-footer .contact-details i {
    margin-right: 10px;
    color: #007bff;
}

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

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

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

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

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

.site-footer .newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.site-footer .newsletter-form button {
    border-radius: 0 5px 5px 0;
    padding: 10px 18px;
}

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

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

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

.footer-nav-bottom li {
    margin-left: 20px;
}

.footer-nav-bottom li a {
    color: #ccc;
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation ul {
        display: none; /* Hide desktop menu */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .main-navigation ul li a {
        padding: 15px 20px;
    }

    .main-navigation ul .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 20px;
        border-top: 1px solid #eee;
    }

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

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

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

    .header-main-nav {
        flex-wrap: wrap;
    }

    .navbar-brand {
        flex-grow: 1;
    }

    .header-actions {
        margin-left: auto;
    }

    .site-footer .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-bottom p {
        margin-bottom: 10px;
    }

    .footer-nav-bottom li {
        margin: 0 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;
  }
}
