/* Basic Reset & Global 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 {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Flexbox Utilities */
.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.btn:hover {
    background: #0056b3;
    text-decoration: none;
}

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

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

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.header-top-bar .contact-info i {
    margin-right: 5px;
    color: #007bff;
}

.header-top-bar .top-nav a {
    margin-left: 15px;
    color: #555;
}

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

.logo img {
    vertical-align: middle;
    margin-right: 10px;
}

.logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

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

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

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

.main-navigation .nav-link:hover {
    color: #007bff;
    text-decoration: none;
}

.main-navigation .nav-item.has-dropdown .nav-link i {
    margin-left: 5px;
    font-size: 12px;
}

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

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

.main-navigation .dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    color: #555;
}

.main-navigation .dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.header-actions .search-toggle,
.header-actions .menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 20px;
    color: #333;
}

.header-actions .menu-toggle {
    display: none; /* Hidden on desktop */
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    display: none; /* Hidden by default */
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-content {
    background-color: #fff;
    width: 300px;
    padding: 30px;
    height: 100%;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-content .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-navigation ul {
    margin-top: 50px;
}

.mobile-navigation ul li {
    margin-bottom: 15px;
}

.mobile-navigation ul li a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.mobile-navigation ul li a:hover {
    color: #007bff;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #bbb;
    padding: 60px 0 30px;
    font-size: 15px;
}

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

.site-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 250px; /* Ensure widgets don't get too small */
    margin: 0 15px 30px 0;
}

.footer-widget:last-child {
    margin-right: 0;
}

.widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #007bff;
    margin-top: 10px;
}

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

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

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
}

.copyright {
    margin-bottom: 10px;
}

.legal-links a {
    margin-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens */
    }
    .header-actions .menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .main-header-area .container {
        justify-content: space-between;
    }
    .header-top-bar .top-nav {
        display: none; /* Hide top nav on smaller screens */
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        min-width: unset;
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .legal-links {
        margin-top: 15px;
    }
    .legal-links a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .header-top-bar .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-top-bar .contact-info span {
        margin-bottom: 5px;
    }
    .mobile-menu-content {
        width: 250px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
