/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-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 Specific Styles */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header .logo img {
    vertical-align: middle;
    margin-right: 10px;
}

.main-header .logo .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

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

.main-nav .nav-item {
    position: relative;
    margin-left: 25px;
}

.main-nav .nav-link {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
}

.main-nav .nav-link: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.1);
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 5px;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

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

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    overflow: hidden;
    background-color: #e9ecef;
}

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

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    width: 180px;
    transition: width 0.3s ease;
}

.search-bar input:focus {
    width: 220px;
    border-color: #007bff;
}

.search-button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #555;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Footer Specific Styles */
.main-footer {
    background-color: #2c3e50; /* Dark blue/grey */
    color: #ecf0f1; /* Light grey text */
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 20px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

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

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

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

.footer-section ul li a {
    color: #bdc3c7; /* Lighter grey for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-links a {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db; /* A nice blue for hover */
}

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

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

.newsletter-signup .btn-subscribe {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-signup .btn-subscribe:hover {
    background-color: #2980b9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

/* Responsive adjustments (example for mobile) */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .main-nav {
        display: none; /* Hide navigation on small screens by default */
        width: 100%;
        order: 3; /* Push nav below logo and actions */
    }
    .main-nav.active {
        display: block;
    }
    .main-nav .nav-list {
        flex-direction: column;
        text-align: center;
    }
    .main-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .main-nav .nav-link {
        padding: 15px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
    }
    .dropdown-item {
        padding-left: 30px; /* Indent dropdown items */
    }
    .header-actions {
        order: 2;
        margin-left: auto; /* Push actions to the right */
    }
    .search-bar {
        display: none; /* Hide search bar on small screens */
    }
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        margin: 15px 0;
        text-align: center;
    }
    .social-links {
        text-align: center;
    }
    .newsletter-signup form {
        justify-content: center;
    }
    .newsletter-signup input[type="email"] {
        max-width: 250px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
