/* Basic Reset and Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

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

.header-top-bar {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 8px 0;
    font-size: 0.9em;
}

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

.header-top-bar .top-bar-left span {
    margin-right: 20px;
}

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

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

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

.navbar-brand .brand-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.main-navigation .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: #007bff !important;
    background-color: #e9ecef;
    border-radius: 5px;
}

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

.main-navigation .dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

.main-navigation .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form .form-control {
    border-radius: 20px;
    border-color: #ced4da;
    padding-left: 15px;
}

.search-form .btn {
    border-radius: 20px;
    margin-left: -40px; /* Overlap with input for magnifying glass icon */
    padding: 5px 15px;
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.header-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/banner-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 30px;
}

.header-banner h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.header-banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.header-banner .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-banner .btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Footer Styles */
.main-footer {
    background-color: #212529 !important; /* Darker background for footer */
    color: #adb5bd !important;
    padding-top: 50px;
    padding-bottom: 30px;
    font-size: 0.9em;
    border-top: 1px solid #343a40;
}

.main-footer h5 {
    color: #007bff !important; /* Primary color for headings */
    font-weight: bold;
    margin-bottom: 25px;
}

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

.main-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #ffffff;
}

.main-footer .social-icons a {
    font-size: 1.5em;
    margin-right: 15px;
    color: #adb5bd;
    transition: color 0.3s ease;
}

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

.main-footer .fa-lg {
    vertical-align: middle;
}

.main-footer .btn-floating {
    margin: 0 5px;
    color: #adb5bd;
}

.main-footer .btn-floating:hover {
    color: #ffffff;
}

.main-footer hr {
    border-color: #495057;
    margin-top: 30px;
    margin-bottom: 30px;
}

.main-footer .list-inline-item {
    margin-right: 15px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .main-navigation .navbar-nav {
        text-align: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .main-navigation .search-form {
        justify-content: center;
        margin-top: 15px;
    }
    .header-top-bar .container {
        flex-direction: column;
    }
    .header-top-bar .top-bar-left,
    .header-top-bar .top-bar-right {
        margin-bottom: 10px;
    }
    .header-banner {
        padding: 60px 0;
    }
    .header-banner h1 {
        font-size: 2.5em;
    }
    .header-banner p {
        font-size: 1.1em;
    }
    .main-footer .text-md-left,
    .main-footer .text-md-right {
        text-align: center !important;
    }
    .main-footer .social-icons {
        margin-top: 20px;
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-banner {
        padding: 40px 0;
    }
    .header-banner h1 {
        font-size: 2em;
    }
    .header-banner p {
        font-size: 1em;
    }
}

/* End of Shared CSS */
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
