/* General Body Styling */
body {
    font-family: '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;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* Header Styling */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-top-bar {
    background-color: #f4f4f4;
    padding: 10px 0;
    font-size: 0.9em;
    color: #666;
}

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

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

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

.top-nav a {
    color: #666;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: #007bff;
}

.header-main-area {
    padding: 20px 0;
}

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

.site-logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.site-logo img {
    margin-right: 10px;
}

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

.primary-nav li {
    position: relative;
    margin-left: 30px;
}

.primary-nav a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.primary-nav a:hover {
    color: #007bff;
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid #007bff;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

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

.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    margin-right: 15px;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 180px;
}

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

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

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    text-decoration: none;
}

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

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.header-promo-banner {
    background-color: #ffc107;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
}

.header-promo-banner .promo-link {
    color: #007bff;
    margin-left: 10px;
    text-decoration: underline;
}

.header-promo-banner .promo-link:hover {
    color: #0056b3;
}

/* Footer Styling */
.main-footer {
    background-color: #222;
    color: #bbb;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

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

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

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

.footer-section h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

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

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

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

.footer-section a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007bff;
    text-decoration: none;
}

.contact-info p i {
    margin-right: 10px;
    color: #007bff;
}

.social-icons {
    margin-top: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

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

.newsletter-signup h4 {
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-signup form {
    display: flex;
}

.newsletter-signup input[type="email"] {
    border: none;
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    outline: none;
    flex-grow: 1;
}

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

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

.footer-bottom a {
    color: #999;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .primary-nav {
        display: none; /* Hide primary nav by default on smaller screens */
    }
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }
    .logo-and-nav {
        justify-content: space-between;
    }
    .header-actions {
        margin-left: auto;
    }
    .header-main-area .container {
        flex-wrap: wrap;
    }
    .search-box {
        order: 3; /* Move search below logo/nav */
        width: 100%;
        margin-top: 15px;
        margin-right: 0;
    }
    .search-box input {
        width: calc(100% - 60px); /* Adjust input width */
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        width: 100%;
        max-width: 400px;
        margin-right: 0;
        text-align: center;
    }
    .footer-section h3 {
        text-align: center;
    }
    .footer-section ul {
        text-align: center;
    }
    .footer-section ul li {
        display: inline-block;
        margin: 0 10px 8px;
    }
    .social-icons {
        justify-content: center;
        display: flex;
    }
    .newsletter-signup form {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .top-nav ul {
        margin-top: 10px;
    }
    .top-nav li {
        margin: 0 10px;
    }
    .site-logo {
        justify-content: center;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .btn-primary {
        margin-left: 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;
  }
}
