/* Basic Reset & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Body Styles */
body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5em;
    color: #222;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
p {
    margin-bottom: 1em;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}
.btn-outline {
    color: #007bff;
    background-color: transparent;
    border-color: #007bff;
}
.btn-outline:hover {
    color: #fff;
    background-color: #007bff;
}
.btn-lg {
    padding: 12px 25px;
    font-size: 1.15em;
    border-radius: 6px;
}

/* Header Specific Styles */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.brand-logo {
    display: flex;
    align-items: center;
}
.brand-logo .logo-img {
    height: 40px;
    margin-right: 10px;
}
.brand-logo .logo-text {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}
.main-navigation .nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-navigation .nav-link {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}
.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}
.main-navigation .nav-link:hover::after {
    width: 100%;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}
.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 180px;
}
.search-box .search-button {
    background-color: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
.announcement-bar {
    background-color: #e2f0ff;
    color: #0056b3;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}
.announcement-bar a {
    color: #0056b3;
    font-weight: 600;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero-content h1 {
    color: #fff;
    font-size: 3.5em;
    margin-bottom: 20px;
}
.hero-content .lead-text {
    font-size: 1.25em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}
.hero-buttons .btn {
    margin: 0 10px;
}
.hero-buttons .btn-outline {
    border-color: #fff;
    color: #fff;
}
.hero-buttons .btn-outline:hover {
    background-color: #fff;
    color: #007bff;
}

/* Footer Specific Styles */
.main-footer {
    background-color: #222;
    color: #f0f0f0;
    padding: 60px 0 20px;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.footer-column p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: #ccc;
}
.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.social-links a {
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #007bff;
}
.newsletter-form {
    display: flex;
    margin-top: 20px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.newsletter-form .btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 15px;
}
.newsletter-form .btn-subscribe:hover {
    background-color: #0056b3;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-bottom p {
    margin: 0;
    color: #ccc;
}
.legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.legal-links a {
    color: #ccc;
}
.legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation {
        width: 100%;
        margin-top: 15px;
    }
    .main-navigation .nav-list {
        flex-direction: column;
        display: none; /* Hidden by default for mobile, JS will toggle */
        width: 100%;
    }
    .main-navigation .nav-list.active {
        display: flex;
    }
    .main-navigation .nav-item {
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .main-navigation .nav-link {
        padding: 10px 0;
        display: block;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
        align-self: flex-end;
        position: absolute;
        right: 15px;
        top: 25px;
    }
    .menu-toggle .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content .lead-text {
        font-size: 1.1em;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    .legal-links {
        flex-direction: column;
        gap: 10px;
    }
}
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .main-navigation .nav-list {
        display: flex !important; /* Ensure it's visible on larger screens */
    }
}
/* Dropdown styles */
.nav-item.has-dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 180px;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    left: 0;
    top: 100%; /* Position below the parent nav-link */
    margin-top: 5px; /* Small gap */
}
.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    text-decoration: none;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
