/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #212529;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
p {
    margin-bottom: 1em;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}
.button:hover {
    background-color: #0056b3;
    text-decoration: none;
    transform: translateY(-1px);
}
.button:active {
    transform: translateY(0);
}

/* Header Specific Styles */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}
.main-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 0; opacity: 1; }
}
.header-top-bar {
    background-color: #f4f7f6;
    padding: 10px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.top-link {
    color: #6c757d;
    transition: color 0.3s ease;
}
.top-link i {
    margin-right: 5px;
}
.top-link:hover {
    color: #007bff;
    text-decoration: none;
}
.language-selector select {
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 0.85em;
    color: #495057;
    padding: 5px 8px;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
}
.header-main-nav {
    padding: 18px 0;
}
.header-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.brand-logo .logo-img {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
    max-width: 150px;
}
.site-name {
    font-size: 1.9em;
    font-weight: 700;
    color: #212529;
    letter-spacing: -0.5px;
}
.main-navigation .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.nav-item {
    position: relative;
}
.nav-link {
    color: #343a40;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    position: relative;
}
.nav-link:hover {
    color: #007bff;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.has-dropdown .nav-link i {
    margin-left: 5px;
    font-size: 0.8em;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 100;
    padding: 10px 0;
    border-radius: 8px;
    top: calc(100% + 10px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown-item a {
    color: #495057;
    padding: 12px 20px;
    display: block;
    white-space: nowrap;
}
.dropdown-item a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}
.header-actions button {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: #555;
    margin-left: 20px;
    transition: color 0.3s ease;
}
.header-actions button:hover {
    color: #007bff;
}
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.search-overlay.active {
    display: flex;
    opacity: 1;
}
.search-form {
    position: relative;
    width: 90%;
    max-width: 700px;
}
.search-input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    outline: none;
    background-color: #fff;
    color: #333;
}
.search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.8em;
    cursor: pointer;
}
.close-search {
    position: absolute;
    top: -40px;
    right: 0px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.close-search:hover {
    transform: rotate(90deg);
}

/* Footer Specific Styles */
.main-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 60px 0 30px;
    font-size: 0.9em;
}
.footer-widgets .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-widget .widget-title {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
}
.footer-widget .widget-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin-top: 15px;
    border-radius: 2px;
}
.footer-widget p, .footer-widget address {
    margin-bottom: 12px;
}
.footer-widget a {
    color: #007bff;
    transition: color 0.3s ease;
}
.footer-widget a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav-list li {
    margin-bottom: 10px;
}
.footer-nav-list a {
    color: #adb5bd;
    display: block;
    position: relative;
    padding-left: 15px;
}
.footer-nav-list a::before {
    content: '\203A'; /* Unicode right arrow */
    position: absolute;
    left: 0;
    color: #007bff;
    transition: left 0.3s ease;
}
.footer-nav-list a:hover::before {
    left: 5px;
}
.contact-widget address p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.contact-widget address i {
    color: #007bff;
    font-size: 1.1em;
    margin-top: 3px;
}
.social-links {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    gap: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #343a40;
    color: #fff;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.social-links a:hover {
    background-color: #007bff;
    text-decoration: none;
    transform: translateY(-2px);
}
.newsletter-signup .newsletter-title {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.newsletter-form {
    display: flex;
    margin-top: 15px;
    border-radius: 5px;
    overflow: hidden;
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    background-color: #343a40;
    color: #fff;
    font-size: 1em;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder {
    color: #adb5bd;
}
.newsletter-form button {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
}
.newsletter-form button:hover {
    background-color: #0056b3;
}
.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 30px;
    text-align: center;
    margin-top: 40px;
}
.footer-bottom .copyright {
    margin: 0;
    color: #888;
    line-height: 1.8;
}
.footer-bottom .copyright a {
    color: #007bff;
}
.footer-bottom .copyright a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation .nav-list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar-left, .top-bar-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    .header-main-nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .brand-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .main-navigation {
        display: none; /* Hidden by default, toggled by JS */
        width: 100%;
        order: 3; /* Push to new line */
        margin-top: 20px;
        background-color: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        border-radius: 8px;
    }
    .main-navigation.active {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-link {
        padding: 12px 20px;
    }
    .nav-link::after {
        display: none;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 20px;
        background-color: #fcfcfc;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        border-top: 1px solid #f0f0f0;
    }
    .header-actions {
        order: 2;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
    .mobile-menu-toggle {
        display: inline-block; /* Show hamburger icon */
        margin-left: 0;
        margin-right: 15px;
    }
    .search-toggle {
        margin-left: 0;
    }
    .footer-widgets .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-widget .widget-title::after {
        margin: 15px auto 0;
    }
    .social-links {
        justify-content: center;
    }
    .newsletter-form {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    .search-input {
        font-size: 1.1em;
    }
    .close-search {
        top: -30px;
        right: 10px;
        font-size: 2em;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none; /* Hide hamburger icon on larger screens */
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
