/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

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

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

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

.btn-secondary {
    background-color: #6c757d;
}

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

.btn-subscribe {
    background-color: #28a745;
    padding: 8px 15px;
    margin-left: 10px;
}

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

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

.header-top-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

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

.header-top-bar .contact-info span {
    margin-right: 20px;
    color: #555;
}

.header-top-bar .social-links a {
    margin-left: 15px;
    color: #555;
    font-size: 1.1em;
}

.header-top-bar .social-links a:hover {
    color: #007bff;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.main-navigation .logo {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
}

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

.main-navigation .nav-menu {
    display: flex;
}

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

.main-navigation .nav-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
}

.main-navigation .nav-menu a:hover {
    color: #007bff;
}

.main-navigation .dropdown-toggle {
    display: flex;
    align-items: center;
}

.main-navigation .dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8em;
}

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

.main-navigation .dropdown:hover .dropdown-menu {
    display: block;
}

.main-navigation .dropdown-menu li {
    margin: 0;
}

.main-navigation .dropdown-menu a {
    padding: 10px 20px;
    white-space: nowrap;
}

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

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-section h2 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.main-footer .widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.main-footer .widget ul {
    padding-left: 0;
}

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

.main-footer .widget ul li a {
    color: #bbb;
}

.main-footer .widget ul li a:hover {
    color: #007bff;
}

.main-footer .widget p {
    margin-bottom: 15px;
}

.main-footer .social-icons a {
    color: #bbb;
    font-size: 1.3em;
    margin-right: 15px;
}

.main-footer .social-icons a:hover {
    color: #007bff;
}

.main-footer .contact-widget p i {
    margin-right: 10px;
    color: #007bff;
}

.main-footer .newsletter-widget form {
    display: flex;
}

.main-footer .newsletter-widget input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.main-footer .newsletter-widget button {
    border-radius: 0 5px 5px 0;
}

.main-footer .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-footer .footer-bottom p {
    margin: 0;
}

.main-footer .footer-bottom .legal-links {
    display: flex;
}

.main-footer .footer-bottom .legal-links li {
    margin-left: 20px;
}

.main-footer .footer-bottom .legal-links li a {
    color: #bbb;
}

.main-footer .footer-bottom .legal-links li a:hover {
    color: #007bff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

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

    .main-navigation .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .main-navigation .nav-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation .nav-menu a {
        padding: 15px 20px;
    }

    .main-navigation .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        padding-left: 20px;
        border-radius: 0;
    }

    .main-navigation .menu-toggle {
        display: block;
    }

    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .header-top-bar .contact-info span {
        margin: 0 10px 10px 10px;
    }

    .header-top-bar .social-links {
        margin-top: 10px;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .main-footer .footer-bottom {
        flex-direction: column;
    }

    .main-footer .footer-bottom .legal-links {
        margin-top: 15px;
    }

    .main-footer .footer-bottom .legal-links li {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .main-footer .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-footer .newsletter-widget form {
        flex-direction: column;
    }

    .main-footer .newsletter-widget input[type="email"] {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .main-footer .newsletter-widget button {
        border-radius: 5px;
        margin-left: 0;
        width: 100%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
