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

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

/* Main Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-top-bar {
    background-color: #0056b3; /* Darker blue */
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9em;
}

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

.top-bar-content .contact-info span {
    margin-right: 20px;
}

.top-bar-content .social-links a {
    color: #ffffff;
    margin-left: 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.top-bar-content .social-links a:hover {
    color: #cccccc;
}

.header-main-nav .navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
}

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

.navbar-nav .nav-item .nav-link {
    color: #333;
    font-weight: 500;
    margin-right: 15px;
    padding: 10px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: #007bff;
    background-color: #f0f8ff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
}

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

.header-actions .btn {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 20px;
}

/* Main Footer Styles */
.main-footer {
    background-color: #2c3e50; /* Dark blue-grey */
    color: #ecf0f1;
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-widgets {
    margin-bottom: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 25px;
    position: relative;
}

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

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

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

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

.footer-widget ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

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

.newsletter-form .form-control {
    background-color: #34495e;
    border: 1px solid #4a647d;
    color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 5px;
    width: 100%;
}

.newsletter-form .form-control::placeholder {
    color: #a0a8ad;
}

.newsletter-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

.social-media-footer a {
    color: #ecf0f1;
    margin-right: 15px;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #4a647d;
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.footer-nav-bottom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav-bottom li {
    margin-left: 20px;
}

.footer-nav-bottom li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-bottom li a:hover {
    color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-content .contact-info span {
        margin-right: 0;
        display: block;
        margin-bottom: 5px;
    }
    .top-bar-content .social-links {
        margin-top: 10px;
    }
    .navbar-collapse {
        text-align: center;
    }
    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }
    .header-actions {
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-nav-bottom {
        margin-top: 15px;
        justify-content: center;
    }
    .footer-nav-bottom li {
        margin: 0 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
