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

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

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

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

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

.navbar-brand .logo {
    display: block;
}

.navbar-brand img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

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

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

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

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

.main-navigation ul li:hover > ul {
    display: block;
}

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

.main-navigation ul ul li a {
    padding: 10px 20px;
    white-space: nowrap;
}

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

.header-actions .btn {
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.header-actions .btn-primary {
    background-color: #007bff;
    color: #fff;
}

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

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

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-form {
    display: flex;
    max-width: 600px;
    width: 90%;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    position: relative;
}

.search-form input {
    flex-grow: 1;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 3px;
    margin-right: 10px;
}

.search-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.search-form .close-search {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #ccc;
    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: 0 15px 30px 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.newsletter-note {
    font-size: 0.8em;
    margin-top: 10px;
    color: #aaa;
}

.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 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation ul {
        display: none;
        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);
        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 ul {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

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

    .footer-widget {
        margin-right: 0;
        width: 100%;
    }

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

    .footer-nav-bottom {
        margin-top: 15px;
        flex-direction: column;
    }

    .footer-nav-bottom li {
        margin: 5px 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
