/* General Body & Typography */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

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

/* Utility Classes */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.d-none { display: none !important; }
.d-lg-block { display: none; } /* Default hidden, shown on large screens */
@media (min-width: 992px) { /* Bootstrap's lg breakpoint */
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}
.d-md-block { display: none; } /* Default hidden, shown on medium screens */
@media (min-width: 768px) { /* Bootstrap's md breakpoint */
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
}
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.btn-block { width: 100%; display: block; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

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

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

.btn-icon {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    padding: 8px;
}

.btn-icon:hover {
    color: #007bff;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

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

/* Header Specific Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-announcement-bar {
    background-color: #ffc107;
    color: #333;
    padding: 8px 0;
    font-size: 0.9rem;
    text-align: center;
}
.header-announcement-bar .promo-link {
    color: #0056b3;
    font-weight: bold;
    text-decoration: underline;
}

.header-top-bar {
    background-color: #222;
    color: #eee;
    padding: 10px 0;
    font-size: 0.85rem;
}
.header-top-bar .contact-info .info-item {
    margin-right: 20px;
}
.header-top-bar .contact-info .info-item i {
    margin-right: 5px;
    color: #007bff;
}
.header-top-bar .social-links a {
    color: #eee;
    margin-left: 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.header-top-bar .social-links a:hover {
    color: #007bff;
}

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

.logo img {
    max-height: 50px;
    width: auto;
}

.primary-navigation .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.primary-navigation .nav-list > li {
    position: relative;
    margin-left: 30px;
}

.primary-navigation .nav-list > li > a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.primary-navigation .nav-list > li > a:hover {
    color: #007bff;
}

.primary-navigation .nav-list .has-dropdown > a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 5px;
}

.primary-navigation .nav-list .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Mobile Menu */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    display: none; /* Hidden by default */
    justify-content: flex-end; /* Push menu to the right */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-container.is-open {
    display: flex;
    opacity: 1;
}

.mobile-navigation {
    width: 300px; /* Width of the mobile menu */
    background-color: #fff;
    height: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-menu-container.is-open .mobile-navigation {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.close-mobile-menu {
    font-size: 1.5rem;
    color: #666;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 10px;
}

.mobile-nav-list li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.mobile-nav-list li a:hover {
    background-color: #f0f0f0;
}

.mobile-nav-list .has-mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    margin-left: 20px;
    border-left: 2px solid #eee;
    display: none; /* Hidden by default */
}

.mobile-dropdown-menu li a {
    padding: 8px 15px;
    font-size: 0.95rem;
    color: #555;
}

/* Footer Specific Styles */
.site-footer {
    background-color: #222;
    color: #eee;
    padding-top: 50px;
    font-size: 0.9rem;
}

.footer-widgets-area {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .footer-logo img {
    margin-bottom: 20px;
    max-height: 40px;
    width: auto;
}

.footer-widget .widget-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
}
.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

.footer-widget .footer-description {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-widget .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.footer-widget .social-links a:hover {
    background-color: #007bff;
    color: #fff;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 10px;
}
.footer-menu li a {
    color: #ccc;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.footer-menu li a::before {
    content: "\f054"; /* Font Awesome right arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.7rem;
    color: #007bff;
}
.footer-menu li a:hover {
    color: #007bff;
    text-decoration: none;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #ccc;
}
.contact-list li i {
    margin-right: 10px;
    color: #007bff;
    font-size: 1rem;
    flex-shrink: 0;
    padding-top: 3px; /* Align icon with text */
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder {
    color: #aaa;
}
.newsletter-form .btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form .btn-subscribe:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.footer-bottom-bar {
    padding: 25px 0;
    background-color: #1a1a1a;
    margin-top: 30px;
}

.copyright-text {
    margin: 0;
    color: #aaa;
}
.copyright-text i {
    color: #dc3545; /* Red heart */
    margin: 0 5px;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
.footer-legal-links li a {
    color: #aaa;
    transition: color 0.3s ease;
}
.footer-legal-links li a:hover {
    color: #007bff;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive adjustments for columns - mimicking a basic grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.col-lg-3, .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%; /* Default to full width on small screens */
}

@media (min-width: 768px) { /* Medium devices */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) { /* Large devices */
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-6 { /* Reset for larger screens if it was 50% */
        flex: 0 0 50%; /* Still 50% if specific */
        max-width: 50%;
    }
    /* If a div has both col-lg-3 and col-md-6, lg takes precedence */
    .col-lg-3.col-md-6 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Basic reset for lists */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
