/* General Body and Container Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  background-color: #f4f7f6;
}

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

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

a:hover {
  color: #0056b3;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

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

.social-links a {
  color: #fff;
  margin-left: 15px;
  font-size: 1.1em;
}

.social-links a:hover {
  color: #e9ecef;
}

.header-main-nav {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand .logo-img {
  max-height: 50px;
}

.main-navigation .nav-list {
  display: flex;
}

.main-navigation .nav-item {
  position: relative;
  margin-left: 30px;
}

.main-navigation .nav-link {
  display: block;
  padding: 10px 0;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
  color: #007bff;
}

.main-navigation .has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 10;
  border-top: 3px solid #007bff;
}

.main-navigation .has-dropdown:hover .dropdown-menu {
  display: block;
}

.main-navigation .dropdown-menu li a {
  padding: 10px 15px;
  display: block;
  color: #555;
  white-space: nowrap;
}

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

.header-actions {
  display: flex;
  align-items: center;
}

.header-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  margin-left: 20px;
  color: #555;
}

.header-actions button:hover {
  color: #007bff;
}

.header-actions .btn {
  padding: 8px 15px;
  border-radius: 5px;
  margin-left: 10px;
  font-size: 0.9em;
}

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

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

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.menu-toggle {
  display: none; /* Hidden on desktop */
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-form {
  position: relative;
  width: 80%;
  max-width: 600px;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 15px 60px 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
}

.search-form button[type="submit"] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 1.3em;
}

.search-form .close-search {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 1.5em;
}

/* Footer Styles */
.main-footer {
  background-color: #212529;
  color: #f8f9fa;
  padding: 60px 0 30px;
  font-size: 0.95em;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-widget {
  width: calc(25% - 30px);
  margin-right: 30px;
  margin-bottom: 30px;
}

.footer-widget:last-child {
  margin-right: 0;
}

.widget-title {
  color: #007bff;
  font-size: 1.3em;
  margin-bottom: 20px;
  position: relative;
}

.widget-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #007bff;
  margin-top: 10px;
}

.footer-widget p {
  color: #adb5bd;
  margin-bottom: 15px;
}

.footer-widget .contact-info p {
  margin-bottom: 10px;
}

.footer-widget .contact-info i {
  margin-right: 10px;
  color: #007bff;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  color: #adb5bd;
  transition: color 0.3s ease;
}

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

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #495057;
  background-color: #343a40;
  color: #fff;
  border-radius: 5px 0 0 5px;
}

.newsletter-form input::placeholder {
  color: #adb5bd;
}

.newsletter-form .btn-subscribe {
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
  padding: 10px 20px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  color: #adb5bd;
  margin-bottom: 10px;
}

.footer-legal-links {
  display: flex;
  margin-bottom: 10px;
}

.footer-legal-links li {
  margin-right: 20px;
}

.footer-legal-links li a {
  color: #adb5bd;
}

.footer-legal-links li a:hover {
  color: #007bff;
}

.payment-methods img {
  height: 25px;
  margin-left: 10px;
  opacity: 0.8;
}

/* Marquee Styles */
.marquee-section {
  background-color: #fefce8; /* Light yellow background */
  padding: 10px 0;
  border-bottom: 1px solid #fde047;
  overflow: hidden; /* Hide overflowing content */
}

.marquee-container {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite; /* Adjust speed as needed */
}

.marquee-icon {
  flex-shrink: 0; /* Prevent icon from shrinking */
  margin-right: 15px;
  font-size: 1.5em;
  color: #f59e0b; /* Orange color for emoji */
}

.marquee-wrapper {
  overflow: hidden;
  flex-grow: 1;
}

.marquee-content {
  display: inline-block; /* Allow content to be wider than wrapper */
  padding-right: 50px; /* Space between repeating messages */
}

.marquee-text {
  color: #333;
  font-weight: 600;
  font-size: 1em;
  margin-right: 30px;
}

.marquee-text:hover {
  text-decoration: underline;
}

.marquee-separator {
  color: #ccc;
  margin: 0 15px;
  font-size: 0.9em;
}

/* Keyframe animation for scrolling marquee */
@keyframes marquee-scroll {
  0% { transform: translateX(100%); } /* Start off-screen right */
  100% { transform: translateX(-100%); } /* End off-screen left */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .main-navigation {
    display: none; /* Hide main nav on smaller screens */
  }

  .header-main-nav .container {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block; /* Show menu toggle */
  }

  .main-navigation.active { /* For JS-toggled mobile menu */
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
  }

  .main-navigation.active .nav-list {
    flex-direction: column;
  }

  .main-navigation.active .nav-item {
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  .main-navigation.active .nav-link {
    padding: 15px 20px;
  }

  .main-navigation.active .has-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    padding-left: 20px;
  }

  .footer-widget {
    width: calc(50% - 20px);
    margin-right: 20px;
  }

  .footer-widget:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }
  .contact-info span {
    margin: 5px 10px;
  }
  .social-links {
    margin-top: 10px;
  }

  .footer-widget {
    width: 100%;
    margin-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    margin-top: 15px;
    justify-content: center;
  }

  .payment-methods {
    margin-top: 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
