/* 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;
}

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

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

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

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

.header-top-bar .social-links a {
    color: #555;
    margin-left: 15px;
    transition: color 0.3s ease;
}

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

.header-main-nav {
    padding: 10px 0;
}

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

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

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

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

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

.search-form .btn {
    border-radius: 20px;
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

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

.header-promo-banner {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

/* Footer Styles */
.main-footer {
    background-color: #343a40 !important; /* Dark background */
    color: #f8f9fa; /* Light text */
    padding-top: 50px;
    padding-bottom: 30px;
}

.main-footer h5 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
}

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

.main-footer p {
    font-size: 0.95em;
    line-height: 1.8;
    color: #adb5bd;
}

.main-footer .list-unstyled li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

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

.main-footer .contact-info li {
    margin-bottom: 10px;
    color: #adb5bd;
}

.main-footer .contact-info li i {
    color: #007bff;
    width: 20px; /* Align icons */
}

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

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

.main-footer .newsletter-form .form-control {
    border-radius: 0;
    border: none;
}

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

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

.main-footer .payment-methods img {
    height: 25px;
    margin-right: 5px;
    vertical-align: middle;
}

.main-footer .text-white-50 {
    color: rgba(255,255,255,.5) !important;
}

.main-footer .border-light-50 {
    border-color: rgba(255,255,255,.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .header-top-bar .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info,
    .header-top-bar .social-links {
        margin-bottom: 10px;
    }
    .navbar-collapse {
        text-align: center;
    }
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    .search-form {
        margin-top: 10px;
        justify-content: center;
    }
    .user-actions {
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }
    .main-footer .col-lg-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .header-main-nav .container {
        padding: 0 10px;
    }
    .navbar-brand .logo-img {
        height: 35px;
    }
    .navbar-brand .logo-text {
        font-size: 1.3em;
    }
    .main-footer {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    .main-footer h5 {
        font-size: 1.2em;
    }
    .main-footer p, .main-footer .list-unstyled li, .main-footer .contact-info li {
        font-size: 0.9em;
    }
    .main-footer .newsletter-form .input-group {
        flex-direction: column;
    }
    .main-footer .newsletter-form .input-group input,
    .main-footer .newsletter-form .input-group button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Basic utility classes (example from Bootstrap) */
.bg-primary { background-color: #007bff !important; }
.bg-dark { background-color: #343a40 !important; }
.text-white { color: #fff !important; }
.text-center { text-align: center !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.img-fluid { max-width: 100%; height: auto; }
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    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-outline-light {
    color: #f8f9fa;
    border-color: #f8f9fa;
}
.btn-outline-light:hover {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}
.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}
.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-lg-3, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
