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

.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: 100;
}

.header-top-bar {
    background-color: #0056b3; /* Primary color */
    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;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

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

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

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.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;
    font-weight: 500;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #0056b3;
}

.main-navigation ul li.menu-item-has-children > a::after {
    content: '\f0d7'; /* FontAwesome caret-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
}

.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;
    padding: 10px 0;
    border-top: 3px solid #0056b3;
}

.main-navigation ul li: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;
}

.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;
}

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

.header-actions .search-toggle:hover {
    color: #0056b3;
}

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

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

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

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

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

.search-form {
    display: flex;
    width: 80%;
    max-width: 600px;
    position: relative;
}

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

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

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

.search-form .close-search {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
}

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

.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 .widget-title {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

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

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

.footer-widget .contact-info p i {
    margin-right: 10px;
    color: #007bff;
}

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

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

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

.footer-widget ul li a:hover {
    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;
}

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

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

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

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

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

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

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: #eee;
    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 ul {
        display: none; /* Hide main menu */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

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

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

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

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

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

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

    .navbar-wrapper {
        flex-wrap: wrap;
    }

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

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

    .footer-widget {
        min-width: unset;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .header-top-bar .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info span {
        margin: 5px 0;
    }
    .header-top-bar .social-links {
        margin-top: 10px;
    }
    .search-form {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 40px;
    }
    .btn {
        padding: 8px 15px;
    }
    .search-form input, .search-form button {
        padding: 10px 15px;
        font-size: 1em;
    }
    .search-form .close-search {
        top: -30px;
        font-size: 1.5em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
