/* General Body Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, 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;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-top, .header-bottom {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul, .sub-nav ul, .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li, .sub-nav li, .mobile-nav li {
    margin-left: 25px;
}

.main-nav a, .sub-nav a, .mobile-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover, .sub-nav a:hover, .mobile-nav a:hover {
    color: #007bff;
}

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

.header-actions button, .header-actions .btn {
    margin-left: 15px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.search-toggle {
    background: none;
    color: #555;
}

.language-selector select {
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.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.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.search-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-container .btn-search {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    padding-top: 60px;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    text-align: center;
}

.mobile-nav li {
    margin: 15px 0;
}

.mobile-nav a {
    color: #fff;
    font-size: 20px;
    padding: 10px 0;
    display: block;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 14px;
}

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

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

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

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

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

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

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

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

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

.social-links a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 20px;
}

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

.newsletter input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px 0 0 4px;
    background-color: #333;
    color: #fff;
}

.newsletter .btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
}

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

.footer-bottom p {
    margin: 0;
}

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

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

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

.footer-language-selector select {
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

/* Icons (placeholder for actual icon fonts/SVGs) */
.icon-search::before { content: "🔍"; }
.icon-weibo::before { content: "🌐"; }
.icon-wechat::before { content: "💬"; }
.icon-linkedin::before { content: "🔗"; }
.icon-twitter::before { content: "🐦"; }
.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-email::before { content: "✉️"; }
.icon-time::before { content: "⏰"; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-nav, .sub-nav, .header-actions .btn, .header-actions .search-toggle, .header-actions .language-selector {
        display: none;
    }
    .header-top .container {
        justify-content: center;
    }
    .mobile-menu-toggle {
        display: block;
        margin-left: auto; /* Push to right */
    }
    .mobile-menu-toggle button {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
    }
    .mobile-menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #333;
        transition: all 0.3s ease;
    }
    .site-header .logo {
        margin-right: auto; /* Push logo to left */
    }
    .footer-main .container {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        text-align: center;
        padding-right: 0;
        min-width: unset;
        width: 100%;
    }
    .footer-bottom .container {
        flex-direction: column;
    }
    .legal-links ul {
        flex-direction: column;
        margin-top: 15px;
    }
    .legal-links li {
        margin: 5px 0;
    }
    .footer-language-selector {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .header-top, .header-bottom {
        padding: 10px 0;
    }
    .logo img {
        height: 35px;
    }
    .search-container {
        width: 90%;
    }
    .search-container input {
        font-size: 14px;
    }
    .search-container .btn-search {
        padding: 8px 15px;
    }
    .footer-main {
        padding-bottom: 20px;
    }
    .footer-bottom {
        padding-top: 15px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
