/* Basic Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

.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);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: #f0f0f0;
    padding: 8px 0;
    font-size: 0.85em;
    color: #666;
    border-bottom: 1px solid #eee;
}

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

.utility-nav ul {
    display: flex;
}

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

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

.brand-and-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
}

.primary-nav .nav-menu {
    display: flex;
    gap: 30px;
}

.primary-nav .nav-item {
    position: relative;
}

.primary-nav .nav-item > a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
}

.primary-nav .nav-item > a:hover {
    color: #007bff;
}

.primary-nav .has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 10;
    padding: 10px 0;
    border-radius: 4px;
}

.primary-nav .has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: #555;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

.header-actions button:hover {
    color: #007bff;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

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

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

.search-form {
    display: flex;
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

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

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

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

.search-form .close-search {
    background: none;
    color: #333;
    font-size: 2em;
    padding: 0 20px;
}

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

.footer-widgets {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #007bff;
}

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

.footer-widget ul {
    padding: 0;
}

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

.footer-widget ul li a {
    color: #ccc;
}

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list .icon-map-pin,
.contact-list .icon-phone,
.contact-list .icon-mail {
    /* Placeholder for actual icon styles, e.g., font-awesome */
    width: 16px;
    height: 16px;
    display: inline-block;
    background-color: #007bff; /* Example background for visibility */
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 16px;
    font-size: 0.8em;
    flex-shrink: 0;
    margin-top: 3px;
}

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

.newsletter-form input {
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    outline: none;
    flex-grow: 1;
}

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

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

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #444;
    color: #fff;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.social-links .icon-weibo,
.social-links .icon-weixin,
.social-links .icon-linkedin,
.social-links .icon-twitter {
    /* Placeholder for actual icon styles */
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: transparent; /* Example for visibility */
    border-radius: 0;
    color: #fff;
    text-align: center;
    line-height: 1em;
    font-size: 1.2em;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #999;
    font-size: 0.8em;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .primary-nav {
        display: none; /* Hide main nav on smaller screens */
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }
    .brand-and-nav {
        justify-content: space-between;
    }
    .header-actions {
        order: 3; /* Move actions to end */
    }
    .primary-nav .nav-menu {
        flex-direction: column;
    }
    .footer-widgets .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .utility-nav ul {
        flex-wrap: wrap;
        margin-top: 10px;
    }
    .utility-nav li {
        margin-left: 0;
        margin-right: 15px;
        margin-bottom: 5px;
    }
    .footer-widgets .grid-4 {
        grid-template-columns: 1fr;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
