/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

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

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top-bar {
    background-color: #003366; /* Dark blue */
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

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

.top-bar-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-bar-links a:hover {
    color: #ffd700; /* Gold */
}

.separator {
    margin-left: 15px;
    color: rgba(255,255,255,0.5);
}

.main-navigation {
    padding: 15px 0;
}

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

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

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

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

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

.nav-link:hover, .nav-link.active {
    color: #007bff; /* Blue */
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

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

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

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

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 8px 15px;
    outline: none;
    flex-grow: 1;
    font-size: 0.9em;
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('/assets/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.hero-actions .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.footer-section p, .footer-section address {
    margin-bottom: 15px;
}

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

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

.footer-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: #fff;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #888;
}

.btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #bbb;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

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

.footer-bottom p {
    margin: 0;
    color: #999;
}

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

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .logo-link {
        flex-grow: 1;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        background-color: #f8f8f8;
    }

    .dropdown-item {
        padding-left: 40px;
    }

    .search-item {
        width: 100%;
        margin-top: 15px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none; /* Hide top bar on smaller screens */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3 {
        border-bottom: none;
        padding-bottom: 0;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .newsletter-form input, .btn-subscribe {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .btn-subscribe {
        width: 100%;
    }

    .social-media {
        justify-content: 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;
  }
}
