/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header Styling */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo img {
    height: 40px;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-nav ul li {
    position: relative;
    margin-left: 25px;
}
.main-nav ul li a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
}
.main-nav ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 160px;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    border-radius: 4px;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    padding: 12px 16px;
    color: #333;
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    margin-right: 15px;
}
.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 200px;
}
.search-box button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}
.btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}
.btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}
.btn-large {
    padding: 12px 25px;
    font-size: 1.1em;
}

.hero-section {
    background-color: #e9ecef;
    padding: 60px 0;
    text-align: center;
}
.hero-section h1 {
    color: #343a40;
    font-size: 3em;
    margin-bottom: 20px;
}
.hero-section p {
    color: #6c757d;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Footer Styling */
.main-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 40px 0 20px 0;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}
.footer-col p, .footer-col address {
    margin-bottom: 10px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #adb5bd;
}
.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-col a {
    color: #adb5bd;
}
.footer-col a:hover {
    color: #fff;
}
.newsletter form {
    display: flex;
    margin-top: 15px;
}
.newsletter input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #495057;
    border-radius: 4px 0 0 4px;
    background-color: #495057;
    color: #fff;
}
.newsletter input[type="email"]::placeholder {
    color: #ced4da;
}
.newsletter button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.newsletter button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.social-links {
    margin-top: 20px;
}
.social-links a {
    display: inline-block;
    color: #adb5bd;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    margin-top: 20px;
}
.footer-bottom p {
    margin: 0;
    color: #adb5bd;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-nav ul {
        display: none; /* Hide main nav on smaller screens by default */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .main-nav ul.active {
        display: flex; /* Show when active */
    }
    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .main-nav ul li a {
        padding: 15px 20px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
    }
    .dropdown:hover .dropdown-menu {
        display: none; /* Control via JS for mobile */
    }
    .menu-toggle {
        display: block;
    }
    .header-actions {
        order: 3; /* Move actions below logo/nav on smaller screens */
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .search-box {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
}
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 15px;
    }
    .main-nav {
        width: 100%;
    }
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }
    .search-box {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .newsletter form {
        justify-content: center;
    }
    .social-links {
        text-align: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
