/* Custom colors */
:root {
  --primary-color: #d55954;
  --secondary-color: #394762;
  --light-color: #faf7f7;
  --dark-color: #333333;
  --accent-color: #56c7d6;
  --pink-color: #ee9db2;
  --beige-color: #e0cda7;
  --gray-color: #8c8888;
  --bs-nav-link-font-size: 1.1rem;
}

/* Global Styles */
body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.section-title {
  color: var(--secondary-color);
  font-weight: 600;
  /* margin-bottom: 1.5rem; */
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo {
  max-height: 60px;
}

/* Header styles */
.header-top {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
}

.header-top a, .header-top span {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.header-top i {
  color: white;
}

.search-form {
  position: relative;
  max-width: 250px;
  margin-left: auto;
}

.search-input {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  width: 100%;
  font-size: 14px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 14px;
}

.main-nav {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 8px 15px;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--primary-color) !important;
}

.dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.dropdown-item {
  padding: 8px 20px;
  color: var(--dark-color);
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* PC端样式（≥992px） */
@media (min-width: 992px) {
  
  .modal {
    --bs-modal-width:650px;
  }

  .navbar-nav > .menu-item {
    padding: 0.5rem 0.5rem;
  }
  .navbar-nav .dropdown-menu .menu-item {
    min-width: 15rem;
    padding: 0.5rem 1rem;
  }
 
  /* 三级菜单定位 */
  .dropdown-menu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 15rem;
    display: none;
  }

  .dropdown-menu .menu-item-has-children > a::after {
    content: "▶";
    float: right;
    transition: transform 0.2s;
  }
 
  /* 悬停显示三级菜单 */
  .dropdown-menu > .menu-item-has-children:hover > .dropdown-menu {
    display: block;
  }
 
  /* 菜单项样式 */
  .dropdown-item {
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }
}
 
/* 移动端样式（<992px） */
@media (max-width: 991px) {
 
  .navbar-nav .menu-item-has-children > .dropdown-menu {
    display: none;
  }

  /* 点击展开效果 */
  .navbar-nav .menu-item-has-children.active > .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
 .dropdown-menu .dropdown-menu .menu-item {
    padding-left: 10px;
 }
  /* 箭头指示器 */
  .dropdown-menu .menu-item-has-children > a::after {
    content: "▶";
    float: right;
    transition: transform 0.2s;
  }
 
  /* 展开状态箭头 */
  .dropdown-menu .menu-item-has-children.active > a::after {
    transform: rotate(90deg);
  }
}
 
/* 公共样式 */
.menu-item-has-children > a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

/* Hero section */
.hero-section {
  background-image: var(--theme-background-image-url1);
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 50px 0;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 500;
}
.hero-content .lead {
  font-size: 1rem;
}

.product-cards .card {
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
}

.product-cards .card:hover {
  box-shadow: 0 8px 25px rgba(243, 63, 13, 0.2);
  transform: translateY(-5px);
}

.product-cards .card-img-top {
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-cards .card:hover .card-img-top {
  transform: scale(1.05);
}

.product-cards .card img {
  height: 250px;
  object-fit: cover;
}

.product-cards .card-title {
  font-weight: 600;
  color: var(--primary-color);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 10rem;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .card-desc {
    font-size: 1rem;
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .card-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

.contact-us-button {
  background-color: var(--primary-color);
  color: white;
  transition: all 0.3s ease-in-out;
}

.contact-us-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(235, 90, 90, 0.2);
}

.gradient-text {
  font-size: 28px;
  background: linear-gradient(45deg, var(--primary-color), #ff4e50, #f5ab0c, #a3883f);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite, pulse 2s infinite alternate;
}

@keyframes gradient-shift {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.05);
  }
}

/* About section */
.about-section {
  padding: 60px 0;
}

.video-container {
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  height: 100%;
}

.video-container img {
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Stats counter */
.stats-counter {
  background-image: var(--theme-background-image-url2);
  background-size: cover;
  background-position: center;
  background-color: #f8f9fa;
  padding: 50px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.counter-text {
  font-size: 1rem;
  color: var(--dark-color);
  font-weight: 500;
}

/* Patents section */
.patents-section {
  padding: 60px 0;
}

.patents-carousel {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.patent-item {
  width: 18%;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.patent-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Video section */
.video-section {
  padding: 60px 0;
}

.video-thumbnail {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-play-icon:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Product cards */
.product-card {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px;
  background-color: white;
}

.product-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--secondary-color);
  height: 40px;
  overflow: hidden;
}

.product-title a {
  color: var(--secondary-color);
}

.product-title a:hover {
  color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Main Content */
.main-content {
  padding: 50px 0;
}

/* Sidebar */
.sidebar {
  margin-bottom: 30px;
}

.category-box {
  background-color: white;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.category-box h2 {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  margin: 0;
  font-size: 22px;
}

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

.category-list li {
  border-bottom: 1px solid var(--border-color);
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  color: var(--secondary-color);
  font-weight: 500;
}

.category-list li a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.has-submenu > a {
  cursor: pointer;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background-color: #f9f9f9;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  padding-left: 30px;
  font-size: 14px;
}

.contact-box {
  background-color: white;
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
}

.contact-box h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.contact-box a {
  display: block;
  margin-bottom: 15px;
}

.quote-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white !important;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.quote-btn:hover {
  background-color: #d44941;
}

/* Product Grid */
.product-card {
  background-color: white;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.product-price, .product-quantity {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.read-more-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white !important;
  padding: 8px 20px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.read-more-btn:hover {
  background-color: #d44941;
}

/* Pagination */
.pagination-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  background-color: white;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.page-item.active .page-link,
.page-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.contact-section p {
  margin-bottom: 0;
  font-size: 16px;
}

/* FAQ section */
.accordion-item {
  border: none;
  margin-bottom: 10px;
}

.accordion-button {
  background-color: white;
  border: none;
  border-radius: 5px !important;
  padding: 15px 20px;
  font-weight: 500;
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
  background-size: 16px;
  color: var(--primary-color);
}

.accordion-body {
  padding: 15px 20px;
  background-color: white;
  border-radius: 0 0 5px 5px;
}

/* Contact form */
.contact-form-section {
  background-image: var(--theme-background-image-url1);
  background-size: cover;
  background-position: center;
  background-color: #f8f9fa;
  padding: 60px 0;
  position: relative;
}

.contact-form-section .container {
  position: relative;
  z-index: 1;
  color: #fff;
}

.contact-form-section .container .section-title {
  color: #fff;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.contact-form input,
.contact-form textarea {
  border-radius: 5px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(213, 89, 84, 0.25);
}

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 30px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-submit:hover {
  background-color: #c14945;
}

/* Footer */
.footer {
  background-image: var(--theme-background-image-url3);
  background-size: cover;
  background-position: center;
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.footer .container,.footer .footer-bottom {
  position: relative;
  z-index: 1;
  color: #fff;
}

.footer-bottom {
  background-color: #c14945;
  padding: 15px 0;
  color: white;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 15px;
}

.footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

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

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Page Header for About, Contact pages */
.page-header {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
  color: white;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.page-header h1 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

/* Contact Page Specific */
.contact-info-box {
  border-left: 3px solid var(--primary-color);
}

.contact-info-box i.text-primary {
  color: var(--primary-color) !important;
}

.contact-main-section a {
  color: var(--primary-color);
}

.contact-main-section a:hover {
  color: #c14945;
}

/* Factory Images */
.factory-image {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.factory-image:hover {
  transform: translateY(-5px);
}

/* Custom Manufacturing Page */
.process-timeline {
  position: relative;
  padding: 30px 0;
}

.process-step {
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.process-icon {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-number {
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.service-card, .custom-option-card {
  transition: all 0.3s ease;
}

.service-card:hover, .custom-option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.service-icon, .option-icon {
  color: var(--primary-color);
}

.custom-highlights .fa-check-circle {
  color: var(--primary-color);
  font-size: 18px;
}

.cta-section {
  background-color: var(--primary-color);
}

.custom-intro-section img {
  transition: all 0.5s ease;
}

.custom-intro-section img:hover {
  transform: scale(1.02);
}

/* Category Header */
.category-header {
    background-image: url('https://ext.same-assets.com/714869215/149117412.jpeg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.category-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* News Section */
.news-section {
    padding: 30px 0 60px;
    background-color: var(--light-gray);
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--secondary-color);
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Load More Button */
#load-more {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 30px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

#load-more:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻详情页 */
.news-detail-header {
    background-image: url('https://ext.same-assets.com/714869215/149117412.jpeg');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
    position: relative;
    color: white;
}

.news-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
}

.news-detail-header h1, .breadcrumb-nav {
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    padding: 30px 0 60px;
    background-color: var(--light-gray);
}

.content-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Table of Contents */
.table-of-contents {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
}

/* Related Posts */
.related-post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 15px;
    margin: 0;
}

.related-post-card .read-more {
    display: block;
    padding: 0 15px 15px;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 300px;
  }

  .counter-number {
    font-size: 2rem;
  }

  .patent-item {
    width: 31%;
  }

  .header-top .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .header-top a {
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 250px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .patent-item {
    width: 48%;
  }

  .footer {
    text-align: center;
  }
}

/* Product Detail Page Styles */
.product-detail-section {
  padding: 60px 0;
}

.product-gallery {
  position: relative;
}

.main-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-images {
  margin-top: 15px;
}

.thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.product-meta .badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  font-weight: 500;
}

.product-features ul li {
  margin-bottom: 10px;
}

.product-features .text-success {
  color: #28a745;
}

.product-specifications p {
  margin-bottom: 8px;
}

.product-customization, .product-inquiry {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.inquiry-form {
  display: none;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.inquiry-form.show {
  display: block;
}

.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

.related-products {
  padding: 60px 0;
}

/* Color Selection Options */
.color-options {
  display: flex;
  margin-bottom: 20px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.color-option:hover, .color-option.active {
  transform: scale(1.1);
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.color-option.purple {
  background-color: #8a4fff;
}

.color-option.pink {
  background-color: #ff4f8a;
}

.color-option.black {
  background-color: #333;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  margin-top: 20px;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  transition: all 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.pinterest {
  background-color: #bd081c;
}

/* Gallery Page Styles */
.gallery-categories {
  margin-bottom: 40px;
}

.gallery-categories button {
  margin: 0 5px 10px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.gallery-categories button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.gallery-item {
  margin-bottom: 30px;
  transition: all 0.5s ease;
}

.gallery-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.gallery-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-info {
  color: white;
  text-align: center;
  padding: 20px;
}

.gallery-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.gallery-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.virtual-tour {
  padding: 60px 0;
}

.visit-request {
  padding: 60px 0;
}

.visit-form {
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Light Gallery customization */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

.lg-toolbar,
.lg-actions .lg-next,
.lg-actions .lg-prev {
  background-color: rgba(0, 0, 0, 0.45);
}

.lg-toolbar .lg-icon:hover,
.lg-actions .lg-next:hover,
.lg-actions .lg-prev:hover {
  color: var(--primary-color);
}

@media (max-width: 767px) {
  .gallery-image img {
    height: 200px;
  }

  .gallery-categories button {
    margin-bottom: 10px;
  }
}

/* Live Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 450px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: all 0.3s ease;
}

.chat-widget.collapsed {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.chat-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
}

.chat-avatar {
  position: relative;
  margin-right: 10px;
}

.chat-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  bottom: 0;
  right: 0;
  border: 2px solid white;
}

.status-indicator.online {
  background-color: #4CAF50;
}

.chat-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chat-info .status {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.chat-actions button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.chat-actions button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f7f7f7;
}

.chat-messages {
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
}

.message.sent {
  align-self: flex-end;
}

.message.received {
  align-self: flex-start;
  display: flex;
}

.message-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.message-bubble {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.message.sent .message-bubble {
  background-color: var(--primary-color);
  color: white;
}

.message-text {
  margin-bottom: 5px;
  line-height: 1.4;
}

.message-time {
  text-align: right;
  font-size: 0.7rem;
  opacity: 0.7;
}

.chat-footer {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
}

.chat-input {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 20px;
  background-color: #f5f5f5;
}

.chat-input:focus {
  outline: none;
  background-color: #f0f0f0;
}

.send-message {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-message:hover {
  background-color: #c14945;
}

.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  font-size: 24px;
  opacity: 0;
  transform: scale(0.8);
}

.chat-toggle.visible {
  opacity: 1;
  transform: scale(1);
}

.chat-toggle:hover {
  background-color: #c14945;
  transform: scale(1.1);
}

.typing-animation {
  animation: typingPulse 1.5s infinite;
}

@keyframes typingPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (max-width: 576px) {
  .chat-widget {
    width: 300px;
    height: 400px;
    bottom: 10px;
    right: 10px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 10px;
    right: 10px;
  }

  .message {
    max-width: 90%;
  }
}

/* Language Switcher Styles */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.language-dropdown {
  position: relative;
}

.current-language {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.current-language i {
  margin-right: 5px;
}

.current-language i:last-child {
  margin-right: 0;
  margin-left: 5px;
  font-size: 10px;
}

.current-language:hover {
  background-color: #c14945;
}

.language-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 180px;
  display: none;
  transition: all 0.3s ease;
  z-index: 1002;
}

.language-options.show {
  display: block;
  animation: fadeIn 0.3s;
}

.language-options a {
  display: block;
  padding: 8px 15px;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.language-options a:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
}

.language-options a.active {
  background-color: #f5f5f5;
  color: var(--primary-color);
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  color: #B3B3B3;
  font-weight: bold;
}

.swiper-button-next {
  right: -30px; /* 调整右侧箭头的位置 */
}

.swiper-button-prev {
  left: -30px; /* 调整左侧箭头的位置 */
}

.related-posts h2 {
  color: var(--secondary-color);
  font-weight: 600;
}

/* 商品列表分页样式 */
.pagination-container .page-numbers {
  display: flex;
  list-style-type: none;
  padding: 0;
}

.pagination-container .page-numbers li a,.pagination-container .page-numbers li span {
  background-color: white;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  margin-left: 5px;
}

.pagination-container .page-numbers li a {
  background-color: var(--primary-color);
  color: white;
}

.pagination-container .page-numbers li span {
  background-color: #d3cece;
  font-weight: bold;
}

.pagination-container .page-numbers li a:hover {
  /* 添加背景颜色和文字颜色 */
  background-color: #d44941; /* 与按钮悬停颜色保持一致 */
  color: white;
  font-weight: bold;
}

.product-description .h5 {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 5px;
  padding-left: 5px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#contact-us-modal {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: block;
  z-index: 1000;
  opacity: 0.8;
  transition: opacity 0.3s;
}

#contact-us-modal:hover {
  opacity: 1;
}