/* 网站通用CSS样式 */
body {
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    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;
}
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 40px;
    vertical-align: middle;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation ul li {
    position: relative;
    margin-left: 30px;
}
.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}
.main-navigation ul li a:hover {
    color: #007bff;
}
.submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.main-navigation ul li:hover > .submenu {
    display: block;
}
.submenu li a {
    padding: 8px 20px;
    color: #555;
    font-weight: normal;
    white-space: nowrap;
}
.submenu li a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}
.header-actions .btn {
    margin-left: 20px;
}
.search-toggle, .mobile-menu-toggle button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}
.search-overlay.active {
    display: flex;
}
.search-form-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 600px;
}
.search-form-wrapper form {
    display: flex;
}
.search-form-wrapper input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1.1em;
}
.search-form-wrapper button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 12px 15px;
    border-radius: 0 4px 4px 0;
    font-size: 1.1em;
}
.search-form-wrapper button[type="submit"]:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.close-search {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    font-size: 0.9em;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}
.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    margin-bottom: 20px;
}
.footer-widget:last-child {
    margin-right: 0;
}
.footer-widget h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    display: inline-block;
}
.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;
}
.social-links {
    display: flex;
    margin-top: 15px;
}
.social-links li {
    margin-right: 15px;
}
.social-links li a {
    font-size: 1.5em;
    color: #ccc;
}
.social-links li a:hover {
    color: #fff;
}
.footer-widget form {
    display: flex;
    margin-top: 15px;
}
.footer-widget form input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}
.footer-widget form .btn-secondary {
    border-radius: 0 4px 4px 0;
    padding: 10px 15px;
    white-space: nowrap;
}
.footer-bottom {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-bottom p {
    margin: 0;
}
.legal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.legal-links li {
    margin-left: 20px;
}
.legal-links li a {
    color: #ccc;
    text-decoration: none;
}
.legal-links li a:hover {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation ul li {
        margin-left: 20px;
    }
}
@media (max-width: 768px) {
    .header-top-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
    .main-navigation {
        display: none; /* Hide desktop nav on mobile */
        width: 100%;
        order: 3; /* Move to bottom */
    }
    .main-navigation.active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .main-navigation ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    .submenu {
        position: static;
        box-shadow: none;
        border-top: 1px solid #eee;
        padding: 0;
        min-width: unset;
        width: 100%;
    }
    .submenu li a {
        padding: 10px 0 10px 30px;
        text-align: left;
    }
    .header-actions {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
    }
    .header-actions .btn {
        margin-left: 10px;
        padding: 8px 15px;
    }
    .mobile-menu-toggle {
        display: block;
        order: 1;
        margin-right: 15px;
    }
    .mobile-menu-toggle button .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        position: relative;
    }
    .mobile-menu-toggle button .hamburger::before, .mobile-menu-toggle button .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #333;
        transition: all 0.3s ease;
    }
    .mobile-menu-toggle button .hamburger::before {
        top: -8px;
    }
    .mobile-menu-toggle button .hamburger::after {
        top: 8px;
    }
    /* Hamburger animation (example) */
    /* .mobile-menu-toggle button.active .hamburger { background: transparent; } */
    /* .mobile-menu-toggle button.active .hamburger::before { transform: rotate(45deg); top: 0; } */
    /* .mobile-menu-toggle button.active .hamburger::after { transform: rotate(-45deg); top: 0; } */

    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        min-width: unset;
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .legal-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .legal-links li {
        margin: 0 10px 10px 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
