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

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #343a40;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

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

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Header Specific Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.header-topbar {
    background-color: #f2f2f2;
    padding: 8px 0;
    font-size: 0.9em;
    color: #555;
}

.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: #555;
    margin-left: 15px;
}

.header-main-nav .navbar {
    padding: 1rem 0;
}

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

.navbar-nav .nav-item .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #007bff;
}

.navbar-nav .nav-item.active .nav-link {
    color: #007bff;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

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

/* Footer Specific Styles */
.main-footer {
    background-color: #212529 !important;
    color: #f8f9fa !important;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.main-footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

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

.main-footer .list-unstyled li a {
    color: #ced4da;
    transition: color 0.3s ease;
}

.main-footer .list-unstyled li a:hover {
    color: #fff;
    text-decoration: none;
}

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

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

.main-footer .newsletter-form .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border: 1px solid #495057;
    background-color: #343a40;
    color: #fff;
}

.main-footer .newsletter-form .form-control::placeholder {
    color: #adb5bd;
}

.main-footer .newsletter-form .btn-primary {
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #007bff;
    border-color: #007bff;
}

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

.main-footer .text-muted {
    color: #adb5bd !important;
}

.main-footer .text-muted a {
    color: #adb5bd !important;
}

.main-footer .text-muted a:hover {
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .header-main-nav .navbar-nav {
        background-color: #fff;
        padding: 1rem;
        border-top: 1px solid #eee;
    }
    .header-main-nav .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    .header-main-nav .user-auth {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
