/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa; /* 添加浅色背景 */
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* section通用样式 */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1rem;
}

.section-title-en {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-subtitle-en{
  font-size: 1.1rem;
  color: #7f8c8d;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* 按钮样式 */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #6b87f7 0%, #2f54eb 100%); /* 更明亮的浅蓝色 */
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(100, 149, 237, 0.3); /* 更明亮的阴影色 */
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2f54eb 0%, #6b87f7 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

/* 背景色样式 */
.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%); /* 更亮的背景色 */
}

/* 语言切换按钮样式 */
.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #2f54eb;
  color: #2f54eb;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none;
  font-size: 0.6rem;
}

.lang-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.lang-btn.active {
  background: #2f54eb;
  color: white;
}

.lang-btn:hover {
  background: #6b87f7;
  color: white;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  width: 100%;
}

.logo{
  height: 50px;
  /* width: 100px; */
}

.logo-img-box {
  float: left;
  height: 50px;
}

.logo-img {
  height: 100%;
}

.logo-text{
  color: #ffd700; /* 更亮的金色 */
  float: left;
  margin-left: 6px;
  font-size: 14px;
  margin-top: 4px;
}

.heng {
  width: 100%;
  height: 1px;
  background-color: #ffec8b; /* 更亮的分隔线颜色 */
}

.logo-en {
  letter-spacing: 1px;
}

/* 桌面端导航 */
.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop .nav-link {
  color: #2c3e50;
  text-decoration: none;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
  margin: 0 6px;
}

.nav-desktop .nav-link.active,
.nav-desktop .nav-link:hover {
  color: #fff;
  background-color: #2f54eb; /* 更明亮的浅蓝色 */
}

.nav-desktop .nav-link.active::after {
  display: none;
}

/* 英雄区域样式 */
.hero {
  height: 100vh;
  /* background: url('https://via.placeholder.com/1920x1080?text=PAICOS+Shoe+Components') center/cover no-repeat; */
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(255, 255, 255, 0.7);  */
  background-image: url('./img/banner1.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
  height: 100%;
  /* background-color: rgba(255, 255, 255, 0.3);  */
  text-align: center;
  color: #e04903;
  padding-top: 12rem;
}

.hero h1 {
  font-size: 8rem;
  margin-bottom: 4rem;
}

.hero-slogan {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  font-weight: bold;
}

.hero-desc {
  font-size: 1.5rem;
  font-weight: bold;
  line-height:3rem;
  margin: 0 auto 3rem;
  color: #222;
}

/* 公司概况样式 */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-intro,
.about-stats,
.about-locations,
.about-clients {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef; /* 添加边框 */
}

.about-intro:hover,
.about-stats:hover,
.about-locations:hover,
.about-clients:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-intro h3,
.about-stats h3,
.about-locations h3,
.about-clients h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2f54eb; /* 更亮的蓝色边框 */
}

.about-intro p{
  text-indent: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); /* 更亮的背景 */
  transition: all 0.3s ease;
  border: 1px solid #e9ecef; /* 添加边框 */
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%); /* 更亮的悬停背景 */
}

.stat-icon {
  font-size: 2.5rem;
  color: #2f54eb; /* 更明亮的浅蓝色 */
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-label, .stat-label-en {
  color: #6c757d; /* 更亮的文字颜色 */
  font-size: 1rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.location-card {
  padding: 1.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); /* 更亮的背景 */
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef; /* 添加边框 */
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%); /* 更亮的悬停背景 */
}

.location-icon {
  color: #ff6b6b; /* 更亮的红色 */
  font-size: 2rem;
  margin-bottom: 1rem;
}

.location-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.client-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.9; /* 更亮的透明度 */
  transition: all 0.3s ease;
  filter: grayscale(0%); /* 默认不使用灰度 */
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* 产品介绍样式 */
.products .section-title {
  text-align: center;
}

.products .section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: #7f8c8d;
}

.products-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid #2f54eb; /* 更亮的蓝色边框 */
  margin-bottom: 2rem;
  border: 1px solid #e9ecef; /* 添加边框 */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%); /* 更亮的悬停背景 */
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.product-icon {
  font-size: 2rem;
  color: #2f54eb; /* 更明亮的浅蓝色 */
}

.product-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0;
}

.product-title-en {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0;
}

.product-content {
  color: #555;
}

.product-desc {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-desc-en {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 修改产品图片展示样式 */
.product-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 1.5rem;
}

.product-image-card {
  background: #ffffff; /* 更亮的背景 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 0;
  padding: 4px;
  border: 1px solid #e9ecef; /* 添加边框 */
}

.product-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: #6b87f7; /* 浅蓝色背景 */
}

.product-image-card img {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  /* border-bottom: 1px solid #eee; */
}

.image-caption {
  padding: 10px 5px;
  font-size: 0.85rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 500;
}

.product-subcategory h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.product-subdesc {
  margin: 0.5rem 0;
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-list {
  list-style: none;
  padding-left: 0;
  color: #555;
  margin: 0.5rem 0;
}

.product-list li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
  font-size: 0.95rem;
}

.product-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6b87f7; /* 浅蓝色项目符号 */
}

