/* General Body & Typography */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
a {
  text-decoration: none;
  color: #007bff;
}
a:hover {
  color: #0056b3;
}

/* Marquee Section */
.marquee-section {
  background-color: #333;
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  font-size: 0.9em;
}
.marquee-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.marquee-icon {
  margin-right: 10px;
  font-size: 1.2em;
  color: #ffc107; /* Gold color for icon */
}
.marquee-wrapper {
  flex-grow: 1;
  overflow: hidden;
}
.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-block;
  padding-right: 50px; /* Space between items */
  color: #fff;
  transition: color 0.3s ease;
}
.marquee-item:hover {
  color: #ffc107;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Header Styles */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-top-bar {
  background-color: #2c3e50; /* Dark blue-gray */
  color: #ecf0f1;
  padding: 8px 0;
  font-size: 0.85em;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-info span {
  margin-right: 20px;
}
.contact-info i {
  margin-right: 5px;
  color: #1abc9c; /* Green accent */
}
.user-actions {
  display: flex;
  align-items: center;
}
.btn-login, .btn-register {
  background-color: #1abc9c; /* Green */
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}
.btn-register {
  background-color: #e67e22; /* Orange */
}
.btn-login:hover, .btn-register:hover {
  opacity: 0.9;
}
.language-selector {
  position: relative;
  margin-left: 15px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
}
.lang-flag {
  width: 20px;
  height: 15px;
  margin-right: 5px;
  border: 1px solid rgba(255,255,255,0.2);
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2c3e50;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-width: 100px;
  z-index: 1000;
  display: none;
}
.language-selector:hover .lang-dropdown {
  display: block;
}
.lang-dropdown li {
  padding: 8px 10px;
  display: flex;
  align-items: center;
}
.lang-dropdown li:hover {
  background-color: #34495e;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}
.logo-img {
  height: 40px;
  margin-right: 10px;
}
.brand-text {
  background: linear-gradient(45deg, #28a745, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-toggler {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.5em;
  color: #333;
  cursor: pointer;
}
.navbar-collapse {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.nav-item {
  margin-left: 25px;
  position: relative;
}
.nav-link {
  color: #555;
  font-weight: 500;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}
.nav-link i {
  margin-right: 5px;
  color: #1abc9c;
}
.nav-item.active .nav-link, .nav-item:hover .nav-link {
  color: #1abc9c;
}
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 180px;
  border-radius: 4px;
  display: none;
  z-index: 999;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 8px 15px;
  color: #555;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #1abc9c;
}
.search-box {
  display: flex;
  margin-left: 30px;
}
.search-input {
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 0.9em;
}
.search-button {
  background-color: #3498db; /* Blue */
  color: #fff;
  border: 1px solid #3498db;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.search-button:hover {
  background-color: #2980b9;
}

/* Footer Styles */
.main-footer {
  background-color: #2c3e50; /* Dark blue-gray */
  color: #ecf0f1;
  padding: 50px 0 20px;
  font-size: 0.9em;
}
.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}
.footer-widgets .widget {
  width: calc(25% - 20px);
  margin-bottom: 30px;
}
.footer-widgets .widget.about-us {
  width: calc(30% - 20px);
}
.footer-widgets .widget.contact-info-footer {
  width: calc(25% - 20px);
}
.widget-title {
  font-size: 1.3em;
  color: #1abc9c; /* Green accent */
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #ffc107; /* Gold accent */
}
.widget p {
  margin-bottom: 15px;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget ul li {
  margin-bottom: 8px;
}
.widget ul li a {
  color: #ecf0f1;
  transition: color 0.3s ease;
}
.widget ul li a:hover {
  color: #1abc9c;
}
.social-links a {
  color: #ecf0f1;
  font-size: 1.5em;
  margin-right: 15px;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: #ffc107;
}
.payment-icons img, .security-icons img {
  height: 30px;
  margin-right: 10px;
  margin-bottom: 10px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.payment-icons img:hover, .security-icons img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.security-title {
  margin-top: 25px;
}
.newsletter-form {
  display: flex;
  margin-top: 15px;
}
.newsletter-form input {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.newsletter-form .btn-subscribe {
  background-color: #e67e22; /* Orange */
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.newsletter-form .btn-subscribe:hover {
  background-color: #d35400;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.copyright {
  margin: 0;
  color: #bdc3c7;
}

/* FontAwesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Responsive Design */
@media (max-width: 992px) {
  .navbar-nav {
    display: none; /* Hide on smaller screens by default */
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
  }
  .navbar-nav.active {
    display: flex;
  }
  .nav-item {
    margin: 0;
    border-bottom: 1px solid #eee;
  }
  .nav-link {
    padding: 12px 20px;
  }
  .navbar-toggler {
    display: block;
  }
  .navbar-collapse {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .search-box {
    margin: 15px 0 0 0;
    width: 100%;
  }
  .search-input {
    width: calc(100% - 45px);
  }
  .footer-widgets .widget {
    width: calc(50% - 20px);
  }
  .footer-widgets .widget.about-us,
  .footer-widgets .widget.contact-info-footer {
    width: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .header-top-bar {
    display: none;
  }
  .navbar-brand {
    font-size: 1.5em;
  }
  .logo-img {
    height: 35px;
  }
  .footer-widgets .widget {
    width: calc(100% - 20px);
  }
  .marquee-content {
    animation: marquee 20s linear infinite;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { 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;
  }
}
