/* Basic Reset & Body Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #fff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-topbar {
    background-color: var(--dark-bg);
    color: #e9ecef;
    padding: 8px 0;
    font-size: 0.9em;
}

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

.header-topbar .contact-info span {
    margin-right: 20px;
}

.header-topbar .social-links a {
    color: #e9ecef;
    margin-left: 15px;
}

.header-topbar .social-links a:hover {
    color: var(--primary-color);
}

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

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

.navbar-brand .logo img {
    height: 50px;
    width: auto;
}

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

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

.main-navigation .nav-link {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: bold;
}

.main-navigation .nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation .dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    z-index: 100;
    border-radius: 5px;
}

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

.main-navigation .dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
}

.main-navigation .dropdown-menu li a:hover {
    background-color: var(--light-bg);
    text-decoration: none;
}

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

.header-actions .btn {
    margin-left: 10px;
}

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

.menu-toggle span {
    display: block;
    height: 2px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: #e9ecef;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.site-footer a {
    color: #e9ecef;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-widget .widget-title {
    color: var(--white);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-widget .contact-info p {
    margin-bottom: 10px;
}

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

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

.footer-widget .newsletter-form .btn-primary {
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
    white-space: nowrap;
}

.footer-widget .social-links {
    margin-top: 20px;
}

.footer-widget .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.footer-widget .social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .header-topbar {
        display: none; /* Hide topbar on small screens */
    }

    .header-main .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-brand {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .main-navigation {
        flex-basis: 100%;
        display: none; /* Hidden by default, toggled by JS */
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
    }

    .main-navigation .nav-item {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .main-navigation .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
        padding-left: 20px;
    }

    .header-actions {
        flex-basis: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .menu-toggle {
        display: block; /* Show toggle on mobile */
        order: -1; /* Move to the left */
        position: absolute;
        left: 15px;
        top: 30px; /* Adjust as needed */
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-widget {
        min-width: unset;
        width: 100%;
        padding: 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