/* 图片查看模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

.modal-content img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #afadad;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #555;
}

.modal-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f1f1f1;
  font-size: 18px;
  padding: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.product-advantages,
.product-capacity, .product-capacity-en {
  padding: 0.8rem 0;
  border-top: 1px dashed #eee;
  color: #7f8c8d;
  font-size: 0.95rem;
  margin: 0;
}

.product-advantages strong,
.product-capacity strong, .product-capacity-en strong {
  color: #2c3e50;
}

/* 生产基地样式 */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.facility-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid #2f54eb; /* 更亮的蓝色边框 */
  border: 1px solid #e9ecef; /* 添加边框 */
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9f0ff 100%);
}

.facility-status, .facility-status-en {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.facility-operating {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
}

.facility-upcoming {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%); /* 更亮的橙色背景 */
  color: #f57c00;
}

.facility-title, .facility-title-en {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.facility-details p, .facility-detail-en p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.facility-icon {
  color: #2f54eb;
  margin-right: 0.8rem;
  min-width: 20px;
  text-align: center;
}

/* 品质保证样式 */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quality-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid #2f54eb; /* 更亮的蓝色边框 */
  border: 1px solid #e9ecef; /* 添加边框 */
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%); /* 更亮的悬停背景 */
}

.quality-icon {
  font-size: 3rem;
  color: #2f54eb; /* 更明亮的浅蓝色 */
  margin-bottom: 1.5rem;
  text-align: center;
}

.quality-title, .quality-title-en {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.quality-desc {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.quality-list {
  list-style: none;
  padding-left: 0;
  color: #555;
  margin-bottom: 1.5rem;
}

.quality-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.quality-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2f54eb; /* 更明亮的浅蓝色 */
  font-weight: bold;
}

.quality-note {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #eee;
  font-style: italic;
  text-align: center;
}

/* 实验室设备样式 */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.lab-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid #2f54eb;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.lab-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  text-align: center;
  padding: 6px;
}

.lab-image7, .lab-image8, .lab-image9 {
  height: 300px;
}

.lab-image8 img{
  margin-top: 60px;
}

.lab-image9 img {
  margin-top: 50px;
}


.lab-image img {
  max-width: 100%;
  max-height: 100%;
  /* object-fit: cover; */
  transition: transform 0.3s ease;
}

.lab-content {
  padding: 0.5rem;
}

.lab-title, .lab-title-en {
  font-size: 1rem;
  color: #333;
  text-align: center;
  line-height: 2rem;
  border-top: 1px dashed #ddd;
}

/* 联系我们样式 */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info,
.contact-factories {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef; /* 添加边框 */
}

.contact-info:hover,
.contact-factories:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info h3,
.contact-factories h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2f54eb;
}

.contact-details {
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: #f8f9fa; /* 默认背景色 */
}

.contact-item:hover {
  background-color: #e3f2fd; /* 更亮的悬停背景 */
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.8rem;
  color: #2f54eb; /* 更明亮的浅蓝色 */
  margin-right: 1.2rem;
  min-width: 45px;
  text-align: center;
}

.contact-text h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.contact-text p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.contact-text a {
  color: #2f54eb;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-text a:hover {
  color: #4169E1;
  text-decoration: underline;
}

.factories-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1.5rem;
}

.factory-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #6b87f7; /* 更明亮的浅蓝色边框 */
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.factory-card:hover {
  background: #E6F3FF; /* 更明亮的浅蓝色悬停背景 */
  transform: translateX(5px);
}

.factory-card h4 {
  margin-top: 0;
  color: #2f54eb; /* 更明亮的浅蓝色 */
  border-bottom: 1px solid #eee;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.factory-card i {
  color: #2f54eb; /* 更明亮的浅蓝色 */
  margin-right: 0.8rem;
  min-width: 20px;
  text-align: center;
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* 深蓝色页脚背景 */
  color: #fff;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #e9ecef;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-info {
  text-align: center;
}

.footer-motto, .footer-motto-en {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff; /* 更亮的文字颜色 */
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #e9ecef; /* 更亮的文字颜色 */
  margin: 0;
}

/* 工厂车间图片展示样式 */
.factory-images {
  margin-top: 2rem;
}

.factory-gallery {
  margin-top: 2rem;
}

.gallery-category {
  margin-bottom: 2.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #4a90e2;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.gallery-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.gallery-title, .gallery-title-en {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 15px;
  grid-auto-rows: 250px;
}

.masonry-item {
  break-inside: avoid;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: #fff;
  border: 1px solid #e9ecef;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: #6b87f7;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

/* 响应式适配 */
@media (max-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .gallery-category {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery-title, .gallery-title-en {
    font-size: 1.3rem;
  }
  
  .gallery-category {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .masonry-item {
    break-inside: auto;
  }
  
  .gallery-category {
    padding: 1rem;
  }
  
  .gallery-title, .gallery-title-en {
    font-size: 1.2rem;
  }
}

/* 响应式适配 */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .quality-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-slogan {
    font-size: 1.3rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-wrapper {
    gap: 1.5rem;
  }
  
  .about-intro,
  .about-stats,
  .about-locations,
  .about-clients {
    padding: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .product-card,
  .quality-card,
  .facility-card,
  .contact-info,
  .contact-factories {
    padding: 1.5rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .clients-grid {
    gap: 1.5rem;
  }
  
  .client-logo {
    height: 40px;
  }
  
  .language-switcher {
    margin-right: 10px;
  }
  
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-slogan {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .locations-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid,
  .quality-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.2rem 0.8rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-icon {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
  }
}