/* Basic Reset & Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    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,.05);
}

.header-top-bar {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

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

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

.header-top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}

.navbar-brand .logo {
    height: 40px; /* Adjust as needed */
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

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

.dropdown-menu {
    border-top: 3px solid #007bff;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.search-form .form-control {
    border-radius: 20px;
}

.search-form .btn-outline-success {
    border-radius: 20px;
    margin-left: -40px; /* Overlap with input for search icon effect */
    border-color: #28a745;
    color: #28a745;
}

.search-form .btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

.user-menu .btn {
    margin-left: 5px;
}

/* Footer Styles */
.main-footer {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
    font-size: 0.9em;
}

.main-footer h5 {
    color: #007bff;
    margin-bottom: 20px;
}

.main-footer p {
    color: #ced4da;
}

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

.main-footer ul li a {
    color: #ced4da;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s ease;
}

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

.main-footer .social-icons a {
    color: #ced4da;
    font-size: 1.2em;
    margin-right: 10px;
    transition: color 0.3s ease;
}

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

.newsletter-form .form-control {
    border-radius: 5px 0 0 5px;
}

.newsletter-form .btn-primary {
    border-radius: 0 5px 5px 0;
    background-color: #007bff;
    border-color: #007bff;
}

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

.main-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.main-footer a {
    color: #007bff;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments (simple example) */
@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    .header-top-bar .social-links {
        margin-top: 10px;
    }
    .navbar-nav {
        text-align: center;
    }
    .search-form {
        margin-top: 15px;
        justify-content: center;
    }
    .user-menu {
        margin-top: 15px;
        text-align: center;
    }
    .main-footer .col-md-4, .main-footer .col-md-2, .main-footer .col-md-3 {
        text-align: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
