@charset "utf-8";

/* 产品展馆样式 - 基于js127改造 */

/* 基础布局 */
.product-pavilion-wrap {
  padding: 50px 0;
  background: #ffffff;
  min-height: 720px;
  position: relative;
}

.product-pavilion-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(images/pattern-bg.png) repeat;
  opacity: 0.1;
  z-index: 0;
}

.pavilion-container {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.pavilion-title {
  padding: 30px 0;
  text-align: center;
}

.pavilion-title .tt {
  font-size: 36px;
  color: #333333;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: bold;
}

.pavilion-title .text {
  font-size: 16px;
  color: #666666;
  letter-spacing: 1px;
}

/* Tab分类导航 */
.product-tabs {
  padding: 0 10px;
  margin-bottom: 30px;
  text-align: center;
  overflow: hidden;
}

.product-tabs ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
}

.product-tabs li {
  padding: 0 24px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  line-height: 38px;
  font-size: 15px;
  color: #666666;
  letter-spacing: 0.5px;
  margin: 0 8px 15px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f5f5f5;
  white-space: nowrap;
}

/* PC端每行显示4个 */
@media (min-width: 768px) {
  .product-tabs li {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
    text-align: center;
  }
}

.product-tabs li:hover {
  background: #e8e8e8;
  border-color: #cccccc;
  transform: translateY(-2px);
}

.product-tabs li.active {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
  font-weight: bold;
}

/* Tab内容区域 */
.tab-content-wrap {
  position: relative;
  min-height: 450px;
}

.tab-content {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  transition: all 0.5s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  top: 0;
  z-index: 1;
}

.tab-content::after {
  content: '';
  display: table;
  clear: both;
}

/* 产品网格布局 - 固定3列，不换行 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 10px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 产品项 */
.product-item {
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* 每个产品卡片 */
.product-card-link {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

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

/* 产品图片区域 */
.product-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

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

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

/* 产品信息区域 */
.product-info {
  padding: 24px;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 63px;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.learn-more {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  transition: color 0.3s ease;
}

.product-card-link:hover .learn-more {
  color: #764ba2;
}

.arrow {
  font-size: 18px;
  color: #667eea;
  transition: all 0.3s ease;
}

.product-card-link:hover .arrow {
  transform: translateX(5px);
  color: #764ba2;
}

/* 分类信息卡片 - 当产品少时显示 */
.category-info-card {
  grid-column: span 1;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.info-card-content {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-title {
  font-size: 24px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 16px;
  text-align: center;
}

.info-description {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: center;
}

.info-description p {
  margin-bottom: 8px;
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #4a5568;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: #667eea;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

/* 旧卡片样式已移除 - 使用新的网格布局 */

/* 查看全部按钮 */
.pavilion-view-all {
  margin-top: 40px;
  text-align: center;
}

.pavilion-view-all a {
  display: inline-block;
  padding: 12px 40px;
  font-size: 16px;
  color: #ffffff;
  border: 2px solid #667eea;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pavilion-view-all a:hover {
  background: #5568d3;
  border-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pavilion-view-all .arrow-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.pavilion-view-all a:hover .arrow-icon {
  transform: translateX(5px);
}

/* 响应式适配 */
@media screen and (max-width: 1200px) {
  .pavilion-container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .product-grid {
    gap: 20px;
  }
}

@media screen and (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .product-image {
    height: 200px;
  }
  
  /* 在平板上隐藏第3个产品和描述卡片 */
  .product-item:nth-child(n+3),
  .category-info-card {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  /* 移动端整体布局优化 */
  .product-pavilion-wrap {
    padding: 30px 0;
  }
  
  .pavilion-container {
    padding: 0 15px;
  }
  
  /* 标题优化 */
  .pavilion-title {
    padding: 20px 0;
  }
  
  .pavilion-title .tt {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .pavilion-title .text {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
  }
  
  /* Tab标签优化 - 更好的移动端体验 */
  .product-tabs {
    padding: 0;
    margin-bottom: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    text-align: left;
  }
  
  .product-tabs ul {
    display: flex;
    flex-wrap: nowrap;
    padding: 0 5px;
    min-width: min-content;
  }
  
  .product-tabs li {
    flex-shrink: 0;
    padding: 0 18px;
    font-size: 13px;
    line-height: 36px;
    margin: 0 5px 0 0;
    white-space: nowrap;
    border-width: 1px;
  }
  
  .product-tabs li:first-child {
    margin-left: 0;
  }
  
  .product-tabs li:last-child {
    margin-right: 0;
  }
  
  /* Tab内容区域优化 */
  .tab-content-wrap {
    min-height: 350px;
  }
  
  /* 移动端单列布局 */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  
  /* 移动端只显示1个产品 */
  .product-item:nth-child(n+2) {
    display: none;
  }
  
  /* 产品卡片优化 */
  .product-card-link {
    border-radius: 10px;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info {
    padding: 18px 16px;
  }
  
  .product-name {
    font-size: 16px;
    line-height: 1.4;
    min-height: auto;
    margin-bottom: 10px;
  }
  
  .product-description {
    font-size: 13px;
    line-height: 1.6;
    min-height: auto;
    margin-bottom: 12px;
  }
  
  .product-action {
    padding-top: 12px;
  }
  
  .learn-more {
    font-size: 13px;
  }
  
  /* 查看全部按钮优化 */
  .pavilion-view-all {
    margin-top: 30px;
  }
  
  .pavilion-view-all a {
    padding: 14px 32px;
    font-size: 14px;
  }
  
  .info-card-content {
    padding: 24px;
  }
  
  .info-title {
    font-size: 20px;
  }
  
  /* 移动端显示分类描述卡片 */
  .category-info-card {
    display: block;
  }
}

/* 小屏手机优化 (iPhone SE等) */
@media screen and (max-width: 480px) {
  .product-pavilion-wrap {
    padding: 25px 0;
  }
  
  .pavilion-title .tt {
    font-size: 22px;
  }
  
  .pavilion-title .text {
    font-size: 13px;
  }
  
  .product-tabs li {
    padding: 0 14px;
    font-size: 12px;
    line-height: 32px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-name {
    font-size: 15px;
  }
  
  .product-description {
    font-size: 12px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 产品项渐入动画 */
.product-item:nth-child(1) { animation-delay: 0.05s; }
.product-item:nth-child(2) { animation-delay: 0.1s; }
.product-item:nth-child(3) { animation-delay: 0.15s; }
.product-item:nth-child(4) { animation-delay: 0.2s; }
.product-item:nth-child(5) { animation-delay: 0.25s; }
.product-item:nth-child(6) { animation-delay: 0.3s; }
.product-item:nth-child(7) { animation-delay: 0.35s; }
.product-item:nth-child(8) { animation-delay: 0.4s; }
.product-item:nth-child(n+9) { animation-delay: 0.45s; }
