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

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

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top-bar {
    background-color: #0056b3; /* Darker blue for top bar */
    color: #e0e0e0;
    padding: 10px 0;
    font-size: 0.85em;
}

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

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

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

.language-selector select {
    background-color: #0056b3;
    color: #e0e0e0;
    border: 1px solid #004085;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

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

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

.branding {
    display: flex;
    align-items: center;
}

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

.site-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 15px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    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 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    z-index: 100;
    border-radius: 4px;
    left: 0;
    top: 100%; /* Position below the parent */
}

.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;
    white-space: nowrap;
    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 by default, shown on smaller screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

.search-form {
    position: relative;
    margin-right: 15px;
}

.search-form input[type="search"] {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    width: 180px;
    transition: width 0.3s ease;
}

.search-form input[type="search"]:focus {
    width: 220px;
    border-color: #007bff;
    outline: none;
}

.search-button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
}

.search-button svg {
    vertical-align: middle;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    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;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero-cta {
    background-color: #28a745;
    color: #fff;
    border: 1px solid #28a745;
    font-size: 1.1em;
    padding: 12px 25px;
}

.btn-hero-cta:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

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

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

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

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

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

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

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

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

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

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

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #bbb;
}

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

.social-links svg, .social-links img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.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: 4px 0 0 4px;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
}

.btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

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

.copyright {
    margin-bottom: 10px;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-legal-links li {
    margin-left: 20px;
}

.footer-legal-links li:first-child {
    margin-left: 0;
}

.footer-legal-links a {
    color: #bbb;
    text-decoration: none;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto; /* Enable horizontal scrolling for long menus */
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .welcome-message {
        margin-bottom: 10px;
    }
    .top-bar-links {
        margin-top: 10px;
    }
    .top-bar-links a {
        margin: 0 10px;
    }

    .main-header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .branding {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        width: 100%;
        text-align: left;
    }

    .nav-menu {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        position: absolute;
        left: 0;
        top: 100%; /* Position below the header */
        z-index: 99;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu > li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

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

    .nav-menu > li > a {
        padding: 12px 20px;
    }

    .sub-menu {
        position: static; /* Make sub-menu static on mobile */
        box-shadow: none;
        border-top: 1px solid #f5f5f5;
        padding-left: 20px;
        background-color: #f8f8f8;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
    }

    .search-form {
        flex-grow: 1;
        margin-right: 10px;
    }

    .search-form input[type="search"] {
        width: 100%;
    }

    .hero-section {
        padding: 60px 0;
        min-height: 300px;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

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

    .footer-widget {
        min-width: unset;
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .widget-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .newsletter-form {
        justify-content: center;
    }

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

    .footer-legal-links {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    .footer-legal-links 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;
  }
}
