/* Shared CSS for the entire website */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f8f8;
}

.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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-header .logo img {
    height: 50px;
    width: auto;
}

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

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.search-box {
    display: flex;
    margin-right: 20px;
}

.search-box input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

.header-bottom-bar {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.header-bottom-bar p {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.header-bottom-bar .btn {
    background-color: #fff;
    color: #007bff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-bottom-bar .btn:hover {
    background-color: #e2e6ea;
    color: #0056b3;
}

/* Footer styles */
.site-footer {
    background-color: #222;
    color: #f8f8f8;
    padding: 40px 0;
    margin-top: 50px;
}

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

.footer-widgets .widget {
    flex: 1;
    min-width: 200px;
    margin-right: 20px;
}

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

.footer-widgets h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-widgets p, .footer-widgets li {
    font-size: 0.9em;
    line-height: 1.8;
}

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

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

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

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-top-bar {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none; /* Hide main nav on mobile */
        width: 100%;
        order: 3; /* Push to new line */
    }

    .main-nav.active {
        display: block;
    }

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

    .main-nav li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Show toggle on mobile */
    }

    .header-actions {
        order: 2;
    }

    .search-box {
        margin-right: 0;
        width: 100%;
        margin-top: 10px;
    }

    .search-box input, .search-box button {
        width: 50%;
        border-radius: 4px;
    }
    .search-box input { border-radius: 4px 0 0 4px; }
    .search-box button { border-radius: 0 4px 4px 0; }

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

    .footer-widgets .widget {
        margin-right: 0;
        margin-bottom: 30px;
        min-width: unset;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
