/* Basic Reset & Typography */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-top-bar {
    background-color: #007bff; /* Primary blue */
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9em;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header-top-bar .contact-info span {
    margin-right: 20px;
}
.header-top-bar .contact-info i {
    margin-right: 5px;
}
.header-top-bar .social-links a {
    color: #ffffff;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.header-top-bar .social-links a:hover {
    color: #e2e6ea; /* Lighter white on hover */
}

.navbar {
    padding: 10px 0;
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.navbar-brand .logo-img {
    height: 40px;
    margin-right: 10px;
}
.navbar-brand .brand-text {
    color: #007bff;
}
.navbar-nav .nav-item .nav-link {
    color: #555;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: #007bff;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}
.header-actions .btn {
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9em;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}
.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* Marquee Styles */
.marquee-section {
    background-color: #fff3cd; /* Light yellow background */
    border: 1px solid #ffeeba;
    color: #856404; /* Dark yellow text */
    padding: 10px 0;
    margin-bottom: 20px;
    overflow: hidden; /* Hide overflowing content */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite; /* Adjust duration as needed */
}
.marquee-icon {
    font-size: 1.5em;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}
.marquee-icon-emoji {
    display: inline-block;
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.marquee-wrapper {
    display: inline-block; /* Make it behave like an inline element for scrolling */
}
.marquee-content {
    display: inline-block; /* Essential for continuous scroll */
    padding-right: 50px; /* Space between repeating content */
}
.marquee-text {
    color: #856404;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.marquee-text:hover {
    color: #665000;
}
.marquee-separator {
    margin: 0 10px;
    color: #856404;
}
@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Footer Styles */
.main-footer {
    background-color: #343a40 !important; /* Dark background */
    color: #e2e6ea !important; /* Light grey text */
    padding-top: 50px;
    padding-bottom: 30px;
}
.main-footer h5 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 25px;
}
.main-footer p {
    font-size: 0.95em;
    line-height: 1.8;
    color: #ced4da;
}
.main-footer .list-unstyled li {
    margin-bottom: 10px;
    font-size: 0.95em;
}
.main-footer .list-unstyled li i {
    margin-right: 8px;
    color: #007bff; /* Primary color for icons */
}
.main-footer .list-unstyled a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
}
.main-footer .list-unstyled a:hover {
    color: #ffffff;
}
.footer-social-links a {
    font-size: 1.2em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.footer-social-links a:hover {
    color: #007bff !important; /* Primary color on hover */
}
.newsletter-form .form-control {
    border-radius: 5px 0 0 5px;
    border: 1px solid #495057;
    background-color: #212529;
    color: #e2e6ea;
}
.newsletter-form .form-control::placeholder {
    color: #6c757d;
}
.newsletter-form .btn {
    border-radius: 0 5px 5px 0;
}
.main-footer hr {
    border-color: #495057 !important;
}
.main-footer .list-inline-item a {
    font-size: 0.9em;
    color: #ced4da;
    text-decoration: none;
}
.main-footer .list-inline-item a:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    .navbar-nav {
        padding: 10px 0;
    }
    .navbar-nav .nav-item {
        margin: 0 15px;
    }
    .header-actions {
        padding: 10px 15px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info,
    .header-top-bar .social-links {
        margin-bottom: 10px;
    }
}
@media (max-width: 767px) {
    .main-footer .text-md-start,
    .main-footer .text-md-end {
        text-align: center !important;
    }
    .main-footer .list-inline {
        padding-left: 0;
    }
    .main-footer .list-inline-item {
        display: block;
        margin-bottom: 5px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
