/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header 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;
}

.logo-area {
    display: flex;
    align-items: center;
}

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

.site-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

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

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

.main-navigation .nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: #007bff;
}

.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: 1000;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 10px;
}

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

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

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

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

.search-button, .btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.search-button {
    background-color: #e9ecef;
    color: #333;
}

.search-button:hover {
    background-color: #dee2e6;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

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

.promo-banner {
    background-color: #ffeeba;
    color: #856404;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
    border-bottom: 1px solid #ffc107;
}

.promo-banner strong {
    color: #c69500;
}

.banner-link {
    color: #c69500;
    text-decoration: underline;
    margin-left: 5px;
}

/* Footer Styles */
.main-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

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

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

.footer-heading {
    color: #007bff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.footer-section p, .footer-section address {
    margin-bottom: 10px;
    color: #adb5bd;
}

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

.footer-list li a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

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

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

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

.social-icons img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: translateY(-3px);
}

.newsletter-signup {
    margin-top: 20px;
}

.newsletter-signup p {
    margin-bottom: 10px;
}

.newsletter-signup input[type="email"] {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: calc(100% - 90px); /* Adjust based on button width */
    max-width: 200px;
    margin-right: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.copyright {
    border-top: 1px solid #495057;
    padding-top: 20px;
    text-align: center;
    color: #adb5bd;
}

.copyright a {
    color: #adb5bd;
    text-decoration: none;
}

.copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide nav on smaller screens, will be toggled by JS */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-area {
        margin-bottom: 15px;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        min-width: unset;
        width: 90%;
        text-align: center;
        padding-right: 0;
    }
    .footer-heading {
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    .footer-list li a {
        display: inline-block;
        margin: 0 10px;
    }
    .social-icons {
        justify-content: center;
        display: flex;
    }
    .newsletter-signup input[type="email"] {
        width: 70%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    .newsletter-signup form {
        display: flex;
        flex-direction: column;
        align-items: 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;
  }
}
